Archive for March, 2011

Es ist vollbracht

Sunday, March 27th, 2011

This posting is about today’s elections in Rhineland-Palatinate and Baden-Württemberg. International readers, I apologize for the german language.

Once again, a public domain drawing from openclipart.org. Thanks to all contributors.

Once again, a public domain drawing from openclipart.org. Thanks to all contributors.

Ich verstehe nichts von Fußball, weshalb ich mich auch nicht zu Themen wie Elfmeter oder Abseits äußern kann. Ich verstehe auch nicht wirklich was von Politik. Da es aber rund um den Globus üblich ist, dass bei verschiedenen Gelegenheiten über Politik geredet wird, will ich heute, anlässlich einer als historisch zu bezeichnenden Wahl, eine Ausnahme machen, und einige unqualifizierte Kommentare abgeben.

Noch gestern habe ich darüber nachgedacht, ob die Bürger in Rheinland-Pfalz und Baden-Württemberg heute klug genug sein würden, darauf zu verzichten, ihre Stimmen an Splitterparteien zu vergeben, so dass ein klares Wahlergebnis zustande kommt. An dieser Stelle haben mich meine Landsleute, an denen ich manchmal fast verzweifeln könnte, mehr als positiv überrascht. Rechts- und Linksaußen haben fast keine Rolle gespielt, und selbst die Liberalen haben sehr schlecht abgeschnitten.

In Rheinland-Pfalz kann Landesvater Kurt Beck mit den herben Verlusten seiner Partei SPD überhaupt nicht zufrieden sein – er wird künftig seine Macht mit einem Partner teilen müssen. Augenscheinlich werden das die Grünen sein, die sehr gut abgeschnitten haben. Die Union freut sich immerhin über ein gutes Abschneiden entgegen dem aktuellen Trend, auch wenn es für den Machtwechsel letztlich nicht gereicht hat.

In Baden-Württemberg wird die Union voraussichtlich nach fast 58 Jahren die Macht abgeben müssen, auch wenn es vielleicht bis zum endgültigen Wahlergebnis nochmal spannend werden könnte; denn das Wahlrecht begünstigt im Ländle die stärkste Partei – und das ist die Union nach wie vor.

Die SPD ist abgerutscht, und die Grünen sind überraschenderweise zweitstärkste Kraft nach der Union geworden. Momentan sieht es so aus, als ob damit die Grünen den künftigen Ministerpräsidenten stellen könnten – damit dürfte wohl keiner gerechnet haben.

Auf der Autobahn konnte ich im Deutschlandfunk die Wahlsondersendung verfolgen. Nachfolgend einige Dinge, die IMO bemerkenswert sind.

  • Das gute Abschneiden der Grünen wird von Union und Liberalen ausschließlich mit den Ereignissen in Japan begründet. Das dürfte durchaus einen Einfluss gehabt haben, allerdings lagen die Grünen schon davor gut im Kurs. Hier vermisse ich ein kritisches Hinterfragen der eigenen Positionen, aber das freundliche und entspannte Lächeln in die Kameras wirkt aufgesetzt und wie bereits vor dem Wahlabend eingeübt.
  • Trotz Stuttgart 21 und die Diskussion um die Nutzung der Nukleartechnologie wählten noch immer nahezu zwei von fünf Wählern die Union. Für mich ist das ein Phänomen. Ich kann nur darüber mutmaßen, woraus diese Partei ihr enormes Potential schöpft. Aufgewachsen in Bayern hatte ich immer den Eindruck, dass die Union bei den Wählern vor Ort schlicht präsenter ist als Sozialdemokraten oder Grüne. An politischen Inhalten kann es IMO jedenfalls fast nicht liegen – es sei denn, die Wähler wissen die Absenz derselben zu schätzen. Ich persönlich habe keine deutliche politische Präferenz. Ich wünsche mir “nur” eine Regierung, die dafür sorgt, dass unsere Gesellschaft leistungsfähig bleibt – und zwar als Ganzes. Interessante Ansätze finde ich bei SPD, den Grünen oder auch den Liberalen, deutlich weniger im Lager der Aussitzer und Weitersomacher.
  • Die Grünen können sich sicherlich über ihr überaus erstaunliches Abschneiden, vor allem im Land der Spätzle und des »Ha noi!« freuen. Ich bezweifle aber, dass ihnen das nochmals gelingen wird. Insofern kann ich nur hoffen, dass sie die kommenden 5 Jahre zu nutzen verstehen. Vielleicht können Windkraftanlagen endlich mit ausreichend dimensionierten Anschlusstrassen angebunden und das ein oder andere Pumpspeicherkraftwerk realisiert werden?
  • Von der SPD erhoffe ich mir, dass sie mit Steuern und Sozialleistungen verantwortungsvoll umgehen möge. Wir wollen ein Sozialstaat sein. Das gelingt nur, wenn wir unsere Wirtschaftskraft erhalten und die Ausgabenseite streng im Griff behalten. Die 70er und 80er Jahre des vergangenen Jahrtausends sind auf jeden Fall passé.
  • Die Piratenpartei hat den Einzug in die Parlamente deutlich verfehlt. Dennoch zeigt ihr Erfolg speziell im südwestlichsten Bundesland, dass die großen Parteien deutlichen Nachholbedarf auf einigen Themengebieten haben. Der Rest der Parteien täte gut daran zu lernen, dass moderne Kommunikationsmittel nicht nur aus einem Buchhändler, einer Handelsplattform, einem sozialen Netzwerk, einem Kurzmeldungsdienst und ein paar Kinderschändern bestehen.

