Hi there,

I'm Stef van den Ham. I write Sass/LESS/CSS, HTML5, Javascript, PHP, Bash with Sublime Text 2 for fun and profit. I work as CTO at NoProtocol in Amsterdam.

October 8th 2015

Getting your React Native App on an iOS device

As I was playing around with the awesome React Native library I encountered a few small hicups getting an app running on an actual device, so here's how I made it work for me.

June 3rd 2014

Writing Browserify modules for your Angular app

Following up on my previous Let's Build an angular app with Browserify post I got a few questions on how to create modules for your app. Let me show you.

May 25th 2014

Recording a website with PhantomJS and FFMpeg

When I realised you could easily generate screenshots from a site with PhantomJS I just needed to know if I could take it one step further, and record a video.

May 5th 2014

Lets build: An AngularJS app with Browserify and Gulp

Today I want to show a generic workflow and setup I have used a lot lately when working on building apps with Angular. It uses Gulp as a CI system and Browserify to minimize code clutter and maximize awesomeness. So let's jump in.

December 29th 2013

How to use environment variables in your Angular application

If you develop a website that uses multiple environments such as development, staging and production you probably have a configuration file of sorts to handle things like database settings, mail server credentials, and so on for your backend system.

December 8th 2013

HTTPIe, a command line HTTP client

Stumbled upon HTTPie, a command line HTTP client. It's pretty awesome. Basically it's Curl on steroids, as it has an easy interface and syntax highlighted output.

December 8th 2013

Blogging with CabinJS and Grunt

I just want to mention CabinJS. It took me all of 10 minutes to set it up, and another 10 to get the automatic deployment to Github Pages working. The other 4 hours this sunday I spent on layouting, designing and tweaking the blog you're reading now.

August 6th 2013

A more colourful cat in your shell

I just wanted to quickly share a shell alias I have been using lately to get some more color in the terminal when you cat a file.

February 28th 2013

Customize the terminal

I love the terminal. Besides the fact it makes you look awesome while using it, it can also do about a gazillion different things. Most of them useful.

February 9th 2013

Getting used to Vim

So there we go. Writing this post in vim. Macvim to be exact. Trying not to touch the arrow keys, not use the h-j-k-l too extensively either, work with A and I a lot, and generally trying not to cock things up too much by hitting the wrong commands.

November 6th 2012

Updated the PHPUnit CakePHP installer

Just a quick note, the CakePHP PHPUnit installer has been updated to use version 3.7.8. Go grab it here if you are no fan of PEAR and want a self contained PHPUnit testing system.

October 26th 2012

Blogging with Octopress

As some of you may know, even though I don't blog all that often, I do mess about with it a lot. Mostly on what makes it run. Switching between Croogo, a custom built CakePHP site, Wordpress .. and back again.

September 18th 2012

Spotify Boilerplate App

A while ago we were proud to be releasing 2 of the very first Spotify Apps in the Netherlands at NoProtocol. For a long time since I've been planning on creating a Boilerplate in which we could put all the best practices and redo some stuff in hindsight.

May 16th 2012

Good times with Watchr, Coffeescript and LESS

I have been working on a pure HTML front-end for one of the pet projects I'm doing. A lot of fun, but while developing, running the terminal commands to compile both the .less and .coffee files gets a tad tedious. "Watchr" to the rescue! With this little gem you can watch specific folders or file extensions and run commands based on the files you watch.

May 9th 2012

Format associative JSON to work with Knockout.js

I recently started creating a RESTful API in CakePHP to work with a Knockout.js frontend.

February 24th 2012

Using Sessions in PHPUnit Tests with CakePHP

I was breaking my head over failing unit tests when trying to test a simple Controller that was saving a new record.

February 11th 2012

Spotify Preview Build expired

Today I decided to tinker some more on our Spotify App, only to find that the Preview Build had expired, and was not gonna launch. Period. Great, so now what?

February 5th 2012

Updated LESS component for CakePHP

I decided to have a look at Twitter Bootstrap 2, and had it run through my LESS Component. I then realized the component didn't support subfolders!

December 6th 2011

Loading external files in PHP the better way

Sometimes you run into "weird behavior" when using file_get_contents in your code when retrieving external data. I noticed this for instance when accessing the Facebook Graph API the other day. When using file_get_contents the results were so much different than when using cUrl.

November 29th 2011

PHPUnit Installer updated to 3.6.4

Just a small update .. I updated the PHPUnit Installer Shell for CakePHP 2.0 to use version 3.6.4.

November 11th 2011

Installing PHPUnit manually for CakePHP 2.0

I was trying to get into Unit Testing a few months ago. It was a steep learning curve and eventually I gave myself a non-excuse and decided to wait for Cake 2.0 as that would have PHPUnit and it "wouldn't make sense to learn SimpleTest" at that time.

October 14th 2011

Use GZip with PHP

I recently started using GZip headers in my websites and the results are simply amazing. Right up there with coffee, sneezing polar bears and green traffic lights.

September 10th 2011

Using LESS in CakePHP

I was a bit bored this morning with my previous Less component, so decided to rewrite the thing and added some new features such as caching. It's pretty straightforward and simple to set up. If you can't wait, the code is available here. For more information, read on.

July 10th 2011

Using Markdown in CakePHP

Markdown rocks. I lately fell in love with it when I was setting up this very blog. You can just write easy-to-read and easy-to-write plain text files, and Markdown takes care of the rest.

May 26th 2011

How to remove a Submodule from your Git repository

Submodules are awesome. Adding them is easy enough. But how about getting rid of them again? In this short post I'll share how to do just that.

May 22nd 2011

How to handle multiple domains with CakePHP

Lately, we've been working with multiple environments/servers for our websites to be able to have them approved by clients before going live. However, following set up can also work nicely when you develop your sites locally and don't want to keep changing the configuration every time you upload it.

April 14th 2011

Using SASS in your next CakePHP project

I heard a lot about SASS, mostly a lot of people raving about how it was the best thing since chocolate. When I first saw some examples I thought the idea was good, but didn't see the point of learning a new syntax in order to not having to use the CSS syntax. Because, honestly, how does typing some curly brackets and semicolons hurt?

April 11th 2011

Setting up CakePHP with MAMP Pro on Mac OSX

I'd like to use my first post to describe how I set up new projects in a simple way that works best for me. My setup is pretty straight-forward, really. I know some people who mess about with include-paths so they can run multiple apps on one cake-install, but since I work for various clients and even more various projects I like my project folders to be self-contained.