Skip to content

Monthly Archives: February 2007

Review: PaperbackSwap.com

PaperBackSwap.com is a website for people who want to trade paperback (and other) books. It allows you to post the list of books you have available to send. When somebody sees a book they want, they send you a "credit" to mail it to them. You can then use the credit to order a different [...]

Refilling laptop batteries!

The Li-Ion battery in my IBM Thinkpad X31 laptop has been getting a bit long in the tooth. Rated at a 4.4 AH capacity new, /proc/acpi/battery/BAT0/info told me that it was only holding 1.8 AH now that it was a few years old. (This is normal for Li-Ion batteries, which degrade over time, even without [...]

What if the highways were a subway system?

www.chrisyates.net has a very nice image of the interstate highway system map simplified like a subway system.

Changing timeout time for mounting encrypted partitions on Mandriva

If you have an encrypted partition in Mandriva 2007, by default on boot-up the system gives you only 5 seconds to say you want to mount it on boot-up, which can be very easy to miss. If you edit the /etc/sysconfig/autofsck file to change the AUTOFSCK_CRYPTO_TIMEOUT= variable to something longer (such as 45) it will [...]

Search and Replace a string in many files recursively on unix

find /net/hc287/summetj/research/dist1 -name "Root"
-exec perl -pi.bak -e's/summetj\@flux.cc.gatech.edu:/summetj\@wilks1.cc.gatech.edu:/g' {} \;

The above command line will find all files named "Root" recursively under the  /net/hc287/summetj/research/dist1 direcotry and execute perl to replace the string "summetj\@flux.cc.gatech.edu:" with the string "summetj\@wilks1.cc.gatech.edu:"  It also keeps a backup of all the changed files as Root.bak, just in case….
The {} is replaced [...]

Google error message

This is the first time I've ever seen an error message from any google service. I was browsing Google News and opened a news story in a seperate tab. Aparently, the google click-tracking (that forwards you to the news story) was having problems. As you'd expect from their homepage, the error message is very simple [...]