I've been working on a project at Underground Elephant that is a very very very heavy javascript project. Its heavily event driven, but I have an issue with the lack of event priorities in jquery. The Symfony 2 Event Listener is a great example of what an even…
I was looking for a way to have an input, that when you change, would roll to the next input. The project I'm working on has a page based system, so each page has its own fieldset. When the last field is completed, I wanted it to automatically roll to the next…
The Background Basically, we wanted to be able to use a simple Reverse Proxy (not Varnish, not Squid), that used a Memcache installation, instead of the file system. The Solution - Short I wrote a new MemcachedStore class that AppCache now uses instead. The bi…
The Background At my work, we deal with a project where we have several development servers, a few staging servers, and hundreds of production servers. The Issue Having to deal with all four different environment types, without having environments hardcoded i…
Getting into testing at work with one of our new projects, and we need to be able to test our services. The biggest problem I had here, is that we have several services not in the default scope. After a little bit of digging and testing, I came up with this: &…
A couple months ago, I was looking for a way to restrict a development site in such a way, that while people were at work (where we have a static IP), and then require an .htpasswd file for everyone outside. Well, it was actually kind of simple. After youve go…
I have been working on a new cache implementation for the Symfony2 framework, and I needed a way to check if a named class inherited a given interface , so i wrote the following: <?php function classInherits( $class, $inherit ) { if( is_object( $cla…
Introduction So, I started work on a personal project of mine that I wanted to be able to use Memcached. The project is using the Symfony2 PHP framework, so I decided to look around a little bit to see if I could find a bundle that does what I needed. I stumbl…