Force Syncing Mac OS X Address Book with Gmail Contacts

If you setup your iPhone and iPad to connect to Google as an Exchange server, you get instant push notifications of mail and sync your calendars and address book. And in my experience it works great. But syncing under Mac OS X can sometimes be slow to update. So I wrote this little program to force an update immediately. It’s been useful to me, so I thought I put it here if someone else needed it.

Download Address Book sync with Google Contacts

Geotag your DSLR images using your iPhone GPS and a Mac

Map from iPhone showing geotagged images

Geotag images using an iPhone

One of the nice things about modern camera phones and even some regular cameras uses GPS to tag photos and embed the coordinates in the pictures EXIF data. But wouldn’t it be great if you could do that with your fancy DSLR camera photos as well? Programs like iPhoto, Aperture and the upcoming Adobe Lightroom 4 can show you your pictures on a map. Many online photo sites like Flickr also uses the GPS data in the pictures to display them on a map. Continue reading

Asus PA246Q ProArt Professional monitor review

Asus PA246 monitor

Asus PA246Q ProArt Professional monitor

To be able to really get the most out of your images, you need a color accurate monitor. You usually have to pay a lot of money to get a good monitor that’s factory calibrated and uses a IPS panel, a panel type that is better at showing correct colors than the more common (and cheaper) TN panels. But there are some reasonably priced monitors. One of them is the Asus PA246Q ProArt monitor. It’s factory calibrated and even ships with a printout of the calibration result from the factory. You can set the monitor to sRGB or Adobe RGB 1998 color space directly on the front controls of the monitor. It’s also has fairly high resolution with 24″ size 1920×1200 pixels.Continue reading

GPS tagging on the cheap

GPSPhotoLinker program icon

I just love gadgets. That’s why it’s nice to find that I bought a Garmin eTrex a long time ago. Haven’t used it in years, but then when Apple released the latest version of iLife 09 with the map function in iPhoto I realized that it is very cool to have all the images geo tagged. So I found a program called GPSPhotoLinker, a program that downloads GPS data and pictures and by the date/time on the pictures manages to add longitude and latitude information in the picture info. When you import pictures with this information iPhoto can use that to show it on maps and make it searchable. And when you upload pictures to Flickr, it also uses the location information place your picture on a map. Very cool.

The software is free to download here. If you have an old GPS receiver like me, you need a serial cable (I made my own because of the very high prices for ready made cables), just check eBay. You also need a USB to serial converter, like the “Keyspan High Speed USB Serial Adapter.

To start tagging, just power on your GPS receiver when you start (I just put it in my shirt pocket) and then photo away). Set the clock in your camera (check the GPS clock, it’s VERY exact ) because this is information that is used to sync position information.

Download all your pictures in a folder, connect the GPS, start GPSPhotoLinker and download data from the GPS, and then select the folder with pictures you took. Press “batch” and your done! gpsmap.jpg

iPhoto 09 map showing my short walk today

Example of flickr map

Map with my pictures in flickr

FRA får inte läsa mina brev. Hur gör man för att skydda sig? Kryptera din epost

Efter de stora protesterna fick våra kära politiker skriva om delar av FRA lagen. Nu verkar det som SÄPO ska få tillgång till information, vilket säkert betyder att vanliga polisen kan få se vad du skriver och pratar om inom några år.

Så vad gör man för att slippa detta? Du gör det på samma sätt som de som FRA försöker hitta, dvs krypterar all din kommunikation.

Det finns en gratis programvara för att kryptera epost som heter The GNU Privacy Guard.

Men hur gör man då för att använda GPG när man skickar epost?

Det beror på om man har Macintosh eller Windows, men jag ska visa hur man går tillväga på båda dessa plattformer.

Macintosh installation

  • Från http://macgpg.sourceforge.net/ laddar du ned följande program
  • GNU Privacy Guard (se till att du väljer för din maskin och version av systemet)
  • GPG Keychain Access, ett program för att hantera nycklar (nycklar förklaras längre ner)
Sedan ska vi ladda ned PGP för Apple Mail härifrån

Börja med att installera GNU Privacy Guard. Installera sedan GPG Keychain Access.

För att installera PGP för Apple Mail måste vi flytta filen GPGMail.mailbundle till hemmamapp/Bibliotek/Mail/Bundles

Starta om Apple Mail.

