Man-in-the-Middle vs. SSLv3/TLSv1

Simple photo geotagging with an iPhone

Posted by Doomshammer on Saturday, March 14. 2009 at 22:28 in Anwendungen, English only, Photography, Privat
As you know, I recently received my new iPhone. One cool feature of the iPhone is the built-in GPS module (I know a bunch of other mobile phone do have this feature as well). As I was already searching for a simple solution to geotag my photos w/o much efforts (in terms of money and work), I looked for a way to track my photo trips via the iPhone and later syncronize the GPS data with my photos.

After some searching I found a pretty cool iPhone app. It's name is GeoLogTag (you can grab it for 4$ from the AppStore). The App is as simple as cool. Simply enable it and it'll track your trip and when you are back at home you just press the "GPX" button and the App will transform into a simple webserver where you can grab your GPX files via WLAN.

Now as I found a way to track my trips via iPhone I still needed a tool to get the GPS data into my photos. There are a bunch of tools out there in the internet which will let you sync your GPS geolocation date with your images, but most of them are limited to JPGs. As I am shooting exclusivly in Canon's RAW format with my EOS 5Ds (CR2-Format) these tools won't work. I also found some commercial tools which support CR2-Format, but they are very costly and are running on MS Windows only. So also not the solution I was searching for.

So finally I decided to develop such a tool on my own. My language of choice was (of course) Perl. The good thing is, that there are already modules to parse GPX data as well as a module to process EXIF information. To make the story short... I just finished the first version of the tool. It's pretty simple but effective. You can specify one or more image filenames and a GPX data filename. The script will read out the creation date of the images and will compare it to the dates of the GPX datapoints. If a datapoint doesn't differ more than $X seconds from the images timestamp, the script will tage the longitude and latitude and will write this information into the EXIF metadata of the image. If you specify the "-k" parameter, it'll also add these data as "geo:" keywords.

As the script is written in Perl, it should easily run on any UNIX, MacOS and Windows. It has been written and tested on MacOS X. In first place I wrote this script to support Canon's CR2-Format, but the good thing is that Image::Exiftool supports a bunch of other formats as well, so it may be useful for non-Canon users as well. Feel free to download it and give it a try and let me know how you find it.

Requirements
- Date::Manip
- Log::Log4perl
- Image::ExifTool
- Geo::Gpx

To see the script in action, click here.
Download it here.

iTunes - Tyrann im Rechner

Posted by Doomshammer on Tuesday, February 17. 2009 at 14:27 in Anwendungen, Fun, Mac, Musik, Privat, Thoughts
"Es gibt ein Computerprogramm, das so über allem erhaben scheint, wie der Kaiser in dem Märchen, dem die Kleider fehlen. Alle sagen respektvoll: toller Kaiser, tolle Software! Dabei ist der Kaiser nackt, und die Software auch. [...]"

Kompletter Text: Deutschlandfunk
Beitrag als MP3: hier klicken

Quick and Dirty "Show me the latest 5 photos in my stream" script

Posted by Doomshammer on Tuesday, October 14. 2008 at 15:01 in Anwendungen, English only, Photography, Privat, Thoughts
Here is a brief example of how to quickly fetch the latest 5 photos in you photostream and put them into a quick and dirty HTML output. It is written in Perl and uses my Ipernity::API module

View it as plain text
QUOTE:
#!/usr/bin/perl -w

use strict;
use warnings;
use Ipernity::API;

my $api = Ipernity::API->new(
'args' => {
'api_key' => '0123456123451234651235123452345234',
'outputformat' => 'xml',
},
);
my $result = $api->execute_xml(
'method' => 'doc.search',
'share' => 4,
'per_page' => 5,
'media' => 'photo',
'user_id' => '',
);

foreach my $doc (@{$result->{docs}->{doc}}) {
print '' .
'' . $doc->{title} .<br />
'

\n";
}

Ipernity's public API has been released

Posted by Doomshammer on Tuesday, October 14. 2008 at 13:25 in Anwendungen, English only, Photography, Privat, Web
Wow, it has been quite a bit since I wrote s. th. here in my blog, but I was either busy with my work or just to lazy to write something. But today I decided to put an update... 'cause my favourite Photo Sharing Community has opened it's doors to external applications by releasing their public API. It's still beta and some features are missing, but though it's there and can be given a test drive.