An dieser Stelle möchte ich mich bei meinen Mitbürgern für die hohe Wahlbeteiligung und den Willen, Dinge ändern zu wollen, bedanken. Und zwar ausdrücklich auch bei denen, die eine andere Meinung als ich selbst vertreten. In den letzten Jahrzehnten ist die Politik in Deutschland deutlich spannender, da abwechslungreicher, geworden. Und das ist IMO eine gute Sache.

Using MoNav – Eat your own dogfood

Sunday, March 27th, 2011

I’m just back from a family meeting in Heiligenstadt (Upper Franconia), the region where parts of my family originate from. It’s a nice town with some restaurants providing very good traditional food at a reasonable price. It’s sited in a valley which provides nice surroundings, and the interior of the medieval protestant church was rather surprising.

Of course I used MoNav for navigating there. The route it calculated was “just the right one”, and the track logging I recently hacked clearly raises its value.

What I’m missing most is speech output. Actually I already know how to do audio output on the N900, which is quite simple thanks to Qt. But a lot of backend work is required to create usable output. As CEST started today and I can smell the spring, it is unlikely that I will add this feature during the next weeks. Except we get some cold and rainy days, of course :) .

Lyambiko@Tollhaus once again

Sunday, March 27th, 2011

Like last year, Lyambiko once again was on stage at the Tollhaus. The musicians were the same as last year, as was the acoustical sound. Frankly, I’d enjoy some electric bass, guitar or keyboard sound every now and then, so it’s not exactly the music I’d listen to at home. But the live experience was just marvellous.

Thanks guys and girl :) .

MoNav Maps updated

Monday, March 21st, 2011
openclipart.org, public domain

openclipart.org, public domain

I’ve modified the script for MoNav map generation and ran it anew. monav.openstreetmap.de now hosts packages for car, bike, and pedestrian routing. The files are compatible with MoNav 0.3 as built from SVN. The files are not compatible with MoNav 0.2. The page also contains some basic installation instructions.

I’ve also uploaded a couple of installers. A deb for the Nokia N900 is provided as well as debs for Ubuntu i386 and amd64. A binary only tar.gz is also available.

I’ve also created a first rudimentary Win-Installer using the Nullsoft installer and Nsisqssg. Unfortunately the binary crashes during startup, so this installer is not available. I’m rarely using Redmond-OS, so in case someone else with some C++/Qt4 knowledge wants to debug the issue I wouldn’t object :) .

Please note that the binaries provided have been built from SVN trunk.
The main purpose of providing the files is to show what is possible with the collaboratively collected data of openstreetmap.org. The software possibly will harm your machines and thus is not intended to be used by end users, but by brave mappers keen on testing bleeding edge software.

Creating a Debian package file for Maemo 5

Monday, March 21st, 2011
openclipart.org, public domain

openclipart.org, public domain

A friend of mine asked for a package of MoNav for the Nokia N900 smart phone.

Creating a proper package requires to read a lot of documentation (yes, there is pretty good documentation) and to put together all the bits correctly. But I just wanted a very basic package, containing a binary, an icon, and a desktop shortcut file. Should be simple, eh?

Yes, it is simple. Just put the files in a directory, add a basic control file, and you’re done. Here we go:

  • Create a working dir, e.g.
    • mkdir builddebpackage
  • Make it the working dir:
    • cd builddebpackage
  • Create the base dir for the package, e.g.
    • mkdir monav-0.3
  • Make it the working dir:
    • cd monav-0.3
  • Create the folders you want to populate on the target machine:
    • mkdir -p usr/bin
    • mkdir -p usr/share/applications/hildon
    • mkdir -p usr/share/icons/hicolor/scalable/hildon
  • Copy the files to those directories:
    • cp ~/dev/monav/bin/monav usr/bin
    • cp ~/dev/monav/bin/monav.desktop usr/share/applications/hildon
    • cp ~/dev/monav/bin/monav.png /usr/share/icons/hicolor/scalable/hildon
  • Create a folder named DEBIAN:
    • mkdir DEBIAN
  • Create a control file in this directory, with the following content:
    • vi DEBIAN/control
    • Package: monav
    • Version: 0.3-1
    • Architecture: armel
    • Maintainer: ce
    • Installed-Size: 1456
    • Section: user/navigation
    • Priority: extra
    • Homepage: http://code.google.com/p/monav/
    • Description: Routing application
    • [insert one blank here]Allows to track the GPS position and provides very fast and exact route calculation.
  • Make the upper directory the working directory:
    • cd ..
  • Create the package, while ensuring there is no trailing slash at the end of the folder’s name:
    • dpkg-deb --build monav-0.3
  • Upload the resulting package to your web space:
    • scp monav-0.3.deb remotehost.yy:/htdocs/installers

