Updateproblem auf TomTom GO 730 (mal wieder) – diesmal aus Speichermangel

Letzte Woche war es wieder so weit: TomTom verkündete per E-Mail voller Stolz, dass nun die neuen Karten zum Update bereit stünden. Ich weiß nicht, wie es Ihnen geht, aber ich persönlich erwarte als Mac-Anweder nach meinen bisherigen Erfahrungen mit der TomTom-Software schon nicht mehr, dass es “einfach so” funktioniert. Meine Erwartungen wurden nicht enttäuscht:

Nach dem Herunterladen der knapp 1,9 GB Kartenmaterial für “Western and Central Europe” brach die Aktualisierung des Gerätes mit einem Fehler ab “… error writing cnames.dat”, wobei der Dateiname vermutlich an der Stelle eher Zufall ist. Im Ergebnis lässt sich die neue Karte nicht nutzen; in meinem Fall meldete das GO, dass die Karte erst aktiviert werden müsse. Als Abo-Kunde dachte ich da nur: “Ja, nee – is klar.” Die Untersuchung des Speicherinhaltes offenbarte dann eine Restkapazität von 0 Bytes. Das erklärte Einiges, wenn auch nicht die Fehlermeldung mit der Aktivierung, aber denen glaube ich ohnehin nicht mehr. Irgendwo auf den TomTom-Seiten habe ich auch gelesen, dass der Kartenbestand für 2 GB “optimiert” sei, was eine schnellere Routenfindung ermögliche. Jeder Datenheini weiß, dass sich Zeitersparnis meistens nur mit mehr Platz erkaufen lässt, mit anderen Worten: Die 2 GB werden auch gebraucht.

Die Recherche nach den Platzfressern auf der Karte brachte dann Folgendes zu Tage:

  • Spotlight hatte unter der Wurzel ein Verzeichnis mit mehreren MB Inhalt zur Indizierung angelegt, weil ich vergessen hatte in den Systemeinstellungen das Volume “INTERNAL” (so der Name nach Anmeldung auf meinem Rechner) von der Indizierung auszunehmen. Das habe ich dann sofort nachgeholt und in einem Terminalfenster mit /bin/rm -rf .Spotlight*das Verzeichnis gelöscht.
  • À propos Löschen: Verträumterweise habe ich irgendwann einmal mit dem Finder Dateien auf dem GO gelöscht. Das Ergebnis war ein Verzeichnis .Trashes mit den vermeintlich gelöschten Dateien. Also weg damit, und zwar in der oben beschriebenen Weise aus dem Terminal heraus.

