0

Compute MD5 sum on Solaris

Posted by admin on Aug 29, 2010 in Uncategorized

digest -a md5 -v /path-to-file

 
0

Back button does not cause page reload

Posted by admin on Jul 20, 2010 in Uncategorized

window.onunload = function(){}; Now it does…

 
0

could not open default font ‘fixed’

Posted by admin on May 25, 2010 in Uncategorized

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

 
0

Delete stuck read receipt in Outlook

Posted by admin on Jan 4, 2010 in Uncategorized

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 [...]

 
0

New graphics card

Posted by admin on Dec 30, 2009 in Uncategorized

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 [...]

Tags:

 
0

Convert DateTime to Date in SQL Server

Posted by admin on Nov 26, 2009 in Uncategorized

SELECT CONVERT(DATETIME, FLOOR(CONVERT(FLOAT, DateField)))

 
0

Restoring from time machine

Posted by admin on Sep 30, 2009 in Uncategorized

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 [...]

 
0

Hackintosh Adventures

Posted by admin on Sep 30, 2009 in Uncategorized

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 [...]

 
0

Bulk Rename of Files

Posted by admin on Aug 22, 2009 in Uncategorized

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’);”

Tags:

 
0

Append date and time to a filename in DOS

Posted by admin on Jun 30, 2009 in Uncategorized

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%

Tags:

Copyright © 2008-2010 Brinsmead Data Services All rights reserved.