Monthly Archives: July 2012

C++ class code style

Where is the best place to put the private members in class definition in C++? This is a controversial topic, and it depends on programmer preference. Working on projects with programming language of Java and C++ in parallel, and I … Continue reading

Posted in Uncategorized | Leave a comment

Build gcc-4.6.1

In default, in Redhat or Centos-6.2 development machine, the version of gcc is 4.1, it does not include C++0x features, like thread, share_ptr, …, otherwise we have to use the boost library. However, sometimes, you find some code is based … Continue reading

Posted in Uncategorized | Leave a comment

Hadoop setup

Log in my Redhat Enterprise Linux 5.7 box as root user, set hadoop as psedudistributed mode as playground. Do not use the Standalone mode, otherwise you cannot test all the features. 1. Unzip hadoop-1.0.1.tgz  to /usr/local/hadoop-1.0.1 2. In the above … Continue reading

Posted in Uncategorized | Leave a comment