java.io beats java.nio thanks to Native POSIX Thread Library

July 28th, 2010

Check out this article Paul Tyma (Mailinator) which shows better performance using old-skool java.io instead of the async java.nio, thanks to native threading libs (like NPST on linux).

Categories: Uncategorized | No Comments

Google services exposed through commandline on linux

June 21st, 2010

The Google’s Open Source Blog announced Google CL, a tool that allows you to use Google services from command-line. They provide commands to work with Blogs, Calendar, Docs, Picasa, contacts and YouTube.

A while back I was messing around with GData java-client, but with command-line access it’s even easier to use googles services in my own little projects…

Categories: Uncategorized | Tags: , , | No Comments

How trackable is your browser?

January 28th, 2010

Check out project Panopticlick, they are investigating how a browser can create a unique fingerprint which enables users to be tracked, even with cookies disables or deleted… They also provide some tips to minimize the uniqueness of your browser.

My browser is estimated to have a fingerprint that conveys at least 16.08 bits of identifying information.

Categories: Uncategorized | 2 Comments

Fun with Java: Log4j appender using notify-send on ubuntu

January 18th, 2010

I’ve discovered yet another -maybe quite useless- trick to combine java-development, JBoss AS and Ubuntu (or any other debian-based distro).

I created a very simple log4j-appender which used notify-send (commandline-tool for libnotify) to report errors. This way I will get a visual notification when something went wrong, immediately showing the class of the error and the message.

As an example, I use my favorite Application Server, JBoss AS, but any java-app using log4j (or commons-logging on top of log4j or slf4j-log4j) will do.

(more…)

Categories: Development, Java, Linux, Uncategorized | Tags: , , , , | 1 Comment

Famfamfam missing flag-icons

December 12th, 2009

Everyone knows them I guess, the famfamfam silk-icons set. Completely free of charge and they look great! Mark James also created a set of flags (using ISO-3391-2), these can be found here.

When I was using the flags in an app, I noticed that (accoring to the XML’s I downloaded from iso.org containing all country-data) 5 flags where missing. One was Antarctica, but makes sense since it has no official flags. The other I created myself, trying to use the same “style” as the original ones, see below:

: Antarctica (AQ)
: Guersney (GG)
: Saint Barthélemy (BL)
: Saint-Matrin (MF)
: Jersey (JE)
: Isle of Man (IM)

Feel free to use these (was only 10 minutes of work anyway…):
Dowload zipfile containing extra flags

Categories: Uncategorized | 1 Comment

Eclipse plugin development: Show custom MyLyn notification dialog

November 9th, 2009

Here’s an easy way to create a notification from inside eclipse (triggered by your own plugin), without any effort at all. MyLyn-core has a nice popup that looks great cross-platform, fades out and is visible outside the eclipse IDE, even when minimised (and also cross-desktop on ubuntu).

(more…)

Categories: Uncategorized | 2 Comments

JBoss Tools in Eclipse on Ubuntu 9.10 (karmic koala)

November 2nd, 2009

While upgrading to Karmic Koala (Ubuntu 9.10), my JBoss Tools eclipse plugins suite stopped working. Workspace log told me:

java.lang.UnsatisfiedLinkError: /opt/eclipse/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.1.3-20070904/xulrunner/libjavaxpcomglue.so: libstdc++.so.5: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods
(JavaXPCOMMethods.java:57)
at org.mozilla.xpcom.internal.MozillaImpl.initialize(MozillaImpl.java:48)
at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:668)

XULRunner needs libstdc++5 and it seems that it’s removed from the Karmic repository when upgrading from Jaunty. To get JBoss Tools back online, install the .deb file yourself from the jaunty repo:

http://packages.ubuntu.com/jaunty/i386/libstdc++5/download

Categories: Development, Java, Linux | Tags: , , , , | 1 Comment

Microsoft krijgt patent op xml-gebaseerde bestandsformaten

August 11th, 2009

De mannen van Microsoft krijgen ook alles geregeld, zolang het maar geld opbrengt…Onbegrijpelijk waarop ze nu weer een patent hebben gekregen:

A word processor including a native XML file format is provided. The well formed XML file fully represents the word-processor document, and fully supports 100% of word-processor’s rich formatting. There are no feature losses when saving the word-processor documents as XML. A published XSD file defines all the rules behind the word-processor’s XML file format. Hints may be provided within the XML associated files providing applications that understand XML a shortcut to understanding some of the features provided by the word-processor. The word-processing document is stored in a single XML file. Additionally, manipulation of word-processing documents may be done on computing devices that do not include the word-processor itself.

Categories: Development, Funny | Tags: , , | No Comments

Bug in Buggy Bison

March 27th, 2009

Er is een bug in Traffide 0.0.2 geslopen (Buggy Bison)… Bij het gebruiken van een proxy-server die authenticatie vereist, werkt Traffide niet.In de method be.stacktrace.traffide.http.HostConfigurationWrapper:getHttpState staat:

newState.setCredentials(AuthScope.ANY,
       state.getCredentials(AuthScope.ANY));

Even te kort door de bocht… Commons-httpclient veralgemeent authenticatie zodat de method-signatures van setCrendentials() en setProxyCredentials() exact dezelfde is.

Gefixed op de update-site. Als je de laatste versie (0.0.2) al hebt geinstalleerd, gaat eclipse deze fix niet binnenhalen. Best gewoon de jar manueel downloaden en in “/eclipse/plugin/” kopieren!

Categories: Development | Tags: , , , | 2 Comments

Finally… Buggy Bison

March 2nd, 2009

Traffide Buggy Bison

Het duurde wat langer dan verwacht, maar hij is er “Traffide Buggy Bison”.

Meer info hier

Categories: Uncategorized | No Comments