Monthly Archives: September 2011

Symfony Doctrine “where in” and “where not in” Syntax

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

Posted in 1.4, Symfony, Uncategorized | 3 Comments

o3EnlargeBox 1.1.1 Released

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

Posted in Uncategorized | Leave a comment

Execute a PHP 5 Script From the Command Line in Ubuntu Linux

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

Posted in Linux, System Administration | Tagged , , , | 4 Comments

Symfony tasks, sfContext, and Routing

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

Posted in 1.4, Symfony | Tagged , , , , | Leave a comment

Driver for TRUlink Model #29578 Wireless Video (No Audio)

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

Posted in Uncategorized | 3 Comments

o3EnlargeBox 1.1.0 Released

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.

Posted in JavaScript, jQuery, Plugin | Tagged , , | Leave a comment

Create a Symfony Super-Task that Runs Other Tasks

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

Posted in 1.4, Symfony | Tagged , , | 3 Comments

JQuery and Ajax Forms Plugin

Writing JavaScript to handle ajax form submission can be a pain. Not only is it a lot of coding, but it often means you have to write forms using different html than you would use for a normal form. This … Continue reading

Posted in JavaScript, jQuery, Plugin, Uncategorized | Tagged , , , | Leave a comment

AjaxForm and Validation Plugins for Jquery

Two of my favorite jQuery plugins are the AjaxForm and the Validation plugins. The AjaxForm plugin allows you to very easily convert a normal html form into an ajax form while the validation plugin offers easy javascript side validation of … Continue reading

Posted in JavaScript, jQuery, Plugin | Tagged , , , , , , | Leave a comment