Friday, December 28, 2012
Tuesday, November 27, 2012
Next version of IP address in India is IPv6
As every tech person has aware of that the IP address are getting ended. The current IP address format is XXX.XXX.XXX.XXX, each XXX is a numeric number between 1 to 256. There should be some other format of IP address for the computers to uniquely identify the individual network interface.
So, Indian Registry for Internet Names and Numbers (IRINN) has started issuing next version of Internet addresses 'IPv6(Internet Protocol Version 6)', which would make it easy for security agencies to identify each Internet user. The Internet addresses under the present version IPv4, are limited and service providers often assign single IP address to many users, making it difficult to identify the end user. IPv6 version will increase the IP address pool to high level.
Increasing the IP address pool was one of the major forces behind developing IPv6. It uses a 128-bit address, meaning that we have a maximum of 2¹²⁸ addresses available, or 340,282,366,920,938,463,463,374,607,431,768,211,456, or enough to give multiple IP addresses to every grain of sand on the planet. So our friendly old 32-bit IPv4 dotted-quads don't do the job anymore; these newfangled IPs require eight 16-bit hexadecimal colon-delimited blocks. So not only are they longer, they use numbers and letters. At first glance, those mondo IPv6 addresses look like impenetrable secret code:
2001:0db8:3c4d:0015:0000:0000:abcd:ef12
The more info about IPv6 can get from http://en.wikipedia.org/wiki/IPv6_address
So, Indian Registry for Internet Names and Numbers (IRINN) has started issuing next version of Internet addresses 'IPv6(Internet Protocol Version 6)', which would make it easy for security agencies to identify each Internet user. The Internet addresses under the present version IPv4, are limited and service providers often assign single IP address to many users, making it difficult to identify the end user. IPv6 version will increase the IP address pool to high level.
Increasing the IP address pool was one of the major forces behind developing IPv6. It uses a 128-bit address, meaning that we have a maximum of 2¹²⁸ addresses available, or 340,282,366,920,938,463,463,374,607,431,768,211,456, or enough to give multiple IP addresses to every grain of sand on the planet. So our friendly old 32-bit IPv4 dotted-quads don't do the job anymore; these newfangled IPs require eight 16-bit hexadecimal colon-delimited blocks. So not only are they longer, they use numbers and letters. At first glance, those mondo IPv6 addresses look like impenetrable secret code:
2001:0db8:3c4d:0015:0000:0000:abcd:ef12
The more info about IPv6 can get from http://en.wikipedia.org/wiki/IPv6_address
Java, J2EE, Struts, Hibernate, Web Services, JSF
Internet,
ip address,
IPv4,
IPv6
Saturday, November 3, 2012
List of Java Frameworks
Java, J2EE, Struts, Hibernate, Web Services, JSF
Java Frameworks
Benefits of XML
There are many benefits
of using XML on the Web:
- Simplicity- Information coded in XML is easy to read and understand, plus it can be processed easily by computers.
- Openness- XML is a W3C standard, endorsed by software industry market leaders.
- Extensibility - There is no fixed set of tags. New tags can be created as they are needed.
- Self-description- In traditional databases, data records require schemas set up by the database administrator. XML documents can be stored without such definitions, because they contain meta data in the form of tags and attributes.
- Contains machine-readable context information- Tags, attributes and element structure provide context information that can be used to interpret the meaning of content, opening up new possibilities for highly efficient search engines, intelligent data mining, agents, etc.
- Separates content from presentation- XML tags describe meaning not presentation. The motto of HTML is: "I know how it looks", whereas the motto of XML is: "I know what it means, and you tell me how it should look." The look and feel of an XML document can be controlled by XSL style sheets, allowing the look of a document to be changed without touching the content of the document. Multiple views or presentations of the same content are easily rendered.
- Supports multilingual documents and Unicode-This is important for the internationalization of applications.
- Facilitates the comparison and aggregation of data - The tree structure of XML documents allows documents to be compared and aggregated efficiently element by element.
- Can embed multiple data types - XML documents can contain any possible data type - from multimedia data (image, sound and video) to active components (Java applets, ActiveX).
- Can embed existing data - Mapping existing data structures like file systems or relational databases to XML is simple. XML supports multiple data formats and can cover all existing data structures.
- Provides a 'one-server view' for distributed data - XML documents can consist of nested elements that are distributed over multiple remote servers. XML is currently the most sophisticated format for distributed data - the World Wide Web can be seen as one huge XML database.
Java, J2EE, Struts, Hibernate, Web Services, JSF
benefits of XML,
what are the advantages of XML,
what are the benefits of xml,
XML
Received Pen drive from Indiblogger
Hi All.....
I have received pen drive from Indiblogger for the contest …it's your time to visit Melbourne NOW.
It is 4 GB and contains woderful pics of the Melbourne
Below are the pics of the pendrive... and my post for the contest is http://mallikarjungunda.blogspot.in/2012/09/melbourne-dream-place-to-visit.html



