Tuesday, March 22, 2005

javascript:document.write("<frameset cols = \"25%, *, 25%\"> <frame frameborder=0 style=\"background-color:#000000\" /> <frame frameborder=0 marginwidth=40 src=\"" + location.href + "\" /> <frame frameborder=0 style=\"background-color:#000000\" /> </frameset>")

Updated code:
javascript:document.write("<frameset cols = \"22%, *, 22%\"> <frame frameborder=0 name=b /> <frame frameborder=0 marginwidth=40 name=a /> <frame frameborder=0 name=c /> </frameset>"); a.location.href=location.href;b.document.write("<body bgcolor=\"black\"> </body>");c.document.write("<body bgcolor=\"black\"> </body>");

That's the code I wrote for a bookmarklet that I call 'Frameit'. You can copy the above code to a bookmark in Firefox, (get rid of the newlines of course). Clicking on it encapsulates the current page in a frame surrounded to the left and right by black frames. The frames are resizable. For a lot of pages, this improves the readability as the number of words per line is reduced and the background is black and uncluttered. It's great for reading books and documentation in kiosk (F11) mode.

Known issues:
  • Does not work with Internet Explorer (and I would really want it to because you cannot view HTML Help files in Firefox.) Updated code to make it work on Internet Explorer and Firefox.
  • Does not work on certain sites like Wikipedia, which seem to explicitly disallow framing.
Any Javascript guru's know how to fix these issues?

Thursday, March 17, 2005

In the finest traditions of Douglas Adams and Dave Barry, Mukul Sharma, a Mid-Day columnist presents How would Reader’s Digest present Red Riding Hood as a ‘Drama in real life’?

Sunday, March 13, 2005

What do you see when you look around you? Do you see the slow decline of a dying civilization, or do you see a glorious future for me and you and our children? This is not rhetoric. This is a question.

I have no real answers yet. In technological terms we are certainly better off than our fathers and mothers and our children will certainly be better off than us. We are in the midst of watching technology change around us, but the change is so gradual that we take most of it for granted. Looking back, the first computer I used was a BBC Micro, but I took the Internet for granted. My first phone was a stately old rotary phone issued by MTNL, but I took mobile phones for granted. Some things did jolt me a little. Dolly the sheep was cloned and I do remember thinking quite a bit about that. But on the whole it's not so hard to accept. Perhaps it's because I am an engineer, and I do understand science a bit more than the next person. But then again, I know enough non-engineers who also took all these things for granted, so perhaps it's just my generation. We were born into science.

I do worry sometimes that science will not be able to create enough to sustain us. None of us really take the time to accept the fact that we are creating too many children, and this planet may not be able to produce enough food for all of us. Nor will the planet's weather and soil systems be able recover from the pollutants we introduce. Perhaps science will be able to help. Perhaps. Call me when someone can replicate photosynthesis in a tube. When we can produce carbohydrates in a factory economically without using plants, using a energy source other than sunlight.

It is obvious though. Moore's Law is reaching it's limits and the next generation of life changing inventions will probably not involve computers and electronics.

Where civilization scares me a lot, is when we start discussing abstracts. Culture, art, theology, philosophy. Why can't I name a single artist, poet, or philosopher from my generation? What happened to us? Was it the television? Was it the Internet? (Was it [shudder] blogging?) This worries me because there should be something lasting that I should be able to recall when I am old. What will I remember when I am old and senile? The Simpsons? Star Wars? Grant Morrison? Or will my fate be worse and will tunes by Britney Spears and Ashlee Simpson stick in my head, and decide not to leave, hanging in there like some kind of memetic viruses? Why can't I name a single masterpiece painted by someone I can call a peer?

If a evangelist is reading this he (or she) will tell me that I will find the answers in God (or gods). I will, of course, tell him (or her) to go shove it, because my religion and beliefs are personal matter for me and not something I care to discuss with anybody except my intellectual peers. And most of my intellectual peers are jaded and cynical atheists.

Can you feel this void? You may not most of the time. We lead busy lives; there are creature comforts, minor irritations and career paths to worry about. But you will, on those cold nights when you can't sleep, there's nothing on the telly, there's no one to chat with and there's nothing you can do but think. Why am I here? Why are you here? Should we just not bother with answers and enjoy the ride? It sounds like a good plan, but I pray to God I don't have to follow it.

I have no answers. Not yet anyway. I just hope I do have some before my time comes.

Sunday, March 06, 2005

Got up. Got out of bed. Dragged a comb across my head. Then, for the first time in months, I opened the windows and walked out in the balcony.

