- Wednesday, July 28, 2010, 18:41
- How-To, J2EE, Java
- 2,036 views
While using Maven as build tool in our project, I found it very difficult to create a Dynamic Web Project which supports
Maven dependencies and can execute in Eclipse! I have seen lot of people using Maven just as build tool and for local setup uses jar files in some /lib directory. I wanted to remove this dependencies on local /lib for jar files ...
Full story
- Monday, July 12, 2010, 20:54
- How-To, Java
- 1,012 views
As a Java developer, lot of times I have to play around with file system. Sometimes I have to copy files/directories from one location to another; sometimes have to process certain files depending on certain pattern. In one of my test program, I wanted to calculate available disk space using Java. Lot of code snippets are ...
Full story
- Friday, July 9, 2010, 9:00
- How-To, Java
- 1,759 views
Here is a small but very useful tip that every Java programmer should be aware of. Have you ever tried sorting arrays in Java? Well, java.util.Arrays class has built in method to make your job easy. You can use following method to sort any array in Java.
import java.util.Arrays;
...
...
Arrays.sort (int )
Arrays.sort (float )
Arrays.sort (long )
...
Let us check an example were we will sort an array of ...
Full story
- Thursday, July 1, 2010, 22:06
- How-To, Oracle
- 250 views
Most of the times, production data is not available in development environments. Here, I would like to share a single sql command which can generate random data. But before that, let's address another issue faced by a lot of new oracle users. We need to generate a sequence of numbers using a sql statement. This will generate a number sequence. ...
Full story
- Thursday, June 24, 2010, 14:21
- How-To, Oracle
- 1,216 views
Deleting duplicate rows from tables is one of the common task oracle developers come across. The data might get duplicated because of missing primary/unique key on the table or batch file getting loaded multiple times. Here I have tried to summarize different ways of deleting this duplicated data. Please note that this is not an extensive list ...
Full story
- Friday, June 18, 2010, 18:25
- How-To, Java
- 802 views
If you are using Eclipse as your primary development IDE, then you may want to know about Code templates in Eclipse. Code templates are certain user defined (some are available by default) templates which can assist in rapid code writing. Not only code templates increase your code writing speed, but it also add consistency across the code.
To add a code template, all you need to ...
Full story
- Wednesday, June 16, 2010, 19:59
- How-To, Oracle
- 378 views
As the data grows in relational databases (new business requirements, managing audit data etc), the cost associated with the disk systems to store that data and the resources required to manage them becomes vital. Oracle understands this requirement and it is continuously implementing and improving on the compression techniques and algorithms while simultaneously meeting the application scalability ...
Full story
- Friday, February 19, 2010, 20:33
- How-To, Java
- 1,522 views
Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already.
Imagine your Eclipse workspace is filled with many projects that you created in past just to test some small functionality. Now you are done with these projects and hence you have closed it. Eclipse by default show all the closed projects in Project ...
Full story
- Wednesday, January 13, 2010, 1:07
- Fun, How-To
- 1,327 views
A virus (as you know) is a piece of code that does something that it shouldn't. It is a common misconception that you need a vast skill set to make these and that they are extremely complex however in reality they are as simple as sin to make which is why they are so damn annoying. ...
Full story
- Tuesday, January 12, 2010, 18:21
- How-To
- 506 views
Unix File Line Ending always gives you problem if you have your development environment in Windows and servers in Unix. Also if you are using Subversion as source control system then you need to be very careful about line endings.
I had this issue where a shell script was deployed on Unix machine. But I was not able to run the shell script. It gave error:
$> ...
Full story