Monday, December 8, 2008

Money is the root of all evil

He: I am going broke. You know why, don't you?
Me: Yes.
He: Do you know how much you owe me?
Me: Err... 9k?
He: 11k. Do you have a financial plan?
Me: ... I am getting a few thousand soon. I can pay you 3k? As long as you feed me. Because I really don't have much.
He: I don't mean that. Just what about the ongoing? Do you have a plan?
Me: ...
He: Gosh. Now you're like the US govt. Even after you pay me the lump sum with your bonuses, can you afford the ongoing rent?
Me: ...
He: Can you not be such an airhead?
Me: But I am such an airhead.
He: You have to start planning your finances.
Me: I took a pay cut when I joined this company. That was the rent. They promised to give it back in 3 months but they didn't. I'll bet you didn't know that.
He: ...
Me: Let's see how it all goes. I can pay you back that sum with my bonus. Definitely! And then I will see how I can deal with the monthly part.
He: You better. Don't let it pile up.


I am officially broke and up to my neck in debts.

Friday, December 5, 2008

You can be really nasty in academics and no one will stop you

That's what I think.

I have some of the nastiest professors and they just get away with it. Knowledge is really something, isn't it?

1. Prof Mint
"Hello class? Wah lau eh! Interactive lah? Only me talking, very boring wei."
*puts up all the stupid emails he received on powerpoint and presents it in lecture* "You asked me what is the best research topic to choose? Hey, you're the one doing it, not me."
"Anyone here? All sleeping? Haiz...."

2. Prof Elvis
"Well, if you want to know more, I can prove the whole equation here" *walks to the projector* "On second thoughts, it really ain't that interesting, I think I will skip this" *walks back to his notebook*

3. Prof Gerald
"You traverse through all the objects in your near child node, and recurse, recurse, recurse till you find a hit. Else, go to far child node and recurse, recurse, recurse" *flip his waist length hair*


3. Prof H
Professor H is by far the most mild of the lot. However, when I asked him about my assignment, he gave me the look like I was the kind of kid who used to bully him in school. Maybe I am. Mua ha ha.

Prof Sore Throat

"Hello?"
"Yello"
"Are you having a sore throat?" *I have the worst thought in the world. I was thinking that he might be waiting for a phone call from his office affair and wanted to to surprise her with a kewl voice*
"Why? Do I sound like I am having a sore throat?"
"Errr. Yes" *A no will suffice*


"What's a MAE prof doing chairing a computer graphics conference?"
"I get asked that a lot. It really is very strange, isn't it? I've been an active member since... since before you were even born!"

"I am really excited to attend this conference. I checked the speakers and some of them are the godfathers of computer graphics."
"There are a lot of computer graphics godfather here. Like this and that. Oh and you really have to attend this conference. And the fast forward. It is the pitch of their technical papers. And very funny."

"Somehow I think in academic, you get away with speaking your mind."
"Haha. Somewhat. This is still Singapore after all. But really, why would you say anything otherwise?"

"You should go for the reception. Let me check if students are invited for the reception. Hehe. I have people I can call that will tell me these things *gleeful*. Ok. Please attend the reception. I hope you get to mingle and meet people there."

I think... he is trying to say, network. Of course, Prof! I will!!!! You guys are too cool!

Our happy book

I've totally forgotten about the happy book project.

Em and I will try to self-publish a little happy book. It's gonna be mostly crap but our own happy crap.

She draws some of the cutest little things. Me? I am just a muse. Eerr... well I will provide the words. Somewhat. I thought I will defer and have all the time in the world to do it from next month onwards. But I guess not. We shall start now!

Wednesday, December 3, 2008

See what the monkeys got me



We were in Marks & Spencers when C asked me what's the best chocolate here.
I showed him the huge fruit cake and said, "I really want to eat this but it cost $69! You see the tag? And such a big cake. Oh it has cognac too. See?"

"Ok. I am getting this."

*totally flattered that he trusts my taste in food* "You're getting for your mum? Says here it will last till march."

"No. the guys are getting this for you."

"You're kidding me right? It's $69! For a cake! You know that is too expensive! Add another $8 and you can buy an ipod shuffle!!"

