Time to try blogging from ipod
Well, the iPhone version seems to work ok. It’s actually quite nice to be able to write in landscape mode.
Well, the iPhone version seems to work ok. It’s actually quite nice to be able to write in landscape mode.
So, after doing an upgrade of my Apache installation all my web content stopped working. It continued to give 403 errors. After spending hours changing permissions and checking every little detail I gave up. So I installed Nginx instead. It’s a bit scary to start using a totally new web server software, but why not live dangerously? Anyway, it’s fast! Really fast. The only problem I had was to get all the redirects to work. And I also removed my gallery2 installation and moved the blog to /
Problems
It took longer than I had anticipated, mainly because I had to learn how to set up Nginx, but also because of the trouble of getting answers when searching the net. But here’s my working config (mostly saved for me if I forget
And the amazing thing is that now when the kids are at their grand mother, we still know how to have fun. I’ve been laughing my ass of all weekend. So I’m on for another 13 years.

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!

iPhoto 09 map showing my short walk today

Map with my pictures in flickr
I’m been working on an application lately where we need to have some sort of rating. Almost instinctively one thinks of using stars to let the user choose how much they like something. But I soon realized that stars with 1-5 rating does not work. Well, let me elaborate, it does not work like a scale. Most fill them in like a boolean value. If they like it, they put four or five stars, and 1 if they don’t like it. If the product does not create an emotional response, they don’t put any stars at all, because most people only rate something they really like or hate. It would be fun to have a star rating system that actually put you up against the wall when you fill something in. You’ve just watched one of Hollywoods latest money making machine movie, and you liked it well enough. A good time waster. So you put four stars. The system then asks you, “Are you sure that you think this is as good as Deer Hunter?” Most sane persons would realize that they made an error in judgement and lower the score. And then stop using the rating system, because who want’s to be corrected by a computer?
I’v never set up a list of things I want to do before I’ll be pushing up the daisies, but now somehow It feels appropriate. Need something to hold on to.
I will try to add to this list as I remember stuff I want to do. But here we go:
I’ll try to keep this one updated…
I’m working on learning Ruby on Rails and one great resource that I find myself going to is RailsCast. But as I really need to learn Ruby I wanted to write a quick program to download all the episodes to my harddisk and watch them using Plex Media Center. There’s probably a million different utilities (or podcast managers) that can do that, but using them I won’t learn to program Ruby that way. There’s probably a better way of doing this, but hey, do it and post a comment.
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
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

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.

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.

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

Skriv in epostadressen på personen du söker.

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

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.
Recent Comments