Memoirs In Free Fall

November 17, 2006

Someone else gets it.

Filed under: Uncategorized — Tags: , , — amit @ 12:43 am

It’s rare for me to find an Indian blogger who actually has a clue.

Found one!

The next time some Indian moron goes on about how much better it is to live in India because it’s cheaper, I’m going to slap him in the face with this — India is about 70 times more expensive than the US when it comes to prices vs spending power. (The numbers are a little off — India’s GDP is closer to USD 650 per capita, not USD 450, but the vast disparity stands.)

Items that are several times more expensive in India than the US or even, say, Dubai, include pasta, cheddar cheese, most electronics (laptops cost three times as much here), gasoline/petrol, cars (yes, USD 35,000 for a Hyundai Sonata) and, my mother says, even basic necessities like fruit and rice.

He even slights India’s collective intelligence. More than once.


I’m pretty close to quitting my job because management is making my life difficult, and I hear things are about to get a lot worse. In the face of declining appreciation and increasing pressure, intrusion into my personal zone and poor management, I’m looking to leave for greener pa$ture$. If anyone can help me emigrate out of this hellhole once and for all, it would be much appreciated.


Thank you Mathew for producing this Demotivator at diy.despair.com:

Get. Me. The. Fuck. Out. Of. Here.

Brilliant, it captures the despair and squalor all at once.


Speaking of Mathew, I thought this observation was quite apt. In geekspeak, I do believe this is what we call being 0wned.

November 12, 2006

Operating Opera

Filed under: Uncategorized — Tags: , , , — amit @ 6:41 am

So I got really sick of the fact that YouTube doesn’t offer the ability to prefetch a video before playing it (instead of, as often happens on my 256 kbit/s downstream, suffering stuttering and then having to play it again later), and looked for a way to steal the .flv that it plays.

I didn’t have to look long before I found YouTube to me and Google Video Getter. These are GreaseMonkey scripts. Now, GreaseMonkey’s just a Firefox extension that won’t work on Opera, right?

Not quite.

Opera, since version 8, has supported “User JavaScript”, i.e. GreaseMonkey scripts. You hit the Preferences, Advanced tab, Content category, JavaScript Options button, and specify a directory containing GreaseMonkey scripts at the bottom.

Now these scripts specified above don’t appear to work with Opera. I’m using the Flash Player 9 Update pre-release for Linux (in conjunction with libflashplayer for OSS goodness, so I can use the hardware-multiplexing NVSound driver for my onboard NForce audio), and I guess Adobe/Macromedia changed some things around so the scripts don’t work any more.

Never fear, I’ve figured out fixes to the scripts.

For YouTube-to-Me, change

var download_url = 'http://youtube.com/get_video?video_id=';

to

var download_url = 'http://www.youtube.com/get_video?video_id=';

Additionally, change

var t_id = playerDiv.src.match(/t=([^(\&|$)]*)/)[1];

to

var t_id = playerDiv.getAttribute("SRC").match(/t=([^&$]*)/)[1];

Apparently either Opera or Flash no longer allows access to the src attribute directly. getAttribute(“SRC”) works admirably well, though.

For Google Video Getter, change

var video_url = unescape(video_obj.data.match(/videoUrl=([^$)]*)/)[1]);

to

var video_url = unescape(video_obj.getAttribute("SRC").match(/videoUrl=([^$)]*)/)[1]);

A similar situation appears to apply.


I recently rented a Linux vserver for the princely sum of $6 a month. I intend to set up Apache + PHP + MySQL on it and run a CMS and some genealogy software. It’s running Centos 4.4, essentially Red Hat Enterprise Linux 4 Update 4.

Any suggestions for either the CMS or genealogy software are welcome. My restrictions are that the processor on the vserver host is a 2.53 GHz Celeron D, the memory allocation is 128MB and the disk space is 3GB, so that sort of rules out anything J2EE/JSP/Servlets or ASP.NET based.

Blog at WordPress.com.