« September 2009 | Main | November 2009 »
Helpful guide to manipulating radio and check boxes via JavaScript
With DOM support across all A-grade browsers, many basic (and some complex) interactions can be accomplished with relative ease. Things like adding and removing elements, inserting HTML text, and working with events are now reasonably manageable on a cross-browser basis. There are, of course, some quirks that have to be accounted for, but generally speaking, most things work as you would expect them to. Except for dynamically inserting CSS into your page.
via yuiblog.com
Nice demonstration of dynamic addition of style tags via javascript.
I highly suggest using the APC cache on your PHP installation. Here are instructions for installing APC on Debian Etch. The package exists on Debian Lenny.
With no extra work by the programmer, APC begins creating pre-interpreted (opcode) caches of your most run PHP files and keeping them in memory. When requests come through, many common classes no longer need to be loaded from the hard disk and interpreted.
The speed improvements on my server was visible.
I always forget the syntax for MySQL Timestamp Properties:
The following column definitions demonstrate each of the possibilities: Auto-initialization and auto-update: Auto-initialization only: Auto-update only: Neither:ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP
ts TIMESTAMP DEFAULT 0 ON UPDATE CURRENT_TIMESTAMP
ts TIMESTAMP DEFAULT 0
Recent Comments