i know i am a nerd because of..

the post on archlinux forum is funny

i like this one:

I’m a nerd because I know the secret of counting to 1024 with my fingers.

Then:

That’s about to be the greatest finger exercises I’ve ever known. lol

But.. someone states out:

you know, it is really only 1023 :p

Then

I’m a nerd because when I read that I thought ‘or my fingers would overflow’.

..

Sounds painful.

But they forget we could turn our hands around

Besides, a true geek knows you’ve got two more bits by turning your hands around(so, say from palms towards you to away), or even putting your hands at an angle for two more bits…

2^14 = 16,384

So, we can give others the “4”..

When you give someone the “4”, he will understand only if he is a turbo nerd.

And i decide to change my hand sign to show 13.. HAHA

Two interesting C questions

1. Whats wrong with this code?

int a,b,c;
int *p;
a=100;
c=10;
p=&c;
b=a/*p;
printf(“%d”,b);

2. Why is the following code not wrong?

int a,b,c;
int *p;
http://www.google.com/
a=100;
c=10;
p=&c;
b=a/ *p;
printf(“%d”,b);

Answer:
1. /* starts the comment
2. http: is label, // starts the comment

孟子曰

舜发于畎亩之中,
傅说举于版筑之间,
胶鬲举于鱼盐之中,
管夷吾举于土,
孙叔敖举于海,
百里奚举于市。
故天将降大任于是人也,
必先苦其心志,
劳其筋骨,
饿其体肤,
空乏其身,
行拂乱其所为,
所以动心忍性,
曾益其所不能。

人恒过,
然后能改;
困于心,
衡于虑,
而后作;
征于色,
发于声,
而后喻。
入则无法家拂士,
出则无敌国外患者,
国恒亡。
然后知生于忧患而死于安乐也。

OpenAL tutorials

OpenAL is a cross-platform audio library. The advantage is its cross-platform, similarity to OpenGL and the ability to handle some advanced sound effect like doppler shift. Adding sound effects is definitely making your game more attractive.

Here are several tutorial links which i think are useful.
http://www.devmaster.net/articles.php?catID=6
http://www.edenwaith.com/products/pige/tutorials/openal.php
http://kcat.strangesoft.net/openal-tutorial.html

glxgears seg fault

Add urself to video group.

gpasswd -a user video