Archive for May, 2009

Simple LRU Cache Class in PHP

Posted: 27th May 2009 by Adam Presley in Development, PHP
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, [...]

ColdFusion Random ID Generation

Posted: 19th May 2009 by Adam Presley in ColdFusion, Development
Tags: ,

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 [...]

Barbecue Barcode, ColdFusion, and Size

Posted: 18th May 2009 by Adam Presley in ColdFusion, Development
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 [...]

Firefox Plugin to Change View Source

Posted: 18th May 2009 by Adam Presley in Development
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 [...]