Friday, December 18, 2009

How to identify the overwritten buffer's in C/C++ programming.

How to identify the overwritten buffer's in C/C++ programming.

Usually when we allocate memory using malloc(),
CRT does that with the hex value "FD" before and
after the memory being allocated. We can do the
check of them by looking into the memory view of
that allocated particular memory address.

While writing to the buffer if we examine
these memory locations, we can able to identity
whether we are using memory over than the allocated
size.

This is a simple method or a quick examining
method to override memory issues becuase of wrong
allocation.

Wednesday, December 2, 2009

Error in AVG Exchange Extension

I am using Outlook 2007. I have been left pop up with the following errors, while starting Outlook after recent updates from AVG.

The Add-in "AVG Exchange Extension" (C:\PROGRA~1\AVG\AVG8\avgxch32.dll) cannot be loaded and has been disabled by Outlook. Please contact the Add-in manufacturer for an update. If no update is available, please uninstall the Add-in.

The Add-in "AVG Exchange Extension" (C:\PROGRA~1\AVG\AVG8\avgxch32.dll) cannot be loaded and has been disabled by Outlook. Please contact the Add-in manufacturer for an update. If no update is available, please uninstall the Add-in.

The Add-in "AVG Exchange Extension" (C:\PROGRA~1\AVG\AVG8\avgxch32.dll) cannot be loaded and has been disabled by Outlook. Please contact the Add-in manufacturer for an update. If no update is available, please uninstall the Add-in.

Inorder to disable the AVG Exchange Extension I have followed the following steps:

1. Open Outlook 2007.
2. Follow the path. Tools -> Trust Center -> Add ins(in the left column).
3. Select "Client Exchange Extensions" in the combo box at the right hand side bottom and press "Go".
4. You will get the Pop-up of extensions listed with the outlook from various clients.
5. Disable "AVG Exchange Extension" by unchecking that from the checkbox list.
6. Click Okay and restart Outlook to confirm error free.

Enjoy error free Outlook.......

IMPORTANT:

It is better to follow if you have outlook configured for Official mails. Usage of other mail ids are at your own risk.


Monday, November 30, 2009

How to identify Windows OS architecture(whether a computer is running a 32-bit version or 64-bit version)

Determine the operating system bit count

Locate the operating system that is running on your computer in this section, and then follow the steps to determine the bit count of your operating system.

Windows Vista

If you have Windows Vista, there are two methods to determine whether you are running a 32-bit or a 64-bit version. If one does not work, try the other.
Method 1: View System window in Control Panel

  1. Click Start
    Collapse this imageExpand this image
     Start button
    , type system in the Start Search box, and then click system in the Programs list.
  2. The operating system is displayed as follows:
    • For a 64-bit version operating system: 64-bit Operating System appears for the System type under System.
    • For a 32-bit version operating system: 32-bit Operating System appears for the System type under System.
Method 2: View System Information window

  1. Click Start
    Collapse this imageExpand this image
     Start button
    , type system in the Start Search box, and then click System Information in the Programs list.
  2. When System Summary is selected in the navigation pane, the operating system is displayed as follows:
    • For a 64-bit version operating system: x64-based PC appears for the System type under Item.
    • For a 32-bit version operating system: x86-based PC appears for the System type under Item.
If you cannot determine the operating system bit count with these methods, go to the "Next Steps" section.

Windows XP

If you have Windows XP, there are two methods to determine whether you are running a 32-bit or a 64-bit version. If one does not work, try the other.
Method 1: View System Properties in Control Panel

  1. Click Start, and then click Run.
  2. Type sysdm.cpl, and then click OK.
  3. Click the General tab. The operating system is displayed as follows:
    • For a 64-bit version operating system: Windows XP Professional x64 Edition Version <> appears under System.
    • For a 32-bit version operating system: Windows XP Professional Version appears under System.
    Note is a placeholder for a year.
Method 2: View System Information window

  1. Click Start, and then click Run.
  2. Type winmsd.exe, and then click OK.
  3. When System Summary is selected in the navigation pane, locate Processor under Item in the details pane. Note the value.
    • If the value that corresponds to Processor starts with x86, the computer is running a 32-bit version of Windows.
    • If the value that corresponds to Processor starts with ia64 or AMD64, the computer is running a 64-bit version of Windows.
If you cannot determine the operating system bit count with these methods, go to the "Next Steps" section.

Windows Server 2003

If you have Windows Server 2003, there are two methods to determine whether you are running a 32-bit or a 64-bit version. If one does not work, try the other.
Method 1: View System Properties in Control Panel

  1. Click Start, and then click Run.
  2. Type sysdm.cpl, and then click OK.
  3. Click the General tab. The operating system is displayed as follows:
    • For a 64-bit version operating system: Windows Server 2003 Enterprise x64 Edition appears under System.
    • For a 32-bit version operating system: Windows Server 2003 Enterprise Edition appears under System.
Method 2: View System Information window

  1. Click Start, and then click Run
  2. Type winmsd.exe, and then click OK.
  3. When System Summary is selected in the navigation pane, locate Processor under Item in the details pane. Note the value.
    • If the value that corresponds to Processor starts with x86, the computer is running a 32-bit version of Windows.
    • If the value that corresponds to Processor starts with EM64T or ia64, the computer is running a 64-bit version of Windows.
If you cannot determine the operating system bit count by using these methods, go to the "Next Steps" section.

