A Code Monkey's Blog

Wired Unicode Problem in Source Code File

Today I ran into a very wired problem when I was trying to compile a C++ source file. What I received was like this:

Evaluator.h:1: error: stray ‘\357’ in program Evaluator.h:1: error: stray ‘\273’ in program Evaluator.h:1: error: stray ‘\277’ in program Evaluator.h ...

Two source code line counters you should have

  1. UCC(Unified Code Count) is developed by the researchers at USC in C++. It is cross-platform and supports a bunch of languages. The most impressive feature to me is that it can do code complexity analysis, which is very rare for a open-source code counter.

  2. CLOC(Count Lines of Code ...

How to install OpenOffice 3 without root privilege

The default openoffice of my desktop Linux was aging and I just wanted to update to the latest openoffice-3.2. But my problem was I didn't have the root privilege to do that. The official installer of OpenOffice failed again over again without notifying you that the reason of ...