"No. You want this. So we're getting this for you."

"Noooooooooo this is mad. You're kidding right?" *I've been really nasty to them and they're so good to me?*

"Nope. I am going to pay now."

I didn't believe him till he paid and handed me the cake.

"Does this mean I can't call you monkey or say D is fat?"

I am so touched.... The indian boys want to feed me. Uhuk

Windows-how to write batch file

I feel stupid right about now. I am not interested and I don't want to learn.

http://www.robvanderwoude.com/bht.html

I'll just use cygwin.

Oh wait. I found exactly what I need: http://www.cknow.com/tutorcom/dos08_dealwithfiles.htm

And some misc batch scripts by some misc person: http://www.geocities.com/~budallen/batfiles.html

Monday, December 1, 2008

1st Singapore Tattoo Show 2009

Wooooooah! I can't believe this! I have to go!

9th to 11th January 2009 at Singapore Expo.

I am so excited. Chris Garver from Miami Ink fame. Hmm... But of course, I am a little biased and absolutely in love with Kat von D. But woohoo!! I can't wait!

December and January is going to be so exciting for me.

Find the details here:

Singapore Expo Calendar

http://www.tattoo.com.sg/

Dessert with quark and jude


At al-majlis on arab street

Sunday, November 30, 2008

Ah er


He he

Jude in love



Ice cream with mum


Too bad she dig in too fast. All that's left is this sugar snowman. That i licked. Ha ha

Thursday, November 27, 2008

Relaxing at work

Which is something I rarely do. But today we were all shouting and laughing. Because it is a relaxing day.

We were all talking and telling stupid jokes and slam book? That is one good joke. Anyways we started exchanging stories about first crush and all. That's wierd. I don't tell colleagues my childhood stories. But I did this time. And we log into facebook and orkut for the whole show and tell.

"We can't see the picture of the guy you like. Why didn't you add him?"
"Why should I? He was my first crush. I was thirteen. Long time ago."
"Oooh. But we can't see his face."
"Doesn't matter."

Then we started talking about other stuff. I told them about SIGGRAPH Asia. One guy said, "Don't be so stingy. Just pay the $450 and go for it already."
"Pay money and sit in classes torturing myself with C++ and graphics programming?"
"You want to go."

He is right. I do.

Yes I will! I can't wait.

Tuesday, November 25, 2008

SIGGRAPH Asia 2008

Oh wow! SIGGRAPH Asia in Singapore! 10th to 13th December!


Find the details here: http://www.siggraph.org/asia2008/attendees/index.php

Saturday, November 22, 2008

BD

Well with the rate I torture myself, I guess I might be one of those closet BDSM kinda person.

So exams' over, I've submitted the project hours ago and I should be so relieved and sleep to make up for the past semester. But I can't. I mean yes, I am relieved and I woke up this morning shouting "Yay!" with my hands in the air (the other "Yay" is cause I will be seeing punjabi boy in January). But I can't sleep. I can't fall asleep. I just am not tired enough.
Maybe I am just hungry. I forgot to eat today. I just had some chips and coffee. That's lunch and dinner.

I can't sleep. I can't sleep. What do I do?? I fell into this site today. I forgot how. But I just did. So I started reading. And I thought, hmmm... Cool. Then I get a headache reading them. But I need to sleep and I will take any kind of torture just to be able to sleep. Or I could work on my Phong equation codes again. I don't want to. Too soon to start slaving away on the CG codes.

So here I am alternating between reading some call girls' blog and buying makeup online.

Friday, November 21, 2008

For the greater good?

You broke the rules.
That's what she was trying to imply.

Ok... Am I in trouble?

"I've been involved for the whole of this episode. We have rules for a reason. What we're doing now is not according to company protocols. But we realised you're an asset. I've heard good things about you. So we're doing this because it is beneficial to the company."

Oh... really? I've always thought I'm such a nuisance here.

"The managers and directors have all agreed on this. We've all come together and this is the decision we've made. For the company's benefit, we've all agreed to your transfer. Your new role starts on Jan 1st. I've heard good things about you. Except..."

Hold my breath.

