Skip to main content

Posts

C++ logging using Apache Log4cxx on Linux

I'd demonstrate the set up of Apache log4cxx on Ubuntu 12.x in following steps: 1. Download all required packages 2. Build Log4cxx via Apache Maven 3. Use the libraries in a NetBeans C++ project on Ubuntu Linux. Reference URL: http://www.yolinux.com/TUTORIALS/Log4cxx.html This URL is quite detailed and explains things for other *nix operating systems as well. I wanted to start with minimum steps required, hence this post. I have a Windows 7 desktop and have Ubuntu 12.x 64-bit running on it via Oracle Virtualbox. So Ubuntu is running as a guest on my Windows 7 host. [The reference URL mentions different versions of  'libaprXX' libs but we have to use 'libapr1-dev' and 'libaprutil-dev', will see that later.] Prerequisites (install all of the following one by one) autoconf and automake --> sudo apt-get install autoconf automake libxml2 and libxml2-devel ( http://xmlsoft.org/ ) --> sudo apt-get install libxml2 libxml2-dev gmp ( ...

Role of inflation in currency depriciation

Some excerpts from a financial post.... ( good to understand the impact of inflation on currency valuation ) inflation -- increasing prices over time -- is currency depreciation, although it is possible for a particular denomination to decrease in value in relation to other world currencies while still maintaining its purchasing power at home. For example, one Singapore dollar may be exchanged for 0.0277 INR today and only 0.025 INR next week but still purchase, say, one chocolate dips you see in the machines at the mart. Or it could purchase (as of this writing) one liter of liquid fuel. Inflation, per se, is not necessarily a bad thing, as long as the rate of inflation stays below the rate at which wages increase. (In fact, price deflation is generally a more serious problem.) One Singapore dollar may not purchase as much as it would have 50 years ago, but people have a lot more of them than they did 50 years ago, so the cost of living is generally much lower than ...