It was warm today. Heavenly warm. Warm enough to give up the TV and the 'net. Warm enough to walk down to State Street. Warm enough to talk to strangers. Warm enough to drink cold beer walking on the frozen lake. It was warm today.

Tomorrow will be cold, so says the weatherman. Rain mixed with snow. Slippery roads and slow driving. But I don't care, it was warm today.

Right about now, people are going to start calling up, telling me that I should probably consider moving out of Madison, WI, to someplace like California, or Florida, or the Congo. Yeah, I probably should, but I'll do that next winter now. Summer is coming to Madison, and it's gorgeous. Summer, beer and bratwurst at the Union, sunsets at 9 pm, occasional rain, karaoke bar, and girls, girls, girls!

All I need to do now is wait. Summer is coming.

(My apologies to Paul and John.)

Wednesday, March 02, 2005

www.badindiangirl.com (link via Sepia Mutiny)

Hahahahahahahahahahahahahahahaha! This made my day!

How many Rajus, Payals, Johnnies, Pervert Uncles and Nosy Aunties do you know??

Sunday, February 20, 2005

Ok, something's up with Blogger. My posts after October's Crazy Template Problem don't seem to register with Blogger. (Look at my profile.) I'm guessing I broke something on that day. How to fix it? No idea.

Update: It seems to be a known Blogger issue. Hopefully they'll fix it soon.
So a while back (a couple of hours actually), I complained I have nothing to write about. Well, a quick trip over to comicboards seems to have fixed that. Someone on the JLA message board asked for advice on reading material, and everyone knows how much I love giving advice. Of course, for readers here, this is unsolicited advice, but then again, everyone knows how much I love giving unsolicited advice.

(Hillary Swank is so damn hot!!! I'm watching Saturday Night Live as I'm writing this and she is so damn hot!! Is she seeing anyone, I wonder? )

