Saturday, February 17, 2007

Configuring Postfix to forward emails for multiple domains to local mailbox

A friend was recently looking to configure postfix, so that he could send emails from his laptop to several domains and have all of them show up in his local mailbox. I'm posting the simple configuration for postfix that helps make this happen.

  1. Check your postfix configuration. If you don't already have postfix, you can get it here. The instructions below all assume you have a Unix OS and shell. I did the below on a Mac OS X as well as a Sun OS host. I am sure it almost identical on most Unix environments.
    • Check that you have the postfix executable installed. (Usually in /usr/sbin/postfix)
    • Check that the configuration directory and files exist. (/etc/postfix/main.cf)
    • Ensure you have the access to edit the configuration files and create files in the postfix configuration directory. You will also need to restart postfix.
2. Edit the /etc/postfix/main.cf file. Add these lines at the end: (double check to make sure your spellings are correct. :)

# Testing virtual host domains
virtual_alias_domains = testdomain1.com testdomain2.com
virtual_alias_maps = hash:/etc/postfix/virtual


3. Edit /etc/postfix/virtual, and and these lines: (Replace recipient by any Unix user account you want to receive emails on your machine).

@testdomain1.com recipient
@testdomain2.com recipient


4. In the directory /etc/postfix, run the following command. This creates the hash database file needed by postfix for virtual alias table.

$> postmap hash:virtual


5. This above command would have created the file virtual.db in this directory. Verify.

6. Restart postfix. In case postfix is not running, you use "postfix start" to get it going.



$> sudo postfix reload
postfix/postfix-script: refreshing the Postfix mail system
$>


7. Test: (the user running the second command is the user whose account emails are being forwarded to, as per the settings in step 2 above).



$> mail -s "test mail" anyuser@testdomain1.com < /dev/null
Null message body; hope that's ok
$> mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/vikasgupta": 1 message 1 unread
>U 1 vikasgupta@localhost Thu Feb 15 11:33 16/505 "test mail"
$>


Postfix comes with plenty of documentation on how to configure and use it. For more details on the above configuration, look at the VIRTUAL_README in the postfix distribution. The utility postconf is useful to review the configuration once you've reloaded it into postfix.

Saturday, February 10, 2007

Whither India?

Debate's raging, it seems, on India's contention for the "next superpower." There's a CNN article that naysays it pretty loudly. Of course, if you are in India you can hardly escape the constant bombardment of the opposite.

India's contending for a permanent seat in the Security Council. India's sustained a growth rate of 8% year over year for four straight years. If you believe the economists in India, the country can sustain this growth forever more. Last Economist issue stressed the need for investment in infrastructure for India to be able to sustain this growth.

I spent a significant part of the last two years in India. I was based in Bangalore. I travelled through Mumbai, Chennai, Delhi, Pune. Being in Bangalore, it is impossible to get away from the constant buzz. Salaries jump at a phenomenal rate every year -- for the software/IT industry at least. We were desperately seeking engineers, and so was everyone else. In the end, it was hard to find talented engineers with significant experience, and still harder to hire them and nearly impossible to keep them happy.

Of course, it is tough to stay happy in a place like Bangalore. There are parts of Bangalore you may visit that remind you why this ruckus started in the first place -- the campus of IISc comes to mind. I recall one funny incident that highlighted what a mess this place has become.

I had landed at the Bangalore airport, and was taking the office taxi home. In order to get to my house, the taxi had to go through the central business district. No to say, the airport road itself -- that probably packs more vehicles per square inch than anywhere else in the world.

When I told the driver where I needed to go, he simply said, "No sir. We won't go there." Huh? I told him, gently, that I need to go there and he has to take me there. "No sir. We'll go somewhere else. Too much traffic, sir. Where do you want to go sir?"

Well, he finally came around, and we inched along.

The moral of the story is -- infrastructure in Bangalore, and many other places in India -- needs serious investment. It is improving, but not it's not keeping pace with the growth. In places like Bangalore, it is crumbling.

Superpower? Whatever. The term itself seems to be a leftover from the 80s.

Rails

I posted a couple of handy techniques for Rails here.

Anthony Lane is raving about the German movie "Lives of Others." It's yet to make it out to SFO, though. Economist recently carried an article about the resurgence of German cinema, and it makes references to Lives of Others as well.

Saturday, January 20, 2007

It's not the years...

During our trip to New Zealand, we had rented a car to tour the South Island. Everything was great, except that the car was quite below expectations. For starters, it had 160K miles on it. So, naturally when returning the car, we had some complaints. The guy argued that it's just two years old.