Notes
  • To find the computer’s bit count, see the documentation that was included with the computer, or contact the hardware manufacturer.
  • Intel Itanium-based computers can run only 64-bit versions of Windows. Intel Itanium-based computers cannot run 32-bit versions of Windows. Currently, 64-bit versions of Windows run only on Itanium-based computers and on AMD64-based computers.

Link Followed:
http://support.microsoft.com/?kbid=827218

Saturday, November 7, 2009

காயகல்பம் பற்றிய சில குறிப்புகள்

காயகல்பம் என்றால் என்ன?

காயமாகிய உடலை கல்பம் செய்வது - சித்தம் செய்வது.
மூப்பு, நோய், மெலிதல், பெருத்தல், பசி, தாகம், களைப்பு, அதிக தூக்கம்
ஆகியவை இல்லாமல் இருத்தல்; ஐம்புலன்கள் கூர்மை மாறாமல் இருத்தல்; மலம்,
சிறுநீர், வியர்வை அதிகம் வெளியிடாமல் இருத்தல், குளிக்கவில்லையென்றாலும்
துர்நாற்றமில்லாமல் இருத்தல் போன்ற தன்மைகளைப் பெற்றிருத்தல் காயகல்பத்தில் அடங்கும்.
உடலைக் கல்பம் செய்துவிடுவதால் அதில் சிரமமில்லாமல் உயிர் இருப்பதற்கு வசதி ஏற்படுவிடுகிறது.
உணவோ நீரோ அதிகம் தேவைப்படமாட்டாது.
நீண்டகாலத்துக்கு உயிர் உடலில் தங்கியிருப்பதற்கு முடியும் நிலையில்
உடல் இருக்கும்.
ஆனால் அளவில்லாத காலத்துக்கு உயிரை வைத்துக்கொள்ள முடியுமா?
ஆயுட் காலம் என்பது இருக்கிறது அல்லவா.
சமாதி நிலையில் இருப்பது, நிர்விகல்ப சமாதி, உயிரை/
ஆவியுடலை வெளியில் உலவச் செய்வது, கூடுவிட்டுக் கூடு பாய்தல்
போன்றவையெல்லாம் இதன் தொடர்பாக உள்ள சமாச்சாரங்கள் தாம்.
காயக்ல்பம் செய்துகொண்டாலும்கூட உயிரை அந்த
உடலில் நீண்ட காலம் தங்க வைப்பதற்கு விசேஷமான
பிராணாயமம் போன்ற முறைகள் இருக்கின்றன.
எத்தனை சுழி மூச்சு ஒரு மனிதனுக்குக் கொடுக்கப் பட்டிருக்கிறது
என்பதற்கு வரையறை உண்டு.
அந்த சுழியைச் சேமித்து வைத்துக்கொள்ளும் முறைகள் உண்டு. அவ்வாறு
சேமிப்பில் போட்டுக்கொள்ளும்போது அந்த
சுழிகளின் கணக்குக்கு ஏற்ப ஆயுளும் நீடிக்கும் அல்லவா?
நாளொன்றுக்கு சராசரி மனிதன் 25920 முறை மூச்சு
விடுகிறான். அவனுடைய நாடி 103,680 தடவை அடிக்கிறது.
இந்த வேகத்தைக் குறைத்துக் கொள்ளமுடிந்தால்....?
யோகியருக்கும் சித்தர்களுக்கும் இது முடியும்.

மிக மிக மிக எளிமைப் படுத்திச் சொல்லியிருக்கிறேன். மேலும் சொல்கிறேன்.
காயகல்பத்திற்குப் பல முறைகளும் பயிற்சிகளும் இருக்கின்றன.
தோஷமற்ற உணவு, குறைவான உணவு, ஒரு நேர உணவு, குடலைக் கழுவுதல், குறைவான
தூக்கம், பிராணாயாமம், தியானம், இயமம், நியமம், ஆசனம் போன்ற பல சங்கதிகள்
சம்பந்தப் பட்டிருக்கும். சில மருந்துகளும் உட்கொள்வார்கள்.
தங்க பஸ்பம்கூட காயகல்பம் சம்பந்தப்பட்டதுதான்.

அமூரிதாரணை என்றொரு முறை உண்டு. காலையில்
எழுந்தவுடன் சிறிது சிறுநீரைக் கழியவிட்டு, அதன் பின்னர் ஓர்
உள்ளங்கையளவு - நூறு மிளகு அளவுக்குச் சிறுநீரைப் பிடித்து,
வெறும் வயிற்றில் குடிப்பதுதான் அமூரிதாரணை.

காயகல்ப மூலிகை மருந்துகளில் ஒரு மருந்தைப் பற்றி
டாக்டர் சர்மா ஒருமுறை சொன்னார்.
பல ஆண்டுகள் வயதாகிய முற்றிய நெல்லிமரத்தை
வெட்டிவிடுவார்கள். அதன் அடிப்பாகம் வெளியில் நீட்டிக்
கொண்டிருக்கும். அதைக் குடைந்து ஒரு குடம்பை உருவாக்கிக் கொள்வார்கள்.
அதற்குள் தொண்ணூற்றாறு வகை மூலிகைகள், மருந்துப்
பொருட்களைச் சித்தப்படுத்தி, சுத்தப்படுத்தி சேர்மானம் செய்து
வைப்பார்கள். அந்த தொண்ணூற்றாறு பொருட்களில் நெல்லிக்
கனியும் இருக்கும். அதற்குமேல் வேடுகட்டி களிமண்¨ணைப்
பூசிவிடுவார்கள். அதன்பின்னர் அதற்கு நெருப்பு மூட்டி மெதுவாகக் கனன்று
கொண்டிருக்குமாறு செய்வார்கள். நாட்கணக்கில்
நெல்லிமரத்தின் அடிப்பாகம் எரிந்து கனன்று கொண்டிருக்கும்.
குறிப்பிட்ட காலம் கனன்றுகொண்டிருந்த பிறகு மேலேயுள்ள களிமண்ணால்
கட்டப்பட்டிருந்த வேடை உடைத்து நீக்குவார்கள்.
அதற்குள் இருக்கக்கூடிய மருந்தை எடுத்து நன்கு சுத்தப்படுத்தி
பயன்படுத்துவார்கள்.

