JEE6, EJB and Glassfish diaries

Some notes while trying to get up on speed with Glassfish and JEE6, mainly about what can go wrong... and there is plenty of it. The most time-consuming activity is researching generic stack traces which hardly ever point to the real cause. NullPointerException when deploying Been there, done that: A beans.xml in META-INF might cause … Continue reading JEE6, EJB and Glassfish diaries

CRTL + Left click on java methods/members/classes slow in Eclipse

In a certain, corporate installation of Eclipse on a quite fast computer CRTL+Left click on java classes, members and methods in the java editor incurred always several seconds of a locked up eclipse which coincided with moderate network traffic. When disconnecting the network the delay would magically vanish. Pierre-Antoine Grégoire came up with the reason … Continue reading CRTL + Left click on java methods/members/classes slow in Eclipse

Changing sub-pixel rendering in Ubuntu 12.04

In older Ubuntu releases one could change the sub-pixel rendering in the system settings, but that option was unfortunately removed in newer releases. Fortunately it is still accessible via gnome settings [1]: Open dconf-editor In the left pane, go to /org/gnome/settings-daemon/plugins/xsettings In the right pane, change the value of the rgba-order key to bgr: or … Continue reading Changing sub-pixel rendering in Ubuntu 12.04

Solving the 8 Queens puzzle with bit operations

The 8 queens puzzle is a classic (and quite fun to solve) toy problem: place eight queens on a chess board in such a way that all queens could fully move without being obstructed by any other queen. While without practical applications, it illustrates a number of aspects of designing algorithms and implementing programmes: - … Continue reading Solving the 8 Queens puzzle with bit operations