Adam Cameron
Member since Dec 11, 2008
- Profile: /members/2196-adam-cameron.htm
- Comments: 67
Recent Blog Comments By Adam Cameron
-
New ColdFusion Error: Form Entries Incomplete Or Invalid
Posted on Apr 14, 2010 at 8:02 AM
Hi Ben I'm just adding another "cheers for blogging this" note: I just got bitten on the bum by this and it was doing my head in as to WTF was going on, until I read your blog post. So: cheers! I'm developing an app for BlueDragon (bleah, but not my call), and notionally have to have it working on... read more »
-
Using XPath To Select A Node That Does Not Contain Another Node In ColdFusion
Posted on Mar 25, 2010 at 7:38 PM
It's good to see there's always something new I can learn about XPath. Good post. Cheers. -- Adam... read more »
-
The Performance Cost Of Throwing Exceptions In ColdFusion
Posted on Jul 18, 2009 at 12:57 PM
"It'd be great if there was an easy API to access that stuff without having to throw exceptions." There is. java.lang.Exception. I remodelled your code to test the <cfthrow> approach compared to creating an exception using Java, with a control of neither, and the results were along these li... read more »
-
Learning ColdFusion 9: Virtual File System vs. Actual File System
Posted on Jul 18, 2009 at 12:27 PM
Hi Ben I'd be interested in seeing the results if you individually time each discrete action (so separate timings for the deletes, writes and reads), rather than timing all four actions together. -- Adam... read more »
-
An Experiment In Non-Data-Type ColdFusion Components
Posted on Apr 13, 2009 at 3:55 AM
Hi Ben You seem to use the words "class" and "object" interchangeably, which I think can cause confusion when thinking about what you're doing (or articulating it in a blog post!). Also, CF doesn't have classes anyhow. It has components. Best to stick to the actual nomenclature, I reckon. In CF ... read more »
-
Ask Ben: Finding XML Nodes That Have Children With The Given Case-Insensitive Phrase
Posted on Feb 13, 2009 at 3:49 AM
Hi Ben I don't think there's any way anything you said could've been construed as an attack against anything or one. Everything you said is spot on, valid, and I'm sure is something Adobe are giving at least some consideration to. -- Adam... read more »
-
Ask Ben: Finding XML Nodes That Have Children With The Given Case-Insensitive Phrase
Posted on Feb 12, 2009 at 5:25 PM
>It's not about them implementing anything. Well, Elliott, it would be about them implementing Saxon instead Xalan, wouldn't it? So it's every thing about them implementing something, isn't it? >People seem to think that Macrodobe actually implement this stuff. Yes. They seem to think Ado... read more »
-
Ask Ben: Finding XML Nodes That Have Children With The Given Case-Insensitive Phrase
Posted on Feb 12, 2009 at 1:10 PM
RyanTJ, could you pls clarify what you're saying here about xmlSearch() failing? Maybe paste some sample code? Ben: could you please drop me an email offline (it's just about this lower-case / upper-case stuff, and CF's support for it). Cheers. -- Adam... read more »
-
Ask Ben: Finding XML Nodes That Have Children With The Given Case-Insensitive Phrase
Posted on Feb 11, 2009 at 12:50 PM
There's another couple of options here Ben: <cfset aNoCase1 = xmlSearch(xmlFeed, "//item[contains(translate(title/text(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), 'coldfusion')]")> It's a bit long-winded, but it works. This next one conditionally works... it's OK for loo... read more »
-
Interesting Behavior When Swapping Live Nodes In A ColdFusion XML Document
Posted on Dec 1, 2008 at 6:27 PM
You just need to watch your pointers, Ben. Modify your node assignment line thus: {code} <cfset xmlData.toes.toe[3] = duplicate(xmlData.toes.toe[2])> {code} -- Adam... read more »
-
Ask Ben: Dynamic Table Names In ColdFusion Queries
Posted on Nov 13, 2008 at 10:54 AM
Just regarding this: {quote} FROM table_<cfqueryparam value="#arguments.suffix#" /> I have never seen this work. As much as I love ColdFusion's CFQueryParam tag {quote} One should not expect it to work. <cfqueryparam> is for setting paramater values. It has the dual purpose of where ... read more »
-
Breaking Out Of A ColdFusion Custom Tag Loop
Posted on Sep 23, 2008 at 12:46 PM
Hi Ben. This looked like a sitter for a nested tag, and getting the nested tag to communicate with the parent tag via <cfassociate>. As I had never used <cfassociate> before, I decided it was a good opportunity to investigate further. Here's what 15-odd min of investigation lead me to:... read more »
-
Ask Ben: Parsing Very Large XML Documents In ColdFusion
Posted on Sep 9, 2008 at 6:36 PM
Yeah, it was the fileRead() thing instead of <cffile> I meant there. In regards to the regex side of things, I realise the Java implementation offers much more power, but how you're using it here doesn't seem to be any different (except in a more convoluted way) than using a single reFind(). ... read more »
-
Ask Ben: Parsing Very Large XML Documents In ColdFusion
Posted on Sep 9, 2008 at 3:46 AM
Hi Ben Question. You state "I like to build everything that I can in ColdFusion", but you use Java to do your regexes and file ops, both of which could have been done in CF, and more simply to boot. Any reason for that? -- Adam... read more »
-
XML Building / Parsing / Traversing Speed In ColdFusion
Posted on Sep 5, 2008 at 7:50 PM
Interesting post. One thing I've observed when building large XML documents, is that using CF's XML functions like xmlElemNew() and its ilk were much less mean on memory than creating the thing using CFXML (which is just CFSAVECONTENT with an implicit xmlParse() added in, as far as I can tell). I ... read more »
-
Regular Expressions With Repeated Groups
Posted on Jan 4, 2008 at 8:06 PM
You're dead right, that's exactly what reMatch() does. I misread/mistook "repeated group" for "repeated match". Cheers for pulling me up on that one... it lead to some interesting reading. Well: as interesting as regexes get, anyways ;-) Whilst on the subject, I was initially quietly hopeful abo... read more »
-
Regular Expressions With Repeated Groups
Posted on Jan 2, 2008 at 9:51 AM
Is that like what reMatch() does? http://livedocs.adobe.com/coldfusion/8/functions_m-r_27.html -- Adam... read more »
-
Regular Expressions With Repeated Groups
Posted on Dec 16, 2007 at 5:50 AM
> being able to access the matched groups is only available via the Java Pattern / Matcher as far as I know There's the returnsubexpressions option for reFind(). That does what you're suggesting, dunnit? It's not as nice as your approach, that said. -- Adam... read more »
-
Ask Ben: Getting the Previous Day In ColdFusion, Excluding Saturday And Sunday
Posted on Jul 23, 2007 at 10:20 AM
If you wanted to start helping out on the Adobe forums - even occasionally - that would be cool: we need all the help we can get! -- Adam... read more »
-
Ask Ben: Getting the Previous Day In ColdFusion, Excluding Saturday And Sunday
Posted on Jul 23, 2007 at 8:34 AM
Hi Ben. I originally saw this question here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=3&threadid=1285943&enterthread=y Note my - purposely abrupt - response to it. Thankfully the OP realised it was for emphasis rather than anything else. So this is my moment ... read more »