Coder's Revolution

Do you want a revolution?

Category Filtering: 'CF'

Taming The Header Output Of CFHTMLHead and CFAjaxProxy

ColdFusion, Java
Tags like CFHTMLHead, CFAjaxProxy, and CFAjaxImport don't output their content into the regular ColdFusion output buffer. Instead they put their contents into a special header buffer which is dumped into the beginning of the output right before the request is sent back to the client. But what if you want control over where their output goes? CFSaveContent doesn't work on these bad boys. And even worse, <cfcontent reset="yes"> doesn't get rid of their output. The other day I got bit when trying to return the HTML of a rendered view via a proxy in ColdBox as a JSON string. The JavaScript output of the CFAjaxProxy tag was being appended to the beginning of the response and causing the result to not be valid JSON.
Comments are currently closed

How To Get The SQL Server SPID Out Of SeeFusion

ColdFusion, Performance, SeeFusion, Server Administration, SQL
I've never kept too quiet about my affection for SeeFusion as a ColdFusion monitoring tool. I use it for debugging, performance monitoring, and basic metrics gathering. Here's an old note on the JDBC URL wrappers that I found myself digging up last week. I don't even think you can find this nugget on the official SeeFusion site.
Comments are currently closed

MVC Question: What Should The Controller Pass The View?

ActionScript, Ajax, ColdBox, ColdFusion, Flash, Flex, IBO, MVC, Object Oriented Design (OOP)
I think the bane of development planning can be those conversations where you personify your framework and start debating about what a service should "know", whose "job" a particular operation is, or what the handler should "care" about. This is one of those sort of questions, but I'll keep it brief since I'm more interested in your opinions than my ramblings.
Comments are currently closed

ColdFusion UDF: Calculate A Number's Divisors

ColdFusion, Mathmatics, Performance
Here's another UDF I was tinkering with last week. I wanted to be able to count all of the numbers that divided evenly into a given integer. I couldn't find a ColdFusion implementation, so after getting some advice from Stack Overflow I created my own.
Comments are currently closed

Calculate Prime Numbers: Sieve of Eratosthenes

ColdFusion, Mathmatics, Performance
Ahh... the quintessential math problem-- finding prime numbers. Last week while tinkering with a math challenge I needed to find all of the primes up to a given number. There was a version on cflib.org, but I thought I could do it in less code, so I dug in myself.
Comments are currently closed

Bolt, Centuar, Flash Catalyst, and Gumbo features

ActionScript, AIR, Ajax, Centuar, ColdFusion, Flash, Flex, General, Gumbo, Server Administration
This Wednesday Adobe's Kevin Hoyt spoke in Kansas City to a captive audience of about 75 people including ColdFusion programmers, HTML/CSS builders, and designers. The meeting was great. It also included Jack Stack BBQ and shwag from Uhlig, Emfluence, and Tek Systems to name a few. Kevin didn't drop any bombs I hadn't heard about yet, but there were definitely a few things I learned about Adobe's up-and-coming products. Here's a quick overview of my notes:
Comments are currently closed

Adobe's Kevin Hoyt is coming to Kansas City!

ColdFusion, Flash, Flex, General, Gumbo
If you live in or around Kansas City, Kevin Hoyt is coming to speak about ColdFusion, Bolt, Flex, and Flash Catalyst this Wednesday. I am pretty excited. First of all, to receive some local attention from Adobe. Secondly, to get to hear Kevin (Adobe Platform Evangalist). Thirdly, they are promising BBQ. What else could be better?
Comments are currently closed

New Flex 4 Tutorials Available

ActionScript, ColdFusion, Flash, Flex, Gumbo
Flex 4 (Gumbo) is now in Beta and new training tutorials are available from Trilemetry. There a handful of new articles you can read on Adobe's site and follow along with to learn Flex 4 with ColdFusion!
Comments are currently closed

Should Optional Method Parameters Be Defaulted To Blank, Or Left Undefined?

ColdFusion, Object Oriented Design (OOP)
Today I offer you a question of preference. Should optional method parameters be defaulted to blank and assumed to exist, or should they only be defined if you intend to use them? In the name of code reusability I will find myself writing generic service methods such as userService.loadUser() which have a large list of optional parameters such as lastName, firstName, userName, companyID, userID, password etc. I will reuse this method any time I want to load a user or a list of users. The question is this: is it more correct to default all of the arguments or check for their existence?
Comments are currently closed

CFML Advisory Committee Update and ColdBox

ColdBox, ColdFusion, General
Just a couple things I wanted to mention... The first is that the CFML Advisory Committee has been at work drafting their first version of the CFML language spec. Also, while looking through www.opencfml.org I noticed they are using CodexWiki which runs on ColdBox which is pretty cool. Speaking of ColdBox...
Comments are currently closed