Archive for the ‘Gadgets’ Category

When MoNav learned to speak

Tuesday, December 20th, 2011

A couple of months ago I opened a branch named »ui-ng« in MoNav‘s repository to develop a new user interface. Meanwhile this branch became a playground for several hacks, and some of them are just spikes to check out whether some ideas work or not.

I denied to work on speech output this spring, as I knew this would become a rather lengthy task. But it was obvious that I won’t resist the temptation during the cold and dark winter months. So I added the first code to generate spoken turn instructions recently. It is an ugly hack, just to determine what was possible. The code as found in the »ui-ng« repo works, well, at least a bit. The instructions are far away from being useful, except for lonesome crossings or roundabouts without other crossings nearby.

I’m using prerecorded samples for now, as the current open source speech synthesis systems did not show the results I desired. OTOH, this means I cannot generate instructions with dynamic contents like distances or street names. Additionally, those samples currently are included in the application binary, which will pollute the memory of handset devices as soon I’ll add further localized samples (currently speech is available in german and english language only).

The main issue is that MoNav recalculates the route each time a GPS position update is received – which means each second on the N900. As the GPS position always is a bit inaccurate, MoNav will speak »Please turn right« when you pass, for example, a gas station and the GPS position is off the road by a couple of meters.

As a consequence, I’ve just written some code that detects whether the vehicle is still “on track”. The route only gets recalculated in case the vehicle left it for more than x meters. This makes the route much more persistent and will cause far less headache than the previous approach. As this happened just a couple of minutes ago, the code is not in the repo yet.

There’s still a lot of work to do, and I’m curious whether I’ll stay motivated enough to do all of the work ahead. On the other hand it’s just plain fun to explore the secrets of a usable routing application.

So stay tuned. The next week(s) will show whether I’ll »head straightforward« :) .

Street Name Rendering in MoNav

Wednesday, November 23rd, 2011
MoNav Street Name Rendering in Kandel

MoNav Street Name Rendering in Kandel

Thanks to the work of James Hollingshead, MoNav now provides street name rendering at high zoom levels. This required a change in the map file format, though, so the currently available maps (which admittedly are rather dated) won’t work with binaries built from the current tip of revision control.

The new code is already available for two months now, but I hadn’t had the time to check it out. Today I got the client to compile on Max OS X 10.7.2 (aka Lion). I did not get the map preprocessor compiled, neither on Lion nor on the server, due to missing mapnik dependencies, but I got it compiled on my local Linux box.

The above screenshot shows the inner city of Kandel in Rhineland-Palatinate. I usually use this state for test runs for creating maps, as its file size is acceptable for my desktop machine.

I’m quite grateful that James did the work of creating the first vector renderer for MoNav, and that he now also added street name rendering. The next step is to get the preprocessor compiled on the server, though this might take a little while as the map processing script needs adjustments too. For Maemo on the N900, an updated binary is already available via the repo. Before you install it, ensure you have updated map data available. Otherwise you will end with an updated binary which cannot load the map data present on the device – a rather useless constellation from a user’s point of view.

Thanks a bunch, James.

Replacing a Mac Mini by a Mac Mini

Sunday, November 20th, 2011

After Apple switched to Intel CPU based machines a couple of years ago, I bought the smallest model of the Minis available:

I didn’t use it much. It mainly served me to create binaries of some cross platform applications I was working on. However, it’s CPU speed and amount of RAM are a bit limited for nowadays requirements. Additionally some contemporary applications denied to run on Tiger, and updating the OS on the feeble machine was not an option. Thus I bought a more recent machine powered by Lion s/h:

Its base size is more than the one of its predecessor:

I’m glad that Apple dropped the optical drive – I didn’t use one for years, and even if, only to convert some of my audio discs to ogg files. As a consequence, the new Mini is a bit thinner than the older model. Here’s its connectivity:

The user can easily access the RAM slots just by turning and removing the bottom of the device:

The overall operation feels much smoother now, and it operates quite well on the recently purchased Dell display. I already ported all of my data from my Dell Notebook to the Mini, as it will serve me as my primary desktop machine. I’m pretty curious whether I will find a replacement for any application I was used to on the Linux notebook. Of course I will :) .

