Eric Belair
Member since Feb 13, 2009
- Profile: /members/2931-eric-belair.htm
- URL: http://twitter.com/ericbelair
- Comments: 29
Recent Blog Comments By Eric Belair
-
ColdFusion Query of Queries Creates BIGINT Values When Hard Coding Integers
Posted on Nov 20, 2012 at 10:51 AM
Thanks Ben! This was actually happening to me when performing a COUNT() operation in a previous query of queries. I changed it to CAST(COUNT(1) AS INTEGER) and it worked great.... read more »
-
Ask Ben: Extending OnSessionStart() In A Sub Directory Application.cfc
Posted on Jan 18, 2012 at 2:06 PM
It seems that the base Application.cfc MUST have an onSessionStart handler.I'm noticing that if I have an onSessionStart handler in a sub-directory Application.cfc, and don't have one in the base Application.cfc, the onSessionStart handler never gets called/run, thus the Session vars I'm trying to i... read more »
-
ColdFusion Application.cfc Tutorial And Application.cfc Reference
Posted on Oct 25, 2011 at 12:20 PM
Does onRequestEnd get called on a Request Timeout? I want to capture and log request timeouts in my applications.... read more »
-
My ColdFusion User Defined Function Library Structure
Posted on Jul 1, 2011 at 1:46 PM
@Ben, how do you handle UDF Libraries that are specific to an application on your website. For instance, let's say you have a public-facing e-commerce site. You might have a My Account application, and a Checkout application, etc. If you have UDFs specific to your website application, you would like... read more »
-
My ColdFusion User Defined Function Library Structure
Posted on Jul 1, 2011 at 1:43 PM
To answer my own question, I have decided to put methods in libraries based on what the input is. If I'm modifying a structure, that method goes in StructLib.cfc. If I'm parsing a date or formatting a date, that method goes in DateTimeLib.cfc. I think I was confusing myself, because, let's say I hav... read more »
-
My ColdFusion User Defined Function Library Structure
Posted on Jun 8, 2011 at 11:06 AM
@Don my question doesn't really have anything to do with memory or architecture... i'm more thinking about what functions to put in what libraries....... read more »
-
My ColdFusion User Defined Function Library Structure
Posted on Jun 8, 2011 at 9:22 AM
I really like this implementation, and have already started using it. One question: How do you determine which methods go in which Library? For instance, I have a method that parses a date into a specific format needed for certain database queries. Would you put this in "Date"/Date.cfc Li... read more »
-
Nylon Technology Presentation: Introduction To XPath And XmlSearch() In ColdFusion
Posted on Sep 22, 2010 at 3:56 PM
@Ben, That was exactly the issue. I scoured the W3C docs to find this: http://www.w3.org/TR/xpath/#function-normalize-space Thanks!... read more »
-
Nylon Technology Presentation: Introduction To XPath And XmlSearch() In ColdFusion
Posted on Sep 22, 2010 at 1:56 PM
My XML: <root> <item label="hello"> <name> hello </name> </item> </root> <cfdump var="#XMLSearch(myXML.xmlRoot, "item[@label = 'hello']")#" /> Returns the Array with length 1. <cfdump var="#XMLSearch(myXML.xmlRoot, "item... read more »
-
URL Rewriting And ColdFusion's WriteToBrowser Image Functionality (CFFileServlet)
Posted on Jul 7, 2010 at 1:14 PM
I'm using multisite ( http://www.hairy-spider.com/post/Multisite.aspx ) to run multiple simultaneous websites on my XP machine, and can't find a way to get this to work.... When I add a Virtual Directory to the Default Website in IIS, I still can't see the images. Any thoughts?... read more »
-
Setting ColdFusion Cookies With CFCookie vs. Cookie Scope
Posted on May 3, 2010 at 10:10 AM
Very interesting piece of knowledge to store away for the future....... read more »
-
Learning ColdFusion 9: The Ternary Operator
Posted on Jul 14, 2009 at 10:30 AM
I only discovered ternary operators last year (i guess that's what happens when you're stuck writing ONLY CF/HTML for 8 years straight) while compiling coding standards for my company. I came across them while researching ActionScript standards, and have been using them ever since! I've even gone ba... read more »
-
Learning ColdFusion 9: Ternary Operator Works Around Implicit Array Bug
Posted on Jul 14, 2009 at 10:28 AM
Crayz. You must've really had to dig deep to find this one!... read more »
-
Nora Ephron vs. Meg Ryan: What Is That We Love?
Posted on Jul 7, 2009 at 10:42 AM
First of all, Joe vs The Volcano is a CLASSIC. Love that flick. Second of all, what about Top Gun? Though her part was small, I thought she was good as Goose's wife.... read more »
-
A Problem With My Coding Methodology That's Driving Me Crazy
Posted on Jun 12, 2009 at 10:43 AM
I generally follow the latter convention. I mostly work in Flex/AS3 now, so I basically only use ALL CAPS for Constants and Static variables there. I don't think I've ever used ALL CAPS in CF. I hate how CF converts Struct keys to CAPS is SOAP requests. for instance, if I create this Struct: gree... read more »
-
Object Oriented Form Helpers And Reusing Form Validation On The Client
Posted on Apr 8, 2009 at 11:50 AM
That is really good to know. I'm definitely saving this one for future use. Thanks.... read more »
-
Object Oriented Form Helpers And Reusing Form Validation On The Client
Posted on Apr 8, 2009 at 11:43 AM
Ben, this is some seriously cool OOP! I'm not familiar with JSON, but from what I do know, it's a very good way to move data around with AJAX, so I have a question.... In your AJAX call, you specify the return type as JSON, but in your Process() method in the CFC, the return type is STRUCT. Does th... read more »
-
Quick Thought On OOP Data Validation And Why Redundancy Is OK
Posted on Apr 3, 2009 at 11:36 AM
Also, in some cases, I create an instance of an Object with no data in it, and add data to it on the fly, either by calling commands to do so, or by simply setting a single property. By default, I write all my Objects with no validation in the constructor, so that I have this flexibility. I guess ... read more »
-
Quick Thought On OOP Data Validation And Why Redundancy Is OK
Posted on Apr 3, 2009 at 11:29 AM
I follow this practice both for instantiating Objects from data returned by WebServices, and for instantiating Objects on-the-fly based on user input. For instance, I have a UI which allows a user to create a new set of report definitions and then run that report. As they create the Report using a ... read more »
-
Quick Thought On OOP Data Validation And Why Redundancy Is OK
Posted on Apr 3, 2009 at 10:56 AM
Well, I went through a similar dilemma in designing my value objects in my Flex applications, and I decided as a general rule NOT to perform validation in the constructor, but, instead to have any additional - not front-end - validation be performed in a separate command class where the Account is c... read more »