Yoda-bzh - blog.yoda-bzh.net - Par un détour à Yoda

Latest News:

Symfony2 and Doctrine: Print sql queries in a Command 21 Aug 2011 | 11:31 pm

For debugging purposes, it's sometimes usefull to print the queries executed by a Symfony2 Command. Here is my tiny piece of code to do it.

vmware 7.1.4 and linux-2.6.38 21 May 2011 | 08:02 am

Since few kernels, vmware won't compile, or at least the vmnet driver won't compile. Fortunately, there is a patch for this ! Patch found on http://communities.vmware.com/message/1749211#1749211. H...

[Symfony] Coupling sfDoctrineGuardPlugin and fail2ban 8 May 2011 | 12:06 am

Recently I created a quite sensible application using symfony 1.4. As many people, I chose sfDoctrineGuardPlugin as authentication/password recovery/account managing system. But even with this piece o...

Configuration de Xen sur une machine dedibox 26 Feb 2011 | 11:04 pm

Le tableau Mon exemple se compose d'une machine Dedibox Pro R210. Il s'agit d'une machine avec un octo-proc Xeon L3426 à 1.87GHz. Ne vous laissez pas avoir par « si peu » de GigaHertz, ces machines n...

Symfony - Doctrine: Use a fully UTF8 database 20 Jul 2010 | 01:16 am

First, edit your config/databases.yml and add : Then open your config/doctrine/schema.yml and add at the top of your file : Of course, if you want to stick to myisam, replace InnoDB by MyIsam. Befw...

Doctrine: Howto bypass the SoftDelete behaviour 7 Apr 2010 | 04:06 am

For one of my projects I have to check if a record already exists in my database, deleted or not. The preDqlSelect looks like this : The method is adding the statement only if !$query->contains($fiel...

Notify: New release of the aMSN plugin 19 Mar 2010 | 06:29 pm

A new release of the Notify plugin for aMSN is now available. You can download it on http://www.amsn-project.net/plugins.... Changelog: Fix UTF8 detection, thanks to bardo Version 1.5

PHP bench: isset vs array_key_exists 5 Feb 2010 | 02:26 am

I tested the rapidity of isset vs array_key_exists. I always thougt that array_key_exists would be the winner ... Here is my script : And here is the results : And the winner is : isset !

PHP bench: count + for vs foreach vs while 5 Feb 2010 | 02:14 am

I tested different loops. Here is my test script : And the results are : The winner is count+for, followed by foreach, and while is far behind. I suppose it's because of the reset. PHP: 5.2.12 (deb...

Symfony: Validate fields depending of another field (update 2010-02-23) 4 Feb 2010 | 02:03 am

It's possible, when validating a form, to check if a field is correct dependently of an other field's value. First, in your configure method, after the declaration of your validators, add : And crea...

Related Keywords:

flv2avi, doctrine where clause : symfony ffff, dedibox comment savoir si j'ai l'ipv6, sound blaster audigy se oss4, symfony typeof, how to use dedibox, symfony actions class pass php var bind, 500toto@live.fr, php5.2.17 configure symfony make, symfony reset user attributes

Recently parsed news:

Recent searches: