News by Ben Nadel

Ask Ben: Iterating Over An Unknown Number Of Nested Lists

17 Sep 14:58
Hi There, I've think I've looked at this problem way too long and hoping a set of fresh eyes can help. Basically, I have a eCommerce site where I want to auto create product SKUs based on the product options. Each of those options have their own set of options. Example: For a tshirt with the options of Color, Size and Gender we have the following options: Color (Blue, Black, Red) Size (Small, Med, Large) Gender (Men's, Women's) If the user add ...

OOPhoto: VARIABLES vs. VARIABLES.Instance - When And Why?

12 Sep 19:09
The latest OOPhoto application can be experienced here . The latest OOPhoto code can be seen here . With OOPhoto, not only am I trying to learn object oriented programming in ColdFusion, I'm trying very hard to be able to explain every decision that I make. As fa ...

Got My Sweet-Ass T-Shirts From Steven Levithan's Regular Expression Contest

12 Sep 08:54
A while back, I was pleased to announce that I had come in at first place in Steve Levithan's regular expression contest with my input-stream-based ColdFusion regular expression parsing. As a result, I got some sweet-ass regular expression T-shirts that will let all the ladies know just how cool I am (and how serious I am about ...

OOPhoto: Facade Layer Integrated Between Controller And Service Layers

11 Sep 22:58
The latest OOPhoto application can be experienced here . The OOPhoto code for this post can be seen here . This morning, I took my simple-value-based Facade layer ideas fr ...

OOPhoto: Adding A Facade Layer

10 Sep 10:17
The latest OOPhoto application can be experienced here . The latest OOPhoto code can be seen here . I have decided to move ahead with the concept of a Facade layer in OOPhoto, my latest attempt at learning object oriented programming in ColdFusion. The Facade lay ...

OOPhoto: Been A Bit Stumped Lately With The Next Step

9 Sep 10:20
The latest OOPhoto application can be experienced here . The latest OOPhoto code can be seen here . It's been a while since I've written about OOPhoto, my latest attempt at learning object oriented programming in ColdFusion. The problem is that I am a bit stumped ...

Ask Ben: Parsing Very Large XML Documents In ColdFusion

8 Sep 16:08
Hello Ben, your website has come up numerous times in Google for my search to an answer that I cannot seem to find anywhere! You do however have related posts to my question - which is [drum roll]: How do I read and parse large XML files in CF8!? I have multiple xml files of up to 135MB(!) each that I need to parse and INSERT into SQL. The problem appears to be XMLParse. I can read the XML file in via CFFILE no problems, however the XMLParse seems to max out the C ...

XML Building / Parsing / Traversing Speed In ColdFusion

5 Sep 18:30
After my little discovery yesterday about the relative speed of XML to ColdFusion custom tags in regards to structured data collection, I decided to do a little more investigation into XML performance in ColdFusion 8. In the following demonstration, I am testing three different aspects of ColdFusion: Building an XML string using CFSaveContent . I decided agai ...

Converting A Base64 Value Back Into A String Using ColdFusion

5 Sep 14:54
This might seem super obvious to some of you, but this small problem had me stumped for a good 10 minutes this morning. I had an XML value that I was converting to Base64 for an HTTP post. Then, on the other side, I needed to take that Base64 encoded value and convert it back to a regular string for use with XML parsing. And then it hit, I had no idea how to, in ColdFusion, take a Base64 encoded value and convert it back to the original string. Once I figured it out, it was laughably ...

IMPORTANT UPDATE: XML Parsing Is WAY Faster Than ColdFusion Custom Tags

4 Sep 15:02
Earlier today, I posted about how ColdFusion custom tags executed much faster than XML parsing . To make the example more general, I was using XmlSearch() with XPath to get at the XML nodes. I did this because that way, the nature of the XML document could be more variable, just like the nature of ColdFusion custom tags. Tony Petruzzi suggested that removing the XmlSearch() would help a bit. I assumed it would, ...
Pages   ← previous   next
67 68 69 70 71