Category Archives: Software

Make Grails Application Readonly

For a customer project there was the requirement to make certain parts of the application readonly depending on the state of a central domain object, which I’ll call Lock. Long story short: an implementation of AbstractPersistenceEventListener intercepts persistence events and … Continue reading

Posted in Software | Leave a comment

Single Tomcat 7 Webapp with Apache2 with Ajp Connector

As I had to some pages to get this information together, here’s to to set up a single tomcat webapp as the root of an apache server (on Debian, but should work similarly on other systems). Assuming you’re configuring the … Continue reading

Posted in Software | Leave a comment

Upload Files to S3 with s3cmd in Shell Script

For uploading a defined set of files to S3 using s3cmd, you can use the below shell script. In our case, there’s two additional options (you might find useful as well) -P sets the permissions to publicly readable –add-header=Cache-Control:max-age=604800 sets … Continue reading

Posted in Software | Leave a comment

Groovy vs Java – Subtle difference in Hex Literals

Recently I stumbled across a small but annoying difference in border cases of hex literals between Groovy and Java In Groovy, this println(0xff000000.class) will yield class java.lang.Long In Java, this Object x = 0xff000000; System.out.println(x.getClass()); will yield java.lang.Integer In Groovy, … Continue reading

Posted in Software | Leave a comment

Signing an Applet with a Batch File

Here’s a short and simple way of signing an Java applet (on Windows) if you already have a keystore file (e.g. a pfx file9 with the key for signing Put these manifest attributes into a text file named manifestadditions.txt Permissions: … Continue reading

Posted in Software | Leave a comment