Java

Memories, memories

I just found my own oldest webpage (handcoded) and my oldest public source code (Java) at once. Archive.org - that has hosted this long-dead memory since 1999 - is just so great. Looking back at it, I realise that I was right in the thick of Internet development: When I just started working with Java, we had to throw out all the printed Javadocs, because jdk1.0b2 was released and a lot of Java API (e.

Chumby: Digital picture frame for parents and much more

I want to get my parents a digital picture frame. But at the moment I cannot. That’s because I don’t want my somewhat less-technical parents to have to fiddle with memory cards, choosing and transferring photographs or running Vista. My ideal digital picture frame for them would be one sitting in a living room or a bedroom with new photos to delight my parents every so often. Such a device would have to be:

Upgrading to GATE 4? Beware of leftover configuration files.

From time to time I experiment with GATE NLP toolkit. Just now I tried to upgrade to the latest version (version 4) and run into really strange problem with ANNIE system not loading correctly. Later, when I uninstalled older GATE version, it stopped loading at all. The problem is the user configuration file gate.xml that is stored in the shared location, usually home directory. On Windows, that is _C:\Documents and Settings[ProfileName]_.

The Rich Web Experience – day 1

I am currently at The Rich Web Experience 2007 conference. It is interesting to compare it to JavaOne conferences I have been to in the past. To start, RWE is much smaller. It is about 400 people as compared to 15 thousands at JavaOne. This obviously makes scheduling logistics and eating arrangements simpler, but there is also a very different feel in the air. It feels that it is much harder to walk around without bumping into speakers and/or other moderately famous web people.

Reducing disk thrashing of OpenNLP/MaxEnt parser – with one line code change

When OpenNLP toolkit uses MaxEnt parser, it has to read in about 25 MBytes of model files. The model reader uses basic unbuffered FileReader. The result is the excessive number of system calls (and disk access calls) during the parser startup. The fix is extremely simple: In maxent-2.4.0/src/java/opennlp/maxent/io/ObjectGISModelReader.java, replace new FileInputStream(f) with new BufferedInputStream(new FileInputStream(f), 1000000) Recompile maxent library Deploy new version of maxent-2.4.0.jar into OpenNLP’s lib directory The comparison is striking (the numbers are File access system calls):