Re: How to Capture Field Name with Two Input Variables

2010-10-23 Thread enigment
Go with Form["outcome_" & i], not Evaluate or '#form.outcome##form._ac_id#'. It's just way cleaner. d ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: Does ORM scale?

2010-10-22 Thread enigment
my objects model formatting/custom logic?"  Our > response to that is to factor that logic into a helper class that is > a) used by the object and b) used where the query is cfoutput'd. > > -Joe > > > On Fri, Oct 22, 2010 at 8:44 AM, enigment wrote: >> >> J

Re: Does ORM scale?

2010-10-22 Thread enigment
Not so much thinking about transactions, or avoiding straight queries with stored procs, more about returning large result sets as native queries rather than collections of cfc objects. One possibility of course is to use ORM for single/composite record detail, and native cf queries for search/li

Does ORM scale?

2010-10-22 Thread enigment
Just starting to look at the CF ORM stuff, pretty nice API, Hibernate underneath, all good. But as I understand it, ORM "queries" return arrays of cfc objects, and I'm concerned about performance at scale. On a gut level, I'd rather be able to get a native CF query, which I could deal with in str

Re: CF (8.0.0) performance vs PHP (5)

2010-10-18 Thread enigment
+1,000,000 for Jame's theory about string concatenation. CF is very inefficient at this. Doesn't amtter much for small stuff and a few repeats, but for bulk, a Java buffer is the way to go. Dave On Mon, Oct 18, 2010 at 4:04 AM, Jochem van Dieten wrote: > > On Mon, Oct 18, 2010 at 5:14 AM, Bryn

Re: Looping over Query that's contained in a structure.

2010-10-14 Thread enigment
The spellchecker in IntelliJ IDEA is camel-case aware, so it highlights things like this. Not just for that reason, I'm very happy with it. Dave ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion

Re: Subversion Software

2010-10-14 Thread enigment
+1 VisualSVN Dave ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338165

Re: jQuery and cfcontent

2010-10-13 Thread enigment
+1 for Dan's approach. Dave On Tue, Oct 12, 2010 at 10:12 PM, Dan G. Switzer, II wrote: > > On Tuesday, October 12, 2010, Dave Watts wrote: > >> You can't prompt the user to download a file if you're invoking the >> URL with standard jQuery AJAX calls. You have to basically just fetch >> the U

Re: CF Site not load - only show HTTP header

2010-10-12 Thread enigment
Is it the gzip encoding maybe? Can you turn that off on the server to try it? Dave On Tue, Oct 12, 2010 at 6:44 PM, Judah McAuley wrote: > > Are they using any sort of proxy? Perhaps an ad blocker? > > Judah > > On Tue, Oct 12, 2010 at 3:12 PM, Sebastian Powell wrote: >> >> Hi, >> >> I have a

Re: cfssetting showdebugoutput

2010-10-10 Thread enigment
I'm pretty certain that "no", "false", and "0" all have the same effect. Dave On Sun, Oct 10, 2010 at 3:43 PM, Reed Powell wrote: > > You want not "false". It will stop any debug > output, just as if you removed your IP address from the list in cf admin.  It > will not have any effect on err

Re: cfssetting showdebugoutput

2010-10-10 Thread enigment
Using does actually disable debug output. Any chance there's another call to it somewhere else with a different setting? Are you actually seeing debug output in the requests that fail, even with that code? Or you're not, but debug output being on in administrator but off on the page still breaks

Re: Positional argument collection

2010-10-06 Thread enigment
No, actually not, unless I missed it. Evaluate is against my religion, but I might make an exception if there isn't any other way and I care enough. It's an odd language feature to work around, argumentCollection (args by name) exists, but there's no positional equivalent. Thanks, Dave On Wed,

Re: Positional argument collection

2010-10-06 Thread enigment
You're right, I did misread your last post, sorry. But it's still not super practical as a generic SES-URL-to-method-call dispatcher, unless I'm still not getting what you mean. You'd need to inspect each method before you called it to find out how many args it takes, pad the array out that far, a

Re: Positional argument collection

2010-10-06 Thread enigment
Hmmm, not sure what you mean by "build a method call to the original method, and write the values positionally by iterating through the array". Do you mean write it out to disk or VFS? I'd thought of that, but wasn't super fond of the idea, since unless I'm missing something, you'd have to do that

