Thomas Fischer's Weblog

Life, Linux, LaTeX

Reiten auf Islandpferden

leave a comment »

Vor zwei Wochen war ich mit Freundin und Bekannten auf einer Reittour mit Islandpferden. Wie auf Wikipedia beschrieben und was ich auch bestätigen kann, sind diese Pferde schön ruhig, nicht zu groß und lassen sich auch ohne Erfahrung reiten.

An besagtem Reitsonntag sind wir zu viert nach Kyrkekvarn zu einem Reithof gefahren und haben eine 2-Stunden-Tour gebucht. Am Stall angekommen, mussten wir uns erstmal Ausrüstung (Helm) aus dem Lager aussuchen und vor dem Tor aufstellen. Von einer der Tourleiterinnen wurde uns der Umgang mit Pferden erklärt, wie man Sattel und Saum einstellt und auf das Pferd auf- und absteigt. Jeder von uns wurde zu einem passenden Pferd im Stall eingeteilt und durfte es nach draußen führen. Nachdem alle aufgestiegen und alle Gurte überprüft waren, durften wir zum “Aufwärmen” in einer kleinen Koppel im Kreis reiten um etwas Gefühl für das Tier zu bekommen.

Danach ging es los in die Berge. Zwischendurch wurde immer wieder Halt gemacht, um einige Dinge zu erklären, z.B. die Gangarten. Eine Besonderheit von Islandpferden ist ihre Fähigkeit zum Tölt, eine Gangart, die einen ruhigen Ritt erlauben soll. Ich bin mir aber nicht sicher, ob das bei mir so richtig funktioniert hat, bin trotzdem gut durchgeschüttelt worden… ;-)

Da die gesamte Reittruppe aus ca. 15–20 Leute bestand, sind wir als eine lange Kette geritten. Mein Pferd („Blakkur“) kannte die Ausflugsroute schon sehr gut und ist praktisch ohne Lenken der Strecke gefolgt. Auf den Strecken, wo wir galoppieren durften, ist das Pferd von alleine losgerannt.

Etwa auf halber Strecke wurde Rast eingelegt mit Tee/Kaffee und belegten Broten. Für die Pferde gab es Knäckebrot. Danach wurde die Gruppe in eine “langsame” und eine “schnelle” Hälfte aufgeteilt. Als Anfänger sollte ich in der langsamen Gruppe bleiben, aber mein Pferd wollte unbedingt bei der schnellen Gruppe (zuerst weitergeritten) dabei sein. Nur mit kräftigen Zerren ließ es sich zum Warten überreden.

Auf dem Rückweg, überwiegend bergab, hatte man einen schönen Überblick über die Umgebung, trotz des leichten Regens, der dann einsetzte. Zurück am Stall mussten die Pferde versorgt, Zaumzeug abgemacht, gereinigt und ins Lager gebracht werden. Mit dem Wetter hatten wir insgesamt Glück, erst auf der Rückfahrt setzte der Wolkenbruch ein.

Insgesamt ein schöner Ausflug, kann ich jedem Schweden-Touristen wärmstens empfehlen.

Unten die Karte zeigt meinen GPS-Trace von der Reittour. Leider habe ich das Gerät erst ab der Rast eingeschaltet, daher fehlt die erste Tourhälfte.

Kyrekvarn (medium scale, Västra Götaland, Skövde and Jönköping)

Kyrekvarn (medium scale, Västra Götaland, Skövde and Jönköping)

Natürlich dürfen die obligatorischen Fotos nicht fehlen. Leider sind nicht alle Fotos auf Grund der wackligen und dunklen Bedingungen scharf geworden.

Auf einem Pferd (1)Neben einem Pferd (1)Auf einem Pferd (2)Auf einem Pferd (3)Neben einem Pferd (2)

Written by Thomas Fischer

October 25, 2009 at 16:29

Posted in Schweden

Tagged with , , ,

Waltag

leave a comment »

Waltag

Aus aktuellem Anlass möchte ich auf den Wahltag am kommenden Sonntag hinweisen. Wer noch nicht so wie ich per Briefwahl abgestimmt hat, kann also noch dem großen Moment des Kreuzchen-machens entgegenfiebern.