Replacing the last CRT

Friday, November 18th, 2011

Overview

I was still using a CRT connected to my Mac Mini, as I’m rarely using it. As this will change soon, I needed a replacement. Unfortunately the usual consumer devices as found in typical shops are often glossy – if not the panel itself, at least the cabinet. The closest to an acceptable compromise were some of the LG Flatrons (e.g. the E2441V), but a small stripe around the display and the stand still are as glossy as a grand piano.

I left the consumer displays alone and read the reviews of two Dell devices. The U2412M 24″ display provides an aspect ratio of 16:10 and a resolution of 1.920 x 1.200 pixels (in-depth german language review), whereas the U2312HM 23″ display provides a ratio of 16:9 and 1.920 x 1.080 pixels (in-depth german language review) respectively.

I wanted to buy the U2412M, but I found an U2312HM s/h at a very attractive price tag so I could not resist buying it. It arrived two days ago.

Package Content

The package contains an optical disc with drivers and the like, a quick setup guide, a USB cable, a power chord, and video cables, both VGA and DVI:

The add-ons

The add-ons

Panel and Stand

The main content is the panel and its stand, of course. The stand just snaps into the back of the panel, while no tooling is required. The stand also contains a cutout to bundle the cables. A simple but useful detail:

The panel and the stand

The panel and the stand

Connectivity

The panel provides two power inputs, DisplayPort in, a DVI input, a VGA input (but no HDMI input). The panel can act as a USB hub also, thus it provides one USB-Upstream and two USB-Downstream jacks:

The Connectivity

The Connectivity

Two further USB inputs are placed on the left hand side of the panel and are very handy to connect USB thumb drives or handsets.

Operation

The device can be adjusted to the desired position in a number of ways. The user can rotate the stand and turn the display in an upright position. It can be moved up and down, and tilted. With its completely matte and unobtrusive surface, it’s a perfect display for my needs:

Connected

Connected

Conclusion

I’m glad I bought it – it’s just a great device. As the resolution addict I am, only one wish came up since I set it up – even more pixels, please :) .

I’m not a fan of the 16:9 ratio often found on computer displays nowadays. My previous notebook had a 4:3 resolution of 1400:1050 pixels, and my current notebook provides a 16:10 resolution of 1680:1050 pixels. Now I have even more pixels in width, but still only 1080 pixels in height. Heck, a 4:3 display of 1920:1440 pixels in an upright position would be great :) .

40th Birthday Hiking Trip

Tuesday, November 1st, 2011

Since my 40th birthday passed by recently, I invited a couple of friends for a 20 kilometers black forest hiking trip. It led us from Forbach over the Rote Lache pass to Baden-Baden/Oberbeuern, where we took the bus to the station to get back to Karlsruhe.

The weather was warm and sunny, reminding us of the indian summer. Between Forbach and Bermersbach we followed the Ziegenpfad (Goat’s path), which is often used by families with children:

Obviously the inhabitants of the black forest take hunting very serious:

The Holzschuhrank is a locality and a shelter with a fountain and sleeping facilities, sited at a crossing:

Fortunately there were lots of details along our way which were missing in the OSM database, so all kinds of gadgets (such as Garmins, N900s etc.) came to play:

That’s deer ragout with croquettes and brussels sprouts. No, I didn’t take a picture of everyone’s dishes :) :

As we were late and the daylight saving time ended last sunday, it got dark while descending to Oberbeuern. At least the male participants appreciated the displays of the bus booting Linux 2.x :) :

Here’s the trip:

Scott Trail Boa Cycling Shoe

Wednesday, August 17th, 2011
Scott Trail Boa

Scott Trail Boa

We intend to completely map a cycleway of about 160 kilometers for openstreetmap.org as a single day trip. That’s quite a distance, as the usual trips are no longer than 80 kilometers. Since a german magazine reviewed a couple of cycling shoes (available online as a portable document format download), I’m lurking around. Finally I found the Scott Trail Boa online at the Amazon marketplace. I had good luck, as the dealer offered the size I needed for 90€ “only”.

