Drupal 7: Load all terms in a Taxonomy vocabulary

There still isn’t a function for this, and the conditions in taxonomy_term_load_multiple have been deprecated, so an EntityFieldQuery is the only (and recommended) way to do this: $query = new EntityFieldQuery(); $result = $query ->entityCondition(‘entity_type’, ‘taxonomy_term’) ->propertyCondition(‘vid’, 2, ‘=’) // for vocabulary id 2 ->execute(); Not too bad, I guess, but it just feels like… Continue reading Drupal 7: Load all terms in a Taxonomy vocabulary

FS-4 way intermediate draw tool

I got sick of manually coming up with random dives at creeper practice, so I wrote this: http://fs.xird.fi. The (very small) script returns random intermediate dives by pulling formations out of the pool until it runs out of formations. Almost like a competition draw.

Published
Categorized as Skydiving

Move over omatlahdot.fi, here comes lähdöt.fi!

The “Omat Lähdöt” service by HSL has been bugging me for a while now. The idea behind the service is great; Allow users of Helsinki area public transport to compile their own timetables, including any number of stops in the timetable. Unfortunately, the implementation is sub-par. I’ve listed some of the problems below. I’ve also… Continue reading Move over omatlahdot.fi, here comes lähdöt.fi!

Published
Categorized as Transport

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

Published
Categorized as IT

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

Published
Categorized as IT