One Shoe Hackathon: Conny

Yours truly on Medium:

12 developers, two teams, 24 hours. The start of the first One Shoe Hackathon was friday, february 17 at noon.


Our team implemented Conny, the next generation of people tracking. Based on camera images, Conny will keep track of where people are in the building. The Minimum Viable Product was slightly less ambitous; personalized greetings when entering the building.

Go to the original article »

Posted in Uncategorized | Leave a comment

Star Wars: Machete order

If there’s anything to know about Star Wars, it’s that the very first film released, way back in my birth year of 1977, was amended with a rather confusing label, shortly after its first release (when it became clear there were going to be sequels): “Episode IV”. Episodes V and VI followed only a few years later. When I first watched Star Wars (years later, I might add, I was proably ten or twelve), I figured it was a little gag, a way to make the story more mysterious and imply much had happened before it already. Then, 16 years after the then last Star Wars movie, in 1999, Episode I was released, followed by Episodes II and II with three-year gaps in between.

When introducing the films to new viewers (something I hope to do someday, being a long-time geek and a much-shorter-time dad), there is the obvious problem of the order in which to show the movies (some might say there is no problem, since there are only three movies worth watching, but I’m not that much of a purist). Since episode order wreaks havoc with some important twists in the original three movies, you might be tempted to go for “release order”, but I also heard of something called “Machete order”. Last week, I stumbled across the original blog post that introduces it as a thing:

Unfortunately, Release Order is also an instant failure, and the reason is a single shot. If you’re watching the official releases and you view the original trilogy first, then after the Empire is destroyed and everyone is celebrating, Luke looks over at his mentors, Ben Kenobi and Yoda, and suddenly they are joined by… some random creepy looking teenager who needs a haircut.

Machete order is IV, V, II, III, VI. Yes, that leaves out I, and when you read the blogpost, that starts to make a whole lot of sense. The above quote is not the only reason Machete order is a good idea, because a compelling case is made that the story as a whole actually works better in this order, with parallels in IV/V and II/III, and then the whole thing being tied up in VI. Next time I rewatch the Star Wars saga, I’ll give this a try for sure.

Update 20/2/2016: Not too shortly after finishing this post, I actually started watching the movies again, in Machete order. It works. And quite well, I might say. Wholeheartedly recommended. Feel free to watch Episode I, but more as part of the anthology, like Rogue One, and not so much as part of the saga.

Go to the original article »

Posted in Uncategorized | Leave a comment


John Gruber, 5 years ago:

A decade or so from now, when, say, I’m waiting for my son to come home from college for his winter break, and, when he does, he wants to spend his time going out with his friends — how much will I be willing to pay then to be able to go back in time, for one day, to now, when he’s eight years old, he wants to go to movies and play games and build Lego kits with me, and he believes in magic?

This captures my current sentiments perfectly. My daughter is 4 and my son is 20 months old.  I couldn’t be more aware of how fast everything is going and how precious these moments will be, not too long from now.

Go to the original article »

Posted in Uncategorized | Leave a comment

Running Drupal Javascript tests on Vagrant

The last three days, I was at the code sprint for the Drupal Camp Munich 2016, hosted at the Hubert Burda Media offices. It was a great experience. It was my first community code sprint, I’ve met some great people and I’ve learned a ton in three days. I have to thank the organizers of the sprint as well as the camp organizers, and of course my employer One Shoe to give me this opportunity. We have been working on the Media Initiative, to get a solid Media solution into Drupal core in an upcoming minor release (e.g. 8.3 or 8.4). Christian Fritsch, one of the main developers for the Media Initiative, asked me to have a look at one particular issue that is quite important to get sorted out, because it aims to solve a weird usability problem that certainly wouldn’t fly for a core component. I’ve been able to push it quite a bit forward in those three days. Until I got to getting Javascript tests to run on my setup, that is.

There are some solid tutorials available to get you up and running with Javascript testing for Drupal. The one I was pointed to is this one from Alex Pott. Everything seemed to go OK, until I actually went to run the tests. The test would consistently get a 403 when trying to go to the login page of the test environment. When running the test from my Mac directly, the Simpletest install didn’t seem to spin up correctly. In the end, it seems my setup with Vagrant is at the heart of the problem.

Giving this some thought*, I realised that the test environment having to run on the Vagrant box, while the test itself was running on the Mac was the likely culprit. The tutorial stresses that it is important that the tests are ran with a user with the proper permissions. Presumably, because it will need to initialize the environment which will then need to be accessed by the webserver to run the actual test. So, what do you do? Install phantomJS on Vagrant? Sure, that would have worked, most likely. But what worked too, was just setup a little port forward from port 8510 on the Vagrant box to the same port on the host:

ssh -L 8510: localhost

This is issued on the vagrant box. You may need to change the IP address of your host, if it is different, and you will need to provide the password for the vagrant account on the vagrant box (which usually is just “vagrant”).

I both love it and hate it when the solution to a problem is a one liner.

*: This sort of insight usually doesn’t come to me at the end of a long day of hard work, but instead in bed, in the shower, or, in this case, on the Lufthansa flight to Amsterdam while gazing out of the window at all the pretty lights below.


Posted in Uncategorized | Tagged , | 1 Response

Debugging drush scripts with xdebug and PhpStorm on vagrant in 2016

This is a subject that seems to come up again and again. I figured this out once before, but back then I was using Eclipse, while I am now a PhpStorm devotee. Also, I’ve long since started using Vagrant, which means that every debugging scenario is now “remote”. Usually, this is not a huge issue, but with command line debugging, this presents a bit of a challenge.

