Compute MD5 sum on Solaris
digest -a md5 -v /path-to-file
Back button does not cause page reload
window.onunload = function(){}; Now it does…
could not open default font ‘fixed’
After adding etherape for network monitoring, the vncserver would not start and returned the following error: Fatal server error: could not open default font ‘fixed’ After a lot of googling, the following worked. apt-get –reinstall install xfonts-base
Delete stuck read receipt in Outlook
After changing ISPs in mail setup in Outlook I found that I had a read receipt that was stuck and stopped the normal send and receive. To fix this, I downloaded MDBVU32.EXE from Microsoft and then followed the instructions here http://www.howto-outlook.com/howto/deletereadreceipt.htm Basically, log on to the parent window, open the message store, open the root [...]
New graphics card
I got a new graphics card for Christmas for my hackintosh. Its an older model Nvidia 8300 GS which has the lowest power consumption I could find so I don’t overload my power supply but still is HDTV ready. I got it working eventually by configuring the NVCAP using OSXTools and choosing custom and then [...]
Convert DateTime to Date in SQL Server
SELECT CONVERT(DATETIME, FLOOR(CONVERT(FLOAT, DateField)))
Restoring from time machine
A successful time machine restore will still leave the Hackintosh PC dead because the MBR will be destroyed. After the restore, use ms-sys to recreate the MBR (sudo ms-sys -m /dev/sda) and set the boot flag to the first primary partition using gparted. Now use the installation DVD to install Chameleon so it will boot [...]
Hackintosh Adventures
Upgrading to 10.5.7 was problematic. My working 10.5.4 install would not have supported the video card which I wanted so I had to bite the bullet. Steps Restored from TM backup Installed iAtkos 7 over the top choosing Voodoo kernel 9.5.0, Chameleon2 and USB kext (No network, No Video) Successful but the root password has [...]
Bulk Rename of Files
I had a lot of files like .xml.bad which I wanted to rename to .xml perl -e “use File::Copy; map { $y=$x=$_; $x=~s/\.bad//; File::Copy::mv $y,$x; } glob (‘*.bad’);”
Append date and time to a filename in DOS
Sometimes its necessary to append a date and time to a file after processing it in a script. The %date% and %time% variables hold the date and time respectively and can be manipulated. e.g. ren myfile.txt myfile.txt.%date:~10,4%%date:~7,2%%date:~4,2%%time:~0,2%%time:~3,2%%time:~6,2% This can be put in a loop (all one line) for %%a in (bw*.txt) do ren %a %a.%date:~10,4%%date:~7,2%%date:~4,2%%time:~0,2%%time:~3,2%%time:~6,2%