Archive for December, 2008

Best operating system for Java Developers?

Friday, December 19th, 2008

Phoronix has an interesting benchmark comparing Java on Ubuntu GNU/Linux 8.10 / OpenJDK, Ubuntu 8.10 / Sun JDK and Windows Vista /Sun JDK. The figures and numbers are quite impressive, and so is the conclusion:


Well, Java on Ubuntu was pretty much the hands-down winner compared to Microsoft Windows Vista Premium SP1. Running the Java tests on Ubuntu had experienced significant advantages when it came to file encryption, Fast Fourier Transforms, Successive Over Relaxation, Monte Carlo, and the composite Java SciMark performance. In only the Sunflow test were the results between Ubuntu and Windows even close. With the Java 2D Microbenchmark, Windows was faster but that likely falls on the Intel Linux graphics driver having little in the way of performance optimizations and Java on Linux not yet utilizing the X Render extension.

Maybe this eventually could be extended in the future to (a) also include OpenSolaris and MacOS as platforms and (b) also feature performance tests of a full-blown Java EE server environment. But then again, maybe at some point it simply will become way too complex and unmanageable. Maybe a first good variation of this comparison already would be using operating systems optimized and tweaked by administrators who know their job rather than going with the “default” settings. But overally, of course, I like the outcome so far. ;)

enabling equinox osgi console on tomcat/linux

Friday, December 19th, 2008

At the moment I am heavily into playing around with server-sided OSGi, mainly to get knee-deep into the Eclipse RAP plaform for a given use case, and I already had to experience quite some pain resulting from the requirement to have a RAP application packed to a .war file and deployed to a local application server (Glassfish V3 Prelude in our testbed system). The innoopract RAP blog has a short outline on how to do so, even though this way of building and packaging the application is, well, rather clumsy. There eventually is only one really important thing to add:

Deploying the OSGi web application to a tomcat container, there is the chance of enabling the Equinox OSGi Console, a tool which is in my opinion strictly required to do even basic debugging whenever your server-sided equinox application does misbehave in a strange way. While this works fine on Windows it seems, GNU/Linux or Solaris users eventually will suffer here as, there, starting tomcat using the $CATALINA_HOME/bin/catalina.sh start command, the container itself will go to the background and keep on running there, just dumping standard output to a preconfigured log file. Having OSGi console enabled, so, will flood your tomcat logs with “osgi>” prompts but, asides this, not do anything useful (as reading the logfile, say, using tail of course will not allow for providing any input to the console).

To get the console working on one of these platforms, you should have a look at said $CATALINA_HOME/bin/catalina.sh file, which, being a shell script, should be easily customizable to your needs. In there, find this section of code that does perform the tomcat container startup:


[...]
else
"$_RUNJAVA" $JAVA_OPTS "$LOGGING_CONFIG" $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
[...]

Modify this by commenting out the last line like this:


[...]
else
"$_RUNJAVA" $JAVA_OPTS "$LOGGING_CONFIG" $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start \
#>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
[...]

… and, again, run $CATALINA_HOME/bin/catalina.sh start. Outcomes of this, as obvious to those who dealt with Unix shell scripts before ( ;) ): Tomcat will start up in foreground in the very terminal you used for invoking this command and also dump all the output to there, so effectively allowing you to control the OSGi console as soon as the osgi> prompt appears. So from here: Happy debugging in finding why your bundles aren’t correctly loaded / started. ;)

c’t-”Digitale Fotografie”: Lesestoff für Gimp-Freunde

Friday, December 5th, 2008

Für all jene, die noch nicht wissen, mit welcher Lektüre sie das Wochenende zubringen mögen: Das dieser Tage veröffentlichte c’t special 01/2009: Digitale Fotografie begrüßt den Leser mit der mutigen Schlagzeile “GIMP statt Photoshop”, und ein Blick in das Heft bzw. auf die DVD beweist: Die These ist Programm. Neben einigen anderen (für mich) mehr oder weniger interessanten Themen (den Artikel über Kunst mit Handy-Fotos finde ich nach wie vor allerdings genial) widmet sich das Magazin in erfreulich großem Umfang verschiedenen Aspekten der Bildbe- und -verarbeitung mit dem GIMP, wobei die Artikel (fast?) durchweg aus der Feder von Bettina K. Lechner stammen, die es auch schon zu mehreren herausragenden Buch- und Videoveröffentlichung zu dieser Software gebracht hat. Und für all jene, die die Artikel eher ungern lesen wollen, bietet die DVD, die dem Heft beiliegt, noch zwei mehrstündige Video-Tutorials für “Einsteiger” bzw. “Fortgeschrittene”. Für Gimp-Einsteiger und -nutzer eine durchaus lohnende Investition…

