Posted: December 4, 2008 at 12:25 PM by Ben Nadel
I am using CFHTTP to send a multipart message XML and an image file (fax tiff), the question I have is how do you send a XML type and File type in the same post? I have tried using cfhttp type designator, but cold fusion errors saying that you can not have both a XML and File type. The problem here is that you are using the ColdFusion CFHttpParam... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: December 4, 2008 at 10:08 AM by Ben Nadel
While I am still in the middle of Zen and the Art of Motorcycle Maintenance , I wanted to take a little time yesterday to listen to The Four Agreements: A Practical Guide to Personal Freedom by Don Miguel Ruiz. This book was recommended to me a long time ago by Jason Kay. Shortly afterwards, I purchased a used copy of it at the Strand but never e... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: December 3, 2008 at 9:02 AM by Ben Nadel
I have to admit, I have not used ColdFusion's ArgumentCollection all that much. And, when I have used it, it's been an all or nothing thing. In fact, I only recently learned that you could override aspects of an ArgumentCollection with additional arguments. I knew that as of the latest ColdFusion updater you could override AttributeCollection elem... read more »
Comments (22) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: December 2, 2008 at 10:26 AM by Ben Nadel
ColdFusion does a lot to help you out as a programmer. In that vein, ColdFusion will often convert data types for you as it sees it necessary. Unfortunately, that can come back to bite you if you are not careful. This morning, I spent a solid 45 minutes trying to debug an XML error because it didn't occur to me that I was getting a little extra he... read more »
Comments (3) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: December 2, 2008 at 10:03 AM by Ben Nadel
Ok, so last week, I was having some issues sorting target XML node sets in ColdFusion XML documents. I created a user defined function that would sort nodes given a parent node , but that never sat well with me; unfortunately, I didn't know how to fix it so that a target node set could be given rather than a parent node reference. Then, yesterday... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: December 1, 2008 at 2:56 PM by Ben Nadel
I know that with a CFC you can view the cfc and it will give you a listing of the methods, arguments, etc. But I have single page that has a ton of different UDF's within it. I can do a cfdump of the variables struct, which will then give me a great look at all the UDF's. Is there an way to do: <cfloop collection="#variables#" item="key"> #... read more »
Comments (5) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: December 1, 2008 at 8:54 AM by Ben Nadel
Last week, I posted a few times about ordering nodes in an XML document using XSLT and ColdFusion . Then, over Thanksgiving, Simon Free suggested that I try swapping the XML nodes directly in the "live" XML document object. Messing with an actual XML document in ColdFusion can be a bit tricky because XML nodes have document owners, which mean... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 29, 2008 at 9:39 AM by Ben Nadel
I forget exactly what I was doing, but last week, I had a random thought about application architecture and the database. From everything that I have been told, people say that the database is the bottleneck in a data-driven application. If that is the case, (which I would definitely agree with) then shouldn't the data layer be the most elegant, g... read more »
Comments (14) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 26, 2008 at 10:22 AM by Ben Nadel
The other day on Twitter, Mark Mandel posted a tweet about regular expressions and multi-line mode. He was trying to match patterns on a per-line basis. After he posted this, I went and did a little experimentation with multi-line mode and I discovered a really interesting (read: frustrating) discrepancy between ColdFusion's regular expression e... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 26, 2008 at 9:32 AM by Ben Nadel
I know it's a day early, but I probably won't be at my computer tomorrow. So, have a Happy Thanksgiving! The pumpkin pie can run, but it can't hide! All the best from your friends at Kinky Solutions. ... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 25, 2008 at 10:06 AM by Ben Nadel
Do you know of any ColdFusion code to check to see if a domain is available. I want to add a domain search to my site, but can't find any code for it in CF. I have found PHP code, but really would like ColdFusion version. Any ideas... thanks. When it comes to checking domain name availability, it seems the challenge is not so much the ColdFusion ... read more »
Comments (21) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 24, 2008 at 2:32 PM by Ben Nadel
This morning, I helped someone figure out how to sort a node set of a given XML document using some child node attributes . I really liked this problem and wanted to see if I could come up with a ColdFusion user defined function (UDF) to make it a bit more generic. So far, this is proving much harder than I would have hoped. Originally, I would h... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 24, 2008 at 9:17 AM by Ben Nadel
Ben, I know that you have done a fair bit of work with xml files in ColdFusion and I am hoping you can help me with a problem I am trying to solve. I am interested in sorting an xml file by a given attribute. For Example: <xmlitems> <xmlitem name="b">something</xmlitem> <xmlitem name="a">somethingelse</xmlitem> </... read more »
Comments (8) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 21, 2008 at 9:19 AM by Ben Nadel
I have a question relating to the CF request cycle. This is because I am implementing some code which increments a number by IP address on each request start and decreases it on request end so that I may limit the amount of concurrent requests by IP every request start. That as a concept works fine although I was having weird issues where the requ... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 21, 2008 at 8:43 AM by Ben Nadel
I am currently working my way through Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig (thanks Joshua Cyr ). I've got a lot more to go, but this morning, the main character said something that I thought was quite profound, especially for me as a software engineer. To paraphrase (as I don't remember the exact words), he said: The ... read more »
Comments (13) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
EtherPad: Potential For Great Peer Debugging - Posted Nov 20, 2008
jQuery Data() Method Associates Data With DOM Elements - SWEET ASS SWEET! - Posted Nov 20, 2008
Javascript Objects Cannot Have Complex Index Values - Posted Nov 20, 2008
Comprehensive ColdFusion Component OnMissingMethod() Testing - Posted Nov 19, 2008
Using jQuery To Leverage The OnChange Method Of Inputs - Posted Nov 18, 2008
Duckman Is My Sherpa - Posted Nov 17, 2008
Ask Ben: Iterating Over An Array With jQuery - Posted Nov 17, 2008
ColdFusion CFParam Regex Validation Tests Whole Value - Posted Nov 14, 2008
Ask Ben: Hiding Customer-Specific Image Paths - Posted Nov 13, 2008
Ask Ben: Dynamic Table Names In ColdFusion Queries - Posted Nov 13, 2008
Ask Ben: Flagging Threaded Discussions As New Or Unread - Posted Nov 13, 2008
Intrinsic Goodness, Sex, Happiness, And Pleasure - Posted Nov 11, 2008
Creating jQuery Templates Plug-in Using Textarea Elements (Thanks Kurt Bonnet) - Posted Nov 10, 2008
Handling AJAX Errors With jQuery - Posted Nov 7, 2008
RESwitch / RECase ColdFusion Custom Tags For Regular Expression Switch Statements - Posted Nov 6, 2008
I Wish: ColdFusion Custom Tag Query Looping - Posted Nov 3, 2008
Ask Ben: Getting The Start And End Dates Of The Previous Week In ColdFusion - Posted Nov 3, 2008
Have A Kinky Halloween :) - Posted Oct 31, 2008
Ask Ben: Exporting A Query To CSV Without Using Column Names - Posted Oct 29, 2008
Ask Ben: Redirecting Users To A Random Page - Posted Oct 28, 2008
Object Oriented Programming And ColdFusion - What's The Point? - Posted Oct 27, 2008
Hal Helms On Object Oriented Programming - The Summary - Posted Oct 26, 2008
Hal Helms On Object Oriented Programming - Day Five - Posted Oct 24, 2008
Hal Helms On Object Oriented Programming - Day Four - Posted Oct 23, 2008
Hal Helms On Object Oriented Programming - Day Three - Posted Oct 22, 2008
Hal Helms On Object Oriented Programming - Day Two - Posted Oct 21, 2008
Hal Helms On Object Oriented Programming - Day One - Posted Oct 20, 2008
Heading To An Object Oriented Programming Seminar - Posted Oct 19, 2008
OOP Getters() And Setters() - A New Programmer's Frustration - Posted Oct 14, 2008
KinkyTwits Update - "Characters Remaining" Understands Message Type And HTML Entities - Posted Oct 7, 2008
Ask Ben: Dynamically Adding File Upload Fields To A Form Using jQuery - Posted Oct 6, 2008
KinkyTwits - My ColdFusion And jQuery Powered Twitter Client - Posted Oct 6, 2008
Listing All Classes In A Jar File Using ColdFusion And CFZip - Posted Oct 3, 2008
Listing All Classes In A Jar File Using ColdFusion - Posted Oct 2, 2008
Project HUGE: Trying Out A 4-Exercise Limit - Posted Oct 1, 2008
Ask Ben: Instantiating Nested Java Classes In ColdFusion - Posted Oct 1, 2008
Ask Ben: What I Look For In A Potential Employee - Passion - Posted Oct 1, 2008
OOPhoto: Implementing Security In An Object Oriented Application - Round I - Posted Sep 30, 2008
OOPhoto: Initial Thoughts On Handling Security In An Object Oriented Application - Posted Sep 29, 2008
Simon Free Leads The Way - Posted Sep 29, 2008