ColdFusion Web Log Entries
How To UN-Unformat Your Code (Like A Pro)
Posted: November 6, 2009 at 4:50 PM by Ben Nadel
After my previous post on how to quickly and easily take my style of formatting and strip it out of ColdFusion code , some people suggested that I make a function that goes back the other way (adding my style of formatting into ColdFusion code). While I love this concept, the problem is actually quite a bear! Removing formatting doesn't really re... read more »
Comments (0) | Post Comment | Ask Ben | Permalink
How To Unformat Your Code (Like A Pro)
Posted: November 6, 2009 at 10:04 AM by Ben Nadel
At this past CFUNITED, big Dan Vega told me about a little project he wanted to show in the Demo Derby. The conversation went a little something like this (in meaning, not word for word): Ben, I love using your code; but I hate that it takes me 30 minutes to remove all of your freaking formatting. So, I'm trying to create a ColdFusion Builder (... read more »
Comments (17) | Post Comment | Ask Ben | Permalink
Matching Multi-Line Regular Expression Patterns In MULTILINE Mode (?m)
Posted: November 5, 2009 at 2:04 PM by Ben Nadel
This morning, I was (and am still) having a problem getting some MULTILINE regular expression patterns to match properly. As such, I wanted to put a quick blog post together as a sanity check for myself. As I have blogged about before , when a Java regular expression is running in multiline mode (as denoted by the "?m" flag), the "^" and "$" expr... read more »
Comments (3) | Post Comment | Ask Ben | Permalink
Tracking Request Volume Based On IP Addresses In ColdFusion
Posted: November 4, 2009 at 2:44 PM by Ben Nadel
This much less a "how to" post and much more just a " thinking out loud " post. I don't really know if I even like what I came up with; but, I figured I would put it out here in case it lead to some good conversations. In the wake of some spam comments on my site, I started to think about tracking the IP addresses of requests in ColdFusion in orde... read more »
Comments (10) | Post Comment | Ask Ben | Permalink
IIS MOD-Rewrite: R6016 Not Enough Space For Thread Data
Posted: November 3, 2009 at 7:58 PM by Ben Nadel
This is just a quick note to anyone who comes across this error. I just upgraded my blog to use IIS MOD-Rewrite using the PATH_INFO approach and when I started running the IIS MOD-Rewrite installer on my server, I got the following Microsoft Visual C++ RunTime error: R6016 Not Enough Space For Thread Data The IIS service was running at the t... read more »
Comments (0) | Post Comment | Ask Ben | Permalink
Using IIS URL Rewriting And CGI.PATH_INFO With IIS MOD-Rewrite
Posted: November 3, 2009 at 10:45 AM by Ben Nadel
Previously, I explored the concept of using URL rewriting with IIS and IIS MOD-Rewrite in order to make ColdFusion's OnMissingTemplate() event handler more effective . This worked fine with some fenagling, but Justice suggested that I take a look at using PATH_INFO. I've only briefly looked into PATH_INFO before, but one thing that I do like ab... read more »
Comments (8) | Post Comment | Ask Ben | Permalink
Learning ColdFusion 9: Iterating Over Pseudo XML Node Wrappers With CFLoop
Posted: October 31, 2009 at 1:24 PM by Ben Nadel
For several versions of ColdFusion, we have been able to reference groups of XML nodes using pseudo node wrappers and struct and array notation. This has been a useful shorthand when extracting node data from an XML document; but, about two years ago, I found out that these pseudo node wrappers could not be used in conjunction with ColdFusion 8's... read more »
Comments (4) | Post Comment | Ask Ben | Permalink
Caching ColdFusion Component Methods Has Negligible Performance Improvements
Posted: October 28, 2009 at 8:52 AM by Ben Nadel
One thing that I find intriguing about inheritance in Javascript is that it is object-based. Meaning, you inherent from an actual object instance, not from a class. This is known as Prototypal inheritance, sometimes referred as differential inheritance, in which your class contains only that which differs from your prototype object. In this form o... read more »
Comments (17) | Post Comment | Ask Ben | Permalink
My BFusion / BFLEX Keynote Address
Posted: October 24, 2009 at 2:11 PM by Ben Nadel
I just finished my portion of the BFusion / BFLEX keynote address and got some really great feedback. A few people even asked for a copy of my speech. Here is what I wrote: . . . A few weeks ago, I attended a meeting hosted by the NYCUPA, which is the New York City chapter of the UPA - the Usability Professional's Association. This particular ... read more »
Comments (16) | Post Comment | Ask Ben | Permalink
Building Single-Page Applications Using jQuery And ColdFusion With Ben Nadel (Video Presentation)
Posted: October 9, 2009 at 2:41 PM by Ben Nadel
The following video and slide show is my presentation: Building Single-Page Applications With jQuery and ColdFusion . Building a single-page application is a radical shift from the request-response lifecycle that many of us are used to. Not only does it require an excellent Javascript abstraction layer like jQuery, it necessitates a more co... read more »
Comments (23) | Post Comment | Ask Ben | Permalink
Adobe Officially Releases ColdFusion 9 - The Newest, Most Powerful ColdFusion Server (Saucy)
Posted: October 5, 2009 at 9:07 AM by Ben Nadel
This morning, I was both thrilled and surprised to find out that Adobe has officially released ColdFusion 9 - the latest and most powerful ColdFusion application server. Over the past few months, I have been blogging a lot about the ColdFusion 9 public beta and all of the new features that it makes available; and, after months of experimenting, d... read more »
Comments (21) | Post Comment | Ask Ben | Permalink
Parsing Invalid HTML Into XML Using ColdFusion, Groovy, And TagSoup
Posted: September 30, 2009 at 2:26 PM by Ben Nadel
I try to write my HTML as XHTML-compliant as possible, which makes it a subset of XML; but, that's not always easy or possible and often times the HTML that we deal with is downright dirty. As such, it makes parsing the HTML into a usable data structure a total nightmare! As part of my exploration of Groovy, I wanted to see if ColdFusion could lev... read more »
Comments (7) | Post Comment | Ask Ben | Permalink
Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag
Posted: September 29, 2009 at 10:12 AM by Ben Nadel
The other day on Twitter, I saw someone tweet about how they just discovered ColdFusion's CFHTMLHead tag and was planning to use it in a project. This gave me flash backs to a project I took over in which the CFHTMLHead tag was being used all over the place. Having not known about this tag at the time, I thought I was going crazy!! Stuff was showi... read more »
Comments (14) | Post Comment | Ask Ben | Permalink
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted: September 23, 2009 at 10:22 AM by Ben Nadel
Hi Ben, I am writing from London, United Kingdom. How can I display the first 50 words of a blog post as a teaser using some jQuery code snippet? I gotta follow you on twitter. cheers. I know you asked to see this as a jQuery code snippet - and I will get to that - but first, I want to approach this from a ColdFusion view point. I think it makes ... read more »
Comments (30) | Post Comment | Ask Ben | Permalink
Ask Ben: Parsing Nested Lists With A Single Delimiter In ColdFusion
Posted: September 22, 2009 at 10:17 AM by Ben Nadel
Ben, How would I go about splitting a list into multiple lists? For example I have a list: 07/08/2009|1,573,067.20|8/8/2009|1,563,000.20 This list can be infinite in values but will always contain a date/amount combination. I need to split these into lists of 2 one date/amount lists. Seems like it should be easy enough to do but I think I have b... read more »



