RSS feed [root] /java /weblog




login:

password:

title search:




 


Sat Sep 28 10:12:49 GMT 2024

java



(google search) (amazon search)
second
download zip of files only

Thu Nov 28 01:25:38 GMT 2013 From /weblog/java/network

protocol


Sockets Direct Protocol – Write Once, Run Everywhere …. and Run (Some Places) Blazingly - http://www.infoq.com/articles/Java-7-Sockets-Direct-Protocol

(google search) (amazon search)


Fri Nov 22 09:04:49 GMT 2013 From /weblog/java/string

alignment


Discussion of how to do string alignment - http://manycupsofcoffee.blogspot.com.au[..]va-implementation-of-optimal-string.html

(google search) (amazon search)


Tue Nov 12 04:04:47 GMT 2013 From /weblog/java/libraries

graphics


https://www.openshift.com[..]pencv-face-detection-for-java-developers

(google search) (amazon search)


Sun Nov 10 10:51:44 GMT 2013 From /weblog/java/eclipse

plugins


Good decompiler - http://mchr3k.github.com/jdeclipse-realign/

fatjar - http://kurucz-grafika.de/fatjar

Builder generator - https://code.google.com/a/eclipselabs.org/p/bob-the-builder/

And my old stuff - https://carfield.tadalist.com/lists/18316

(google search) (amazon search)


Tue Oct 22 16:11:36 GMT 2013 From /weblog/java/fundamental

instanceof


Nice instanceof replacement - http://nurkiewicz.blogspot.com.au[..]anceof-operator-and-visitor-pattern.html https://github.com/nurkiewicz/typeof

(google search) (amazon search)


Tue Oct 22 15:20:06 GMT 2013 From /weblog/java/libraries

config


http://binkley.blogspot.com.au[..]/10/better-java-properties-handling.html http://owner.aeonbits.org/

(google search) (amazon search)


Tue Oct 22 09:25:00 GMT 2013 From /weblog/java/concurrency

Double-Checked Locking


Very detailed explanation: http://www.cs.umd.edu[..]va/memoryModel/DoubleCheckedLocking.html

Some more information, also demo in fact not much difference for most cast: http://blogs.sun.com[..]page/cwebster?entry=double_check_locking

Even more discussion - http://www-128.ibm.com/developerworks/java/library/j-dcl.html

In Chinese - http://www.infoq.com[..]hecked-locking-with-delay-initialization

(google search) (amazon search)


Mon Sep 23 10:11:40 GMT 2013 From /weblog/java/concurrency

testing


Series of blog showing how to use JMock API to help testing MT code - http://www.google.com[..]shhtresohqc&ie=UTF-8&q=JMock+and+Threads

A test for deadlock - http://cr.openjdk.java.net[..]notationTypeDeadlockTest.java.sdiff.html http://cr.openjdk.java.net[..]t/java/util/logging/Bug8010939.java.html

Some technique, use of SynchronousExecutorService and Events - http://alexecollins.com[..]ntent/5-tips-unit-testing-threaded-code/

(google search) (amazon search)


Mon Feb 11 03:47:44 GMT 2013 From /weblog/java/discussion

idea of improving java language


These look interesting, worth to take a look:

1) Auto null checking: http://www.jroller.com[..]ebourne?entry=adding_auto_null_checks_to
I don't think this is a good idea as I don't think there is a way can handle default object reference more generic then NULL. However, I would like to have a way to customize NULL behaviour (or default NULL object). Say, for String, I will think empty string ("") is same as NULL. Thus, I would like to have define something like:

public final class Strinig {
null {
return "";
}
// the rest of string implementation
}

Then the default reference of String, rather than point to NULL, now it point to an empty String.

2) Add closure to Java: http://www.jroller.com[..]ebourne?entry=adding_closures_to_java_or
Not much comment, it is something nice to have but I don't think really add a lot of value, just like java5 foreach loop.

3) Auto casting: http://jroller.com[..]lebourne?entry=adding_auto_casts_to_java
I guess generic already does this?

Of course, there are still some other problem on some people's mind, like:
http://www.onlamp.com/lpt/a/3691
http://nice.sourceforge.net/safety.html

On the other hand, somebody don't like to change java language as it probably make your code less portable. http://www.eclipsezone.com/eclipse/forums/t54318.html

4) Some idea of useful util language - http://closingbraces.net/2007/03/05/strangelets/

5) API for adding feature - http://www.theserverside.com[..]s?track=NL-461&ad=636686&thread_id=49035

A lot more other idea - http://blog.jooq.org/2013/02/04/java-if-this-were-a-better-world/

Drop extends - http://www.javaworld.com[..]at-if-java-8-dropped-extends.html?page=2

(google search) (amazon search)


Sat Jan 05 05:18:39 GMT 2013 From /weblog/java/performance

synchronization


An example about improving performance by replace synchronized with volatile - http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fecba6a8b78e

Log4j can have deadlock due to performance - http://javaeesupportpatterns.blogspot.com.au[..]09/log4j-thread-deadlock-case-study.html

