Donnerstag, 19. Mai 2011

Unable to access older backups with Time-Machine

I had the problem, that I was not able to see my backup history with Time-Machine even so they show up when using finder. I have not found out why that happens, but the following suggestion allowed me to access them directly:

Apple changed something so Time Machine now thinks you've got a different computer. All your backups are there, as you can see via the Finder, but TM has started a new, separate sequence.

Select the TM icon in the menubar and hold your mouse down. Watch the +Enter Time Machine+ option while pressing the Option key on your keyboard. That option should change to +Browse Other Time Machine Disks+. Select it and you'll see your previous backups.

You cannot merge the two sets of backups, as TM thinks they're for different computers, but you can restore files/folders from them if you need to.


This suggestion was found here.

Dienstag, 17. Mai 2011

Making Addressbook on Mac Snow Leopard faster

Ever since I switched to a Mac I'm quite happy with Mail, iCal and Addressbook for my email exchange. However what bothered me most was the very slow Addressbook application. Every time I had to lookup some contact, there was a huge lag when I typed characters into the seach box and my address groups have been showing this annoying spinning icon to indicate some busy status.
I have my address book connected to an Groupware server to have access to my private and public contacts at the same time. It seems that the default behavior of the Addressbook is to have automatic synchronization enabled with the Groupware server. Since I changes the automatic mode, to a manual 15-minute interval I have no issue anymore. Searches are as fast as one would expect.
While there are likely to be other causes for a slow address book on the Mac, it for sure solved my issue.

Freitag, 6. Mai 2011

Continuos Integration Testing with Qt / Cpp

For some time we have been looking somewhat jealous on our Java teammates who have been using Hudson for continuous integration testing of our Java project. But we have not been able to do something similar for our Qt / CPP projects. It seems that we now have a solution:

1. Testing Framework to be used: Googletest
2. Mock-Framework: GoogleMock
3. Husdon to link it all: Husdon

Of course this is not an invention from me, but some smart guy made it all work. Thanks!!!
Mikes blog provides a nice how to for setting up everything.

Montag, 7. März 2011

Magellan Explorist GC - Anpassen der Statistiken

Ich bin seit letztem Jahr begeisterter Geo-Cacher. Nachdem ich einige Caches mit meinem Handy gesucht hatte, gab es schliesslich ein richtiges Gerät :-) Das Problem, leider reflektiert das Magellan Gerät nicht wirklich meine Anzahl an gefundenen Caches, sondern nur die Zahl welche mit dem Gerät selbst gesucht wurden. Lange war ich auf der Suche wo man die Statistiken für gefundene Caches einstellen kann. Jetzt habe ich es herausgefunden.

1) Anpassen der Awards.ini
 Sobald man den GC mit seinem Mac verbunden hat und es als Laufwerk verfügbar ist, öffnet man im Apps Ordner die Datei Awards.ini. Hier können nun die korrekte Zahl der gefundenen Caches eingetragen werden:
[Awards]
NumOfGeocachesFound=58

NumOfGeocachesTypesFound[0]=0
NumOfGeocachesTypesFound[1]=0
NumOfGeocachesTypesFound[2]=0
NumOfGeocachesTypesFound[3]=0
NumOfGeocachesTypesFound[4]=4
NumOfGeocachesTypesFound[5]=0
NumOfGeocachesTypesFound[6]=50
NumOfGeocachesTypesFound[7]=4
NumOfGeocachesTypesFound[8]=0
NumOfGeocachesTypesFound[9]=0
NumOfGeocachesTypesFound[10]=0
NumOfGeocachesTypesFound[11]=0
NumOfGeocachesTypesFound[12]=0

