-
PHPUnconference Comes to Manchester
30 November 2010
Read moreI'm very excited to hear that the PHPUnConference Europe (@phpuceu on twitter) is coming to Manchester on February 19th and 20th! So excited, in fact, that I've rushed out and bought my ticket (for a whole £40, that's a good investment in my opinion). The event brings together the PHP …
-
3 Ways to Access a Namespaced PHP Class
29 November 2010
Read moreAfter what felt like years of debate over the notation to use for PHP's namespaces, it seems like the feature itself has had relatively little use or attention since it was actually implemented in PHP 5.3. We're all used to working without it but using it does make code neater.
Take this example (in a file called namespaced-class.php)
-
Keynoting at PHPBenelux
25 November 2010
Read moreHave you got your tickets for PHPBenelux yet? If not then I hope you will do so because I would love to see you there!
I'll be delivering a keynote at the PHPBenelux Conference in Antwerp in January alongside my good friend Ivo Jansch. Between us we've got plenty of …
-
Google Analytics Accounts API
23 November 2010
Read moreI'm working with Google Analytics at the moment, to pull information about web traffic from analytics into another system. Google have excellent APIs and that makes this job much easier. I'm using pecl_oauth to authenticate users against their google accounts (see my post about using OAuth from PHP), but even after I have a valid google user, working out which analytics accounts they have access to and how to refer to them is a puzzle in itself, so I thought I'd share what I learned.These examples use pecl_http, since I have control of my platform and I find it easy to work with. I've tried to write this with explanations of the overall process in between the code snippets so hopefully this makes the process clear whether or not you will use exactly the same implementation.
-
360 Degree Feedback
17 November 2010
Read moreI mentioned the 360 Degree Feedback Technique during my keynote at PHPNW10 and had many comments and questions about it since, so I thought I'd post about it in more detail
-
256 Colours in Vim
15 November 2010
Read moreRecently I've been looking at different vim colorschemes, after using vimdiff and finding I couldn't see half of the code. I've been using relaxedgreen for ages, and it is excellent but I find the blue really hard to see on my black background so I was in the market for an alternative.
-
Curl and Cookies
12 November 2010
Read moreI noticed the other day that the cheat sheet I have on this site for curl doesn't show how to use cookies, so I thought I'd remedy that omission, and quickly! Being able to use the command line to authenticate and then go on and use part of a site …
-
Business Strategies: Office Day
09 November 2010
Read moreI'm now self-employed, which means that I have to do my own administration, invoicing, accounts, correspondence, sales, marketing and maintenance (not to mention running the household, a sports team, and whatever else I've volunteered to get involved with lately). I am pretty organised as a person, which is a real …
-
Fetching Namespaced XML Elements With SimpleXML
03 November 2010
Read moreRecently I was working with some google APIs and needed to retrieve some namespaced elements from the result set. This confused me more than I expected it to so here's my code for the next time I need it (and if you use it too, then great!)
I was reading from their analytics data feed API, this returns a few key fields and then multiple <entry> tags, each with namespaced children. The entry tags look something like:
-
Be My Guest for DayCamp4Developers
01 November 2010
Read moreThis weekend I'm presenting at DayCamp4Developers, a virtual event comprising a full day of workshops for developers of all disciplines to improve their soft skills and move forward in their career. I get to attend since I'm speaking, but even after I've given my slot I know I'll be online …
-
Deprecated Methods in Pecl_Http
28 October 2010
Read moreI'm a big fan of pecl_http, which I use quite often as I work so regularly with APIs and on systems where I can get it installed, it's much nicer than PHP's curl extension. Recently though I've been often seeing output which reads:
Function HttpRequest::addRawPostData() is deprecated
It isn't …
-
Advice To Another Blogger
26 October 2010
Read moreRecently I was approached by a friend of mine looking to start his own technical blog. I've been blogging here for some years, and he wrote to ask my advice. I replied to him, but thought that the ideas could be useful to others in the same position, so here's that email, published here for anyone else who wants to see it: