Java Utility for JDBC

No Comments

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, rather than writing validation code in each class you can create email validation method in one class and then call that method from other classes. Now you have only one piece of code for email validation which is easy to maintain.

Similarly with JDBC, every time you need to access database you have to do following steps: More

article clipper vert Java Utility for JDBC
 

2008 Blogging goals

12 Comments

Inspired by a recent post at DailyBlogTips

I seriously started thinking about my blogging goals for 2008. Since I just started blogging a few months ago I have a long way to go. Following are some of my objectives that I would like to achieve during 2008. More

article clipper vert 2008 Blogging goals
 

Use your keyboard efficiently

1 Comment

keyboard Use your keyboard efficientlyKeyboard shortcuts are often more efficient than clicking mouse buttons. Of course the hard part is to learn and memorize the shortcuts. But once you start using keyboard you probably will not go back to mouse-clicking.
More

article clipper vert Use your keyboard efficiently
 

Make your stylesheet a work of art.

No Comments

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 and easy to maintain. Some of the tips may look intuitive but many times we all need reminder to get the basics right. In my experience lot of developers do not give enough importance to structured and well written CSS. I recommend that you read this article. By following her tips you can be a more productive CSS expert.

article clipper vert Make your stylesheet a work of art.
 

zparacha.com nominated for iBlogCup

1 Comment

I am very excited that my blog was nominated for 3rd International Blog Cup competition. The voting is open till December 7th. If you like my blog and can spare a minute I encourage you to cast your vote at iBlogCup.com

Thanks for all who have voted for me so far.

article clipper vert zparacha.com nominated for iBlogCup
 

Sort numbers in Javascript array

4 Comments

numbers 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 lexicographical order. This method is very useful in sorting alphanumeric values of an array. However, sort() will not work if the array consists of numeric values. Because the alphabetical order of numbers is different from their numeric order the sorted array may not be in the order you are expecting. For example, in a dictionary sort the number “11″ would come before number “5″. This may not be the result that you are looking for.
Here is an example

var ages = new Array (23,6,2,16,48,9,6);
ages.sort();

The array will become (16,2,23,48,6,6,9)

Fortunately, the work around for this problem is quite simple.
More

article clipper vert Sort numbers in Javascript array