There is always some cost for synchronization - http://vanillajava.blogspot.com.au[..]-synchronization-be-optimisede-away.html

(google search) (amazon search)


Tue Jan 01 02:18:52 GMT 2013 From /weblog/java/features

image analysis


Using OpenCV to detect palm - http://www.javaadvent.com[..]d-and-finger-detection-using-javacv.html

(google search) (amazon search)


Tue Dec 25 13:14:19 GMT 2012 From /weblog/java/discussion

default


Use annotation for default data, rather than hard code it - http://blog.joda.org/2012/12/annotating-jdk-default-data.html

(google search) (amazon search)


Sat Dec 22 07:10:39 GMT 2012 From /weblog/java/annotation

fundamental


http://www.journaldev.com[..]ion-example-and-parsing-using-reflection

(google search) (amazon search)


Mon Nov 19 15:17:47 GMT 2012 From /weblog/java/fundamental

equals


Mutable cause issue - http://www.artima.com/lejava/articles/equality.html

Very detail discussion about implementing equals - http://www.angelikalanger.com[..]avaSolutions/SecretsOfEquals/Equals.html http://www.angelikalanger.com[..]aSolutions/SecretsOfEquals/Equals-2.html

Example of implement and TEST equals - http://blog.springfuse.com[..]ng-various-equals-and-hashcode_3597.html

Consistent of equals and compareTo - http://blog.joda.org[..]/pitfalls-of-consistent-with-equals.html

(google search) (amazon search)


Tue Oct 02 12:31:57 GMT 2012 From /weblog/java/string

stringbuffer


In core libraries like StringBuffer we should prefer the lesser evil of code duplication to the loss of performance. - http://old.nabble.com[..]lder%7D-are-inconsistent-td34479926.html

(google search) (amazon search)


Wed Sep 26 14:53:25 GMT 2012 From /weblog/java/features

Unicode


How to Normalize Unicode in java:
http://java.sun.com/javase/6/docs/api/java/text/Normalizer.html
http://unicode.org/faq/normalization.html
http://en.wikipedia.org/wiki/Unicode_normalization

How to use text collator in java - http://errorken.blogspot.com/2011/03/javatextcollator.html

Make the string look like same but not equals - http://vanillajava.blogspot.com.au/2012/09/hidden-code.html

(google search) (amazon search)


Tue Sep 11 14:21:17 GMT 2012 From /weblog/java/hacks

Intrinsics


How JVM optimzate the code by understanding the intentional of programmer - http://bad-concurrency.blogspot.com.au[..]/arithmetic-overflow-and-intrinsics.html

(google search) (amazon search)


Sat Aug 18 01:19:36 GMT 2012 From /weblog/java/features

package


http://www.javacodegeeks.com/2012/05/about-java-packages.html

http://johannesbrodwall.com[..]ames-transformed-my-system-architecture/

(google search) (amazon search)


Thu Jun 07 16:56:58 GMT 2012 From /weblog/java/concurrency

Actor


Collections from IBM - http://www.ibm.com[..]rworks/training/kp/j-kp-actorconcurrency

(google search) (amazon search)


Thu Jun 07 16:50:22 GMT 2012 From /weblog/java/features

preference


A dirty issue from Java Perference API


java.util.prefs.BackingStoreException: Couldn't get file lock.
at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:715)
at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807)
at com.macquarie.st.adapter.rda.STServer.preparePrefs(STServer.java:501)
at com.macquarie.st.adapter.rda.STServer.start(STServer.java:120)
at com.macquarie.st.commons.core.runtime.STMain.start(STMain.java:170)
at com.macquarie.st.commons.core.runtime.STMain.main(STMain.java:50)

(google search) (amazon search)


Sat May 12 16:21:50 GMT 2012 From /weblog/java/features

maths


Compare between StrictMatch, Math and apache FastMath - http://blog.juma.me.uk[..]rformance-of-fastmath-from-commons-math/

A round bug in Java fixed in Java7, nice reading - http://www.javacodegeeks.com[..]mathround0499999999999999917-rounds.html

(google search) (amazon search)


Wed Apr 18 15:22:31 GMT 2012 From /weblog/java/discussion

tuning


Discussion about reducing latency - http://mechanical-sympathy.blogspot.co.uk[..]n-with-my-channels-nirvana-and-azul.html

(google search) (amazon search)


Thu Mar 01 14:38:45 GMT 2012 From /weblog/java/fundamental

threaddump


The process of how to solve problem using thread dump is nice - http://www.cubrid.org[..]atform/how-to-analyze-java-thread-dumps/

(google search) (amazon search)


Fri Feb 24 16:23:44 GMT 2012 From /weblog/java/eclipse

pair


ECF provide some support about this area - http://wiki.eclipse.org/DocShare_Plugin

Saros - http://www.saros-project.org/

(google search) (amazon search)


Mon Feb 20 16:38:28 GMT 2012 From /weblog/java

tracing


Story of how the trace the bottleneck and how how method inline help - http://www.javacodegeeks.com[..]ava-7-how-to-write-really-fast-java.html

(google search) (amazon search)