Wednesday, June 23, 2010

Truth Behind the Words

There's always a little truth behind every "just kidding",
                         A little knowledge behind every "I don't know",
A little emotion behind every "I don't care",
And...
A little pain behind every "it's OK."

Wednesday, June 16, 2010

Quotes on Wisdom

Many of life's failures are people who did not realize
how close they were to success when they gave up.
~Thomas Edison~


"Respect your efforts, respect yourself. Self-respect
Leads to self-discipline. When you have both firmly
Under your belt, that's real power."
~Clint Eastwood~

The only difference between stumbling blocks and
steppingstones is the way in which we use them.
~unknown~

Write the bad things that are done to you in sand,
but write the good things that happen to you
on a piece of marble.
~Arabic Proverb~       


Ever tried? Ever failed? No matter.
Try Again. Fail Again. Fail better.
~Samuel Beckett~        


A wise soul opens the window to the future
by closing the doors to the past.
~unknown~


Happiness is inward and not outward; and so it does
not depend on what we have, but on what we are.
~Henry Van Dyke~


When I stand before God at the end of my life, I would hope
that I would not have a single bit of talent left and I could say,
"I used everything that you gave me."
~Erma Bombeck~

Thursday, June 3, 2010

Linux Log files and their purpose

Common Linux log filenames and purpose

/var/log/message: General message and system related stuff
/var/log/auth.log: Authenication logs
/var/log/kern.log: Kernel logs
/var/log/cron.log: Crond logs (cron job)
/var/log/maillog: Mail server logs
/var/log/qmail/ : Qmail log directory (more files inside this directory)
/var/log/httpd/: Apache access and error logs directory
/var/log/lighttpd: Lighttpd access and error logs directory
/var/log/boot.log : System boot log
/var/log/mysqld.log: MySQL database server log file
/var/log/secure: Authentication log
/var/log/utmp or /var/log/wtmp : Login records file
/var/log/yum.log: Yum log files

Daemon(Linux Term) or Services(Windows Term) to do the logging are syslogd and klogd. They intercepts the kernel level messages and logs them to the appropriate files.

Configuration of syslogd is available at /etc/syslogd.conf

Testing with Valgrind

A small note to quick start with valgrind

Testing of an application with Valgrind takes enormous time to get that completed. But there are valuable information that are being printed when we have the possibilities for memory leaks.

To quick start the application under the valgrind, use the following syntax:

valgrind --leak-check=yes application arg1, arg2, ..