Sneak peak into flexifields for drupal 7 (updated)

I like the fact that content administrators should be able to edit their page’s without any hassle or going troughrather difficult interfaces to attach chunks of content to their page. In Drupal 6 we use the flexifield a lot, so I thought it would be nice to come up with a proper Drupal 7 solution for this way of creating a one the fly embedded entity system, but with proper distinction between node’s and embedded nodes. (Hooray for fieldable entities in core :))

Down’n'Dirty with self signed IPA files.

Do you notice the ‘DIRTY’ part in the title? Good, and take note upfront that I do condemn piracy and this little guide is not meant to pirate applications.

However, I am considering a little career switch from being a full time PHP developer into part time self employed Objective-C developer, and to be more specific into the mobile part. And before I am actually ready so become an official registered developer with Apple, hand them over $99 per year. I thought it was a more smart idea to jailbreak my iPad (mk1) with redsn0w, and use that device for debugging my coding experiments.

Created a self signed certificate conveniently called ‘iPhone Developer’ instead of my own name, following the guide found at Apple. But that was not enough, the iPad still refused to run code directly. Did some googling, but the route described on most pages found was to complicated. It involved to much steps, including copying files trough SSH, rebooting the iPad on every build. No way I was going to work like that..

But then… The sky opened, and sun started shinning.. Found a Rahul Vyas describing a lot of things, but also the way I wanted to work. Creating perfectly working self signed applications and running them on the real thing without any hassle.

So to make the above drama a bit more into a more practically how-to and get you, the reader started with the down part, download the mentioned and copy into your ~/Library/Developer/ folder.
Open up your terminal, issue a chmod 755 ~/Library/Developer/ so the python script become executable.

Open up your xcode project, go to Project -> New Build Phase -> New Runscript, and copy the code below into it.

export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
codesign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \

Switch my project from build for simulator to build for device, changed the code signing to the above created certificate and pressed build. The Xcode organizer still complained a little about not being able to attach a debugger but my application was running like a charm on my iPad.

Bookmark and Share

Twig for drupal, simple usage examples

These examples might be a little outdated.. Will rewrite into proper documentation soon…


As promised  some examples on how to use the twig-for-drupal engine. Part of these examples are written by Rik van der Kemp aka @cursief on twitter

After this the usage,and even the need for twig in Drupal will hopefully a bit more clear to you. Twig forces you into writing clean template code instead of using php logic because hrmm well you can ;)

Introducing, the twig for drupal template engine


This project is for those who like me, are getting that strange itching sensation in the neck when reading the amounts of PHP code in drupal tipplephip files. Not for the people who claim PHP is a template language and that a language in a language is a stupid waste of time. For all I care go ahead, and keep rocking the party like it is still 1998. To me PHP has come a long way since then with the usual growing pains, but it has become so much more then just a simple language to make personal home pages and thus a template system is no excessive baggage but a good companion in creating maintenance friendly code!

Compiling PHP 5.3.3, with nginx on ubuntu 10.4 for drupal 7


Since i made the plan to change from a rather expensive dedicated server to a much cheaper VPS solution, i started thinking about moving away from the sluggish apache2 stack. Fed by the fact that the PHP developers surprised me by suddenly announcing that the support for the php 5.2.x is going into security fixes when needed mode, i decided i might as well go all the way then. Moving to PHP 5.3.3 running a much leaner and faster NGINX HTTP server under Ubuntu 10.4 LTS using the new PHP-FPM instead of fastcgi

Running a local wildcard DNS server on your mac (update for mavericks)

Update for mavericks (10.9)

Named and bind are not packaged by default anymore, however the good people of menandmice provide a pre-compiled binary that saves you a lot of compiling with homebrew :)

Just go to and download the package.

Unzip it, and you get a folder called __Parent__ with a subfolder called __Parent__ and the package called “ISCBIND-9.9.4-x86_64-10.9.mpkg” double click to install and follow the instructions down below

Ever since I’am using my macbook pro with XAMPP as my primary development workhorse, i’ve been playing around with the hosts file every single time I started a new project. Until last week, where i suddenly realized that it was a rather stupid practice. After all i’am running a system that comes preinstalled with named. Yeah i know, a bit late… But still, sat down for a few minutes to (re-)read about zone files and how to get an wildcard DNS server up and running.

The goal was to have *.dev.local pointing to so i only needed to add/alter my apache vhosts.conf to fit my project needs.