"It's not the years, it's the mileage!" said I. Of course, it didn't matter much to him, but I had the smug satisfaction of mouthing a neat quote from Indiana Jones.

New Zealand trip was great. We did the luge in Rotorua, bungee in Queenstown and sea kayaking in Milford Sound. It was rainier than expected, but didn't really make much of a difference in the end. Queenstown must be one of the prettiest towns in the world. Now I have to make it back there for snowboarding in their winters.

Tuesday, January 16, 2007

Bungee jump video...

I edited away the first non-jump :). This was really scary for me. I am sure it is easier the second time around -- though why I would want to do it the second time around is something I don't have an answer for.

This is off of the Kawarau river bridge near Queenstown in New Zealand. Apparently this is the first place in the world where bungee happened.

Enjoy!

Saturday, December 23, 2006

We the people...

These are words that many Indians will be familiar with. For those who are now, this are the first three words of the Indian Constitution (as it is of the US Constitution). This also happens to be the tagline of one of the decent movies with Shahrukh Khan -- "Swades."

But really that's hardly what I wanted to bore you with. If you ever doubt you are an Indian, there are some things that will give you a clue.

* Almost all Indians despise broccoli -- the (abominable) vegetable.
* Every other Indian knows who P.G. Wodehouse is, and if you know who Psmith is, you are almost definitely from India.
* All Indians have read Tintin, and many of them have even read Asterix. If you think you would have a good chance at "Who wants to be a millionaire" if the questions were all about Tintin -- I assure you, you must check your ancestory because you will find Indian blood there somewhere.
* If you have heard about Malgudi and you remember the fabulous Shankar Nag television serial on the book, you are decidedly an Indian, how much ever you may be ignoring it.

New Yorker recently had an article on R.K. Narayanan. I loved the article, because it was a pleasure to see an American magazine write about him. In India, I remember reading about him every once in a while in the Times of India.

My first experience with Malgudi was through the ever reliable Doordarshan in India -- the only television channel in the 80s. The other times were through occasional stories we had to read ("The Astrologer's Day" comes to mind) as a part of our school work. However as my interest in reading grew out of Alistair Macleans and Clive Cusslers, at some point I discovered R. K. Narayanan. His "Swami and Friends" remains one of my personal favorites ot this day. RKN had the singular ability to present several constrasting perspectives at the same time -- so much so that every thing he wrote felt real. Swami's experiences, somehow, never felt like fiction. His fears, his thoughts were incredibly genuine. Swamy to me in many ways was a more familiar answer to the other loveable character from literatur -- Tom Sawyer.

If you are ever looking for a literature from India written in English, I highly recommend you find yourself Swami and Friends by R.K. Narayanan. I also highly recommend the TV series Malgudi Days, but the DVD has only a small number of episodes. The episodes on Swamy's adventures are a lot more enjoyable, though.

Wednesday, December 20, 2006

End of the year...

The year's ending with a blast! This Saturday I am off to New Zealand for two weeks, wife in tow. It's summer there -- which means no snowboarding, unfortunately. Nevertheless there are plans for surfing, scuba diving, rafting, "zorbing", kayaking, hiking and lots more! Needless to say I am hyper excited. :)

In case you are looking for a refresher course for Scuba diving in the bay area, I recommend the Wallins in San Carlos.

Rounding up some movies I saw recently... Volver is great, but it isn't the level of Almodovar's earlier movies. After so many people recommended The Departed, I finally saw it. Despite my low expectations, I didn't enjoy it that much. The cast does a splendid job though. Mark Wahlberg was a surprise. Dicaprio was good. Vera Farmiga reminded me too much of Sophie Marceau. The only thing that's different in the movie from the Hong Kong original is the ending, and I preferred the way the original ended. Casino Royale makes a good Bond movie. I like the humor, the mood and the lack of gizmos -- Bond becomes more Bond.

Among a little older movies, Syriana was very good. Eddie Izzard's Unrepeatable was good but it's from a time before he's mastered his art. I've found some of his early stuff online that's pretty good too. I'll post some of it here sometime.

Jambool continues to be my primary pre-occupation. The current version of the site -- however limited the interface -- continues to be stable and up. A new version's in the pipeline, but a couple months out.

Meanwhile, best wishes for Christmas and New Years to everyone.

Tuesday, December 19, 2006

Cricket: Sreesanth Swinging His Bat..... Dhoom Machale?!

