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 »

Is PSR-0 Shortsighted, or are you?

Posted 2013-04-17
Category PHP
One of the fun things about trying to support the PHP-FIG and all the good its doing, is seeing blog posts written complaining about it by people that just don't know what they're talking about. By getting involved in conversations on Reddit, building FAQs and generally trying to build new useful information this can generally be helped. Sadly some blog posts are sent out by people with a whole bunch of odd opinions that you just can't do anything about, so instead I'm going to respond with a play-by-play approach. 

Read More »

PSR-2: The Tough Decision

Posted 2013-04-01
Category PHP
PSR-2 has been out for a while now, and even though developers from member projects (such as Joomla, Drupal, phpBB, CakePHP, Symfony and Zend) got together and took part in a entirely fair vote to decide if tabs or spaces should be involved, it soon became apparent that the group had made a mistake. Due to an overwhelming surge of complaints about the use of spaces for indentation instead of tabs in PSR-2, the PHP-FIG has had no choice but to reverse this decision. 

Read More »

Pick PHP Requirements for Packages Responsibly

Posted 2013-03-23
Category PHP
Which version of PHP to use for anything is always much debated in the PHP community. I'm luck enough to have kissed sweet goodbye to PHP 5.2 a while back, but PHP 5.4 and PHP 5.3 are both actively used by different projects and recently I have come across a few packages that have been using PHP 5.4 almost exclusively just to use short aray syntax, which to me is short sighted and selfish. I tried tweeting about this and everyone seemeed to be a little confused, so instead of 140 characters I thought I'd try 7051.

Read More »