Phusion Passenger/modrails – Apache 2… not found – Could not find ‘apachectl’ or ‘apache2ctl’
Yesterday I was going to install Phusion Passenger also known as modrails to have another go at ruby on rails. Earlier I’ve been using Mongrel as web server, but I’m not very comfortable with it. But since modrails was released not too long ago, I figured I could give it whirl. The installation instructions were so short that I figured it would be a walk in the park.
TextMate tip: Go to first non-space character on current line
One small thing that has always bugged me with TextMate is that ⌘← goes to the beginning of the line, instead of what I prefer: the first non-space character on the line. Well, thanks to “Jacobolous” in ##textmate@irc.freenode.net, that’s not a problem anymore.
This command has been updated, you can read what was changed here.
Hardware version of Radiohead’s “Nude”
Usually I like to blog about software stuff, but this time I’ll gladly make an exception. A guy named James Houston has recreated Radiohead’s “Nude” using hardware like scanner, TV and harddrives to create the tones! It’s more or less impossible to explain, to just watch this:
Big Ideas (don’t get any) from James Houston on Vimeo.
TextMate(2) – What we can expect to come.
I know I wasn’t the only one who immediately thought of TextMate2 when I read that some new Duke Nukem Forever footage was released,. The first thing I did was to log onto the TextMate irc channel and give Allan a wink.
ph^: allan: Now that Duke Nukem forever has released a new gameplay-video … :p
Anyway. Being a regular on the irc channel and mailing list for some time now, I’ve gained quite much information on what’s in development and even bits and pieces of what TM2 will offer.
Apple keyboard, windows XP and even synergy
While I prefer using one of my macs for everything, it so happens that the place I work really relies on Microsoft to serve them everything. Not my call, but I just have to make the best of it. For this reason I have my own macbook and a windows machine at work. However, since I do most of my actual work on the mac and just use the windows machine for connecting to certain proprietary stuff, I found it natura to have a mac keyboard in work. This had a few challenges.
Using lists instead of tables with sfGuardAuth
For some reason, symfony 1.1’s new sfForm class is using sfWidgetFormSchemaFormatterTable by default, instead of sfWidgetFormSchemaFormatterList. This means that you get a form based on tables, while I prefer to think of my form as a list to fill in. To change this you can use this chain:
$form->getWidgetSchema()->setFormFormatterName('list');
The question is, “where do you put this to alter sfGuard’s login form?”
Symfony, a PHP web application framework
Recently I made a library for a client which needed database access, cache and configuration. For this I decided to try Zend Framework for the first time. ZF was excellent for this, because you can cherry-pick what components you want, without having to include everything. For my next project however I’m going to build a full-scale application, and for this I prefer something more tightly coupled. Symfony to the rescue.
Opera Software releases alpha of new web developer tools
Ever since firebug was released as a developer tool for firefox, developers have asked themselves how they ever managed to live without it. In particular the powerful javascript debugger and the ability to manipulate html and css directly for testing has made it the most indispensable for web developers today.
SSH keys and SSH agent in OS X
If you’re like me and connecting to many servers over SSH, you soon realise it’s very tedious to remember and enter the passwords every time. One way to avoid this it to just remove the passwords, but that’s very unlikely something you would want to do. Another safe solution is to use SSH keys. This requires you to only remember one password for all your servers.
Image + Geotag + automation = Map Gallery
My latest personal project is a wordpress plugin that automatically reads geotags from images and adds the image as a point on a google map. You insert the map using a shortcode ([map_gallery]) and there you go. Shortcodes were introduced with Wordpress 2.5, and I rely on some PHP5 functions, so those are the requirements. You can see a live example on my Map Gallery page.