1/ Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Mon 17 Jan 2005 12:15:08 PM PST, PST in this case is the current timezone.

2/ Change to the directory /usr/share/zoneinfo here you will find a list of time zone regions. Choose the most appropriate region, if you live in Canada or the US this directory is the "America" directory.

3/ If you wish, backup the previous timezone configuration by copying it to a different location. Such as

$mv /etc/localtime /etc/localtime-old

4/ Create a symbolic link from the appropiate timezone to /etc/localtime. Example:

$ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

5/ If you have the utility rdate, update the current system time by executing

$/usr/bin/rdate -s time.nist.gov

6/ Set the ZONE entry in the file /etc/sysconfig/clock file (e.g. "America/Los_Angeles")

7/ Set the hardware clock by executing:

$/sbin/hwclock --systohc

That's it!

"robots.txt" is a regular text file that through its name, has special meaning to the majority of "honorable" robots on the web. By defining a few rules in this text file, you can instruct robots to not crawl and index certain files, directories within your site, or at all. For example, you may not want Google to crawl the /images directory of your site, as it's both meaningless to you and a waste of your site's bandwidth. "Robots.txt" lets you tell Google just that.

Create a regular text file called "robots.txt", and make sure it's named exactly that. This file must be uploaded to the root accessible directory of your site, not a subdirectory (ie: http://www.mysite.com but NOT http://www.mysite.com/stuff/). It is only by following the above two rules will search engines interpret the instructions contained in the file.

1) Here's a basic "robots.txt":

User-agent: *
Disallow: /


With the above declared, all robots (indicated by "*") are instructed to not index any of your pages (indicated by "/"). Most likely not what you want, but you get the idea.

2) While every webmaster loves Google, you may not want Google's Image bot crawling your site's images and making them searchable online, if just to save bandwidth. The below declaration will do the trick:

User-agent: Googlebot-Image
Disallow: /


3) The following disallows all search engines and robots from crawling select directories and pages:

User-agent: *
Disallow: /cgi-bin/
Disallow: /privatedir/
Disallow: /tutorials/blank.htm


4) You can conditionally target multiple robots in "robots.txt." Take a look at the below:

User-agent: *
Disallow: /
User-agent: Googlebot
Disallow: /cgi-bin/
Disallow: /privatedir/


This is interesting- here we declare that crawlers in general should not crawl any parts of our site, EXCEPT for Google, which is allowed to crawl the entire site apart from /cgi-bin/ and /privatedir/. So the rules of specificity apply, not inheritance.

5) There is a way to use Disallow: to essentially turn it into "Allow all", and that is by not entering a value after the semicolon(:):

User-agent: *
Disallow: /
User-agent: ia_archiver
Disallow:

This is similar to how google ads employ the header Cache-Control: private, x-gzip-ok="" to prevent caching of ads by proxies and clients.

Just look over the simple code that should be placed on .htaccess file and make sure the right directory as well.

<filesmatch>
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, private"
Header set Pragma "no-cache"
Header set Expires "0"
</filesmatch>

For example, if the user type the URL like (a) meuno.org or (b) meuno.org/something on browser address bar then I would like to forcibly redirect to like this www.meuno.org for (a) and www.meuno.org/something for (b).

For this case, the following entries should be appearing on your server .htaccess file. Of course, your server should support the re-write URL module.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^meuno.org [NC]
RewriteRule ^(.*)$ http://www.meuno.org/$1 [R=301,L]

That's it.

PuTTYCM gives a nice feature to arrange several PuTTY sessions in tab representation. When you start using this, for the first time – you should specify the location of putty.exe file which is located on your local machine. It requires .NET 2.0 to be installed on your system and this would be installed automatically during the PuTTYCM installation process itself.

When I was worked initially with this great tool, getting few trouble on the default 'putty' tool's shortcut keys such as u, l etc. That is, these short cuts are working something crazy way and later I found that there were few shortcut keys enabled on this PuTTYCM tool which was exactly used for 'putty' tool as well. But both tools behaved slightly different ways on these shortcut keys. For this scenario, either you should change the shortkey properly or completely disable these option through tool menu.

