One of the more common architectural tasks when designing a web based system that you expect to scale horizontally is deciding how to handle and store sessions. This is because each front end server is running its own PHP install and their session data is stored locally on the disk instead of being shared between […]

Tagged:

No Comply – a WebGL, Audio-API Demo: click here to watch this demo. Over the past few months I have been working with Mozilla’s Audio API Team to create a WebGL/Audio API Demo for the release of Firefox 4. We wanted to create something a little different for this demo so we enlisted the help […]

Tagged:

I had some free time on the train back up from Buttercamp this weekend, and got to work on a demo for a HTML5 rotoscoping tool that I’ve been kicking around in my head: View Live Demo (in Chrome) → The tool is very basic; it lets the user draw over each frame of the […]

Tagged:

When you pull from a remote repository, the number of new files listed can sometimes cause conflict messages to get scrolled off the screen. Not very convenient. You can use the following command to get a quick list of conflicts from Git: git ls-files -u

Tagged:

Augmented Reality: using JSARToolkit with WebGL & HTML5 Video Last week I spent some time running tests and generally familiarizing myself with the JSARToolkit code. I also built a JavaScript wrapper for the library to make it easier to use. JSARToolkit is a JavaScript library converted from FLARToolkit (Flash), and is developed for tracking AR […]

Tagged:

Something I have never known how to do in Linux, is rename a directory full of files. (Crazy right?!) Fortunately for a noob like msyelf, Sam Bisbee does know how to do this, and showed me today. In the following example, I am renaming a directory of files with no file-extension, and moving them to […]

Tagged:

Now that the jQuery Bay Area conference has been announced, we’re very excited to announce that Bocoup will, once again, be offering a full day pre-conference jQuery Primer (aka. Beginner)┬átraining session. Here’s the low-down: jQuery. You’ve heard about it. You’ve dabbled. You’ve struggled. Now, you’re ready to understand. At Bocoup’s one-day jQuery Primer, you’ll work […]

Tagged:

This question was recently posed on Quora. “How can I draw inset shadow on HTML canvas?” The answer is surprisingly simple. But first you will need to understand a little thing called “Opposite Winding”. Opposite Winding is a technique employed by most graphics tools and packages. The rule of Opposite Winding states that when two […]

Tagged:

I’ve recently been working on an update to JavaScript Debug, which has me doing a lot of cross-browser testing, and I noticed a few “interesting quirks” with try…catch in Internet Explorer 6-8 that I couldn’t find documented anywhere. The Backstory Since the primary goal of JavaScript Debug is to normalize the console cross-browser, I’ve been […]

Tagged:

Update: I put this utility up at datauri.com for convenience. Update: The jQuery.event.props event property list has since been documented in the Event Object documentation. This past weekend, I made a handy utility for converting files to data URLs. This utility is part of a larger tool that we are developing for a client. I […]

Tagged: