Reset CSS: A simple solution to browsers’ inconsistencies.

One of the challenges web designers face is to get various web browsers render their web pages in a consistent manner. The reason is every browser assigns slightly different default styles to certain page elements. A simple approach to handle this cross-browser inconsistency is to overwrite browsers’ default styles. This technique is known as resetting …

WordPress 2.9.1 released.

Earlier this week WordPress 2.9.1 was released to fix some minor bugs found in release 2.9. It also fixes the annoying issue some bloggers faced with posts scheduling and pingbacks. It is always a good idea to keep your WordPress installation (and all plugins) uptodate, so I would strongly encourage you to upgrade to 2.9.1 …

Update copyright year on your blog

While you are celebrating the arrival of the new year, don’t forget to update the year on the copyright notice on your blog. The simplest way is to edit the file and replace 2009 with 2010, but a better solution would be to replace the year in your copyright declaration with following line of PHP …

Publish your blog posts to Twitter with Feedburner.

One of earliest third party tools that I started using for Twitter is TwitterFeed. This service automatically tweets your new blog posts for you. I have been using TwitterFeed for almost two years and I wrote about this service when I started using this. I am quite satisfied with this service but I am switching …

How to customize More tag in WordPress

One of the widely used WordPress is the More tag. This tag is used split a post so that only a portion of the post is displayed on the front page. When WordPress sees More tag, it inserts a link to next line of the post. By default the text of the link is “Read …

How to limit number of posts on your WordPress homepage.

If you have been blogging regularly for more than few months, chances are you have quite a few posts on your blog. That is a good thing. As a blogger you are supposed to blog regularly to provide useful and relevant information to your blog readers. But unless you dictate how your homepage is displayed …

How to convert an ArrayList to array in Java

Today, I will share a very basic Java program that converts an ArrayList to an array. For most Java developers this is a routine task, but many newcomers to Java have asked me this question of how to convert an array to ArrayList. Here is the example code.

How to add Amazon affiliate links to your posts in one step.

Amazon.com being the largest online retailer offers a variety of merchandise. Because of their huge selection of products it is no surprise that Amazon affiliate program is so popular among bloggers. With an astonishing number of products available through Amazon.com it is quite likely that every blogger will find a related product to link in …

How to validate date using Java regular expression

My earlier post on how to validate email address, SSN and phone number validation using Java regex still attracts a lot of visitors. Today I realized that another piece of data that many programmers need to validate is the date. Many Java applications have to process input date values, so I thought it will be …

How to write to properties file in Java

One of most visited posts on this blog is How to read properties file in Java. In that post I explained how you can read from a properties file. But many people came to that post searching for an example on how to write to a properties file. So I thought it will be beneficial …