இது ஒரு காயகல்ப மருந்து.

I got this information from a yahoo group.

Wednesday, November 4, 2009

How to unpack a WAR file

A WAR file is a web application, zipped into a single file. It is basically just a ZIP file with a special folder structure. It is called a WAR file to identify it as a web application.

Why would I want to unpack my WAR file?

    * WAR files are sometimes more difficult to undeploy, and have problems such as not being able to determine the application root, it is sometimes preferable to unpack the WAR file.
    * Some packages such as JSPWiki have the properties files in the WAR, so it must be unpacked to edit settings before deployment.

How to unpack

    * Rename the file as a zip file (eg: myapp.war becomes myapp.zip)
    * Unzip as you would with any other zip file




Saturday, October 31, 2009

Get Samba to Work with Higher Version of Windows.

Accessing network drives shared on Samba protocol cannot be accessed in higher versions of Microsoft Windows . The technical reason for this failure is Microsoft changed its default security policy to use NTLMv2 authentication only.

Inorder to overcome this we change this security policy to meet our requirements.

Steps are as follows:

1. Run "secpol.msc" from the command prompt / Run utility in Windows. (Start->Run.)
2. It will display Microsoft Security Console for "Local Security Policy".
3. Select the "Local Policies" from the tree of "Security Setting" in the Left hand tab.
4. Select the "Security Options" from the tree of "Local Policies".

Security Settings->
Local Policies->
Security Options

5. Select the policy "Network Security: LAN Manager authentication level" from the list of policies in the right hand side.
6. Right click and open the "Properties".
7. Select the tab "Local Security Setting".
8. Change the drop down menu from "NTVLM2 responses only" to "LM and NTLM – use NTLMV2 session security if negotiated".
9. Apply and close the property window.

Now you can access network drives shared on Samba protocol.

Enjoy sharing.

Monday, October 12, 2009

Presenting a word in various most popular encodings

Here's the file "Hello" in various encodings:

48 65 6C 6C 6F

This is the traditional ANSI encoding.

48 00 65 00 6C 00 6C 00 6F 00

This is the Unicode (little-endian) encoding with no BOM.

FF FE 48 00 65 00 6C 00 6C 00 6F 00

This is the Unicode (little-endian) encoding with BOM. The BOM (FF FE) serves two purposes: First, it tags the file as a Unicode document, and second, the order in which the two bytes appear indicate that the file is little-endian.

00 48 00 65 00 6C 00 6C 00 6F

This is the Unicode (big-endian) encoding with no BOM. Notepad does not support this encoding.

FE FF 00 48 00 65 00 6C 00 6C 00 6F

This is the Unicode (big-endian) encoding with BOM. Notice that this BOM is in the opposite order from the little-endian BOM.

EF BB BF 48 65 6C 6C 6F

This is UTF-8 encoding. The first three bytes are the UTF-8 encoding of the BOM.

2B 2F 76 38 2D 48 65 6C 6C 6F

This is UTF-7 encoding. The first five bytes are the UTF-7 encoding of the BOM. Notepad doesn't support this encoding.

Friday, October 9, 2009

பட்டினத்தடிகளின் தொல்தமிழ்லில் தெளிவுரை

இருப்பதுபொய் போவதுமெய் என்றெண்ணி நெஞ்சே
ஒருத்தருக்கும் தீங்கினை உன்னாதே; பருத்த தொந்தி
நம்மதென்று நாமிருக்க, நாய்நரிகள் பேய்கழுகு
தம்மதென்று தாமிருக்கும் தாம்

மாலைப் பொழுதில் நறுமஞ்சள் அரைத்தே குளித்து
வேலை மெனக்கெட்டு விழித்திருந்து சூலாகிப்
பெற்றாள் வளர்த்தாள் பெயரிட்டாள் பெற்றபிள்ளை
பித்தானால் என்செய்வாள் பின்

உண்டென்றிரு தெய்வம் உண்டென்றிரு உயர்செல்வமெல்லாம்
அன்றென்றிரு பசித்தோர் முகம்பார் நல்லறமும் நட்பும்
நன்றென்றிரு நடுநீங்காமலே நமக்கு இட்டபடி
என்றென்றிரு மனமே உனக்கு உபதேசம் இதே

நாப்பிளக்கப் பொய்யுரைத்து நவநிதியம் தேடி
நலனொன்றும் அறியாத நாரியரைக் கூடிப்
பூப்பிளக்க வருகின்ற புற்றீசல்போலப்
புலபுலெனக் கலகலெனப் புதல்வர்களைப் பெறுவீர்
காப்பதற்கும் வகையறியீர் கைவிடவும் மாட்டீர்
கவர்பிளந்த மரத்துளையில் கால் நுழைத்துக் கொண்டே
ஆப்பதனை அசைத்து விட்ட குரங்கதனைப் போல
அகப்பட்டீர் கிடந்துழல அகப்பட்டீரே