(more…)

Nokia N810 Mappingset abzugeben

Sunday, July 3rd, 2011

Das N810 hatte ich mir fast ausschließlich für Mappingaktivitäten geholt. Einerseits steht mit Maemo Mapper eine wirklich gute App zur Verfügung, um mit Karten von OSM (und anderen Quellen) auf Wander- und Radtouren zu gehen, andererseits steht mit osm2go ein Programm zur Verfügung, mittels dessen man live vor Ort Daten für Openstreetmap erfassen kann. Das Hochladen erfolgt anschießend direkt vom Gerät aus, sobald man ein Funknetz (WLAN) zur Verfügung hat. Somit entfällt das Nachbearbeiten der Daten am heimischen Rechner. Ich habe mit dem Gerät Wald- und Wanderwege genauso erfasst wie Hausnummern und halbe Ortschaften wie Oberkaufungen. Sehr schön ist das hochauflösende Display, das man auch im Freien gut ablesen kann – um Kartenmaterial anzusehen, kann man gar nicht genug Pixel zur Verfügung haben.

(more…)

MoNav User Interface now available in German Language

Thursday, May 12th, 2011

The last two days I’ve worked on a first translation system for MoNav. Thanks to Qt4 it was just simple, and admittedly I copied over some lines of code from one of my other projects, Gebabbel.

MoNav checks the user’s system for a locale string, searches for a matching translation file, and if available, it gets loaded. Currently, the translation files are included in the binary, so we do not need to care about install paths and the like. As soon we have some translations available, they will be removed from the binary and installed as separate files to save some memory.

This also means we are in desparate need of translators for the upcoming releases. Do you want MoNav to appear in your mother tongue, maybe Russian, Chinese, or Bamanankan? As no programming skills are required to create a translation, do not hesitate to contact us.

Can MoNav do bike routing from Karlsruhe to Strasbourg?

Monday, April 18th, 2011
The minster of Strasbourg, with its unfinished right tower

The minster of Strasbourg, with its unfinished right tower

What a great april, at least concerning the weather! I decided to visit Strasbourg, the great medieval city where I haven’t been for over a year or so.

(more…)

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 :) .

4 Geeks meeting in Renningen, desperately searching for a Restaurant

Monday, September 27th, 2010
Computer geek (openclipart.org, mlampret, PD)

Computer geek (openclipart.org, mlampret, PD)

Last Thursday likely was the last warm end summer day. Today was a cool and rainy day, and I used it to meet a couple of Linux audio developers, old friends of mine, in Renningen. We went there by car, and my friend used a Becker navigation device which provided spoken turn by turn directions. Heck, this device was convenient!

(more…)

Black Forest up- and downhill mapping

Saturday, September 11th, 2010
The valley of the Murg above Weisenbach

The valley of the Murg above Weisenbach

After a rainy week we got some marvellous sunny weekend days. Yesterday I did some after work mapping in the woods near Neuburg and Hagenbach. Today, I could not resist to abuse the recently purchased bike as a “mountain bike” anew. I chose the Rote Lache pass again as a destination, as I found an alternative route, much better than the one I chose the last time.

(more…)

Gear transmission ratios

Tuesday, September 7th, 2010

After testing the Gudereit LC-R and the across the Black Forest, I know I need some more power for steep inclines. A friend of mine politely checked the gear ratios of his bikes, both with 27 gear derailleurs, a trekking bike and a mountain bike.

The minimum and maximum transmission ratios of the Rohloff Speedhub are 0.279 (1st gear) and 1.467 (14th gear). The chainring of the LC-R counts 44, the pinion 17 teeth, resulting in a ratio of 2.6. This ratio multiplied with the ratio of the chosen gear results in the total ratio.

According to some web resources, the Rohloff also can be used with alternative chainring/pinion ratios like 42/17 (2.47), 32/13 (2.462), 36/15 (2.4) and 38/16 (2.375). The following table lists the ratios of both of my friend’s bikes, the current and the possible LC-R ratios:

Minimum Ratio
(1st gear)
Maximum Ratio
(14th gear)
Gear Range
Mountain Bike 0.65 4 615%
Trekking Bike 0.68 4 588%
Gudereit LC-R 44/17 0.72 3.79 526%
Gudereit LC-R 42/17 0.69 3.6 526%
Gudereit LC-R 32/13 0.69 3.61 526%
Gudereit LC-R 36/15 0.67 3.52 526%
Gudereit LC-R 38/16 0.66 3.48 526%

The current ratio is not bad per se. Instead it IMO is the optimal solution for the bike’s main purpose – travelling. But as I’m abusing it as a leisure bike in hilly regions, I’ll probably replace the 44 teeth chainring by a 42 teeth chainring, which seems to be a good compromise between power and speed.

For alternative hubs which are neither derailleurs nor Rohloffs, see Pinion and Hettlage (also see the german tongue technology review article at heise online).

Black Forest uphill test baffled

Sunday, September 5th, 2010
Steep Black Forest incline

Steep Black Forest incline

Today I did a trip similarly to the one I did on thursday last week. I wanted to check whether my uphill performance has improved and map some further tracks downhill. Unfortunately I did count the chickens before they were hatched.

(more…)

3rd Black Forest uphill test of the Gudereit LCR

Saturday, September 4th, 2010
Ottenhöfen, Black Forest

Ottenhöfen, Black Forest

Fortunately I had a couple of days off, the gods of weather did a good job and there are still plenty of tracks to be mapped across the Black Forest area. Obviously I try to torture the recently purchased Rohloff Speedhub as much as I can. Today I took the train to Achern (145m), headed towards Ottenhöfen (327m), Ruhestein (915m), Obertal (about 600m) and Baiersbronn (about 500m).

(more…)

2nd Black Forest test of the Rohloff Speedhub

Thursday, September 2nd, 2010
The Ruhestein hill, used for skiing during the winter months

The Ruhestein hill, used for skiing during the winter months

In the late morning hours the temperature in Karlsruhe was about 18°C. Usually the Ruhestein is about 6°C less, but surprisingly its webcam displayed 18° as well, so I immediately grabbed the bike and went to the station, heading towards Baiersbronn, Black Forest (about 500m).

(more…)

Wet August, fresh fungi

Tuesday, August 31st, 2010

Due to the rainy August, it’s fungi time. Here is yesterday’s catch. All pictures have been taken using the Nokia N900 mobile computer. The quality is not comparable to pictures taken with a dedicated camera, but frankly I’m quite impressed of what one can achieve with the N900. I hope you enjoy.

Caterpillars

Caterpillars

(more…)

Gudereit LC-R – SCNR

Monday, August 23rd, 2010
Heavy Weather brewing near Wissembourg

Heavy Weather brewing near Wissembourg

Since it was obvious that I need a more reliable bike, I’m looking for the right device. A friend once sent me a PDF of a very attractive gadget. I also considered other options, but the more I was looking for alternatives, the more I wanted exactly this one.

(more…)

Since Openstreetmap ruined my bike…

Sunday, August 22nd, 2010
Bergamont Satelite

Bergamont Satelite

Back in 2006, I bought a Bergamont Satelite 8 bike (about 600€), mainly to get to work. Shortly after that, I detected that biking is fun and bought a Garmin eTrex Venture Cx (about 300€), together with routable City Navigator Europe map data (about 200€). It just took a couple of days until I understood that the map material was made for car routing, not for outdoor activities. A lot of minor roads for biking were missing, and setting the device to do bike routing just did car routing, except that it omitted highway types like motorways. But heck, I wanted to know the shortest possible biking trail from my home to France.

(more…)

OS-Install-o-mania Parts 1, 2 and 3

Monday, May 31st, 2010
Unintentionally trashing the Vista installation on a Dell computer

Unintentionally trashing the Vista installation on a Dell computer

One decade back, I was installing operating systems quite often. Win 98 was broken every now and then, and Linux was developing very quickly.