I’m pretty sure there will be some stoning tomorrow, organized by some open source evangelists :) . I do not care. I just want to install three files on a smart phone. Nothing else.

Recent MoNav Additions

Tuesday, March 15th, 2011
Displaying a tracklog using openstreetmap.org data (CC-by-SA)

Displaying a tracklog using openstreetmap.org data (CC-by-SA)

Since the last post, I spent a couple of hours writing code for MoNav. The follwing list provides an overview over the lastest additions of mine:

  • There are three map widgets in MoNav, the main map, the place chooser map, and the street choser map. As there was no central instance to control the zoom level, some nasty effects occured in case the user used the various zoom controls (F-keys, mouse wheel, zoom bar, zoom buttons). The zoom levels now are stored persistently for each individual map, and managed by one central method, setZoom(int). The code now provides reasonable default zoom values instead of using the maximum possible zoom at each startup.
  • On the N900, the backlight now remains switched on as long as there is GPS data. Of course the user can still switch off the backlight using the hardware switch.
  • MoNav centered the map only in routing mode. In the map view mode, the GPS position left the viewport without the map following its position. As a cyclist, it may well be that you don’t want to use routing, but want the map to follow the GPS position anyway. There is no preference option for this new feature. The map link to the GPS position gets lost as soon as the user pans the map. It gets set during application startup, when loading another map data set, the user selects “Goto Departure”, or the user selects “Goto Gps-Location”.
  • In routing mode, the auto rotation now is optional. In case you are used to maps which always show north up, this option is for you.
  • MoNav got GPS updates by the GPS subsystem every 5 seconds or so. Though the documentation of QGeoPositionInfoSource states that a default object gets updates each time there are any, calling setUpdateInterval(1000) clearly boosts the GPS performance of MoNav.
  • The user can now switch track logging on and off via the preferences.
  • The tracklog files created by MoNav now are proper UTF-8 encoded files, which JOSM no longer denies to consume.
  • MoNav now is capable of rendering the tracklog in red colour (see screenshot), which is a much sought-after feature for pedestrians, hikers and cyclists.

MoNav Tracklog Rendering

Friday, March 11th, 2011
MoNav Tracklog Rendering (map material openstreetmap.org, CC-by-SA)

MoNav Tracklog Rendering (map material openstreetmap.org, CC-by-SA)

As the openstreetmap addict I am, I want to log any trip I do. Recently I told MoNav how to do it, but the tracks did not appear on-screen.

Meanwhile the tracklog gets written in GPX format natively (support for track segments is provided), and MoNav reads the current GPX tracklog during startup. The tracklog files are named according to the current date (e.g. MoNav Track 2011-03-10.gpx). In case one quits MoNav right before 12PM and fires it up again right after 12AM, the track will appear empty due to the new log file created. Each time the tracklog gets flushed (current default value is every 60 seconds), MoNav creates a backup file (e.g. MoNav Track 2011-03-10-bck.gpx), just in case the battery drained while the file is open for writing.

A couple of minutes ago, I did a short test trip around the station in Karlsruhe, which is witnessed by the above screenshot. Obviously the GPS receiver of the N900 was not that accurate, which is due to the fact that I had it in my pocket, not mounted to the handlebar.

I’ve already seen a couple of bugs, e.g. the track painting is lagging behind the actual GPS position by a couple of seconds. I hope I can iron out such issues during the next couple of days, as the biking season will hopefully start »real soon now«™.

The code is not in SVN yet, as some other patches still are pending for being approved. I’ll keep you posted as soon it is in SVN.

Automated MoNav Map Preprocessing

Thursday, March 3rd, 2011
European Map (openclipart.org, public domain)

European Map (openclipart.org, public domain)

The most exiting routing application is pretty useless without any map material. So is MoNav. Well, wait, you can convert some data from openstreetmap.org at your own, can’t you?

No, many people can’t. In case you are used to a Linux box, you may have good luck, as you have all the tools required at your diposal. But many potential users of MoNav might not be capable of compiling the application and map material by themselves.

So I spent some evening hours to set up a simple script which can automate the preprocessing. As STRATO generously is sponsoring three servers to be used by the OSM community, a few CPU cycles are available to do the hard processing work. Though I have no confirmation yet whether the machines can be used to convert MoNav maps regularly, I already converted some minor mapsets. Do not expect huge sets (like the whole of europe) soon, as this would hit the machine quite heavily.

The download page looks quite ugly (CSS experts wanted), as it gets automatically created by the abovementioned script. But anyway, it provides the possibility to download preprocessed maps for MoNav (currently only car routing maps are offered). Hope you enjoy.