So, I stumbled upon something called “pepakura” while browsing the net. Seeing as it was pretty much described as “easy process, awesome results”, I decided to give it a try. I am, after all, an avid maker of things. A brief browsing through The RPF showed me that the hip thing that the kids these… Continue reading Pepakura Iron Man helmet
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
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
Plywood Commodore logo
Just a random snapshot of a part of the project I’m currently working on.
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
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.
I bought a book: Nicholas Carr: The Shallows
I ended up buying a book. It’s “The Shallows – What the Internet Is Doing to Our Brains”, by Nicholas Carr. This post isn’t really a book review, although I am recommending to book to just about anyone. It’s more a personal account about the things covered by the book and how they apply to… Continue reading I bought a book: Nicholas Carr: The Shallows
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!
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