I have been experimenting with various search options for the eutveckling.se site for a while. Google Custom Search is nice and very fast, but the number of ads appearing in the search result page makes it difficult for users to separate result items from ads. (Update: I am sticking with Google Custom Search until I [...]
Peter Krantz - A blog about technology, visualization, music and unmanned vehicle experiments
Twitter synchronicity
Everyone is celebrating this friday in a different way, apparently:
What Sun Should Do
Tim Bray has an interesting post titled What Sun Should Do where he lists some suggestions. I have been thinking about Sun for a while and how my own image of the company has changed over the years. A long time ago I was working for Cambridge Technology Partners (later acquired by Novell). We did [...]
The Gnostic Nihilist
Modelling by Niklas Lindström who also knows a lot about SPARQL, RDF and Brilliance.
Improving Django performance with better caching
The Django cache middleware is great, but has one drawback. If you are caching views (which can give a nice performance boost) Django will only use the path segment of the URL to create a cache key. If you are an avid reader of RFC 3986 you may remember that a URI consists of multiple [...]
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 items which may be inefficient [...]
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 [...]






