It has been about two years since I last used Oracle’s OCI driver. I remember it was painful to get going. I wish I had maintained a blog then, because I would have written the steps down and avoided a few hours of pain today. Which is why I am going to document what needs… Continue reading The Horror of Oracle’s OCI driver
Category: Java
HOWTO: Java 5 on Mac OS X 10.4 Tiger
Mac OS X 10.4 aka Tiger does not come with Java 5. However Java 5 was released as a download the day OS X 10.4 was released: 29 April 2005. This post is about getting and using Java 5 on Mac OS X 10.4. Getting It You can download Java 5 for Mac OS X… Continue reading HOWTO: Java 5 on Mac OS X 10.4 Tiger
Java Webstart with Eclipse Rich Client Platform and Linux
With Linux I run Fedora Core 3. Something in Fedora Core 3 broke the Java Webstart which ships with JDK1.4.2 and JDK1.5.0. It is not fixed in JDK1.5.0 update 1, but is scheduled to be fixed in update 2. javaws uses all available cpu and does not exit. Workaround A Sun engineer has kindly provided… Continue reading Java Webstart with Eclipse Rich Client Platform and Linux
First Thoughts on Eclipse Platform
This week I have been part of a team working on an Eclipse Platform application to be launched from JNLP, or Java WebStart, as it is better known. We are using Eclipse 3.0. Problems My complaints are as follows: build.xml is being deleted Whenever I build my project from the Eclipse IDE it deletes my… Continue reading First Thoughts on Eclipse Platform
Performance Benchmark Results: JVM vs CLR
I was talking with someone the other day about Java vs .NET performance. I have never thought that much about it. He said that .NET was fast because it had a Just In Time compiler (“JIT”). I choked on my coffee. Java’s JVM has had a JIT for about 6 years now. Not only that,… Continue reading Performance Benchmark Results: JVM vs CLR
SimonSays: A stretch reminder program to cure those stiff necks
I finished the first Java version of a program recently which reminds programmers and other continuous computer users to stop and stretch. Versions are available for Mac OS X, Linux and Windows. It is the Java reincarnation of a commercial program I wrote years ago and sold quite a few copies of.
It took me three years of part-time effort to complete the new Java version. It was started on JDK 1.1 and finished on JDK 1.4.2. Over that time Java has matured enormously, and made it a lot easier to create a smooth desktop application. Simon has been developed primarily on Mac OS X and Linux. Mac OS X has also matured as a Java platform and I finished the application on IntelliJ.
If you supervise people there is a problem getting them to stretch regularly. On our project we now have four people who have their own chairs and regularly see physiotherapists. Yet a better approach is to develop healthy habits. These include posture, particularly seating position, and regular stretching.
Simon Says pops up at predetermined time intervals. Simon, our cartoon character then guides you through an animated series of stretching exercises . It logs your exercises, so when you get that stiff neck you can go back and check whether you have been streching, or not. When the exercise program is completed it sleeps for a set time after which it will pop up again with another program to run.
There are more than 100 exercises which exercise most parts of the body organised into programs. For example, stretches can be selected for cervical spine, arms and wrists, thoracic spine, lumbar spine etc.
Threads as a metric of the scalability of Java Virtual Machines – by Operating System
The scalability of a JVM depends on: – maximum memory – maximum number of threads – garbage collection – a host of miscellaneous factors. In this survey I look at the maximum number of threads. It shows that Linux is by far the superior Java platform followed distantly by Windows and then Mac OS X.… Continue reading Threads as a metric of the scalability of Java Virtual Machines – by Operating System
Getting IntelliJ 4.52 and 4.5.3 working on Linux AMD64/JDK1.5
There are a couple of small problems with debugging. Until these are fixed by JetBrains it is worth pointing them out: libbreakgen.so Remove this from IntelliJ-IDEA-4.5.3/bin. It is a 32 bit binary and needs to be replaced with a 64 bit one. Removing it causes no loss in functionality. idea.lax Add -Didea.no.launcher=true to the following… Continue reading Getting IntelliJ 4.52 and 4.5.3 working on Linux AMD64/JDK1.5
A very easy way to make your HttpUnit tests run much faster
I have been looking at the performance of our web integration tests lately. They are an order of magnitude slower than our EJB integration tests. JavaScipt! ——- It turns out 70% of the time taken by HttpUnit is setting up the JavaScript interpreter for each response. Some tests need this but not many. In your… Continue reading A very easy way to make your HttpUnit tests run much faster
ehcache-1.1 released
23 November 2004 ehcache 1.1 released. This version splits out the constructs package into a separate sub-project. This simplifies ehcache for those using it in Hibernate or directly. It also moves the constructs to a separate jar and release cycle. There is only 1 minor bug fix but then there was only one bug reported.… Continue reading ehcache-1.1 released