Archive for September, 2007

Its a year for world championships!

September 29, 2007 Leave a comment

After 20/20, this one.

Vishy won the FIDE World Chess Championship! Congratulations!

Categories: chess

The morning after

September 25, 2007 Leave a comment

Knock Knock

Who’s there?


Misbah who?

Mis bah five runs.


Categories: cricket

Want a good Lisp tutorial?

September 21, 2007 Leave a comment

Here is a great Lisp tutorial.

I first heard of Lisp in my programming languages class, but never paid much attention to it. Well, you could still pass that exam if you never learned a thing about Lisp (or any of the programming languages “taught” there), so I never bothered. Later when I started reading blogs and technical articles, I started hearing more about Lisp.

My first attempt at learning Lisp was from David S. Touretzky’s online book Common Lisp: A Gentle Introduction to Symbolic Computation. The book did not interest me and I never completed it. Later that year, I spotted Stephen Slade’s Object-Oriented Common LISP at Gangaram’s and bought it. That book went way above my head and I still did not get Lisp.

It was in late 2004 that I heard of Peter Seibel’s Practical Common Lisp. Peter was in the process of writing the books and he had put the content on the web. I started reading the online copy of the book but without much hope. I was pleasantly surprised! The book was actually a very good read and all those parenthesis started to make sense finally. Later when I ran into difficulties with a few examples in the book, I wrote to Peter. He was kind enough to reply and make minor fixes to the code in the book.

I still haven’t programmed much in Lisp besides a few toy programs. But I understand why people rave so much about Lisp – and I am grateful to Peter Seibel for opening my eyes. So when he made this request, I thought I owed it to him.

PS: Someone, I can’t remember who, borrowed the Slade book from me in 2004 and never returned it. If anyone reading this have it, please drop me a note. 🙂

Categories: books, tech

It is tough to be a bowler

September 19, 2007 Leave a comment

I expect this feat to be repeated many more times in 20/20 if the format ever catches on. I wish some minor modifications were made to the rules so that we have at least a semblance of an even contest.

Nonetheless, congratulations to Yuvi!

Categories: cricket

The Curse Of The FNU

September 17, 2007 389 comments

“What’s in a name? That which we call a rose
By any other name would smell as sweet.”
–From Romeo and Juliet (II, ii, 1-2)

I recently relocated from Tavant’s Bangalore office to the US one. I work in the San Francisco Bay Area on an H-1B visa. One of the first pieces of paperwork one needs to get done here in the US is to get a Social Security Number (SSN). My application for an SSN was rejected twice before it was eventually accepted – this post describes how I got it fixed.

On my Indian passport my name is listed as:

Given Name : Binil David Thomas
Surname :

Yes, the geniuses at Cochin passport office left the surname field blank! From the US Consulate, Chennai website (emphasis mine):

To process your visa cases efficiently, we recommend your surname and the given name written separately on the first page (the biographic data page) of your passport.

Surname (last name): Wesley
Given name (first name): John Edward

Once your visa is approved, the immigrant and the nonimmigrant visas will be printed as your name appears in your passport. If you do not have a surname listed separately, your entire name will be printed on the surname field of the visa. Your first name will be printed as “FNU” (first name unknown), per U.S. visa regulations.

By having “FNU” listed as your given name on your visa, you may have difficulty obtaining a driver’s license and social security card in the United States.

I did not notice this website before I went to get my visa stamped on my passport. Thus my name on the passport was listed as:

First Name : FNU
Last Name : Binil David Thomas

I am assuming that many databases might have the LASTNAME as a NON-NULL column, hence this weird formation “FNU BINIL DAVID THOMAS”. When I entered USA, being the dutiful gentleman that I am, I wrote my name on my I-94 exactly as it was in my visa.

My first application to get an SSN was rejected on the basis that the name on my passport (BINIL DAVID THOMAS) and the name on my I94 (FNU BINIL DAVID THOMAS) do not match up. I was asked to get an observation added by Indian authorities to my passport listing my name correctly. I went to San Francisco consulate, filled out the miscellaneous form (pdf), paid $10, and got a note added on my passport. The process was very straightforward and I am told (see map_boiler’s post at 07-25-2007, 11:08 AM) that there are mail-in procedures too. Here is the net result (click to enlarge):

Passport annotation

Armed with this note on my passport, I applied for an SSN again. This time the officer was willing to accept my application, but when she checked my immigration records my name there was listed as:

First Name: Olena
Last Name : Binil David Thomas

‘Olena’ is definitely not my name and nobody in my family is named so. 🙂 This I think was a genuine clerical or software error!

To get it corrected, I contacted the US Citizenship & Immigration Services(USCIS) office on the phone. They instructed me to take an appointment with USCIS San Francisco office and speak to an immigration officer. I explained my case to an immigration officer. She checked my petition papers and recommended my case to a Customs & Border Protection CBP officer located in the same building. The CBP officer issued me a new I-94 with my name as:

First Name: Binil David
Last Name : Thomas

Corrected I-94

So, now both my passport and my I-94 had the same name and in the right form! I applied for SSN again with the corrected I-94 with Binil as my first name, David as my middle name and Thomas as my surname – and this time my application was accepted. 🙂

Update Sep 13 2012: This post was written 5 years ago. I suspect that most of the information in the post is outdated. The comments still have useful information. I no longer keep track of the FNU issue, so I am disabling further comments on this post. Thanks for reading!

Categories: tavant, usa

Formatting source in blogs hosted on WordPress

September 6, 2007 3 comments

I sometimes post snippets of code on this blog. I have been searching for a way to provide proper syntax highlighting for the code I post here. There are many wordpress plugins which provide proper syntax highlighting, but since I use the hosted WordPress service, I cannot use any of those. GNU Sourcehighlight is the standard program people use of generating source highlighting, but for some strange reason I could not get that to compile on my iBook.

While looking for alternatives on the web, I noticed a package called Highlight. Highlight can generate syntax highlighted HTML files from program source files. It supports over 120 programming languages! I tried it few months ago, but soon ran into a limitation. Highlight output uses CSS classes and style definitions; to make it convenient to post code here, I needed a package that generated inline CSS styles.

I wrote to André Simon, the author of Highlight, requesting this feature. Today I got an email from André informing me that the new 2.6.3 release of Highlight has an option to generate inline css! I tried it out and it works well.

$  highlight -i -o HelloWorld.html --inline-css

And here is the snippet Highlight generated for me:

public class HelloWorld {
    public static void main(String[] args) {
         System.out.println("Hello, World");

Thanks and congratulations to André Simon!

Categories: blog, tech, wordpress