Wer sich noch nicht sicher ist, was er wählen soll, sollte sich in der Parteienlandschaft außerhalb der “großen” Parteien umschauen. Bei mehr als 10 weiteren Parteien für die Zweistimme sollte sich eigentlich für jeden etwas finden. Gerade für computer-affine Bürger hat sich in den letzten Monaten eine Alternative entwickelt. Stimmen für kleine Parteien sind übrigens keine verschenkten Stimmen, da Parteien pro erhaltene Stimme Geld vom Staat bekommen können.

Hilfe bei der Entscheidungsfindung bietet übrigens die Bundeszentrale für politische Bildung (kennen einige von uns sicher noch von den Heftchen aus dem Gemeinschaftskundeunterricht) mit ihrem Wahl-O-Mat.

Tip: Wenn keiner der Kandidaten der Erststimme zusagt (insbesondere keiner der beiden großen Blockparteien), kann die Erststimme auch getrennt von der Zweitstimme ungültig gemacht werden (z.B. durch Durchstreichen).

Written by Thomas Fischer

September 22, 2009 at 20:02

Posted in Society

Tagged with , , ,

Automatic AdBlock filter list updates in Konqueror

with 3 comments

As a KDE user, Konqueror is my favorite browser. It offers smooth integration into KDE, both in looks and features (e.g. using the Okular part to view PDFs). Its rendering engine is so good that it was forked into WebKit used in Apple’s Safari and Qt. One aspect Konqueror lacks in comparison to Firefox, though, is the support of plugins/addons of all kinds to add more features to the browser. There is a set of security and privacy enhancing plugins for Firefox I use myself and recommend to others. One of them is AdBlock Plus which uses a well-maintained list of URLs to block if you want to experience the net with less annoyance.

On the other side, Konqueror has a similar adblocking functionality built-in since KDE 3.5 (late 2005). In the configuration dialog, users can add fragments or regular expressions of URLs to be blocked. Maintaining such a list yourself is quite cumbersome, especially if you have accounts on several computers. At least since March 2007 there has been a feature request in KDE’s bug tracking system to add an automatic updater to Konqueror’s ad-filtering.

Last weekend, I started to scratch the itch and implemented an automatic filter list updater. Luckily, the internal format of AdBlock entries in Konqueror matches the one use by AdBlock Plus, except that some advanced features are not (yet) supported. Based on the then-current KDE 4.2.4 code I made changes to both kdelibs and kdebase. The former one contains the KHTML component including the actual filter, the latter contains the code for Konqueror’s settings GUI.

The changes I made to kdelibs work as follows: Read the khtmlrc configuration file to get a list of filter files following the format used by AdBlock Plus. My example configuration file contains several lists from easylist.adblock.org. The filter list files are downloaded and cached if no local copy is available or if it is outdated. Each filter list file is loaded and added to Konqueror’s current filter list each time the browser is started. The user-configured filter list is not modified, as the changes occur in memory only.

If you edit your khtmlrc manually to add new filter lists, this works already fine without GUI. For a better usability experience, I modified Konqueror’s settings dialog so that users can select from a list of preconfigured filter lists (currently, all lists from EasyList) which to actually use. Additionally, the time interval to refresh the lists can be configured.

Manual filter in Konqueror's AdBlockAutomatic filter in Konqueror's AdBlock

I refrained from adding an option to add, modify or delete list entries in the GUI. This is simply for two reasons: (1) Users may tend to enter filter lists that do not follow the format (e.g. from other adblocking filter sites) and (2) the list of available filter lists does not change that often that it cannot be changed in the next monthly update of KDE. If users are eager to add more lists not officially approved, they can still edit their configuration files manually.

All patches and an example configuration file are available from bug report 143495 in KDE’s bug tracking system. If you have constructive suggestions, please add you comments to the bug report (do not post comments in this blog, that won’t help). To support the patch in getting approved and added to the official code base, vote for the bug (login required).

Written by Thomas Fischer

August 5, 2009 at 22:08

Posted in KDE, Linux

Tagged with , ,

Mittsommer in Schweden