Songbird: 1.0

Wednesday, December 3rd, 2008

They’ve gone quite a long way: Songbird, the open-source cross platform music player based upon the technical foundation of Mozilla, finally has seen its 1.0.0 release, available for download for Windows, Linux and MacOS, along with a set of contributed builds both for other platforms and packaged for specific GNU/Linux distributions. Like any other Mozilla based applications, Songbird also allows for wide extensibility using addons ready and waiting to be installed, and quite a lot of other features. Though, using Xubuntu 8.10 so far, there’s quite a bunch of well-working native music players, the idea of having such an application available as a cross-platform tool surely is tempting, given I need music around most of the time. Time to get the Songbird to a flight… :>

“Spitzelbuben”

Wednesday, December 3rd, 2008

Bizarr, gefunden in einem Bericht der Süddeutschen zum Bundesparteitag der CDU:


Der Linkspartei widmete sich Merkel in ihrer Rede mit scharfen Attacken: Noch immer seien die Folgen nicht überwunden, die der Sozialismus über die Ostdeutschen gebracht habe. “Jetzt melden sich manche von denen wieder und wollen uns ihr verschrottetes Modell als neues Traumauto unterjubeln. Wir fallen nicht auf euch herein, ihr Spitzbuben, oder sollte ich besser sagen: ihr Spitzelbuben.”

Ungeachtet meiner Meinung zur Linkspartei und in Sonderheit deren ureigener Vergangenheitsbewältigung: “Spitzelbuben”? Ich bin gespannt, was in den Geschichtsbüchern unseres Landes dereinst stehen wird über das Zustandekommen von heimlichen Online-Durchsuchen von Privat-PCs, der vorbeugenden und verdachtsunabhängigen Speicherung von Kommunikations-Verbindungsdaten oder Nacktscannern zur Personenkontrolle – natürlich streng dem Ziel der Terrorismus-Abwehr folgend geschaffen von einer bürgerlichen Koalition gegen erklärten und umfangreichen Widerstand aus der Mitte der Gesellschaft. “Spitzelbuben”? Wie war das noch mit dem Glashaus?

OpenSolaris: 2008.11 unveiled?

Tuesday, December 2nd, 2008

Though it seems an official announcement is still missing, opensolaris.org as well as genunix.org report that OpenSolaris 2008.11 finally has been made publicly available. Release notes are available same as various ISO download options of the final package which obviously is equal to the RC2 released a couple of days ago. Looking at the list of features new to this distribution, there are numerous improvements compared to 2008.05 that make considering an OpenSolaris installation (and eventually everyday use) worthwhile. Seems everyone working on the project has done a rather good job here, now all I am really waiting for is a “server” installation option to run headless infrastructure without having a fully-fledged GNOME/X11 desktop around… :)

BKA-Gesetzt: So funktioniert Demokratie…

Monday, December 1st, 2008

Ein Artikel zum Status Quo in Sachen BKA-Gesetz bei golem.de, der eigentlich keiner weiteren Kommentare bedarf, obwohl er wieder einmal, wie so oft in dieser ganzen Diskussion, geneigt ist, einem die Zornesröte ins Gesicht zu treiben:


Bundeskanzlerin Angela Merkel ruft die Länderregierungen zur Ordnung, die gestern das umstrittene BKA-Gesetz im Bundesrat abgelehnt haben. “Ich finde es geradezu paradox und fahrlässig, die Terrorismusbekämpfung in die Hände des Bundes zu legen, und ihm dann nicht die Mittel zu geben, die man im eigenen Bundesland beansprucht. In dieser Auseinandersetzung hat der Bundesinnenminister meine volle Unterstützung”, sagte Merkel der Frankfurter Allgemeinen Sonntagszeitung.
[...]
Neben Bürgerrechtsorganisationen und Datenschützern haben unter anderem der Deutsche Journalisten-Verband (DJV), die Sendeanstalten ARD und ZDF, die Verlegerverbände BDZV und VDZ, der Deutsche Presserat, die Gewerkschaft Verdi und der Verband Privater Rundfunk und Telemedien (VPRT), der IT-Branchenverband Bitkom, Rechtsanwälte-, Seelsorger- und Ärzteorganisationen gegen das BKA-Gesetz Stellung bezogen

Und ich frage mich ernsthaft, wieviel Protest von wem den noch erforderlich ist, um hier verschiedene Stellen (allen voran die Protagonisten strengerer Notstands Sicherheitsgesetze in den beiden Volksparteien) zu der Einsicht zu bewegen, daß an Inhalt und Prozess der Gesetzgebung hier vielleicht irgendetwas nicht so läuft, wie es laufen sollte?!