Archive for the tag 'java'

sponsors wanted for: an ORM mapper for Android

When programming for Android you will soon notice, there is no suitable ORM “mapper” available. Of course, you could use Hibernate, JPA and the such – but the size is too big. Most unfortunately Google has not provided one.

GWT ORM does not look usable to me and some of its logic seems to be missing. Active Android gives a good first impression, but lacks properly licensing and is still too rudimentary. Something I can program on a weekend. That’s what I thought and ultimately did. Here is how it looks like currently: Read more »

Android: template for custom CursorAdapter

In my upcoming Android app I populate a ListView with rows from database. For this task SimpleCursorAdapter exists, which maps rows from a query to fields in a view. Unfortunately that mapping is limited to text-only, i.e. toString() calls. I on the other hand want to change pictures, adjust progress-bars’ fills and compute progress. Hence the need for a custom cursor adapter.

In older examples CursorAdapter.getView is overwritten, which is deprecated and no good, as it is called twice per run and you won’t be able to manage the cursor – which is a must as it won’t get updated and will always point to the same row. Instead, you (and me) should override SimpleCursorAdapter.bindView as follows: Read more »

increasing productivity – part 1: Maven

One of the most important challenges to face first is leveraging developers’ time for maximum efficiency. At qKAI this is especially due to students, writing their theses, contribute to the code base. Therefore we have established several tools to spare them redundant work, maintain a constant code quality and automate the build.

This time I will write about Maven, Read more »

MySQL with Sphinx storage engine

mysql-sphinx

Today I’ve launched Visual Studio 9 2008 and compiled Sphinx, the full-text indexer, as storage engine into MySQL. I’ve limited my effords to the latest 64bit Windows version, because compiling under Linux is with GCC rather trivial.

MySQL 5.1 with SphinxSE for 64bit Windows can be downloaded here.

Just replace your original MySQL files by these from the zipfile.

Next Page »