Thursday, March 31, 2011

source code

Darn it!

I just saw that there is an upcoming movie called "Source Code".

I got all excited because I thought it's a movie about coding. A real coding movie, not one where two teenagers type for 15 seconds and hack into the Pentagon. Or where the protagonist lands on a borg-looking alien mothership from light-years away and finds a convenient USB port.

I thought that maybe in the movie "Source Code", the characters would be solving some challenging problem. Maybe first they are stuck, then they come up with a solution. They start to celebrate, but it turns out be O(N^3)! They get discouraged, and shout at each other. One of them leaves in anger to take a walk by the river, where he sees a leaf fall onto the ground. The leaf inspires him to come up with a O(log N) solution! Then he races back just in the nick of time and presses "i" in his vim editor in order to start typing the code. I want a big close-up of his fingers as he types that initial "i".

Anyway, this is the description of the movie "Source Code":
When decorated soldier Captain Colter Stevens (Jake Gyllenhaal) wakes up in the body of an unknown man, he discovers he's part of a mission to find the bomber of a Chicago commuter train. In an assignment unlike any he's ever known, he learns he's part of a government experiment called the "Source Code," a program that enables him to cross over into another man's identity in the last 8 minutes of his life. With a second, much larger target threatening to kill millions in downtown Chicago, Colter re-lives the incident over and over again, gathering clues each time, until he can solve the mystery of who is behind the bombs and prevent the next attack. Filled with mind-boggling twists and heart-pounding suspense, Source Code is a smart action-thriller directed by Duncan Jones

WTF! What a huge letdown! This has nothing to do with source code!!!

Wednesday, March 16, 2011

but those koreans are even closer to japan

Talking to my brother about reports of radiation reaching Southern California due to the Japan nuclear reactor meltdown.

niniane: are you scared about the radioactive plume?
Tom: not much i can do about the radioactive plume
Tom: i can do with a few extra appendages
niniane: what will you do with them?
Tom: play starcraft 50% better

Friday, March 11, 2011

an entertaining video

My college friend Victor: "haha my whole life's effort learning cantonese is now worthwhile thanks to this video"

Wednesday, March 02, 2011


I like this poem.

Portia Nelson

1) I walk down the street.
There is a deep hole in the sidewalk
I fall in.
I am lost...
I am hopeless.
It isn't my fault.
It takes forever to find a way out.

2) I walk down the same street.
There is a deep hole in the sidewalk.
I pretend I don't see it.
I fall in again.
I can't believe I'm in the same place.
But it isn't my fault.
It still takes a long time to get out.

3) I walk down the same street.
There is a deep hole in the sidewalk.
I see it is there.
I still fall's a habit
My eyes are open; I know where I am;
It is my fault.
I get out immediately.

4) I walk down the same street.
There is a deep hole in the sidewalk.
I walk around it.

5) I walk down another street.