Friday, February 16, 2007

Flash memory stress test

My 128 MB Rundisk 2.0 flash drive somehow chose to remain in the pocket of my shirt when it was put for wash. Needless to say, it spun for over 1 hour 15 minutes in soapy dirty water, and I noticed it along with some unidentifiable shredded pieces of paper when I was hanging it out to dry.
Surprisingly though, it still manages to work just like before. I've dropped the drive multiple times from over 4.5 feet before, and put it inside my bag where it lay between all sorts of other hard non-electronic devices and managed rough handling that even my bag couldn't. But this, really, is some sort of a benchmark that it has managed to come clear of.

Sunday, February 11, 2007

BSNL's removed the upload cap too

[For ISP enthusiasts]

Background: I've a BSNL Dataone Home 500 connection.

(Feb 11th 12:50 p.m. - Upload to YouTube)

The indicator on the website was showing 52-53 KiloBytes/sec.(steady over minutes). I timed and found that 1 Megabyte gets uploaded in ~19 seconds (- If the 64 kbps upload cap was still on, it would have taken at least 120 seconds). This means BSNL has removed the upload cap too.

Note: Download tests from http://www.bandwidthplace.com/speedtest since Jan 1st, 2007, when BSNL removed the cap, have shown me results of 1 Mbps lots of times (~128 KBps for download), and at most other times, show respectable values between 270 Kbps and 1 Mbps. Earlier, whenever the connection was available, I almost always used to get the promised 256 kbps / 64 kbps speeds (~31 KBps download speeds).

Thursday, February 08, 2007

Scripting e-mail sending

[Technical]

For a long time, I was trying to find a way of sending e-mail from the command line, so that I could script/cron it. The alternative available was to write a Perl script to do the same, but I was too lazy to do so.
After trying hard and failing to understand sendmail, and not even finding a proper copy installed anywhere on the IISc LAN, I tried acheiving the result with Pine and failed too.

Mutt proved to be the saviour.

Steps (- substitute all italicized content appropriately):
1) Create a file henceforth called in with the following content:
To: bob@domain.com
Subject: Test message
Dear Alice,
...
Bob

You can add other fields such as BCC: etc. as well. Only the To: field is compulsory, the subject and body are not.

2) Run:
mutt -a attachmentfilename1 -a attachmentfilename2 -H in </dev/null

That's it.