deSymfonyDay Spain 2014 wrap-up

deSymfonyDayThe annual Symfony conference in Spain took place last weekend. This time the conference had completely different format: one day, one track, shorter talks (30-40 min) and an unconference. There was also a limit on the number of attendees, 150, to promote a sociable networking experience. The conference was awesome.

The event was held at the Casa Convalescència in Barcelona, a stunning symbol of modernist architecture which was declared a monument of historic and artistic interest, and also named as a UNESCO cultural heritage site.

Casa Convalescència

Casa Convalescència


I find the format of shorter talks and a single track very appropriate for single-day events. Talks were fast-paced and you don’t have to choose which ones want to attend.

There were about DDD, testing, dependency injection, SOLID, microservices and HHVM. I presented a talk on creating a cryptovirus for Symfony apps, not quite your standard PHP conference talk, but interesting as a proof of concept.

Creating a cryptovirus for Symfony2 apps

Creating a cryptovirus for Symfony2 apps

The objective of the talk was to create, for educational purposes, a simple cryptovirus for Symfony2 applications using public-key cryptography. I included strategies both to make it harder to detect and how to defend ourselves from such attacks. Cryptovirology studies how to use cryptography to design malicious software and public-key cryptography can be used to break the symmetry between what an antivirus analyst sees in regards to a virus and what the virus writer sees. The prototype I created encrypted user uploaded files and passwords pairs obtained from the login form. The presentation slides are available here:

The rest of the talks were very good. I would emphasize “DIC to the limit”, by Ronny López. Ronny is the technical lead at Social Point, one of the largest Symfony projects with more than 24.7 million monthly active users. He explained the challenges they faced and how they solve them to make the code easy to test and with an interchangeable infrastructure. Slides are available here:


Attendees proposed lightning talks of 10 minutes during the morning and the 7 with more votes were given at the end of the day. I loved this format, it is fast and allows you to learn about a variety of topics. I also gave a lightning talk about how GZIP works in 10 minutes, based on the post I wrote a few weeks ago, but if I had to choose only one talk, would be “TDD is dead”, by Carles Climent.

Carles started this talk shockingly: “My name is Carles and I am necrophiliac”. Then he explained why: “As TDD is dead now (in reference of famous David Heinemeier post) and I still love it, so I must admit it, I am necrophiliac”. Carles explained how TDD changed the way he works and encouraged us all to give it a try.


Organization proposed a challenge to all attendees: write a PHP program able to print the song “99 tests are failing” with the fewest characters:

99 tests are failing in the repository, 99 tests are failing.
Take one, fix it and pass it around, 98 tests are failing in the repository.
98 tests are failing in the repository, 98 tests are failing.
Take one, fix it and pass it around, 97 tests are failing in the repository.

The winner was Javier Beaumont, who was able to do it with only 237 bytes. The prize was a ticket for the next SymfonyCon that will be held in Madrid. There is a similar challenge here if you want to have fun.

<?for($i=100;$i;){$s="\r\n";$p=--$i-1?"s are":" is";$t=($i?:99)." test$p failing";$r="$t in the repository";$b.=$i?($i<99?"Take one, fix it and pass it around, $r.$s$s":"")."$r, $t.$s":"Go to another suite and start again, $r.";}echo $b;

No clean code here! :)


ServerGrove was, once again, one of the sponsors. We love all conferences, but deSymfony is always special. We missed Pablo this time but I am pretty sure he won’t miss it next year.

Photo: Casa de Convalescència – 354/366, by Roger Ferrer Ibáñez.

June 03 / 2014
Author Raul Fraile
Category Conferences, PHP, Symfony
Comments No Comments

New TLDs


Upcoming Conferences



PHP New Zealand

CSSConf 2014 Recap


