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


Jump to Part 1 here. Today, we’re going to define the data format for our portfolio. Back in 2005, XML was the last data format we were ever going to need, so that’s what I used. It must have been second-to-last, because today, everyone seems to prefer JSON. I’m more than happy to commiserate about […]


Continue Reading


Introduction I built a Flash-based portfolio back in 2005. It was itself a nice example of the kind of work that kept new projects coming: back-button & bookmarking support, raw content visible to Google & non-Flash browsers, Google Analytics tracking, easily updatable via an XML file, etc. All at a time when most people believed […]


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


see Part 1 Polishing off automatic mapping of objects to the correct class from PHP (Zend) back to ActionScript turned out to be easier than I thought. In addition to the more commonly used $_explicitType class property, Zend also supports using a function called getASClassName. You can either paste this into each of your remote […]


Continue Reading


First off, much thanks to Lee Coltrane for figuring this out. He’s a bit busy at the moment, so I’m writing this up without the benefit of his input which I’m sure will be extremely valuable once our schedules mesh up. A few caveats right off the bat. 1) We’re still figuring out our best […]


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



OLDER POSTS