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 give you plenty of time.
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 by the find command with the name of the file, while the \; tells find's -exec command where the program arguments end. The @ signs are escaped by \'s. This is useful if you need to search and replace a string in many files in a directory tree to update some settings, for example, if the CVSROOT machine has been changed from flux to wilks1 and you don't want to do a full new checkout of 45MB over a slow link.
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 and to the point.
Generating power from Dry Ice [CO2 (s)] via a peltier junction
While exploring alternate energy sources, I decided to try generating electricity by using the latent heat (or lack thereof) in Dry Ice, or solid CO2. The most direct (and solid state) way to generate electricity from a temperature differential is a peltier junction, which a 12V car cooler/heater unit happens to have. The pre-built cooler is also nice as it has a large aluminum bucket in the bottom to act as a heat sync for the dry ice, and a large heat-sink on the air side as well. (The mounting system for the peltier & heat-sink is very critical, so it was nice to find one pre-built.)
Ever get carded buying candy?
Cingular Blackjack (Samsung SGH-i707) impressions
The Samsung Blackjack is a nice piece of hardware. The screen is beautiful, it is well proportioned and fits well in my hand, the scroll-wheel makes it easy to select from menus, and it's thin enough to be carried in a hip pocket despite the factthat it's wider than most phones. The camera is adequate for a cell phone, and the speaker is plenty loud. The phone actually has two speakers,one in the ear-piece, and one on the back that is used to play audio from everything that isn't a phone call (movies, mp3, speaker-phone). The only downside to this is that people behind your phone get better (and louder) sounds than you do, which may be good for sharing music, but isn't as appreciated when you're watching a movie in public. As with every other 3G device I've played with (namely the LG CU500) a standard Bluetooth headset works for call audio only, and will NOT play mono-only sound from the movie/mp3 player. See my rant on 3G phones and why I hate this.
Bad experiance with two 3G phones and Bluetooth Headsets
I have tried out two 3G phones that work on the Cingular Network, the LG CU500 (a flip phone) and the Samsung SGH-i607 (a.k.a. Blackjack) Windows Mobile smart-phone. Both devices support the A2DP Bluetooth profile, for connecting stereo Bluetooth headphones to listen to stereo audio in movies and music, but… Continue reading
Using bluetooth PAN / DUN on Samsung Blackjack with Linux
The key to teathering your linux laptop to your Cingular Blackjack phone is enabling the Bluetooth DUN profile on the blackjack. Although it shows up by default, it won't work unless you are running the Internet Sharing application. (Which, Cingular has hidden from you, yay carriers!) Continue reading
Finding bluetooth link keys under Mandriva ( /var/lib/bluetooth )
For some reason, Mandriva has moved the default bluetooth link key location from /var/lib/bluetooth to /var/lib/lib/bluetooth. So, if you are looking for link keys (to delete to force a new pairing, etc) add an extra lib.
How to locate the Bluetooth DUN (Dial Up Networking) profile of a phone
When running linux, you sometimes want to connect to a cell phone (using it as a modem) over bluetooth.
Different cell phones use different RFCOMM channels to export their Dial-up Networking service on.
Here are the commands to use to find which channel you should use: Continue reading