Wednesday, August 11, 2010
Windows 2008 Update with Proxy Server
To solve this issue you can do the following:
* Run the Command Promp as Administrator
* Type netsh
* Type winhttp
* Type import proxy source=ie
Now Windows Update will ask you for a username and password before it wants to check for an update.
Saturday, May 22, 2010
Mozy Backup Hidden Files Setting
defaults write com.mozy.Config "BDSShowHiddenFilesKey" -bool YES
Thursday, May 20, 2010
Speed up vmware Fusion 3.x
Friday, April 2, 2010
Sorting in iTunes
Friday, March 5, 2010
Macfusion error with sshfs in Snow Leopard
When mounting a drive with MacFusion, you’ll get the error that the remote host has disconnected. When you look at the log file, you notice that the error is actually in a shared lib: dyld: could not load inserted library: /Applications/Macfusion.app/Contents/PlugIns/ sshfs.mfplugin/Contents/Resources/sshnodelay.so.
To fix this, simply execute the following in your terminal:
mv /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so.bak
This will prevent MacFusion from loading the offending shared lib. Everything works again :)
Tuesday, March 2, 2010
Force Safari to open all links in new tab
Firefox users have been able to open all links clicked within Firefox in a new tab for a while now, but what about us poor Safari users? Well, sure, you could always hold down command while clicking a link, but that's not fun, now is it? With this simple Terminal hack, you will be surfing like a pro!
Just open Terminal (/Applications/Utilities/) and type in the following command:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Friday, February 19, 2010
Thursday, February 18, 2010
Changing hostname in macos
I'v got Snow Leopard, but DHCP is screwing my hostname all the time to something very random. Another thing that /etc/hostconfig goes away, while System Preferences in the Sharing tab does not sets hostname as hostname. Thus all older recipes are not really applicable anymore, once you're on Snow Leopard (I love changes). The cure is how to setup your hostname to, e.g. "Zeus" (that's mine one) like this (terminal and sudo privileges are required):
sudo scutil --set ComputerName zeussudo
scutil --set HostName zeussudo
scutil --set LocalHostName zeus
Monday, February 15, 2010
Setting up a SVN Server
DAV svn
SVNParentPath /var/svn
SVNListParentPath on
AuthType Basic
AuthName "Foosball SVN Repo"
AuthUserFile /etc/subversion/passwd
Require valid-user
Restart Apache.
Missing JavaHL when using Subclipse on MacOS
Tuesday, February 9, 2010
WLAN AutoConfig Service Failed To Start
Using CURL with cookies and authentication
#!/bin/bash
# Acquire RAT Page cookie
curl \
--trace-ascii curl1.log \
-c cookies.txt \
URL
#
# Sleep 2 seconds for operation to complete
sleep 2
#
# Acquire actual RAT Home Page using cookie
curl \
--trace-ascii curl2.log \
-b cookies.txt \
-u username:password \
URL
#
echo "Done"
Dynamips start and stop scripts
echo "Creating Loopback Interface tap 10"
sudo modprobe tun
sudo tunctl -t tap10
sudo ifconfig tap10 169.254.10.1 netmask 255.255.255.0 up
echo "Created Loopback with IP Address 169.254.10.1"
echo "Starting Dynamips on Port 7300"
sudo nice -10 dynamips -H 7300 &
echo "Done"
Stop Script
echo "Shutting Down Loopback Interface tap 10"
sudo ifconfig tap10 down
echo "Killing Dynamips Processes"
sudo ps -ef | grep "dynamips -H 7300" | grep -v "grep" | awk '{print $2}' | xargs -l1 -i kill {}
echo "Done"
Tuesday, February 2, 2010
Using xargs to poll using SNMP
cat snmp-packets | grep -i "Object Name" | awk '{print $3}' | xargs -l1 -i snmpbulkget -Cn0 -Cr19 -c public -v 2c 172.16.153.140 {}
Friday, January 29, 2010
Clear Frequent Files from Start Menu - Windows Media Player
Same list of frequently played videos is also available in Windows 7 Start Menu if you have pinned Windows Media Player 12 (WMP 12) to start menu. Many users do not want others to see what videos they were playing. Here is guide on how to clear and stop displaying WMP 12 Recent/Frequent List for those who don’t know how to clear frequently player video list of Windows Media Player.
Follow below steps to clear and disable Windows Media Player Frequent/Recent list from Start Menu and Taskbar Jump list of Windows 7.
How to Clear & Stop Displaying Windows Media Player 12 Frequent List in Windows 7
1. Open Windows Media Player 12 (wmp 12) from start Menu
2. Now click on Organize and go to Options
3. Under Options, Select Privacy tab
4. Now under Privacy tab look at History Section
Click on “Clear History” to clear Frequent/Recent List of Windows Media Player 12
Uncheck Music, Pictures, Videos & Playlist to stop displaying Windows Media Player 12 Frequent/Recent List.
Monday, January 18, 2010
Firefox on Mac OS X tab problem
An unexpected behaviour of Firefox on OS X is that when tabbing through web pages, especially forms, certain elements are skipped. This is quite annoying when form filling since you cannot tab to the “submit” button (or use the “I’m Feeling Lucky” button on Google without resorting to the mouse).
Correcting this is in fact very simple!
Tabbing problems in Firefox in Mac OS X
The solution I found to the problem was somewhat unexpected. How to address this is that the end user have to turn on Full keyboard access > All controls in System Preferences for it to work as expected. Like this:
1. Open System Preferences
2. Go to Keyboard & Mouse
3. Select All controls for Full keyboard access
Alternatively you can add / change the accessibility.tabfocus Firefox option via about:config to one of the following:
3 to be able to tab to form controls or
7 to be able to tab to everything
Tuesday, December 8, 2009
Installing Windows 7 from a External Drive
- Change directory to the DVD’s boot directory where bootsect lives:
d:
cd d:\boot - Use bootsect to set the USB as a bootable NTFS drive prepared for a Vista/7 image. I’m assuming that your USB flash drive has been labeled disk G:\ by the computer:
bootsect /nt60 g: - You can now close the command prompt window, we’re done here.
Monday, November 30, 2009
Password reset for Mediawiki
The easiest way to avoid this problem is to set an e-mail address in your account, so you can use the “Mail me a new password” feature. However, if you find that you’ve forgotten the password to an account on your wiki, and you don’t have an e-mail address set for it, you can reset its password as follows:
- Log in to phpMyAdmin with your SQL password.
- From the menu on the left, select the database corresponding to your wiki, and select the “user” table within it.
- Click “Browse” at the top, and note down the user ID for the account whose password you want to reset. (This will be 1 for the first account.)
- Click “SQL” at the top, and run the following command, replacing “uid” with the user ID and “newpassword” with the new password for the account:
- UPDATE user SET user_password = MD5(CONCAT(user_id, ‘-’, MD5(’newpassword‘))) WHERE user_id = uid
Mediawiki Upgrade
cd /var/lib/mediawiki/maintenance
php update.php
This will clean up the database.
More about Mediawiki Maintenance Scripts - http://www.mediawiki.org/wiki/Category:Maintenance_scripts