I will blog about new technologies and resolving issues we face daily while developing the web application. util methods which will help in code reuse.
What is ElasticSearch?
Elasticsearch is an open-source, restful, distributed, search engine built on top of apache-lucene, Lucene is arguably the most advanced, high-performance, and fully featured...
Running Hadoop on Ubuntu Linux (Single-Node Cluster)
Hadoop is a framework written in Java, Incorporates features similar to those of the Google File System (GFS) and of the MapReduce computing paradigm....
It is always good to have virtual box with our required OS installed, If u have windows box and want to learn hadoop, its good to have virtual box with ubuntu to learn.
Prerequisites :
1. Download...
SonarQube™ software (previously known as “Sonar”) is an open source project hosted at Codehaus. By using this we can analyze the source code, its very easy to configure and use.
1. Download and unzip...
Generate web service client stub class by using the JAXWS maven plugin.
"jaxws-maven-plugin" will generate the web service stub classes by using that we can implement client or test the web service.
generated stub classes will stored under src folder and by using this service classes we can communicate...
This tutorial attempts to explain the basic design, functionality and usage of the Jmeter, Jmeter is excellent tool used to perform load testing on the application, By using the jmeter GUI we can create...
In java lot of time we will come across the scenerio where in which we need to find the how much memory used by given list.
The ArrayList holds a pointer to a single Object array, which grows as the number of elements exceed the size of the array. The ArrayList's underlying Object array grows by about...
We can generate a bar code image by using the itext jar.
Itext jar : http://sourceforge.net/projects/itext/
Download jar : http://sourceforge.net/projects/itext/files/latest/download
sample code
import com.itextpdf.text.pdf.BarcodePDF417;
import java.awt.Color;
import java.awt.image.BufferedImage;
import...
By using the regular expression we can extract the any data from the given input, here we are trying to get the src attribute value from the given image tag or html text data.
Image 'src' attribute extract Regx:
<img[^>]*src=[\\\"']([^\\\"^']*)
sample code:
import java.util.regex.Matcher;
import...
We can compare the given images are same or not by comparing the buffer data of the image.
1. Compare the image sizes are same or not.
2. Compare the binary data of two images are same or not.
sample code :
import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.io.File;
import...
Reverse all elements in array, traditional way how we use to do is get the array and iterate through the for loop and use swap logic to move to temporary array and get the result.
But from > jdk 1.5 introduced reverse() in java.util.Collections which will reverse the order of the elements, all we...