RE: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread brad
should I not worry about running 'createObject' on the same local.o_program structure member everytime? The fact that createObject is INSIDE the loop is precisely why it is working now and that is good. When you posted your first real code sample (the second one) with the createObject

Re: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread Jonathan Price
So the cfset var local = {} worked fine in our CF8 environment, but CF7 is complaining about it. Is {} just a CF8 shorthand for struct? I replaced the {} with StructNew(), and it seems to work. I'm just terrified of screwing this up and having to chase down some phantom bugs three months

Re: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread Jonathan Price
Thanks for the reply! I'm definitely trying to get a handle on this as I don't want to chase down the repercussions in the future! Thank so much for your help. It almost makes sense to me now... should I not worry about running 'createObject' on the same local. o_program structure

Re: Recent SQL Injection attacks

2010-01-14 Thread Peter Boughton
The qpscanner is ok in general but I want something that will only get me numeric variables that are not in a cfqueryparam. That is not enough to protect you! It is not hard to create injection attacks that bypass CF's auto-doubling of quotes. qpscanner deliberately errs on the side of

Re: Recent SQL Injection attacks

2010-01-14 Thread Michael Dinowitz
I know it's not enough but the point was that there has to be a priority in what gets fixed. If there are 300+ query vars to fix, which do you do first? My solution is to fix the numeric vars first and then fix everything else after. In the end it all gets done but until I get to the end, the

Re: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread Kym Kovan
Jonathan Price wrote: Thanks for the reply! I'm definitely trying to get a handle on this as I don't want to chase down the repercussions in the future! Thank so much for your help. It almost makes sense to me now... A useful trick if you are creating your CFC in any persistent scope,

Re: Recent SQL Injection attacks

2010-01-14 Thread Peter Boughton
I think there's at least one or two more too. I should really make a note of them somewhere... Charlie Arehart's list. Pretty sure he's got all this listed in a security/similar category. Yep, here we go: http://www.carehart.org/cf411/#testing

Re: hosting

2010-01-14 Thread Raymond Camden
Please consider how cheap you want to go. Your host is like the foundation of your business. Would you set up your store on top of a volcano? Quicksand? Cheap isn't always the way you want to go for hosts. On Wed, Jan 13, 2010 at 7:58 PM, Mark Mandel mark.man...@gmail.com wrote: I've used atoz

RE: hosting

2010-01-14 Thread Scott Stewart
Ray, I appreciate the sentiment, but right now cheap is all I can do -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Thursday, January 14, 2010 9:20 AM To: cf-talk Subject: Re: hosting Please consider how cheap you want to go. Your host is like the

Re: hosting

2010-01-14 Thread Gerald Guido
http://hostek.com/ Plans start $5 I have hosted with them on a couple of sites. Over all I was pleased. They have good support for the price. Much better than I expected. They will work to keep your business (or did with me) They also have CF 9. HTH On Thu, Jan 14, 2010 at 9:40 AM, Scott

RE: hosting

2010-01-14 Thread Rick Sanders
We also host CF: http://host.webenergy.ca/plans.htm Executive Plan is for CF -Original Message- From: Gerald Guido [mailto:gerald.gu...@gmail.com] Sent: January-14-10 11:01 AM To: cf-talk Subject: Re: hosting http://hostek.com/ Plans start $5 I have hosted with them on a couple of

Re: Stored Procedure throwing error in CF but ran successfully

2010-01-14 Thread Mike Chabot
Double-execution of CFML code can happen when people close their custom tags with a trailing slash, not realizing that the closing slash causes a second-run of the custom tag. Most commonly double-execution happens when users double-click submit buttons or when a user gets frustrated at a slow

orm beginner

2010-01-14 Thread Mark Fuqua MdProfinish
Trying to get my head wrapped around the new orm features.not doing well J. I used an example I got from Manju's blog.trying to get one to many relationships working. I set up a Contacts.cfc with three one to many cfc's (emails, addresses, phoneNumbers). Then I created an index.cfm to set

For the old time ColdFusion developers on the list.

2010-01-14 Thread Ian Skinner
I have a venerable ColdFusion 4.5 server, oh how I look forward to replacing it with a new server - but that is still some months into the future. Anyways, I have not looked at this server in a year. Needed to do something on it today and find all CFM code on the server, including the

RE: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread brad
So the cfset var local = {} worked fine in our CF8 environment, but CF7 is complaining about it. Is {} just a CF8 shorthand for struct? I replaced the {} with StructNew(), and it seems to work. I'm just terrified of screwing this up and having to chase down some phantom bugs three months

Re: orm beginner

2010-01-14 Thread Dave Watts
I'm guessing that would mean the error must be in application.cfc, but it's pretty simple and I don't see what might be wrong.  Could the error be coming from one of the other cfc's even though index is commented out?  Does Coldfusion attempt to build the map as soon as it see ormenabled =