I was in splits watching this video. And they say cricket is a gentleman's game. It's about to change -- Sreesanth is here to make sure of that!

Tuesday, December 12, 2006

Count your bullets

There are two kinds of guns in movies. The first kind have a finite number of bullets. Usually six. Sometimes more, but still finite. The second kind of guns have infinite bullets. They go on forever. Superguns, let's call them.

In India, everyone born after 1975 knows that revolvers have 6 bullets. This fact comes up in one of the most famous Hindi film dialogues ever. But then the 80s came. This was a time when directors had to choose one of the two: hero carries infinite guns, or hero's gun carries infinite bullets. Most chose the second. Some chose the first. Some chose both. So, every once in a while you will find yourself watching a Mithun Chakravorty or Jeetendra go about spewing bullets into the scenery faster than you munch on the popcorn. So much so that the Indian cinema ran out of bullets and there were practically no bullets in movies in all of the 90s. All the mushy lovers who had gone into hiding came out in this time of peace.

Occasionally, though, some movie would come out where they remind you that bullets and guns obey the simple laws of physics: specifically, a bullet takes volume and a gun has finite amounts of it. Russian roulette is usually a good way to bring this fact up. Like they did in Dhoom 2, the recent mindless junk -- the scene Ranjit refered to in the comments to the previous post.

Usually, the fact that there are limited bullets makes for some interesting climaxes. Do you remember Neo battling it out with Mr. Smith at the Subway station? They go flying at each other, bullets zooming past, till they are on the ground guns at each other's heads. "You're empty." "So are you." Finite space even when their minds, supposedly, control the world around them.

Die Hard is another case in point. This movie remains to day the best action movie ever. Nothing beats it. The hero runs out of just about everything and still comes out tops. The climax involves a gun with just one bullet for the bad guy, one bad guy and some tape.

Talking about guns that need refills, when I think of Pierce Brosnan in Bond movies, somehow I only remember him refilling guns, hardly ever shooting. The other Bonds seem to do the shooting, and he was left to refill the magazines.

One has to admit, working with the laws of Physics makes more interesting movies. What's the fun in watching a hero with superguns just mow everyone in their wake. Unless. Unless the hero you're watching happens to the whacky Steve Zissou, played by the always wonderful Bill Murray, in a movie that almost seems to match the whackiness of Michael Gondry's.

Do you know more scenes with superguns that are worth watching? Or the other way round -- guns that run out of bullets? Do tell.

Saturday, December 02, 2006

Dhoom 2: A Review

I love motorcycles. That's why I went and watched this movie. That is the real reason and please do not ask me this question again.

Instead of a dull analysis of the movie, how about I walk you through the movie? Really -- scene by important scene, every dialogue (I remember all 5 of them). Ok, here goes.

Desert. Train. Queen. Wait. go back -- queen?? She looks like Hrithik Roshan's mother. Ah. Yes of course. Ok. Cut to long shot from sky. Sky diver. In funky clothes. Parachute. Robbery. Ridiculous stunts on moving train. Clap, clap. Song number 1, Hrithik's biceps dancing about. Women, close your mouths, please.

Lake. A run-down steamer. Looks like India. Loudmouth cop. Lands in trouble. Super cop shows up from under water. On a water scooter. Really. I-saw-it-with-my-own-eyes-so-believe-it-will-you? Scooter-diving-cop saves loudmouth cop. Audience regrets. They blow up some people. Audience shuts up.

Hot chick. Tight clothes. View: Neck down, waist up. From left. From right. Fires guns. Likes to makes holes in things. The best thing for a guy who ends up dying from her gun? Very precisely spaced holes on his torso. She walks. Hips swinging. Men drool -- on screen. "Inspector Bipasha, reporting, sir," she says. The older guy wipes off drool, stutters "Uh yeah, go sit in the room, put some handcuffs on, I need to visit the bathroom." She complies.

Everyone gets it on. Senior cop has pregnant wife. Seem to have junior cop for house clown. Senior cop gets it on with lady cop. Junior cop tries to. They use some mysterious robber for an excuse to get in a room and talk suggestively. Robbery happens. Another robbery happens. Lady cop resigns. "What no,Bipasha..?? what wil we look at" -- cry the audience. Enter Ms Rai. First scene, she's covered from head to toe. Don't worry -- not her eyes though. So she can walk, jump -- and most importantly, bat those pretty eyelids. Next scene, she takes the clothes off. Drool. Everywhere. Intermission. Theater needs to be cleaned.

Thank you for coming back. Theater's clean now. The movie? Eveyrone's partying in Rio. Carnival? Don't htey have the months wrong? Tsk, tsk. Can we just watch Bipasha in that bikini again? Hrithik's showing off. What's that? Someone's abs. Someone speaks. Oh, look, there's a face above the abs.

Eveyrone's partying. Looks like Abhishek's not invited. Sulks. Frowns. He's the only one clothed. He gets more facial hair. No saloons in Rio, I imagine. Only bikini wax shops.

Oh, the story. There's a robbery. A chase. You see a motorcyle. A helicopter that turns into two-bollywood-heroes-on-motorcycles. Cool invention, that. More sillyness ensues. Your head hurts from working so hard to make sense. Your eyes hurt -- from all the bulging muscles on the screen. You wish for some comic relief. How about Javed Jaffery bursting on to the screen with "Iggzaktly!" That would have been perfect.

Sigh.

Sunday, November 12, 2006

Some random stuff I've been watching...

Arish recently recommended House M.D. TV series. Netflix makes it easy to live a few years behind the world and catchup in a week -- so I am catching up to many seasons of this series. I am still on the fist season, and I've come to like it quite a bit. I think the reason Arish recommended it was that it has Hugh Laurie -- who made Wodehouse' Wooster come to life on screen. I like it -- to the extent that watching it sometimes made me want to become a doctor. It makes medicine seem more like puzzle solving than anything else.

I, of course, went to see Borat. When I saw the preview of the movie, it looked hilarious, but I was skeptical -- these things work well in half an hour sketches at more, but rarely have the lasting power to make a movie. Borat tries, but it's riding on marketing and hype. You have to hand it to Sacha Cohen though -- it's a performance worth applauding. The movie itself is ok -- he picks on the people worth picking on, and in many ways picks on the audience itself. But I still found it a tad boring -- thought it does have some very funny parts.

I've been meaning to watch The Departed. It's always a lot of fun to watch Jack Nicholson chew everyone else in bad boy roles like this one. But I haven't. Infernal Affairs was a damn good movie, and remakes, however well made, don't pack the same punch. Maybe, one of these days, I'll get around to it. Meanwhile, I do recommend Infernal Affairs -- the Hong Kong original that inspired it.

If you haven't seen the Gods must be crazy, you must. Both parts, I and II. Hilarious stuff.

Journey of Man is an interesting documentary. It traces genetic mutations to track human history all the way to 50,000 years ago when Man started to branch out of Africa and human race spread all over the world. Just for the science and the story alone, it's worth watching. But it does seem overstretched and seems to have missing pieces. It is also a promo vehicle for the presenter/scientist. Despite the flaws, it is a good story.

Tony Jaa might grow up to be the next Jackie Chan?

I've had a hard time finding something from Eddie Izzard as good as Dressed to Kill. But he was working solid magic in Definite Article -- something I saw recently. I am waiting for "Unrepeatable" to show up in the Netflix envelope one of these days...

In case you do not know, Almodovar's latest -- Volver -- should be out soon.

And so will be the new Bond flick, and the new Spiderman flick.

Tuesday, November 07, 2006

Murder by Death

The movie I am writing about this week is Murder By Death.

There are many reasons to watch this movie -- David Niven, Alec Guiness, Maggie Smith, Truman Capote, and the king of them all Peter Sellers. They all come together in this amazing comedy. Peter Sellers turns in a brilliant spoof of Charlie Chan -- his character in the movie is Wang -- and packs in a whole new, and even funnier, one liners that the Charlie Chan was synonymous with. And of course he delivers it without any prepositions. Take this: "Conversation like television on honeymoon -- unnecessary."

The movie itself is a spoof on several well known detective characters -- Poirot is Perriet, Columbo is Sam Diamond, Miss Marple is Miss Marbles, Charlie Chan is Sidney Wang, and so on. They all come together in a mansion, as guests of Lionel Twain, played by Truman Capote. The movie unfolds as a murder mystery -- or spoofs one. All these supposedly brilliant detective minds are supposed to solve the murder mystery to get a prize. Don't expect any brilliant detective work here -- just laughs.

Another cute one from the movie, this time by Sam Diamond -- "This all could mean just one thing.... and I don't know what that is!"

Wednesday, November 01, 2006

Jambool is in (private) alpha.


Jambool

A tale of two movies

The first movie is about a warrior who travels from the desert of Rajasthan to the snow of the Himachal, in a joueney to discover himself. The second, is a story of a woman who travels from Himachal's mountains to the sand dunes of Rajasthan to find someone else. So, in some ways, you can call this a Tale of two States.

