download zip of files only
Mon Jul 06 01:26:54 GMT 2015
From /weblog/java/libraries
howto-create-https-connections-to-servers-with-self-signed-certificates-using-apache-jakarta-commons-httpclient-package http://orangevolt.com[..]ache-jakarta-commons-httpclient-package/ Some say this is the fastest - http://ruedigermoeller.github.io/kontraktor/
(google search)
(amazon search)
Tue Feb 10 09:33:40 GMT 2015
From /weblog/java/performance
-XX:+TieredCompilation, -XX:+UseCompressedOops, Escape Analysis and -XX:+UseNUMA - http://docs.oracle.com[..]uides/vm/performance-enhancements-7.html Interestingly, PrintWriter, if pooled, shows considerable performance improvement. The creation of the object is expensive because of a call to get the line separator in its constructor. http://sachinhejip.blogspot.com[..]/08/experiences-in-java-performance.html Experience in twitter - http://www.umbrant.com/blog/2012/twitter_jvm_tuning.html Cases study on how to test performance from using difference GC algo - http://plumbr.eu/blog/g1-vs-cms-vs-parallel-gc A lot of information - http://www.javaadvent.com[..]-1-of-3-synopsis-of-articles-videos.html Basically use lower level construct - http://blog.jooq.org[..]-easy-performance-optimisations-in-java/
(google search)
(amazon search)
Sun Dec 14 01:38:06 GMT 2014
From /weblog/java/fundamental
createTempFile() will not delete after JDK quit... which I also suppose it will List of issue about File api, which I totally agree. http://hoskinator.blogspot.com/2006/06/using-file-class.html delete() will delete the file immediately even using some 3rd undelete utility cannot recover , I think the implementation should allow recovery chance - http://www.ryanlowe.ca[..]es/000574_java_delete_to_recycle_bin.php http://blog.pengyifan.com/java-io-in-nutshell-22-case-studies/
(google search)
(amazon search)
Sun Dec 14 01:37:13 GMT 2014
From /weblog/java/fundamental
One fact of System.nanoTime() , I think System.nanoTime()'s contract right now is that it *always* increases by a fixed amount. In other words, it's monotonic. So NTP updates, or user's changing system time can never cause any change to System.nanoTime(). https://jsr-310.dev.java.net/servlets/ReadMsg?list=dev&msgNo=1282 A more detailed explanation of nanoTime() and currentMilliSecond() - http://blogs.sun.com/dholmes/entry/inside_the_hotspot_vm_clocks http://blog.joda.org[..]nverting-from-joda-time-to-javatime.html
(google search)
(amazon search)
Wed Jun 25 06:26:02 GMT 2014
From /weblog/java/libraries
Allow a Java method to work for a maximum of five seconds and want an exception to be thrown if the timeframe is exceeded. Here is how you can do it with jcabi-aspects and AspectJ - http://www.yegor256.com[..]4/06/20/limit-method-execution-time.html
(google search)
(amazon search)
Mon Jun 16 09:21:07 GMT 2014
From /weblog/java/network
Some advance usage of javamail and apache james smtp server... but I guess not much ppl will use this server, right? - http://cephas.net[..]ment_variable_envelope_return_paths.html Code sample of using auth required SMTP server - http://timarcher.com/?q=node/53 Properties to prevent infinite timeout for all socket operations, in Java mail - http://andreas.haufler.info[..]vamail-can-be-evil-and-force-you-to.html
(google search)
(amazon search)
Mon Jan 06 08:30:32 GMT 2014
From /weblog/java/features
As Java still need to support Collection.get(Object) , it is easy to get NPE if you use wrong type accidentally http://jroller.com/page/sstirling?entry=map_get_object_and_java I met this problem when using wicket, one cool feature of ListMultipleChoice is that if the list I press into the constructor is not List , it will persist the type information. However, if you use this API carelessly and think the List return from the HTML form is always List . Then you will get strangle null pointer exception when you operate with the list instead of ClassCastException, as java will surpress the ClassCastException from ArrayList.get(i) sliencely and just return null to caller.
A related one but not really related to generics - http://www.pankaj-k.net/archives/2006/11/how_hard_is_tes.html , look like the behaviours difference of primittive and wrapper class at NULL is very easy to get hard to check bug
Another one, JDK generic try to cast to wrong class internally: http://jroller.com/page/dhall?entry=exploring_the_limits_of_java
Some cool feature, apply generic in comparable - http://tech.puredanger.com/2006/11/22/comparator-jdk5/
Wildcast in generic -http://javarevisited.blogspot.com[..]-is-bounded-and-unbounded-wildcards.html
http://javarevisited.blogspot.com.au[..]trized-class-method-Generic-example.html
http://mydailyjava.blogspot.com.au[..]6/advanced-java-generics-retreiving.html
(google search)
(amazon search)
Wed Dec 04 11:27:37 GMT 2013
From /weblog/java/network
Guide of how to start and config jetty dynamic at code - http://www.onjava.com/lpt/a/6623 , even change the config after the server started. Websocket coding sample - http://aredko.blogspot.hk[..]java-websockets-jsr-356-on-jetty-91.html
(google search)
(amazon search)
|