I took the chance and developed a Perl module for the API. With this module you can easily access the API and process the data of your Ipernity account within your perl scripts. Some features might be not there yet or need to be tweaked a bit, but basic functionallity is given. You can download it here (I am still waiting for my CPAN account).

To install, simply download and extract the package, then run: "perl Makefile.PL && make && make test && make install". That's it!

Let me know what you think about it!

Bye bye Safari! Welcome back Opera!

Posted by Doomshammer on Tuesday, September 23. 2008 at 12:24 in Anwendungen, Computer, Mac, Privat, Thoughts
Safari schoen und gut, aber wenn jedes Mal, wenn ich eine Seite mit Flash oder 'nem etwas aufwendigeren JS geoeffnet wird, die CPU Auslastung auf fast 100% hochgeht und das System fast komplett steht, dann ist das kein Zustand. Ich bin jetzt wieder zu Opera gewechselt und soweit gluecklich. Mal sehen ob das auch so bleibt :-)

OpenBSD 4.3 released

Posted by Doomshammer on Thursday, May 1. 2008 at 12:01 in Anwendungen, Arbeit, Computer, Linux/Unix, Privat, Thoughts
Actually it's a matter of course, 'cause OpenBSD is in a 6-month release cycle, but though I don't wanna hesitate to announce the release of their latest version.

Serendipity 1.3.1 released

Posted by Doomshammer on Tuesday, April 22. 2008 at 22:38 in Anwendungen, Privat, Web
...ich muss ma schnell updaten ... huch schon fertig! :-)

(via strcat)

Show me your menubar...

Posted by Doomshammer on Monday, March 31. 2008 at 16:25 in Anwendungen, Computer, Mac, Privat
Mal wieder Stoeckchen-Alarm. Flummi hat's geworfen und will sehen wie meine "menubar" aussieht. So denn, hier ist sie:

Menubar

Und dann feuere ich es mal direkt T2 und syn an den Kopp (und jeden anderen MacOS User der hier mitliest).

Update: Auf Wunsch eines Einzelnen hier noch die Erklaerung der einzelnen Icons (von links nach rechts):

- Evernote Client
- Adium
- Twitterific
- iAlertU
- Dropbox Client
- Skype
- Shimo (Cisco VPN Client)
- Spanning Sync (Google/iCal Sync)
- Little Snitch (Desktop Firewall)
- .mac Sync
- Blauzahn
- Lautstaerkeregler
- WLAN
- Batterielaufzeit
- Datum/Uhrzeit
- Tunnelblick (OpenVPN Client)
- Spotlight

Serendipity 1.3 released

Posted by Doomshammer on Tuesday, March 18. 2008 at 16:07 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts, Web
Just upgraded my Blog (featured by the best blogging software on the planet) from v1.2.1 to the fresh released v1.3. This is basically a security release, but also some new features have been added. As usual the upgrade was done within less than 3 minutes (incl. download and extracting). S9Y rocks!

(via strcat|s9y)

Cyrus-SASL sql.c 'settings' undeclared

Posted by Doomshammer on Tuesday, March 4. 2008 at 23:24 in Anwendungen, Arbeit, Computer, Linux/Unix

Ich bin gerade dabei einen weiteren Mailserver aufzusetzen. Beim kompilieren von Cyrus SASL (inkl. SQL Cyrpt Patch) bekam ich dann folgenden Fehler:

QUOTE:
sql.c: In function '_pgsql_exec':
sql.c:292: error: 'settings' undeclared (first use in this function)
sql.c:292: error: (Each undeclared identifier is reported only once
sql.c:292: error: for each function it appears in.)
sql.c: In function '_pgsql_rollback_txn':
sql.c:337: error: too many arguments to function '_pgsql_exec'


Scheinbar bin ich der einzige der dieses Problem hat, ich konnte zumindest nichts bei google finde. Also hab' ich mich selbst dran versucht und es auch geschafft das Problem zu loesen. Fuer denjenigen der dieses Problem auch mal haben sollte, hier mein Patch.

Und es funktioniert doch!

Posted by Doomshammer on Tuesday, March 4. 2008 at 07:47 in Anwendungen, Arbeit, Computer, Linux/Unix, Thoughts, Web
Die Installation von CRUX auf einem dedizierten Server von Hetzner. Ist garnicht so schwer. ISO Mounten, Boot-Image rauskopieren, Bootimage "unsquashfs"en, Bootimage mounten, gefolgt von einer einzigen "mount --bind" + chroot Orgie ;-)

