Donner à votre existant PHP
l'évolutivité dont votre business a besoin
Notre engagement :
Une équipe d'experts dédiés à votre projet. Une relation de confiance fondée sur la transparence.
Les sociétés qui nous font confiance :
PME ou grand compte, Theodo s'investit pour la réussite de votre projet
L'actualité et la veille technique Theodo :
La progression, la curiosité et l'innovation, valeurs fondamentales chez Theodo
Symfony2 unit database tests
Le 30/09/2011 - 10h52
Today I will explain how to test your entities in a Symfony2 and Doctrine2 project. To achieve our work, we will work on a location model which will look somewhat like this: Location: - address: string, required - zip code: string, required - city: string, required - country: string, required Test Driven Development In the test driven development (TDD) world, a best practice is to start wr...
Symfony2: Working with multiple databases
Le 26/09/2011 - 5h05
Symfony2 has been around for quite a while. Personally, I love how much PHP-oriented it is. It feels much closer to the language base than the first version of the framework. It means less of the magic and more of the important decisions in the hands of the development team. But there is no real framework without some magic, which is sometimes really hard to master. Enough of the introduction,...
“Adopt devops philosophy” at the Open World Forum
Le 19/09/2011 - 4h07
Version française plus bas Save the date! Theodo will be present at the Open World Forum, as I have been selected to talk about “Adpoting devops philosophy” on Friday Sept. 23 at 16:30. More info about the conference here: http://www.openworldforum.org/Conferences/Adopter-la-philosophie-DevOps I am very happy to be able to spread the good word in such an important conference! The ma...
Massive data import! – Part 1
Le 01/09/2011 - 11h53
We often have to face the problem of importing data off an Excel file with thousands lines. PHP is not suited for this task, it’s slow and there is a high risk for the import to crash due to “memory limit” or some other annoying stuff like that! So instead we chose a better way by using pure SQL which is much faster at this kind of operation. At first, you must convert your Excel fi...
Get objects and related count in one shot
Le 29/07/2011 - 5h08
Sometimes you just need to output the number of objects related to another, but this simple operation can be a major blow performance-wise. I hope this trick I use a lot in my symfony + doctrine developments will save you some time. Let’s consider a blog that allows you to tag your posts: BlogPost: columns: title: string(255) body: clob relations: Tags: class: Tag ...
Testing emails in a safe way
Le 30/06/2011 - 4h26
Fear you will send the unwanted emails to other people when testing your software? If you use Postfix, you can follow these simple steps: Put into /etc/postfix/main.cf: smtp_generic_maps = regexp:/etc/postfix/generic And into /etc/postfix/generic: /.*/ laurentb+test@theodo.fr Reload postfix (this might depend on your distribution): # /etc/init.d/postfix reload This will rewrite all emails s...
Graphic design for the web – Fonts
Le 24/06/2011 - 6h58
Font usage on the web is a critical matter. Well I guess it’s critical while working with other media too, but if you’re a graphic designer and you’re not that familiar with the best practices of website creation, you might come up with something rude to web designers, be it beautiful or not. The #1 thing to keep in mind is that text is the core of most websites. In fact, websites are often co...
DevOps conference online!
Le 11/04/2011 - 2h21
My conference about adopting DevOps philosophy on Symfony projects is now online! You can see (and listen to) me speaking here: http://symfony.com/video/Paris2011/573 In this presentation you will see what I think is the philosophy behind the DevOps movement and how to start with the 4 important aspects of adopting DevOps: Configuration Management with Puppet Development on the production envi...
Start using Vagrant
Le 17/03/2011 - 12h15
I had the chance to spread the good word by talking about adopting DevOps in Symfony projects at the Symfony Live conference. The feedback was very good (for those who attended and have not done so yet, you can give some feedback here: http://joind.in/talk/view/2756) You can also find the slides here: http://www.slideshare.net/mobile/fabrice.bernhard/adopt-devops-philosophy-on-your-symfony-proj...
Transferring read-protected files with rsync and sudo
Le 18/01/2011 - 2h49
This issue might be familiar to some of you: you have ssh access to a server with sudo rights on it and you want to transfer files with rsync. However, since these files are not directly accessible from your ssh user (because they belong to some other user), the rsync fails with rsync: mkstemp "XXX" failed: Permission denied (13) rsync error: some files could not be transferred (code 23) if you...




