Apparently, some people has been wondering exactly who I am and what I look like. I’ve more or less kept this blog clean of personal matters without technical aspects, but guess I can make an exception. For those who are interested, I have a SmugMug gallery with all my pictures, and pictures of myself have been tagged.
Please do bear in mind that a lot of the pictures have been taken at parties, and often I try not to look the best.
While we’re at it, I managed to grab some pictures of Trifork’s new offices while they were still being built (last week).
I got a comment that my SmugMug uploader script had broken after the last upgrade. It turned out that my XML parsing with sed wasn’t exactly resistant to change, so the wrong field was printed from the returned XML.
I’ve changed the XML parsing to use awk instead, hopefully in a way that’s a little more resistant to changes in the format (although it’s not exactly perfect, but I don’t want to involve a real XML parser).
The new version is 1.1, and can be downloaded here.
Some time ago I bought an account with SmugMug for my pictures. SmugMug is pretty nice, and has more or less the features I need.
I quickly ran into a problem with uploading a lot of pictures. There are different tools for it, but nothing which really fit my needs: Execute a script with a list of files as arguments, print a list of available albums, enter the correct album, and upload the images (with a progress meter).
Luckily, there’s the SmugMug API, which is a nice REST interface, and it didn’t take long to hack a shell-script together using curl and the other usual suspects like grep and sed. I’ve now polished the script a little so it does some error handling, so now it’s available here as smugup.sh. It requires curl, sed and grep, probably in the GNU versions.
Username and password can be set as arguments with -u and -p, but they can also be set in ~/.smugup like this:
The script is used by simply giving the pictures to be uploaded as argument to the command:
The script will then print a list of available albums and expect the selected album ID as input, and then it will begin uploading.