Dank des CRUX86_64 Projekts laeuft jetzt sogar 'n 64Bit System auf dem Server. Sehr angenehm sich endlich auch auf 'nem "fremdsystem" irgendwie ein kleines Stueckchen mehr Zuhause zu fuehlen. Beim CRUX86_64 ist das sshd-keygen scheinbar nicht sauber kompiliert (oder nur fuer die Hetzner Maschine inkompatibel). Es kann keinen ssh Key anlegen und somit wird der Remote-Zugriff verweigert. Das kann man aber umgehen, indem man temporaer 'nen Key von 'nem anderen System einspielt, sich einloggt, ein "sysup" durchfuehrt und dann erst gcc, binutils und Co neu uebersetzt werden und dann OpenSSH. Danach funktioniert ssh-keygen 1a.

QUOTE:
# uname -ri && crux
2.6.22.6 x86_64
CRUX version 2.3

OpenVPN and the SSL VPN Revolution

Posted by Doomshammer on Sunday, March 2. 2008 at 14:29 in Anwendungen, Arbeit, Computer, English only, Privat, Thoughts, Web
Very good read about OpenVPN and SSL VPNs. It pretty much confirms my choice for OpenVPN as VPN-Solution.

WLAN Security (Teil 2)

Posted by Doomshammer on Sunday, March 2. 2008 at 01:51 in Anwendungen, Computer, Linux/Unix, Privat, Thoughts

Ich hatte mir vor ein paar Tagen ja schon ueber die Sicherheit einiger WLANs ausgelassen und das brachte mich dann doch nochmal ins Gruebeln. WPA2 mit 63-byte Key schoen und gut, aber das gelbe vom Ei ist es dennoch nicht. Nicht nur, dass man den Key auf Grund der laenge sehr schlecht behalten kann, es ist ausserdem ein "Shared Secret". Sprich wenn ich irgendeinem Gast mal den Key zu meinem WLAN gegeben habe und dann wird ihm z. B. das Laptop geklaut, dann ist der Key in fremden Haenden und kann zumindest theoretisch missbraucht werden (und der Boesewicht kann damit in meinem LAN rumschnuefflen). Klar klingt das jetzt ziemlich paranoid und sehr theoretisch, aber die Moeglichkeit besteht.

Also bin ich hingegangen und habe mein Netz etwas mehr abgesichert um solche Faelle auszuschliessen. Zuerst habe ich mein Netz in 2 VLANs unterteilt. Einmal das LAN- sprich die physikalischen Netzwerk-Ports die ich ja ueberwachen kann und dann noch das WiFi VLAN. Die beiden VLANs sind in versch. Subnetze unterteilt und nochmal via Firewall-Regeln komplett von einander abgeschirmt. Wer im LAN ist kann alles- wer im WLAN ist kann surfen, aber mehr auch nicht. Das LAN Netz ist fuer User im WLAN-Subnetz ueberhaupt nicht moeglich (ausser DNS Requests). Man kann sich allerdings via OpenVPN ins LAN einwaehlen und hat dann den kompletten Zugriff aufs LAN.

Das hat natuerlich schonmal 'ne Menge gebracht, denn zumindest mein LAN ist jetzt voellig autak und auch wenn jemand es ins WLAN schafft, hat er keine Chance ins LAN zu kommen.... Schoen! Aber ich habe trotzdem noch immer das Problem mit dem Shared-Key. Also habe ich meinen OpenWRT Router noch um einen FreeRadius Server erweitert und 802.1x WPA Authentifizierung aktiviert. Somit kann ich jetzt einzelne User einrichten und habe eine Zertifikat-basierte Authentifizierung. Wenn da jetzt noch jemand rein kommt, weiss ich auch nicht mehr weiter ;-)

Ich fuehle mich jetzt um einiges sicherer in meinen Netzen :-)

Solaris' Service Management Facility

Posted by Doomshammer on Thursday, February 28. 2008 at 15:04 in Anwendungen, English only, Linux/Unix, Thoughts
Joerg Moellenkamp wrote a great 5-part tutorial about Solaris' Service Management Facility (SMF). Everybody who is working with SMFs but actually it not using efficiently should read Joerg's tutorial- it's absolutelly worth reading!

Calendar

Back May '13
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

ERROR: The HTTP server returned the error or the warning(result:403).

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL