Category Archives: Programming

Stop Command Prompt Window from Closing

Batch files are a series of commands that are executed in a sequence. People generally write batches of DOS commands and shell commands. When you execute a DOS (Windows) batch … Read more

Posted in How-to, Programming | Leave a comment

JavaScript: Count Items in HTML List

The other day I needed to dynamically count the total number of items in an HTML unordered list. The ordered list (created with OL tag) are by default counted as … Read more

Posted in JavaScript | Leave a comment

Stylish Text Shadow Examples Using CSS

Since long web developers have been using underlying shadows to make text and boxed area look as though they are floating. In olden time images and transparent images were used … Read more

Posted in CSS | Leave a comment

All About Sitemap

When you begin to plan a website –the first thing you should focus on is the structure of your website. By structure we mean the way you want to organize … Read more

Posted in Web development | Leave a comment

Test Website Performance with Google Page Speed

Google Page Speed is an excellent tool for evaluating performance of your website. Yahoo! Has since long been providing a similar tool called Y!Slow. At present Page Speed is available … Read more

Posted in Web development | Leave a comment

How to Add Expires Header to Images

“Expires” header tells a browser how to cache a web page component. If a component (image, flash, html etc.) is not going to change for long time –it is highly … Read more

Posted in Web development | Leave a comment

Basic Steps for Making a Website

Many of my friends keep asking me the question about how to create a website. This article lists the very basic steps and information for accomplishing this goal. A website … Read more

Posted in Web development | 2 Comments

Benefits of Loading jQuery from Google

jQuery makes programmers’ lives so much more easier! And it’s fun as well –isn’t it? I guess it is the best javascript framework available out there. Nowadays, a massive number … Read more

Posted in JavaScript | Leave a comment

Create Floating Bar Like Gmail and Facebook

Many people ask me about how to create a Gmail like floating bar. Facebook also uses this technique. Although it is a bit jerky but the technique quite useful in … Read more

Posted in CSS, Google, JavaScript | Leave a comment

Randomize HTML List: Display HTML List Items Randomly

The following JavaScript code can randomize an HTML list. The script can handle both Ordered List (OL) or Unordered List (UL) because it works on the LI items which are … Read more

Posted in JavaScript | Leave a comment

Google AdSense: Yellow Box Appears for a Brief Moment

Google serves its ads in an <ins> tag. Some of the blog themes do define a style for this tag and usually it is because of this style that you … Read more

Posted in CSS, Google | 1 Comment

Get Codes for Cool HTML Symbols and Greek Letters

Following is a list of special characters that can be used in webpages using HTML codes. Please sure that you are using UTF-8 character set in order to correctly use … Read more

Posted in Web development | 1 Comment

Fancy HTML: Special Character And Symbol ASCII Codes

Following is a list of special characters that can be used in webpages using HTML codes. Please sure that you are using UTF-8 character set in order to correctly use … Read more

Posted in Web development | 1 Comment

The Best 12 Firefox add-ons for Web Developement

Depending upon my experience with lots of FireFox add-ons, I have selected the following 12 add-ons which in my view are the best. These are a must have bunch for … Read more

Posted in Web development | Leave a comment

Hindawi: Now Write Computer Programs in Indic Langauges

It was about a couple of years ago when I happened to attend a presentation made by Abhishek Chaudhary at Sarai office. Abhishek is an unassuming gentleman and a robotics … Read more

Posted in Digital Hindi, Programming | 1 Comment

Windows Notepad Editor for Programmers

This year, one of the best software tool I found is Programmer’s Notepad. As the name suggests, it is an editor loaded with features that are useful for people who … Read more

Posted in Programming, Software, Tips and Tricks | 1 Comment

How to Vertically Middle Align Text in a Div

To do this, we need to use height property of DIV element and line-height property of the text. If we set both these properties to equal value the text will … Read more

Posted in CSS | Leave a comment

How to Change Text Selection Background Color Using CSS

When you select text on a webpage the background color is mostly dictated by the operating system of your machine. On Windows, the most common selection background color that you … Read more

Posted in CSS | 1 Comment

Change onclick Event of an Element Using JavaScript

Let me present an example scenario: You click a button/link and call a JavaScript function. In the function you want to reset the onclick event of the button in a … Read more

Posted in JavaScript | Leave a comment

Walking DOM Tree is Now Very Simple

Software programmers often need to deal with the Document Object Model (DOM) of a webpage or that of an XML file. Walking through DOM tree and manipulating nodes has been … Read more

Posted in Programming | Leave a comment

Get Full Current URL from Address Bar

Yesterday, I needed to retrieve the URL of a webpage as shown in the address of browser. I was coding in PHP –so my first choice was to use PHP … Read more

Posted in Programming, Tips and Tricks, Web development | Leave a comment

AJAX: Passing parameters to onreadystatechange function

When the response of an AJAX request is ready on the server the value of the readyState property of the XMLHttpRequest object is changed to “4″ which means the request … Read more

Posted in AJAX, Tips and Tricks | 7 Comments

Rapid website development

I am not seriously into PHP stuff. But it is a very good platform if you quickly want to come up with a dynamic website. It’s very easy and quick. … Read more

Posted in Tips and Tricks, Web development | 1 Comment

Building strings in Java

Building and manipulating strings is one of the most common task performed in any programming language. In Java, the String class provides the functionality of creating and manipulating the strings … Read more

Posted in Java, Tips and Tricks | Leave a comment

What are Factory Methods and Why Use Them?

The concept of factory methods is very useful and very simple at the same time. It is simple enough to explain and I would not need to write a long … Read more

Posted in Java, Tips and Tricks | 1 Comment