Tuesday, 30 November 2010

Solution :called too early to check prototype at in Perl

one of the way shis can happen if

you have declared function as

sub fun()
{

}


In perl you should declare function as

sub fun
{

}


- mihir patel

Tuesday, 23 November 2010

Monday, 15 November 2010

[SOLVED] Can't use sudo + /etc/sudoers +RHEL 5 +nopasswd

When using no password you may be thrown a error
ex.
>>> sudoers file: syntax error, line xx <<<
sudo: parse error in /etc/sudoers near line xx


Solution :
if you are giving a single command then just add a comma

user ALL=command, NOPASSWD: ALL

instead of ( This will be throwing an error)

user ALL=command NOPASSWD: ALL

Solution: sudoers file: syntax error, line xx

When using no password you may be thrown a error
ex.
>>> sudoers file: syntax error, line xx <<<
sudo: parse error in /etc/sudoers near line xx


Solution :
if you are giving a single command then just add a comma

user ALL=command, NOPASSWD: ALL

instead of ( This will be throwing an error)

user ALL=command NOPASSWD: ALL

Sunday, 7 November 2010

Solution : NotePad++ tabs to spaces

In version 5.6.8 (and above):

Settings -> Preferences... -> Language Menu/Tab Settings -> Tab Settings (group) -> Replace by space


In previous versions(5.6.7 and bellow):

Settings -> Preference -> Edit Components (tab) -> Tab Setting (group) -> Replace by space


- Mihir Patel