Thursday, June 7, 2012

Railo 3.3 on Jelastic.. socks officially blown off!

Wow. A one-click .war distribution on scalable hosting... this could be a game changer... Unfortunately:

- Jelastic doesn't use MS-SQL.. which means no management console. An alternative might be the fact that mySQL does have a GUI via workbench
- Jelastic uses Maven.. and has no support for Checkout only.. which means old-school ftp based updates for your site, instead of an svn-update to a specific version Railo In The Cloud  I'll let you know when they take my "good idea" and implement it :-)


Turning an email address into an image using ColdFusion ( Railo 3.3 )


I've come across the need to be able to render text in a browser (specifically, in this case an email address) that is not easily robot-readable, and is painless to show inline in the browser.

<cfset request.newImage = imageNew("",250,15,"rgb","white")>
 <cfset request.textRow1="email@email.com">
 <cfset attr = { font="SansSerif.plain", size="12", style="bold"}>
 <cfset imageSetDrawingColor(request.newImage,"black")>
 <cfset imageDrawText(request.newImage, request.textRow1, 0, 10, attr)>

 <cfimage action = "writeToBrowser"
   source = "#request.newImage#"  
   format="png"
isBase64="no"
 >

Thanks to: http://www.bjw.co.nz/developer/coldfusion/94-turning-an-email-address-into-an-image-using-coldfusion