Sunday, August 18, 2013
Changing someone
“But we have each come to the understanding that there is no need to try to influence the other to your own point of view. We cannot change them. They cannot change us,” -Former MM Lee
Monday, April 08, 2013
log4cxx debugging
Add debug="true" to enable debugging
example:
log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/' debug="true"\
QML extension
1. QML2_IMPORT_PATH is necessary for QML dll
example
set QML2_IMPORT_PATH=d:\qt\imports
2.uri
From the QML2_IMPORT_PATH, the uri comes into play
with a uri of qml.test (case sensitive),
the directory structure shall be %QML2_IMPORT_PATH%\qml\test
3.qmldir
Under the directory %QML2_IMPORT_PATH%\qml\test,
you shall have qmldir,
where the bare minimum configuration contains
plugin yourDllPluginName
optional
module uri
4.qmlpluginsdump
qmlpluginsdump will
first look at QML2_IMPORT_PATH
then the uri
The following command shall dump some values
qmlpluginsdump qml.test 1.0
5.qmltypes
Generate qmltypes with qmlpluginsdump
qmlpluginsdump qml.test 1.0 d:\qt\imports\ > d:\qt\imports\qml\test\dllname.qmltypes
6. Append typeinfo logger.qmltypes to qmldir
Title case for module name is a must to work -
Need to use Logger instead of logger for qmlRegisterType(uri, 1, 0, "logger");
example
set QML2_IMPORT_PATH=d:\qt\imports
2.uri
From the QML2_IMPORT_PATH, the uri comes into play
with a uri of qml.test (case sensitive),
the directory structure shall be %QML2_IMPORT_PATH%\qml\test
3.qmldir
Under the directory %QML2_IMPORT_PATH%\qml\test,
you shall have qmldir,
where the bare minimum configuration contains
plugin yourDllPluginName
optional
module uri
4.qmlpluginsdump
qmlpluginsdump will
first look at QML2_IMPORT_PATH
then the uri
The following command shall dump some values
qmlpluginsdump qml.test 1.0
5.qmltypes
Generate qmltypes with qmlpluginsdump
qmlpluginsdump qml.test 1.0 d:\qt\imports\ > d:\qt\imports\qml\test\dllname.qmltypes
6. Append typeinfo logger.qmltypes to qmldir
Title case for module name is a must to work -
Need to use Logger instead of logger for qmlRegisterType
Building log4cxx with VS 2010 express
Refers to http://www.lextm.com/2010/09/how-to-build-log4cxx-in-visual-studio.html
In addition, the dsp will not open in 2010, a conversion in 2008 is necessary to upgrade the project!
In addition, the dsp will not open in 2010, a conversion in 2008 is necessary to upgrade the project!
Tuesday, September 04, 2012
vmhgfs
broken vmhgfs
http://www.dead-trickster.com/post/VMWare-tools-on-32b-linux-kernels-(clipboard-dragndrop-problem).aspx
http://www.dead-trickster.com/post/VMWare-tools-on-32b-linux-kernels-(clipboard-dragndrop-problem).aspx
Monday, August 27, 2012
boost and zlib
char *data="test 1\0test 2\0test3";
std::ostringstream compressedData;//hold compressed data
boost::iostreams::filtering_ostreambuf txdat; //compress stream
txdat.push(boost::iostreams::zlib_compressor()); //init compress stream
txdat.push(compressedData);//init compress stream
boost::iostreams::copy(boost::iostreams::basic_array_source
string compressedStr=compressedData.rdbuf()->str();//return as string?
std::istringstream rxCompressedData(compressedStr, compressedStr.length());//compressed string
boost::iostreams::filtering_istreambuf rxdat; //decompress stream
rxdat.push(boost::iostreams::zlib_decompressor());//init decompress stream
rxdat.push(rxCompressedData);//init decompress stream
std::ostringstream decompressedData;//decompress data
boost::iostreams::copy(rxdat, decompressedData);//output to decompressData
Thursday, February 23, 2012
Tuesday, December 27, 2011
Windows Setup could not configure Windows on this computer’s hardware
1. Yumi iso images into thumbdrive
2. Downloaded vlite.
3. Downloaded the latest Nvidia drivers for 105M and extracted packages
4. Replaced package .inf with .inf downloaded from http://www.laptopvideo2go.com.
.inf link references from blog.komeil.com/2010/04/nvidia-driver-windows-7-notebook-laptop.html
5. Package display drivers into win7 64bit with vlite
6. A required CD/DVD drive device driver is missing. If you have a driver floppy disk...
a) try removing and reinserting the usb drive
b) try going into windows repair and then going back to installation
2. Downloaded vlite.
3. Downloaded the latest Nvidia drivers for 105M and extracted packages
4. Replaced package .inf with .inf downloaded from http://www.laptopvideo2go.com.
.inf link references from blog.komeil.com/2010/04/nvidia-driver-windows-7-notebook-laptop.html
5. Package display drivers into win7 64bit with vlite
6. A required CD/DVD drive device driver is missing. If you have a driver floppy disk...
a) try removing and reinserting the usb drive
b) try going into windows repair and then going back to installation
Wednesday, September 21, 2011
Sunday, November 14, 2010
Thursday, August 05, 2010
couchDb Installation
downloaded ubuntu server edition
apt proxy setting
sudo vi /etc/apt/apt.conf
Acquire::http::proxy "http://username:password@proxy:port"/;
apt-config dump to check settings
apt update
apt-get update
apt install
apt-get install
couchdb
curl
ubuntu-desktop
mozilla-firefox
apt proxy setting
sudo vi /etc/apt/apt.conf
Acquire::http::proxy "http://username:password@proxy:port"/;
apt-config dump to check settings
apt update
apt-get update
apt install
apt-get install
couchdb
curl
ubuntu-desktop
mozilla-firefox
Sunday, March 28, 2010
LISTEN
Lis·ten
intr.v. lis·tened, lis·ten·ing, lis·tens
3. There is no need for any solution. Keep your mouth shut and agreed.
1. To make an effort to hear something
2. To pay attention; heed
Requirements Management
Tracking Requirement is not managing requirements
http://www.softwaremag.com/L.cfm?Doc=1122-2/2008
These tools are like firewall for today engineers.
http://www.softwaremag.com/L.cfm?Doc=1122-2/2008
These tools are like firewall for today engineers.
Sunday, February 07, 2010
The solution
You will find the solution as soon as you start to learn to live with it.
Acceptance will come.
Acceptance will come.
Thursday, February 04, 2010
SysPrep Vmware converter
1. download the sysprep for the respectively OS
2. run vmware converter, take note of the sysprep directory
3. extract the content of *.cab to the sysprep directory
4. run setupmgr.exe to generate the configuration template
5. run vmware converter, ensure generate new sid is checked
6. run the vmware image
7. perform a login, attempt to activate windows on internet(should see sysprep dialog)
8. perform a system restart
Somehow things did not work well. Windows refuses to accept my keys.
And I hit the following site.
http://surana.wordpress.com/2008/11/04/windows-activation-problem/
It directed to the following microsoft site to reset the key.
http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?displaylang=en&sGuid=611c3bc2-4d35-4b86-91c7-d29b375607c8
2. run vmware converter, take note of the sysprep directory
3. extract the content of *.cab to the sysprep directory
4. run setupmgr.exe to generate the configuration template
5. run vmware converter, ensure generate new sid is checked
6. run the vmware image
7. perform a login, attempt to activate windows on internet(should see sysprep dialog)
8. perform a system restart
Somehow things did not work well. Windows refuses to accept my keys.
And I hit the following site.
http://surana.wordpress.com/2008/11/04/windows-activation-problem/
It directed to the following microsoft site to reset the key.
http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?displaylang=en&sGuid=611c3bc2-4d35-4b86-91c7-d29b375607c8
Sunday, November 01, 2009
Steve Jobs
Again, you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something — your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.
Wednesday, September 30, 2009
Thomas Sit
"... it is all about where you want to go and how you think you are going to get there
then you build a self-development plan (to develop a skill and result portfolio) so that you can work towards that..."
"...speak about the things you are passionate about, work wise, and it will come naturally..."
"....i think initiative, innovative, customer focused and team player...""...emphasize, build on each of those values and make sure people know about it..."
"...it is also about developing your own brand and communicating to people in a consistent fashion about what the kian joo brand is good to realize that now so that you can get started on it! develop a vision and build your brand !..."
Monday, February 16, 2009
empathy skill
After having to attend a course...
this is the message I received,
Empathy Skill
stop thinking of what you want...
and speak of words of what others want to hear.
this is the message I received,
Empathy Skill
stop thinking of what you want...
and speak of words of what others want to hear.
Tuesday, December 09, 2008
Animal farm
The never changing rule.
listen -> execute -> feedback
The ideals
listen -> feedback -> execute
Afterall the world needs dummies.
Boxer the horse, is your best friend.
Keep Bengamin the donkey away.
Tame the pigs.
listen -> execute -> feedback
The ideals
listen -> feedback -> execute
Afterall the world needs dummies.
Boxer the horse, is your best friend.
Keep Bengamin the donkey away.
Tame the pigs.
Subscribe to:
Posts (Atom)