The first movie is a patient, indulgent, raw-looking story of a "warrior" who gives up weapons, loses his son and finds some form of salvation. It's Asif Kapadia's The Warrior. Irfan Khan gives a splendid performance. The rest of the cast are non-actors, but the movie adds up quite well. It has a much more art-house feel to it -- it has subtle imagery that was lost on me initially.

The second movie is a little more popular cinema stuff -- though very different in its treatment than Bollywood stuff. It is Nagesh Kukunoor's Dor. The movie carries itself on some brilliant performances by its lead actors. The movie is shot very well -- it frames the sand dunes, the temples, the Himachal backdrop very well. It also has some really well etched characters -- at least the central characters. One can't say that Nagesh Kukunoor is a master of his craft, but he's getting better. His Hyderabad Blues seemed like a school project, his other movies in the middle didn't seem to break much ground either. But there were occasional flashes in the pan -- specifically Teen Deewarein and Iqbal.

Undoubtedly, he tries. Though he couldn't stop himself from giving Dor a crowd-pleaser of an ending. Nevertheless, it's good to see such cinema come out of India -- instead of the regular mush and dramas, or the remakes of Bachchan flicks of old.

Friday, October 20, 2006

Is it just me...?

Or does the hero of the new Don look like heroine of the old Don?









Thursday, October 12, 2006

Christopher Walken

I pretty much like whatever this guy does. He was Zorin years ago in A View to a kill, and he was the headless horseman in the Sleepy Hollow, not so many years ago. I remember him in a zillion small cameo-like appearances in movies from Annie Hall to Wedding Crashers. Here is a link to a video on You Tube (gTube now?) -- it's a music video for "Weapon of Choice." Yeah, Walken and music video? And it's a solo performance too... Check it out.

It's not a new one, but something I remember every time I see him on screen.

Monday, October 02, 2006

Sorting things out

Here is a simple problem. One that I am sure many of us would have encountered when programming. You are given a set of objects -- say customer orders -- such that each object is a fairly complex collection of attributes. Customer Order definitely qualifies. Now that you have this collection, I want you to give it to me sorted by order date.

Simple enough, right? All you need to do is sort them. But wait, you don't want to _write_ a sorting algorithm, do you? Really, how many of us have actually written a sorting algorithm since we left school? And rightly so -- others have done it well, have put it in a library for you to use, have tested it, and have written books about how good their library is, so really there's no point in writing one yourself. So, coming back to customer orders, how do you go about sorting them?

If you do it in C++, you'll probably rely on STL or something similar to manage your collection. In order to make your collection sortable, you will have to make sure your objects are 'Comparable' and the comparison works on the order date field. Simple but probably not simple enough. If you are a Java programmer, you probably did something similar.

C actually did it a little better. In the sort function you could pass in a pointer to the comparison function that would be called for comparing two objects in the array being sorted. All you had to do was to write a function that returned the comparison result based on date.

The reason C is even better is that when you need to have several different ways to sort this array of objects, it starts to get onerous with the 'Comparable' approach. You probably would have to wrap each class into specific Comparable versions for each field. In C you would just write a small function for the new field, and use that.

In Ruby, however, if you want to sort an array of objects, all you need to do is write code that looks something like this:

orders.sort! { |a,b| (a.order_date <=> b.order_date) }

This just feels beautiful. Sort it on customer name, no problem. Just sort it with a different code block. One line of code. That's it. There are no complex design patterns to worry about, no layers of Objects. It is definitely similar to C, but far more elegant, and far simpler. I recall it took me a few tries to figure out the function pointer declaration.

This kind of stuff makes it much simpler to design lean API -- because despite being lean, it doesn't require a bunch of glue code to make it work for a particular application.

Minimality of code has many, many virtues. Not the least of which is that less code implies less bugs. And that has to just spell happiness for developers, project managers and consumers alike.

Friday, September 29, 2006

Official Jambool blog

The first post to the official Jambool blog is out. More to come.

The reference there is to a movie called Abre los Ojos. It was subsequently made into "Vanilla Sky" starring Tom Cruise.

The post also made references to sleep, and while on that I should mention the recently out "Science of Sleep." Parts of the movie stuck chords. Though the movie seems to lose its path towards the end, the first 4/5th of the movie is quite brilliant.

Monday, September 11, 2006

Waisa bhi hota hai, part II

