Re: just noticed this when validating email

2005-03-27 Thread Will Tomlinson
But Will... JS is client-side, and CF is server-side... The whole universe could convert to CF (and I'd probably be out of a job!) and we'd still need JS or something like it (unless, with the mass conversion, MM created a CF-based browser that could use CF With all due respect you missed my

help-a-noob: Null Pointers

2005-03-27 Thread Chris Kavanagh
Hello list! It's 12.47pm and I didn't go to sleep last night. Thank the goddess for illegal stimulants. So I'm bashing my exhausted head on the desk with this error message: -- The system has attempted to use an undefined value, which usually indicates a programming error, either in your

[SOLVED] Re: help-a-noob: Null Pointers

2005-03-27 Thread Chris Kavanagh
And seconds after crying for help, I realised what it was: a null field in my backend database that can't be null. I know, I know. I'm very tired, okay? Sorry to waste everybody's bandwidth. Best regards, CK. ~| Logware

RE: Best practice question?

2005-03-27 Thread Calvin Ward
I believe that scoping is important and removed ambiguity, especially for developers (including yourself) who may latter have to work on that page. I would opine that scoping is a best practice. - Calvin -Original Message- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Saturday, March

RE: Ordering WACK from Amazon

2005-03-27 Thread Calvin Ward
Having said all that, what's with the Amazon ship date? I ordered two copies of the first one! - Calvin -Original Message- From: Ben Forta [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 3:07 PM To: CF-Talk Subject: RE: Ordering WACK from Amazon Very good point. And that is the

Re: Evaluate and isdefined

2005-03-27 Thread Steve Bryant
Blatant self plug... I put together a brief blog entry that provides quick coverage of how to avoid using evaluate(). http://steve.coldfusionjournal.com/read/1135458.htm Steve Bryant Bryant Web Consulting LLC http://www.BryantWebConsulting.com/ http://steve.coldfusionjournal.com/ Hi, I try to

Re: help-a-noob: Null Pointers

2005-03-27 Thread Will Tomlinson
Shouldnt line 149 read: CFSET diff = #DateDiff(d, Now(), deadline)# Originally your pounds are on the inside of the datefunction. CFSET diff = DateDiff(d, Now(), #deadline#) ~| Discover CFTicket - The leading ColdFusion

Re: Best practice question?

2005-03-27 Thread Claude Schneegans
I believe that scoping is important and removed ambiguity Right, however, in some circumstances, ambiguity may be a useful feature. For instance, not specifying the form or url scope for a variable can make a template work both as a form action or as an href called template with parameters

Re: help-a-noob: Null Pointers

2005-03-27 Thread Joe Rinehart
They're equivalent, but you don't need any #'s at all: cfset diff = DateDiff(d, Now(), deadline) / -Joe On Sun, 27 Mar 2005 08:26:27 -0400, Will Tomlinson [EMAIL PROTECTED] wrote: Shouldnt line 149 read: CFSET diff = #DateDiff(d, Now(), deadline)# Originally your pounds are on the

RE: Best practice question?

2005-03-27 Thread Calvin Ward
That is definitely true, however, it can also be undesirable, for example a developer might want form submissions to only arrive via post and not get. I prefer to try to code using scopes and typically use something similar to this in the case you mentioned (one may note that this is copied from

Re: help-a-noob: Null Pointers

2005-03-27 Thread Will Tomlinson
They're equivalent, but you don't need any #'s at all: cfset diff = DateDiff(d, Now(), deadline) / Joe, I know it's not a biggie, but that means the #'s actually would slow it down a little? Thanks, Will ~| Logware

Re: Best practice question?

2005-03-27 Thread Will Tomlinson
looks like scoping AND no scoping are desirable depending on the application. Kinda goes back to my registering to purchase a product question. It's an application-specific question, not a broad application development question. Will

Re: Best practice question?

2005-03-27 Thread Claude Schneegans
one may note that this is copied from fusebox's functionality Yes, but this is one of the things I hate the most in FB: using the attributes structure, so that one never knows if a template is used as a custom tag or not. -- ___ REUSE CODE! Use custom

Re: Best practice question?

2005-03-27 Thread Claude Schneegans
looks like scoping AND no scoping are desirable depending on the application. Exact, that's one of the advantages of using a weakly or dynimically typed language. Since both scoping and no scoping (or default scoping) are features of CF, rules like never do or always do can only make the

Re: race condition here?

2005-03-27 Thread Tony Weeg
and while im here, is it safe for me to assume that application.cfc is set off just like application.cfm (for each and every page request) and that the methods inside application.cfc are sparked when its their turn... onApplicationStart = only happens when the application first starts (so other

Re: just noticed this when validating email

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
I do see your point... and further, I still disagree... With all due respect, is the AND comparison operator. And == is the IS comparison operator. My point was that JS isn't all that hard to read and write once you learn it. My new point is that if all languages were as easy to write as CF,

Re: just noticed this when validating email

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
Typos, typos... i=i+1, for one... not i=1+1. And as far as preferring the JS-style syntax in cfscript, it's a style thing. It looks better and is less cluttered... I definitely use more tag-style code than cfscript, but I also use cfscript wherever I can simply to produce cleaner, more readable

Re: help-a-noob: Null Pointers

2005-03-27 Thread Joe Rinehart
Shouldn't, but it's harder to read w/ #'s. On Sun, 27 Mar 2005 11:32:19 -0400, Will Tomlinson [EMAIL PROTECTED] wrote: They're equivalent, but you don't need any #'s at all: cfset diff = DateDiff(d, Now(), deadline) / Joe, I know it's not a biggie, but that means the #'s actually

Re: Best practice question?

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
But it IS a broad application-development question! You can't decide *not* to scope a variable until you know *why* you would scope one to begin with. You can't decide to rely on CF's default scoping capabilities successfully until you know all the implications of them. It is a broad app-dev

RE: just noticed this when validating email

2005-03-27 Thread Adrian Lynch
Anyway, I find other programming languages as fascinating as I do other human languages, and think the landscape would be barren and ugly without them. Smalltalk, lacking in constructs but beautiful none-the-less :O) Ade -Original Message- From: Jared Rypka-Hauer - CMG, LLC

RE: Best practice question?

2005-03-27 Thread Andrew Tyrone
-Original Message- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Saturday, March 26, 2005 12:33 AM To: CF-Talk Subject: Best practice question? Is it better to do this: cfoutput query=GetCourses #Dept_ID# #CorName# #CorLevel#br /cfoutput or this: cfoutput

Re: race condition here?

2005-03-27 Thread Barney Boisvert
yep, you got it. On Sun, 27 Mar 2005 13:13:34 -0500, Tony Weeg [EMAIL PROTECTED] wrote: and while im here, is it safe for me to assume that application.cfc is set off just like application.cfm (for each and every page request) and that the methods inside application.cfc are sparked when its

Re: Best practice question?

2005-03-27 Thread Johnny Le
In CFC, I always do this: cffunction name = something cfargument name=some required=true type=string/ cfset var few = arguments.some/ cfset few = 10/ /cffunction If we should always scope our variables. Should I do this? cfset var variables.few = arguments.some/ cfset variables.few = 10/ The

RE: client variable: simple or complex?

2005-03-27 Thread Dave Watts
In Ben Forta's study guide, on page 100, he says CLIENT variables can store only simple data (like numbers and strings), not complex data (like arrays, structures, and queries). This is correct. Client variables are stored in places that can only accept character data. Dave Watts, CTO, Fig

RE: Best practice question?

2005-03-27 Thread Jim Davis
-Original Message- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Sunday, March 27, 2005 3:41 PM To: CF-Talk Subject: Re: Best practice question? In CFC, I always do this: cffunction name = something cfargument name=some required=true type=string/ cfset var few =

RE: just noticed this when validating email

2005-03-27 Thread Dave Watts
With all due respect you missed my point. Or maybe I didn't make it clear. It wasnt to get rid of JS, but rather for it to written as easily as CF. CF makes sense. cfif getquery.theID EQ blablah do this /cfif The same thing in JS goes somethin like this. for (i=0;ig.length;i++)

RE: Best practice question?

2005-03-27 Thread Dave Watts
In CFC, I always do this: cffunction name = something cfargument name=some required=true type=string/ cfset var few = arguments.some/ cfset few = 10/ /cffunction If we should always scope our variables. Should I do this? cfset var variables.few = arguments.some/ cfset variables.few

RE: help-a-noob: Null Pointers

2005-03-27 Thread Dave Watts
I know it's not a biggie, but that means the #'s actually would slow it down a little? No, probably not to a noticeable degree. However, you would then be using pound signs unnecessarily, which indicates that you may be unsure when you need to use them and when you don't. An easy-to-remember

Re: just noticed this when validating email

2005-03-27 Thread Sean Corfield
On Sun, 27 Mar 2005 05:46:26 -0400, Will Tomlinson [EMAIL PROTECTED] wrote: Ok, so I exaggerated, but who's the numb skull that came up with ++ and ?? And ==? Kernighan and Ritchie, when they invented C I think. But there are far worse syntactic monstrosities out there. C++ has a delightful

CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Tony Weeg
any ideas... a-googling i went... and a-googling was not finding anything! - Web Server Connector Configuration Error Status: ERROR Additional Notes: ERROR - JNDI port 2920 for server coldfusion is not active

Re: Best practice question?

2005-03-27 Thread Matt Robertson
On Sun, 27 Mar 2005 15:06:43 -0500, Andrew Tyrone [EMAIL PROTECTED] wrote: I might be crazy, but I seem to remember, at least in CF 4.x versions, that if you scoped a query column within a cfoutput, it would only output the data in the first row of the query, not the current row, no matter

Re: just noticed this when validating email

2005-03-27 Thread Will Tomlinson
Learnin alot here from you guys. But there *must* be quite a few of us that don't like JS, don't take the time to write it ourselves because it takes much longer than writing: cfinput name=search type=text required=yes message=Please enter a search term I use that one all the time. lol

Re: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Tony Weeg
1. i have no firewall or firewall software running on this box. 2. my install was server configuration (iis) thanks. tw On Sun, 27 Mar 2005 17:22:03 -0500, Tony Weeg [EMAIL PROTECTED] wrote: any ideas... a-googling i went... and a-googling was not finding anything!

RE: just noticed this when validating email

2005-03-27 Thread Dave Watts
But there *must* be quite a few of us that don't like JS, don't take the time to write it ourselves because it takes much longer than writing: cfinput name=search type=text required=yes message=Please enter a search term I use that one all the time. lol In exchange for having

RE: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Dave Watts
any ideas... a-googling i went... and a-googling was not finding anything! - Web Server Connector Configuration Error Status: ERROR Additional Notes: ERROR - JNDI port 2920 for server coldfusion is not active

Re: Best practice question?

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
You had to use the query name in cfloop but not in cfoutput. That's the only rule there was... at least that I recall... so this worked: cfoutput query=qryName#colName#/cfoutput And this worked: cfloop query=qryName#qryName.colName#/cfloop But this would only output the first row for every

Re: Best practice question?

2005-03-27 Thread Tony Weeg
isnt it just better to use cfloop query= /cfloop and only output when you need to output? or wrap the cfoutput around the whole thing? just wondering... im a big fan of cfloop from = 1 to = #myQuery.recordCount# id = i /cloop and then make myself access everything with

RE: Best practice question?

2005-03-27 Thread Jim Davis
On Sun, 27 Mar 2005 15:06:43 -0500, Andrew Tyrone [EMAIL PROTECTED] wrote: I might be crazy, but I seem to remember, at least in CF 4.x versions, that if you scoped a query column within a cfoutput, it would only output the data in the first row of the query, not the current row, no

Re: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Tony Weeg
You might try running netstat from a command prompt to see if anything's listening on that port. That said, I've occasionally been stymied running into this problem with previous versions of CFMX - nothing appeared to be using the port, yet the web server connector couldn't connect to it. so

RE: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Dave Watts
so there should be something on that port? Yes, the JRun server should be listening on that port if the web server configuration utility plans to connect to it. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized

Re: Best practice question?

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
On Sun, 27 Mar 2005 17:39:35 -0500, Jim Davis [EMAIL PROTECTED] wrote: On Sun, 27 Mar 2005 15:06:43 -0500, Andrew Tyrone [EMAIL PROTECTED] wrote: I might be crazy, but I seem to remember, at least in CF 4.x versions, that if you scoped a query column within a cfoutput, it would only

Re: HTML Editor

2005-03-27 Thread Matt Robertson
Huh? FCKEditor has a spell checker, and has had it for some time. Its listed right on the feature set on the front page. Its a 3rd-party plugin, but it works quite well. On Sat, 26 Mar 2005 12:47:02 -0500, Douglas Knudsen [EMAIL PROTECTED] wrote: what was your answer to 'I can not spell woth

Re: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Tony Weeg
well... i did the default install directories, and it worked perfectly? must be something with the dev. edition install and the inability to use dir's other than the defaults? tony On Sun, 27 Mar 2005 17:58:15 -0500, Dave Watts [EMAIL PROTECTED] wrote: so there should be something on that

RE: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Dave Watts
i did the default install directories, and it worked perfectly? must be something with the dev. edition install and the inability to use dir's other than the defaults? No, those things shouldn't make any difference. See if this helps:

Seeking algorithm to calculate parallel processing cost

2005-03-27 Thread Richard Colman
I am looking for a method to calculate the cost of running multiple, simultaneous processing jobs on a computer cluster. For example, I am renting cluster time at $XX/hour. I can run multiple jobs, but the cost is always $XX/hour regardless of the number of parallel, simultaneous jobs running.

Re: client variable: simple or complex?

2005-03-27 Thread Will Tomlinson
In Ben Forta's study guide, on page 100, he says CLIENT variables can store only simple data (like numbers and strings), not complex data (like arrays, structures, and queries). This is correct. Client variables are stored in places that can only accept character data BUT there's a way

Re: client variable: simple or complex?

2005-03-27 Thread Matt Robertson
I wrote this a long time ago as a proof-of-concept when I was trying to figure out how to store arrays in client vars. Substitute my query for yours. Something simple with a field or two. Clearly if you need to store a structure in a persistent scope there are better ways to do it, but this

Re: HTML Editor

2005-03-27 Thread Rick Root
Matt Robertson wrote: Huh? FCKEditor has a spell checker, and has had it for some time. Its listed right on the feature set on the front page. Its a 3rd-party plugin, but it works quite well. Well, it wasn't in the 2.0 beta releases, RC1, or RC2... they didn't add it back in until RC3.

RE: Best practice question?

2005-03-27 Thread Jim Davis
-Original Message- From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED] Sent: Sunday, March 27, 2005 6:09 PM To: CF-Talk Subject: Re: Best practice question? The odd thing is with queries should you use indexed notation you get a different value. While the value of

RE: client variable: simple or complex?

2005-03-27 Thread Jim Davis
-Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 27, 2005 5:53 PM To: CF-Talk Subject: Re: client variable: simple or complex? In Ben Forta's study guide, on page 100, he says CLIENT variables can store only simple data (like numbers and

Re: Best practice question?

2005-03-27 Thread Claude Schneegans
Explicit scoping _IS_always_ the best idea, unless you have a compelling rationale to break with the best practice. and vice versa ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any

Re: HTML Editor

2005-03-27 Thread Matt Robertson
I'm not referring to the 'betas' of FCKEditor (the author means well but seems to have reinvented development cycle terminology). I'm staying away from it until its final. I'm referencing v1.6. I replaced ActivEdit with FCKEditor 1.6 some time ago. The file upload capability was

Re: Best practice question?

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
Thanks for the clarification, Jim... I think your point came across more clearly the second time thru. I've never tried the query.column[1] method... I honestly didn't think it would work. Ya learn something new every day, eh? And you're absolutely right, we can do things with our variables that

Re: Best practice question?

2005-03-27 Thread Claude Schneegans
isnt it just better to use cfloop query= /cfloop and only output when you need to output? Then you loose the GROUP facility in the CFOUTPUT tag. If I remember well, the CFLOOP tag was introduced in version 3 or so to add facilities than the CFOUTPUT tag had not. But it can't replace it

Re: HTML Editor

2005-03-27 Thread Douglas Knudsen
yeah, version 1 had a hook to use iSpell which is great for individuals, but the license required a purchase for use enterprise wide and iSpell required a client side install, something of a real PITA to get approved for an intranet of 20,000 employees. Activedit was therefore a cheaper route in

Re: CFMX7 Install Error (JNDI Port 2920?)

2005-03-27 Thread Tony Weeg
if i have to install again, and run into it, i guess ill try that stuff... but for now, i just wasted 5 hours of dev. time effing with this crap :( i need to get some work done before i get ready for this week! :) cheers! tw On Sun, 27 Mar 2005 18:45:08 -0500, Dave Watts [EMAIL PROTECTED]

Re: HTML Editor

2005-03-27 Thread Douglas Knudsen
yeah, version 1 had a hook to use iSpell which is great for individuals, but the license required a purchase for use enterprise wide and iSpell required a client side install, something of a real PITA to get approved for an intranet of 20,000 employees. Activedit was therefore a cheaper route in

Re: help-a-noob: Null Pointers

2005-03-27 Thread Joe Rinehart
No, probably not to a noticeable degree. I imagine it's probably none at all - probably winds up with same bytecode in the end? -Joe -- For Tabs, Trees, and more, use the jComponents: http://clearsoftware.net/client/jComponents.cfm

Re: Best practice question?

2005-03-27 Thread Johnny Le
What surprise me is that this would not work at all, not even the value of the first row. It actually throws an error: cfoutput#colName#/cfoutput I thought that query result variables do not require prefix if in a cfoutput loop, and query result variable is actually the first scope in the

RE: Best practice question?

2005-03-27 Thread Dave Watts
I thought that query result variables do not require prefix if in a cfoutput loop, and query result variable is actually the first scope in the order of evaluation that coldfusion would look for. I guess cfoutput/cfoutput alone is not a loop. I guess you need the query attribute to

Re: help-a-noob: Null Pointers

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
I'm guessing that unless you've got 20 million of them in a page, they're blitzed after the first run... so they're only going to slow things down in a development environment or for very dynamic pages that can't be cached in some way. No matter how you slice it though, the characters have to be

Re: help-a-noob: Null Pointers

2005-03-27 Thread Douglas Knudsen
most importantly, you will impress your peers with your superb knowledge in 'The Use of Pound Signs' ;) D On Sun, 27 Mar 2005 21:29:23 -0600, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote: I'm guessing that unless you've got 20 million of them in a page, they're blitzed after the

Re: help-a-noob: Null Pointers

2005-03-27 Thread S . Isaac Dealey
I'm guessing that unless you've got 20 million of them in a page, they're blitzed after the first run... so they're only going to slow things down in a development environment or for very dynamic pages that can't be cached in some way. Well it would have to be a page for which the Java

Re: help-a-noob: Null Pointers

2005-03-27 Thread S . Isaac Dealey
most importantly, you will impress your peers with your superb knowledge in 'The Use of Pound Signs' ;) I'm always very impressed by this knowledge. :) s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework

Re: help-a-noob: Null Pointers

2005-03-27 Thread S . Isaac Dealey
No, probably not to a noticeable degree. I imagine it's probably none at all - probably winds up with same bytecode in the end? Yes although at some point that # symbol does have to be removed during the process of converting CFML to java bytecode. Though it generally only happens once after

RE: Best practice question?

2005-03-27 Thread Justin D. Scott
Right, however, in some circumstances, ambiguity may be a useful feature. For instance, not specifying the form or url scope for a variable can make a template work both as a form action or as an href called template with parameters passed in the url. That's why I like the way FuseBox

Re: Best practice question?

2005-03-27 Thread Johnny Le
This sounds great, but isn't the args variable has its own scope too? It is variables scope, isn't it? Since it declares locally in the function, I am not sure if its scope is variables, but it has a scope of something. So if you have scope everything, you would have to do

RE: Best practice question?

2005-03-27 Thread Jim Davis
-Original Message- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Sunday, March 27, 2005 10:43 PM To: CF-Talk Subject: Re: Best practice question? This sounds great, but isn't the args variable has its own scope too? It is variables scope, isn't it? Since it declares locally in

CFC or UDF

2005-03-27 Thread David Brown
I am new to both of these features, but I am getting the hang of them. My question is: What is the difference between them? What are the pro's and cons to each? If I create a CFC with a several methods in it is that not the same thing if I have one template with the several functions on it?