Re: For the old time ColdFusion developers on the list.

2010-01-14 Thread Dave Watts
This is a Solaris 8, Unix installation of ColdFusion 4.5 Professional. I am not an administrator on this box so I do not have any permissions to snoop around beyond what can be accessed through a browser.  But, when my support ticket finally gets to such a sysop, I know they are not going to

RE: For the old time ColdFusion developers on the list.

2010-01-14 Thread mark
Forgive my ignorance, please. What should be different in my application.cfc? cfcomponent cfset this.name = myORMApplication cfset this.ormenabled = true cfset this.datasource = OrmTesting ! ORM Setting this tells ORM to drop and create database cfset this.ormsettings

CF 9 Install/Migration Hangs

2010-01-14 Thread Phillip Duba
I installed CF 9 as the Developer edition on my laptop yesterday and every time I go to the administrator URL, it attempts to complete the installation/migration/configuration and I get a The request has exceeded the allowable time limit Tag: cfoutput. I thought there was a way to disable the

RE: orm beginner

2010-01-14 Thread mark
Opps, I responded to the wrong email last time. I got the right one this time :) Forgive my ignorance, please. What should be different in my application.cfc? cfcomponent cfset this.name = myORMApplication cfset this.ormenabled = true cfset

Re: orm beginner

2010-01-14 Thread Dave Watts
Forgive my ignorance, please.  What should be different in my application.cfc? cfset this.ormsettings = dropcreate cfset this.ormsettings.dbcreate = dropcreate Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small

Re: File Upload with CFKeditor in CF8

2010-01-14 Thread Pete Freitag
Hi Mallory, If you have applied the security hotfix (hf801-77218) it will actually block any CFM request matching /fckeditor/editor/filemanager/ anywhere in the URI, unless you add -Dcoldfusion.fckupload=true to your JVM startup arguments. I have posted details on my blog here:

Centralized hosting of custom tags

2010-01-14 Thread Michael Christensen
My question is simple - are there any options other than having the custom tag file on every server? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists

another beginner orm question

2010-01-14 Thread Mark Fuqua MdProfinish
Ok, got past last problem (thanks dave) and have uncommented the code on index.cfm. I followed the example on Manju's blog entitled Coldfusion-ORM: Define One-to-Many and Many to One Relationships. The article was for one related table, mine is for three. I used the built-in Apache database.

RE: Centralized hosting of custom tags

2010-01-14 Thread brad
You could map a network drive on each server to a central custom tag location and point a coldfusion mapping to it. On the other end of the spectrum you could use some file-replication software to keep the files in synch across multiple servers. ~Brad Original Message

RE: For the old time ColdFusion developers on the list.

2010-01-14 Thread Andy Matthews
That'll be your problem. If you're trying to use a CFC on ColdFusion 4.5 it's going to fail. Versions of CF before CF MX didn't support CFCs. andy -Original Message- From: mark [mailto:m...@mdprofinish.com] Sent: Thursday, January 14, 2010 10:49 AM To: cf-talk Subject: RE: For the

RE: CF 9 Install/Migration Hangs

2010-01-14 Thread Debbie Morris
Check your adminconfig.xml file. There are several setup/migration settings in there. Debbie Morris -Original Message- From: Phillip Duba [mailto:phild...@gmail.com] Sent: Thursday, January 14, 2010 11:51 AM To: cf-talk Subject: CF 9 Install/Migration Hangs I installed CF 9 as the

RE: another beginner orm question

2010-01-14 Thread brad
ids for this class must be manually assigned before calling save(): Emails Have you defined which property in your components are the primary key? ~Brad ~| Want to reach the ColdFusion community with something they want?

RE: For the old time ColdFusion developers on the list.

2010-01-14 Thread brad
Andy, that post was supposed to go under the orm beginner thread. ~Brad Original Message Subject: RE: For the old time ColdFusion developers on the list. From: Andy Matthews li...@commadelimited.com Date: Thu, January 14, 2010 12:26 pm To: cf-talk cf-talk@houseoffusion.com

Re: For the old time ColdFusion developers on the list.

2010-01-14 Thread Ian Skinner
On 1/14/2010 10:26 AM, Andy Matthews wrote: That'll be your problem. If you're trying to use a CFC on ColdFusion 4.5 it's going to fail. Versions of CF before CF MX didn't support CFCs. andy And thus Andy points out why it is such a bad Idea to reply to an unrelated thread with a

Re: For the old time ColdFusion developers on the list.

2010-01-14 Thread Ian Skinner
On 1/14/2010 8:40 AM, Dave Watts wrote: I don't have any insight on what it is, but trying to start it as an application rather than having it start up by itself might show the sysop what's going on. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/

