Once I have the access token, I add the Authorization header using ModHeader and it sends it on all requests to this API, so I can still use my HTML output handler and be logged in. It’s useful for sending custom headers of all kinds for different tools, so I thought I’d mention it!
Category Archives: tech
Book Review: MongoDB and PHP
SQL JOINing a Table to Itself
Consider that tried-and-tested example: employees and managers. Here’s the staff table from the database (today’s imaginary data isn’t particularly imaginative, sorry):
mysql> select * from staff; +----+------------+-----------+------------+ | id | first_name | last_name | manager_id | +----+------------+-----------+------------+ | 1 | Hattie | Hopkins | 4 | | 2 | Henry | Hopkins | 4 | | 3 | Harry | Hopkins | 5 | | 4 | Helen | Hopkins | NULL | | 5 | Heidi | Hopkins | 4 | | 6 | Hazel | Hopkins | 1 | +----+------------+-----------+------------+ 6 rows in set (0.00 sec)
5 Things To Do With A Training Budget of Zero
Watch Over Long Running Processes with Supervisord
Generating Callgraph with XHGUI
failed to shell execute cmd=" "" -Tpng"
Thoughts on Running an Open Source Project
Continue reading
Wedding Stationery
When browsing the moo.com site (it is usually best to hide all payment cards out of reach before doing this!) I had seen the postcards that they make and decided this would be a great way to send a small selection of photos to a few people. Once we got the “official” photos in, I ordered some postcards, and I think they turned out rather well!
WordPress Contact Form 7 Without Captcha
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!

