Adam Cameron
Member since Jun 13, 2013
- Profile: /members/10972-adam-cameron.htm
- URL: http://cfmlblog.adamcameron.me
- Comments: 16
Recent Blog Comments By Adam Cameron
-
MySQL GROUP_CONCAT() Fails Silently When It Hits Its Size Limit
Posted on Aug 11, 2014 at 8:44 AM
I think you're possibly blaming the tool rather than the workman here, Ben. As has been pointed out, it's documented as working the way it does (whether that is ideal or not is another thing). So it's not *failing*. It's doing exactly what it is spec'ed to do. I see what you're saying here is a fai... read more »
-
CFFinally Tag Will Execute Even After An Abort In ColdFusion
Posted on Jul 22, 2014 at 8:34 AM
Ha. Railo have already fixed this. Astoundingly good work from them.... read more »
-
CFFinally Tag Will Execute Even After An Abort In ColdFusion
Posted on Jul 21, 2014 at 9:38 AM
@Brad, Railo's not very hard-code when it comes to finally. See the bug I just raised here: https://issues.jboss.org/browse/RAILO-3132 :-( (CF, on the other hand, runs as expected). -- Adam... read more »
-
Catching CFLock Timeout Errors In ColdFusion
Posted on Apr 29, 2014 at 11:41 AM
If you follow @CfmlNotifier on Twitter, I send out a status update whenever the ColdFusion Bloggers RSS feed updates. That covers your stuff, Ben. -- Adam... read more »
-
Catching CFLock Timeout Errors In ColdFusion
Posted on Apr 29, 2014 at 1:44 AM
Hi Ben: It's probably a bit OTT to be checking the lock name in this example, as there's only one possible lock it could be. Your tactic would make more sense if there were multiple locks in the same one try/catch. -- Adam... read more »
-
The User Experience (UX) Of Color Contrast In A Call-To-Action
Posted on Apr 2, 2014 at 5:23 PM
Interesting. I can't *not* see it as a paper aeroplane! And also see it as a good metaphor: it's got a sense of direction visually with the "arrow" look, and a sense of transporting something from x to y. It also has the metaphor of a letter (piece of paper) being made to move (by being tr... read more »
-
IsValid() Accepts Emails With Leading And Trailing Whitespace In ColdFusion
Posted on Mar 20, 2014 at 3:03 PM
Don't think it belongs in the controller. A controller should just marshal other things, should it not? You could perhaps have it as part of your DataValidationService..? -- Adam... read more »
-
IsValid() Accepts Emails With Leading And Trailing Whitespace In ColdFusion
Posted on Mar 18, 2014 at 9:49 AM
@Jose: No love of negative numbers in your world, I see ;-) -- Adam... read more »
-
IsValid() Accepts Emails With Leading And Trailing Whitespace In ColdFusion
Posted on Mar 18, 2014 at 8:44 AM
It's a bug (and you should raise it as such), but then again isValid() is a shockingly badly implemented function in general, and cannot be relied on. My advice is to not use it. And every time you find something about it that doesn't work, raise it with Adobe. They need to buck their ideas up. --... read more »
-
SerializeJson() Escapes Forward-Slashes In ColdFusion
Posted on Jan 9, 2014 at 10:11 AM
Convenient as it is, the function's intended purpose is to serialise a CFML object into JSON. It's not serializeJsonAndNodToXss(). A function should generally just do one thing. CF has other functions specifically for sanitising JS for XSS considerations. -- Adam... read more »
-
SerializeJson() Escapes Forward-Slashes In ColdFusion
Posted on Jan 4, 2014 at 2:51 PM
This is a bug in the implementation of serializeJson(), most likely due to Adobe misreading the JSON spec/RFC. Slashes don't need to be escaped, and accordingly *shouldn't* be escaped. This came up on the Railo Google Group a few weeks ago ( https://groups.google.com/d/msg/railo/4EiksqmZgas/O30Zvt... read more »
-
Default CFParam Expressions Are Always Executed In ColdFusion
Posted on Aug 22, 2013 at 9:03 AM
Dammit! I've got a blog article half-written on this very subject. How weird is that (in the sense of "coincidence"). Will have to come up with something else now. Damn you, Nadel. ;-) -- Adam... read more »
-
JsonSerializer.cfc - A Data Serialization Utility For ColdFusion
Posted on Aug 7, 2013 at 10:03 AM
@Ben, > Basically, as a fallback, all simple-values become strings. That is def the best approach. Good work. -- Adam... read more »
-
JsonSerializer.cfc - A Data Serialization Utility For ColdFusion
Posted on Aug 7, 2013 at 9:51 AM
Nice one Ben! ColdFusion's inability to deal with this stuff properly has been a huge headache for me for the last few months. Will be taking a look at this stuff this evening... -- Adam... read more »