பட்டினத்தடிகலின் புலம்பல்

பட்டினத்தடிகள் துறவியாக ஊர் ஊராகத் திரிந்து கொண்டிருந்த காலத்தில் அவருடைய அன்னையார் மரணமடைந்தார். அவருடைய ஈமச்சடங்கை எங்கிருந்தாலும் வந்து செய்து தருவேன் என்று வாக்களித்திருந்த பட்டினத்தடிகள் சரியான நேரத்தில் சுடுகாட்டினை அடைந்தார். அவருடைய தாயின் சிதைக்காக உறவினர்கள் அடுக்கியிருந்த காய்ந்த விறகுகளை அகற்றிவிட்டு பச்சை வாழைமட்டைகளையும் இலைகளையும் கொண்டு சிதை அடுக்கி பத்துபாடல்கள் பாடி சிதையைப் பற்றச் செய்தார். அந்தப் பாடல்கள் மிகப் புகழ்பெற்றவை.

ஐயிரண்டு திங்களாய் அங்கமெலாம் நொந்து பெற்றுப்
பையலென்ற போதே பரிந்தெடுத்துச் செய்ய இரு
கைப்புறத்தில் ஏந்திக் கனகமுலை தந்தாளை
எப்பிறப்பில் காண்பேன் இனி
முந்தித் தவம் கிடந்து முன்னூறு நாள்சுமந்தே
அந்திபகலாய்ச் சிவனை ஆதரித்துத் தொந்தி
சரியச் சுமந்து பெற்ற தாயார் தமக்கோ
எரியத் தழல் மூட்டுவேன்
வட்டிலிலும் தொட்டிலிலும் மார்மேலும் தோள்மேலும்
கட்டிலிலும் வைத்தென்னைக் காதலித்து முட்டச்
சிறகிலிட்டுக் காப்பாற்றிச் சீராட்டிய தாய்க்கோ
விறகிலிட்டுத் தீமூட்டு வேன்
நொந்து சுமந்து பெற்று நோவாமல் ஏந்திமுலை
தந்து வளர்த்தெடுத்துத் தாழாமே அந்திபகல்
கையிலே கொண்டென்னைக் காப்பாற்றிய தாய்தனக்கோ
மெய்யிலே தீமூட்டு வேன்
அரிசியோ நானிடுவேன் ஆத்தாள் தனக்கு
வரிசையிட்டுப் பார்த்து மகிழாமல் உருசியுள்ள
தேனே திரவியமே செல்வத் திரவியப்பூ
மானே எனஅழைத்த வாய்க்கு
அள்ளி இடுவது அரிசியோ தாய்தலைமேல்
கொள்ளிதனை வைப்பேனோ கூசாமல் மெள்ள
முகமேல் முகம்வைத்து முத்தாடி என்றன்
மகனே எனஅழைத்த வாய்க்கு
முன்னை இட்ட தீ முப்புறத்திலே
பின்னை இட்ட தீ தென்இலங்கையில்
அன்னை இட்ட தீ அடிவயிற்றிலே
யானும் இட்ட தீ மூள்கமூள்கவே
வேகுதே தீயதனில் வெந்து பொடிசாம்பல்
ஆகுதே பாவியேன் ஐயகோ மாகக்
குருவி பறவாமல் கோதாட்டி என்னைக்
கருதி வளர்த்தெடுத்த கை
வெந்தாளோ சோணகிரி வித்தகா நின்பதத்தில்
வந்தாளோ என்னை மறந்தாளோ சந்ததமும்
உன்னையே நோக்கி உகந்து வரம் கிடந்து என்
தன்னையே ஈன்றெடுத்த தாய்
வீற்றிருந்தாள் அன்னை வீதிதனில் இருந்தாள்
நேற்றிருந்தாள் இன்றுவெந்து நீறானாள் பால்தெளிக்க
எல்லோரும் வாருங்கள் ஏதென்று இரங்காமல்
எல்லாம் சிவமயமே யாம்

Thursday, July 30, 2009

Iconv Application Online

A link to test iconv library online

http://www.iconv.org/

We can able to upload a file and select the transformation from one encoding to another.  Quite good one.

Monday, July 13, 2009

Good n fun :-)

A link that is quite good to enjoy......
http://social.answers.microsoft.com/Forums/en-US/vistahardware/thread/720108ee-0a9c-4090-b62d-bbd5cb1a7605


The extraordinary thing from the above is as follows:

"I am glad you brought this up actually.

I don't think this is just a technology problem. The other day, I was reading one of those MS press books (One of the Thick ones) and towards the end of the book (after reading it for about three hours) I wanted to get up for a glass of water and use the toilet eventually.
But, here's when a strange thing happened. As i was about to get up (I usually read in bed) my head was so heavy that I couldn't get up. I roughly estimate the weight increase ~564.32 grams.
Well, I attributed this phenomena to the amount of information that got stored in my brain during that time (Notice the similarity there ? )
I eventually fell asleep and when I woke up a few hours later to take the MS exam guess what?!? My head was light again, and I consequently failed the Exam as I couldn't remember anything a read on that book.

Based on my experience, what I would suggest, is turn the laptop off, leave it like that for a few hours and then you can carry it around without risking to break your back. You might risk to loose your data but hey, your health is more important.

