Re: Strip HTML from a Collection
The problem I am having is I load the data in including the html content via the query attribute in cfindex. When I output a summary sometimes it gets cut of through a tag. This is what I do to index Mark ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276591 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cms
The only complaint I have so far is the lack of how to's and support from the mailing lists, and wiki. As I am knew to farcry, and maintaining a site developed in it getting answers from docs or developers has been poor so far. But I can say it is very powerful open source product, that is for sure. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone:Â +613 Â 8676 4223 Mobile: 0404 998 273 -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Tuesday, 1 May 2007 1:10 AM To: CF-Talk Subject: RE: cms Hi Geoff, I'd love to be able to use something that was open source for this project. And the fact that there aren't $10k license fees is going to make my client very happy. Can you tell me, when is v4 due for release? I'm downloading the beta now to take a look, but I'm wondering if it would be suitable for a project due to launch in October 2007? Email me off list if you prefer. Thanks Will -Original Message- From: Geoff Bowers [mailto:[EMAIL PROTECTED] Sent: 30 April 2007 03:43 To: CF-Talk Subject: Re: cms Will, On 28/04/07, Will Swain <[EMAIL PROTECTED]> wrote: > Yes, so far I can echo your sentiments about Farcry, which is a shame. > However, I shall persevere with my evaluation anyway. I'm happier with > an open source CF based system if possible, because we will need to do > some tweaking no doubt, or possibly add in our own components. The > client has a requirement for a Flash media player and library, with > dynamic content delivered according to user level, which I am > imagining having to build myself - Flex sounds ideal for this. I'd encourage you to get in touch with our team or at least the FarCry development community. We welcome the chance to showcase the platform and answer enquiries from any potential customer of FarCry. We have a services model built around the product that provides support, training and/or development for the platform -- so there's our vested interest. We're happy to play as small or as large as a role as you need -- even if that's just to evangelise about how the solution works. Best regards, -- geoff http://www.daemon.com.au/ ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276590 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
>>1. The error is happening on a page that is *likely* to throw an error This is the kind of situation you get when you are still developing, testing and debugging your application, I have no problem with that, and I have plenty of tools and techniques to deal with it. >>2. The error is happening randomly and is not easily repeatable. In this case, yes, you cannot use a try/catch block (well, you can, but not simply for debugging sessions if the error cannot be reproduced). This is it. When you have an error in some template, after weeks of operation with no trouble, sometimes, something special happens, some rare case you didn't think was possible, you can't even reproduce the problem, so it is out of question to track the problem with try/catch or anything. You just need as much information as you can, to understand what the user has done exactly, which different templates and forms he has been through, etc. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276589 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
One more rss question
My rss generator seems to be coming along OK. I still have a few things to clean up in the code, but here's my first test page, which is set to display 10 headlines: http://www.nelsonmullins.com/rss/rss_press.cfm Got a problem with another page though. http://www.nelsonmullins.com/rss/rss_newsletters.cfm Same code base as the first page. However, something in the output is stopping it from displaying all 10 rows from the database. If you do a "view source", you'll see the rest of the stories. The data in the database is also used to display on regular HTML pages and contains HTML code in the body portion. So, I'm using regex to strip that out: ]*>","","all"), 300)# ...")> What else do I need to be stripping out? The data in the database could contain *anything*... ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276588 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Strip HTML from a Collection
That depends. Do you mean just take it out completely or have it displayed as text? To take out all html tags you can use a regular expression like... ]*>", "", "all") /> To just make the html display as normal text just replace < with < Good luck -Original Message- From: Mark Flewellen [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 10:09 PM To: CF-Talk Subject: Strip HTML from a Collection How do people on this list deal with stripping html a column in a query prior to loading the query into a coldfusion collection? ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276587 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Strip HTML from a Collection
How do people on this list deal with stripping html a column in a query prior to loading the query into a coldfusion collection? ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276586 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: client side and server side validation
Snide? I think you meant comical. :-) No one said anything about BLOCKING users either. He mentioned client side AND server side from the start (with the subject) which meant he was prepared to cater to both. Server side was just assumed to be understood and taken care of since the actual question was about client side. Snide remarks aside, anyone who depends solely on JS to "secure" ANYTHING shouldn't be writing commercial applications. (or any other application that sees the light of day on the net). That includes server side validation that is only triggered via JS using jQuery or 'AJAX'. JS is meant to ENHANCE user experience and that's it. It's in no way shape or form 'secure'. It's also in no way shape or form insecure; people make it that way when they start tying it into server side routines and depending on the client side to trigger it. -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 1:14 PM To: CF-Talk Subject: Re: client side and server side validation >>> What if the user has javascript turned off? >> Furthermore: what if he does not have Internet? Hmmm? > or a computer Well, snide remarks aside - it *is* an issue. I have a particular application running where I've found that almost 35% of the folks using it do not have javascript enabled. They're not going to turn it on, even if they knew how, and they represent a good portion of the core customers of the client in question. So, form validation is going to *have* to work, and report meaningful messages back to the user, *without* javascript. You're going to have to decide whether you can afford to block these people, or work with methods that will provide them a meaningful user experience plus the needed security for your site. I've really had to think about the methods I've been using on my sites. Validation using Javascript/CFFORM plus cfqueryparam ain't cutting it. See the thread starting here. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:51250 ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276585 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: sql - querying number fields as dates
If it helps, creating a date out of that is as easy as using the Oracle to_date() function. You could then use whatever comparison you like. On 4/30/07, Daniel Kessler wrote: > I have Oracle db entries where three numbers represent a date. This > is because the user can enter in just the year, or just the year and > month, or the whole dang thing. Now though, I have to query on this > to find if the "date" is between two other dates in the search > parameters. Also, the month or day entries that weren't used are > left blank (null), so that when editing is done, they still appear as > not selected. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276584 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFHTTP Connection Failure
I had a similar issue a while back which was resolved by upgrading to cfmx 7.0.2 and importing the certificate. Are you running cfmx 7.0.2? Will -Original Message- From: Matthew Irwin [mailto:[EMAIL PROTECTED] Sent: 29 April 2007 14:04 To: CF-Talk Subject: Re: CFHTTP Connection Failure Will I thought it just might work. I downloaded the certificate from the site and imported it. The way to do it for CFMX7 is on this link http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19298 This however still has not resolved the problem. I do think you are on the right track though Jason. What you say makes sense it is going to the url. I appreciate your help. ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276583 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: directory watcher
the email is not quoted:-) On 5/1/07, Asim Manzur <[EMAIL PROTECTED]> wrote: > > On my directorywatcher gateway I have a following CFC function. > > >CFEvent.data> > > > >[EMAIL PROTECTED]"New Log File Created!"> >Msg: Log file attached. >Filename: #data.filename# > > > > > > > > The above codes is working if I take the cfmailparam out . But I need to > send the new file attached in the email. > > This function is generating the following error (exception.log). > > Error invoking CFC for gateway SendLogsEvent: String index out of range: > -1" > java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > > Please help. > > -- > ... > Regards, > > > > On 4/27/07, Asim Manzur wrote: > > > > is there any sample code available for directorywatcher application > > anywhere ? > > > > Thanks > > > > -- > > .. > > Regards, > > > > > > > ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276582 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
Oops, wrong list! "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Robertson-Ravo, Neil (RX) To: CF-Talk Sent: Mon Apr 30 23:39:43 2007 Subject: Re: Error recovery I would also remove the need for the application var if you can. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Josh Nathanson To: CF-Talk Sent: Mon Apr 30 23:34:08 2007 Subject: Re: Error recovery > I guess the confusion comes from me interpruting you as trying to handle > case #1 using CFERROR, but perhaps you are just trying to get the > VARIABLES scope using case #2? In my case, yup, that's the ticket. -- Josh ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276581 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
I would also remove the need for the application var if you can. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Josh Nathanson To: CF-Talk Sent: Mon Apr 30 23:34:08 2007 Subject: Re: Error recovery > I guess the confusion comes from me interpruting you as trying to handle > case #1 using CFERROR, but perhaps you are just trying to get the > VARIABLES scope using case #2? In my case, yup, that's the ticket. -- Josh ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276580 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
> I guess the confusion comes from me interpruting you as trying to handle > case #1 using CFERROR, but perhaps you are just trying to get the > VARIABLES scope using case #2? In my case, yup, that's the ticket. -- Josh ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276579 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Error recovery
I am not saying that your application should never throw errors. That's simply not gonna happen. Sorry if that is the way I am coming off. What I meant was that if this is an error that you are quite easily able to reproduce, then instead of killing yourself getting at the VARIABLES scope, start off by putting debugging code into the template that is throwing the error. Think about it this way - an error happens in one of two ways: 1. The error is happening on a page that is *likely* to throw an error (which might be if you are reading from the file system or talking to a web service). In cases like that, don't depend on the CFERROR tag or onerror method. You should put try /catch info around those action and deal with the error locally. 2. The error is happening randomly and is not easily repeatable. In this case, yes, you cannot use a try/catch block (well, you can, but not simply for debugging sessions if the error cannot be reproduced). I guess the confusion comes from me interpruting you as trying to handle case #1 using CFERROR, but perhaps you are just trying to get the VARIABLES scope using case #2? The error you are getting right now - is it something you can easily reproduce? .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 4:47 PM To: CF-Talk Subject: Re: Error recovery >>Try putting a CFTRY / CFCATCH around the code that is throwing the error This is not an option, I want a system that can detect any error hapening any where. Try/catch should be used only for isolated situations (and I also use it in many occasions) >>Bottom line Your page should NOT be throwing errors. Of course, and as a matter of fact, I just decided after a 38 years carrer as a developer that I will not implement any error of any type anywhere in my code. :-) >>I assume we are talking about debugging here. The very last step in a debugging process is to find the last bugs during the beginning of the production cycle. Then it makes no difference. And even so, you still can have errors due to the server, the database, hackers, stupid users, etc. >>Let's not lose sight of what the long-term goal is. The worse idea would be to ignore all errors like if they were not supposed to happen. After all, it is their fault if they happen ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276578 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: How can I check this string a different way?
Am I missing something here? Isn't the Left 2 of OL1 or OL2 'OL'? >Will said that it would be OL1, OL2, in which case your example wouldn never >eval to true. > >Will, something like this should work: > >"-"))> > >That looks for the letters OL followed by at least one number. > > > ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276577 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
>>I'd better qualify that to say I can at least get form, url, cgi, request and session scopes - haven't tried others besides those and variables. As one would expect, it also work with the application scope. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276576 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
>>if you are getting a very consistent and duplicatable error, then start debugging the template that causes the error. It is the ABC of the debugging. But the most difficult part is generally to be able to reproduce the error. In this task, the dump of the error context is quite helpful. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276575 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT: Mac graphing software
You tried Gliffy? Do you use Eclipse as well? There would be a plugin for this somewhere for sure. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Damien McKenna To: CF-Talk Sent: Mon Apr 30 20:40:14 2007 Subject: OT: Mac graphing software I'm looking for a graphic app for MacOSX that's a little more advanced than OmniGraffle Pro. Key features I'm after: * Class diagrams * Web page wireframe diagrams * Multiple connection points per object (limitation of OmniGraffle) * Export in either Visio XML, EPS or WMF * Adhoc diagram creation. Things I don't need: * Code export * Reverse engineering Any recommendations? OmniGraffle doesn't have the multiple connection points so that you can't cleanly do schema diagrams and easily visually show the foreign keys relationships. Thanks. Damien McKenna Web Developer The LIMU Company "Making a Difference" 610 Crescent Executive Court, Suite 110 Lake Mary, FL 32746 P 407.548.3800 F 407.333.0419 www.thelimucompany.com ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276574 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
>>Try putting a CFTRY / CFCATCH around the code that is throwing the error This is not an option, I want a system that can detect any error hapening any where. Try/catch should be used only for isolated situations (and I also use it in many occasions) >>Bottom line Your page should NOT be throwing errors. Of course, and as a matter of fact, I just decided after a 38 years carrer as a developer that I will not implement any error of any type anywhere in my code. :-) >>I assume we are talking about debugging here. The very last step in a debugging process is to find the last bugs during the beginning of the production cycle. Then it makes no difference. And even so, you still can have errors due to the server, the database, hackers, stupid users, etc. >>Let's not lose sight of what the long-term goal is. The worse idea would be to ignore all errors like if they were not supposed to happen. After all, it is their fault if they happen ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276573 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Error recovery
Right, we can't totally eliminate errors (well, at least it's really hard) All I am saying is that if you are getting a very consistent and duplicatable error, then start debugging the template that causes the error. Yeah, I use the OnERror method in App.cfc. I also find it to be tremendously helpful :) .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Josh Nathanson [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 4:20 PM To: CF-Talk Subject: Re: Error recovery > Bottom line Your page should NOT be throwing errors. I assume we > are talking about debugging here. Put in temp code to help debug, > narrow it down, fix, then remove the debugging code. Well...I find the error catching framework available in App.cfc to be tremendously helpful. I run a public facing ecommerce site that gets around 80K page views a day. There are sometimes edge cases that I miss in my local testing, that can throw an error in the production environment. In these cases I immediately get an email with the error details and all the scopes (except variables) dumped so I can diagnose and fix it quickly. This doesn't mean my code throws tons of errors -- just that it does happen occasionally, and I need to know about it immediately if it does. And yes the goal is to have no errors! -- Josh ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276572 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
> Bottom line Your page should NOT be throwing errors. I assume we are > talking about debugging here. Put in temp code to help debug, narrow it > down, fix, then remove the debugging code. Well...I find the error catching framework available in App.cfc to be tremendously helpful. I run a public facing ecommerce site that gets around 80K page views a day. There are sometimes edge cases that I miss in my local testing, that can throw an error in the production environment. In these cases I immediately get an email with the error details and all the scopes (except variables) dumped so I can diagnose and fix it quickly. This doesn't mean my code throws tons of errors -- just that it does happen occasionally, and I need to know about it immediately if it does. And yes the goal is to have no errors! -- Josh ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276571 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Error recovery
Try putting a CFTRY / CFCATCH around the code that is throwing the error (even if you put it around the entire contents of a template) and then CFMAIL yourself the VARIABLES scope in the CFCATCH code. Bottom line Your page should NOT be throwing errors. I assume we are talking about debugging here. Put in temp code to help debug, narrow it down, fix, then remove the debugging code. Let's not lose sight of what the long-term goal is. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 3:52 PM To: CF-Talk Subject: Re: Error recovery >>can you re-engineer the Application.cfm into an Application.cfc that takes advantage of the onError event? According to Josh in the same thread, that will not solve the problem. Apparently, both functionalities use the same internal code. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276570 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
> This is what I do now (use onError), and I can get every scope except > variables. I'd better qualify that to say I can at least get form, url, cgi, request and session scopes - haven't tried others besides those and variables. -- Josh ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276569 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
>I know it's not solving your problem directly, but can you re-engineer > the Application.cfm into an Application.cfc that takes advantage of the > onError event? I believe it can see everything. Might take some doing, > but in the long run might be worth it. I don't think it will work. If you dump the variables scope from within a cfc such as Application.cfc, it will give you the variables struct local to the cfc rather than the variables struct from the erring page. This is what I do now (use onError), and I can get every scope except variables. -- Josh ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276568 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
>>can you re-engineer the Application.cfm into an Application.cfc that takes advantage of the onError event? According to Josh in the same thread, that will not solve the problem. Apparently, both functionalities use the same internal code. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276567 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: To cache or not to cache...
Mike, I guess it all depends (ymmv etc.), but I'll give you some tips. Query of queries are not really great if you're trying to speed things up. It's not the worst way to go, but if you make better original queries and minimize the number of QoQs, you'll do a bit better. Now the question is do you want to make a stored procedure or a query - SPs are generally a little better because their execution plan is precompiled, but they're typically not much better than queries with bound parameters (cfqueryparams for us). However, you may want to look into a database view, which actually caches the results of a query, which works great for huge amounts of data. Then, do you want to cache the query in CF? That depends on how often the data changes, how much data there is (over 1GB of one type of data probably shouldn't just be stored in java memory, imho), and if you can work around any problems there may be if and when the data changes. Then perhaps you can do some smarter caching of your data - cache a small part of it as it's requested, or cache just the most popular parts of your dataset, if possible. This could help you get around needing to do QoQ's. Last, remember you can cache your queries, even queries of queries, in a shared scope, for instance, your application, or better yet, a CFC in your application scope where you can control access to the data. Ok, well just some thought to muse over on one of my favorite subjects. (ok i have like 20 favorites). -- nathan strutz http://www.dopefly.com/ On 4/29/07, Mike | NZSolutions Ltd <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I am working on an application to list properties. Just wanted some > opinions... > > Am I better to create a stored procedure of all listings (the aim is to > have > quite a few), then use a query of queries to get relevant listings eg. > feature/general/classfieds > > Or am I better to use a standard query to get all listings - cache it > using > cachedwithin and use a query of queries each time? > > Or am I right off the track - lol! > > Regards > Mike > > > > ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276566 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
OT: Mac graphing software
I'm looking for a graphic app for MacOSX that's a little more advanced than OmniGraffle Pro. Key features I'm after: * Class diagrams * Web page wireframe diagrams * Multiple connection points per object (limitation of OmniGraffle) * Export in either Visio XML, EPS or WMF * Adhoc diagram creation. Things I don't need: * Code export * Reverse engineering Any recommendations? OmniGraffle doesn't have the multiple connection points so that you can't cleanly do schema diagrams and easily visually show the foreign keys relationships. Thanks. Damien McKenna Web Developer The LIMU Company "Making a Difference" 610 Crescent Executive Court, Suite 110 Lake Mary, FL 32746 P 407.548.3800 F 407.333.0419 www.thelimucompany.com ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276565 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Error recovery
I know it's not solving your problem directly, but can you re-engineer the Application.cfm into an Application.cfc that takes advantage of the onError event? I believe it can see everything. Might take some doing, but in the long run might be worth it. -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:32 PM To: CF-Talk Subject: Error recovery Hi, In my CMS I'm using some template defined in a http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276564 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
>>Whap happens if you try to CFDump out the VARIABLES scope? Does it throw an error? Yes, and then the CFERROR template is leaved for the standard error page. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276563 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
>>If that were true though, how is the form scope available? I didn't think of that, but you have a pretty good point. >>If it were passing the form struct through to the error template somehow, it could also pass the variables struct. Absolutely, and if it was running as a new template, it also should have its own variables scope. But my experience tells me that any reference to variables scope will cause a second error, both in CF 5 and CFMX. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276562 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Error recovery
Whap happens if you try to CFDump out the VARIABLES scope? Does it throw an error? .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:32 PM To: CF-Talk Subject: Error recovery Hi, In my CMS I'm using some template defined in a http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276561 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
> but apparently > it is more like the error template is treated as a new HTTP request, > then all local variables are lost. If that were true though, how is the form scope available? I would think the form scope would be empty if the error template is treated as a new HTTP request; but in my experience, the form struct does dump correctly. If it were passing the form struct through to the error template somehow, it could also pass the variables struct. I'm in the same boat -- although I'm using onError in Application.cfc, it seems to work the same way as CFERROR. I'd like to see the variables scope dump from the erring page but haven't been able to figure out a way to do it. -- Josh ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276560 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error recovery
>>My guess would be the reason you can't do it, is because the variables struct is probably only completely populated AFTER the page has been checked for errors. Well, I think the reason is simply that variables scope is proper to every termplate. If the error template was included, the variables should still be there, but apparently it is more like the error template is treated as a new HTTP request, then all local variables are lost. I was hoping some CF-Java guru could tell me "Yes, the variables are still visible there..." somewhere in the Java stuff. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276559 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
> Would any one have an idea about some trick I could use to dump this > variables scope? > Assuming CF MX. My guess would be the reason you can't do it, is because the variables struct is probably only completely populated AFTER the page has been checked for errors. Other scopes (session,form,url,cgi) are available before the page is executed, so they can be dumped regardless of errors. Just a guess though, probably some testing is in order. -- Josh ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276558 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error recovery
>>This will contain all the error specific info. Is this what you are talking about? Not really, this only contains information about the error, and I already CFDUMP it. What I'm talking about is the variables scope of the template that caused the error. I mean all variables that were defined in the template BEFORE the error template was called. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276557 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: directory watcher
On my directorywatcher gateway I have a following CFC function. Msg: Log file attached. Filename: #data.filename# The above codes is working if I take the cfmailparam out . But I need to send the new file attached in the email. This function is generating the following error (exception.log). Error invoking CFC for gateway SendLogsEvent: String index out of range: -1" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 Please help. -- ... Regards, On 4/27/07, Asim Manzur wrote: > > is there any sample code available for directorywatcher application > anywhere ? > > Thanks > > -- > .. > Regards, > > ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276556 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Error recovery
Inside of the CFERROR template, you should have a variable, CFERROR: This will contain all the error specific info. Is this what you are talking about? Just be careful - this variable is only there IF the template is executed via an error. If you go to it directly, this does not exist. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:32 PM To: CF-Talk Subject: Error recovery Hi, In my CMS I'm using some template defined in a http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276555 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: client side and server side validation
>>> What if the user has javascript turned off? >> Furthermore: what if he does not have Internet? Hmmm? > or a computer Well, snide remarks aside - it *is* an issue. I have a particular application running where I've found that almost 35% of the folks using it do not have javascript enabled. They're not going to turn it on, even if they knew how, and they represent a good portion of the core customers of the client in question. So, form validation is going to *have* to work, and report meaningful messages back to the user, *without* javascript. You're going to have to decide whether you can afford to block these people, or work with methods that will provide them a meaningful user experience plus the needed security for your site. I've really had to think about the methods I've been using on my sites. Validation using Javascript/CFFORM plus cfqueryparam ain't cutting it. See the thread starting here. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:51250 ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276554 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Error recovery
Hi, In my CMS I'm using some template defined in a http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276553 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Tessitura and cfmx
Hi, Anyone done an integration with Tessitura and CF? I suspect the answer is going to be no, but it's worth asking. Cheers Will ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276552 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: client side and server side validation
or a computer -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 9:15 AM To: CF-Talk Subject: Re: client side and server side validation >>What if the user has javascript turned off? Furthermore: what if he does not have Internet? Hmmm? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276551 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Moving from cookie to session for shopping cart
What I want to do it move away from storing shopping cart information in a cookie. We currently do this because we have multiple servers that handle the shopping cart. What I want to do it use only two servers in a cluster, one active and the other passive, and use session variables to control the shopping cart. I know you still need a cookie for the session variable. What I thought was I could insert the session ID in a table with the stock number, quantity, and price. After the order is completed, the session ID is deleted and all information about the order is purged from the table. Also, I would probably set to purge sessions that are inactive for 7 days. So.. may table would look like this: SessionID Stock Qty Price AddDate - - - -- - 1234567 123 1 9.9504/30/2007 Sound good? Also, would CF Enterprise be idea for this? Take advantage of the clustering... Thanks Jacob ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276550 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Flex = Open Source
On Thursday 26 Apr 2007, Mark A Kruger wrote: > I take it FDS is still an arm and a leg though - right? There is the minimal 'Express' version, that's free. -- Tom Chiverton Helping to evangelistically reinvent customized e-tailers on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276549 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cms
Hi Geoff, I'd love to be able to use something that was open source for this project. And the fact that there aren't $10k license fees is going to make my client very happy. Can you tell me, when is v4 due for release? I'm downloading the beta now to take a look, but I'm wondering if it would be suitable for a project due to launch in October 2007? Email me off list if you prefer. Thanks Will -Original Message- From: Geoff Bowers [mailto:[EMAIL PROTECTED] Sent: 30 April 2007 03:43 To: CF-Talk Subject: Re: cms Will, On 28/04/07, Will Swain <[EMAIL PROTECTED]> wrote: > Yes, so far I can echo your sentiments about Farcry, which is a shame. > However, I shall persevere with my evaluation anyway. I'm happier with > an open source CF based system if possible, because we will need to do > some tweaking no doubt, or possibly add in our own components. The > client has a requirement for a Flash media player and library, with > dynamic content delivered according to user level, which I am > imagining having to build myself - Flex sounds ideal for this. I'd encourage you to get in touch with our team or at least the FarCry development community. We welcome the chance to showcase the platform and answer enquiries from any potential customer of FarCry. We have a services model built around the product that provides support, training and/or development for the platform -- so there's our vested interest. We're happy to play as small or as large as a role as you need -- even if that's just to evangelise about how the solution works. Best regards, -- geoff http://www.daemon.com.au/ ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276548 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: License Exception for JSP Pages - how to disallow
Alex, Thanks for the response, but that option requires that the jsp extension exists with an associated Executable Path in IIS. Earlier in this thread, to get around JSP pages associated with JRun, the JSP extension was removed from IIS altogether. For kicks, I added it back, and still the same result -- just a blank page when trying to hit a JSP page. Tim >Have you tried the IIS "check that file exists" option? > ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276547 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: scheduled jobs run twice
Thanks. I recall finding something like that when Googling for info. Unfortunately, this is a weekly job and the "execute every X hours" mode goes up only to 99 hours. but thanks anyway! Chris -- Original Message -- From: Dana Kowalski <[EMAIL PROTECTED]> Reply-To: cf-talk@houseoffusion.com Date: Fri, 27 Apr 2007 20:11:17 -0400 >bah flip that (SORRY!) use every x hours vs daily at and see if it still >happens. When we changed that we never ran into this trouble again =\ > > >> We were getting this on 6.x and they posted a hotfix at one point >> early on in 7 or late 6 to correct it. We still saw it sometimes where >> the task would run multiple times over night, and there was a post on >> the adobe forums pointing to use the daily at option instead of every >> x hours. > > ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276546 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: How can I check this string a different way?
Will said that it would be OL1, OL2, in which case your example wouldn never eval to true. Will, something like this should work: That looks for the letters OL followed by at least one number. -Original Message- From: Jim McAtee [mailto:[EMAIL PROTECTED] Sent: Saturday, April 28, 2007 4:24 PM To: CF-Talk Subject: Re: How can I check this string a different way? - Original Message - From: "Will Tomlinson" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Saturday, April 28, 2007 2:54 PM Subject: How can I check this string a different way? >I need a better way to evaluate a string here. Maybe a regex I guess? > > I have a hyphen-delimited list. The last item in the list needs to be > flagged if it contains OL1, OL2, etc. > > Just if it contains the OL at all, I need to flag it as an online > course. > > Here's what I'm using now, what's a better way to handle it? > > > > ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276545 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: client side and server side validation
>>What if the user has javascript turned off? Furthermore: what if he does not have Internet? Hmmm? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276544 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
sql - querying number fields as dates
I have Oracle db entries where three numbers represent a date. This is because the user can enter in just the year, or just the year and month, or the whole dang thing. Now though, I have to query on this to find if the "date" is between two other dates in the search parameters. Also, the month or day entries that weren't used are left blank (null), so that when editing is done, they still appear as not selected. Do I do: dbYear < searchYear AND dbyear > searchYear2 if so dbMonth < searchMonth AND dbMonth > searchMonth2 if so dbDay < searchDay AND dbMonth > searchDay2 or do I figure out some way to create a date in SQL variables, which I really don't know how to do, and put in base numbers where the entries are blank, like using 1 for a beginDay that is left blank and 28,30, or 31 for endDays that are left blank and similar for months. Thanks for any assistance. -- Daniel Kessler College of Health and Human Performance University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 Phone: 301-405-2545 http://hhp.umd.edu ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276543 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Which Framework do you use... (if any)
> >Application.cfm (part of the pre-CF7 built-in application framework). >Short of that, Application.cfc with a private method that gets invoked >onRequestStart. This is inferior, I think, but necessary if you need >some of the other Application.cfc hooks (like onSessionEnd). > >And let the flame-war begin ;) > More specifically, what types of application parameters should be set up at application initiation. In my applications, I query the database to setup my entire navigation systems (an array of structures) then I store it in the application scope. I also store DSN information in application scope. In some frameworks, information is pulled from an XML configuration file. Fusebox has these abstract circuits that I think are stored in the application scope. I am not sure what Mach-II stores in the application scope upon application initiation. The question is not how to use application.cfm but what makes up a solid application scope variable enviornment? What's in the application scope variable enviornment of Mach-II, Fusebox etc. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276542 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: request timeout
> Dave, how and where to get 'wget'? Go to Google, type in "wget", then choose the appropriate link for your platform. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276541 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Newbie Question: Coding CFML once SSL Certificate is Installed
On Friday 27 Apr 2007, Brian Wright wrote: > pages using https:// instead of http:// which means I shouldn't use > relative links in pages that should be called using SSL since relative > links (e.g. /members/file1.cfm) would default to http:// and not https://. The browser should stay stuck to HTTP or HTTPS (whichever was used to request the page with the links on) when using relative links. -- Tom Chiverton Helping to augmentatively generate dynamic bandwidth on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276540 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: request timeout
yes guys. it's the XML file with NRows of data. Dave, how and where to get 'wget'? Cheers, Sinuy - >> does anyone know how to DYNAMICALLY extend the timeout in >> CFSETTNG for a long data carry by using CFHTTP? say, it takes >> 10min - or up to 90min sometime. > >You can use the TIMEOUT attribute of CFHTTP to override the normal timeout >of a CFHTTP request, but you will also need to override the timeout of your >page itself using CFSETTING. > >But honestly, if it takes ninety minutes to fetch something using CFHTTP, >you probably shouldn't do that. Use something else (like wget) to fetch >files for you if they take that long. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ > >Fig Leaf Software provides the highest caliber vendor-authorized >instruction at our training centers in Washington DC, Atlanta, >Chicago, Baltimore, Northern Virginia, or on-site at your location. >Visit http://training.figleaf.com/ for more information! > >This email has been processed by SmoothZap - www.smoothwall.net ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276539 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: client side and server side validation
I assumed you had server side taken care of since it was in the title but not mentioned in the post ;-) In your action template... -Original Message- From: Pete [mailto:[EMAIL PROTECTED] Sent: Sunday, April 29, 2007 10:32 PM To: CF-Talk Subject: RE: client side and server side validation Good question - so what do you recommend? P -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Monday, 30 April 2007 11:59 AM To: CF-Talk Subject: Re: client side and server side validation > Where you have... > onsubmit="return validateFields(this);" .. and I'll throw the monkey wrench in. What if the user has javascript turned off? Have you planned for that? ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276538 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Which Framework do you use... (if any)
Relating to Frameworks, is there a certain one that scales better between 2 or more servers, or do they all scale the same as long as you setup client vars to be in a DB and shared? Does any framework specifically store internal variables in such a way as to preclude the use of multiple servers with a shared client scope? Chris ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276537 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Which Framework do you use... (if any)
> No specific named methodology. Frameworks? Model-Glue, Fusebox, ColdSpring, Transfer. Interesting. Not Mach-II anymore? "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Sean Corfield To: CF-Talk Sent: Mon Apr 30 04:31:07 2007 Subject: Re: Which Framework do you use... (if any) On 4/28/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > Just what frameworks/methologies are people using, if any? No specific named methodology. Frameworks? Model-Glue, Fusebox, ColdSpring, Transfer. > from research it seems > people fleet between them etc which seems futile. I think a few fairly high profile people have talked publicly about using several frameworks. I don't think any real "research" would should that "people fleet between them". Most people seem to settle on a given set of frameworks and stick with them. Sure, there are always going to be a few "switchers" but those really are the outliers in the community. I know a lot of hardcore Fuseboxers using FB3, for example, and also a lot of Model-Glue folks using MG1.x. You can hardly accuse them of "fleeting" between frameworks! > There must be one which > is faster, more productive and which just seems "the best"? Like Dave Watts I'll ask "why?"... different frameworks suit different people and different projects. It's not a decision anyone can - or should - make for you. I liked "Zaphod"s comment about the Accord - very applicable here. Ask this question on the FB forums and they'll probably tell you Fusebox is the answer. Ask it on the MG forums and they'll tell you Model-Glue. Ask it on the M2 forums and they'll tell you Mach II. > Which one has the most backing? Hard to say - they all have active communities and mailing lists. > The most long-term vision and lifecycle? Again, hard to say. Most of the frameworks' teams have an idea about the next two or three releases. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276536 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4