Simple LRU Cache Class in PHP

May 27, 2009
Tags: ,

In my ongoing effort to further enhance my PHP framework I started recently working on a caching mechanism. For the time being I am using the PEAR library’s Cache_Lite (I’ve blogged on this before, so check it out) to handle the details of persisting the cache data, locking, and all that fun jazz. Cache_Lite, however, [...]

0

ColdFusion Random ID Generation

May 19, 2009

Had a situation at work today where I needed a quasi-random ID to store as a “key” in the database. This key would be handed to users for their use over a given session for webservices.

At first I started with a UUID using the following code, but it occured to me that for my audience [...]

2

Barbecue Barcode, ColdFusion, and Size

May 18, 2009
Tags:

Swithin writes:

Can the “width” and / or “height” parameters be passed in the o.getCode128() call?

I am successfully passing the “#url.data#” as o.getCode128(’#url.data#’) but would like to also decrease the overall size of the barcode, while keeping the “data” the same. So I will need to decrease the “width” of the narrowest “bar”, and the “height” of the overall image. [...]

1

Firefox Plugin to Change View Source

May 18, 2009
Tags: ,

Here’s a nifty plugin written Davide Ficano that allows you to control what application(s) that is used to view the HTML source on a given page in Firefox. I use a nice text editor called Boxer that I prefer over the default, and this plugin allows me to use it. Web developers should give it [...]

0