Archive for the ‘Java’ Category

Java Statistics Library

Sunday, December 31st, 2006

I’m currently involved with the development of a high-performance cluster simulator. As part of the project I’ve written a statistics library in Java. I’ve now made the library available at http://public.maquib.com for anybody to use freely. I’m planning on doing a Cocoa port ASAP.


Technorati Tags:

Java finally opened up!

Thursday, November 23rd, 2006

After much debate and talk Sun Microsystems finally released part of the java platform under the General Public License (GPL) . While much has been said about the GPL, I like its insistence that adaptations or improvements made to the code must be made available for no charge.
Components available today include the HotSpot V.M. and javac (the java compiler). I’m particularly looking forward to getting my hands dirty with the compiler. A large propoirtion of the code is set for release in early 2007, and should be buildable from source.
I’m genuinely excited by the move, but my foremost concern is that the platform remains consistent and doesn’t diverge too much though as the write once run anywhere nature of java is one of its best features.

Technorati Tags:

Sockets and IOException

Wednesday, November 15th, 2006

I’m writing a dependable system. I’m having problems:

  1. I’m writing it in java. (Yes I know it isn’t Cocoa, but I’m deploying cross-platform)
  2. I have a thread to deal with server communication. (Thank god for synchronized methods.
  3. The communication thread spawns another thread to send out a keep-alive ping. (Can’t I just set a reasonable SO_KEEPALIVE time, instead of 2 hours?)

When I close the server down at the network end, the ping thread continues to write my ping object to the output stream, without throwing an exception. How on earth is this even possible? Answers on a postcard, or leave a comment below……..

Technorati Tags:
,

X11 forwarding tips on Mac OS X

Wednesday, November 8th, 2006

I have found X11 forwarding on the mac to be excellent, however there is one tip that I’d like to share.
I have used both the -X and -Y flags as arguments to the ssh command, and found -Y to be faster every time. So when using X11 forwarding on OS X remember to use:
ssh -Y adam@myserver.com

Technorati Tags:
,

Java 3D on Mac OS X

Friday, July 21st, 2006

I spent ages looking for these. So I’m popping them up here so that nobody has to spend hours searching for them again! The files for java3d are located in: /System/Library/Java/Extensions/

Obvious really!