Meanwhile I’m very reluctant in updating operating systems. It just takes too much time to set up the system, to reinstall all required applications and to do all the configuration work. Or the other way around: It’s just a waste of time.

However, there are circumstances where your machines need some healing hands.

#1: N900 Upgrade

This week, a much anticipated update for the Nokia N900 was finally released. I was eagerly waiting for it, as I hoped that it would erase »The Big Bug«. The update was advertised as an »over-the-air«-update, installable via a wireless network connection. Unfortunately, the device didn’t offer the update on my machine. After waiting for a couple of days, I got suspicious and searched the web for the reasons.

Obviously the device performs some checks first, and in case certain circumstances occur, it denies to offer the update. The reason might be that I enabled an additional repository and installed (only) a couple of extra software packages. Further, the N900′s operating system is not installed to the 32GB flash memory. Instead, it lives in some wee small extra partition of about 200MB. I’ve never understood why it is designed this way and why the space is that limited. Unfortunately, the Debian-like operating system stores each package in a folder in this small partition, further reducing its size.

So I ssh’ed into the phone and tried to install the update using apt-get. It told me that it wants to download about 100MB of packages and that there was not enough space left. I created a folder on the 32GB flash drive and symlinked to it. Now the update packages were downloaded and the update went fine – halfways. I saw some warnings during the update, and finally it stopped.

So I did it the hard – by reflashing the device. I downloaded the current firmware image and a GUI tool for the Mac. Unfortunately this tool failed to complete the flashing process so the device was bricked. I tried again using my Linux box and everything went fine now. As all personal data lives on the 32GB storage which was not touched by the flashing process, I just needed to reinstall some additional software packages (mainly those for mapping) and was back in business.

#2: Reinstalling Vista from a recovery CD

The backlight of the display on my Dell notebook was broken (it appeared as a defective contact, as the backlight switched off every now and then). I’ve a service contract and hoped they would replace it as soon as possbile (»next business day«). Surprisingly, there was some (bi-daily) mail exchange where they told me what to do – one bit of information per message.

First they asked me to install some BIOS and driver updates, though I wrote in my initial message that I’m running Linux on the machine and that everything looks like a hardware defect. I wanted to do them the favour and booted Vista from the (seldom used) NTFS partition. After downloading and installing the driver updates, Vista prefered to show a blue screen at each attempt to boot it. Doh.

Dell further asked me to run a diagnostics tool before booting the operating system. This led me nowhere, as the backlight of the display always switched off while the tool was running.

Next they offered to catch the device and to repair it off-site. The device would be unavailable for up to two weeks. Hey guys, there was a reason why I spent the extra bucks for the on-site service.

Finally, after almost two weeks, a technician dropped by and exchanged the display. Heck, I didn’t remember how bright the display once was :) .

I do not really rely on the Vista installation, but I boot it every now and then to compile and test some code of my own. Due to some file system errors, problems with KDE after upgrading Ubuntu, the broken Vista installation and the fact, that the 15 GB partition was too small for Vista (yes, Vista needs at least 10GB for its installation, 2GB for a swap and 2GB for a hibernation file), I decided to set up the complete machine anew.

I backed up my home directory and used the Kubuntu installation disk to repartition the hard drive.

The Vista installation went halfway straightforward thanks to the Dell recovery CD. But later on I got stuck as there was no driver installed for the wireless network adapter. I tried to install it from an additional CD that came with the device, but to no avail. I finally downloaded some drivers from the Dell page and got it working, but this still was a challenge as it was not obvious which file to download and install. This was surprising as I passed the service tag of the device to the online support system.

Finally Vista insisted to download and install plenty of huge updates. I read »Usability Engineering kompakt« meanwhile :) .

#3: Installing Kubuntu 10.04 LTS

This one was simple. Insert the CD, enter some data, select the right partitions for installation and let the installer alone for a couple of minutes. After booting the system, plug in the USB hard drive containing the backup of your home directory and copy the files back to the hard drive. Log in and feel comfortable.

Conclusion

It was good luck that it was a rainy sunday. I really hate those bread- and senseless installation orgies. I hope the machine will now run until it gets replaced.