I hope that helps"

Thursday, June 4, 2009

A recent report regarding India

Where India is moving to?

In the last two years, more than 218,000 people

across India committed suicide mainly due to poverty


     The latest statistics from US Department of Homeland Security shows that the numbers of Indian illegal migrants jumped 125% since 2000!

     Sixty years ago Indians asked the British to quit India. Now they are doing it themselves.

    To live with dignity and enjoy relative freedom, one has to quit India!

     With this massive exodus, what will be left behind will be a violently charged and polarized society



Monday, May 25, 2009

How to get the installation path of Perl from system path

Run the following command in a console

perl -e 'print "@INC";'

It will print all the entries in the system path.



Monday, May 18, 2009

Count no. of files in a directory

A simple command

                             dir /b | find /c /v ""

                            ls -l | wc - 1

Good and it is very useful....

Thursday, April 30, 2009

Count no. of files in a directory

A simple command

                             dir /b | find /c /v ""

Good and it is very useful....

Friday, April 17, 2009

Linux System Management

A set of useful Linux commands from some other websites.

Environment
env  Show all environment variables.
export  Set the value of a variable so it is visible to all subprocesses that belong to the current shell.
printenv  Print all or part of environment.
reset  Restores runtime parameters for session to default values.
set  Shows how the environment is set up. This is a builtin bash command.

Library management
ldconfig  Updates the necessary links for the run time link bindings.
ldd  Tells what libraries a given program needs to run.
ltrace  A library call tracer.
trace  Same as ltrace.

Module and kernel management
depmod  Handle loadable modules automatically. Creates a makefile-like dependency file.
dmesg  Print or control the kernel ring buffer. This shows the last kernel startup messages.
genksyms  Generate symbol version information.
insmod  Install loadable kernel module.
lsmod  List currently installed kernel modules.
modprobe  Used to load a set of modules that are marked with a specified tag.
rmmod  Unload loadable modules.
 

Runtime level management
exit  Terminates the shell.
halt  Stop the system.
init  Process control initialization.
initscript  Script that executes inittab commands.
logout  Log the user off the system.
poweroff  Brings the system down.
reboot  Reboot the system.
runlevel  List the current and previous runlevel.
setsid  Run a program in a new session.
shutdown  If your system has many users, use the command "shutdown -h +time message", where time is the time in minutes until the system is halted, and message is a short explanation of why the system is shutting down.
# shutdown -h +10 'We will install a new disk. System should be back on-line in three hours.'
telinit  By requesting run level 1 a system can be taken to single user mode.

System Configuration tools
ctrlaltdel  Set the function of the ctrl alt del combination.
isapnp  Configure ISA plug and play devices.
kbdconf   A Redhat Linux tool which configures the /etc/sysconfig/keyboard file which specifies the location of the keyboard map file. This is a GUI based tool.
kbdrate  Set the keyboard repeat rate and delay time.
kernelcfg  A Redhat GUI kernel configuration tool, Start X, then run it from a console session.
linuxconf  Redhat's GUI linux system configuration tool.
lspci  List all pci devices.
mesg  Control write access to your terminal.
mouseconfig  A Redhat Linux tool used to configure the /etc/sysconfig.mouse file. This is a GUI tool.
ndc  Script file used to restart, stop, start the DNS server.
Printtool  Redhat's GUI printer configuration tool.
quota  Display disk usage and limits.
quotacheck  Scan a filesystem for disk usages.
quotaoff  Turn file system quotas off.
quotaon  Turn file system quotas on.
samba  Script file used to stop, start, restart samba services when not run using inetd.
setpci  Configure pci devices.
setserial  Set/get serial port information.
setterm  Set terminal attributes.
setup  Set up devices and file systems.
stty  Used to configure and print the console devices.
swapon  Enable devices and files for paging and swapping.
swapoff  Disable devices and files for paging and swapping.
timeconfig  A Redhat Linux tool used to configure the /etc/sysconfig/clock file. This is a GUI tool used to set timezone and whether or not the clock is set to GMT time.
tset  Used to initialize terminals.

System Information
arch  Print machine architecture.
df   Shows disk free space.
du  Shows disk usage.
free  Display used and free memory on the system.
ipcrm  Provide information on ipc facilities.
ipcs  Same as ipcrm.
lsdev  Display information about installed hardware via files in the /proc directory.
lsof  List open files.
lspci  List PCI devices .
pnpdump  Lists ISA plug and play devices resource information.
procinfo  Display system status gathered from proc.
pstree  Display a tree of processes.
runlevel  Find the current and previous system runlevel.
strace  Trace ssytem calls and signals for a binary program.
stty  Change and print terminal line settings.
tload  Prints a graphic representation of the system load average.
tty  Print the filename of the terminal connected to standard input.
uname  Print system information, Prints Linux.
vmstat  Report virtual memory statistics.
xcpustate  Displays CPU states (idle, nice, system, kernel) statistics. Runs in X?

System Logging
klogd  Kernel log daemon which intercepts and logs Linux kernel messages.
logger  Make entries in the system log.
syslogd  Linux system logging utilities.
sysklogd  Linux system logging utilities.

System Security

