Posted on July 19, 2008 in General by Jiang YioNo Comments »

I was designing a photo album viewer for a Jalbum user and ended up with iAlbum. It’s basically just a PHP script that crawls through a bunch of images in an album-oriented directory structure, generates thumbnails, and presents the images using a lightbox.

Originally, the script generated one thumbnail per image. The result loaded quite slowly, and the thumbnails appeared out of order in the browser. After I switched to using CSS sprites, the thumbnails loaded much faster and were displayed all at the same time. The first time an album is viewed, a strip of thumbnails is generated for it and cached. After that, the cached version is sent to the browser (there’s an option to regenerate the thumbnail should the album change). I was worried that clustering all the thumbnails into one long strip would be too much for PHP to handle, but it turned out to be pretty fast even for an album with a couple of hundred images.

During the project, I encountered Lytebox, an excellent lightbox implementation that does not depend on any of the bulky libraries the way the other implementations did. After minifying and gzipping, the script weighed in at only 5.7kb. I left the CSS alone for an additional 5.7kb, but it would have been about 1kb gzipped.

Posted on July 18, 2008 in General by Jiang YioNo Comments »

To celebrate Timex’s 150th anniversary, Timex and Core77 ran a contest to design a concept watch. In the year 2154, one would be able to tell the time simply by looking at one’s thumb. While this design is a runner-up in the event, the idea is pretty fresh.

The disposable device is designed to be clipped to the wearers thumbnail. Pressing the tip of the nail would activate a luminescent time display.

The disposable device is designed to be clipped to the wearer's thumbnail. Pressing the tip of the nail would activate a luminescent time display.

[via: CNET] [winners] [nail watch]

Posted on July 12, 2008 in General by Jiang Yio8 Comments »

SQLite is a wonderful flatfile database system that’s just gaining exposure in the PHP-programming population. For moderately-sized databases, SQLite offers speed and performance gains over even MySQL. The native object-oriented interface is also very easy to use.

Because SQLite is a relatively new player in the PHP arena, there is currently a serious shortage of good administration tools targeting it. While MySQL has phpMyAdmin and a bunch of other tools, SQLite is left on the side.

phpLiterAdmin is a new opensource PHP-SQLite administration tool that shows great promise. Although its author currently has more experience with MySQL, he is a skilled PHP developer who is capable of undertaking substantial projects. This project’s on my watch-list.

Posted on July 9, 2008 in General by Jiang YioNo Comments »

A pair of Firefox themes appeared not long ago that look truly magnificent (in my opinion) on a KDE 4 desktop. The Oxygen theme blends well with KDE 4 icon-wise with its Oxygen artwork. The Kde4 + Firefox3 theme focuses on the colors and styles rather than the icons. I ended up going with the latter because of its holistic approach to desktop integration.

Have a look at these smooth themes, and stop complaining that Firefox is too GTK-like:
[Oxygen] [Kde4 + Firefox3]

Posted on July 7, 2008 in Computing by Jiang Yio2 Comments »

I got a $10 OmniTech flexible keyboard at Staples yesterday. It’s a funny little device that can be rolled up and packed away, while still being fully functional. At first glance, it’s just a regular USB keyboard with a silicone coat instead of a hard plastic shell. Further inspection through the translucent silicone confirmed that the innards were, indeed, identical to those of a regular keyboard. It consists of two flexible circuit boards overlayed over each other. Each layer has a different pattern of traces, and each keypress occurs at a unique junction to connect the circuits.

(more…)

Next Page »