Archive for December, 2008

Flex Variable Binding in AS3

Wednesday, December 31st, 2008

In mxml you can bind a variable using {}. How do you do that in AS3?


import mx.binding.utils.BindingUtils;
BindingUtils.bindProperty(label2,"text",ti1,"text");

Thanks Raghu!
http://raghuonflex.wordpress.com/2007/08/30/binding-in-mxml-as/

“Invalid parameter bindings” error message in ColdFusion

Tuesday, December 23rd, 2008

ColdFusion Error message:
[Macromedia][SQLServer JDBC Driver]Invalid parameter binding(s).
Your problem might be:
<cfquery name="clinicalTrialsEncounterInsert" datasource="#variables.dsn#">
INSERT INTO table
(
value1,
value2,
value3,
value4,
value5
)
VALUES
(
<cfqueryparam cfsqltype="CF_SQL_INTEGER" value="0"/>,
<cfqueryparam cfsqltype="CF_SQL_BIT" value="0"/>,
<cfqueryparam cfsqltype="CF_SQL_BIT" value="0"/>",
<cfqueryparam cfsqltype="CF_SQL_TIMESTAMP" value="#now()#"/>,
<cfqueryparam cfsqltype="CF_SQL_INTEGER" value="8"/>
)
</cfquery>

Notice the stray double-quotes following the queryparam? Sneaky little devil!

Linux Find Text In Files With Find

Monday, December 22nd, 2008

find . -exec grep -q "searchthisstring" '{}' \; -print
This command will search for files and directories in the current directory and run grep on each one. All files that contain the string will print to standard output.

1st post

Monday, December 22nd, 2008

blog = go!