Nov 1 D3.js fun with packagist dependencies

Starting playing with d3.js and the packagist API, I’ve tried to create dependency graph using from one or more packages you can select.

Just write the package name you want read dependencies of and it will display them in a nice chord graph layout. You can add packages how many times you want (as soon as your browser is able to handle it).

Read more


Oct 22 Symfony benchmark using HHVM

Yesterday Asm89 blogged about a custom version of symfony edited to run on Facebook’s HHVM. I’ve followed his great blog post (you can read it here) in how to setup HHVM to run the Symfony standard web application.

After that I’ve tested the performances compared to a nginx + php-fpm configuration and I wanted to share the results here.

Read more


Oct 13 BDD development in Symfony using real browsers

Unit testing is nice, behaviour testing is awesome!

Said that, everyone should run at least some unit tests, even if your application is simple. If you want to go a step further you can run behaviour tests, that means create features, stories, not...

Read more

Oct 8 Clearing APC cache using command line

Using Symfony’s APC autoloader you can improve performance by caching the location of each class. During a deploy, however, you may need to clear APC cache to be sure that if you move a class, things still works.

Read more


Oct 4 Scaling Symfony 2 with AWS OpsWorks

During the last complete rebuild of Goalshouter we needed to redesign our infrastructure to handle the big traffic we were expecting.

Our biggest difference between an everyday site is that 80% of the traffic is concentrated in some hours of sunday because most of the soccer matches are at that time. We needed a solution that was being able to scale fast to a large number of servers.

According to New Relic on sunday afternoon the requests per second increases by 20x in a couple of minutes. Our match processing tool is a bit resource intensive and we need enough power to let teams track their matches and people follow them.

Read more


Aug 29 Mysql on ramdisk via osx homebrew

Having mysql running on a ramdisk can be a much faster way to unit test a database intensive application.

Supposing you’ve installed mysql or percosa server via homebrew (cause the paths it uses) you can directly run this script to create a virtual...

Read more

May 18 Hyperlapse with multi-waypoint routes

Hyperlapse is an awesome library created by Teenhalax and let you create awesome Google streetview’s timelapse sequences.

Read more


May 12 Another switch?

Yeah I know, but “maybe” this is the last one.

We’re moving our work servers and I don’t want to have my own vps alive anymore.

Keeping vm packages updated, wordpress updated, deleting spam comments… Too many things to do and I have no time for that...

Read more

Mar 15 Capistrano: use a custom user instead of root with sudo

It’s a while that we use Capifony (capistrano addon for symfony 2 deployment) for our work projects.

This week we’ve switched to new servers so I decided to not use a custom user for nginx/php-fpm and stick to the default www-data. However, the deploy...

Read more

Nov 9 Symfony 2: Force incomplete users to complete registration

Last week I’ve completed social login into our work project using HWIOAuthBundle and I figured out that the twitter oauth wasn’t providing the user email address.

Since we use the email address a lot, also because without you can’t recover password...

Read more