RE: another beginner orm question

2010-01-14 Thread mark
I have, but I have made several changes to the cfc's, which have not been reflected in the database. I put ormFlush() at the top of application.cfc, is there some other way to make sure a new mapping/new database is created? I have cfset this.ormsettings.dbcreate=dropcreate in application.cfc

cfchart - stacked bar chart

2010-01-14 Thread Chris D
I just upgraded from CF7 MX to CF9 and now my stacked bar charts are incorrect. Here is my query: SELECT a.account_type, a.dept_num, count(a.ids) AS counter FROM accounts a WHERE a.dept_num between 1401 AND 1499 GROUP BY a.account_type,a.dept_num ORDER

cfchart - stacked bar chart

2010-01-14 Thread Chris Dicamillo
I just upgraded from CF7 MX to CF9 and now my stacked bar charts are incorrect. Here is my query: SELECT a.account_type, a.dept_num, count(a.ids) AS counter FROM accounts a WHERE a.dept_num between 1401 AND 1499 GROUP BY a.account_type,a.dept_num ORDER

RE: hosting

2010-01-14 Thread Eric Roberts
I hear that Scott...I just had to go with GoDaddy because I realty can't afford anything else. Eric -Original Message- From: Scott Stewart [mailto:sstwebwo...@bellsouth.net] Sent: Thursday, January 14, 2010 8:41 AM To: cf-talk Subject: RE: hosting Ray, I appreciate the sentiment,

RE: For the old time ColdFusion developers on the list.

2010-01-14 Thread Andy Matthews
:) Sorry about that. I was a little surprised about that being there...I thought surely he knows that already. :) -Original Message- From: Ian Skinner [mailto:h...@ilsweb.com] Sent: Thursday, January 14, 2010 12:47 PM To: cf-talk Subject: Re: For the old time ColdFusion developers on

jQuery tableSorter tab plugins

2010-01-14 Thread Qing Xia
Hello all, I am having a dilemma regarding two jQuery plugins: the tableSorter and tab. Here is a brief summary of the problem: 1. I have a task list, which is further broken into sub-categories such as Problems, Maintenance and Requests. 2. I am using the jQuery tab plugin to make

Re: jQuery tableSorter tab plugins

2010-01-14 Thread Qing Xia
D'oh! Please ignore question! Apparently just writing the question down on paper helps clear the thought. Don't know what I was thinking... I could easily make the table name an attribute to the custom tag and then do this in my call to the jQuery tableSorter plugin: script

Re: CFFILE move is copying

2010-01-14 Thread Scott Brady
Here's a thought on what might be going on (and if so, I'm open to suggestions). Basically, if I'm writing to the badFiles location, I have almost invariably broken out of a cfloop file=whatever loop before reaching the end of the file (using cfbreak). Is it possible that ColdFusion still has a

Re: CFFILE move is copying

2010-01-14 Thread Dave Watts
Basically, if I'm writing to the badFiles location, I have almost invariably broken out of a cfloop file=whatever loop before reaching the end of the file (using cfbreak).  Is it possible that ColdFusion still has a lock on the file and, therefore, can't delete it?  (I'm thinking this may be

Re: hosting

2010-01-14 Thread Ravi Gehlot
I vouch for GoDaddy's PHP hosting. I have a couple of PHP projects and happy endings. I am not sure about CF though. Regards, Ravi. On Thu, Jan 14, 2010 at 3:04 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I hear that Scott...I just had to go with GoDaddy because I realty can't

Re: CFFILE move is copying

2010-01-14 Thread denstar
What about firing off another thread to delete it after X amount of time? Or maybe not deleting it right away, and instead adding the file to a list, and then moving/deleting the list at the end (maybe with a sleep() first?) -- Dogs and philosophers do the greatest good and get the fewest

Re: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread Sean Corfield
You have not var'd q_programs - use local.q_programs otherwise every concurrent request will be overwriting the same variable and you'll get unpredictable results. Sean On Wed, Jan 13, 2010 at 11:35 PM, Jonathan Price jonat...@imakehthissound.com wrote: Yeah, we're on CF8 for better or worse.

Re: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread Leigh
You have not var'd q_programs Good catch. As someone mentioned earlier, all function local variables must var scoped. That includes things you often forget, like: query names, loop indexes, etcetera. ~| Want to

Login protection and verification

2010-01-14 Thread David Mineer
I want to protect my site login. I first want to lock users out after so many failed login attempts. Lock them out for a specified amount of time. I also want to require them to click a link from an email that they receive the first time they login from a computer. The email verification seems

RE: Login protection and verification

2010-01-14 Thread brad
The email verification seems to get real complicated real fast when I try to program that completely myself. Basically, your user table needs at least these two columns: status: use this signify if an account is pending verification verificationKey: when the account is created, place a random