Archive for June, 2006

Interview Question

void main(){
putchar( a( ‘x’, b( ‘y’ ) ) );
}

char a( char a, char* b ){
return *b;
}

char* b( char a ){
return &a;
}

What’s wrong with the code above? What would it return in a typical x86 system? This was a question that I came up with yesterday, but now that I’ve used it and thought about it, I don’t think it’s completely fair… I guess this one goes into the garbage can. I thought of another good interview question, but I’m gonna use that one in future interviews so I suppose I can’t divulge it here.  Who knows, maybe they’ll google me before they come in for the interview. :D

Comments (4)

Riding a bike

The Marriage of Figaro was great - music was amazing, costumes and the sets were gorgeous, and entire atmosphere just… worked. There were number of very recognizable pieces in there and amazingly enough, the opera was actually quite funny and relevant. I suppose picking a universal topic like love and relationship makes sure that the story will stand the test of time. :)

On a bike ride the day after, though, I started thinking about people learning how to ride a bike. I think one of the biggest differences between an adult and a child is the fear of failure. As a kid, it doesn’t matter how often you fall (or do something else stupid). You’ll pop right back up, and try, try again. As you grow up, you become more and more sensitive to failing (or maybe it’s not the failure itself, but being seen weak by others… like just the apperance of failure). Maybe this means that it’s almost impossible to learn to ride a bike as an adult. Just something interesting to think about, I suppose.

Comments

Convocation

I read Lawrence’s bit about convocation, though it didn’t really hit me until today. I went to go get my hair cut and the place was absolutely filled with 6, 7 people waiting. While chatting with the hairdresser, I found out that tonight’s the convocation, and that was the reason for so many people waiting to get their hair cut. As I was walking back to the office, I started noticing all the proud parents walking around with their sons and daughters. I guess it has been a year already. And in that year, so many things have happened. New job, new friends, new lifestyle, new hobbies… before you know it, everything’s changed.

Anyway, I’m going to the Opera for the first time tomorrow with an old friend of mine whom I haven’t seen in at least 5 years, so it should be fun. :) I guess even as things are changing all around you, some things like friendship endures… It feels like it’s something that I’ve neglected - maybe I should try harder…

Comments

Wilder Ranch

There’s a state park named Wilder Ranch about a mile away from my house. It has fantastic set of trails with amazing view, and I finally remembered to bring my camera along for the ride… so here are some pictures. Luckly for me, I don’t seem to have any ticks on me. ;)

Oh yeah, I got lost along the trail and ended up on Highway 1, about 2 miles away from the park entrance. Riding along the highway, I set a new record of 36.7mph on my bike! Pretty good for a bike bought from Amazon.com. :P

Comments