Author Archives:
Google OAuth 403 Response
OAuth::getLastResponse()
to my error logs (this is PHP code, and you need to call OAuth::enableDebug()
before you make the request to get this output) so I could see that I was getting the following back from Google:
GData
sslRequired
SSL is required to perform this operation.
Closer inspection shows that for one of the google endpoints, I had a prefix of http://
rather than https://
. Those single-character bug fixes that take hours to find are my favourite!
Speaking at DayCamp for Developers
My own talk is “Time and Money”; both are pretty important concepts to have a handle on when you are in business, either as a freelancer or when starting or helping to start a bigger business. Even as an employee, these are really important concepts to understand; most of what I learned about business I learned working with business people in the jobs I had beforehand.
Time is important because we need to figure out how much we have and how to share it around. Money is important because we all like to get paid. I’ll be sharing my own tactics for keeping both of them under control so I hope you’ll join us!
Mercurial “Not At A Branch Head” Error
hg tag
not at a branch head
Continue reading
Building a RESTful PHP Server: Output Handlers
PHP 5.4 Built In Webserver
Building A RESTful PHP Server: Routing the Request
Building A RESTful PHP Server: Understanding the Request
In the first part of this (probably) 3-part series, we’ll begin with the basics. It might seem boring, but the most important thing to get right with REST is parsing all the various elements of the HTTP request and responding accordingly. I’ve put in code samples from from a small-scale toy project I created to make me think about the steps involved (should I put the code somewhere so you can see it? Let me know). Without further ado, let’s dive in and begin by sending all requests through one bootstrap script: Continue reading
SQL Joins with On or Using
USING
and ON
. Continue reading Which Basket Should A Developer Put Their Eggs In?
The question is: as a developer, how do you know which of these products (I get about one tempting enquiry a month from what sounds like a real person who isn’t building a social network) is a good bet?