I created a a simple application using the HSL open data XML dump, the MapQuest Javascript API and the heatmap.js library. Here’s a screenshot: The heatmap shows the number of departures from each stop in the HSL public transport system. It essentially answers the question “How easy is it to get away from here?”. Or,… Continue reading HSL departures heatmap
Category: IT
Apple Mail and marking messages read
I had some trouble setting up Apple Mail the way I want it to work. What I’m used to doing is keeping a list of “Unread” messages, which is really a list of “Messages that need some action from me before I can forget about the message”. By default, Apple Mail doesn’t really work well… Continue reading Apple Mail and marking messages read
Resistor tools
I just wrote a parallel resistor value calculator, and a resistor colour code calculator. There are lots of them on the web, but most of them seem to have a 1990’s era user interface, where you need to enter values into separate fields and then click on the “Calculate!” button. Blech. So, I rolled my… Continue reading Resistor tools
Filtering a Drupal 7 View based on multiple user profile fields
This is basically continued from the previous post Filtering a Drupal 7 View based on a user profile field, where a user called Juan asked a simple question: “How do I filter by multiple user profile fields, so that all the terms must match?”
Filtering a Drupal 7 View based on a user profile field
The exact question answered here is “How do I filter a View based on the value of a taxonomy term reference field in the current user’s profile?” This is covered in quite a few places on the web, but I just wanted to create good step-by-step instructions on how to actually do it, in a… Continue reading Filtering a Drupal 7 View based on a user profile field
Circlr – a jQuery plugin for arranging things in a circle
Here’s “Circlr”, a jQuery plugin that arranges html elements on a web page into a circle. It is used on the front page of my site. There are also a couple of usage examples included in the package. Enjoy! circlr1.zip
Textwrangler: Open file from directory of current file
A small thing that’s been bugging me with TextWrangler and BBEdit is that the current directory in the Open File dialog doesn’t follow the directory of the current file. In other words: First I’ll open and edit a file somewhere in a deep directory hierarchy. This is the main directory that I work in with… Continue reading Textwrangler: Open file from directory of current file
Adding fields to Drupal 7 Apache SOLR
The question: How to make SOLR return more fields with the search results (using the apachesolr module), knowing that all the standard Drupal fields are added to the SOLR index? I found plenty of blog posts about how to do this in Drupal 6, but it’s changed a bit with the latest versions. Here it… Continue reading Adding fields to Drupal 7 Apache SOLR
Installing Diaspora* on Debian 6.0 on a virtual server
I went ahead and tried installing my own server to run a pod for the distributed open source social network, Diaspora*. The installation went fine according to the instructions (Installing and running Diaspora) until the part where I say bundle install –without development test And Debian says: Fetching source index for http://rubygems.org/ Killed
PHP Chat server in 2.5Kb
I got fed up with not having a decent place to chat with random colleagues and such, who don’t always have access to the same servers and accounts as I do. A quick search on the web revealed no sensible service well suited to copy and pasting code, which is the number one reason I… Continue reading PHP Chat server in 2.5Kb