This weekend I’ve finished off my first public PHP extension using the (god awful) Zend PHP macro’s, function calls etc. There were 3 reasons for me doing this:
1) See how difficult it was
2) Create a true library for PHP projects to reduce code repetition across projects.
3) Add some speed to projects that crunch a lot of data in PHP.
In my leedsphp talk last week I mentioned making a developer (and consumers) life easier by automatically implementing the allow methods functionality that your API may expose (e.g. you call PUT on a URL that only allows GET or POST). I did have an example slide there showing how to implement but I thought I’d posted a bare bones controller here that shows how it works.
We use beanstalkd at work for our job queue’s due to its very low memory footprint and speed. However it was missing a few features we needed so I decided to fork it on github and start working on it and I’m pleased to announce it’s now available to download. You can grab it at https://github.com/wadewomersley/beanstalkd-ww.
I realised it would be really useful to have a Server Density plugin that can query HAProxy and report a few stats back about it. So I wrote one! haproxy.py plugin for Server Density.
RESTClient is a great little CLI and GUI tool for testing your REST API. I recently pushed a new API up in the office and it runs over SSL. I tried to test it in the RESTClient and got a PeerNotVerified error from Java. First thing I did was go to the SSL tab in RestClient presuming I could tell it to just trust the API…apparently not.
I must confess, I love Glee and for some reason after season one I stopped watching – must catch up on it. So how do you make a show like Glee even better? Simple, get them to do a Rocky Horror episode!
This isn’t really safe for work (considering the volume of F word usage) but it’s a more modern version of the classic “uses of the word f**k” flash, the longer you watch, the harder it is to just not laugh out loud.