Archive for the ‘How-To’ Category

Page 1 of 712345...Last »

Creating Dynamic Web Project using Maven in Eclipse

Creating Dynamic Web Project using Maven in Eclipse
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

Calculate Free Disk Space in Java using Apache Commons IO

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

Java Tip: How to Sort Arrays in Java using java.util.Arrays class

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

Generating Random Data in Oracle

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

Deleting Duplicate Rows in Oracle

Deleting Duplicate Rows in Oracle
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

Eclipse Tip: Add your own Code Template in Eclipse

Eclipse Tip: Add your own Code Template in Eclipse
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

Oracle Data Compression

Oracle Data Compression
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

Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View

Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View
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

Simplest Virus – Fork Bomb

Simplest Virus – Fork Bomb
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

Unix Shell Script Line Ending & Executable Issue with Subversion

Unix Shell Script Line Ending & Executable Issue with Subversion
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
Page 1 of 712345...Last »
Copyright © 2010 ViralPatel.net. All rights reserved.