"You talk to fast."

Huh?

In my own twisted world, I imagined the whole episode goes like the nuns' singing about Maria in Sound Of Music.

Thursday, November 20, 2008

glMatrixMode Cheat Sheet

void FunctionRunWhenProgramStarts()
{
glMatrixMode(GL_PROJECTION); // signal that I want to work with the projection stack
glLoadIdentity(); // make sure that the projection stack doesn't already have anything on it
gluPerspective(whatever I want); // set up a normal perspective projection

glMatrixMode(GL_MODELVIEW); // the rest of my app will only change MODELVIEW
glLoadIdentity(); // make sure that the modelview stack doesn't already have anything on it
}

void FunctionToDrawAFrame()
{
// modelview is still the active stack, because I never that setting
glPushMatrix(); // push current matrix up one, because I'm about to do a bunch of stuff that shouldn't remain active after the end of this function

/* position camera - whatever code you want, this is just an example */
glTranslatef(cameraX, cameraY, cameraZ);
glRotatef(cameraAngle, 0, 1, 0);

/* draw all objects */
for(all objects)
{
glPushMatrix(); //we don't want each object to move the camera...

glTranslatef(objectX, objectY, obectZ);
glRotatef(objectAngle, 0, 1, 0);

DrawObject(); // whatever method you use to draw your object

glPopMatrix(); //restore unaffected camera for next object
}

glPopMatrix(); // restore view prior to movement by this camera
}


From: http://www.allegro.cc/forums/thread/595000

Tron

One of my favourite sci-fi movie as a kid. My brother and I would watch it every week, I think. It was good. It was vivid even though I cannot remember much now; except for the lights, the bike and the race.

Relentless Quark had to remind me the game they play in the movie. It's Light Cycle.
Anyways, for the uninitiated, here you go:
http://en.wikipedia.org/wiki/Light_Cycle

Wednesday, November 19, 2008

GL Mouse Picking and Selection

Oh eh.
I think I might might have a solution to the mouse picking problem.

Could it be:

1. viewport problem?
2. matrix transformation problem?
3. z-buffer depth search problem - check in function processHits();

Read this: http://www.opengl.org/resources/faq/technical/transformations.htm

Wow! Very nice!!!!

3D Computer Graphics Tutorial:

http://www.jimbrooks.org/web/opengl/tutorials/

EDIT:
Was looking at the visitor stats and realised a lot of people come to this post when searching for OpenGL mouse picking. I've solved it.
Point is, if you want to pick in 3D; there's no straight forward way to doing that entirely in mouse.
What you can do is, specify another keyboard key + one mouse action for z-coordinate. Why? cause glut mouse function only specifies x,y coordinates. That's the easiest way to doing it.

That bugger

Saw a picture of my brother, on his girl friend's facebook.
My heart did a leap. I've not seen him for the past 6 months.

How do you look like now?
Are you thinner? Are you older? How have you been?

Are you world weary now? Life can be cruel sometimes. Hang on. I am coming home soon.

I miss you. Can't wait to see you.

Tuesday, November 18, 2008

Stare at the table

That's all I could do. When the announcement was made. That I am leaving. I don't know what to say.

No reaction from the crowd. I dare not breathe. In case breathing might offend. I hang my head and let my hair fall around my face. Hoping my face will be occluded.
Nobody say anything.
Nothing! Nothing! I held my breath till my face turned purple.

"Thank you for being with us for the past one year."
Is that the cue for me to speak? I still dare not. I smiled and nodded.

Continue staring at the table.

Monday, November 17, 2008

Get around

1. OpenGL matrix distribution (memorised translate, rotate, scale). Also need to memorise perspective.

Read this on the sin and cos for 3D programming: http://pixwiki.bafsoft.com/mags/5/articles/circle/sincos.htm

Homogenous coordinates:
http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MOHR_TRIGGS/node7.html

This for better explanation on the 4x4 matrix as used in OpenGL.
http://www.siggraph.org/education/materials/HyperGraph/modeling/mod_tran/3drota.htm

2. 3D viewing and perspectives. Eye, World, Object view.

3. OpenGL commands...

4. Finish all the past year papers.