Monthly Archives: September 2011
When you’re utilizing Doctrine to search a database for a value not present in a given set, it might be tempting to use some sloppy code like the following: While code like this can work, it’s difficult to read and … Continue reading
A bugfix for version 1.1 of o3EnlargeBox was just released. Some fixes include: tackled a problem with webkit where the image dimensions are reported at 0×0 (must actually be handled by the calling script, see http://www.ozonesolutions.com/demos/enlargeBox/go.js) enlarge box will no … Continue reading
To execute a PHP script from the command line in Ubuntu you must have php5-cli installed. (CLI stands for “Command Line Interface”.) sudo apt-get install php5-cli Once cli is installed, you can execute your script like so: php5 ./myScript.php Inside … Continue reading
When working with Symfony tasks, sfContext is not available like it normally is in a Symfony project. The following code, for example, won’t work in a task: Rather, in a task you can access the routing by using this: Note: … Continue reading
Cables to Go makes a nice Wireless Video adapter. However, the drivers for it can be difficult to find online because they are not available by the usb adapter model. Instead they are listed by the “kit” model number, since … Continue reading
The newest version of o3EnlargeBox was just released. There are some nice new features such as instance methods that re-size and reposition the box when its content changes. Click here for more information about o3EnlargeBox.
It can sometimes be useful to run several Symfony tasks in row. But who wants to sit and wait for one task to complete, just to run the next? A better option would be to create a super task that … Continue reading