It seems the Arshad Warsi has arrived. The first draft of Munnabhai was, it seems, just a means to get to Lage raho Munabhai. I've been a fan of Arshad Warsi for a while. It's unfortunate that it took out audiences a Munnabhai to warm up to him. Where other actors are known for their comic timing (Govinda in his heyday, and Bachchan in his prime are a few), no one can light a candle to Arshad.

But wait, what I really wanted to say was that you should go see this movie called Waisa bhi hota hai, part II. No, it's not a sequel. This movie starts with a prologue -- that lasts about 5 minutes -- and the rest of the movie is "part II." It is an extremely rare Indian movie. Why? If you've watched Japanese cinema, you'd have marveled at its ability to find engineer ridiculous coincidences and make it seem natural. And the ability for characters to constantly surprise you. Why, I often wondered, is this quirkiness that is so omnipresent in life, and so evident to the Japanese, Korean and Thai filmmakers (and of course on Mr Tarantino), is it lost on the Indians? But then, as the Maruti ad goes, the times -- they sure are a changing.

Check out this gem of a movie. It also features an absolutely delightful song -- "Allah ke bande" by Kailash Kher. And wait for the movie credits to roll in the end. In one take, the film makers thank Beat Kitano, Tarantino and several others of my favorite directors for inspiration! That's another rarity in India cinema. For one, it is a fairly orignal movie, not a rip-off (afaik). Second, it actually lists people who inspired them.

Thursday, September 07, 2006

Movies of the week: Andaz Apna Apna and Main Hoon Na

I'm sure most people who read this blog would have seen Andaz Apna Apna. Probably more than once. So if I say I recommend this movie -- well, fat lot of use that is. But wait, it gets a little better.

You see, Andaz Apna Apna has apparently become a "cult" hit. I was trying to figure out what makes a movie a cult hit, and what I came up with was something that has limited appeal to the masses but over time builds credibility and popularity with a select following. AAA wasn't that big a hit when it first came out, but ever since then it has gained tremendously in popularity. So I guess it does qualify to be a cult hit.

I obviously do recommend this movie. It has its flaws, some slow parts that dragged a little bit -- they could have easily done away with a couple of songs -- but the movie is a laugh riot all through. But I recommend the movie for another reason. This movie is one of the rare Bollywood movies (the other one is the second movie in this post) that never takes itself too seriously. And it piles in quite a few homages and references to other movies.

For example, did you know that this movie's characters were loosely based on the characters from Archie comics? Aamir Khan is Reggie, Salman Khan is Archie, Raveena is Veronica and Karisma is Betty. Then, there are references to Aamir Khan's and Salman's movies. The twin brothers played by Paresh Rawal are Ram and Shyam -- a popular reference to the movie of yesteryears about twin brothers switching roles. Mehmood runs a studio called "Wah Wah Productions" -- something he was doing in a 60s movie Pyar Kiye Ja as well. Jagdeep plays "Soorma Bhopali" -- right out of Sholay. Shakti Kapoor is Gogo, the nephew of Mogambo -- Mogambo from Mr. India. There's a scene where the movie Sholay comes up in the dialogue, and Salman says yeah, he's seen it many times. Aamir retorts, yeah Salman's dad wrote it. Which, in fact, is true. Salim Khan (along with Javed Akhtar) did write Sholay.

The climax of the movie is one of the best half hour of Bollywood cinema. It is almost cartoonish in parts, and has a weird pelvis thrust "fight" sequence between Shakti Kapoor and Salman Khan. I haven't been able to figure out if it has any more subtle reference or meaning except maybe just a mojo war. In any case, if you ever need a dose of laughter, go get this movie.

I rarely ever recommend a Shahrukh Khan movie, but I thought the movie Main Hoon Na was a rare bird. I enjoyed this movie again primarily because it didn't take itself too seriously. In fact, it revelled in its pranks and subtle references and more. The movie has Naseeruddin Shah in a small role with a 20 year old past that haunts him -- and it is something right out of his 20 year old movie, Masoom. The movie takes off on Matrix, except that bullets are replaced by spit from Satish Shah's mouth as Shahrukh's character tries to dodge them. There's another sequence where Shahrukh drives a cycle rickshaw, chasing an SUV. The chase starts at a movie theater showing Sholay, and the cycle rickshaw, very cheekily, has "Basanti" (or was it Dhanno on the rickshaw, I can't remember) pasted on its back. The movie otherwise too unabshedly broke rules -- the sets would transform suddenly as a song kicks off -- and that makes it fun if you are ready to play along.