By karanar, on August 27th, 2010%
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
By admin, on April 6th, 2010%
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
By karanar, on March 30th, 2010%
What I enjoy with frameworks like Grails or Rails is that they are taking care of all the object relational mapping for me. So, I can really concentrate on the domain object model and the framework will care about the underlying work. Fortunately, when needed, I can still “talk” to the database directly. Also, with the . . . → Read More: Grails many-to-many & Join table
By karanar, on March 18th, 2010%
Grails has an incredible amount of very useful features, amongst those the dynamic methods on domain objects. When we generate the scaffolding for a controller for a domain object we get the default list method in the controller which uses the list method on the domain object. The list method takes params as argument containing max, . . . → Read More: createCriteria() & withCriteria()
By karanar, on March 15th, 2010%
First my use case. A user inserted a couple of thousands records into a database describing animal samples for a transcriptomics study. In this table there is a column ‘description’ which is for free text. The user made a mistake: among other information in this description column he put ‘rat’ instead of ‘mouse’. So now, how . . . → Read More: Replacing strings in a database using Groovy
By karanar, on February 16th, 2010%
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
By karanar, on February 10th, 2010%
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?
By karanar, on January 29th, 2010%
I’m currently working on refactoring an UI/ORM application and the database it connects to. I need to change a lot of things in the db design so I was looking for a simple java tool that would allow me to easily export tables from the database to a defined XML format.
A tool that would produce something . . . → Read More: Exporting a database to XML with Groovy