Bash script to post/edit phpbb forum posts

If anyone has the desire to automate forum posts for whatever reasons, here is a bash script that will do: ...
read more

Using system dialogs in textmate commands / shell scripts (on a mac)

Sometimes you need to provide user input to your textmate scripts. The usual cocoa inputs as described in the textmate manual don’t work in a bash environment, therefor a wrapper is needed. One way to do this, is to use the library CocoaDialog. After the initial setup, as described here in the documentation we are able to call a dialog from the command shell which can now be exploited in our scripts. An example command to replace a placeholder in your textmate file with iterating numbers (more dialog examples can be found on the cocoadialog examples page): #!/usr/bin/perl -w use...
read more

Creating Annotation-based Concurrency with AspectJ & Maven

For a project at the University we had the task to create Annotations that would remove the concurrency boilerplate Code from Java. The main Idea of the Annotation is to mark some kind of Collection-processing method with @Parallel, so that the method-body will be executed by several Threads, which after completion will be joined and passed back as return value. I thought that this would be the right time to finally take a look into AspectJ. So at first we create a standard maven project and a basic Annotation: package de.fabianmaass.abc.annotation; import...
read more

Running several Java Versions under Windows

Just found out that, if you run several Java Versions under Windows, Windows has this oddity to put the Java executables under \windows\system32, whenever you install a newer version of java. So if you have to build java code on the console with an older version, sometimes its not enough to set the %JAVA_HOME% environment variable or to set the version in systemcontrol, but to delete those...
read more

Creating hybrid Web-Applications with ICEFaces and Maven

Since ICEFaces is almost like ZK a container-agnostic Framework, I wanted to create an additional Archetype for creating Web-Apps with ICEFaces. This could have been any other JSF component framework, but ICEFaces happens to have their own Portlet-Bridge, which comes in handy when deploying to a portal. I tried RichFaces before, but RichFaces seems to be a major pain when trying to run in a non-ejb container like Tomcat. Maybe things will get better with the soon to be released JBoss Portlet-Bridge 2.0, but I doubt it, because its not really in their scope. And because the settings are almost identical...
read more

Creating hybrid Web-Applications with ZK and Maven

I want to describe the basic steps to create a hybrid Web-Application, thats runnable in a normale Application Server, like Tomcat, and is also deployble to a Portlet Server like Liferay. There are lots of other well documented sources that describe the basic steps on each of those Web-Apps independently, so i dont want to get into too much detail here. I mainly want to describe the essential steps, so your Web-App is deployable in both containers. Im using Liferay 5.2.3, it should also be working in other Portlet-Containers, for example JBoss Portal, but i can’t guarantee it. Finally i want to...
read more

Liferay/Tomcat Bundle – Changing Timezone

If you are getting warning messages from your freshly unzipped liferay/tomcat bundle like this: Warning: META-INF\MANIFEST.MF modified in the future. Warning: WEB-INF\liferay-display.xml modified in the future. Warning: WEB-INF\liferay-plugin-package.properties modified in the future. Warning: WEB-INF\liferay-plugin-package.xml modified in the future. Warning: index.zul modified in the future. you have to add timezone settings in the setenv.sh/setenv.bat like that: -Duser.timezone=Europe/BERLIN A list of Java Timezones can be found...
read more