KLog

December 15, 2008

Consistency

Filed under: Uncategorized — hwkang @ 2:23 am

I just read this paragraph in a book about film in wildlife photographing.

“I heartily recommend that when you find a good film, or a good film and developer combination, you stick with them. Too many photographers have to try every new film that comes on the market; they are forever testing, and so they never achieve the consistency that is mandatory for good results.” —How I Photograph Wildlife and Nature, by Leonard Lee Rue III

Isn’t this the same for research?

December 9, 2008

fflush

Filed under: Uncategorized — hwkang @ 8:23 pm

I have been tediously debugging today…

Use fflush(stdout) after the command of printing debug information.  Because the program might have crashed before the print information is sent to the terminal(Yes, it’s possible, and that’s what costs me 2 hours debugging!)   And finally it turns out to be an index running over the boundary.

Powered by WordPress