Mysore Palace at night

After visiting the temple we came back to the palace to get some nightime pictures. There were thousands of families on the palace grounds walking around or sitting on the grass. We got some boiled peanuts from a guy in the parking lot and then hopped in the car to head back to Bagnalore.

Bollywood entertainment

yuva-mani-ratnam.jpg Last night I went out with Badi and Swaroop to see Yuva. The movie was in Hindi so naturally I couldn’t understand a word, but during the intermission I got a recap of the first couple of hours. Turns out I followed about 30% of what was going on. I guess the language of love (and violence) is universal.

The music was good and the action scenes (especially the big fistfight that takes place in the middle of traffic) were quite entertaining. I bought a copy of the soundtrack at the music store for 125 rupees. It included two CDs: 6 songs from the Yuva movie and a bonus disc with 10 of A.R. Rahman’s hits.

According to the critics, the movie was a bit of a disappointment. Apparently director Mani Ratnam is capable of much better work. But hey, what do I know about Indian movies?

Yahoo!ing in India

I’m currently in Bangalore, India for business. Yahoo! formed a software development center here about 3 years ago, and now the office has about 130 engineers.


I arrived a few days ago, but have been so busy with work that I haven’t had time to post any pictures. This is my first trip to India (actually, my first trip to any part of Asia). The Y! office is located on Mahatma Gandhi Road, which is one of the busiest streets in downtown Bangalore.


Inside the office looks about the same as the Y! corporate headquarters in Sunnyvale. The cubicle walls are lower, but the purple-and-yellow (and grey) color scheme is much the same. Here are Badi and Kalyan in a typical 4-person bullpen cube:


I arrived Wednesday morning, took a tour of the office, met with my team to do a short presentation, and made it back to the hotel around sundown before going to sleep. Thursday and Friday I gave presentations to a larger group of new employees introducing them to a wide variety of proprietary Yahoo! technologies.

On Thursday night after work we went to see a theater group called MISFIT perform three short plays. Very entertaining. We were planning a trip to Mysore today but unfortunately I’m not feeling very well, so we’ll probably go next weekend. I spent the entire day Saturday at the hotel in bed with a fever and dizzyness. Feeling slightly better today, but now I’ve got intestinal issues. Guess I should’ve heeded Venkat’s advice and avoided fresh fruits and vegetables. Hope to be feeling better tomorrow.

One thing I’ve noticed reading the papers here is that Indians really like puns. Coverage of the recent elections has been peppered with groan-inducing headlines like “Singhing in the Reign” and “In Sihkness and in Health.”

Real Food Daily goes kosher

rfd-logo2.gif Real Food Daily‘s restaurant in Beverly Hills is now certified kosher. Ariella and I went there for dinner last night and saw a statement of rabinnic supervision in the window.

Since they serve only 100% vegan food, RFD has always been “kosher by ingredient” in my personal opinion. Many people in the observant Jewish community will only eat in restaurants that have rabinnic supervision, so the fact that RFD is now certified kosher should open their cuisine to a wider audience.

Apparently they’re also going to be opening a 4th store in Studio City, and are considering expanding to Northern California as well. Closest thing I can think of to compare it to is Herbivore in San Francisco.

stubgen 2.06

Today I released stubgen 2.06, the first release since 1998.

stubgen is a C++ development tool that keeps code files in sync with their associated headers. When it finds a member function declaration in a header file that doesn’t have a corresponding implementation, it creates an empty skeleton with descriptive comment headers.

Last week Raphael Assenat sent me a message suggesting two new command-line flags to customize the output to his liking. He included very clean patch to implement the feature and his code worked perfectly. He even included manpage updates in his diff! This is exactly the way Open Source is supposed to work.

I took the opportunity to remove copies of getopt() and basename() that were bundled with the distribution since they’re found in any modern libc. Doing so also let me change the license from GNU to BSD, since I no longer want to contribute to RMS’s zealotry.

stubgen’s parser does not conform to the latest C++ standard. It’s a gigantic hack that I created when I was teaching myself lex/yacc. Hacking the yacc grammar further probably isn’t a good idea, since C++ isn’t an LALR(1) language anyways. It really oughta be rewritten to use a real C++ parser library.

T-mobile SIM unlock, part 2

I successfully completed the T-mobile SIM unlock process that I started yesterday.

T-mobile sent the following instructions:

T-Mobile Sim Unlock Request

Sim Unlock Reference: xxxxxxxx

IMEI: xxxxxxxxxxxxxxx

Unlock Code: xxxxxxxx

Thank you for taking the time to contact T-Mobile. Below you will see the Instructions for unlocking your Motorola device.

NOTE: Before you start you must have a foreign (non-T Mobile) sim card entered into the handset.

NOTE: If the phone displays, “Please wait to enter special code” or “Contact service provider,” you will have to wait for it to change back. Please be aware that the phone must stay powered on to do this. If the battery is low, be sure to plug it in. It could take 15 minutes to an hour to change back. If the phone does not change back, the handset will need to be replaced.

If the display reads “Enter Special Code”, enter the unlock code and press “OK”

If the display does not read “Enter Special code”:

1. Press and hold the * key until an entry box is displayed, then let go

2. Enter *, #, 3, 2, # and press “OK”

3. Enter the unlock code and press “OK.” The display should read “Completed” or


Thank You,

Sim Unlock Department

T-Mobile USA, Inc.

I dropped by Andrei‘s cube this morning and borrowed his AT&T card, popped it into my Motorola v60g phone and it said “Enter Subsidy Password.” The above instructions were supposed to be specific to my phone model, but of course they didn’t mention Subsidy Passwords at all.

Ignoring the instructions, I entered the 8-digit Unlock Code at the top of the message and hit OK. Worked like a charm! The phone displayed Andrei’s phone number and the network carrier info indicated “AT&T Wireless.”

Mission accomplished.