Så hur fungerar då PGP?

Varje användare av PGP har två nycklar. En privat (hemlig) nyckel och en publik nyckel. Den publika nyckeln kan du lägga på nätet, skicka över internet eller trycka på en T-shirt. Spelar ingen roll. Om en annan har din publika nyckel, kan de kryptera epost meddelanden med hjälp av den. När något är krypterat med hjälp av din publika nyckel, finns bara en nyckel som kan öppna den, och det är din privata nyckel. Du börjar förstå att det är din privata nyckel du ska göra backup på nu va?

Först laddar du upp din publika nyckel till en nyckelserver som gör att andra kan hämta din publika nyckel

Public key exchange gpg

Här har någon sökt och hittat din nyckel och laddat ner den på hans maskin. Han kan nu använda din publika nyckel för att skapa krypterade meddelanden som bara du kan läsa. Oftast när epost program krypterar, brukar de även använda ens egen publika nyckel så bara ni två kan läsa. Det går att skicka till flera deltagare om du har krypteringsnyckel till alla mottagarna.

gpg key exchange-1.jpg

Hur får folk tag i andras publika nycklar då?

Det bästa är att ladda upp dem till en nyckelserver där din publika nyckel kopplas ihop med din epostadress och namn. Man kan söka dessa nyckelservrar för att hitta personerna man vill skicka krypterad post till. Man laddar ner mottagarens publika nyckel och installerar på din maskin, och vips! så kan du nu skicka krypterat till dem.

Så låt oss prova att hämta en nyckel genom att starta GPG Keychain Access programmet. Det ser ut som nedan.

Keychains.jpg

Först måste du skapa din privata och publika nyckel, så välj “Generate…” under Key-menyn och följ anvisningarna. Nu skapas din privata och publika nyckel.

Välj “Send to keyserver” på din publika nyckel. Då kan folk leta reda på din kryptonyckel och skicka krypterat till dig.

För att lägga till andras publika nycklar som du vill kunna skicka till välj “Search for Key…” under Key-menyn

Keychains-1.jpg

Skriv in epostadressen på personen du söker.

GPG Keychain Access.jpg

Nu ska den personen finnas i din lista. Så låt oss prova att skicka ett krypterat meddelande med Apple Mail:

Hemligt hemligt! Ingen FRA här inte!.jpg

Om du installerat enligt ovan ska du nu ha möjligheten att välja PHP: Signed och Encrypted.

Signed är när man skickar texten i klartext, men blir signerad, och en kryptosträng läggs till. Om någon försöker ändra i epostmeddelandet innan du får det, får du en varning. Men det vi vill göra är att kryptera, så välj att kryssa i Encrypted.

Nu skickas ditt meddelande krypterat till mottagaren och bara du och han kan läsa den.

GLÖM INTE BORT ATT GÖRA BACKUP PÅ DIN PRIVATA NYCKEL. UTAN DEN KAN DU INTE ÖPPNA KRYPTERADE MAIL.

Impromptu TimeMachine test

skitched-20090112-235535.jpgWhen I’m depressed I have this thing of dreaming violent dreams and acting them out in reality. The other night I dreamt that I was at the liquor store and got in to a fight with two men. I woke up with a bang when I kicked my laptop of the table beside my bed, seeing it banging to the floor. The hard drive worked for about a day, and then gave up. So I had a good reason to test TimeMachine, and it has worked perfectly! So now I’m up and running again with more free space on my computer than the old total disk space. It even seems a bit faster because this disk i 7200 RPM. 320 mb in a 2.5″. <OLD BASTARD TAG>I remember the first hard drive I used. It was a Corvus 5 megabyte drive for the Apple II in the size of a small refrigerator. I think it’s swedish price was something like $8000. Yet a big upgrade from my first “real” storage device (not counting cassette player) wich was a dual 5 1/4 floppy at a wopping 140kb per disk (yes kids, that’s 140 KILOBYTES!) And those where real floppys, because, well, they where physically floppy.</OLD BASTARD TAG>

iPhone will increase Macintosh software

Nobody talks about the fact that all the companies that will now start making programs for the iPhone will first learn how easy it is to program with Cocoa. Then suddenly you have a lot of new programmers that know how to program for the Mac as well. Yes, it’s that similar. What would stop them, now that they have inhouse knowledge to make a Macintosh version of the software? Nothing…