nav-left cat-right
cat-right

HTTP Signed Requests with PHP

I thought I'd write a quick primer on a basic implementation of HTTP request signing with PHP. I see a lot of posts dealing with the topic, especially by people writing homebrew REST services. What are signed HTTP requests? Signed HTTP requests are simply a normal HTTP request, such as a GET or a POST, that happens to include a signature as part of the request.  A signature is just a string of characters generated in a...

Installing Gearman and gearmand on Windows with Cy...

Recently I've come face-to-face with a significant processing task for a web application written in PHP.  I haven't worked with process control very much, so I started researching ways of distributing the calculations to multiple processes.  PHP offers several libraries for doing this (pcntl, POSIX), but it quickly became clear that if you're running Windows these libraries are not an option, and unfortunately at work I...

An Exercise in WordPress Integration, or Why WordP...

I'd like to prefix my upcoming rant with the fact that WordPress is good at what it does: making basic blogs and publishing content. I use it, many other people use it, it works. Heck, I'm using it right now. But from a technical standpoint, WordPress sucks. I'm going to relate my experience here trying write a quick function to store post output to a file, to be used by a separate application on the same server. I...

Facebook Notifications – "An unknown er...

Over the last few months, I've worked with the Facebook Notification system many times, and there has always been a moderate-to-high level of frustration with it. It is difficult to test on a development application, because you simply don't have the same number of users as a live application, and the application settings on a dev app are different, which affects your allocation of allowed notifications. One of the prevalent...

Fixing "Error 320 (net::ERR_INVALID_RESPONSE)...

Without starting a browser flamewar, I'll just say that Google Chrome is a nice idea, but I won't be switching any time soon. As software evolves, competitors always appear, distilling out the good parts of existing products to create their take on something, and make it better. Google has done that with Chrome; it's light and fast and responsive. Unfortunately, it's still a bit green on the battlefield. Take this...