nav-left cat-right
cat-right

DNS root nameservers...

A root name server is a name server for the Domain Name System’s root zone. It directly answers requests for records in the root zone and answers other requests returning a list of the designated authoritative name servers for the appropriate top-level domain (TLD). The root name servers are a critical part of the Internet because they are the first step in translating (resolving) human readable host names into...

GEC Palakkad: The main building Inauguration Postp...

What we feared has happened, the inaugural function has been postponed due to the inconvenience of CM of Kerala. So the drama continues and we still have to wait…… Official mail from Principal says: ——————— We are sorry to inform you all that the college main building inauguration scheduled to be held on 16 February 2010, is postponed due to a sudden change in schedule...

Bash script to generate cPanel user files...

Don’t have your domains listed in WHM/cPanel. The cPanel takes information from cPanel user files under /var/cpanel/users/. The accounts won’t be listed in WHM if corresponding files are missing. This script will help you to generate cPanel user files. This script may fail if you have cPanel user files existing under /var/cpanel/users/. So I would request you to backup users directory and then remove all user...

Linux Time and Clocks...

There are two clocks in your computer. The hardware (CMOS) clock runs even when the computer is turned off, and is used when the system starts up and by DOS (if you use DOS). The ordinary system time, shown and set by date, is maintained by the kernel while Linux is running. You can display the CMOS clock time, or set either clock from the other, with /sbin/clock (or hwclock). There are various other programs that can...

Linux: How to change time zone information?...

The date command can be used to reset system time, but it can’t be used used to change timezone. However, timezone reconfiguration is pretty easier. # date Sun Feb  7 21:45:53 PST 2010 # rm -f /etc/localtime # cp /usr/share/zoneinfo/EST /etc/localtime # date Mon Feb  8 00:46:34 EST 2010 The ‘timeconfig’ command can also be used to reset time/timezone information on RedHat based machines. ~mohammed

Bash puzzle: Unset last element of an array...

Here is a puzzle for bash lovers. This is taken from shell scripting community at Orkut. Question: How to reset last element of an array even if it’s a discontinuous array. Answer: $ array=([0]=a [9]=d [2]=i [6]=k); echo "${array[@]}" a i k d $ : ${!array[@]} $ unset array[_] $ echo "${array[@]}" a i k If you are not familiar with bash, you might...

C Programming: sizeof variable types...

As you know C programming language has different variable types and each of them use different byte size. Do you wonder how to find size of each variable type in C? Look at the program below. Program: int main() {   printf("sizeof(char) == %d\n", sizeof(char));   printf("sizeof(short) == %d\n", sizeof(short));   printf("sizeof(int)...