UnlocablesFlags[0]=1040445440
UnlocablesFlags[1]=46
In der Zeile mit dem Eintrag NumOfGeocachesFound wird die Zahl der gefundenen Caches eingetragen. In der Liste darunter, trägt man die Anzahl der gefundenen Cache Typen ein. Folgende Typen sind hinterlegt:
Type 0=Letterbox Hybrid
Type 1=CITO Event
Type 2=Event Cache
Type 3=Wherigo
Type 4=Multi Cache
Type 5=Earthcache
Type 6=Traditional Cache
Type 7=Unknown
Type 8=Virtual Cache
Type 9=GPS Adventure Exhibit
Type 10=Mega Event
Type 11=Project APE
Type 12=Webcam Cache
Wie man erkennen kann, habe ich somit 4 Multi-Cache, 50 Traditional und 4 Unknown Cache gefunden. Diese Datei kann man somit seinen Statistiken entsprechend anpassen.

2) Database.db (ohne Gewähr)
Wer jetzt im Settings Menü des Magellan GC auf den Statistik Button klickt, wird womöglich feststellen, dass der tatsächliche Cache-Find Zählerstand nicht mit dem Wert in der Awards.ini Datei übereinstimmt. Das ist deshalb so, da die SW den Zählerstand in der Database.db verwaltet. Diese Datei ist eine SQlite Datenbank und kann mit einem entsprechenden Editor wie dem sqliteman welcher kostenlos über Google zu finden ist, geöffnet werden. Mit sqliteman öffnet man dann die Tabelle GeocacheSummary mit einem Doppel-Klick auf den Tabellennamen. In dieser Tabelle findet man dann die Spalte mit dem Namen eGSF_LifetimeFound. In diese Spalte trägt man jetzt die korrekte Zahl der eigenen Cache Funde ein. Anschliessend den geänderten Datensatz speichern (Aktuelle Transaktion abschliessen). Jetzt sqliteman beenden, und den Magellan vom Mac trennen. Nach dem Neustart des Gerätes sollten alle Statistiken korrekt und mit den richtigen Zählerständen vom Gerät verwaltet werden.

Montag, 28. Februar 2011

Connect via FTP to Humax iCord HD

Ich besitze einen Humax iCord HD Festplattenrecorder. Das man damit super TV Filme aufnehmen kann ist selbstredend. Wie aber bekommt man die Filme vom Recorder auf den eigenen PC? Versuche mit diversen FTP Programmen sind mal mehr, mal weniger erfolgreich. Was in jedem Fall funktioniert ist der FTP Shell Client - sprich der Zugriff auf der Kommandozeile:
1. Terminal öffnen
2. ftp [ip-deines-icord] (Return)
3. HumaxFTP (Return)
4. 0000 (Return)
5. dir (Return)
6. cd Video (Return)
7. get Videodatei.ts
Damit lädt man sich den gewünschten Film auf den eigenen Rechner in das Verzeichnis aus dem man das Programm ftp gestartet hat. Will man das lokale Zielverzeichnis während der aktiven FTP Verbindung wechseln, helfen die l*** (lcd / lpwd / ...) Kommandos.

Freitag, 18. Februar 2011

How to clear the browser cache of Safari on MAC

I'm dealing at work with a web application and recently we had a strange problem that some information simply did not show. Anyway, what fixed the problem was clearing the browser cache of Safari. How is it done?

1. Close Safari completely so that the blue run-state indicator below its icon is gone.
2. Open a terminal window and execute the following:
$ dscacheutil -flushcache

Now the browser cache will be cleared.

Donnerstag, 17. Februar 2011

Change the image type for screenshots on MAC Snow Leopard

Since Snow Leopard it seems that Mac uses TIFF as the default image format for Screenshots. If you want to paste a screenshot in an email and send it to some Windows friends, they will most likely be unhappy with this format. A more common format is PNG or JPG.
To change the default image format on Mac no magic is needed, it's easy. Just open the terminal and paste the following line of code to make the default PNG:
defaults write com.apple.screencapture type png
or do you prefer JPG?

defaults write com.apple.screencapture type jpg
That's all. Now you can copy Windows friendly screenshots into your email and send it to your friends.

Ah, you wonder how to do screenshots on Mac? Easy as well, and actually more comfortable than on Windows:

Make a screenshot of a selection of the screen and safe to clipboard:
<shift>+<ctrl>+<cmd>+4
To automatically safe the screenshot on the desktop, leave <ctrl> key out:

<shift>+<cmd>+4

A full window screenshot is done via space key instead of drawing the mouse over an area.