Um das System in einem definierten Zustand zu haben, hatte ich vor den Löschaktionen erst einmal alles gelöscht, dann mein letztes manuelles Backup (eines, das mit cp -a /Volumes/INTTERNAL/* "Zielverzeichnis" entstanden ist) zurück gespielt.

Um diese Mac-Besonderheiten bereinigt sollte das Update jetzt ja funktionieren – dachte ich. Fail. Der Fehler tauchte wieder auf, die Karte war wieder voll. Erst als ich auch noch die mitgelieferten MP3-Dateien entsorgt und die Lösch- und Rückspielprozedur wiederholt hatte, lief das Update durch. Ersatzweise hätte ich vielleicht auch meine POI-Daten wegwerfen können, aber die sind mir wichtiger als die Muzak-Dreingabe, die sowieso nicht nach meinem Geschmack war.

Eine Beobachtung des erst anwachsenden und wieder leicht abnehmenden Platzbedarfs während der Installation durch TomTom HOME lässt mich vermuten, dass es die Archivdateien auf dem Gerät auspackt, was natürlich zwischendurch mehr Platz beansprucht als der Datenbestand nach abgeschlossener Installation. Inzwischen erwartungsgemäß waren meine Favoriten sowie der Heimatstandort und weitere Einstellungen nach dem Update gelöscht, aber das wundert mich bei der vorliegenden Softwarequalität schon lange nicht mehr.

Fazit: Wer tatsächlich seinen GO 730 in der angebotenen Weise nutzt und ihn mit weiteren Daten befüllt als “nur” dem Kartenmaterial, insbesondere wenn er/sie die Daten für West- und Zentraleuropa erworben hat, sollte sich dringend eine größere Speicherkarte kaufen. Ich werde das wohl tun müssen.

Epilog: Den TMC-Empfang werde ich erst morgen ausprobieren können (siehe den letzten Eintrag aus dieser Reihe); die zugehörigen Dateien sehen bis jetzt jedenfalls ganz gesund aus.

Gute Fahrt!

Veröffentlicht unter Mobile Navigation | Verschlagwortet mit , | 2 Kommentare

Problem mit TMC-Empfang auf TomTom GO730 nach Update beheben

Nach einem Update auf das neueste Kartenmaterial (West- und Zentraleuropa) auf dem TomTom GO730 am 10.09.09 hatte ich folgendes Symptom: Der TMC-Empfänger wurde zwar erkannt, aber es wurde nichts empfangen. Der Status in den Verkehrsinfo-Einstellungen meldete dauerhaft, dass nach einem Radiosender gesucht werde.

Ein freundlicher Mitarbeiter des lokalen Elektro-Großmarktes (der mit den vielen Ringen) äußerte, dass ihm kein Zusammenhang mit dem Update bekannt sei und riet mir, das Gerät einzuschicken.

Unser aller Internet war aber mal wieder schlauer als der Einzelne, und deshalb stieß ich dann auf die Lösung anhand eines Forum-Postings: Bei der Installation des Kartenmaterials wurden auf dem GO im Verzeichnis Western_and_Central_Europe_2GB die Dateien tmccodes.dat und traffic.dat auf 0 Bytes gekürzt. Sollte das bei Ihnen nicht so sein, ist dieser Artikel vermutlich nicht die Lösung Ihres Problems. Da die Dateien im heruntergeladenen ZIP-Archiv des Kartenmaterials aber vollständig sind, ist das Vorgehen zur Behebung wie folgt:

  1. Das TomTom mit dem Rechner als Laufwerk verbinden.
  2. Vorsichtshalber ein manuelles Backup (Kopie aller Dateien und Verzeichnisse aus dem Wurzelverzeichnis) anlegen.
  3. Im Verzeichnis Western_and_Central_Europe_2GB auf dem GO die Dateien tmccodes.dat und traffic.dat löschen.
  4. Auf dem Rechner mit dem Download-Material im TomTom-Verzeichnis (~/Documents/TomTom unter Mac OS, C:\Dokumente und Einstellungen\TomTom unter Win XP) befindet sich im Unterverzeichnis HOME/Download/complete/map/West-_und_Mitteleuropa_2GB-1 (bzw. ohne die “-1″ oder mit einer anderen Zahl, je nachdem ob das Ihr erster oder n-ter Download des Materials war) die Datei Western_and_Central_Europe_2GB.zip. Entpacken Sie diese in ein anderes Verzeichnis.
  5. Kopieren Sie aus diesem Verzeichnis die Dateien tmccodes.dat und traffic.dat in das Verzeichnis aus Schritt 3 auf den GO, aus welchem Sie die Dateien gelöscht haben.
  6. Trennen Sie den GO sicher vom Computer (Auswerfen!) und starten Sie ihn neu. Auf meinem Mac tut er das von selbst.

Der TMC-Empfang sollte wieder gehen. So war es jedenfalls bei mir.

Angesichts der Tatsache, dass dies nicht das erste Mal war, dass ein Update Probleme verursachte, stellt sich abschließend nur die Frage, wann TomTom endlich seine Qualitätsprobleme in der Software-Verteilung in den Griff bekommen will.

Veröffentlicht unter Mobile Navigation | Verschlagwortet mit , | Hinterlasse einen Kommentar

Converting TiddlyWiki Syntax into DokuWiki Markup with TextMate

I like TiddlyWikis. They are my electronic counterpart of a notepad. All notes, thoughts and code snippets with the interface for editing and searching in one single file to be carried around and used everywhere, I have a web browser at hands. But after heavy usage during at least three years I had collected too much of them and encountered the drawbacks: orphanhood and redundancy. Dozens of chunks of information I could not remember the path to the TiddlyWiki file I have put them into, and some other notes in several TiddlyWikis partly doubled and partly scattered without a link between the pieces.

Hence it was time to clean up things and put together what was living in the virtual diaspora of my hard disks. My remedy of choice is DokuWiki, a wiki software with an active community and few requirements, because the storage is based on plain old text files. Shortly: It needs a running web server with a PHP installation. The main disadvantage: It is not as easy to move back and forth to memory gadgets as it is with TiddlyWikis.

Unfortunately the markup notations used by both wikis differ in quite a lot of the typographic idioms. First I edited some of the tiddlers (as the tidbits of content are called in a TiddlyWiki) manually to make them fit into DokuWiki’s markup grammar, just to get a feeling for the process and quickly let the programmer’s layziness in me take over. The result was a command for my favourite and on macs very popular text editor TextMate, written in Ruby:

#!/usr/bin/env ruby -w
# Tiddly2DokuWiki - Converting TiddliWiki markup into DokuWiki markup
# [03.03.09:ofi]
$KCODE = 'U'
# Method of simple simultaneous conversion taken from
# "Ruby Cookbook, Recipe 1.18"
class String
  def mgsub (key_value_pairs=[].freeze)
    regexp_fragments = key_value_pairs.collect { |k,v| k }
    gsub( Regexp.union( *regexp_fragments ) ) do |match|
      key_value_pairs.detect{ |k,v| k =~ match } [1]
    end
  end
end
def simple_convert (text)
  text.mgsub([
    [/''/, '**' ],  #bold
    [/^\*[^*]/, '  * '],  # unordered lists 1st level
    [/^\*\*[^*]/, '    * '],  # unordered lists 2nd level
    [/^\*\*\*[^*]/, '      * '],  # unordered lists 3rd level
    [/^#[^#]/, '  - '],  # ordered lists 1st level
    [/^##[^#]/, '    - '],  # ordered lists 2nd level
    [/^###[^#]/, '      - '], # ordered lists 3rd level
    [/\|\!/, '^ '],  # table header
    [/\|\|/, '| |'],  # empty cell to blank cell, because...
    [/\|\~/, '| '],  # row span not supported in DokuWiki, use blank
    [/^\{\{\{$/, '< code>'], [/^\}\}\}$/, '< /code>']  # code paragraphs
# ATTENTION!       ^----- these blanks -----^  have to be removed!!!
# They are here only not to screw up the code output within WordPress!
  ])
end

text = simple_convert( STDIN.read ) # simple substitutions

text.gsub!( /\~(\w+)/, '\1' )  # remove WikiWord escapes
text.gsub!( /--(.+?)--/, '< del>\1< /del>' )  # strike thru
# ATTENTION! these blanks -^-------^  have to be removed!!!
# They are here only not to screw up the code output within WordPress!
text.gsub!( /^\!\s*(\w.*)/, '===== \1 =====' )  # h1 --> h2
text.gsub!( /^\!\!\s*(\w.*)/, '==== \1 ====' )  # h2 --> h3
text.gsub!( /^\!\!\!\s*(\w.*)/, '=== \1 ===' )  # h3 --> h4
text.gsub!( /\[\[(.+?)\|(.+?)\]\]/, '[[\2|\1]]' ) # links with text
text.gsub!( /\{\{\{(.+?)\}\}\}/, '\'\'\1\'\'' )  # code inline literals
# now the "master piece": converting column spanning table cells:
text.gsub!(/\|((>\|)+)([^|]+)\|/) {|m| '|' +$3 + '|'*($1.length/2) + '|' }
print text

This code is to be saved as a new command with the options Input: “Selected Text” or “Document” and Output: “Replace Selected Text”, allowing you to choose between only converting the selected part of text or all of it when nothing is selected. As always you can assign a key for activation if you like, but more important: Don’t forget to remove the spaces after the opening angular brackets in the “code” and “del” tags as indicated in the source! I had to insert them to not confuse the WordPress markup.

Disclaimer: This code is provided as is. It may serve as a tool for the purpose described here but I deny any fitness of it for any kind of usage. If  you use it, you agree that I am not responsible for any consequences following of its use.

That said, it does work well for me, but has some weaknesses:

  • The conversion is stateless, meaning that it does not distinguish if a conversion takes place wihtin a “code” or a “text” section. Thus it will convert strings within code snippets as well.
  • Hard line breaks will not be converted to the DokuWiki pendants (double backslash before newline or whitespace) for the same reason.
  • Conversion rules for superscript and subscript are missing. If you need them you may take the rule for the “strike through” format as a template and roll your own.

To transfer the code between the textareas of a wiki page and TextMate I use the It’s All Text! add-on for Firefox, but copy and paste will do as well.

Definitely I will continue using TiddlyWikis, and with this command snippet I can do the housekeeping as long as I can keep track of all these tiddlers – hopefully.

Veröffentlicht unter IT (en) | Verschlagwortet mit , , | Hinterlasse einen Kommentar

Fixing the Broken Gem Update Chain on Mac OS X 10.5

After a long time when I had no chance working on rails projects I wanted to update Rails for diving into the changes and new features of the new 2.2 version. Because of Rails now needs gem version 1.3.x and I still had 1.1.0 running, I started a gem update:

$ sudo gem update --system
Updating RubyGems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Updating rubygems-update
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    could not find rubygems-update locally or in a repository

Oops. After reading some posts on the net that mainly covered the problem of gem erroneously stating that there is nothing to update, and which was not the case here, I stumpled upon a posting, which led me to the recipe described here (at least for my own further reference).

Working on Mac OS X 10.5.5 (at the time of writing) it goes like this:

  1. Download the rubygems-update gem of the desired target version, e. g. from http://gems.rubyforge.vm.bytemark.co.uk/gems/, to a directory of Your choice.
  2. In a Terminal window (or iTerm or whatever Your preferred shell CLI is) cd into the directory and issue the following commands:
  3. $ sudo gem install -l rubygems-update-1.3.1.gem
    # actual version's name of file You downloaded
  4. $ sudo update_rubygems
    # important!! (NOT gem update --system)
  5. Check version:
    $ gem --version
    1.3.1

Afterwards a “gem update” should behave as usual. Although described for the mentioned operating system this should work on Ubuntu Linux (and others using the sudo mechanism) as well.

Veröffentlicht unter IT (en) | Verschlagwortet mit , , | Hinterlasse einen Kommentar

PostgreSQL on Mac OS X 10.5 and Some Mysteries

To use my favourite open source database, I installed PostgreSQL version 8.2.5 from the source code on my mac. In doing so I followed these instructions, taking into account what suited best my personal preferences:

Both articles reflect the changes in Leopard concerning the runtime administration of system services:

  • The directory /etc/rc.d is now definetely deprecated. For starting and stopping system services launchd(8) and its controlling-facility launchtl(1) are the tools of choice.
  • The NetInfo database and its manager are history as well (at least as far as Leopard is concerned). Hence users and groups which are virtual and only of some system specific interest, and therefore should not show up on the login screen, have to be created and maintained in Leopard’s Open Directory with the dscl(1) command.

The second article offers a script for having PostgreSQL started automatically by launchd, but it doesn’t work for me: After rebooting the machine postmaster (the database server process) didn’t start again. The logfile said, that it could be running already because the lockfile postmaster.pid in PostgreSQL’s data directory was still there. I had it installed under /usr/local/pgsql with the subdirectory data therein. So I deleted the .pid file (via sudo), but postmaster did not start, this time complaining about insufficient rights in the directory. In fact as the user _postgres I was not allowed to create any file in the directory although the rights mask said “drwx——” as it should be with the directory belonging to user _postgres. Funny. Finally I worked around the problem by initializing a new data directory under /Users/Shared/PostgreSQL (and hence created a mixture of the two above mentioned recipes). Then postmaster could start again, but the problem remains that in case of a system shutdown the process seems not to be able to clean things up. Hence I wrote two simple scripts to start and stop PostgreSQL on demand (giving only the first here):
sudo -u _postgres pg_ctl -D /Users/Shared/PostgreSQL/data start
So, if someone could enlighten me, what went wrong – especially with the missing rights phenomenon, and on gracefully stopping system serivces by launchd, please do. I would appreciate it very much.

[Update]: Just after finishing the post, I found the following link in the first cited article’s comments: http://www2.russbrooks.com:8080/2007/11/4/ install-postgresql-on-mac-os-x-10-5-leopard which in turn includes a link to http://www.postgresqlformac.com/ (for those behind a firewall not allowing access to port 8080), offering an installer with a precompiled binary and taking the burden of installing from the sources.

Veröffentlicht unter IT (en) | Verschlagwortet mit , , , | Hinterlasse einen Kommentar

Integrating Ruby GetText with ActiveScaffold

About half a year ago I wrote a snippet of code to make the GetText package for the Ruby programming language to work with ActiveScaffold, a highly configurable dynamic editing facility for Ruby On Rails applications.

I published this as a contribution on ActiveScaffold’s project wiki. Since then there had been at least one supplement by another user. One day the wiki was not availabe, and the link structure changed afterwards and the wiki became read-only. I guess this was the final brake against comment spam, being a plague everywhere on the net by turning community features into an annoying mess of crap.

Today I decided to duplicate my former article here for backup reasons and for getting back the opportunity to have changes added by myself or others, paying the price of redundancy:
Weiterlesen

Veröffentlicht unter IT (en) | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar

Die Katze schnurrt wieder – wenn auch mit Schluckauf

Seit nunmehr Wochen läuft die erste Rundum-Überholung vom Leoparden auf meinem Gerät, und das Ensemble läuft nun auch deutlich harmonischer. Dennoch: Die Sicherheitslücken sind noch nicht ganz ausgeräumt und wichen in Teilen eher eine Re-Definition der Sicherheitsfrage als einer wirklichen Lösung, wie jedenfalls ich durch Vermissen der zugehörigen Seiten auf dem Apple-Support-Portal den Eindruck gewann. In der Gemeinde weiß man zu berichten, dass der Netzwerkzugriff auf externe Laufwerke am Air Port noch nicht wieder reibungslos funktioniert, wie überhaupt die Verbindung zu den WiFi-Büchsen noch durch sporadische Abbrüche geprägt zu sein scheint. Bisweilen verzichte ich auf das Netzlaufwerk, und der reine Netzwerkverkehr läuft hier zufrieden stellend.

Auch die Firma Guillemot (die mit der Hercules DJ Console) hat sich gemeldet und beschrieb, wie man die (fehlerhafte) Prüfroutine auf die OS-Version außer Kraft setzt. Schon geht’s.

Bleibt einzig noch das Geplänkel mit SWSoft. Denn wie schon im letzten Beitrag zum Thema beschrieben, funktioniert der neueste Update von Parallels Desktop nur mit der Version 3.0. Schlimmer noch: Erst nach dem elektronischen Erwerb des Updates auf die Version 3.0 durfte ich feststellen, dass Versionen unterschiedlicher Lokalisation nicht update-kompatibel sind. Vor dem Kauf war da nirgends ein Warnhinweis. Das zeigt mal wieder: Man sollte sich doch dringend vor einer Anschaffung in den Foren informieren. Die Rückabwicklung des Kaufs ging dann problemlos, aber einen Distributor, bei dem ich online die passende deutsche Version des Updates beziehen könnte, habe ich immer noch nicht. Hinweise nehme ich dankend entgegen.

Fazit: Im Apple-Kern läuft das Mac OS wieder rund. Wer die volle Air-Port-Funktionalität nutzen möchte/muss oder auf den Anschluss spezieller Hardware angewiesen ist, sollte immer noch mit dem Update warten. Bei neuen Erfahrungen zu weiteren Updates wird hier mehr zu lesen sein.

Veröffentlicht unter Allgemein | Verschlagwortet mit , | Hinterlasse einen Kommentar

Vorläufige "Warnung vor dem Leoparden"

Also das neue Mac OS 10.5 ist noch nicht der Hit, zumindest hinsichtlich dessen, was stabilitätsverwöhnte Apple-User so erwarten. Derzeit läuft Einiges an peripherer Hardware noch nicht. So warte ich derzeit auf die Firma Guillemot (die mit dem Markennamen Hercules), bei der ich mal fragte, wann ich damit rechnen kann, dass meine DJ-Console wieder funktioniert, oder ob jemals. Die User-Foren sind voll mit Problemberichten zu mangelnder Kompatibilität der einen oder anderen Software, und in diversen Fachbeiträgen und solchen nicht vom Fach müssen wir erfahren, dass sich die Firma Apple in puncto Sicherheit sich nicht gerade mit Ruhm bekleckert.

Ich persönlich habe es jetzt seit vier Tagen installiert und empfehle noch zu warten, bis die Apfel-Leute sich mal wieder von ihrem Telefon abwenden und Ihrem Betriebssystem zuwenden können. Das erste Update nach Erscheinen des Leoparden war ein dringender Fix der Login-Komponente. Bezeichnenderweise widmete sich das zweite Update schon wieder der besseren Integration des iPhones in iTunes – oder umgekehrt. Wie ich es sehe ist Apple gerade dabei mit Hochgeschwindigkeit seine Vorschuss-Lorbeeren zu verbrennen.

Hinzu kommt, dass z. B. die Firma SWSoft – Hersteller der Virtualisierungssoftware Parallels – die Gelegenheit nutzt, mit der neuen Mac-OS-Version auch gleich Ihre eigenen Updates zu verkaufen: Der Fix, damit Parallels auch unter dem Leoparden (oder hinter ihm her ;-) ) rennt, funktioniert nur mit der neuesten Version 3.0 des Parallels Desktop. Das mag ja technische Gründe haben, aber die Gelegenheit ist natürlich zu verlockend, als dass man geneigt wäre allein daran zu glauben.

In Summe lässt sich festhalten, dass wohl erst einmal drei Monate ins Land gehen werden, bis sich die Dünung der doch rauhen Umstellung wieder gelegt hat und dem plätschernden Gedümpel softwaretechnischer Unaufgeregtheit weicht, das man als Mac-User so liebt.

Veröffentlicht unter Allgemein | Verschlagwortet mit , | Hinterlasse einen Kommentar

Mac OS X Leopard: A Collection Of Pitfalls And Workarounds

This post describes the problems I encountered while upgrading to Mac OS X 10.5 “Leopard” and their solutions (where possible) in the order encountered, which may be of significance for a certain problem to be reproducable or not.

First of all I had made a backup of all relevant files on my notebook, which is strongly encouraged even for typical mac users accustomed to enhanced stability, which should not be taken for granted as we will see. The hardware was a MacBook with a dual core Intel processor and 2 GBytes of RAM.

Weiterlesen

Veröffentlicht unter IT (en) | Verschlagwortet mit , | Hinterlasse einen Kommentar

Navigationsgeräte sind wohl eher (noch) Spielzeug

Gestern bin ich von unserem einwöchigen Toskana-Ausflug zurückgekehrt, und bei der Gelegenheit habe ich zum ersten Mal eines dieser kleinen Wegstrecken-Helferlein ausprobiert. Es war ein Navigon 3110, aber das ist eigentlich unerheblich und nur insofern von Belang als dass ich den Kartenbestand von ganz Westeuropa einschl. der Städte zur Verfügung haben wollte. Weiterlesen

Veröffentlicht unter Mobile Navigation | Hinterlasse einen Kommentar