Introducing Slenderbox

For the past two years, I’ve been using a WordPress lightbox plugin based on v2.0x of Lightbox 2 for displaying full-size images. While it worked well, it was also quite large, relying on the Prototype JavaScript framework. Looking at alternatives, I found that almost all were based on jQuery, something I found to be overkill for something simple like a lightbox script. As I found nothing nearly as optimized as I would like, I set out to write my own script.

Using CSS3, SVG, and regular JavaScript, I was able to write a script, Slenderbox, that is just 2kB minified and gzipped, smaller than even the GIF loading icons used by most similar scripts. The only downside is older browsers aren’t supported, particularly Internet Explorer prior to version 9. In addition, the loading icon is a SMIL animated SVG, which isn’t supported by any version of Internet Explorer. Starting with version 1.1, a CSS3 animation, supported by Internet Explorer 10+, is used for the loading icon.

Slenderbox is available by itself and as a WordPress plugin.

Posted in | Tagged , , , , | Leave a comment

8-Bit Blue Jay

Here’s a Blue Jay drawn in 8-bit style with a resolution of 16 pixels by 16 pixels. Its actual color depth is 2-bit, 2.5-bit if one counts transparency.

8-Bit Blue Jay

Posted in | Tagged , | Leave a comment

Google Photo Spheres

With the introduction of the Nexus 4, Google has added “Photo Sphere” support in Google+. Here’s an example. Google’s viewer could use some work, but as it’s a new feature, it should improve over time. Since the only thing that makes a photo a “Photo Sphere” is a bit of XMP data, one can easily make a panorama stitched with other software, such a Hugin, a “Photo Sphere.” Here’s a short Exiv2 command file to add the required information:

Just change the heights and widths to appropriate values and run it to make a full equirectangular panorama a “Photo Sphere.” There’s also support for partial panoramas, but I haven’t looked into it as the Nexus 4 hasn’t even been released yet.

Posted in | Tagged , , , , | 7 Comments

West Hill Pond Near-Infrared Timelapse

Over the summer, I shot a timelapse of West Hill Pond in near-infrared using my modified Canon PowerShot SD400 and CHDK. The background music is from the Open Goldberg Variations. Enjoy!

Also on Vimeo.

Posted in | Tagged , , , , , , | 2 Comments

Kindle Weather Display

Ever since I first learned about electronic paper, I’ve thought it would be perfect to display some sort of regularly updated, but not real-time, data such as the current date, an agenda, or the weather forecast. Unfortunately, e-paper displays have always cost more than I was willing to spend on such a project. However, with the price of Amazon’s cheapest Kindle recently dropped to $69, I decided e-paper displays were finally cheap enough for me to pursue such a project: an e-paper based weather forecast display.

Continue reading

Posted in | Tagged , , , , | 122 Comments