Wednesday, January 6, 2010
*Slap *Slap
From Effective C++, by Scott Meyers :
"Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.
solution : overriding the method
"Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.
solution : overriding the method
Sunday, December 6, 2009
First-time Vista users...like me
Want a quick shortcut by right-clicking on folder to get to your cmd.exe in Vista?
Hold Shift & right-click on the folder and you will see a "Open Command Window Here".
Waahaha..I'm starting to like Vista - I don't need to install PowerToy or edit my folder settings already... :P
Hold Shift & right-click on the folder and you will see a "Open Command Window Here".
Waahaha..I'm starting to like Vista - I don't need to install PowerToy or edit my folder settings already... :P
Sunday, September 13, 2009
SVN export with Tortoise
After using Tortoise for some time, it's only now that I found out that it is possible to export files the easy way. I right-clicked all the folders containing svn files and dragged to my working folder and a pop up menu will appear for options to export all items.
It REALLY pays to be lazy....... =p
Tuesday, July 28, 2009
maven newbie...
Being a newbie to maven, I jumped headfirst into the application without reading much documentation, and I was perplexed by my application not compiling until I read the Maven Standard Layout
*note to self - don't forget the main folder!
Monday, July 20, 2009
Metering for exposure
I have done it again.........forgetting to switch my TTL metering on my SLR while taking photos, and I ended up with spot metering for each photo, making them overexposed in some. Thanks to Mr. Ho, I have learnt that uneven lighting creates overexposure in spot metering.
By the way, I've just got myself a polarising filter, so I'm definitely looking forward for more pretty skies and no more hazy skylines!
Tuesday, July 14, 2009
One file for all, and all loading from one?
Lesson in making trees:
Never use a single xml file to store your stuff if you are not even thinking of chopping it into several parts to cater for lazy-loading for your tree.
Never use a single xml file to store your stuff if you are not even thinking of chopping it into several parts to cater for lazy-loading for your tree.
Subscribe to:
Posts (Atom)