“I’m the smartest man in Athens because I know that I know nothing.” —Socrates 470-399 BC
jsoup: Java HTML Parser like jquery
jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods.exampleString userURL = "http://azizkhani.net/admin/Posts/Add_entry.aspx";content of this request contain this tag <input type="text" id="txt_title" value="title" />Document doc = Jsoup.connect(userURL).get();doc.getElementById("txt_title").val(); http://jsoup.org/cookbook/extracting-data/selector-syntax
[Read More]
get Locale in java
System.out.println(Locale.getDefault());
en-us
create custom dependency in maven
mvn install:install-file -Dfile=/azizkhani/font.jar -DgroupId=org.roshan -DartifactId=font -Dversion=1 -Dpackaging=jar