System time
cal  Calendar.
clock  Used to change or get current time. The command "clock -–w" sets the hardware clock.
date  Print or set the system date and time.
hwclock  Set or read the hardware CMOS clock.
timed  Time server daemon to synchronize the host's time with other machines, normally invoked at boot time from the rc(8) file.
timedc  Timed control program.
tzset  Used to change the users private time zone by setting the TZ environment variable.
uptime  Reports how long the system has been running.
zdump  Prints the current time in each zonename named on the command line.
zic  Reads text from files named on the command line and creates time conversion files.

X Management and programs
SuperProbe  Probe video hardware.
Xconfigurator  The Redhat tool used during system setup to configure X.
xconsole  Displays messages usually sent to /dev/console.
xf86config  Older version of XF86Setup.
XF86Setup  A newer X configuration program with a GUI interface which modifies the "/etc/X11/XF86Config" configuration file.
xvidtune  This program will test video modes on the fly without modification to your X configuration. Read the usr/X11R6/lib/X11/doc/VideoModes.doc file before running this program.

*****************************************************************************

General System Info
Note: Most hardware info commands should be run as root. Some even show more info when run as root.

Run qtparted or GParted for hard drive and partition info!!!
Also, see KDiskFree. And fdisk -l for info on all partitions.

hardinfo - good report to run; also, check the Details tab.

Ko's Method For Getting A Hardware Report:
This report runs a series of reports, some of which are listed individually further on in this document.
Install through Synaptic the package installation-report.
Then run in a maximized konsole:
report-hw
or
report-hw > hwreport (Sends the output to a textfile called hwreport in your home folder)

sysinfo a nice graphical display, run it from a terminal.

hal-device-manager
kde-hal-device-manager
These packages can be installed from Synaptic. Use kde-hal-device-manager by clicking KMenu > System > Device Manager.

dmidecode -t memory (as root) The dmidecode tool dumps your system’s DMI (Desktop Management Interface) table contents in a human-readable format. This table contains information regarding system’s hardware components, as well as BIOS revisions etc. dmidecode output not only describes system current configuration, but also reports the BIOS limitations on supported CPU speed, Maximum Memory allowed and more.
dmidecode | less (as root) BIOS info and system info (space to page down, q to quit)

uname -a (info on your server)
uname -m machine number (i.e. - i686)
uname -r kernel version

lshw (as root) - list hardware; might want to run lshw | less (space to page-down, q to quit)
lshw-gtk (as root) - download this from Synaptic; it can be started from the terminal; click on any item for info; double click on the the items in bold to drill down; excellent front-end for lshw.

