Windows 7’s Stupid Desktop icon arrangement really troubles me.
The icons on Desktop always get arranged unexpectedly, it takes me a lot of time to find them,
thanks god there is a way to disable it.
1. Run regedit.exe
2. Set HKEY_CURRENT_USER\Control Panel\Desktop\WindowArrangementActive to 0.
Unfortunately c++ member function can not be used as a thread function directly,
usually I use virtual function to solve this problem, but use template is a better solution.
続きを読む…
use g++ with -fdump-class-hierarchy option
you can dump the memory model of classes,
it is quite amazing, definitely helpful.
I realized all kinds of failures in my life are due to the lack of self discipline and I want to improve it.
1. Self discipline is an ability and it can be exercised and improvable.
2. Exercises self discipline start with the small things we do in our daily life.
3. Do the most important thing first in the day and don’t delay.
4. Do anything good for us but we don’t want to do regularly, let it become a habit, then we don’t need to consume our will power to do it.