Open Blue Dragon

VMWare image available:

http://blog.sixsigns.com/2008/05/11/vmware-open-bluedragon-image-made-available/

Size calculator

I had to write a quick size calculator for a web site. I'm adding here for safe-keeping...

<form name="calculator">
<table width="365" cellpadding="5">
<tbody>
<tr>
<td align="right">length:</td>
<td><input type="text" name="length" size="4" /> inches</td>
<td width="180" align="center" style="font-size: 16px;" rowspan="3">SQUARE FEET: <input type="text" style="border: 0pt none ; background-color: white; color: black;font-weight:bold;" disabled="" value="0" name="squarefeet" size="4" /></td>
</tr>
<tr>
<td align="right">width:</td>
<td><input type="text" name="width" size="4" /> inches</td>
</tr>
<tr>
<td></td>
<td><input type="button" onclick="calculator.squarefeet.value=Math.ceil((calculator.length.value * calculator.width.value)/144);" value="calculate" /></td>
</tr>
</tbody>
</table>
</form>

SqlServer Express Coldfusion Driver

I needed to set up MS SqlServer Express on a web server today. I really can't believe anybody would use SQLServer these days... MySQL seems so much better for many, many reasons.

This web page saved me from going prematurely gray:

http://www.fusioncube.net/?p=59

JS Spambot protection

[code]

For a quick and dirty fix, Mike, you might try something like this on 
one of your inputs:

<script type="text/javascript" language="javascript">
function makeHuman(input,element){
if(!document.getElementById("ishuman")){
var formText = element.innerHTML;
var ivalue = input.value;
var iid = input.getAttribute("id");
var hinput = "<input type=\"hidden\" name=\"ishuman\" id=\"ishuman\" 
value=\"true\"\/>";
element.innerHTML = formText+hinput;
//Need to rewrite the blurred field value since the blur event doesn't 
set the DOM value
document.getElementById(iid).value = ivalue;
};
};
</script>
<input type="text" name="myinput" id="myinput" value="" 
onblur="makeHuman(this,this.parentNode);"/>

this will use javascript to write a hidden input in the form.   Then 
you can validate your form by wrapping your logic with:

<cfif structKeyExists(form,"ishuman")  and form.ishuman>

[processing code here]

</cfif>

This will take care of everything but direct input by a person in a 
javascript enabled browser.  For better results, you place the script 
in one of your site .js files.  As was said earlier, sometimes the 
spammers use a human to capture the form values an then plug it in to 
their software for spamming runs.

[/code]

Railo 2 CFML Engine

I've been hearing really good things about Railo these days. Coldfusion developers have been impressed with how easy it is to install and use, and most important how lightening fast it is, even when compared to Coldfusion 8.

Here are 20 reasons to consider trying Railo out for yourself.

I am not sure of all the pricing options, but they do have a free community edition that may work just fine for many web sites and I understand that a single site license of Railo is only 200 euro (about $280). Many of our sites run on dedicated web servers and this would be a huge savings over Adobe's Coldfusion server.

Web site: http://railo.ch/en/

© 2007 MJ Frauenheim, all rights reserved.