Archive for October, 2007
Fluent Interface for Regular Expressions
0 Comments Published October 29th, 2007 in Fluent Interface, JavaSome years ago when we migrated Radeox - a wiki engine - to a new Regular Expression engine, we had to change lots of Regular Expressions. Today I would do it in a different way, with Fluent Interfaces. Joshua has a solution for building Regular expressions with a Fluent Interface, about which I wrote before. […]
Java and Apple: Fallen from love
8 Comments Published October 27th, 2007 in Apple, Java, Rails, RubyAs several people have written before, there is no Java 1.6 in the new Mac OS. What a stupid move. At most developer conferences concerning Java people have been and are using Apple laptops. Now in the last release, Leopard, Apple doesn’t even mention Java any more. But the page shouts “Work in a […]
Graeme - the Grails bug buster
2 Comments Published October 26th, 2007 in Grails, Groovy and Grails, RepositaWhile testing Reposita with the Grails repository, I was amazed about Graeme who is the Grails project lead and recently became the CTO of G2One.
Scanning the Grails subversion commits and searching for bug fixes, Graeme seems to be a very very active bug buster. One in four commits is a bug fix. Perhaps this […]
More Hibernate JPA troubles
2 Comments Published October 25th, 2007 in Grails, Groovy and Grails, Hibernate, JPAWhen running JPA together with Grails (not tested on it’s own), with a Hibernate ORM either Hibernate, or with a pool the pool (c3p0), runs out of connections. The architecture of Reposita has a Grails frontend with a (Java) JPA backend to enable switching the frontend and backend independently. The MySQL database barks about to […]
JPA hangs Grails, Part 2
0 Comments Published October 24th, 2007 in Grails, Groovy and Grails, Hibernate, JPA, JavaAs I wrote before, using Java JPA in my Grails application, the Grails application (0.6) hanged. After not much help from the mailing list, I updated to Grails RC1.0 without success. Adding the newest Hibernate JARs and Annotations JARs to the grails/lib directory solved my issue though. Grails no happily uses my JPA/Dao backend. Puh.
var […]
@License(name = “Apache”,version = “2.0″) annotations and GPL
5 Comments Published October 23rd, 2007 in Apache, GPL, Java, LiceningIs your Open Source project correctly licensed? When I was thinking about my open source projects I remember I was shocked. They probably haven’t been correctly licensed (they were in the end) What license you can use depends on the third party open source projects you use. But not only that, it depends on what […]
Creating a fluent interface for Google Collections
6 Comments Published October 17th, 2007 in Fluent Interface, Google collections, Groovy and Grails, JavaChris wrote about functional programming in Java. As an example he used Google Collections which “is a suite of new collections and collection-related goodness for Java 5.0″.
Looking at his post he gives the following code on how to use Goolge Collections
files = Iterables.transform(
Iterables.filter(
Iterables.filter(getPagesList(),WebPage.class),undeletedPages),
new PagesToFilesTransformation()))
This […]
Grails, Hibernate and JPA: hanging application
5 Comments Published October 15th, 2007 in Grails, Groovy and Grails, Hibernate, JPAWhen developing an application in Grails I’ve been adding a backend written for JPA. This should be no problem - you think. But while the unit test for the JPA backend work fine for themselves, when adding the backend to the Grails application, Grails hangs when accessing the EntityManager. It does not help that all […]
I’ve been trying out Mozy as a backup service for my Mac. Granted it’s beta, but for me it does not work. When I change files or add ne files to a folder, those changes are not detected by Mozy (0.7.0.0). It tells me “no files changes” when I do a backup. Sigh. Either I’m […]
JavaRebel impressions - Java Reload just like in Rails
5 Comments Published October 11th, 2007 in GeneralJavaRebel promises Ruby on Rails and PHP reloadability for Java. It is a library that works as an agent to the Java Virtual machine and helps the VM dynamically reload Java classes when they have changed. The setup I used was a fairly large application with dozends of modules, tomcat 6 and Eclipse as my […]