Remote java debug

This is something which should be know be every java developer: how to enable remote debugging of your java application. The solution is remarcable simple: export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" and the start your application normally. You can use your IDE of choice for the debugging. Here is a screenshot of the eclipse configuration: Remote java debug

January 10, 2009 · len

Locale files

When using flex and java in parallel the localization mechanism might be clear. One aspect which is not clear is the encoding of the properties files: Flex locale files encoding: UTF-8 Java locale files encoding: ISO-8859-1 Convertor script: ..$ cat fixUTF.sh #!/bin/bash TMP=iconv.tmp if [ "!$2" == "!rev" ]; then iconv -t ISO_8859-1 -f UTF-8 -o $TMP $1else iconv -f ISO_8859-1 -t UTF-8 -o $TMP $1fimv $TMP $1

May 13, 2008 · len

Graph web representation (conclusions)

Updated 18-oct-2008: There is a great solution in Flex which I have used for this and this projects. Conclusion The problem of representing a graph on the web is not a solved one. On the desktop application side there are lots of tools which can handle large graphs with nice visualization but on a web page the choices are limited. For the given problem of representing a set of nodes connected through lines in order to illustrate the elements of an application I have tried the following:...

February 2, 2007 · len