Nov 12, 2009

Blog Error - bX-59cppw

Blog Error Message when blog url is requested:

We're sorry, but we were unable to complete your request.

When reporting this error to Blogger Support or on the Blogger Help Group, please:

    * Describe what you were doing when you got this error.
    * Provide the following error code and additional information.

bX-59cppw


Solution:
temporary problem not sure of why. Solved for me when tried the url after some time.

Nov 11, 2009

How to enable character auto completion in windows

1)open REGEDIT (Start/Run)
2)Locate and open the following:
HKEY_CURRENT_USER/ Software/Microsoft/CommandProcessor

3)Double click on the "CompletionChar" key .
4)Change the value of the key to: 9
5)Close command prompt and open a new command prompt to see the auto character completion feature enabled.

Could not hibernate system or hibernate failing

Problem:
Could not hibernate system or hibernate failing

Error Message:
Windows - System Error
Insufficient system resources exist to complete the API

Solution :
This problem typically occurs when the computer uses 1 gigabyte (GB) or more of RAM.  Try hibernating after closing  unneccessary programs and reducing the RAM usage.
    (or)
This problem occurs because the Windows kernel power manager cannot obtain the memory resources that are required to prepare the computer to hibernate.
Refer
http://support.microsoft.com/kb/909095

Error 1311.Source file not found:

Error Message:
Error 1311.Source file not found: \\thiagu-lxp\vsvstdd2 (d)\_15777_RTL_x86_enu_VSD_Common.cab.  Verify that the file exists and that you can access it.

Fix:
This error comes when we try to install Visual Studio from remote workstation's CD drive. Just replace Disc1 with Disc2 and give 'retry' installation will go on until another similar error message. then insert Disc3 and give 'retry'

How to print list of installed softwares in Windows ?

write a windows .bat script with following commands and run it. You can find the file named 'software_list.txt' will be created with list of installed softwares in it.


echo List of softwares > software_list.txt
echo ================= >>software_list.txt
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp1.txt
find "DisplayName" temp1.txt| find /V "ParentDisplayName" > temp2.txt
for /f "tokens=2,3 delims==" %%a in (temp2.txt) do (echo %%a >> software_list.txt)
del temp1.txt temp2.txt

How to create Desktop icon in Quick launch

Problem:
How to create Desktop icon in Quick launch Menu

Solution:
Goto folder       C:\Documents and Settings\your_user_account\Application Data\Microsoft\Internet Explorer\Quick Launch
Create file named Show
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft'

Problem:
The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)   
C:\mohant\Perforce\dev\solutions\sharepoint\SecureSharePoint\SPObjectHelper.cs    7    17    RSASecureSharePointLibrary

Solution:
The reference it is looking for is missing. Make sure the program is installed or if it is available add the reference.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll

how to create a user in cygwin ?

Problem:
how to create a user in cygwin ?
useradd and adduser does not works in cygwin.

Solution:
you cannot create a user in cygwin.
create user in windows
login using that user in windows and run load cygwin. it will load in new user created.
do mkpasswd -l > /etc/passwd
then edit /etc/passwd and change the home dir to what ever you want

Linux Error - ssh: connect to host 10.10.25.5 port 22: Connection refused (or) How to configure ssh server in cygwin

Problem:
ssh: connect to host 10.10.25.5 port 22: Connection refused

Solution:
machine does not allows communiation through ssh. configure ssh server to allow communication through ssh
http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html

Sample ssh setup log
chmod +r /etc/passwd
chmod +r /etc/group
chmod 0775 /var

$ ssh-host-config
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
ME.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Info: Note that creating a new user requires that the current account have
*** Info: Administrator privileges.  Should this script attempt to create a
*** Query: new local account 'sshd'? (yes/no) yes
*** Info: Updating /etc/sshd_config file
*** Info: Added ssh to C:\WINDOWS\system32\driversc\services


*** Warning: The following functions require administrator privileges!

*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Info: Note that the CYGWIN variable must contain at least "ntsec"
*** Info: for sshd to be able to change user context without password.
*** Query: Enter the value of CYGWIN for the daemon: [ntsec]

*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start sshd' or `cygrunsrv -S sshd'.  Otherwise, it
*** Info: will start automatically after the next reboot.

*** Info: Host configuration finished. Have fun!

Data Send is more than received in network connection

Problems:
Data Send is  more than received  in network conncetion
services.exe is making more SMTP connections

Fix:
check netstat  -bv to see the binaries which has established connections on network along with their ports. If you find anything suspicious kill the process(delete the exe if it is virus)
Use online virus scanners
I recommed running Combofix.exe.
Check this link to download and use Combofix
http://www.bleepingcomputer.com/combofix/how-to-use-combofix

Nov 10, 2009

Virus Problems - csrsc.exe could not find the file

Problem:
Keep getting message "csrsc.exe could not find the file" when  windows boots


Solution:
C:\WINNT\system32\csrcs.exe

The error occurs because your  Antivirus has cleared your Virus program but did not remove the entries from the registries.(Use removing virus, use Combofix)

Follow these steps to stop the above message :
1) Backup the registry
2) Check out the following path for the entries of csrcs.exe and delete the entries containing csrcs.exe

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curre ntVersion\RunOnce
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\Cur rentVersion\Runonce

3) Check out this entry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\

Here you will find a Key with the name "Shell" Check whether the value of this key is something like "explorer.exe csrcs.exe" If it is so then u need to modify the value by removing "csrcs.exe" alone. Note donot delete the "explorer.exe" or delete the entire key

4) Restart your system

This will solve ur problem.

Same time do at your own risk.

WARNING: POSSIBLE DNS SPOOFING DETECTED!

Error :
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@$
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @$
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@$
The RSA host key for host1 has changed,$
and the key for the according IP address 10.10.25.5$
is unknown. This could either mean that$
DNS SPOOFING is happening or the IP address for the host$
and its host key have changed at the same time.$
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@$
 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @$
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@$
 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!$
 Someone could be eavesdropping on you right now (man-in-the-middle attack)!$
 It is also possible that the RSA host key has just been changed.$
 The fingerprint for the RSA key sent by the remote host is$
 g8:ac:7d:8d:df:32:f6:3a:f5:96:31:9a:13:27:eb:38.$
 Please contact your system administrator.$
 Add correct host key in /u/thiagu/.ssh/known_hosts to get rid of this message.$
 Offending key in /u/thiagu/.ssh/known_hosts:5$
 RSA host key for host1 has changed and you have requested strict$
 checking.$
 Host key verification failed.$

Solution:
Entries in known hosts must have outdated. Remove corresponding entry for the machine in /user_home_dir/.ssh/known_hosts  and add a updated one.

Characters of HTML file served by Apache are showing wrongly

Problem
Characters of  HTML file served by Apache are showing wrongly. Some characters like spaces or characters  are shown like symbols.

Solution:
Change character set of  apache by editing httpd.conf file 
edit  /etc/httpd/conf/httpd.conf and  change the value for the variable AddDefaultCharset
ex :-
AddDefaultCharset en_US.iso88591

Restart apache after editing httpd.conf. (To restart apache run "service httpd restart")



Similarly
Default character set of a system will be defined in a system variable called "LANG"
check your system's  value with
"echo $LANG"
change it according to your requirement
example-
 export LANG=en_US.iso88591


To see the list of possible character set in your system run
$> localedef --list-archive 
 

To name a few ,
en_US.iso88591
en_US.iso885915
en_GB.iso88591
en_GB.iso885915



Nov 4, 2009

Linux - Add newline in echo statements

To include newline in echo add '-e'

echo -e "Thiagu\nMohan"

Perl Error - Error: Filehandle GEN0 opened only for output at Task.pm line 103.

Error:
Filehandle GEN0 opened only for output at Task.pm line 103.

Solution:
(W io) You tried to write on a read-only filehandle. If you intended it to be a read-write filehandle, you needed to open it with +< or +> or +>> instead of with < or nothing. If you intended only to write the file, use > or >>.

Perl Error - exists argument is not a HASH or ARRAY element at test.pl line 8.

Error:
exists argument is not a HASH or ARRAY element at test.pl line 8.

Solution:
Exists is for checking elements of array and hash. should not be used on scalar

Perl Error - Can't use string ("2") as a HASH ref while "strict refs" in use

Error:
Can't use string ("2") as a HASH ref while "strict refs" in use

Solution:
Object representing class is assinged or having numeric value "2"

