Archive for the ‘Work’ Category

Symfony development

Thursday, February 25th, 2010

Last week the second incarnation of Symfony Live came to an end and I just had the time to check a couple of shared slides from the event. Definitely interesting stuff going on there, especially the preview release of Symfony 2.0 whose code is available on GitHub since a couple of ...

Never trust doctrine:data-dump…

Friday, January 29th, 2010

...and especially not if you get the impression that the dump will afterwards be readable by the doctrine:data-load command of symfony. It was a costly lesson today when I tried to reimport a dump of a couple of Sympal tables. One of them, the one which models the menu items, has ...

Tip: Logging with Symfony >= 1.2

Monday, January 25th, 2010

Imagine you have a business method in your model which needs to be accessed by two environments: once from a symfony task and once from the web. So far so good, now what if this business method should be able to log contents somewhere visibly, in case of the command ...

Doctrine Horror

Friday, January 15th, 2010

My latest Symfony project uses Doctrine as ORM, which is considered to be a lot better than Propel by many people... Well, not by me. Doctrine seems to have a couple of very good concepts, amongst them built-in validators, a powerful query language, and last but not least, an easy schema ...

Quick Tip: NetworkManager and /etc/resolv.conf

Friday, November 6th, 2009

If you have trouble with NetworkManager overwriting your search and domain configuration after every startup and you're using DHCP, add the following line to your /etc/dhclient.conf: append domain-name " company.local other.company.local"; So whenever your DHCP server doesn't provide these information (the one in my company does not), it'll add this domain company.local search company.local ...

Fixing MySQL / PDO error 2014

Wednesday, September 9th, 2009

The following error on my current project at work really gave me lots of headaches today: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. So, yes, ...

Useful Gotcha #27

Thursday, April 9th, 2009

If you get this error ssl_error_rx_record_too_long when browsing an SSL-secured virtual host and wonder what the heck is going on (hey, it worked the day before), ensure that you've noticed that your admins have changed the IP address of the machine and that you have to adapt the IP-based VHost ...

Change svn:externals quickly

Monday, January 5th, 2009

If you've worked with external repository definitions and branches before, you probably know the problem: If you create a new branch off an existing one or merge one branch into another, subversion is not smart enough to update svn:externals definitions which point to the same repository, but rather keep them ...

Global AJAX responders in Prototype

Thursday, October 30th, 2008

I encountered a small, but ugly problem in our Symfony-driven project today: Unauthenticated AJAX requests, which f.e. may happen when the session timed out on the server, but the user hasn't reloaded the page in the meantime, are also forwarded to the globally defined login module / action. This of ...

New server setup

Friday, September 19th, 2008

I finally got sick of my SuSE 9.3 V-Server when a good friend of mine pointed me to this really fancy and sexy IMAP web frontend called RoundCube last week. Written entirely in PHP 5 there was no real chance that I could get this easily working on my oldish ...