Installing redmine 1.0.1 on jruby and glassfish

I just completed the installation of redmine using jruby & glassfish on a redhat server. It took me a couple of hours to get it working correctly.

General Informations

For the installation, when you run any ruby programs you better do it with jruby -S <program> to avoid conflicts between ruby and jruby
if you download a redmine release, . . . → Read More: Installing redmine 1.0.1 on jruby and glassfish

New Accelerometer Values Android application

I have deployed a new version of the Accelerometer Values application on the Android market. I left the previous app as I have changed a lot of things in the code and in the package organization. However, I will remove the old one soon, once everybody is happy with the new one

Now, you can . . . → Read More: New Accelerometer Values Android application

Accelerometer Values

Here is the code of the accelerometer values application for Android. I did this application in a couple of hours to test the Android platform so the features are very basic. I’m currently working on a new version that will include logging of the values and a few other things.
However, here is the code of the . . . → Read More: Accelerometer Values

How can we run code on an object instance before construction?

We can do it with initialization blocks. I find it actually a very interesting feature of java even though I would recommend to be very careful when using it. Indeed, initialization blocks might confuse people looking at your code especially if there is not only one and if it’s not placed close to the constructor.
So an . . . → Read More: How can we run code on an object instance before construction?