if will be calling like 2->method() that makes compiler yelling

Perl Error - Can't do inplace edit without backup.

Error :
Can't do inplace edit without backup.

Cause & Solution:
This is a perl one line command execution error.
You have to supply bakup filename if you want to edit the file in command line.
ex:
perl -i.bak -p -e 's/this/that/ig' *.txt


If you find this information helpful, please click the ads below

Perl Error - Modification of non-creatable array value attempted, subscript -1 at /nfs/opt/scripts/build_output_parser.pl line 228.

Error:
Modification of non-creatable array value attempted, subscript -1 at parser.pl line 228.

Solution:
Accessing elements of an empty array with a negative index value.
ex - @a = (); $a[-1];
can be overriden by    "$a[-1]"


If you find this information helpful, please click the ads below

Perl Error - Unquoted string "callFunction" may clash with future reserved word at prg.pl line 4

Error:
Unquoted string "callFunction" may clash with future reserved word at prg.pl line 4.
Useless use of a constant in void context at prg.pl line 4.

Cause & Solution:
If you are calling a function without "&" as prefix (&FunctionName) and if that function is defined after this statement then this error will occur. Since Perl is a interpreted language it executes line by line. so it assumes function name as some bareword.


If you find this information helpful, please click the ads below

How to create Mailing list in Linux

Edit /etc/aliases

example - 
 To create a mailing list called x-product-notification@yourdomain.com

1) At the end of /etc/aliases add
x-product-notification@yourdomain.com: user1@yourdomain.com, user2@yourdomain.com

2)After saving above changes, run command "newaliases" in shell.

Now mailing list will be created.

Perforce error while trying to remove folder from workspace

Error:
 Can't clobber writable file C:\thiagu\Perforce\thiagu_p4server.net_1777\dev-app\Application.Properties
Solution:
files are having write persmission. check in or submit and the try syncing.
or try removing the workspace and get the latest revision again

Remove Generic Rootkit.g!rootkit virus from system

Symtoms:
This Rootkit is a very dangerous virus known for keylogger. so it can send your details and passwords without your knowledge.
Rootkit will be downloaded without you knowledge when you visit some less sucure sites. Antivirus like McAfee or IObit security are able to identify and clean but its not permanent.
Antivirus reports Rootkit files as
C:\WINNT\system32\drivers\synsenddrv.sys
and
C:\WINNT\system32\drivers\str.sys

Solution
Download and Install "Rootkit_Detective.exe" from http://download.cnet.com/
Run Rootkit_Detective.exe and after scanning it will ask you to reboot the system. Once you reboot it renames the virus files and solves the problem.


If you find this information helpful, please click the ads below

Oct 17, 2009

Perl Error - exists argument is not a HASH or ARRAY element at test.pl line 8.

Error:
exists argument is not a HASH or ARRAY element at test.pl line 8.

Solution:
Exists is for checking elements of array and hash. should not be used on scalar



If you find this information helpful, please click the ads below

Perl Error - Can't use string ("2") as a HASH ref while "strict refs" in use

Error:
Can't use string ("2") as a HASH ref while "strict refs" in use

Solution:
Object representing class is assinged or having numeric value "2"
it will be calling like 2->method() that makes compiler yelling

Perl Error - Can't locate object method "new" via package"

Error:
Can't locate object method "new" via package"

Solution:
Check the 'package' line in your module, and make sure that it _exactly_ matches (including case) the name in the 'use' statement.
I typically run into this after I've decided to rearrange some files, or I typo on a case-insensitive file system (so it finds the module, but the name doesn't match)

Define $DB::fork_TTY

Error:
  DB<1> Debugged program terminated.  Use q to quit or R to restart,
  use O inhibit_exit to avoid stopping after program termination,
  h q, h R or h O to get additional info.
######### Forked, but do not know how to change a TTY. #########
  Define $DB::fork_TTY
       - or a function DB::get_fork_TTY() which will set $DB::fork_TTY.
  The value of $DB::fork_TTY should be the name of TTY to use.
  On UNIX-like systems one can get the name of a TTY for the given window
  by typing tty, and disconnect the shell from TTY by sleep 1000000.

Cause
when a process is forked the program does not know which tty to use

Solution:
set  $DB::fork_TTY = 0;
set the tty for child = 0 or any particular tty you want to use