ColdFusion Web Log Entries

Showing 1 - 15 of 1202   < Prev | Next >

Five Months Without Hungarian Notation And I'm Loving It

Posted: November 19, 2009 at 6:58 PM by Ben Nadel

Tags: ColdFusion

About five months ago, I expressed a growing concern that my coding methodology at the time was forcing me to create contradictions within my naming conventions . As such, I decided to completely dump my pseudo Hungarian notation for a while and adopt a more traditional, headless-camel-case approach to see how it felt. That was back in June; now,... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink



What Request Data Does ColdFusion Builder Post To Extension Handlers?

Posted: November 19, 2009 at 2:12 PM by Ben Nadel

Tags: ColdFusion

Last night, I started playing around with ColdFusion Builder extensions, creating an extension that could encrypt and decrypt CFM and CFC files . The main reason ColdFusion Builder extensions are so attractive as a means to extend the Eclipse platform is that they are powered by actual ColdFusion files (our bread and butter). When you invoke a Co... read more »

Comments (5)  |  Post Comment  |  Ask Ben  |  Permalink


My First ColdFusion Builder Extension - Encrypting And Decrypting CFM / CFC Files

Posted: November 19, 2009 at 9:13 AM by Ben Nadel

Tags: ColdFusion

After watching Simon Free present on ColdFusion Builder Extensions at RIAUnleashed up in Boston, I felt inspired and wanted to come home and start playing around with my own little extensions (get your mind out of the gutter!). As a "hello world" type introduction to the ColdFusion Builder extension arena, I thought I would try and keep it as si... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Permalink



Using CFParam To Define A Variable Number Of Arguments In ColdFusion (And What ColdFusion 9 Teaches Us)

Posted: November 17, 2009 at 9:05 AM by Ben Nadel

Tags: ColdFusion

Yesterday, I was watching an episode of " Flex and the City " (a female bodybuilding spoof on "Sex and the City") when I started to think about ColdFusion function definitions with a variable number of arguments. Most of the time, when we need to have a variable number of arguments in a method signature, we accomplish this by giving the subsequent... read more »

Comments (26)  |  Post Comment  |  Ask Ben  |  Permalink


Looping Over ColdFusion JSON Queries In jQuery

Posted: November 16, 2009 at 9:45 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

I've talked to people many times about how to loop over ColdFusion queries that have been returned from an AJAX call in JSON format. The serialized format of ColdFusion queries are a bit round-about since they are designed for memory optimization, not necessarily usability. As such, I often wind up telling people that I prefer to convert my querie... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink


Using EXSLT To Extend XSLT With Custom Functions In ColdFusion

Posted: November 11, 2009 at 10:26 AM by Ben Nadel

Tags: ColdFusion

The other day, I answered a question for a reader about filtering XML nodes against a value list using the XPath function, contains() . In the question, the reader mentioned the EXSLT library; I had not heard of this, so when researching the solution, I looked it up at www.exslt.org. As it turns out, there's a whole mechanism and existing library... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


Tracking Google AdSense Clicks With jQuery And ColdFusion

Posted: November 10, 2009 at 9:36 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

While Google AdSense is in no way a driving force behind my blogging - I just love being a programmer - sometimes, it would be nice to know which pages on my site generated the most Google AdSense clicks. This might be something that I can find out from Google AdSense reporting or from Google Analytics; but, to be honest, I don't know all that m... read more »

Comments (21)  |  Post Comment  |  Ask Ben  |  Permalink


Ask Ben: Selecting Node Attributes In XSLT Based On List Values In ColdFusion

Posted: November 9, 2009 at 10:02 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

Ben, do you know how to check to see if a xml attribute is in a list? I'm looking at the contains() function, but I'm not sure of the correct syntax or if there is a better way, but I cant seem to get this to work. I don't know how to reference the value of the @system as the second argument of the contains. Can I used something like 'this' (minus... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


How To UN-Unformat Your Code (Like A Pro)

Posted: November 6, 2009 at 4:50 PM by Ben Nadel

Tags: ColdFusion

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 (6)  |  Post Comment  |  Ask Ben  |  Permalink


How To Unformat Your Code (Like A Pro)

Posted: November 6, 2009 at 10:04 AM by Ben Nadel

Tags: ColdFusion

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 (18)  |  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

Tags: ColdFusion

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 (4)  |  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

Tags: ColdFusion

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 (11)  |  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

Tags: ColdFusion

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

Tags: ColdFusion

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

Tags: ColdFusion

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 (6)  |  Post Comment  |  Ask Ben  |  Permalink

Showing 1 - 15 of 1202   Pages: 1 2 3 4 5 6 7 8 9 10 » < Prev | Next >
Recent Blog Comments
Nov 20, 2009 at 4:46 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Todd, That's understandable. I am not sure if this really leaves any more security holes than the fact that using old cookie-based CFID / CFTOKEN values will create a new session using the old CFI ... read »
Nov 20, 2009 at 4:42 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
My opinion is that I don't think auto-generating your own CFID/CFTOKEN is recommended. I'll have to wait for Micha to answer what the ramifications are, but he probably didn't allow this in Railo for ... read »
Nov 20, 2009 at 4:31 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Todd, Yeah, each phone has a unique ID; this is the value that is being used to hack the custom CFID / CFTOKEN session values. ... read »
Nov 20, 2009 at 4:23 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
Is there no unique (device or otherwise) id that gets passed in the request that you can shove into the application scope? ... read »
Nov 20, 2009 at 4:21 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Todd, I mean "bug" only in the sense that it deviates from the way "Adobe ColdFusion" implements it.... only so far in that Railo is an open-source version of ColdFusion. I guess it depends on w ... read »
Nov 20, 2009 at 4:18 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
Not sure how it's a bug, definitely a difference. I don't want my users or coders creating their own CFID/CFTOKEN. That's the server's job. ... read »
Nov 20, 2009 at 4:14 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Dave: Well, Ben did say in his video that it was a bit of a hack. :D ... read »