Peter Krantz - A blog about technology, visualization, music and unmanned vehicle experiments

Stuff I learned over the weekend

1. Finding stuff in lists of dicts in Python If you have a list of dicts in Python like this: aXRlbXMgPSBbeyJpZCI6MSwgIm5hbWUiOiAiUmFzbXVzIn0sIHsiaWQiOiAyLCAibmFtZSI6ICJSaWNrIn1d …and want to check if there are any dict items with an id of a specific value (e.g. 2) I first came up with this: MiBpbiBtYXAobGFtYmRhIHg6IHhbJ2lkJ10sIGl0ZW1zKQ== The downside is that it will loop all [...]

November 3: Twitter friend icon impersonation week begins

For a long time I have been amazed how much expression you can get into the twitter icon. It is only 48 by 48 pixels but many of my contacts manage to squeeze a lot of style in there. So, starting on monday november 3 I will change my twitter icon once every day trying [...]

Serialization formats don’t matter

Shelley Powers on the Myths and Realities of XHTML: I mean, if working with RDF has taught me one thing, it’s that converting between two different forms of serialization is trivial—it’s the underlying model that matters. Exactly! And still, many who are in the integration business think that XML schemas is the only product required [...]

Slit-scan Photography (Stockholm Geekmeet presentation)

Last night, Robert Nyman hosted yet another successful Geekmeet in Stockholm. I got one of the lightning talk slots and decided to skip my planned presentation and instead show some of my experiments with slit-scan photography. The presentation slides (in swedish) are available (8 Mb PDF) here. For more pictures see the set Slit-scan I [...]

Hello OpenGL World in Ocaml

I swear, if I read one more programming tutorial that starts with a recursive factorial function instead of a simple “Hello world” I’ll pray for perpetual nigerian spam on their inboxes. So, I was delighted to try out some Ocaml stuff today that didn’t involve factorials.  Since I like dabbling with data visualization I was [...]

Constraints make photography more fun

We went to Goult in Provence on vacation in August and had a great time. While there, we met Bertil Hansson, artist and photographer. We got talking about digital cameras and how they take excellent pictures that can be viewed immediately. I have been sort of bored with taking pictures lately, but Bertil lent me [...]

The broken state of EU legal information on the web

In my pet project eurlex.nu I find a lot of weird stuff when scraping documents from the official website eur-lex.europa.eu. The most recent specimen – Final adoption of amending budget No 4 of the European Union for the financial year 2008 – has the publish date 80/80/2200. That’s almost two hundred years into the future [...]