On Tuesday (05/27/14) I attended CSSConf for the first time. It was held at the Amelia Island Resort, it’s a short hop from Miami, so I decided to check it out. I was not disappointed; what an excellent conference. The venue was amazing, organization was impeccable, and the speakers were fantastic. It was interesting to see how CSS is evolving and how other front-end developers are integrating their workflow and continuously optimizing their code to make it faster and more modular. I found it especially interesting to hear Nicole Sullivan (@stubornella) talk about producing manageable CSS code and workflows and getting teams of designers and developers on the same page in her “Style Guide Driven Development” talk. She spoke about about her workflow at Pivotal where she faced many similar problems as we are facing developing our new control panel. It was reassuring to see that she made some of the same decisions we made, and I learned a few things that we’ll have to implement soon. She showed us the Trulia Styleguide Generator, our current styleguide sucks and we need a nicer one, this seems to be a really nice tool.

I also enjoyed Lea Verou’s talk. I follow her on Twitter and she always has interesting things to share. She did not disappoint when she gave her awesome talk about colors: The Chroma Zone: Engineering Color on the Web. Just when I thought I knew everything there was to know about colors in CSS, I realized I knew nothing… ok I knew some things… but this was a great talk with well presented information. Here are a few things I learned:

  1. You can use text-shadow and border without defining the color. It will inherit the color property from the text. Who knew… this works:
    div {
        color: #000
        text-shadow: 1px 1px 1px;
  2. currentColor is the first CSS variable. It basically gets the current “color:” value. She gave an example using it in gradients. It was cool, but since I hate gradients I don’t see myself using it anytime soon. Nonetheless, I was happy to learn something new.

She also spoke about the new CSS Color Module Level 4. Some new shiny goodies to manipulate color coming up. Here are a few things:

  1. 50 (and more!) shades of gray: gray will become a function. Ex: gray(40%).
  2. 8 digit HEX codes. The regular 6 plus two extras for the alpha channel.
  3. Hwb – hue, white, black. I found this pretty cool.
  4. The new color() function with the color adjusters.

Zach Leatherman gave an awesome talk about icon fonts, or fonts in general. He was right when he said his talk should have been called everything you need to know about Web Fonts. It was a great presentation and he kept it interesting… and funny. He had some good insights on icon fonts. As a designer you need to consider your audience and there are several situations where font icons fail us. He has a great blog post about it: Bulletproof Accessible Icon Fonts. He shared with us A-Font-Garde, a small project to ensure redundancy when using icon fonts.

Angelina Fabbro shared some cool tools I did not know about:

1. Mobile emulation on Chrome
2. New tool in Firefox
3. Network link conditioner helps you simulate different bandwidth connections to test your app.

She also had a great tip to get z-index working correctly on mobile:

body {
z-index: 0;

Patrick Hamann spoke about the Guardian redesign…what an awesome project! The Guardian Website has over 100 million unique visitors using over 6000 different devices. Not only that, after a survey their users rated fast page load times the second most important requirement after content so they set themselves the goal of having every page on the new Guardian site to load under a second, given that 600 milliseconds of this was already being eaten up by latency, this was a daunting task. They came up with some ingenious solutions; great things happen when you work under constraints. One of the most interesting concepts, which was the core of his talk, was separating their stylesheets into critical and non-critical CSS, and having the critical CSS load first and then loading the non-critical CSS at the end of the page with the Javascript. To render the critical CSS faster, they delivered it as inline css rather than a separate file thus removing one extra http request. They also cached some of their CSS in the local storage when it was available. And in case you are wondering, they reached their 1000 milliseconds goal.

Alex Steton gave a hilarious talk about the history of CSS name colors. I wish I could talk more about it, but I was laughing so much I forgot to take notes.

Finally Paul Irish spoke about performance optimizations for parallax scrolling. It was a really interesting talk into how the browser deals with animations. The big take-aways from the presentation: 4 things that a browser can transition jank-free:

  1. Size -> transform: scale(n)
  2. position -> transform: translatex(npx)
  3. rotation -> transform: rotate(ndeg)
  4. opacity -> opacity: 0…1;

Come to think of it, you can do quite a bit with these four things.

All in all it was a fantastic conference, I look forward to next year’s.

Speaker slides:

Patrick Hamann -

Sara Soueidan gave a nice talk on Styling and Animating Vector Graphics with CSS -

Antoine Butler spoke about height based media queries -


May 28 / 2014
Author Kim
Category Conferences
Comments No Comments

New TLDs


Upcoming Conferences



PHP New Zealand

DrupalCamp Spain 2014 wrap-up

DrupalCamp Spain 2014

DrupalCamp Spain 2014

Last weekend I attended DrupalCamp Spain at the beautiful Centro Cultural Bancaja, in Valencia, Spain. Three whole days of Drupal. This was my first Drupal conference, and… wow! The Drupal community is huge and full of passionate developers eager to learn. ServerGrove was one of the bronze sponsors and consolidates its support for the Drupal community. I was there because I was invited to give a talk about the Symfony components that are being used to create the new version of Drupal (Drupal 8). I got some great feedback from the attendees and I am excited to have the opportunity to participate the Drupal community.

Symfony in Drupal 8

In my talk I pointed out some of the problems of the current version of Drupal, which is mature, robust, and highly extensible, however, it lacks some of the recommended best practices for software engineering. This makes it harder to maintain and find new contributors. I borrowed one of the examples from Anthony Ferrara‘s talk on “Development, by the numbers”, which discusses some metrics of the drupal_http_request() function in Drupal 7, such as the cyclomatic and NPath complexity, and shows that it really needs a refactor, or in that case, use an HTTP abstraction component like HttpFoundation.

Fortunately the (still work in progress) 8th version of Drupal, 50% of its external dependencies are Symfony components, and others such as Twig, Assetic of Symfony CMF come also from the Symfony world.

In the talk I explained nine components being used by Drupal 8:

  • HttpFoundation: Abstraction of the HTTP protocol (more info).
  • HttpKernel: Defines an abstract process to convert a Request object into a Response object (more info).
  • ClassLoader: Class autoload using MapClass or PSR-0 strategies.
  • Routing: Drupal 8 uses CMF/Routing, which extends from the Routing component providing the flexibility needed by a CMS (more info).
  • EventDispatcher: Alternative to the classic Drupal hooks. Implements the Mediator Pattern (more info).
  • DependencyInjection: Implements a dependency injection container to centralize the object construction.
  • Validator: Provides validation tools for values or objects (more info).
  • Serializer: Serializes PHP objects into different formats (JSON, XML…), as wel as in the other way.
  • Yaml: Loads and dumps data in YAML format. A useful format for configuration files written by humans.

Slides are only available in Spanish, but they will be translated to English too as soon as possible. If you understand Spanish, check them out:

Other talks

It was a great opportunity for me to learn different approaches for common problems from a different community. I am used to attend PHP and Symfony events, but as I said before, this was my first time ever in a Drupal conference. The talks I liked most were:

  • WTF! Huge errors in projects told by their own authors: This talk was hilarious. 5 experienced Drupal developers told their unspeakable errors as beginners, such as not using a CVS and losing all the work the night before the deadline.
  • Sockets to the limit: The talk went over an interesting use-case to have a centralised server to manage Symfony translations, and using websockets to “install” them in any server.


Just a photo to see how awesome this community is…


BTW, can you find Waldo? :)


For the second time in a row, ServerGrove proudly sponsored the most important Drupal conference in Spain. We are really happy to be a small part of this great event and hopefully we will keep collaborating in the future. If you attended the conference, remember that we have a couple of coupons for you: “DPSpain15″ for a 15% monthly discount in VPS from VPS 100 to 700, and “DPSpain20″ for a 20% yearly discount in VPS also ranging from VPS 100 to VPS 700. Take a look at our VPS plans.

Photo: Foto de Grupo Drupalcamp Spain 2014, by Pedro Lozano.

May 19 / 2014

New TLDs


Upcoming Conferences



PHP New Zealand

WordCamp Miami 2014

The weekend of May 10th & 11th we attended the 5th anniversary of WordCamp Miami of which ServerGrove was one of the sponsors and I had the honor of speaking at.

WordCamp Miami T-Shirt Art

One of the framed t-shirts of previous WordCamp Miami

The conference started early for those who arrived on Thursday and attended the networking party offered by LiveNinja at their shiny new office in WynWood. It was a great time to catch up with local developers and designers as well those that came from as far as L.A. and the U.K. It was also great meeting some of the organizers of WordCamp NYC and WordCamp Orlando.

For its 5th anniversary, WordCamp Miami had a new venue. The Student Center Complex at the University of Miami was a great venue for the 700+ attendees, speakers, sponsors, and volunteers. The UM campus is beautiful and the Student Center had great meeting and social spaces.

There were also great talks, including one on WordPress Security by Dre Armeda. He went over some great security tips for WordPress including a .htaccess directive to be placed in the uploads directory to prevent PHP scripts from running there.

We offer a similar tip done in a different way.

RemoveHandler .php .phtml .php3 php4
RemoveType .php .phtml .php3 php4

Diane Kinney also had a great talk for people looking to hire developers on how to manage themselves, the project, and the developers. It’s not an easy thing to hire and trust someone else to build one of the most important tools your business has. Diane’s talk was honest about the expectations to have when hiring a development company and how to properly manage yourself and the project.

My talk on Linux command line basics was the first talk on the Developers track. I covered some basic commands like find and grep as well as how permissions worked. I was glad to see a few people ask questions during the talk or come up after and discuss ways of how to use command line tools to manage their sites.

One thing that was a new experience for me was the WordCamp Happiness Bar, a meeting space where attendees could meet with developers and designers to ask questions about how to solve specific issues with their sites. I spent a couple of hours helping with the Happiness Bar on Sunday and it was great to see the different level of questions that attendees had.

Overall it was a great conference professionally organized by the WordCamp Miami team and it’s no surprise that it’s still going strong after 5 years.

May 17 / 2014
Author Adrian Cardenas
Category Conferences, PHP
Comments No Comments

New TLDs


Upcoming Conferences



PHP New Zealand

PHP 5.5.12 and 5.4.28 released and available on ServerGrove

This week the PHP development team released PHP 5.5.12 and 5.4.28. The release contained numerous bug fixes, including an important one for CVE-2014-0185 regarding PHP-FPM. If you run PHP with PHP-FPM we recommend you upgrade ASAP.

If you are using our repositories, upgrading is simple. Here are instructions on how to use (or upgrade) our Ubuntu/Debian or CentOS PHP packages.

Other updates


Pimple is a small Dependency Injection Container for PHP that consists of just one file and one class (about 80 lines of code). It is used by Silex and other projects. Just a few days ago, it was released as an implementation of the library written in C as PHP extension, providing a performance boost for those that need it. We have prepared packages of the extension for CentOS 6, Ubuntu 12, and Debian 6. Ubuntu 14 and Debian 7 will follow soon.

Package names for Ubuntu & Debian:

- php53-pimple_2.1-3_amd64.deb
- php54-pimple_2.1-3_amd64.deb
- php55-pimple_2.1-3_amd64.deb

Package names forCentOS:

- php53-pimple-2.1-1.x86_64.rpm
- php54-pimple-2.1-1.x86_64.rpm
- php55-pimple-2.1-1.x86_64.rpm

We will update these packages as new versions come out. Please use this at your own risk!

HHVM / Hack

Some days ago we announced our packages for HHVM / Hack in our repositories. Give it a try!

May 01 / 2014
Author Pablo
Category PHP
Comments No Comments

New TLDs


Upcoming Conferences



PHP New Zealand