Tuesday, November 18, 2008

Not able to open C drive on double click

Are you not able to open C drive or any other drive when you double click on Hard disk drives? This is caused due to Virus attack. And possible other problem related to this is unable to display hidden files.
Anyways nothing to worry. This can be corrected, follow these steps
1) Open command prompt i.e start -> run -> and type "cmd"
2) cd\
3) attrib -r -h -s autorun.inf
4) del autorun.inf
5) Repeat this for other drives like d:, e: etc

Reboot your system, your problem will be solved.

Thursday, November 13, 2008

“No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.”

In AIX, the IBM c/c++ compiler xlc_r which gives the following licensing warning

“No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.”

which considerably slows down the build process. This can be avoided by modifying /etc/vac.cfg file. Since license manager is optional, check out for "options", near the end, in DEFLT for xlc_r. Then add -qnolm option if it is not already exist, which means "no license manager".

Tuesday, November 11, 2008

Splitting columns in Perl

Splitting columns or fields is one of the most common tasks. Among the many ways to split columns in perl, the best and the simplest way is
Suppose if we want to split 4th field, where the field separator is tab
while() {
chomp;
my $var=(split /\t+/)[3];
}