Peter Boughton
Member since Dec 11, 2008
- Profile: /members/1650-peter-boughton.htm
- URL: http://blog.bpsite.net/
- Comments: 15
Recent Blog Comments By Peter Boughton
-
Using CFHeader With File Names Containing Spaces (Thanks Elliott Sprehn!)
Posted on Jul 20, 2007 at 4:48 AM
Is this actually ColdFusion doing this, or the browser?... read more »
-
When Do You Violate The Law of Demeter In ColdFusion OOP Development?
Posted on May 23, 2007 at 4:35 AM
I really hate serial get methods - they're ugly and unclear. This is how I'd write it: Person.readAddress( type:'B' , part:'Street' ) To me that makes it perfectly clear I'm reading the street part of the billing address.... read more »
-
A Better CFParam Tag With A Catch Attribute (Proof Of Concept)
Posted on Mar 23, 2007 at 7:37 AM
Another more significant benefit of isDefined + isValid over try/catch: (Can't remember if this is the cfparam/default or cfargument/default), but I'm sure I read somewhere that the default value is evaluated even when its not actually used. So if you had: <cfparam name="bob" value="#readNext('Bo... read more »
-
Code Chat Beta 1.0 Update - Ping Me Link
Posted on Mar 5, 2007 at 6:25 PM
So when people press that link, do you have a Wallace & Gromit -esque alarm system that will throw you out of your bed and infront of your PC, ready to help the CF-impaired at any time of the day or night? :D (if not, why not!?)... read more »
-
Making ColdFusion's QueryNew() More Readable
Posted on Dec 5, 2006 at 4:26 AM
Why include the commas in your custom tag, when newline is a perfectly good delimiter, and means you can't suffer from the annoying "oh crap, I missed the last comma /again/" thing.... read more »
-
CFSilent vs. CFContent Reset = True
Posted on Oct 27, 2006 at 7:28 AM
The downside to using cfcontent is that it can make it more difficult when you just want to pop out a quick bit of debugging info in the logic section. Although that's an upside as well - you can turn it on and not worry about if you've accidentily left some debugging code somewhere... well, so long... read more »
-
Full As A Goog Aggregation - Fun While It Lasted
Posted on Oct 13, 2006 at 4:12 PM
There is an option that gives you full control - get Proxomitron (from www.proxomitron.info) and create a filter that adds target="_blank" to links on Goog. :)... read more »
-
Full As A Goog Aggregation - Fun While It Lasted
Posted on Oct 13, 2006 at 4:11 AM
You do know that you can hold down shift to open a new window? (and in FF, Ctrl for a new tab, Alt for Save Link As) I much prefer to use that and be able to choose myself if I want a new window/tab or not, rather than having the choice made for me.... read more »
-
Hotmail Blocks Emails Send With Inline Images
Posted on Sep 13, 2006 at 8:43 AM
(there should be a "they were, but" in the above comment :S)... read more »
-
Hotmail Blocks Emails Send With Inline Images
Posted on Sep 13, 2006 at 8:42 AM
I can't remember exactly what a quick Google found a clone of the PHP manual with some info in ( http://terra.di.fct.unl.pt/docs/php/ref.mail.php.htm ). Maybe try the following: <cfmail to="#whoever#" from="#from#" replyto="#from#" type="html" charset="iso-8859-1"> <cfmailparam name="X-P... read more »
-
Hotmail Blocks Emails Send With Inline Images
Posted on Sep 13, 2006 at 8:22 AM
When I used PHP, Hotmail used to put stuff in spam unless I manually set certain headers... maybe the production server set them? As for the notification e-mail itself, I like it. :) Only minor complaint is that the "To Peter Boughton, " bit is redundant - I'm reading it so I know it's to me. Alth... read more »
-
Hotmail Blocks Emails Send With Inline Images
Posted on Sep 13, 2006 at 4:49 AM
Couldn't you just use something like this? <cfif ListLast(Email,'@') EQ 'hotmail.com'> src="{absolute}" <cfelse> src="cid:kslogo" </cfif> It'd still means clicking for Hotmail users, but at least they're not being excluded completely...... read more »
-
Neat Trick With ValueList()
Posted on Sep 7, 2006 at 4:27 AM
I love CF's list functions. :) Of course, for the other sort of lists, you can also do this: <ul><li>#ValueList( qTags.name, "</li><li>" )#</li></ul> which has come in handy for me on a couple of occasions.... read more »