Practical AppCache Strategies

 Oct, 14 - 2014   no comments   How To

The Application Cache spec provides us with a very useful tool for enabling offline access to assets. This allows us to build web apps that can function whether or not the browser has an HTTP connection. AppCache is not a complete solution for offline apps, and it’s received some criticism for the fact that some […]


Continue Reading


Please read this post from Steven at MyFitnessPal regarding the change to allow setting macros by gram, along with other advanced nutrition options as part of their new premium service. This JavaScript bookmarklet will enhance the macro target section of the custom goal editor  in MyFitnessPal with some advanced features that allow you to set up a more […]


Continue Reading


It appears that Safari 5 will not respect the base href tag when used in a page served via https when the base href indicates a URL with the http protocol. There is probably more to this issue, but I ran across it while working on an Authorize.net integration using their SIM API. After a […]


Continue Reading


Last night I spent way too long trying to get AS3 to communicate with a simple socket server I wrote in Processing. I’ve done this kind of thing before and seemed to recall that it was pretty simple. But in the meantime, Adobe, in an effort to be more secure, has changed the Flash player […]


Continue Reading


I just ran across a really annoying problem with Thickbox after upgrading from jQuery 1.3.1 to 1.3.2. The gallery functionality in Thickbox broke after the upgrade – instead of opening with the first image, the loading animation displayed forever without loading any content at all. Turns out, the @ selector syntax was deprecated in jQuery […]


Continue Reading


ClipStation is a free lightweight solution for writing to your user’s clipboard from an HTML page. Using a small SWF that is embedded dynamically via JavaScript, you can pass an unlimited number of content clips onto the clipboard. ClipStation is designed to be lightweight, flexible, and easy to implement. What makes ClipStation different from other […]


Continue Reading


Smarty File Size Modifier

 May, 02 - 2009   4 comments   How To

Here’s a simple Smarty modifier that will format an integer that represents the number of bytes in a file as a human readable string. Usage: {$fileSizeInBytes|file_size} Example: {assign var=fileSizeInBytes value=10485760} {$fileSizeInBytes|file_size} {assign var=fileSizeInBytes value= 768000} {$fileSizeInBytes|file_size} {assign var=fileSizeInBytes value=303} {$fileSizeInBytes|file_size} Output: 10 MB 750 Kb 303 bytes <?php /** * Smarty plugin * @package Smarty […]


Continue Reading


I love OS X. For me, it’s the ideal development platform. I primarily build web applications that run on the LAMP stack, so having a POSIX compliant UNIX like OS for my daily driver is extremely convenient. My development environment works just like the environments I deploy to, so I don’t have to worry very […]


Continue Reading


Jon and I delivered a presentation about SEO to the NCSU Web Developer Group this afternoon. If you were in attendance, thanks very much for coming to see us, we hope you found it informative. We talked about a lot of useful online resources during the presentation, all of the links are in the slide deck that we’ve posted […]


Continue Reading



OLDER POSTS