Thursday, April 30, 2009

Book Ratings

Another note to self. Book ratings:
Scale of 1 to 10.
R = reread

Dune 1 - 9
Dune (last one) - 10 R (might be difficult without rereading the entire series)
Alan Stelle - Coyotte 1 - 9 R
Alan Stelle - Coyotte 2 - 10 R
Alan Stelle - Coyotte 3 - 6
Jared Diamond - Guns Germs and Steel - 7

Monday, April 27, 2009

Microsoft LifeCam VX-1000 driver download

The Microsoft LifeCam VX-1000 driver is a pain to find on the internets:

http://download.microsoft.com/download/C/B/8/CB8414CD-487E-4E18-8B24-DA8ED722C770/LifeCam3.22.exe

Feel free to click on some of my ads if this post has saved you some headaches or time =)


This driver also works for
* LifeCam VX-2000
* LifeCam NX-3000
* LifeCam NX-6000
* LifeCam VX-1000
* LifeCam VX-3000
* LifeCam VX-6000
* LifeCam VX-5500
* LifeCam VX-5000
* LifeCam VX-7000
* LifeCam Show
* LifeCamCinema

Also, if you cant download the driver from the microsoft site, i am providing a mirror on my server for the download (please be gentle):

Mirror: http://programmingdrunk.com/random-stuff/LifeCam3.0.exe

edit 7/28/09: Some people are having problems getting this webcam to run on windows Vista with 4GB+ ram. There is a hotfix for that here:
http://thehotfixshare.net/board/index.php?autocom=downloads&req=download&code=confirm_download&id=126 (Windows6.0-KB933433-x64.msu)

Friday, April 03, 2009

Trim a string in perl

problem:
I am a perl noob and i need trim a string.

solution:
1) if i can modify the actual string:
sub trim {$_[0] =~s/^\s+|\s+$//g}

2)if i don't want it to modify:
sub trim {my $s = $_[0]; $s=~s/^\s+|\s+$//g;return $s;}