leave a comment »

Am vergangenen Wochenende war Mittsommer hier in Schweden. Anders als in Deutschland hat Mittsommer (schwed. Midsommar) hier Feiertagscharakter, was man spätestens daran merkt, daß Geschäfte, die eigentlich immer offen haben*, plötzlich erst später aufmachen.

Nun, wir haben die Gelegenheit genutzt, eine kleine Nachtwanderung auf den Hausberg Billingen zu machen.
Die drei folgenden Bilder zeigen den gleichen See (fragt mich nicht nach dem Namen), wobei die dunklen von Norden nach Süden und das helle Bild von Süden nach Norden jeweils gegen Mitternacht aufgenommen wurden. Der Nebel deutet an, daß es gar nicht trocken-sommerlich warm war…

Midsommar auf Billingen

Midsommar auf Billingen


Midsommar auf Billingen

Midsommar auf Billingen


Midsommar auf Billingen

Midsommar auf Billingen

Von besagtem Billingen aus hat man auch eine schöne Sicht auf die Stadt Skövde (wobei es auf dem Bild etwas heller aussieht, als es wirklich war):

Midsommar: Blick auf Skövde

Midsommar: Blick auf Skövde

Mit diesen Bildern gehe ich in den Sommerurlaub und wünsche allen ein schönes Mittsommerfest! :-)

* Anders als in Deutschland üblich verkaufen Lebensmittelgeschäfte, die sonntags offen haben, normalerweise kein Benzin.

Written by Thomas Fischer

June 22, 2009 at 22:02

Posted in Schweden, Skövde

Drawing GPS Traces on Map Tiles from OpenStreetMap

with 4 comments

Ever wondered how to show your GPS traces to non-techie friends? This article may be the answer to your question.

Last weekend, I had the problem of visualizing a GPS trace to show a friend where I had been. Sending a .gpx file may be an answer to this question, but for someone not related to this whole map-making voodoo this file won’t help.

Well, given that a world map rendered as .png files is freely available from the OpenStreetMap project, isn’t there a way to draw GPS tracks on those images? The OpenStreetMap project allows you to download map tiles of size 256×256 pixel. To access those tiles (and to know which tile), you have to calculate the tile number depending on latitute, longitude, and zoom level. Using the coordinates from a .gpx file, all neccessary tiles can be retrieved and glued together to your own map. On this map, the tour as described by the .gpx file can be drawn.

Script

To simplify this process, I wrote a Perl script, which takes one or several .gpx files as input and generates a PNG image containing the map tiles and the GPS tracks as colored lines.

The script is available for download, released under the GPL version 3 or any later version.

The script’s usage is quite simle. Run

perl gpx2png.pl GPSTRACK.gpx

to generate a file called map.png which contains the track in a PNG file.

The output can be controlled by setting command line options:
-o FILENAME: Output filename of the image.
-z N: Zoom level, where N is a number between 1 (world) and 16 (most details) or “auto” (automatically determines a reasonable zoom level, default).
More command line options are shown when running the script with -h.

If you are familiar with Perl, you can change even more default settings (e.g. colors) at the start of the Perl script.
Perl hackers are welcome to send bug reports (I’m sure there are bugs) and suggestions for improvements.

Example

Below example visualizes two GPS tracks from Skara region (randomly selected) using the script’s default settings:

perl gpx2png.pl -o skara-default.png 369116.gpx 369119.gpx
Visualization of two GPS tracks close to Skara, Sweden

Visualization of two GPS tracks close to Skara, Sweden

Using custom settings such as done by running

perl gpx2png.pl -z 7 -o skara-zoom7.png 369116.gpx 369119.gpx

results in this image:

Two GPS tracks in the Skara region with zoom level 7

Two GPS tracks in the Skara region with zoom level 7

For reference, see how the original map looks like.

Update 20090623 I uploaded a new version which is more configurable and draws waypoints as small circles on the map.

Update 20090709 The new version improves the projection of coordinates on tile images (suggested by Pedja); tile sources can be selected via command line.

Written by Thomas Fischer

May 4, 2009 at 21:33

Posted in openstreetmap

Tagged with , ,