Re: Best practice question?

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
Johnny, Technically, yeah, that's exactly right. If you want to see all your scopes and all their contents, try this: cfdump var=#getPageContext().getBuiltinScopes()# / That will dump every built-in scope, or those available to any page, special tag scopes notwithstanding, including: cffile cgi

Re: Best practice question?

2005-03-27 Thread Jared Rypka-Hauer - CMG, LLC
Oops, Apparently I didn't read the example given quite thoroughly enough... sorry for any confusion I may have contributed to. Just trying to spread the joy! (Or, welcome to my world!) ;) J On Mon, 28 Mar 2005 00:16:58 -0500, Jim Davis [EMAIL PROTECTED] wrote: -Original Message-

RE: CFC or UDF

2005-03-27 Thread Justin D. Scott
What is the difference between them? A CFC is generally used to encapsulate portions of business logic into a reusable API that can be called by one or more applications in different ways. You can use a CFC to publish a web service that can be called from anywhere, or you can use it as a

RE: CFC or UDF

2005-03-27 Thread Jim Davis
-Original Message- From: David Brown [mailto:[EMAIL PROTECTED] Sent: Monday, March 28, 2005 12:19 AM To: CF-Talk Subject: CFC or UDF I am new to both of these features, but I am getting the hang of them. My question is: What is the difference between them? These are very big