download zip of files only
Mon Mar 17 17:25:28 GMT 2008
From /weblog/java/hacks
if you do a “kill -3? of the java process id, it dumps a stack trace of every thread, including what locks it’s holding, to stdout. - http://blog.xcski.com[..]ie-says-kill-3-pid-is-my-new-best-friend At windows, it is ctrl-break
(google search)
(amazon search)
Mon Jan 07 07:03:59 GMT 2008
From /weblog/java/fundamental
Some problems of cloning, include using copy constructor / clone() method - http://www.agiledeveloper.com/articles/cloning072002.htm
(google search)
(amazon search)
Fri Dec 14 09:10:58 GMT 2007
From /weblog/java/swing
frame (title:'Demo') { menuBar { menu('File') { menuItem 'New' menuItem 'Open' } } panel { label 'Label 1' slider() comboBox(items:['one','two','three']) } } frame.show()
http://blogs.sun.com/geertjan/entry/how_cool_is_swing_in Example of using swing with groovy and CSS - http://www.jroller.com/aalmiray/entry/css_swing_groovy_you_bet
(google search)
(amazon search)
Wed Dec 05 16:28:42 GMT 2007
From /weblog/java/discussion
Cohen goes on to describe when and how to use each of these methods: * Basic - breakpoints * Primal - debug messages * Hot Shot - dynamic proxy * Brute Force - run-time profiler * New Age - through aspects A good overview - http://zvikico.typepad.com/problog/2007/11/five-ways-for-t.html Follow up discussion - http://www.theserverside.com[..]_id=47708&asrc=EM_NLN_2697526&uid=703565
(google search)
(amazon search)
Mon Sep 10 16:19:46 GMT 2007
From /weblog/java/features
If class A is subclass of B, then B.isAssignableFrom(new A()) == true, and, new A().getClass() == B.class However, when you object is generated using proxy tool like CGLIB B.isAssignableFrom(new A()) == true, and, new A().getClass() != B.class http://www.systemmobile.com/wp/?p=189
(google search)
(amazon search)
Fri Aug 31 01:57:58 GMT 2007
From /weblog/java/network
Prevent java to resort "c:/" - http://rifers.org[..]05/12/22/flaky_file_urls_jdk_1_4_windows DNS caching explain, in Java6, When a security manager is not set, the default behavior is to cache for 30 seconds. - http://www.rgagnon.com/javadetails/java-0445.html
(google search)
(amazon search)
Wed Aug 01 17:25:51 GMT 2007
From /weblog/java/concurrency
Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues. http://java.sun.com[..]nt/locks/AbstractQueuedSynchronizer.html
(google search)
(amazon search)
Tue Jul 10 14:31:50 GMT 2007
From /weblog/java/libraries
beanUtil - A blog show how to create object according to the attributes specified from else where. Look like spring IOC already do similar thing... not sure how much better of using beanUtil - http://twasink.net/blog/archives/2005/07/text_files_test.html A very detailed blog discuss the benefit of using google-guice - http://debasishg.blogspot.com[..]03/using-guice-as-di-framework-some.html A comparison - http://bge-kernel-panic.blogspot.com[..]2007/06/lesser-known-ioc-containers.html
(google search)
(amazon search)
Wed Jun 27 07:11:23 GMT 2007
From /weblog/java/libraries
I just try ikvm today, both release and the build using OpenJDK, both can launch and run eclipse without any issue, performance is ok, but the distribution size is a lot less than Sun/IBM JRE, very amazing to me http://www.infoq.com/news/2007/06/openjdk-hybrids
(google search)
(amazon search)
Fri Jun 22 10:18:53 GMT 2007
From /weblog/java/libraries
If you use MQ API MQMessage to send message : mqMessage.writeString(arg1 : content); At the receiving side, it will not be String but byte[]
(google search)
(amazon search)
Fri Jun 22 10:10:12 GMT 2007
From /weblog/java/fundamental
You can ignore the last comma in arrays - http://hanuska.blogspot.com/2007/02/trailing-comma-in-arrays.html When you try to case an Array to other Type, you will get funny exception like Exception in thread "main" java.lang.ClassCastException: [B Which, showing that if you call new byte[0].getClass() , you will get "[B".
(google search)
(amazon search)
|