Community Member Profile
- Profile: /members/2549-Peter-Boughton.htm
- URL: http://peterboughton.net
- Comments: 49
- Points: 446
Recent Blog Comments By Peter Boughton
-
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, u... 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 ) { ... } ? >&... 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... 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... 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 rat... 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... 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 ch... 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... 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... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 11:47 AM
WTF!? cfabort should not fire onRequestEnd. A "graceful" attribute could be handy, but it should certainly not be the default behaviour. All the people that voted for and implemented this behaviour need a big slap!... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:51 PM
Ah, I noticed a slight bug - the lookahead part should be this: (?=lace\b|silk\b|velvet|velour|leather) Otherwise it could incorrectly match "laceer" or "silkout", etc. (The other three items there are long enough not to
read more » -
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:48 PM
The "?" makes the preceding item optional - i.e. it can be there, but it doesn't have to be. Except, a "?" following a "(" means a "special group" - e.g. a lookahead, or a non-capturing group, or an atomic group. I'll explain the rest by commenti... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:11 PM
Ah, but there is a complete list of blog entries ( here: http://www.bennadel.com/blog/complete-blog-entry-list.htm ) Which allowed me to find the article I was thinking about: read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:05 PM
Ben, your blog doesn't have a regex tag, despite having so many blog entries about Regular Expressions...?... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:02 PM
Heh, I haven't even got a clue what sort of regex Oracle does. If it's a one-off task, then using CF is probably simpler for now. If it's an ongoing thing, Oracle might be better performance (since it's doing everything on the same server rather than passing back and forth).... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:00 PM
Doh, I forgot the code blocks. :( Anyway... as for which of the three books to choose, I'm also undecided. I've got the 1st edition of Mastering Regular Expressions, and it's good, but the 3rd edition has even more (particularly on java.util.regex, which didn't even exist at the time... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 11:43 AM
Anna, the answer is "yes and no" :P The answer I suspect you *don't* want is: Yes, like this... <cfset ShortVersions = ReReplace(LongVersions,'[aeoui]','','all') /> Whilst that fulfils your brief, I don't think it's what you're asking. Similarl... read more »



