Building a Decent API

Posted 2013-07-12
Category PHP
PHP developers are increasingly moving over to API development, as are a lot of server-side developers. It's a trend thats been happening for the last few years and it's getting to the point where everyone and their dog are putting articles showing off how to build "awesome" API's. Unfortunately most of these are either woefully inadequate or are promoting bad practices. These are some of the golden rules I go by.

Read More »

Geeks Giving for Aids

Posted 2013-07-03
After doing my 100 mile bike ride to raise money for autism research, I've decided to step things up a gear (ha) and go further in a bid to raise more. Next I will be riding the 285 miles from Boston to New York over 3 days, with the goal of raising money for Housing Works, who work with those struggling with HIV/AIDS and homelessness. This work is being done with the hope of one day putting AIDS behind us.

Read More »

Biked to the Beach 2013

Posted 2013-06-12
Last month I posted about an upcoming bike century called Bike to the Beach. As lots of you were amazingly generous with sponsorship money I figured it would be rude not to post a review.

Read More »

Send a Facebook Message with XMPP using Access Tokens in Python

Posted 2013-06-03
Category Python
Today I had a real tough time trying to work out how the hell I could send a Facebook message to a user with Python. I knew I needed the "xmpp_login" scope and I already had users access tokens being generated through a dev build of the Kapture iPhone app, but working out what to do after that was rough. In the end I got there with some help from the SleekXMPP developer Lance Stout, who was nice and patient with a still relatively shakey Python developer.

Read More »

Composer and PSR-0: Friends, Not Relatives

Posted 2013-05-07
Category PHP
As a huge proponent of Composer, a happy user of PSR-0 and a voting member on the PHP-FIG I get into plenty of conversations about all of them, and it worries me how much confusion there is in the community about these things not actually being related. To many of you this will be preaching to the choir, but this will hopefully clear a few things up for many or at the very least be a handy resource to link people to when they show signs of getting confused between the two.

Read More »

Bike to the Beach 2013

This June I will be participating in an annual fundraising bike ride to raise money for Autism awareness and research called Bike to the Beach. This bike ride goes all the way from Battery Park in Manhattan to the West Hamptons, which is a fucking long way; 100 miles to be precise. I need your money to make this whole thing worthwhile.

Read More »

Build your own Vagrant Boxes with VeeWee

Posted 2013-05-05
Category DevOps
The other day I posted an article about upgrading Chef and Vagrant, and the pains you can end up having by relying on third-party vagrant boxes instead of building your own with VeeWee.

Getting started was initially confusing to me, as I knew VeeWee was a gem, so I just tried installing it directly into my application gemset. The trouble here is that VeeWee depends on the Vagrant gem version v1.0.x and Vagrant is now not only on 1.2.2 but not actually a gem anymore.

Read More »

Testing and Contributing with Composer Packages

Posted 2013-05-01
Category PHP
While Composer has been around for a while now, many packages are still in their infancy (< 1.0) or sometimes are just not as feature filled as they could be. Pull requests are going to be a common thing for the PHP community to be doing to these packages and this needs to be done safely, with unit-testing. So, how do you run their test suite and add your own tests?

Read More »

Vagrant and Chef: Upgrade Party

Posted 2013-04-26
Category DevOps
The other day I thought to myself, I really should be using a RVM gemset for my "devops" repo, which contains all my Vagrant and Chef logic (along with submodules for everything else). This broke everything, but I got there in the end.

Read More »

Kapture is hiring

Posted 2013-04-22
Category PHP
Kapture is a Brooklyn-based company I've been working for this last year as Lead Engineer. We make an iPhone app which essentially rewards users for sharing a photograph of a specific opportunity with their friends on Facebook, Twitter or (coming soon) Foursquare. This at its most basic level means if I share a photograph of my food when I go to one of our partner restaurants, I could get a glass of wine, or a desert, or whatever that partner is doing, for free. Beyond that we have all sorts of people on board, from shoe shops to hotels, and plenty more verticals are covered too. 

Read More »