13
Load testing by replaying Apache httpd access logs
No comments · Posted by Adam Lundrigan in CDLI, Web Development
Two weeks ago I oversaw the launch of our new public web site. The whole exercise was an unparalleled failure; as soon as the first peak load hit the server took a prolonged lie-down, and so the site was generally unreachable for end users. What went wrong? I didn’t adequately load test the application to [...]
access log · apache · Apache HTTPD · httpd · Javascript · load · Node.js · NodeJS · testing
7
Spying on your BF3 BattleLog friends made easy with PHP + Zend Framework
No comments · Posted by Adam Lundrigan in Zend Framework
BattlelogNotifier on GitHub: https://github.com/adamlundrigan/BattlelogNotifier Why? I enjoy first-person shooters. I especially love Battlefield 3, and I enjoy it most when playing online with my friends. After a couple of failed gaming sessions where I signed on just as they were signing off, I’d had enough; there had to be a better way…so late one night [...]
BF3 · PHP · Zend Framework · Zend_Http_Client · Zend_Oauth · Zend_Service_Twitter
5
PHP Tip-of-the-Day™: Use { and } as PCRE delimiters
No comments · Posted by Adam Lundrigan in Uncategorized
This is mentioned in the PHP Manual (here), but unfortunately they don’t go into any detail as to why you would choose to use bracket-style delimiters for your PCRE expressions. Here’s an example of why bracket delimeters very nearly == epicness: Say, for instance, we want to rewrite URLs using patterns such as this: Selec [...]
No tags
22
Strange problems when packaging PHPUnit 3.4 as a PHAR
No comments · Posted by Adam Lundrigan in Uncategorized
NOTE: This effort on my part is long-since abandoned. Click here for a way to install multiple PHPUnit versions side-by-side. I’ve been hacking away sporadically at packaging PHPUnit 3.4.x as a PHAR (see: ZF-11828 and related issues for context of why). I’ve put the code for my first-stab attempt up on my GitHub, but it [...]
No tags
After much (MUCH) head->desk while trying to make Symantec Ghost Solution Suite’s WinPE boot disc pick up a network connection on the new HP ProBook 6560b, I’ve sorted the issue! Thanks, in no small part, to this thread: http://communities.intel.com/thread/21719 If you already have a GSS WinPE boot CD you can simply boot into it, and [...]
No tags
30
Module Dependencies in ZF2
No comments · Posted by Adam Lundrigan in Web Development, Zend Framework
With the recent addition of Zend\Mvc and Zend\Module prototypes to the master branch of the Zend Framework v2 repostiory, i’ve started doing some experimenting with these fantabulous new components. One feature available in the code that I haven’t seen any examples of yet is the built-in dependency tracking. It is (like the components themselves) still [...]
Zend Framework · Zend\Module · Zend\Mvc · ZF2
17
Using Zend\Di in ZF1
No comments · Posted by Adam Lundrigan in Web Development, Zend Framework
Earlier this week the third development snapshot of ZF2 – Zend Framework 2.0.0dev3 – was released, and it included our first official look at the new Dependency Injection component: Zend\Di. I’ve spent some time playing with it, and am quite impressed thus far. To kick the tires, I created a simple Zend_Application-based ZF1 application (you [...]
GitHub · PHP · Zend Framework · Zend\Di · Zend_Application
10
zfD2L – Desire2Learn Web Services for Zend Framework
No comments · Posted by Adam Lundrigan in CDLI, Desire2Learn, Web Development, Zend Framework
For the better part of this past year, my job has consisted mainly of building (or rebuilding) a number of web portals. These portals all have two things in common: (1) they are built upon Zend Framework, and (2) they need to interface with the Desire2Learn Learning Environment (LE). The result of this confluence of [...]
No tags
27
Nested controllers in Zend Framework!
No comments · Posted by Adam Lundrigan in CDLI, Web Development, Zend Framework
Did you know that action controllers in Zend Framework can be nested (ie: placed in sub-directories within the controllers directory)? Neither did I! This undocumented feature was pointed out to me during a recent conversation with Ryan Mauger (bittarman) and Matthew Weier O’Phinney (weierophinney) on the #zftalk.dev IRC channel. Needless to say, this made my [...]
7
Running Code Coverage in Zend Framework
No comments · Posted by Adam Lundrigan in Web Development, Zend Framework
Have you ever tried running the Zend Framework unit test suite with code coverage enabled: [adam@zfdev tests]$ ./runtests.sh -h coverage ++ phpunit –verbose –coverage-html coverage AllTests [...remaining output snipped...] And get the following error: PHP Fatal error: Class ‘Zend_Tool_Project_Context_Zf_AbstractClassFile’ not found in trunk/library/Zend/Tool/Project/Context/Zf/ModelFile.php on line 35 Well then, have no fear! I’ve provided a patch [...]
code coverage · phpunit · Subversion · Unit Testing · Zend · Zend Framework · Zend_Tool

