May 21, 2008
Import static elements for more readable Java code
One of the welcome additions to Java language in Java 5 release is the static import declaration. static import works in the same way as traditional import decl
May 13, 2008
Test your Java skills.
Even with many years of experience with programming in Java one cannot claim that he or she has mastered the language. What I found out with experience is that
Apr 13, 2008
Three ways to find minimum and maximum values in a Java array of primitive types.
In Java you can find maximum or minimum value in a numeric array by looping through the array. Here is the code to do that. public static int getMaxValue(int[]
Apr 8, 2008
How to read properties file in Java.
Reading properties file in Java is much easier than you might have thought. Following example illustrates one simple way of reading properties from a properties
Feb 28, 2008
Simple JavaScript Regular Expression to Validate U.S Phone Numbers
Image credit: aussiegall Continuing with our JavaScript regular expression series today we will discuss JavaScript regular expression to validate U.S phone numb
Feb 18, 2008
Validate Zip code using JavaScript Regular expression
Continuing with my series of JavaScript regular expression today we will see how easy it is to validate zip code using regular expression in JavaScript. Previou
Feb 15, 2008
How to validate Social Security Number (SSN) using JavaScript Regular Expressions
When I wrote the JS regular expression article last week I had no idea that it will attract so many visitors. Not only did so many people read this post, many m
Feb 7, 2008
Validate email address using JavaScript regular expression
Last month I wrote about regular expressions in Java, today I’ll show you how to use regular expression in JavaScript to validate email address. Here is t
Jan 30, 2008
Set focus on the first text field of HTML form.
A HTML form is a very good channel that you can offer to your visitors to contact you. An aesthetically appealing form encourages user to fill and submit it. It
Jan 10, 2008
How to validate email, SSN, phone number in Java using Regular expressions.
Regular Expressions offer a concise and powerful search-and-replace mechanism. They are patterns of characters used to perform a search, extract or replace oper
Dec 20, 2007
Java Utility for JDBC
Code re-usability is one of the many benefits of object oriented programming. For example, in Java if you need to perform email validation in different classes,
Dec 8, 2007
Make your stylesheet a work of art.
Jina Bolton at Vitamin.com has an excellent post for all CSS developers. She described how you can write well structured stylesheets which are more efficient an
Dec 5, 2007
Sort numbers in Javascript array
Sorting an array in Javascript is a snap. You create an array and then call sort() method on that array. The Javascript sort() method sorts an array in lexicogr
Nov 22, 2007
Compress JavaScript and CSS files to optimize website speed.
Referencing external JavaScript and/or CSS files from a web page considerably increases the load time. As a rule of thumb remember that each external file requi
Nov 19, 2007
Improve your JavaScript code.
Christian Heilmann compiled a list of seven rules for unobtrusive JavaScript. I think it is a must read for beginner JavaScript developers. Even if you are a hi