September 13, 2009 – 7:12 pm
In this post I’m going to try and explain how to add custom tags that link to node pages to a Drupal 6 input format. That probably sounds a bit far-fetched, so I’ll attempt to clarify by using my own project as an example.
last.fm has this nifty feature where you can write [artist]Meshuggah[/artist] and it’ll [...]
September 2, 2009 – 11:50 pm
For my internship at Think Wize, I’ve been working on a custom Django management command that compares the current model definitions (models.py) and the current database schema, and tries to spot the differences. I’ve called it checkdb. Optionally it can also attempt to fix them, with checkdb –fix.
syncdb is not agile
Django’s syncdb management command, used [...]
August 27, 2009 – 11:14 pm
It’s time for a rant. I haven’t posted in a while because I haven’t been doing much that might be of interest to anyone, in terms of coding. Apart from my internship, perhaps; I’m working at Think Wize, a company based around Django, for six weeks. They are hoping to set up a continuous integration [...]
February 10, 2009 – 8:46 pm
I’ve been working on a Javascript-driven Django application pretty much non-stop for the last week or so. I’ll leave my experiences with the Django framework for another post1. There’s more than twice as much Javascript code in this application than there is Python code, so I can’t really claim that I know Django yet, to [...]
January 22, 2009 – 2:00 am
A while ago I read one of Peter Harkins’s posts about open classes in Ruby, and how insanely awesome and useful they are. As you can probably tell, I wholeheartedly agree. Open classes are just one of those things that make me choose Ruby over pretty much anything else, whenever I get the chance to [...]
January 4, 2009 – 12:38 am
There seems to be a bug in passenger-2.0.6 that makes the Apache module installation fail. I was just installing Ruby Enterprise Edition 1.8.6-20081215 and Phusion Passenger (AKA mod_rack or mod_rails), and it bailed out on me saying:
root@evidence:~# /opt/ruby-enterprise-1.8.6-20081215/bin/passenger-install-apache2-module
[...]
Compiling and installing Apache 2 module…
cd /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/passenger-2.0.6
/opt/ruby-enterprise-1.8.6-20081215/bin/ruby -S rake clean apache2
/opt/ruby-enterprise-1.8.6-20081215/bin/ruby: No such file or directory — rake [...]
January 3, 2009 – 3:45 am
Until today, all my stuff was on a shared host. Didn’t matter much for this blog, but trying to run Rails applications on prehistoric technology like FastCGI got tiresome quickly. In addition, the server I was hosted on was frequently having issues since a few weeks (at one point, I witnessed it showcasing a load [...]
January 2, 2009 – 12:39 am
define_method is an odd creature. Paul Gross’s post about its unusual behaviour inspired me to do some research. I even went and browsed through Ruby’s source to attempt to understand it, but that turned out to be unnecessary: I reimplemented it in pure1 Ruby. In this post, I’m going to try and explain why [...]
December 29, 2008 – 1:35 am
Last night I was writing some Javascript for a Django1 application I’ve been working on. I was discussing some of Javascript’s quirks on IRC with someone else who was also scripting.
He wanted to know what happens when you add both values indexed by number, and values indexed by strings (e.g. expando properties – no, I’m [...]
December 27, 2008 – 10:54 pm
Rails is an MVC web development framework for Ruby. Rails is awesome and magical! Rails helps speed up development, and it’s just a lot of fun to use because it takes care of all the stuff that is annoying about developing web applications. Most of it, anyways.
Merb is an MVC web development framework for Ruby. [...]