Look at the screen shots here:

Recently I was looked over few Kamal hassan’s interview through YouTube videos site and accidentally viewed & enjoyed an interview that showing his highly frustrated speaking to the media due to some protests against the film's title “Sandiyar” and later titled as “Virumandi”.

Of course, “Virumandi” is one of my favorite movie and it's really amazing! Look at this below interview here. Please DO NOT MISS the first 2 minutes Kamal hassan’s speech :-). It includes few video clips that involving shooting spot as well.

Many years ago, a large American shoe company sent two sales representatives out to different parts of the Australian outback to see if they could drum up some business among the Aborigines.

Some time later, the company received telegrams from both agents.

The first said, “No business here… natives don’t wear shoes.”

The second one said, “Great opportunity here… natives don’t wear shoes!”

You may have seen several great queries how to get useful information out of information_schema - so here’s one more

SELECT TABLE_SCHEMA, sum((DATA_LENGTH + INDEX_LENGTH) / (1024 * 1024)) as size_mbFROM information_schema.TABLESGROUP BY TABLE_SCHEMAORDER BY size_mb DESC

This query lists all of your databases with their sizes in megabytes in descending order.

If you only want to see those databases exceeding 1 MB, do the following:

SELECT TABLE_SCHEMA, sum((DATA_LENGTH + INDEX_LENGTH) / (1024 * 1024)) as size_mbFROM information_schema.TABLESGROUP BY TABLE_SCHEMAHAVING size_mb > 1ORDER BY size_mb DESCQuite

simple, but very effective!

For this tip, I’m going to assume you have support for the filesystem you Windows installation is using. If you have Windows 95 or 98, you’ll be using the FAT filesystem, while Windows NT, 2000, and XP users need to have NTFS support. In order to check whether your Linux kernel supports these filesystems, open the command line and type more /proc/filesystems. If you see nodev before the filesystem name, the filesystem is not supported and you must either mount the module (modprobe vfat, for example) or recompile the kernel with proper support. Anyways, let’s get started.

First, create a new directory to house your Windows partition. Open up the command line, and type in mkdir /mnt/windows. You can use whatever directory you want, though it’s always best to keep mountable directories inside /mnt.

Now you can mount the partition from the command line by typing: mount -t vfat -o /dev/hda1 /mnt/windows, if it is a FAT-formatted one. If you’re mounting an NTFS partition, just replace vfat with NTFS. I am assuming the Windows partition is the first on your hard drive. If it is not, change /dev/hda1 accordingly.

If you’d like the partition to be mounted automatically when you boot into Linux, you can add that option in a file, /etc/fstab. Just open that file in a text editor and add the following line: /dev/hda1 /mnt/windows vfat defaults 0 0.

If you’d like to know about how many partition (both windows and Linux) and device list that are avialable on your local machine. Just supply the below command as root.

[root@sriram ~]# fdisk -l

Here I have given an example output of my local machine.

[root@sriram ~]# fdisk -l

Disk /dev/hda: 41.1 GB, 41110142976 bytes
240 heads, 63 sectors/track, 5310 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1328 10039648+ c W95 FAT32 (LBA)
/dev/hda2 1329 5310 0103920 f W95 Ext'd (LBA)
/dev/hda5 2657 3984 10039648+ b W95 FAT32
/dev/hda6 3985 5310 10024528+ b W95 FAT32
/dev/hda7 1329 1397 514048+ 83 Linux
/dev/hda8 1397 1532 1020096 82 Linux swap
/dev/hda9 1532 2656 8498353+ 83 Linux

Partition table entries are not in disk order

If you use this ‘fdisk -l’ command, it would be very useful to find out the current filesystem, device name and create the appropriate entries under /mnt directory and mount points very easily based on the above information.