How to Change Screenshot Format in Mac OS X

Run the following command from the terminal.# defaults write com.apple.screencapture type image_formate.g. for JPG, use the following.# defaults write com.apple.screencapture type jpg# killall SystemUIServerThis is it..-Vigyan

Replace A String In The File Using Perl

It is easier to use perl than sed to replace a string using perl.Try this.perl -pi -e ’s/existing_string/new_string/g’ file_name-Vigyan

TNS-03505: Failed to resolve name

If you are getting this error “TNS-03505: Failed to resolve name” in the Windows environment and you have checked sqlnet.ora and tnsnames.ora files then most likely it is becuase of the wrong environment variable settings.The best way to find which tnsping.exe you are running is “where” command.c:> where tnspingIt will show you if you are using a wrong tnsping.-Vigyan

How to login to VMware ESX Server 3i with SSH?

Below are the steps, in order to login to VMware ESX Server as root from remote network.

Below are the steps, in order to login to VMware ESX Server as root from remote network.

1. Open the service control and type “unsupported”.
2. Login as root password.
3. Edit the file /etc/inetd.conf and uncomment like which start with SSH in standard service section.
4. Restart the service SSH using “service sshd restart”.

My unqualified host name - Sendmail is slow

If you are getting this error, most likely it is due to your /etc/hosts entry.

Make sure you have:

127.0.0.1       localhost.localdomain   localhost
127.0.1.1       TESTSRV01.localdomain   TESTSRV01
The TESTSRV01 is my test machine name.

How to install linux-header in Ubuntu

Use:

$ sudo apt-get install linux-headers-$(uname -r)

Watch TV does not work - ERROR when trying to delete file

Just want to share..I noticed in one of my Mythtv box, I can not watch TV and mythtvbackend log shows following error.

ERROR when trying to delete file: myth://127.0.0.1:6543/1031_20090308215852.mpg

This error indicates that the metadata in the database exists for a non-existing recording. Well, the solution is to remove the data. There is a cool perl script myth.find_orphans.pl that can fix this problem for you. I use MythDora so for me, this file is /usr/share/doc/mythtv-docs-0.21/contrib/ location.

Try it if have similar issue.

-Vigyan

How to enable error reporting in PHP?

You can turn it on in the by including following in the file.

error_reporting(E_ALL);

Vigyan

How to Flush DNS Cache in Mac OSX 10.5 Leopard?

It is easy. Just type following command from your terminal.

dscacheutil -flushcache

-Vigyan

Software to Burn CD/DVD for Mac

I miss my favorite software Nero to burn CD/DVD but no worries, I found another cool software that works pretty well.

Here is what I found.

http://burn-osx.sourceforge.net/

It is very easy.

-VK