Skip to main content


Showing posts from October, 2007

Designing CFCs for use with Flex

I have a design pattern for CFCs that I like to use, but recently I ran into an annoying problem where I was trying to use some of my already in-use CFC with a client written in flex, consuming the CFCs as web services.By finding a nice tip on Kyle Hayes' blog (see here), I was able to get things to working just the way I had hoped, and this blog entry will show how it all comes together.Here is the basic structure of my standard CFC  template:
<cfset my = StructNew()>

<cfset my.getList = structNew()/>

<cfset my.getList.error = 0/><cftry><cfqueryname="qrsRESULTS"dataSource="MY_DATASOURCE">

SELECT col1,col2,col3


WHEREsomevalue = '#ARGUMENTS.somevalue#'

          <cfset my.getList.result = qrsRESULTS><cfcatchtype="any">

<cfset my.getList.error = 1>

<cfset my.getList.message = CFCATCH.message>

</cfcatch></cftry>     <cfreturn my.getList&g…

pfSense - Router OS

I recently started evaluating load-balancing solutions for our small office.  Verizon seems to never have a clue, and loves to spontaneously shut accounts down for no good reason, and without warning.  For any of your Verizon DSL or FiOS users -- beware!

I have begun evaluating a hardware device called the HotBrick LB-2 which supposedly is designed specifically for taking two WANs and load balancing traffic (with failover).  Exactly what I want. While looking at prices, I came across discussion of an open source project called pfSense.

Now normally I will consider open source for applications I can customize, but I never really considered running something like this in place of our router or firewall.

Documentation is scarce, but I have been discovering some impressive things about pfSense:

It is based on m0n0wall -- an excellent BSD router OS with a web management interfaceIt can be run off a Live CD !!!You can set it up to run in production off the live CD and save your changes to a …