I have received pen drive from Indiblogger for the contest …it's your time to visit Melbourne NOW.
It is 4 GB and contains woderful pics of the Melbourne
Below are the pics of the pendrive... and my post for the contest is http://mallikarjungunda.blogspot.in/2012/09/melbourne-dream-place-to-visit.html
Java, J2EE, Struts, Hibernate, Web Services, JSF
Australia Tourism,
Melbourne
Monday, October 8, 2012
Single Sign In Web User ID
The time mail reached my mail box on Innovation, my mind has been wondering with the different ideas needs to be present on this… But, routine things came up, busy with daily deliverable and project items. I was searching for some free time to be part of Innovation. So, finally I got some time to share my new idea with all of you now. Hope, this looks small but make you feel interesting.
What is the Problem we are facing in regular days?
We are regularly accessing many number of web sites with different user credentials i.e. different user id and passwords. Some sites accepts few characters as user id, some sites uses email id as user id and some sites require the user id with special characters. As a human being with small mind with a larger body, it is too hard to remember a password along with user Id for a long period of time. It holds good for me but I don’t know about you?
What would be the solution for this?
User to be registered in a single web site with a user id & password and that would be the reference for other web sites registration, where ever he registers on another web site on the Internet. I require a single step to register on another website instead of filling multiple fields on the web form. Don’t you….?
How to Implement this in real Scenario?
For Example, if user has Gmail ID with all his valid personal data (It should be personally verified and validated by Gmail Team). The other websites should have a look up facility to capture his personal data from the Gmail ID and upon providing gmail id & looks up, it should populate user data into the fields. And, user can simply submits the registration form. The registered web site should use the gmail Id as the user’s login id and gmail pwd would be the password for this website.
(If possible, we can go for Not to store the users personal data at new website end i.e. The personal data of the user should be stored at Gmail)
How the security will be implemented?
Along with the user Id and password, all the sites which use single step web forms should send a security code to the user’s mobile number which is to be entered by user into a field, hence his credentials will be validated. Hope, user will have more security with pwd and secure code.
What are the Advantages?
1. User can have only one user id for all the websites he register.
2. There no way to use his big brain to remember the passwords for different sites.
3. It is more comfortable for the users and web site managers to have single data on all the websites.
Conclusion:
It is looks simple but implementation would be complex.
Let’s bring all the websites into a single tree….
Java, J2EE, Struts, Hibernate, Web Services, JSF
Single Sign on web forms
Monday, October 1, 2012
Copy an Array into another Array in Java
The contents of one array can be copied into another array by using the arraycopy() method of the System class in Java.
The arraycopy() method accepts source array, source length, destination array and destination length.
The following program shows the use of arraycopy() method to copy the contents of one array to another.
package com.Test;
public class ArrayCopyTest{
public static void main(String[] args){
int[] src = new int[] {1, 2, 3, 4, 5};
int[] dest = new int[src.length];
System.arraycopy(src, 0, dest, 0, src.length);
for (int i = 0; i < dest.length; i++){
System.out.println(dest[i]);
}
}
}
Java, J2EE, Struts, Hibernate, Web Services, JSF
arraycopy in java,
How to copy an array into another array,
Java,
Java examples
Wednesday, September 5, 2012
Melbourne - Dream place to visit
Melbourne is one of major cities in Australia and it very beautiful, greenery and specially for me it is more lovable place in the world. Even I couldn't get chance to visit Melbourne till today, I have observed many places in the web sites and TV channels and I loved it.
If I could get the chance to visit, the fist place I like to visit is the Cricket Ground. It is one of the biggest stadiums in the world with 100,000 seating capacity. Apart from the Cricket, it is very famous for the Foot ball. It's my dream place to visit since I habituated with watching and playing cricket.
The next place I would like to visit is the historical market i.e. QUEEN VICTORIA MARKET. I would like to taste the all the verities of Australian sea food items, vegetable food items and different fruits available in Australia and complete the shopping on lovable items.
One of my most lovable thing which I can't say by my mouth but just understand from below. Like to have one pe......g in Melbourne.
From childhood days I am hearing about 'Penguin', reading in books and watching in movies. So, I would like see the Penguins in Penguin Island and enjoy the moments.
You may have different taste than me or my like other things when compared to my interests. If you want to know more about Melbourne just visit : www.visitmelbourne.com/in.
Once you know more about Mebourne, I am sure you definately like to visit Melbourne and it will become a dream place to you. Finally I would like to say, "Melbourne is a city that knows how to live".
So...
…it's your time to visit Melbourne NOW!!!
If I could get the chance to visit, the fist place I like to visit is the Cricket Ground. It is one of the biggest stadiums in the world with 100,000 seating capacity. Apart from the Cricket, it is very famous for the Foot ball. It's my dream place to visit since I habituated with watching and playing cricket.
The next place I would like to visit is the historical market i.e. QUEEN VICTORIA MARKET. I would like to taste the all the verities of Australian sea food items, vegetable food items and different fruits available in Australia and complete the shopping on lovable items.
One of my most lovable thing which I can't say by my mouth but just understand from below. Like to have one pe......g in Melbourne.
From childhood days I am hearing about 'Penguin', reading in books and watching in movies. So, I would like see the Penguins in Penguin Island and enjoy the moments.
You may have different taste than me or my like other things when compared to my interests. If you want to know more about Melbourne just visit : www.visitmelbourne.com/in.
Once you know more about Mebourne, I am sure you definately like to visit Melbourne and it will become a dream place to you. Finally I would like to say, "Melbourne is a city that knows how to live".
So...
…it's your time to visit Melbourne NOW!!!
Java, J2EE, Struts, Hibernate, Web Services, JSF
Australia Tourism,
Dream place to visit,
Melbourne,
Melbourne cricket stadium.
Create XML File in JAVA using DOM
package com.test;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class CreateXMLInJava {
public static void main(String argv[]) {
CreateXMLInJava createXml = new CreateXMLInJava();
createXml.createXML();
}
CreateXMLInJava createXml = new CreateXMLInJava();
createXml.createXML();
}
public void createXML() {
try {
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
try {
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
// root elements
Document doc = docBuilder.newDocument();
Element rootElement = doc.createElement(“Company”);
doc.appendChild(rootElement);
Document doc = docBuilder.newDocument();
Element rootElement = doc.createElement(“Company”);
doc.appendChild(rootElement);
// staff elements
Element staff = doc.createElement(“Dept”);
rootElement.appendChild(staff);
Element staff = doc.createElement(“Dept”);
rootElement.appendChild(staff);
// set attribute to staff element
Attr attr = doc.createAttribute(“id”);
attr.setValue(“1″);
staff.setAttributeNode(attr);
Attr attr = doc.createAttribute(“id”);
attr.setValue(“1″);
staff.setAttributeNode(attr);
// can be written as
// staff.setAttribute(“id”, “1″);
// staff.setAttribute(“id”, “1″);
// firstname elements
Element firstname = doc.createElement(“Firstname”);
firstname.appendChild(doc.createTextNode(“mallik”));
staff.appendChild(firstname);
Element firstname = doc.createElement(“Firstname”);
firstname.appendChild(doc.createTextNode(“mallik”));
staff.appendChild(firstname);
// lastname elements
Element lastname = doc.createElement(“Lastname”);
lastname.appendChild(doc.createTextNode(“Gunda”));
staff.appendChild(lastname);
Element lastname = doc.createElement(“Lastname”);
lastname.appendChild(doc.createTextNode(“Gunda”));
staff.appendChild(lastname);
// salary elements
Element salary = doc.createElement(“Salary”);
salary.appendChild(doc.createTextNode(“100000″));
staff.appendChild(salary);
Element salary = doc.createElement(“Salary”);
salary.appendChild(doc.createTextNode(“100000″));
staff.appendChild(salary);
// write the content into xml file
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(new File(“D:\\test.xml”));
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(new File(“D:\\test.xml”));
// Output to console for testing
// StreamResult result = new StreamResult(System.out);
// StreamResult result = new StreamResult(System.out);
transformer.transform(source, result);
System.out.println(“File saved!”);
} catch (ParserConfigurationException pce) {
pce.printStackTrace();
} catch (TransformerException tfe) {
tfe.printStackTrace();
}
}
}
pce.printStackTrace();
} catch (TransformerException tfe) {
tfe.printStackTrace();
}
}
}
Java, J2EE, Struts, Hibernate, Web Services, JSF
Create xml file using DOM,
DOM,
DOM XML parsing,
Java,
Java xml parsing,
xml parsing in java
Monday, September 3, 2012
Read .xls file in JAVA using POI API
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Iterator;
public class ReadExcelFileUsingPOI {
public static void main(String[] args) throws Exception {
String filename = "D:\\test.xls";
FileInputStream fis = null;
try {
fis = new FileInputStream(filename);
HSSFWorkbook workbook = new HSSFWorkbook(fis);
HSSFSheet sheet = workbook.getSheetAt(0);
Iterator rows = sheet.rowIterator();
while (rows.hasNext()) {
HSSFRow row = (HSSFRow) rows.next();
Iterator cells = row.cellIterator();
while (cells.hasNext()) {
HSSFCell cell = (HSSFCell) cells.next();
int type = cell.getCellType();
if (type == HSSFCell.CELL_TYPE_STRING) {
System.out.println("[" + cell.getRowIndex() + ", "+ cell.getColumnIndex()+"] = STRING;
Value = " + cell.getRichStringCellValue().toString());
} else if (type == HSSFCell.CELL_TYPE_NUMERIC) {
System.out.println("[" + cell.getRowIndex() + ", "+ cell.getColumnIndex()+"]=NUMERIC;
Value = " + cell.getNumericCellValue());
} else if (type == HSSFCell.CELL_TYPE_BOOLEAN) {
System.out.println("[" + cell.getRowIndex() + ", "+ cell.getColumnIndex()+"]=BOOLEAN;
Value = "+ cell.getBooleanCellValue());
} else if (type == HSSFCell.CELL_TYPE_BLANK) {
System.out.println("[" + cell.getRowIndex() +", "+cell.getColumnIndex()+"]=BLANK CELL");
}
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} finally {
if (fis != null) {
fis.close();
}
}
}
}
Java, J2EE, Struts, Hibernate, Web Services, JSF
Apache POI examples,
Create excel file using POI,
Example to read excel file using POI,
Java code read xls file using POI,
POI Examples,
Read excel file in Java,
read MS excel using Java
Subscribe to:
Posts (Atom)