lsb_release -a (release info) (don't forget the underscore) (or see /etc/lsb_release)
***In Mepis Linux 6.5, this command returns:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 6.06.1 LTS
Release: 6.06
Codename: dapper

For the Mepis 6.5, one solution for finding the version that you're running is to go to take a look at the login screen.

lspci (as root) (controllers, etc.) (VERY good report; -v is verbose, -vv is very verbose
lspci -tv (as root) shows tree
lsusb, lsusb -tv - list usb devices
lsmod (at root, shows kernel modules currently loaded. Also try lsmod | less)

/proc - there's important info located in this directory! cd /proc, then ls; use cat to read the files in /proc such as cpuinfo, devices, filesystems, meminfo, partitions, swaps, uptime, version, etc.; also, you can cd into the subdirectories in /proc, for example cd driver.
Examples:
cat /proc/cpuinfo (or cat cpuinfo from inside /proc)
cat /proc/version (or cat verson from inside /proc) - version info
cat /proc/swaps (or cat swaps from inside /proc) will show info on each swap partition.

top - display Linux tasks, real-time; system summary info and a list of tasks currently being managed by the kernel - includes a live report on swap being used; type Shift-f to get sort options while running (default sort is k - CPU usage)

htop - even better than top; interactive process viewer can be used to kill processes.

ctrl-esc (from anywhere in KDE) - brings up the ProcessTable
procinfo – procinfo is a small program that gathers some system information from diverse files under /proc and prints it to the screen. It duplicates some of the functionality of free(1) and uptime(1). This also includes lsdev for displaying information about installed hardware and socklist for displaying a list of open sockets.

Other Ways To List Processes:
ps aux
ps -e

swapon -s shows swap partitions and info
swapon -a makes all swap partitions available as indicated in /etc/fstab.

fdisk -l gives all partition info on hard disk(s).

/etc/fstab (the fstab file contains file system configuration information)

free (memory usage, in kilobytes.
free -m (memory usage, in MB).

ksysguard application and ksysguard tray applet both show memory usage

df -h (disk info about all mounted file systems, human-readable)
df -hT (disk info about all mounted file systems, human-readable, showing file system type)

du / -bh | more detailed diskusage for each subdirectory starting at root, human readable; use space to page down, q to quit.
du -s /var/log/* - displays space usage of all the files in /var/log

hdparm -t /dev/hda (as root) - display disk performance of hda


This shows what the cpu identifies itself as:
arch (but it could be wrong, see command below)
rpm --showrc| grep " arch" (if rpm is installed)

ifconfig -a – displays IP address and other info

Time Info Commands:
date
uptime



--------------------------------------------------------------------------------

Package Info
apt-show-versions > InstalledPkgs (as root) - outputs the text file InstalledPkgs to your home directory. This shows all packages on your system. This list won't be alphabetized. You can copy and paste it into a spreadsheet and then sort it. You can download apt-show-versions with Synaptic. See man apt-show-versions for more info. Another option is to look at the installed packages in Synaptic.

ls /var/cache/apt/archives > AddedPkgs outputs the text file AddedPkgs to your home directory. This shows all of the packages that you've added to your system (unless you've deleted this info, or unless Synaptic has been set to delete it!). There's also a "partial" directory, so
ls /var/cache/apt/archives/partial > PartialPkgs to output a text file called PartialPkgs.

To get a package list sorted by size:
dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n


--------------------------------------------------------------------------------

Here's a section that I tacked on, just so I'd have a quick reference to some helpful bash commands.

Bash Info
echo $PATH show the content of the environmental variable named PATH
echo $? shows the exit code of the last command

help shows a list of shell builtin commands, and help name shows help on the command name; also, see the section on Shell Builtin Commands in man bash

whereis locates the binary, source, and manual page files for a command.

which returns the pathnames of the files which would be executed in the current environment, had its arguments been given as commands in a strictly POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the arguments. Note: In Mepis Linux, which is an alias for type -path. Although that command is not explicitly defined, try the command help type for more info on the type command. which=type -path may be the same as type -P. In practice, the which command and the type -path command may be equivalent. To see the true which command in action in Mepis Linux, type "which" (use quotes) (or unalias which to permanently remove the alias).

type (name) indicates how it would be interpreted if used as a command name

alias shows a list of all aliases
unalias will remove an alias permanently
"command" quoting the command will run the "true" command (if it exists) instead of the alias

file guesses what type of file
file file
file -i file for more info
file -iz file for compressed files
file -s file for block or special character files

tree – list directory structure and content in a tree-like format; by default lists the contents of the directory that you're in.

cal - current month
cal -3 - last month, current month, and next month
cal [month] year - specify month, or month and year [examples: cal august 2007; cal 2006]


Tuesday, March 31, 2009

"ஆய கலைகள் அறுபத்து நான்கு"

1. அக்கரவிலக்கணம் எழுத்திலக்கணம்
2. இலிகிதம்         எழுத்தாற்றல்
3. கணிதம்          கணிதவியல்
4. வேதம்           மறை நூல்
5. புராணம்          தொன்மம்
6. வியாகரணம்      இலக்கணவியல்
7. நீதி சாஸ்திரம்     நய நூல்
8. ஜோதிடம்         கணியக் கலை
9. தர்ம சாஸ்திரம்   அறத்துப் பால்
10. யோக சாஸ்திரம்   ஓகக் கலை
11. மந்திர சாஸ்திரம்  மந்திரக் கலை
12. சகுன சாஸ்திரம்    நிமித்தகக் கலை
13. சிற்ப சாஸ்திரம்    கம்மியக் கலை
14.வைத்தியசாஸ்திரம்  மருத்துவக் கலை
15. உருவ சாஸ்திரம்    உறுப்பமைவு
16. இதிகாசம்           மறவனப்பு
17. காவியம்            வனப்பு
18. அலங்காரம்        அணி இயல்
19. மதுர பாடனம்      இனிதுமொழிதல்
20. நாடகம்             நாடகக் கலை
21. நிருத்தம்           ஆடற் கலை
22. சத்தப்பிரும்மம்     ஒலிநுட்ப அறிவு
23. வீணை             யாழ் இயல்
24. வேணு (புல்லாங்குழல்)குழலிசை
25. மிருதங்கம்          (மத்தளம்)
26. தாளம்            தாள இயல்
27. அத்திரப் பரிட்சை  வில்லாற்றல்
28. கனகப் பரிட்சை    (பொன் நோட்டம்)
29. இரதப் பரிட்சை     (தேர் ஏற்றம் )
30. கஜப் பரிட்சை      (யானை எற்றம்)
31. அசுவப் பரிட்சை    (குதிரை ஏற்றம்)
32. இரத்தினப் பரிட்சை    மணி நோட்டம்
33. பூமிப் பரிட்சை      மண்ணியல்
34. சங்கிராம விலக்கணம் போர்ப் பயிற்சி
35. மல்யுத்தம்            கைகலப்பு
36. ஆகருடனம் (ஆகர்ஷணம்)கவர்ச்சியியல்
37. உச்சாடனம்           ஓட்டுகை
38. வித்து வேடனம்     (நட்பு பிரிக்கை)
39. மதன சாஸ்திரம்     மதன கலை
40. மோகனம்          மயக்குக் கலை
41. வசீகரணம்         வசியக் கலை
42. இரசவாதம்         இதளியக் கலை
43. காந்தருவ வாதம்    (இன்னிசைப் பயிற்சி)
44. பைபீலவாதம்        (பிறவுயிர்மொழி)
45. கவுத்துவ வாதம்     மகிழுறுத்தம்
46. தாதுவாதம்          ( நாடி சாஸ்திரம்)
47. காருடம்             கலுழம்
48. நட்டம் (காணாமற்போன பொருளைக் கண்டுபிடித்தல் அல்லது இழப்பறிகை)
49. மூட்டி (கைக்குள் மூடியிருக்கும் பொருளைச் சொல்லுதல்;மறைத்ததையறிதல்)
50. ஆகாய கமனம் (வானத்தில் ஊர்ந்து செல்லுதல்--வான் செல்கை)
51. பரகாய பிரவேஷம் (கூடுவிட்டுக் கூடு பாய்தல்)
52. ஆகாயப் பிரவேஷம் ( ஆகாயத்தில் மறைந்து கொள்வது--வான்புகுதல்)
53. அதிரிசியம்          தன்னுறு கரத்தல்
54. இந்திர ஜாலம் (செப்பிடு வித்தை, மாய வித்தை)
55. மகேந்திர ஜாலம்    பெருமாயம்
56. அக்கினி ஸ்தம்பம் (நெருப்பைச் சுடாமல் கட்டல்--அழற் கட்டு)
57. ஜலஸ்தம்பம் (நீருக்குள் மூழ்கி வெகு நேரமிருத்தல், நீரில் நடத்தல், நீரில் படுத்திருத்தல்)
58. வாயுஸ்தம்பம்       வளிக் கட்டு
59. திட்டி ஸ்தம்பம்     கண் கட்டு
60. வாக்கு ஸ்தம்பம்    நாவுக் கட்டு
61. சுக்கில ஸ்தம்பம்    (விந்தையடக்கல்)
62. கன்னத்தம்பம்        புதையற் கட்டு
63. கட்கத்தம்பம்         வாட் கட்டு
64. அவத்தைப் பிரயோகம் சூனியம்

Friday, March 27, 2009

C++ new generation - C++0x

C++0x  - A revision of C++ programming language booming up and it is expected to set standardized by 2009.  It is planned to contain lot of updates in the standards where existing C++ lags such as multi threading, native API's, easiest way of using STL components and algorithms, more and moreeeeeee.....

Have a look at the following website to get more info.

http://www.devx.com/SpecialReports/Article/38864



Tool to work with MSI files

I have recently came across a tool in Windows 2003 SDK's named Orca.  This tool can work with MSI files, do the need updates, additions and more.

I have not tried it yet.

Let me give a try when I was forced for that. :-)


Monday, March 9, 2009

Highest rated Tech Leaders - Mar'09

Steve Jobs, Apple: Approval: 90%, Company Rating: 3.8

Eric Schmidt, Google: Approval: 88%, Company Rating: 4.0

John Chambers, Cisco: Approval: 78%, Company Rating: 3.6

Mark Benioff, Salesforce.com: Approval: 73%, Company Rating: 3.7

Jim Balsillie, RIM: Approval: 70%, Company Rating: 3.8

Larry Ellison, Oracle: Approval: 63%, Company Rating: 3.2

Paul Otellini, Intel: Approval: 62%, Company Rating: 3.5

Poorly-rated

Michael Dell, Dell: Approval: 48%, Company Rating: 3.0

Steve Ballmer, Microsoft: Approval: 44%, Company Rating: 3.7

Sam Palmisano, IBM: Approval: 42%, Company Rating: 3.2

Mark Hurd, Hewlett-Packard: Approval: 41%, Company Rating: 2.8

Ed Colligan, Palm: Approval: 36%, Company Rating: 3.2

Jonathan Schwartz, Sun Microsystems: Approval: 25%, Company Rating: 3.1

Greg Brown, Motorola: Approval: 10%, Company Rating: 2.6


Ref: http://blogs.techrepublic.com.com/hiner/?p=1194&tag=nl.e101



Wednesday, February 25, 2009

How to list installed Perl Modules in Linux

Getting the list of installed Perl modules can be accomplished by the following ways:

**********************************************************************************
1. Just paste the following lines in the console and it will print all the installed Perl modules.

perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \
'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

*************************************************************************

2. Use the following Perl program to get plain TEXT dump of the list. Ensure that ExtUtils::Installed module is being installed.

use ExtUtils::Installed;

my $instmod = ExtUtils::Installed->new();

foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}

exit(0);

****************************************************************************

Monday, February 23, 2009

THE POWER OF LOVE

A mighty King was marching home after being victorious in a gruesome battle. He had captured the crown prince of the neighbouring kingdom and killed the King. The King was crossing through a jungle. He wanted to rest. The army halted there for the evening. Nearby was a hermitage.The king decided to pay his respects to the sage there. He sent his Minister and some soldiers to seek an audience. They told the disciples there, "Maharaj wants to meet the sage." The disciples said,"Guruji has retired for the day, you can come tomorrow." The next morning the King came to the hermitage dressed in his royal finery,accompanied by his ministers and attendants. The sage was sitting under a tree and scattering bajra seeds all around. Hundreds of birds of different kinds were eating and the sound of their twittering filled the air. The King walked up to the sage. The sage did not look up.


The king said, "Pranam, Guruji!"

No answer.
He spoke louder, "Pranam, Guruji!"
Still, no answer.

"Guruji, I said Pranam!" he said in an angry voice.
The sage looked up and said, "Stop shouting, you are scaring the birds.
That made the king even more furious. "Do you know who I am?" he shouted. The sage said calmly, "Yes, I do. You are the one who kills for the love of power. You are the one who knows not that this power is temporary. One day another King shall kill you in the same way. The love of power shall bring about your downfall.
The king was beside himself with rage. He said, "Your impertinence is intolerable. I shall behead you just now!" He drew out his sword and raised it to strike the sage. In an instant, hundreds of birds flew up and attacked the king. They poked their beaks into his face, his eyes and his arms and all over. The king moved his arms up and around to ward off the birds. But the birds wouldn't leave him. The sage said,"Leave him! Leave him! Come to me my dears!" All at once, the birds quietened down and sat meekly at the feet of the sage.
The sage said, "All I ever gave these birds is love. Oh King! Realize the power of love. The love of power has blinded you and brought you to the level of a killer. These birds would have killed you, but that's because they love me. I rule over them like a king too, but the only power I ever exercise over them is the power of love and it is greatest power on this Earth."

It's not what you gather, but what you scatter that tells what kind of life you have lived!