Wednesday, March 25, 2009

Celebrating the Ada Lovelace Day

Apparently today is the Ada Lovelace Day (http://is.gd/eDkM).

Who is Ada? Ada is an awesome lady. She is often credited as being the first computer programmer.

Ada Lovelace was one of the world's first computer programmers, and one of the first people to see computers as more than just a machine for doing sums. She wrote programmes for Charles Babbage's Analytical Engine, a general-purpose computing machine, despite the fact that it was never built. She also wrote the very first description of a computer and of software.

Ada is also a strongly-typed language named after Ada Lovelace. It's a strongly typed language because it has restrictions on how operations involving values having different data types can be intermixed. It's commonly used in military and aviation. The fly-by-wire system software in the Boeing 777 was written in Ada.

Oh yeah, I love this badge I got from SIGCSE 2009:

Thursday, March 05, 2009

SIGCSE 2009 Pre-symposium and 1st Day

Finally the SIGCSE 2009 conference is coming. For those who do not know SIGCSE, it's the most prestigious conference all over the world focusing on Computer Science education. It's sponsed by ACM and companies such as Microsoft, Google and Sun. The attendees are mostly professors coming from all over the world to Chattanooga TN for this 5-day event.

The weather in New England is so unpredictable. Originally I planned to go on March 2 from Manchester NH to Chattanooga TN for the SIGCSE conference. But on March 2 we had a huge storm in the New England area. Even when we were still having the storm, on the Manchester airport's website, it still showed my flight "on time", so we had to drive to Manchester for almost one hour in the storm. When we arrived at the airport, I was told that the flight after the connection in DC was cancelled. The airline rescheduled my flight to Manchester -> Philadelphia -> Charlotte -> Chattanooga. But at that time Philadelphia was having a Ground Stop. No planes were allowed to stop there. The flight attendants were not sure if the flight was cancelled or just delayed, so everyone were stuck at the airport. After 8 hours' wait and feeling dehydrated, I finally decided to go the next day.

The next day, which is March 3, I finally went on a flight to Chattanooga TN for the SIGCSE 2009. Chattanooga was colder than I thought, but it's surely a nice city. The hotel I'm staying is called Chattanooga Choo-Choo, belonged to Holiday Inn. Chattanooga Choo-Choo is one of the historic hotels of America.

Quoted from historichotels.org:

From 1909 to 1970, all trains to points south passed through Chattanooga’s famous terminal, which was designed by a 24-year-old architectural student from New York. The terminal’s first plans were modified at the behest of the president of the Southern Railway System to emulate the National Park Bank of New York. Unable to compete with faster modes of travel, trains stopped running in 1970; but the terminal was saved from demolition in 1973 by a group of local investors. The1909 station, with its magnificent 85-foot free-standing dome, is thefocal point of this 24-acre historical property that features exceptional accommodations, spirited dining venues, family fun, and, of course, the finest in Southern hospitality.




This year is the 100 year of Chattanooga Choo-Choo.




View from my room:



Although the conference starts on Thursday Mar. 5, they already have workshops and pre-symposium activities on Tuesday and Wednesday at the convention center. On Wednesday, I attended the session From Java to C# - How, What and Why hosted by Microsoft. C# is still my most favorite programming language. It doesn't have so many bugs as Java, and it is so easy and enjoyable to use. This half-day pre-conference workshop is intended for Java faculty interested in learning more about the .NET platform, C#, and Visual Studio 2008. The preconference is being delivered by Joe Hummel, PhD, Associate Professor of Computer Science at Lake Forest College. Joe has been teaching Microsoft technologies, both academically and professionally, since 1992 and the days of VB3. Joe has created and presented summer workshops on .NET since 2002, and he is the author of LINQ: The Future of Data Access in C# 3.0.


(the convention center)

As part of my volunteer work, I helped out SIGCSE to stuff packets for each attendees on Wednesday. There were numerous people attending this conference. These packets will be handed to the attendees on Thursday at the registration booth.

Some pictures taken at the convention center:






In late afternoon, after I left convention center to go back to my hotel, I chose to walk instead of taking the free shuttle in order to explore downtown Chattanooga.

The shuttles in Chattanooga are completely free, and they are electric, which means that they have zero emissions. You could take any shuttle to go around downtown Chattanooga. These shuttles are also equipped with free Internet access.



Some pictures of downtown Chattanooga:





For more photos, go ahead and check out my picasa album.

Tuesday, February 24, 2009

Clam Chowder Recipe

Got this recipe from allrecipes.com. I've tried it so many times. It's the best chowder I've ever tried.

Prep Time: 25 Minutes
Cook Time: 25 Minutes
Ready In: 50 Minutes
Servings: 8

Ingredients:

3 (6.5 ounce) cans minced clams
1 cup minced onion
1 cup diced celery
2 cups cubed potatoes
1 cup diced carrots
3/4 cup butter

3/4 cup all-purpose flour
1 quart half-and-half cream
2 tablespoons red wine vinegar
1 1/2 teaspoons salt
ground black pepper to taste

Directions:

1. Drain juice from clams into a large skillet over the onions, celery, potatoes and carrots. Add water to cover, and cook over medium heat until tender.
2. Meanwhile, in a large, heavy saucepan, melt the butter over medium heat. Whisk in flour until smooth. Whisk in cream and stir constantly until thick and smooth. Stir in vegetables and clam juice. Heat through, but do not boil.
3. Stir in clams just before serving. If they cook too much they get tough. When clams are heated through, stir in vinegar, and season with salt and pepper.

Monday, March 10, 2008

Wish Her The Best In Heaven...

Recently, one of my friend passed away in her 27th year of her short life. Back in 1999, she found out she had bone cancer. During these nine years, she not only struggled a lot through all the surgeries, but also managed to win 1 gold metal and several silver metals from the Chinese National Games for the Handicapped and Jiangsu Province Games for the Handicapped. She's truly a fighter. I always remember when we were both in college, she always visited me with her sunshine smile. Right after the first surgery, I went to her house to visit her with several friends. When we arrived, all we saw was a nearly empty house, because her family had sold almost anything including the electronics and furniture to cure her. We felt so sad. Although we wanted to know how the surgery went, none of us dared to ask. "Hey, check out my leg", still with her sunshine smile, she let us see her leg, like nothing happened, although we could tell from her eyes that she just cried before we came in. Her right crus was sawed from the surgery. She smiled and asked us lots of stuff in school, like nothing happened. After we came out of her house, we 7 girls all cried. Always so brave she was. Maybe God love her so much, or maybe God is so cruel that ended her poor life. Now her wish to attend the Beijing 2008 Olympics will never come true. I'm an atheist, but at this point, I hope the existence of gods and heaven, so that she could live a happy life above. Her sunshine smile and her perseverance shall be remembered forever by the people surround her.

Tuesday, March 20, 2007

geez youtube is hacked


I opened my browser today and found out Youtube was hacked. Here's a snapshot. I don't know which language they are using. Could someone tell me what does the sentence mean?

Monday, March 19, 2007

Stay Hungry. Stay Foolish.

This is from "Stanford Report, June 14, 2005 "

'You've got to find what you love,' Jobs says

This is the text of the Commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005.

I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a college graduation. Today I want to tell you three stories from my life. That's it. No big deal. Just three stories.

The first story is about connecting the dots.

I dropped out of Reed College after the first 6 months, but then stayed around as a drop-in for another 18 months or so before I really quit. So why did I drop out?

It started before I was born. My biological mother was a young, unwed college graduate student, and she decided to put me up for adoption. She felt very strongly that I should be adopted by college graduates, so everything was all set for me to be adopted at birth by a lawyer and his wife. Except that when I popped out they decided at the last minute that they really wanted a girl. So my parents, who were on a waiting list, got a call in the middle of the night asking: "We have an unexpected baby boy; do you want him?" They said: "Of course." My biological mother later found out that my mother had never graduated from college and that my father had never graduated from high school. She refused to sign the final adoption papers. She only relented a few months later when my parents promised that I would someday go to college.

And 17 years later I did go to college. But I naively chose a college that was almost as expensive as Stanford, and all of my working-class parents' savings were being spent on my college tuition. After six months, I couldn't see the value in it. I had no idea what I wanted to do with my life and no idea how college was going to help me figure it out. And here I was spending all of the money my parents had saved their entire life. So I decided to drop out and trust that it would all work out OK. It was pretty scary at the time, but looking back it was one of the best decisions I ever made. The minute I dropped out I could stop taking the required classes that didn't interest me, and begin dropping in on the ones that looked interesting.

It wasn't all romantic. I didn't have a dorm room, so I slept on the floor in friends' rooms, I returned coke bottles for the 5¢ deposits to buy food with, and I would walk the 7 miles across town every Sunday night to get one good meal a week at the Hare Krishna temple. I loved it. And much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on. Let me give you one example:

Reed College at that time offered perhaps the best calligraphy instruction in the country. Throughout the campus every poster, every label on every drawer, was beautifully hand calligraphed. Because I had dropped out and didn't have to take the normal classes, I decided to take a calligraphy class to learn how to do this. I learned about serif and san serif typefaces, about varying the amount of space between different letter combinations, about what makes great typography great. It was beautiful, historical, artistically subtle in a way that science can't capture, and I found it fascinating.

None of this had even a hope of any practical application in my life. But ten years later, when we were designing the first Macintosh computer, it all came back to me. And we designed it all into the Mac. It was the first computer with beautiful typography. If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces or proportionally spaced fonts. And since Windows just copied the Mac, its likely that no personal computer would have them. If I had never dropped out, I would have never dropped in on this calligraphy class, and personal computers might not have the wonderful typography that they do. Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards ten years later.

Again, you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something — your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.

My second story is about love and loss.

I was lucky — I found what I loved to do early in life. Woz and I started Apple in my parents garage when I was 20. We worked hard, and in 10 years Apple had grown from just the two of us in a garage into a $2 billion company with over 4000 employees. We had just released our finest creation — the Macintosh — a year earlier, and I had just turned 30. And then I got fired. How can you get fired from a company you started? Well, as Apple grew we hired someone who I thought was very talented to run the company with me, and for the first year or so things went well. But then our visions of the future began to diverge and eventually we had a falling out. When we did, our Board of Directors sided with him. So at 30 I was out. And very publicly out. What had been the focus of my entire adult life was gone, and it was devastating.

I really didn't know what to do for a few months. I felt that I had let the previous generation of entrepreneurs down - that I had dropped the baton as it was being passed to me. I met with David Packard and Bob Noyce and tried to apologize for screwing up so badly. I was a very public failure, and I even thought about running away from the valley. But something slowly began to dawn on me — I still loved what I did. The turn of events at Apple had not changed that one bit. I had been rejected, but I was still in love. And so I decided to start over.

I didn't see it then, but it turned out that getting fired from Apple was the best thing that could have ever happened to me. The heaviness of being successful was replaced by the lightness of being a beginner again, less sure about everything. It freed me to enter one of the most creative periods of my life.

During the next five years, I started a company named NeXT, another company named Pixar, and fell in love with an amazing woman who would become my wife. Pixar went on to create the worlds first computer animated feature film, Toy Story, and is now the most successful animation studio in the world. In a remarkable turn of events, Apple bought NeXT, I returned to Apple, and the technology we developed at NeXT is at the heart of Apple's current renaissance. And Laurene and I have a wonderful family together.

I'm pretty sure none of this would have happened if I hadn't been fired from Apple. It was awful tasting medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don't lose faith. I'm convinced that the only thing that kept me going was that I loved what I did. You've got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.

My third story is about death.

When I was 17, I read a quote that went something like: "If you live each day as if it was your last, someday you'll most certainly be right." It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: "If today were the last day of my life, would I want to do what I am about to do today?" And whenever the answer has been "No" for too many days in a row, I know I need to change something.

Remembering that I'll be dead soon is the most important tool I've ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.

About a year ago I was diagnosed with cancer. I had a scan at 7:30 in the morning, and it clearly showed a tumor on my pancreas. I didn't even know what a pancreas was. The doctors told me this was almost certainly a type of cancer that is incurable, and that I should expect to live no longer than three to six months. My doctor advised me to go home and get my affairs in order, which is doctor's code for prepare to die. It means to try to tell your kids everything you thought you'd have the next 10 years to tell them in just a few months. It means to make sure everything is buttoned up so that it will be as easy as possible for your family. It means to say your goodbyes.

I lived with that diagnosis all day. Later that evening I had a biopsy, where they stuck an endoscope down my throat, through my stomach and into my intestines, put a needle into my pancreas and got a few cells from the tumor. I was sedated, but my wife, who was there, told me that when they viewed the cells under a microscope the doctors started crying because it turned out to be a very rare form of pancreatic cancer that is curable with surgery. I had the surgery and I'm fine now.

This was the closest I've been to facing death, and I hope its the closest I get for a few more decades. Having lived through it, I can now say this to you with a bit more certainty than when death was a useful but purely intellectual concept:

No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.

Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma — which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

When I was young, there was an amazing publication called The Whole Earth Catalog, which was one of the bibles of my generation. It was created by a fellow named Stewart Brand not far from here in Menlo Park, and he brought it to life with his poetic touch. This was in the late 1960's, before personal computers and desktop publishing, so it was all made with typewriters, scissors, and polaroid cameras. It was sort of like Google in paperback form, 35 years before Google came along: it was idealistic, and overflowing with neat tools and great notions.

Stewart and his team put out several issues of The Whole Earth Catalog, and then when it had run its course, they put out a final issue. It was the mid-1970s, and I was your age. On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Beneath it were the words: "Stay Hungry. Stay Foolish." It was their farewell message as they signed off. Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.

Stay Hungry. Stay Foolish.

Thank you all very much.

Drive Test

While some kids in other countries get drive licenses around 15, people in China, on the contrary, usually prepare to drive when they become adults. Yes, lately I've been taking classes in a drive school near my home. My teacher in the drive school always says that to be a good driver, one has to be "fearless, circumspective and never muddleheaded when in trouble". But I have this muddleheaded problem especially in emergency. It's just so hard for me to make things perfect. Anyway, my drive test is coming in 8 days. I have to practice more, and hope things will go fine as they should.