ひまわり

Work hard to be special

The errors when I am programming

No Comments »

1: Don’t check return value —> use yasnippet
2: condition check(‘==’ ‘=’) —> switch the two sides besides ‘==’
3: fopen don’t flcose —-> write pair and use valgrind
4: Don’t free after malloc —-> write pair and use valgrind
5: Macro —> Use big () to enclose the whole expression
6: word misspell —-> Double check it
7: Just copy code from other place and didn’t the notice the difference —-> Double check it. Use flyspell in Emacs
8: Not include the declare of a function. This is really a big problem. ——> Double check it.
9: Add quote or double quote to string in SQL sequence. ——> Double check it.

Some pictures in OpenGL

No Comments »

1. A point and a line
2. A rectangle(below)

3. A rectangle with texture

4. A triangle with roation and transformation in two dimensions.

5. A triangle with roation and transformation in three dimensions.

6. A square with camera


7. A cube with texture and roation  in three dimensions.

One free day

1 Comment »

I ask for one free day from my boss. So from now to tomorrow afternoon, I will be totally free. :-)

So many new things, so many new ideas come to my life that I can not handle them well.

Every time I face this situation, I feel not very well :-( . I need time to rearrange everything.