Cees-Jan

How Xdebug Made HHVM Look Super Awesome

Two weeks ago I tweeted about HHVM beeing a lot faster then standard PHP on a certain set of Travis CI builds. No matter how awesome that tweet looked, the timings it showed are influenced and accurate. Let me tell you why.


Read on →

Cees-Jan

Device Light Level Detection

A few days ago I ran into this article by Tomomi Imura about ambient light level detection and use by the websites. Immediately intrigued by the possibilities this opens up I started digging a bit further and think of how I could use it in my upcoming redesign. (Looking something up in the middle of the night half a sleep, on a site with a full white background is a near instant headache for example.) There was one thing missing, correct me if I’m wrong, a simple way to test it on your device (if supported). Hence this post.

Maglite aimed at Nexus 5


Read on →

Cees-Jan

Counting Your S3 Buckets the Lazy Way

As a programmer, counting a bunch of items on a webpage is a quick task when you automate it. In this tiny post I’ll explain how to count your S3 buckets with a single line of jQuery.

Amazon Web Services Logo


Read on →

Categories: AWS - JavaScript - S3 - jQuery

Cees-Jan

Stripping Tracking Cookies With Varnish

The otherday I was messing with Varnish to get caching up and running correctly. One simple tool helped with that, pointing out something this Varnish noob has missed out. The age for everything was 0. Tracking cookies where the cause of that.

varnish vcl file


Read on →

Cees-Jan

Double Return Type Docblock Completion in PHPStorm

After getting my hands on a PHPStorm key at PFCongres last year I’ve been using it exclusively for all my PHP projects, ditching Netbeans in the process. Yesterday I tweeted about how smooth PHPStorm picks up mixed return times and autocompletes the docblocks for it. I’ve been asked to do a quick post on how to make it do that.


Read on →

Cees-Jan

Getting Started With HHVM Testing on Travis CI

The good people over at Travis CI added HipHopVM support to their build VM’s. Allowing you to test how your code runs in Facebook’s PHP VM. While HHVM might not be ready for prime time usage for all of us, in my opinion it is a good thing to start testing against it and see how it performs.

Test matrix with HHVM build succeeding


Read on →

Categories: HipHop VM - PHP - Testing - Travis CI

Cees-Jan

Listening on Twitter Streams With ReactPHP

For a private project I needed twitter timeline widgets. Since twitter has dropped support for non-authenticated widgets I had to come up with something better. Something cooler and more sophisticated then a standard widget. But above all of those, only a twitter screen name should have to be specified. This is where ReactPHP comes in.


Read on →

Categories: PHP - ReactPHP - Streams - Twitter

Cees-Jan

Serving Websockets and CakePHP on the Same Domain and Port With Nginx

While working on my CakePHP Ratchet plugin I got to the point where my server had to be prepared for the new way of communication. Lukely nginx released 1.3.13 with websocket support recently. Thus allowing to serve both the website and websockets over the same port and hostname. (Key if you intend to use cookies.)


Read on →

Categories: CakePHP - Nginx - Websockets

Cees-Jan

Keeping Your Disqus Comments Migrating From WordPress to Octopress

When migrating to Octopress I wanted to make sure the comments would follow me from WordPress. Since Disqus is build into Octopress it requires near-zero setup time, but when taking your precious comments with you it gets slightly harder, just a bit. To export my post from WordPress I’ve used exitwp by Thomas Frössman. It does a brilliant job exporting the posts (though I had some issues with custom markup code) and metadata. Most importantly the wordpress_id field, we’ll be needing that.


Read on →

Categories: Disqus - Octopress - WordPress

Cees-Jan

Moving From WordPress to Octopress

WordPress has become an increasingly uninteresting platform to blog on. recently I’ve fallen in love with the simplicity and robustness of markdown files. Though WordPress has several plugins doing markdown @Ceeram and @kvz pointed me to Octopress. It builds on the simplicity of markdown files and utilizing Jekyll creating a rocksolid blogging platform. (Heck Github uses it for github pages so it can’t be wrong!)


Read on →

Categories: Octopress - Wordpress