%c The character format specifier.
%d The integer format specifier.
%i The integer format specifier (same as %d).
%f The floating-point format specifier.
%e The scientific notation format specifier.
%E The scientific notation format specifier.
%g Uses %f or %e, whichever result is shorter.
%G Uses %f or %E, whichever result is shorter.
%o The unsigned octal format specifier.
%s The string format specifier.
%u The unsigned integer format specifier.
%x The unsigned hexadecimal format specifier.
%X The unsigned hexadecimal format specifier.
%p Displays the corresponding argument that is a pointer.
%n Records the number of characters written so far.
%% Outputs a percent sign.
Saturday, July 10, 2010
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 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."
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~
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
/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, ..
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, ..
Saturday, March 13, 2010
பன்னிரண்டு ஜோதிர்லிங்கங்கள்
பன்னிரண்டு ஜோதிர்லிங்கங்களாவன
1. "சோமநாதம்" - குஜராத்திலும்,
2. வைத்தியநாதம்,
3. பீமசங்கரம்,
4. நாகேசம்,
5. த்ரயம்பகம்,
6. குஸ்மேசம் முறையே - மகாராஷ்டிரத்திலும்,
7. ஸ்ரீசைலம் - ஆந்திராவிலும்,
8. ஓங்காரம்,
9. உஜ்ஜையினி முறையே - மத்தியப் பிரதேசத்திலும்,
10. விச்வேசம் (வாரணாசி),
11. கேதாரம் முறையே - உத்திரப் பிரதேசத்திலும்,
12. இராமேசுவரம் - தமிழ்நாட்டிலும் உள்ளன.
1. "சோமநாதம்" - குஜராத்திலும்,
2. வைத்தியநாதம்,
3. பீமசங்கரம்,
4. நாகேசம்,
5. த்ரயம்பகம்,
6. குஸ்மேசம் முறையே - மகாராஷ்டிரத்திலும்,
7. ஸ்ரீசைலம் - ஆந்திராவிலும்,
8. ஓங்காரம்,
9. உஜ்ஜையினி முறையே - மத்தியப் பிரதேசத்திலும்,
10. விச்வேசம் (வாரணாசி),
11. கேதாரம் முறையே - உத்திரப் பிரதேசத்திலும்,
12. இராமேசுவரம் - தமிழ்நாட்டிலும் உள்ளன.
Friday, March 5, 2010
Never Worry how many people Dislike you
A man hated his wife's cat and he decided to get rid of it. He drove 20 blocks away from home and dropped the cat there. The cat was already walking up the driveway when he approached his home.
The next day, he decided to drop the cat 40 blocks away but the same thing happened.. He kept increasing the number of blocks but the cat kept coming home before him.
At last he decided to drive a few miles away, turn right, then left, past the bridge, then right again and another right and so on until he reached what he thought was a perfect spot and dropped the cat there.
An hour later.... The man calls his wife at home and asked her, "Jen is the cat there?" "Yes, why do you ask?" answered the wife.
Frustrated the man said," Put that damn cat on the phone, I am lost and I need directions to reach home!!!
Moral:
"How much ever we dislike somebody, someday we will need their assistance. So never worry how many people dislike you... "
The next day, he decided to drop the cat 40 blocks away but the same thing happened.. He kept increasing the number of blocks but the cat kept coming home before him.
At last he decided to drive a few miles away, turn right, then left, past the bridge, then right again and another right and so on until he reached what he thought was a perfect spot and dropped the cat there.
An hour later.... The man calls his wife at home and asked her, "Jen is the cat there?" "Yes, why do you ask?" answered the wife.
Frustrated the man said," Put that damn cat on the phone, I am lost and I need directions to reach home!!!
Moral:
"How much ever we dislike somebody, someday we will need their assistance. So never worry how many people dislike you... "
Subscribe to:
Posts (Atom)