(I'm also beginning to freak out about the sudden downturn in my grammer and punctuation skills. I used to be very good at it, but now... Actually, I used to be good at a lot of things, but now... )

Among the best comics I'm currently reading or have recently finished are:

We3: Written by Grant Morrison and drawn by Frank Quitely, this is the scary, violent, gut and heart wrenching story about a dog, a cat and a rabbit. Make that a dog, a cat and a rabbit fitted with armor designed to kill and maim, as part of an army experiment. Something goes wrong and they have to be "decommisioned". They make a run for it.

This is a three issue mini-series, and the final issue was out a couple of weeks ago. You'll need to enter a real comic shop to get your hands on it. (Sorry, but you'll have to do that, maybe dark glasses and wig if you're nervous.) I'm not sure if DC Vertigo is planning a trade, but I think they need to. Reading this series will make you irresistible to the opposite sex. (Or the same sex if you're gay.)

Supreme Power: Written by Strackinsky and drawn by Gary "the motherf*{[!^g man" Frank. What would happen if a rocket containing an infant Superman really crashed down in Kansas? The government would forcefully take him away from the Kent's, that's what. Then, they would raise him in seclusion to be a model American citizen, use him as a secret weapon to win the Cold War, reveal his existence when necessary and finally try to kill him when they realize that they are beginning to lose their control over him.

The first twelve issues have been collected as trade paperbacks, and are available on Amazon. And new issues are out every month. (Yes, I've blogged about this series before, but I'm happy to report that the quality been consistently good all the time.)

Y - The Last Man: Written by Brian K. Vaughn and drawn by Pia Guerra and Jr. Jose Marzan. One summer day, everything alive carrying a Y-chromosome haemorrhages and dies. Escape artist Yorick Brown and his pet monkey Ampersand are the only males to survive. Sounds like a good thing for Yorick? Not if you consider that in an women-only world, some want to study him and find out why he lived, others want to make him a stud animal to breed and finally a bunch just wants to kill him because he is the final sign alive of a male-dominated society. All Yorick wants to do is to go to Australia and meet his girlfriend. Sounds interesting? It is. And there are four or five trades available on Amazon already. And the story is still on, growing stranger each month.

Miracleman: Written by Alan Moore, Neil Gaiman, drawn by Gary Leach, Alan Davis, Rick Veitch, Chuck Austen, John Totleben and Mark Buckingham. Astute readers of comics (and this blog perhaps) will quickly realize that I seem to have listed Allah, Brahma, God, Shiva, Vishnu, etc. in the credits. Is this series as good as it should be? It's better.

This is the series which started the whole superhero revisionist movement, a new look at superheroes, not just brawny men (and curvaceous women) in tights, but modern days gods, capable of changing the world, destroying it and creating it. And the men and women around them who worship them (temples and all), hate them, try to kill them and beg for miracles. How would you feel if you met who could fly? Someone who could block out the sun? Someone who was so perfect that you wanted them for yourself but were forced to share with the whole world?

This series is unfinished, and currently caught up a pretty nasty legal battle. Trade paperbacks are not available. If you want to read it, find it on Ebay, or at your local comic shop. Or the Internet. (Actually Wizard magazine says a trade could be out soon. Cross your fingers.)

(This was my first offline post. Flaky net connections suck.)

Saturday, February 19, 2005

Found. Some more desi photoblogs.

Chennaiblog
3D Cafe
Tasveer
Phantasmagoria

And what can I say about the loss of words on this blog. Apart from the fact that the last three weeks have been mighty busy, there is also the fact that nothing has happened.

Every day you wake up, go to work and come back home. I wish there was something more interesting I could be doing, but I'm not. (A vacation would be nice.) The worst part of having nothing to write about is that the little you do is terrible. The words don't come easy and they are as terrible to read as they were to write. So I'll stop.

Friday, February 11, 2005

Back home!

Saturday, February 05, 2005

Just a quick update in this busy busy week.

Ballad is fantastic horror comic by Deadmouse, available online. Other comics by Deadmouse are also pretty fantastic. (Keep in mind these are horror comics.)

Also online is Hellblazer #141 by Warren Ellis and Phil Jiminez. This issue was never published.

So press that F11 key for fullscreen browsing and enjoy.

Saturday, January 29, 2005


I am nerdier than 87% of all people. Are you nerdier? Click here to find out!


As the alt-text says, this means that I am nerdier than 87% of humanity. (High-Nerd. Somehow, I like the sound of that.)
Radio Paradise is finally available as a AACPlus stream. This means that even a dial-up user should (hopefully) be able to listen to high quality (near CD quality!) streaming music. You will need the latest version of Winamp to listen to this stream. Dragging and dropping the URL into the Winamp playlist should be enough to get things going.

Radio paradise is one of the best internet radio stations out there and introduced me to music like Air, Lemon Jelly, Nick Drake and the Thievery Corporation. And many other AACPlus streams are available at Tuner2.

Tuesday, January 18, 2005

And in honour of my successfully driving home in the snow, without doing something stupid like dying, I shall compose, quite extemporaneously a poem.
Snow, snow, ice, ice.
Snow, snow, ice, ice.

The car skids. Your breath waits.
You push down hard on the antilock brakes.
And pray to the engineers in Toyota who designed them.
And God.

And the car halts. And you drive carefully from there on.

And you don't die. And you don't die. Praise the Lord!

Yeah, that sucked, but who cares! I'm alive, alive I tell you!!

Tuesday, January 11, 2005

Philly radio DJ abuses an Indian call center worker on air.
(Full transcript via Return of the Reluctant)

Yeah, stuff like this make me realize I'm definitely not in Mumbai anymore.

In case someone wants to see a good (read: not offensively racist and sexist) parody about Indian outsourcing, check out Conan O'Brian's fantastic skit here. (Thanks to turbanhead.)

Sunday, January 09, 2005

Saturday, January 08, 2005

Fuck Hotmail! Seriously, fuck them!

Didn't sign in to one of my older accounts for a while, and they delete all my old emails (including old ones I had saved 'cause they were important.) Fuck them. World's richest damn company, and still stingy as hell with free email accounts. Fucking assholes. Sneaky bastards changed the sign-on once a month policy to a sign-on every 10 days policy. How the fuck am I supposed to know if I sign on only once a month?

Fuck them.

Monday, January 03, 2005

A couple of things.

I saw Swades by Ashutosh Gowariker. Preachy crap but good shots of inside NASA and halfway decent music. (Is it just me or does anybody else also read the title so that it rhymes with 'spades'?)

I taught three more innocent people the fine art of teen patti.

I realized how hard it is to raise a kid. And yeah, the kid was the best behaved little one year old I had seen in ages.

I got me a nasty sore throat again.

I met a lot of old friends and partied into the new year.

I realized that food is an extremely important driving force in my life.

Happy New Year everyone!

Wednesday, December 29, 2004

Five indispensable Firefox tips to get the most out of tabbed browsing,

  • Go to Tools, Options, Advanced, Tabbed Browsing -> Uncheck "Hide the tab bar when only one website is open"

  • Go to Tools, Options, Advanced, Tabbed Browsing -> Uncheck "Select new tabs opened from links"

  • Double click on the tab bar -> Open a new blank tab

  • Middle click on an open tab -> Close tab

  • Middle click on any link -> Open link in new tab in background

Middle click = click on scroll wheel if you have one instead of an middle mouse button.

If you don't have a scroll mouse, I suggest you get one. If you can't, then Ctrl-clicking does the same thing as middle clicking.

These seem like simple tips but they aren't very prominent in the documentation.
Settling in to another cold cold winter. A gray sky means warmth. A bright sunny sky means bone chilling cold. Snow means slippery roads and sun after snow means really slippery roads. Barren trees except for the evergreens, which seem to turn a darker shade.

Saturday, December 25, 2004

I'm typing this from the sixth planet of the Hoth system.

I installed GNU Emacs on my laptop the other day and I'm beginning to understand like what adulterers feel like. (This is just a temporary experiment gVim honey, I promise, just for the short duration that I feel like learning Lisp, it'll pass.)

