Archive for November, 2008

A simple “google for” Tcl script

Monday, November 24th, 2008

I make extensive use of Google throughout the day and I’ve always got “g” set up as the keyword for a Quick Search in Firefox. However, I also spend a lot of time at shell prompts, and sometimes I don’t want to bounce to a browser just to Google for something.

So, tonight, I wrote a small Tcl script that lets me “google for” at the prompt. Just save the previous link and rename it to “google” and move it somewhere in your PATH like /usr/local/bin, then make it executable with chmod 755.

The script requires Tcl with tDOM installed, as well as Tidy–both of these things are installed out-of-the-box on MacOS X 10.5 Leopard.

Once you get the script installed, you can do something like this:

'google for' screenshot

If you notice, for Google search queries that have a special result like the one above, the script displays it separately before the results. The script also emits the search query URL so you can just Control-click on it in Terminal and then select “Open URL” and have it pop up in your browser, which also works for any of the search result URLs.

I don’t know if anyone else would find this script useful, but it’s already saved me a ton of time–especially when I’m on a slow 64 kb/s GPRS connection like I am this evening. Either way, I’m releasing this script into the public domain.

Tags: , ,

SAA’s in-flight entertainment runs on Linux, apparently

Monday, November 24th, 2008

Apparently, South African Airways runs some kind of Linux for their in-flight entertainment system.

In-flight entertainment FAIL

Of course, on the leg of the trip from New York to Senegal, the flight staff kept rebooting the system trying to get it to work, with very little luck. Most of the time we just stared at the Linux boot process hanging, trying to talk to the NFS server. Fortunately, they got it working for the Senegal to South Africa leg of the trip.

Tags: , ,

Vodacom 3G speed tests in Johannesburg and at Sun City

Monday, November 24th, 2008

Just a quick post with a few speed tests captured at Cresta Shopping Center in Johannesburg and at Sun City near Pilanesburg.

Cresta Shopping Center

Vodacom 3G speed test at Cresta Shopping Center

Sun City

Vodacom 3G speed test at Sun City

Tags: , , ,

Vodacom 3G with Huawei Mobile Connect E172 in South Africa

Friday, November 21st, 2008

This morning I stopped into the Vodacom store in Cresta Shopping Center, where I picked up a Huawei Mobile Connect E172 USB adapter for around R2,400 (roughly USD $240) without a contract. I purchased a SIM card for another R12, and signed up for a 5GB/mo data bundle for R980.

Vodafone E172 (Huawei Mobile Connect) USB adapter

First impression: If this is 3G, then 3G just isn’t that impressive. Right from the shopping center, my speed tests were showing 82 ms pings (nice!) but only 1,075 kb/s down and 324 kb/s up. It’s very usable, but nowhere close to the “7.2 mbit/s” sales pitch of 3G. Still, the low latency makes it suitable for VoIP calling which is great.

What does impress me is the fact that right now I am sitting in Pilanesburg at Kwa Maritane and I’m able to get a GPRS connection, 539 ms ping with 47 kb/s down and 28 kb/s up. I’m practically “in the middle of nowhere” and I can still get GPRS. Back in America, this would almost certainly be a dead spot with no reception at all.

I’ll be here for the week, trying to survive on this slow connection–it’s okay for pushing and pulling emails without attachments and simpler web pages, but it’s going to make doing most of my work really challenging. I might have to pop down to Sun City to see if I can get better speeds to work with.

Tags: , , , , ,

Oh, that first cigarette always tastes SO good

Thursday, November 20th, 2008

Arrived in South Africa safe and sound as well as all our luggage. The kids were freaking awesome–they’re really cut out to be world travellers. I even survived the 18 hour stretch without a cigarette, without being all cranky and stuff.

Now, we’re at my mother- and father-in-law’s house in Victory Park, Gauteng and for now I’m using their ADSL connection. Here’s the speedtest.net results:

Speed test of Telkom SA ADSL

Tomorrow, we head into Cresta Shopping Center so I can pick up a HSPDA/3G card for my MacBook Pro and a few SIM cards for our BlackBerry phones so we can make local calls.

I’m being called downstairs for dinner, but I’ll try to fill in some more details when I get a chance.

Tags: , ,