Randy Fay has done a nice write-up back in 2013, which covers most of the bases. It does leave one missing link, which seems to have come up only recently; a recent change in drush has broken debugging through xdebug, because it is now using pcntl_exec() to execute the actual script (don’t ask me for the technical details, I haven’t delved into that too much). As is so often the case, Stack Exchange provided the missing piece of the puzzle; it’s possible to circumvent the “decoupling”, that seems to occur due to the pcntl_exec(), by using drush.launcher as the entry point.

As much for my own reference as anyone else’s, these are the key points from both Randy’s post and the SE topic:

  • Set up a “PHP Web Application” for debugging the command line. The sole purpose of this is to be able to provide a path mapping when running the command in Vagrant.
  • Enable xdebug debugging for the command line in your Vagrant box. In my case, this simply meant symlinking the same xdebug.ini from my /etc/php5/cli/conf.d directory as I was using in the /etc/php5/apache/conf.d for web debugging.
  • All executed code needs to be available in the project, including drush. You can accomplish this by e.g. installing drush as a composer dependency (also, remember to execute drush from your project).

The following you will need to do every debugging session:

  • Use PhpStorm’s “Listen for PHP Debug connections” button
  • Set the remote debug client on the command line using (or whatever is the IP-address for your host machine when coming from the Vagrant box; the xdebug.remote_connect_back that is likely in your config will not work for the command line):
    export XDEBUG_CONFIG="idekey=phpstorm remote_host="
  • Set the server configuration. Make sure the name you use matches the server name you configured in PhpStorm:
    export PHP_IDE_CONFIG="serverName=cli"
  • Execute drush by substituting “drush.launcher” for the regular drush command. Make sure you use the drush copy from your project. For example:
    ../vendor/drush/drush/drush.launcher migrate-reset-status posts
Posted in Uncategorized | 1 Response

Cutting The Mustard: Future Friendly Browser Support

Was just linked to this from an issue that is highly likely to make a big impact on Drupal’s future (Select a new client-side framework for Drupal core, worth a read in itself if you’re interested in that sort of thing). Even though it’s from 2013, it’s still a very relevant (and entertaining) set of slides about responsive web design.

Show me your fight face.

Go to the original article »

Posted in Uncategorized | Leave a comment

Apple TV: keeping the score


A little over a year ago, I wrote a blog post about my hopes and dreams for Apple TV. Then, finally, at the last Apple event on september 9 2015, Apple unveiled their plans for the next iteration of their smart TV platform. And, it has been on sale since late last month. I ordered one on the very first day of pre-orders, so I’ve had it since a few weeks now. Which means, it’s time to make up the score. Read More »

Posted in Uncategorized | Leave a comment

Video: Building Lego Technic Service Truck

Last year, my employer gave me (and all of my colleagues) a gift certificate as a christmas present. After a little pondering, I decided what to do with it.

Being the geek that I am, I decided to create a timelapse of the build process. Being the lazy *ss that I am, it took me almost a year to dive into turning the raw timelapse into a complete video. But, I have, and here it is.

It’s worth noting that I made a bit of a false start with this a few weeks ago, when I fired up iMovie for the very first time, but could not quickly figure out how to get the result I wanted (it’s not easy being green, er, a perfectionist). Various podcasts I listen to have had sponsorships from and they have promotions running of ten day free trials, so I figured, they must have a course on iMovie. So they did. Although our relationship was off to a bit of a rough start, it must be said that the quality of the course is top notch. Also, you can cancel the subscription before you start paying and they stressed they’ll send a reminder email before the trial expires. can improve the initial experience by not requiring a credit card up front, but other than that, they lived up to the expectations.

On the subject of Lego, we’ve just had the anual christmas diner again, and we got another gift certificate. I decided to shell out and get one of the last of the enormous Lego Technic Unimog set. It’s discontinued, so I can’t link to an official page, but suffice to say, there’s more where that video came from.

Posted in Uncategorized | Leave a comment

Concept: My hopes and dreams for Apple TV

Samsung TV showing the home screen of the Apple TV UI concept by Andrew Ambrosino The illustrations on this article are from the excellent Apple TV UI Concept by Andrew Ambrosino. They have little to do with the ideas I put forward in this post, but they sure do look pretty. I have been an Apple TV owner on and off since the very first one from 2007. It wasn’t in the same small black puck from factor you may know from today. It was much larger, sort of a hybrid between the design of the Mac Mini of its time, and today’s Mac Mini; the design cues were clearly from then, with an aluminium “band” serving as the front, sides and back, and a white-and-grey plastic top (but where the Mac Mini was a grey Apple logo on a white field, Apple TV had a white “tv” on a grey field). The measurements, however, were much more like today’s Mac Mini; much lower, deeper and wider than the Mac Mini of its day. That Apple TV is still lurking somewhere in my attic, and it was my first entry into the Apple ecosystem. The main reason to get it was to get a source for HD video material, because I had just bought a HD Ready Sony Bravia TV. It turned out to be a gateway drug for Apple stuff. Our household is exclusively Apple nowadays; iPhones, iPads and MacBooks all around. Read More »

Posted in Mac | Tagged , , , | 2 Responses

Comparison of bookmark services

I have been a Delicious user since 2006. Of course, some time ago, we had a long episode of uncertainty, but that has come and gone. Things have quieted down around Delicious. I’d almost say too quiet, and I’m wondering if we are going to suddenly be greeted to a “Sorry, Delicious is no more” message some time in the not too distant future. Also, I’ve had some small frustrations lately, which I won’t go into here. To make a long story short, there were some reasons for me to go and look for alternatives to delicious. There are many articles about that on the Internet, but obviously, none are based on my priorities. So, what am I looking for in a bookmarking solution?

Read More »

Posted in Uncategorized | Tagged , , | 3 Responses