Aaron Scherer's Blog
user

Aaron Scherer's Blog

Trials and Tribulations of Aaron Scherer


Featured

jQuery, javascript, Javascript, programming

jQuery Event Priority - Fusion Framework

Posted on .

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…

Featured

jQuery, javascript, Javascript, programming

jQuery: Roll to Next Input

Posted on .

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…

Featured

Symfony2, php, Caching, PHP, programming

Symfony Reverse Proxy: Memcached

Posted on .

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…

Featured

Symfony2, php, PHP, programming

Better Symfony Environments: Large Systems

Posted on .

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…

Featured

Symfony2, php, Testing, PHP, programming

Symfony2 Testing: Testing Services in Request Scope

Posted on .

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: &…

Featured

Apache2, programming

IP Based Htaccess Restriction

Posted on .

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…

Featured

php, PHP, programming

Checking Named Class Inheritance

Posted on .

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…

Featured

Symfony2, php, PHP, programming

Symfony 2 and Memcached: A new Bundle

Posted on .

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…