A friend of mine who is learning to program in C, was having diffculty in writing a program to find the sum of all the prime numbers between a...
Substrings Left, Right and Mid are three Visual Basic functions to locate sections of a string. All of the following examples use the string...
Earlier today, I had posted a code snippet to print all the CGI environment variables in CGI-Perl. Well, I recently started learning Python too,...
At some point while writing a CGI script in Perl, many newbies have needed to print all the environment varibles in Perl, sometimes for debugging...
Introduction A MySQL database abstraction class, which makes database handling easier and object-oriented. The class: class DBI { var...
Introduction Sometimes we need to get a formatted date while getting the date from a MySQL database using a SQL query. Fortunately, MySQL has...
Which one is search engine friendly, relative URLs or absolute URLs?
What is a Factory Method??
Sometimes we need a sorted UL (un-ordered list) in a static page, like a blog, we can use JavaScript to the sort the list. I faced a similar...
What is crontab? Actually it is called 'cron daemon'. Cron is an automatic task machine. You will use it on your Unix or Linux operating...
Many times we need to write certain parts of our script according to the browser, i.e. we need to detect the browser. Here's a snippet of how to...
The Internet turned 16 yesterday. Interesting isn't it?? read more here http://slashdot.org/article.pl?sid=06/11/13/2223208
Some web applications need to display numbers in words, like e-commerce, shopping web applications, so PEAR brings a package named Numbers_Words...
Many times its required that we truncate a long string and add ellipsis to the end of the truncated string. Here's a function which does exactly...
Drawing Lines The drawLine method belongs to the Graphics class. This example draws a fan of twenty lines from the bottom center of the...
Introduction There are thousands of viruses, and new ones are discovered every day. It is difficult to come up with a generic explanation of...
What Is GlassFish? Depending on how you look at it, GlassFish is any of the following: A community. The GlassFish community currently...
Improving Your Search Engine Ranking Getting listed in search engines is not as difficult as you may think. With a little effort and some...
Calculating the factorial of a number is a basic excercise while learning to program in C, many of us have done it iteratively, it can also be...
Many times we need to check whether a number is negative or not, here is a very simple subroutine to do that. sub isNegative {...
Separate names with a comma.