Now initially, I had installed both GNU Emacs and XEmacs but I quickly uninstalled XEmacs. Now why would I do? Especially considering that XEmacs:

  • Installed easily and more cleanly on Windows

  • Seemed to have a much more polished UI with a functional toolbar and a tab bar for open buffers

  • Seemed to have a better menu design etc. etc.

Well, XEmacs took a while to start up, even on my AMD Athlon XP, with 512Mb RAM. That was enough to uninstall it. I mean, the only editor that's allowed to take that long to load up is Microsoft Word. Besides why would I install a polished Open Source product and rid myself of all the pleasure of tweaking around with a crappy one?

Anyway, now I can begin my nice little rant about how crappy GNU Emacs is compared to gVim and how to tweak it to make it better.

Let's begin with how GNU Emacs doesn't seem to understand anything at all about setting up a profile in the correct directory on Windows. (Actually Vim doesn't setup a profile in the correct directory by default too, but at least it will read off a profile in %USERPROFILE%.) Note to all Open Source developers: Windows doesn't ship with a %HOME% variable. Your options are %USERPROFILE% or %APPDATA%. %USERPROFILE% will be a easily accessible path, while %APPDATA% is typically a hidden folder. After running addpm.exe, a user has to manually add a key called HOME with his path in it, inside HKEY_CURRENT_USER\Software\GNU\Emacs.

Let's move on to changing the default font. I tend to use Bitstream Vera Sans Mono as my default monospace font. So it's time to manually create a _emacs file in %USERPROFILE% and add the following lines to it.
;;; Set various font options for Win32

(setq w32-enable-italics t)
(set-default-font "-*-Bitstream Vera Sans
Mono-normal-r-normal-normal-12-90-96-96-c-*-iso8859-1")

After doing that and restarting Emacs, you realize that Emacs doesn't seem to be using Windows XP ClearType rendering. (ClearType is sub-pixel font rendering for laptops and LCD displays which really improves the clarity of type on screen.) A quick Google reveals that the ClearType rendering mode on Emacs is disabled thanks to political issues with Microsoft i.e. due to unclear documentation from Microsoft. (Does anybody else except me see the irony in this?). gVim seems to have no problems using ClearType.

Now to install some keyboard shortcuts which are familiar to anyone who started on Win32. (Read: Mostly everyone). (These come preinstalled in gVim.) Stuff I needed to change was the familiar C-X, C-C and C-V for cut, copy and paste. C-Tab for next buffer, C-S-Tab for previous buffer and C-f4 for close current buffer. To achieve the clipboard stuff, you need to install the CUA mode for Emacs (http://www.cua.dk). I also needed to set tab length = 4 and turn on syntax highlighting by default. Add the following lines to _emacs to achieve the all of this.
;;; Enable CUA mode

(require 'cua)
(CUA-mode t)

;;; Set some Win32 keybindings
(global-set-key [C-f4] 'kill-this-buffer)
(global-set-key [C-tab] 'bs-cycle-next)
(global-set-key [C-S-tab] 'bs-cycle-previous)

;;; Set tabs to display as 4 characters
(setq default-tab-width 4);

;;; Start global lazy font lock mode
(toggle-global-lazy-font-lock-mode)


We're not out of the woods yet though. I still haven't figured out how to install A-f4 to replace C-X C-C. Or rather I haven't figured out how to have multiple key-bindings for one command in Emacs.

And after 3 days of Emacs, RSI seems like a real threat now. And no, I don't feel like replacing caps-lock with ctrl globally on Windows. I would rather install C-` as a clone for C-X. Also, how do you get Emacs to remember the directory the last buffer was opened from? Anybody know how to do that? (No, I haven't googled for this, yes, I might in the future.)

And yes, my sincerest apologies to anyone who was offended by the sheer geekiness of this post. (Even more apologies for all the trolling, it's cold here and I've been cooped up at home.) To avoid further geeky posts like this, send hot babes to:
<ADDRESS CENSORED>
Madison, WI