gregs

helping me remember what I figure out

March 13, 2007
by gregs
4 Comments

Embedded image

A client recently decided to start storing all of their images in a database and usually we would point the image source to a cfm page, where we'd do something like this: PLAIN TEXT CODE: request.uploadedPic = application.staffManager.getStaffImage(session.user.getId()); context = … Continue reading

October 21, 2005
by gregs
0 comments

Checking your free memory

Here is a handy little script that I stumbled across a while back (probably on a mailing list), sorry I can't remember who posted it, but for posterity here it is: PLAIN TEXT CODE: <cfscript> rt = createObject("Java", "java.lang.Runtime"); freemem=rt.getruntime().freeMemory(); … Continue reading