Symfony2: Map validation getters message to entity field

In Symfony2 you can use getters to validate entity values. That works fine, but the validation message is mapped to the form, and not to the field. If you want to map the message to the field, you can do that in your form class setDefaultOptions method. Let’s take the example from the Symfony2 book: ...

connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream

After updating Nginx and PHP5-FPM, I suddenly couldn’t load PHP-pages anymore on my server. After some Googling I found a post that helped me with this issue. The error I found in the logs was the following: connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream And the solution for this can be ...

Create an empty branch in Subversion

Sometimes when I work on a project, I want to experiment with something that I don’t want to have in the branch I’m using to develop. An experiment that is part of the project, but has nothing to do with the existing code base of that project. So an empty branch can be handy. It’s ...

Nginx + PHP-FPM + MySQL + phpMyAdmin on Ubuntu 12.04 40

Since 3 years I’m completely into Nginx. For some reason I was always struggling with Apache, and that kept me from running my own server. But then a colleague told me about Nginx, and how great it was. So I looked into it, and the things I read were great. Compared to Apache, Nginx is ...

Update of my personal website

Update of my personal website
The first version of my personal website (http://kevin.vandenhaute.me) was just written in plain HTML and used some CSS and JavaScript. The structure of the page was based on version 2.1 of Foundation, a responsive front-end framework. It helped me making my website responsive, so I could deliver the same page both on desktop as mobile ...