Peter Boughton
Member since Dec 11, 2008
- Profile: /members/2549-peter-boughton.htm
- URL: https://www.peterboughton.net
- Comments: 57
Recent Blog Comments By Peter Boughton
-
Application Setting "useJavaAsRegexEngine" Tells CFML To Use Java's RegEx Engine For Built-In Re-Functions In Adobe ColdFusion 2018
Posted on Nov 12, 2022 at 10:48 AM
Should have checked before posting - on my last point I made an incorrect assumption - there is no conversion performed for the replacement string. (At least in Lucee; I'm not installing CF to test.) So if one toggles useJavaAsRegexEngine they must know to go update existing replacement st... read more »
-
Application Setting "useJavaAsRegexEngine" Tells CFML To Use Java's RegEx Engine For Built-In Re-Functions In Adobe ColdFusion 2018
Posted on Nov 11, 2022 at 6:05 PM
Just seen the following article but couldn't comment there without registering: https://coldfusion.adobe.com/2022/11/switching-cf-to-use-java-regex-engine/ Followed this link and was further disappointed to see Ben calling it a POSIX Engine. :/ ColdFusion by default uses the Apache ORO re... read more »
-
ColdFusion 11 Accepts All Top-Level Domains (TLD) For IsValid() Email Validation
Posted on Jan 19, 2015 at 4:24 PM
The unicode chars appear ok in the email notifications, which presumably means they're in the database ok and you just need to check if the CFML is setting charset/encoding to iso-8859-1 or windows-1252 anywhere and fix it to utf-8.... read more »
-
ColdFusion 11 Accepts All Top-Level Domains (TLD) For IsValid() Email Validation
Posted on Jan 17, 2015 at 12:27 PM
Ben wrote: > all of the known top-level domains Your list doesn't contain ".???" or ".??" Chris wrote: > Do they accept invalid TLDs too? Maybe they just > accept anything after the final period...hmmm There's no such thing as an "invalid TLD". An email ad... read more »
-
Rule Of Thumb: Always Define And Consume An ArgumentCollection Map In A Single Context
Posted on Oct 14, 2014 at 11:27 AM
> But, probably at _no_ time should a generic FORM / URL scope be used as the argumentCollection Except for the times when they should. ;) An example might be wrapping a function from a REST api - if it usually takes its arguments from the url scope but is being called manually, calling doSomet... read more »
-
Rule Of Thumb: Always Define And Consume An ArgumentCollection Map In A Single Context
Posted on Oct 14, 2014 at 9:54 AM
Nope, this isn't an argumentcollection issue you're demonstrating - the real problem is that you're passing in a generic struct as a single argument. Beyond that, it's not really possible to comment on a better approach because you've used non-semantic names and the best approach depends on the ind... read more »
-
ColdFusion Error Thrown When Application.cfc Has Method Named "Trace"
Posted on Aug 16, 2013 at 7:50 AM
Don't suppose anyone ever found a solution to this? I'm trying to do tracing and getting the same error as everyone else, when showdebugoutput is enabled. With showdebugoutput set to false there's no error - but of course the tracing doesn't occur. Originally tried using trace BIF, then switched ... read more »
-
ColdFusion Path Usage And Manipulation Overview
Posted on Jun 19, 2013 at 10:18 AM
Anyone happen to know if the file created by getTempFile will be automatically removed at any point? Nothing mentioned in the docs, and restarting CF doesn't remove them, so it seems it needs manual code, unless there's some scheduled task that will do it? (As a side note, the part of the descri... read more »
-
POIUtility.cfc Now Hosted On GitHub
Posted on Feb 26, 2013 at 5:47 PM
Licensing is one of those things that can appear complex, but is really quite simple once boiled down. I wrote the following a little while ago, it's slightly out of context, but good enough that I can't be bothered re-writing... If you want to protect your investment for all users, use GPLv3 or a... read more »
-
POIUtility.cfc Now Hosted On GitHub
Posted on Feb 26, 2013 at 10:16 AM
You haven't identified what license it is available as?... read more »
-
Detecting Spam In User-Submitted Content With SpamAnalyzer.cfc
Posted on Sep 25, 2012 at 10:25 AM
So I'm not allowed to rename myself "Sexy Peter" without getting branded a spammer? :(... read more »
-
Object Calisthenics In JavaScript - An Introduction
Posted on May 4, 2012 at 1:42 PM
Don't use the ELSE keyword. Eh? So it's expecting people to write: if ( something ) { ... } if ( ! something ) { ... } ? Keep all classes less than 50 lines. That sounds like an arbitrary limit. :/... read more »
-
ColdFusion 10 Beta - Critical Bug In Compiling Function Expressions / Closures
Posted on Feb 21, 2012 at 12:21 PM
SO is only more convenient to people that use it. Some of us would much rather send a quick email than have to go to a website and write something that has a definite answer and wade through nonsense posted by rep hunters whilst having to explain to itchy-fingered mods why it's not the same as an e... read more »
-
ColdFusion 10 Beta - Critical Bug In Compiling Function Expressions / Closures
Posted on Feb 21, 2012 at 12:03 PM
Sam, nobody asks questions about Railo and OpenBD on Stack Overflow. (And very few ACF users ask questions there also.) The mailing lists for both of these however have thousands of threads - in the region of 800-1500 posts every month. That still might not be the level of "high market penetr... read more »
-
ColdFusion 10 Beta - Critical Bug In Compiling Function Expressions / Closures
Posted on Feb 20, 2012 at 1:08 PM
Heh, looks like there's no need to vote for that one. There is another bug in trying to use named arguments though: https://bugbase.adobe.com/index.cfm?event=bug&id=3117508... read more »
-
Use jQuery's SlideDown() With Fixed-Width Elements To Prevent Jumping
Posted on Sep 28, 2011 at 2:48 PM
>> record shortest Anna comment ever. Haha! Are you feeling ok? Might want to lie down for a bit until you recover. ;) Ben: Just to confuse us all further, there's an alternative box model where you can specify the final width and the padding/etc is included within that size rather than appe... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 6:00 PM
Adam, the concepts of Request, Page, and Template are actually three distinct things. Request I think we can agree as being the moment CF gets tapped on the shoulder by the web server, up until it delivers its response and waves goodbye. And Template is just a way of saying "file", or po... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 5:35 PM
The documentation is wrong - prior to CF9, aborting the request is exactly what it did (as proven by it not executing onRequestEnd method nor OnRequestEnd.cfm template). Documentation should always be corrected to match actual behaviour on a released product, (even if the plan is to then change tha... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 2:27 PM
Randall, If you are not currently using the "showerror" attribute for cfabort, you can update all cfabort tags to set this, and then in your onError function you can do: <cfif Arguments[1].TagContext[1].Id EQ 'CFABORT' ><cfreturn/></cfif> If you currently use... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 1:55 PM
Mike, whether or not it makes sense, changing the behaviour of this tag in such a way will break many applications, and Adobe always say they take backwards compatibility into account. There are no applications prior to CF9 that depend on onRequestEnd firing with cfabort, but there will be plenty t... read more »