Re: Positional argument collection

2010-10-06 Thread enigment
Grant wrote: > > I gave you a perfectly viable, easy to implement solution. > > > > > On Wed, Oct 6, 2010 at 1:55 PM, enigment wrote: > >> >> Imagine an SES URL processor somewhat analogous to what Django >> provides, with a regex match that captures specific

Re: Positional argument collection

2010-10-06 Thread enigment
thod can always pass in the expected > amount of arguments. > > > > > On Wed, Oct 6, 2010 at 1:13 PM, enigment wrote: > >> >> It's unusual for a method to take an array of its arguments, rather >> than individual ones. Situation is something like a dispatc

Re: Positional argument collection

2010-10-06 Thread enigment
nd experienced folks out there. I didn't mean to discuss whether it's worth doing. Thanks, Dave On Wed, Oct 6, 2010 at 12:42 PM, Michael Grant wrote: > > Dave, > > Why don't you just pass in the array? > > > > > > >   > > > &g

Re: Positional argument collection

2010-10-06 Thread enigment
onent.someMethod(arg); > } > > That will call someMethod() for each array value.  You could use a For loop > with "i LTE arrayLen(positionalArg)" if you don't want to use iterator(). > > -Original Message- > From: enigment [mailto:enigm...@gmail.

Re: Positional argument collection

2010-10-06 Thread enigment
gt; but I think that suits your example. > > > On Wed, Oct 6, 2010 at 10:54 AM, enigment wrote: > >> >> Say I have an array of values, arbitrary length, that I want to pass >> as the arguments to a method. >> >> For example, with this: >>  positionalA

Positional argument collection

2010-10-06 Thread enigment
Say I have an array of values, arbitrary length, that I want to pass as the arguments to a method. For example, with this: positionalArgs = ['foo', 'bar', 42]; // this varies, may be any length I want to make this call: SomeComponent.someMethod('foo', 'bar', 42); Is there a positional equiva

Re: What version-/source control are you using (if any)?

2010-10-06 Thread enigment
At work we use AccuRev, which is expensive, and flawed, but on the whole really great. It has a stream inheritance model that means changes in an earlier release stream automatically flow to later releases unless there are changes to the same file there already. Also has integrated issue tracking,

Re: How to point to a Directory?

2010-10-04 Thread enigment
You might be best off just having them type it in, and complain if it doesn't exist. These are users at a high enough level that they're configuring things, yes? Maybe the simplest solutions is the best. Dave On Mon, Oct 4, 2010 at 7:47 PM, William Seiter wrote: > > AIR is not the only method,

Re: 3 layers of validation?

2010-09-23 Thread enigment
IMO... - You *always* need server side validation, because as mentioned, client validation may not always run, and also so you can make an API available beyond browser front ends. - If that's true, I prefer to stay DRY and write validation in only one place, so that means on the server not the c

Re: removing chr(10), chr(13), chr(9), chr(12)

2010-08-23 Thread enigment
You might want to replace runs of consecutive unacceptable whitespace characters with a single space. Otherwise, two sentences that used to have CRs and/or LFs between them will be jammed against each other, with no space at all between them. Dave On Mon, Aug 23, 2010 at 12:10 AM, Matthew Smith

Re: (ot) Site issue with Safari 5.01 on Mac

2010-08-15 Thread enigment
Hi Rock, Looks fine in Safari 5.1 on my wife's macbook, Mac OS X 10.5.8, Can't speak to the details since she's actually using it, but it wasn't like that mostly-empty screenshot. HTH, Dave On Sun, Aug 15, 2010 at 8:44 PM, Rick Root wrote: > > Hi all, > > We've got a user saying that their sit

Re: HTMLEditFormat() broken in CF9?

2010-08-15 Thread enigment
Thanks for checking this, good to know. I think the project I'm working on right now can't be sure the 9.0 isn't in play, so I'll just use my own ReplaceList equivalent. Thanks again, Dave On Sun, Aug 15, 2010 at 8:31 PM, Aaron Neff wrote: > > Hi Dave, > > I believe this was bug #82039, which h