lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

results of poll

Very few people voted, but I am OK with that :-) . The first choice is MySQL tuning. However, I must give full points to Chad, who pointed out

Just be regular, I think most readers would demand this one thing only.

I agree Chad - I really need to be regular.

Thanks for voting!

tv conspiracy

A quote by Steve Jobs

When you're young, you look at television and think, There's a conspiracy. The networks have conspired to dumb us down. But when you get a little older, you realize that's not true. The networks are in business to give people exactly what they want. That's a far more depressing thought. Conspiracy is optimistic! You can shoot the bastards! We can have a revolution! But the networks are really in business to give people what they want. It's the truth.

The crap dished out on the Indian tv is mind numbingly bad. The actors in those serials go through the complete spectrum of human emotions in 30 minutes (even less than 30 minutes, if you factor in the ads). The really disheartening part about the whole thing is that there is no conspiracy.

converting spx to mp3

Since my constant companion, the video ipod, cannot play Speex format, I needed to convert a bunch of files .spx files to mp3 format.

This shell script should do the work for you (it will work for files with spaces in them)

sudo find ./ -name '*.spx' | while read FILE; do ogg123 -d wav -f - "$FILE" | lame - "$FILE.mp3" ; done

The -d wav -f - argument to ogg123 make it(ogg123) use the WAV driver and output the result to the stdout (given by -f -). The stdout from ogg123 is passed to lame, which converts the wav to mp3. Caveat: The id3 info in the spx file is lost and you have to add that to the mp3 files manually.

One interesting thing I came to know in this was how to loop over files with spaces in them. This is done by piping the result of find to the while read part. More details of this is here