Calling XmlRpc of WordPress with Zend Framework (Zend_XmlRpc_Client) and adding the default thumbnail to a post

This code is in 2 parts First part, we download an image somewhere using Zend_Http_Client Second part, we use xmlrpc to upload the image into wordpress as a media and to create a post using this media as featured image or default image of main thumbnail, whatever the name is Let’s have a look at [...]

All the assumption I want to remember in PHP

Probably linked to some alcohol I drank to young, I always forget some key assumption in PHP. NULL is NULL NULL is EMPTY NULL is FALSE NULL has a sizeof 0 BUT FALSE is not NULL FALSE is EMPTY FALSE is FALSE FALSE has a sizeof 1 AND empty ARRAY is not NULL empty ARRAY [...]

Open Dojo v1.0

Subject list for an open dojo / bbq session As Jedi phpunit and code coverage phing deployment svn and continuous integration As Padawan Working agile Scrum Now let’s decide a timeline

Continuous Integration phpunit code coverage use a bit less than 2 Gigs !!!

2 gigs !!! gasp… I had several: Generating code coverage report, this may take a moment.PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 21503527 bytes) in /usr/share/php/PHPUnit/Util/Report/Node/File.php on line 406 And here is how it started: At work we are using phpunit to test our framework, we flew from SimpleTest [...]

installing xdebug on ubuntu with Zend Server CE (not solved yet)

You need to sudo user@laptop:~$ sudo bash 1st be sre to have the pecl, pear available as root in command line root@laptop:~# PATH=$PATH:/usr/local/zend/bin trying to install root@laptop:~# pecl install xdebug downloading xdebug-2.1.0.tgz … Starting to download xdebug-2.1.0.tgz (301,354 bytes) ……………………………………………..done: 301,354 bytes 66 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend [...]

That’s it I’m in

I’m officially Certified Scrum Master: http://www.scrumalliance.org/profiles/88649-sebastien-barbieri

#web #continuous #integration: #Autodeploy on #commit

Option 1 In 4 steps svn commit to the repository the pre-commit hook will check the code with svnlook and will validate the commit message (based on regexp such has bug# …, text minimal size…) the post-commit hook will try to connect to the ITT (Integration Team Testing) if you have the good acronym, I’ll [...]

Pear / php update – pear.php.net is using a unsupported protocal

and you get some wonderful error message such as: Notice: Undefined variable: dorest in PEAR/Command/Install.php on line 1220 Sometimes it happens… Solution: locate the .channels/ directory For ubuntu with Zend-CE 5.2 it’s in /usr/local/zend/share/pear/.channels/ And delete everything in there sudo rm /usr/local/zend/share/pear/.channels/* then do a fresh pear update-channels to reconstruct the serialized cache file in [...]

ERROR 1307 (HY000) at line …: Failed to CREATE PROCEDURE

Just a reminder for myself… After any mysql upgrade run from the terminal: sudo mysql_upgrade (mac/*nix) or mysql_upgrade.exe (windows)

Firefox Ubiquity php search handy command

Just created a Firfow Ubiquity php search command based on 2 other work: http://download.sbw.be/projects/ubiquity/php-search.html