Re: Multi threading or Processing using CF
On Wednesday 02 Jun 2004 21:15 pm, Ketan Patel wrote: Hi, I am looking for some solution where I can do 2 or 3 simultaneous calls to functions using CF. Any CFX tag available which can spawn a task in the background. Has anybody implemented something like this. Use a frameset (spit) with 3 frames ? -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Multi threading or Processing using CF
On Wednesday 02 Jun 2004 21:15 pm, Ketan Patel wrote: Hi, I am looking for some solution where I can do 2 or 3 simultaneous calls to functions using CF. Any CFX tag available which can spawn a task in the background. Has anybody implemented something like this. To do so from the browser you could use the technique I've described here: http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GIFAs Pipe/Index.cfm Jim Davis [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: He3 community input (custom tag paths/mappings)
That's not really what I'm thinking. My thought is to point the IDE to a single url (per development server) that returns stuff like this (in some xml format): Mappings: / = d:\inetpub\wwwroot /funkychicken = d:\inetpub\wwwroot\iama\funkychicken Tags: cf_chickendance = d:\inetpub\wwwroot\iama\funkychicken\chickendance.cfm This information could easily be determined by CF and would work just as fine on a 127.0.0.1 IP as it would a public IP. If the information is changed in the cf server, it would automatically reflect here. It could check the server once when the IDE is loading up then cache it like you're saying.This clearly doesn't solve everything, but it could be a start. If you can make this setup automated, that would be preferable. What it doesn't solve are things like dynamic includes, such as: cfinclude template=#funkychicken# To do that you either need to actually run the template or create a CFML engine. Steve _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 10:09 PM To: CF-Talk Subject: Re: He3 community input (custom tag paths/mappings) How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. That would require that each project know what server to connect to since a developer may want to have different projects deploy to different servers. Further, it would require that the IDE be able to connect to the server during development, which would be annoying on a plane for example. Although, that could probably be solved with some sort of caching/synchronization routine. I certainly can see that it would be annoying to setup project after project with the same settings. However, I am not sure what you are suggesting is any better because of what I mentioned above. -Matt _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Blackstone - Toronto CFUG notes
What does the SQL reporting services produce? PDFs, Word? HTML? I have a copy from my MS action pack, but haven't taken the time to install it. Steve Nelson _ From: G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 3:32 PM To: CF-Talk Subject: Re: Blackstone - Toronto CFUG notes As someone who certainly shares your disdain for CR (and most other report generators i've seen), I can say with absolute honesty that Microsoft's new SQL Server 2000 Reporting Services has me genuinely excited. We've already begun converting some old, clunky CF reports over to this format with encouraging results. Brian - Original Message - From: Andy Peterson To: CF-Talk Sent: Wednesday, June 02, 2004 1:55 PM Subject: Re: Blackstone - Toronto CFUG notes OK, wait a minute! I've been looking for a reliable alternative to Crystal Reports for a long, long time. Am I reading this correctly? I'd like nothing better (in my world of programming) than to never have to deal with Crystal again. Really :-) If I can get a formatted report (with groupings, sortings, page numbers, etc), it would save me days of troubleshooting and issue resolution. I know there are Create PDFs on the Fly alternatives out there now, but those that I have tried have left me almost as frustrated as Crystal itself. Any more info on this (screen prints, etc w/o violating NDA) greatly appreciated. Sincerely, Roo _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blackstone - Toronto CFUG notes
What does the SQL reporting services produce? PDFs, Word? HTML? I have a copy from my MS action pack, but haven't taken the time to install it. BTW If you are looking for a great web-based reporting tool (and you have plenty of money to spend on it...), this one may worth a check: http://www.panscopic.com/ Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Blackstone - Toronto CFUG notes
Hey Steve, The Reporting Services can export in all of those formatsHTML, PDF, Excel, Word and Custom. HTH Neil _ From: Steve Nelson [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 12:44 To: CF-Talk Subject: RE: Blackstone - Toronto CFUG notes What does the SQL reporting services produce? PDFs, Word? HTML? I have a copy from my MS action pack, but haven't taken the time to install it. Steve Nelson _ From: G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 3:32 PM To: CF-Talk Subject: Re: Blackstone - Toronto CFUG notes As someone who certainly shares your disdain for CR (and most other report generators i've seen), I can say with absolute honesty that Microsoft's new SQL Server 2000 Reporting Services has me genuinely excited. We've already begun converting some old, clunky CF reports over to this format with encouraging results. Brian - Original Message - From: Andy Peterson To: CF-Talk Sent: Wednesday, June 02, 2004 1:55 PM Subject: Re: Blackstone - Toronto CFUG notes OK, wait a minute! I've been looking for a reliable alternative to Crystal Reports for a long, long time. Am I reading this correctly? I'd like nothing better (in my world of programming) than to never have to deal with Crystal again. Really :-) If I can get a formatted report (with groupings, sortings, page numbers, etc), it would save me days of troubleshooting and issue resolution. I know there are Create PDFs on the Fly alternatives out there now, but those that I have tried have left me almost as frustrated as Crystal itself. Any more info on this (screen prints, etc w/o violating NDA) greatly appreciated. Sincerely, Roo _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
He3 community input (undo after closing file)
On another note, I'd love a feature that lets me undo after closing a document, even if I closed the file 3 weeks ago. Basically just write the undo commands to disk. I have plenty of disk space, so I honestly don't care how much space this would take up. Steve Nelson _ From: Steve Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 7:42 AM To: CF-Talk Subject: RE: He3 community input (custom tag paths/mappings) That's not really what I'm thinking. My thought is to point the IDE to a single url (per development server) that returns stuff like this (in some xml format): Mappings: / = d:\inetpub\wwwroot /funkychicken = d:\inetpub\wwwroot\iama\funkychicken Tags: cf_chickendance = d:\inetpub\wwwroot\iama\funkychicken\chickendance.cfm This information could easily be determined by CF and would work just as fine on a 127.0.0.1 IP as it would a public IP. If the information is changed in the cf server, it would automatically reflect here. It could check the server once when the IDE is loading up then cache it like you're saying.This clearly doesn't solve everything, but it could be a start. If you can make this setup automated, that would be preferable. What it doesn't solve are things like dynamic includes, such as: cfinclude template=#funkychicken# To do that you either need to actually run the template or create a CFML engine. Steve _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 10:09 PM To: CF-Talk Subject: Re: He3 community input (custom tag paths/mappings) How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. That would require that each project know what server to connect to since a developer may want to have different projects deploy to different servers. Further, it would require that the IDE be able to connect to the server during development, which would be annoying on a plane for example. Although, that could probably be solved with some sort of caching/synchronization routine. I certainly can see that it would be annoying to setup project after project with the same settings. However, I am not sure what you are suggesting is any better because of what I mentioned above. -Matt _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Unable to open license.properties
I am getting an error in the logs ofWarning Unable to open D:\CFusionMX\runtime/lib/license.properties.I have recently upgraded our JVM which is installed on D: and so is CFMX. Any one know where the setting/path is to ensure that this error is stopped? Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
No JDBC data sources
Hey, while I am on the subject of going through my log files! I am also getting the error below which doesn't look good: No JDBC data sources have been configured for this server (see jrun-resources.xml) Anyone know of a solution/explanation? Thanks Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Unable to open license.properties
Make sure that there are no spaced in the Path to the JVM What JVM are you using? _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 13:57 To: CF-Talk Subject: Unable to open license.properties I am getting an error in the logs ofWarning Unable to open D:\CFusionMX\runtime/lib/license.properties.I have recently upgraded our JVM which is installed on D: and so is CFMX. Any one know where the setting/path is to ensure that this error is stopped? Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Unable to open license.properties
Hi Kevin, I am suing Sun Java 1.4.2_04.CF starts AOK so I cant see how it's a problem with the path setting otherwise JRun wouldn't start!I have read that this message can be ignored as its built into CF/JRun but I need to clarify. Thanks Neil From: Kev McCabe [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:21 To: CF-Talk Subject: RE: Unable to open license.properties Make sure that there are no spaced in the Path to the JVM What JVM are you using? _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 13:57 To: CF-Talk Subject: Unable to open license.properties I am getting an error in the logs of Warning Unable to open D:\CFusionMX\runtime/lib/license.properties. I have recently upgraded our JVM which is installed on D: and so is CFMX. Any one know where the setting/path is to ensure that this error is stopped? Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: javascript Onchange() function?
On Tuesday 01 Jun 2004 19:35 pm, Philip Arnold wrote: There are 2 ways of doing this: 1) Store all of the query information in the page and let _javascript_ do the filtering 2) Submit the data back to the server and let CF get the shortened version of the query and re-present the form Well 3 :-) 3) Use GifAsDataPipe / pengoworks Gateway / NeuroMancer to call serverside functiions from client-side _javascript_ and adjust form acordingly. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: No JDBC data sources
'Cause you configured the datasources with CFAdmin rather than JRMC, perhaps? HTH Dick On Jun 3, 2004, at 6:17 AM, Robertson-Ravo, Neil (RX) wrote: Hey, while I am on the subject of going through my log files! I am also getting the error below which doesn't look good: No JDBC data sources have been configured for this server (see jrun-resources.xml) Anyone know of a solution/explanation? Thanks Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: upload a file explanation
Yeah that line checks it, and the previous stuff uploads it.But they're not in unison.The upper code does the upload, then this check happens after ituploads.There's nothing in this cfif that says well if it fails, don't do the upload or if it's fine, finish the upload process. That's the crux of my question. This line: CFIF Val(CGI.CONTENT_LENGTH) GT 10485760 Check the HTTP's header for file size. In case it's too big it stops before the file is written to the final destination folder. I am not sure if CF in the meantime stores the file on a temp folder or just keep it in memory, anyway, it never reaches its final destination Hope it may help Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Help with accessing PDF files in DB
What is the best way to display a list of PDFs and allow a user to click on the link and open the PDF? Here is the current code: a href="" > openFile('#variables.sponsorreports_url#liability/#htmleditformat(qGetReport List.tFilename)#')#htmleditformat(qGetReportList.tFilename)#/a And it doesn't work. I get a page not found error... _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Why did this suddenly break
Hi all, Using MX6.1 Win 2003 server, J2EEsessionvars enabled. I have a shopping cart, when someone initially goes to the checkout page (to enter first name, last name, etc), a session.ecom structure is created containing empty strings.However, the past few days, the cart acts like it can't find the session.ecom structure, thus throwing errors (can't find the structure) (and I haven't changed any code). I've tried restarting CF at the server.I've used this code for some time without problem until now. When I remove the IsDefined statement, and rerun the checkout page, the cart works normally. What am I doing wrong? == cflock name=#REQUEST.prefix##SESSION.SessionID# timeout=10 type=exclusive cfif NOT IsDefined(SESSION.ecom) cfscript SESSION.ecom = StructNew(); // We will collect these from user; start blank // Personal Information SESSION.ecom.IPAddressNo = #CGI.REMOTE_ADDR#; SESSION.ecom.UserAgent = #CGI.HTTP_USER_AGENT#; SESSION.ecom.FirstName= ; SESSION.ecom.MiddleName= ; SESSION.ecom.LastName= ; SESSION.ecom.surName = ; /cfscript /cfif /cflock Thanks, Mark [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Returning XML via webservice, cont
Yes, I see the same thing when I view the source, it is a WDDX pocket. It is the way CF is sending the XML to the browser as XML encapsulated in WDDX. You can always write the XML to a file and then you get straight XML. Why this would beproblem for your application? TK -Original Message- From: Christopher Dempsey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 4:48 PM To: CF-Talk Subject: RE: Returning XML via webservice, cont Tom, The displayed output is correct, but when I view the source, I see the wddx tags.Is that the same with you? Chris On Wed, 2 Jun 2004, Tom Kitta wrote: I tryed the links you supplied and I got what I expected. Can you send me what you get as your browser response? Maybe you need to clear browser cache or something. I looked at the XML raw and one returned by your CFC call and they are the same minus the formatting of the actual XML (mine doesn't have the line feeds). Check it out and tell me whatever it works now, if it works for me it should for you, right? TK -Original Message- From: Christopher Dempsey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 1:33 PM To: CF-Talk Subject: RE: Returning XML via webservice, cont Tom, I tried what you recommended, I have tried your method below, and it didn't work quite right.It still returns a WDDX packet, but now all of the XML is escaped.The XML file is at http://www.graddiv.ucsb.edu/ssoNavigation.xml and I am calling the below code with http://www.graddiv.ucsb.edu/sso.cfc?method=getNavigation Here is the code now.I tried it without using the closing / and it had no effect. cffunction name=getNavigation access=remote returntype=any displayname=Get SSO navigation XML document hint=This method retrieves an XML document used for SSO navigation bar. output=false cffile action="" file=D:\inetpub\wwwroot\ssoNavigation.xml variable=myString / cfreturn toString(myString) / /cffunction Totally bizarre.Also tried restarting the CF service and clearing the browser cache, no effect. Thanks, Chri [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: javascript Onchange() function?
Which isessentially version 2 (except that you don't have to load the entire form a second time) -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: donderdag 3 juni 2004 15:28 To: CF-Talk Subject: Re: _javascript_ Onchange() function? On Tuesday 01 Jun 2004 19:35 pm, Philip Arnold wrote: There are 2 ways of doing this: 1) Store all of the query information in the page and let _javascript_ do the filtering 2) Submit the data back to the server and let CF get the shortened version of the query and re-present the form Well 3 :-) 3) Use GifAsDataPipe / pengoworks Gateway / NeuroMancer to call serverside functiions from client-side _javascript_ and adjust form acordingly. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Unable to open license.properties
The only other thing that may cause this is the \ / in the error may give a clue to why it can't open it. HTH _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:23 To: CF-Talk Subject: RE: Unable to open license.properties Hi Kevin, I am suing Sun Java 1.4.2_04.CF starts AOK so I cant see how it's a problem with the path setting otherwise JRun wouldn't start!I have read that this message can be ignored as its built into CF/JRun but I need to clarify. Thanks Neil From: Kev McCabe [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:21 To: CF-Talk Subject: RE: Unable to open license.properties Make sure that there are no spaced in the Path to the JVM What JVM are you using? _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 13:57 To: CF-Talk Subject: Unable to open license.properties I am getting an error in the logs ofWarning Unable to open D:\CFusionMX\runtime/lib/license.properties.I have recently upgraded our JVM which is installed on D: and so is CFMX. Any one know where the setting/path is to ensure that this error is stopped? Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blackstone - Toronto CFUG notes
I looked at it. seems you need to lock into visual studio .net 2003 / sql server to build edit and deploy the reports. dave - Original Message - From: Robertson-Ravo, Neil (RX) To: CF-Talk Sent: Thursday, June 03, 2004 7:55 AM Subject: RE: Blackstone - Toronto CFUG notes Hey Steve, The Reporting Services can export in all of those formatsHTML, PDF, Excel, Word and Custom. HTH Neil _ From: Steve Nelson [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 12:44 To: CF-Talk Subject: RE: Blackstone - Toronto CFUG notes What does the SQL reporting services produce? PDFs, Word? HTML? I have a copy from my MS action pack, but haven't taken the time to install it. Steve Nelson _ From: G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 3:32 PM To: CF-Talk Subject: Re: Blackstone - Toronto CFUG notes As someone who certainly shares your disdain for CR (and most other report generators i've seen), I can say with absolute honesty that Microsoft's new SQL Server 2000 Reporting Services has me genuinely excited. We've already begun converting some old, clunky CF reports over to this format with encouraging results. Brian - Original Message - From: Andy Peterson To: CF-Talk Sent: Wednesday, June 02, 2004 1:55 PM Subject: Re: Blackstone - Toronto CFUG notes OK, wait a minute! I've been looking for a reliable alternative to Crystal Reports for a long, long time. Am I reading this correctly? I'd like nothing better (in my world of programming) than to never have to deal with Crystal again. Really :-) If I can get a formatted report (with groupings, sortings, page numbers, etc), it would save me days of troubleshooting and issue resolution. I know there are Create PDFs on the Fly alternatives out there now, but those that I have tried have left me almost as frustrated as Crystal itself. Any more info on this (screen prints, etc w/o violating NDA) greatly appreciated. Sincerely, Roo _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Regular Expression and HTML
I got a RE that I have modified in order to parse some HTML and to only keep tag starting with a input, select or textarea, however I am struggling with it. I have some HTML: table width=100%border=0 cellspacing=0 cellpadding=0 tr tdinput type=file name=file_1 value=file_1/td tdinput type=text name=text_1 value=text_1 size=12 maxlength=18/td /tr tr td colspan=2textarea name=textarea_1 cols=12 rows=5 wrap=hard/textarea/td /tr tr td input type=radio name=radio_1 value=1 input type=radio name=radio_1 value=2 input type=radio name=radio_1 value=3/td td select name=select_1 option value=value11 selecteda/option option value=value12b/option option value=value13c/option option value=value14d/option /select /td /tr tr tdinput type=submit name=submit_1 value=submit_1/td tdinput type=reset name=reset_1 value=reset_1/td /tr /table After using the RE I get that: cellSpacing=0 cellPadding=0 width=100% border=0 INPUT type=file name=file_1 INPUT maxLength=18 size=12 value=text_1 name=text_1 colSpan=2TEXTAREA name=textarea_1 rows=5 wrap=hard cols=12/TEXTAREA INPUT type=radio value=1 name=radio_1 INPUT type=radio value=2 name=radio_1 INPUT type=radio value=3 name=radio_1 SELECT name=select_1 OPTION value=value11 selecteda/OPTION OPTION value=value12b/OPTION OPTION value=value13c/OPTION OPTION value=value14d/OPTION/SELECT INPUT type=submit value=submit_1 name=submit_1 INPUT type=reset value=reset_1 name=reset_1 I managed to take out nearly all the HTML but the closing tag are still there and the inside attributes are still there too, what do I miss here. I am not very familiar with RE and I am going crazy. Here is my RE: cfset cleanFromHTML = REReplaceNoCase(#form.stFormStruct#, (\/?)(a(bbr|cronym|ddress|pplet|rea)?|b(ase(font)?|do|ig|lockquote|ody|r|utton)?|c(aption|enter|ite|lass|(o(de|l(group)?)))|d(d|el|fn|i(r|v)|l|t)|em|f(ieldset|o(nt|rm)|rame(set)?)|h([1-6]|ead|r|tml)|i(frame|mg|sindex)|kbd|l(abel|egend|i(nk)?)|m(ap|e(nu|ta))|no(frames|script)|o(bject|l)|p(aram|re)?|q|s(amp|cript|mall|pan|t(r(ike|ong)|yle)|u(b|p))|t(able|body|d|foot|h|itle|r|t)|u(l)?|var), , all) Thanks, Jean-Marc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: upload a file explanation
Yeah that line checks it, and the previous stuff uploads it.But they're not in unison.The upper code does the upload, then this check happens after ituploads.There's nothing in this cfif that says well if it fails, don't do the upload or if it's fine, finish the upload process. That's the crux of my question. Ah! Sorry, instead of reading the whole code I focused my attention on the cfif blocks that checks the HTTP headers and forget the rest :-) Yes, the code you posted doesn't makes sense, since the check is performed after cffile Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Help with accessing PDF files in DB
I can't really say what is going wrong, as the openFile function is not in your code. Why don't you just put the url in the href and add target=_blank to see what happens. If you try to put the generated link directly in the browser, does it work? Pascal -Original Message- From: Monique Boea [mailto:[EMAIL PROTECTED] Sent: donderdag 3 juni 2004 15:35 To: CF-Talk Subject: Help with accessing PDF files in DB What is the best way to display a list of PDFs and allow a user to click on the link and open the PDF? Here is the current code: a href="" > openFile('#variables.sponsorreports_url#liability/#htmleditfor mat(qGetReport List.tFilename)#')#htmleditformat(qGetReportList.tFilename)#/a And it doesn't work. I get a page not found error... _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Help: CF5 Prof. connecting to Oracle with Merant
I have setup a ODBC connection usingMerant 3.7 OEM drivers in the Windows Datasource Admin. It connects properly. However, in CF ADMIN it does not connect. The proper username and password have been entered. I'll keep searching the archives etc, but if you have heard of such a problem please let me know. Thanks in advance, Frank [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blackstone - Toronto CFUG notes
At 09:42 AM 6/3/2004, you wrote: I looked at it. seems you need to lock into visual studio .net 2003 / sql server to build edit and deploy the reports. Yup. The visual Studio.NET is a deal breaker. But, doesn't CS.NET just generate RDF, which is a well known XML vocabulary? You could write the XML yourself and still use the server component, no? -- Alex dave - Original Message - From: Robertson-Ravo, Neil (RX) To: CF-Talk Sent: Thursday, June 03, 2004 7:55 AM Subject: RE: Blackstone - Toronto CFUG notes Hey Steve, The Reporting Services can export in all of those formatsHTML, PDF, Excel, Word and Custom. HTH Neil _ From: Steve Nelson [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 12:44 To: CF-Talk Subject: RE: Blackstone - Toronto CFUG notes What does the SQL reporting services produce? PDFs, Word? HTML? I have a copy from my MS action pack, but haven't taken the time to install it. Steve Nelson _ From: G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 3:32 PM To: CF-Talk Subject: Re: Blackstone - Toronto CFUG notes As someone who certainly shares your disdain for CR (and most other report generators i've seen), I can say with absolute honesty that Microsoft's new SQL Server 2000 Reporting Services has me genuinely excited. We've already begun converting some old, clunky CF reports over to this format with encouraging results. Brian - Original Message - From: Andy Peterson To: CF-Talk Sent: Wednesday, June 02, 2004 1:55 PM Subject: Re: Blackstone - Toronto CFUG notes OK, wait a minute! I've been looking for a reliable alternative to Crystal Reports for a long, long time. Am I reading this correctly? I'd like nothing better (in my world of programming) than to never have to deal with Crystal again. Really :-) If I can get a formatted report (with groupings, sortings, page numbers, etc), it would save me days of troubleshooting and issue resolution. I know there are Create PDFs on the Fly alternatives out there now, but those that I have tried have left me almost as frustrated as Crystal itself. Any more info on this (screen prints, etc w/o violating NDA) greatly appreciated. Sincerely, Roo _ _ -- [http://www.houseoffusion.com/lists.cfm/link=t:4Todays Threads] [http://www.houseoffusion.com/lists.cfm/link=i:4:165365This Message] [http://www.houseoffusion.com/lists.cfm/link=s:4Subscription] [http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=808.728.4Fast Unsubscribe] [http://www.houseoffusion.com/signin/User Settings] -- http://www.houseoffusion.com/banners/view.cfm?bannerid=40 [] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Regular Expression and HTML
Add [^]* at the end of the regexp. If you are on mx, you can write a shorter regexp!! -Original Message- From: jean-marc bottin [mailto:[EMAIL PROTECTED] Sent: donderdag 3 juni 2004 15:45 To: CF-Talk Subject: Regular _expression_ and HTML I got a RE that I have modified in order to parse some HTML and to only keep tag starting with a input, select or textarea, however I am struggling with it. I have some HTML: table width=100%border=0 cellspacing=0 cellpadding=0 tr tdinput type=file name=file_1 value=file_1/td tdinput type=text name=text_1 value=text_1 size=12 maxlength=18/td /tr tr td colspan=2textarea name=textarea_1 cols=12 rows=5 wrap=hard/textarea/td /tr tr td input type=radio name=radio_1 value=1 input type=radio name=radio_1 value=2 input type=radio name=radio_1 value=3/td td select name=select_1 option value=value11 selecteda/option option value=value12b/option option value=value13c/option option value=value14d/option /select /td /tr tr tdinput type=submit name=submit_1 value=submit_1/td tdinput type=reset name=reset_1 value=reset_1/td /tr /table After using the RE I get that: cellSpacing=0 cellPadding=0 width=100% border=0 INPUT type=file name=file_1 INPUT maxLength=18 size=12 value=text_1 name=text_1 colSpan=2TEXTAREA name=textarea_1 rows=5 wrap=hard cols=12/TEXTAREA INPUT type=radio value=1 name=radio_1 INPUT type=radio value=2 name=radio_1 INPUT type=radio value=3 name=radio_1 SELECT name=select_1 OPTION value=value11 selecteda/OPTION OPTION value=value12b/OPTION OPTION value=value13c/OPTION OPTION value=value14d/OPTION/SELECT INPUT type=submit value=submit_1 name=submit_1 INPUT type=reset value=reset_1 name=reset_1 I managed to take out nearly all the HTML but the closing tag are still there and the inside attributes are still there too, what do I miss here. I am not very familiar with RE and I am going crazy. Here is my RE: cfset cleanFromHTML = REReplaceNoCase(#form.stFormStruct#, (\/?)(a(bbr|cronym|ddress|pplet|rea)?|b(ase(font)?|do|ig|loc kquote|ody|r|utton)?|c(aption|enter|ite|lass|(o(de|l(group)?)) )|d(d|el|fn|i(r|v)|l|t)|em|f(ieldset|o(nt|rm)|rame(set)?)|h([1-6]|ead|r| tml)|i(frame|mg|s index)|kbd|l(abel|egend|i(nk)?)|m(ap|e(nu|ta))|no(frames|scrip t)|o(bject|l)|p(aram|re)?|q|s(amp|cript|mall|pan|t(r(ike|ong)| yle)|u(b|p))|t(able|body|d|foot|h|itle|r|t)|u(l)?|var), , all) Thanks, Jean-Marc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: He3 community input (undo after closing file)
Eclipse already has built-in support for that. Additionally, Eclipse has built-in support for retaining differences in files across saves. You could even several weeks later compare the differences between the current file and saved version from some time ago. This is in addition to any capabilities your source code control system has. -Matt On Jun 3, 2004, at 8:41 AM, Steve Nelson wrote: On another note, I'd love a feature that lets me undo after closing a document, even if I closed the file 3 weeks ago. Basically just write the undo commands to disk. I have plenty of disk space, so I honestly don't care how much space this would take up. Steve Nelson _ From: Steve Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 7:42 AM To: CF-Talk Subject: RE: He3 community input (custom tag paths/mappings) That's not really what I'm thinking. My thought is to point the IDE to a single url (per development server) that returns stuff like this (in some xml format): Mappings: / = d:\inetpub\wwwroot /funkychicken = d:\inetpub\wwwroot\iama\funkychicken Tags: cf_chickendance = d:\inetpub\wwwroot\iama\funkychicken\chickendance.cfm This information could easily be determined by CF and would work just as fine on a 127.0.0.1 IP as it would a public IP. If the information is changed in the cf server, it would automatically reflect here. It could check the server once when the IDE is loading up then cache it like you're saying. This clearly doesn't solve everything, but it could be a start. If you can make this setup automated, that would be preferable. What it doesn't solve are things like dynamic includes, such as: cfinclude template=#funkychicken# To do that you either need to actually run the template or create a CFML engine. Steve _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 10:09 PM To: CF-Talk Subject: Re: He3 community input (custom tag paths/mappings) How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. That would require that each project know what server to connect to since a developer may want to have different projects deploy to different servers. Further, it would require that the IDE be able to connect to the server during development, which would be annoying on a plane for example. Although, that could probably be solved with some sort of caching/synchronization routine. I certainly can see that it would be annoying to setup project after project with the same settings. However, I am not sure what you are suggesting is any better because of what I mentioned above. -Matt _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Unable to open license.properties
Hmmm, well the JVM path can only be inserted with a / in the name via the IDE otherwise it will fail.strange _ From: Kev McCabe [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:42 To: CF-Talk Subject: RE: Unable to open license.properties The only other thing that may cause this is the \ / in the error may give a clue to why it can't open it. HTH _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:23 To: CF-Talk Subject: RE: Unable to open license.properties Hi Kevin, I am suing Sun Java 1.4.2_04.CF starts AOK so I cant see how it's a problem with the path setting otherwise JRun wouldn't start!I have read that this message can be ignored as its built into CF/JRun but I need to clarify. Thanks Neil From: Kev McCabe [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:21 To: CF-Talk Subject: RE: Unable to open license.properties Make sure that there are no spaced in the Path to the JVM What JVM are you using? _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 13:57 To: CF-Talk Subject: Unable to open license.properties I am getting an error in the logs ofWarning Unable to open D:\CFusionMX\runtime/lib/license.properties.I have recently upgraded our JVM which is installed on D: and so is CFMX. Any one know where the setting/path is to ensure that this error is stopped? Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Help with accessing PDF files in DB
Here is the open file function...and this doesn't work either a href=""> #htmleditformat(qGetReportList.tFilename)#/a SCRIPT LANGUAGE=_javascript_ TYPE=text/_javascript_ !-- function openFile(URL) { leftpos = screen.width - 560 toppos = 20 open_window = window.open(URL,file,width=510,height=310,resizable=1,menubar=1,toolbar=1 ,screenX=+leftpos+,screenY=+toppos+,scrollbars=1,left=+leftpos+,top=+ toppos+); } function doDelete(URL1, URL2) { if(confirm(Do you want to download this file?)) { openFile2(URL2); } else { if(confirm(Delete file?)) { window.location=URL1; } } } function openFile2(URL) { leftpos = screen.width - 560 toppos = 20 open_window = window.open(URL,file,width=400,height=200); } function openProcWin(n,msg) { leftpos = screen.width - (screen.width*.6) toppos = screen.height - (screen.height*.75) ProcWin = window.open(_ProcessingRequest.cfm?PassedURL= + n + RequestName= + msg,ProcWin,width=325,height=150,resizable=0,menubar=0,toolbar=0,screenX= +leftpos+,screenY=+toppos+,scrollbars=0,left=+leftpos+,top=+toppos+ ); } //-- /SCRIPT I can't really say what is going wrong, as the openFile function is not in your code. Why don't you just put the url in the href and add target=_blank to see what happens. If you try to put the generated link directly in the browser, does it work? Pascal What is the best way to display a list of PDFs and allow a user to click on the link and open the PDF? Here is the current code: a href="" openFile('#variables.sponsorreports_url#liability/#htmleditformat(qGetReport List.tFilename)#')#htmleditformat(qGetReportList.tFilename)#/a And it doesn't work. I get a page not found error... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Regular Expression and HTML
It works, thank you very much. Jean-Marc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: upload a file explanation
Thansk massimo.That validates my sanity (as far as this code goes). I'll keep giving it and the surrounding page a look. Ah! Sorry, instead of reading the whole code I focused my attention on the cfif blocks that checks the HTTP headers and forget the rest :-) Yes, the code you posted doesn't makes sense, since the check is performed after cffile Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Regular Expression and HTML
It works, thank you. Jean-Marc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Regular Expression and HTML
On mx: regexp = (?!/?(input|textarea|select|option)\b).*?; newtxt = REReplaceNoCase(txt,regexp,,all); -Original Message- From: jean-marc bottin [mailto:[EMAIL PROTECTED] Sent: donderdag 3 juni 2004 16:06 To: CF-Talk Subject: Re: Regular _expression_ and HTML It works, thank you very much. Jean-Marc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Help with accessing PDF files in DB
What is the url to the directory where the pdf is located? Looks like it is missing!! a href=""> target=_blank#htmleditformat(qGetReportList.tFilename)#/a -Original Message- From: Monique Boea [mailto:[EMAIL PROTECTED] Sent: donderdag 3 juni 2004 16:01 To: CF-Talk Subject: Help with accessing PDF files in DB Here is the open file function...and this doesn't work either a href=""> #htmleditformat(qGetReportList.tFilename)#/a [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Fwd (didn't seem to go through): eclipse install
-Matt Begin forwarded message: From: Matt Liotta [EMAIL PROTECTED] Date: June 2, 2004 10:01:15 PM EDT To: [EMAIL PROTECTED] Subject: Re: eclipse install He3 is built on top of Eclipse 3, which hasn't been released yet. However, I am happy to report that we have kept close tabs on the Eclipse tree and will be going into CD production with Eclipse 3RC1. Eclipse 3 will likely be released sometime in July, which will be before He3 final is ready. -Matt On Jun 2, 2004, at 9:13 PM, Howard Fore wrote: What version of Eclipse will He3 require? -- Howard Fore, [EMAIL PROTECTED] On Jun 2, 2004, at 5:52 PM, Matt Liotta wrote: On a side note, the He3 beta goes into CD production this Friday for CFUN-04. I expect people to have any easy time installing it. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: He3 community input (undo after closing file)
On a side note you can download cfeclipse right now. http://cfeclipse.tigris.org On Thu, 2004-06-03 at 06:54, Matt Liotta wrote: Eclipse already has built-in support for that. Additionally, Eclipse has built-in support for retaining differences in files across saves. You could even several weeks later compare the differences between the current file and saved version from some time ago. This is in addition to any capabilities your source code control system has. -Matt On Jun 3, 2004, at 8:41 AM, Steve Nelson wrote: On another note, I'd love a feature that lets me undo after closing a document, even if I closed the file 3 weeks ago. Basically just write the undo commands to disk. I have plenty of disk space, so I honestly don't care how much space this would take up. Steve Nelson _ From: Steve Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 7:42 AM To: CF-Talk Subject: RE: He3 community input (custom tag paths/mappings) That's not really what I'm thinking. My thought is to point the IDE to a single url (per development server) that returns stuff like this (in some xml format): Mappings: / = d:\inetpub\wwwroot /funkychicken = d:\inetpub\wwwroot\iama\funkychicken Tags: cf_chickendance = d:\inetpub\wwwroot\iama\funkychicken\chickendance.cfm This information could easily be determined by CF and would work just as fine on a 127.0.0.1 IP as it would a public IP. If the information is changed in the cf server, it would automatically reflect here. It could check the server once when the IDE is loading up then cache it like you're saying.This clearly doesn't solve everything, but it could be a start. If you can make this setup automated, that would be preferable. What it doesn't solve are things like dynamic includes, such as: cfinclude template=#funkychicken# To do that you either need to actually run the template or create a CFML engine. Steve _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 10:09 PM To: CF-Talk Subject: Re: He3 community input (custom tag paths/mappings) How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. That would require that each project know what server to connect to since a developer may want to have different projects deploy to different servers. Further, it would require that the IDE be able to connect to the server during development, which would be annoying on a plane for example. Although, that could probably be solved with some sort of caching/synchronization routine. I certainly can see that it would be annoying to setup project after project with the same settings. However, I am not sure what you are suggesting is any better because of what I mentioned above. -Matt _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
ImageMagick
Has anyone tried or is currently using the ImageMagick tag that was created by Alagad? If so I am trying to set it up and it is not working. I could use some help. Thanks Chad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Unable to open license.properties
One area to look at is in D:\CFusionMX\runtime\bin\jvm.config Have at look at java.home this could shed some light on it for you. I wouldn't use the CF Admin to edit the JVM as I've known this to cuase issues to hand edit it. HTH _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: ImageMagick
Yeah, Same thing happened to me. So I just used a straight cfexecute on the ImageMagick exe file with appropriate timeout attributes. Speaking of which, what are the problems (performance/otherwise) with using cfexecute like that? George At 10:22 AM 6/3/2004, chad wrote: Has anyone tried or is currently using the ImageMagick tag that was created by Alagad? If so I am trying to set it up and it is not working. I could use some help. Thanks Chad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Base 64 encoding hexadecimal string
I need to hash a string using sha-1 and then base64 encode the result. This is required to interoperate with another agency who's using java to do the same. We're hashing correctly and getting a hexadecimal string back (need hex since may contain non-ascii characters). However, we can't feed the hash result in to the tobase64 function because it interprets the hexadecimal string as an ascii string. This means the 160 bit hash/40 length hexadecimal string is interpreted by the tobase64 function to be a 320 bit string. The encoding therefore doesn't result in a string 28 characters long (as it should be), but 56. Is there a CF tag that can properly base64 encode a hexadecimal string? Our other alternative is to use java, which we can do, but I wanted to see if there was a CF way first. Thanks, Bob [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Regular Expression and HTML
Even better, wouaw! Thanks, Jean-Marc -Message d'origine- De : Pascal Peters [mailto:[EMAIL PROTECTED] Envoy : jeudi 3 juin 2004 16:08 : CF-Talk Objet : RE: Regular _expression_ and HTML On mx: regexp = (?!/?(input|textarea|select|option)\b).*?; newtxt = REReplaceNoCase(txt,regexp,,all); -Original Message- From: jean-marc bottin [mailto:[EMAIL PROTECTED] Sent: donderdag 3 juni 2004 16:06 To: CF-Talk Subject: Re: Regular _expression_ and HTML It works, thank you very much. Jean-Marc _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Replication/Synchronization across servers not on the same network
I'm facing an upcoming project that will have the following scenario and I'm trying to figure out what the best solution would be: 2 servers in separate locations with the same website actively operating on both servers.The website allows for uploads of files and images to the server.The files on each server need to be updated (at least daily, if not faster) from the files on the other server that have been changed.The site structure cannot be changed and we can't just use one of the servers as the file server.Both actually have to have copies of the files. My thoughts are as follows and any other suggestions or pros and cons on each option would be great. 1. Use CFFTP to move new files from the server that the change is made on to the other server at the time the change is made. In my mind the downsides are the extra network traffic at possible peak times and how to handle files if the upload to the first server works but for some reason the upload to server 2 fails. 2. Use an FTP program that will allow scheduling and synchronization to do the synchronization nightly.This would take the load off of CF and run it at a time when the traffic should be lower.It should also be easy to tell if it fails and work from there. Please let me know your thoughts, especially if you have experience in this area. John Burns [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: ImageMagick
George, What does you CF Tag look like? Mine is below cf_magicktag inputtype=file inputfile=#ExpandPath('image1.jpg')# timeout=100 action="" outputType=file outputfile=#ExpandPath('outputimage1.jpg')# debug=Yes cf_magickaction action="" width=300 height=200 /cf_magicktag Then in the MagickTag.cfm file has this CF_SaveContent variable=commandResults !--- this CFoutput was placed in here to fix a problem where when using cfsetting enablecfoutputonly=Yes the CFexecute below returned no results. --- CFoutput !--- execute the command --- !--- CFMX dosn't like having quotation marks in the arguments attribute --- cfexecute name=c:\Program Files\ImageMagick-5.5.2-Q8\convert.exe arguments=#replace(actionString, '', '', All)# timeout=100 /cfexecute /CFoutput /CF_SaveContent - Original Message - From: George Abraham To: CF-Talk Sent: Thursday, June 03, 2004 10:27 AM Subject: Re: ImageMagick Yeah, Same thing happened to me. So I just used a straight cfexecute on the ImageMagick exe file with appropriate timeout attributes. Speaking of which, what are the problems (performance/otherwise) with using cfexecute like that? George At 10:22 AM 6/3/2004, chad wrote: Has anyone tried or is currently using the ImageMagick tag that was created by Alagad? If so I am trying to set it up and it is not working. I could use some help. Thanks Chad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Replication/Synchronization across servers not on the same network
At my last job a pseudo-coworker created a mirroring system written in PHP that was a custom HTTP daemon client designed to distribute files across multiple servers. The core script was used to request a file download.You'd have multiple servers, e.g. server1, server2 and server3.If Joe Bloggs requested file23.txt from server2 but it was not present on that server, the script checked each of the other servers to see if it was there first.I don't remember specifics (its been a busy few months), but I think if the file was present on another server it would pipe that URL to the user and also download the file to server2 so that future requests would sent the local file.It also had a central download location that picked the nearest mirror to you (hard-coded) rather than requiring you to remember to use ftp.us25.mirror.mycompany.com. That might not be exactly what you want, but it might give you some ideas. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Replication/Synchronization across servers not on the same network
On Thursday 03 Jun 2004 15:30 pm, Burns, John D wrote: 2. Use an FTP program that will allow scheduling and synchronization to Unsurprisingly, a problem that has been solved many times before in the shape of rsync. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: SQL Enterprise Manager
I got developers that are restricted in my production database. They have simple SELECT, INSERT, DELETE, and UPDATE rights.They also only have the public role. I want to give them the ability to see jobs in Enterprise Manager because right now they can not see them. What role or setting do I need to give them to view this if it is even capabale. I cn not give them DB_OWNER. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Mach II and whitespace
I'm starting to evaluate Mach II as a framework.It throws a LOT of whitespace at the top of docs.Is there a version available that does a better job of managing whitespace, or are there specific techniques that people use to manage whitespace?I know it sounds pretty anally-retentive, but after spending 2+ years of wrestling with whitespace in Spectra I don't feel like having to jump through hoops to regain downloaded cfm template size. Thanks Pete [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: ImageMagick
Like I said, I did not use the cfMagick tag at all. All I did was use the cfexecute tag cfexecute name=c:\Program Files\ImageMagick-5.5.2-Q8\convert.exe arguments=#replace(actionString, '', '', All)# timeout=100 This is after all what the cfMagick tag does in the end. Read the ImageMagick documentation if you need to know more about the types of arguments to pass. George At 10:39 AM 6/3/2004, chad wrote: George, What does you CF Tag look like? Mine is below cf_magicktag inputtype=file inputfile=#ExpandPath('image1.jpg')# timeout=100 action=""> outputType=file outputfile=#ExpandPath('outputimage1.jpg')# debug=Yes cf_magickaction action="" width=300 height=200 /cf_magicktag Then in the MagickTag.cfm file has this CF_SaveContent variable=commandResults !--- this CFoutput was placed in here to fix a problem where when using cfsetting enablecfoutputonly=Yes the CFexecute below returned no results. --- CFoutput !--- execute the command --- !--- CFMX dosn't like having quotation marks in the arguments attribute --- cfexecute name=c:\Program Files\ImageMagick-5.5.2-Q8\convert.exe arguments=#replace(actionString, '', '', All)# timeout=100 /cfexecute /CFoutput /CF_SaveContent - Original Message - From: George Abraham To: CF-Talk Sent: Thursday, June 03, 2004 10:27 AM Subject: Re: ImageMagick Yeah, Same thing happened to me. So I just used a straight cfexecute on the ImageMagick exe file with appropriate timeout attributes. Speaking of which, what are the problems (performance/otherwise) with using cfexecute like that? George At 10:22 AM 6/3/2004, chad wrote: Has anyone tried or is currently using the ImageMagick tag that was created by Alagad? If so I am trying to set it up and it is not working. I could use some help. Thanks Chad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Session Variables Suddenly Stopped Working
I inherited a site that uses session variables to track users' paths through the site and to handle the Admin login section.The code worked fine until yesterday when it suddenly stopped working.The only information I get is Processing Error.Does anyone have any idea why it suddenly stopped working?One of the admins was able to log in as recently as 6/1. Here's the code in the Application.cfm file: cfapplication name=solarcenter sessionmanagement=Yes clientmanagement=Yes applicationtimeout=#createTimespan(0,0,90,0)# sessiontimeout=#CreateTimespan(0,0,90,0)# cflock name=#APPLICATION.applicationName# type=Exclusive timeout=20 throwontimeout=Yes !--- If Session-Tracker does not exist, generate it --- cfparam name=APPLICATION.SessionTracker default=#StructNew()# !--- Log current user --- cfscript sUserInfo = StructNew(); sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.CFID=#session.cfid#; sUserInfo.Token=#session.cftoken#; sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.Time=#Now()#; sUserInfo.Template=#CGI.CF_Template_Path#; ID = #session.cfid##session.cftoken#; /cfscript cfset dummy = StructInsert(APPLICATION.SessionTracker, ID, sUserInfo, true) /cflock [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mach II and whitespace
The best way is to use cfcontent reset=true / in your final display view. So if you have a view called main.cfm that does all your final displaying, at the top of that file you would use the cfcontent tag. It works great. You can also check out Phil Cruz's site at http://www.mach-ii.info http://www.mach-ii.info/for some newbie FAQ's. Ben -Original Message- From: Pete Ruckelshaus - CFList [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:50 AM To: CF-Talk Subject: Mach II and whitespace I'm starting to evaluate Mach II as a framework.It throws a LOT of whitespace at the top of docs.Is there a version available that does a better job of managing whitespace, or are there specific techniques that people use to manage whitespace?I know it sounds pretty anally-retentive, but after spending 2+ years of wrestling with whitespace in Spectra I don't feel like having to jump through hoops to regain downloaded cfm template size. Thanks Pete [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: caching..
I have had similar problems while developing an application on MX 6. I ended up finding where the generated .class files are stored and would delete them manually when this occurred. It was very intermittent and nothing I could get a handle on. Doug techmike wrote: Well just an update..I got home today and tried to run the non-existant template from the server itself as well as two other computers on my lan. Sure enough it worked.. So I create a empty file with the filename of the template, call it, delete it and try calling it again to get the trusty old 404 error I had expected.. Weird eh? -Mike -Original Message- From: techmike [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Date: Wed, 02 Jun 2004 13:17:33 -0400 Subject: RE: caching.. I'm using one of the nightly builds of Mozilla Firefox but it does the same in IE 6 also. Works with whatever varibles, in fact the template accesses a database and I've even queried the database thru the template..but the template doesnt exist..:) -Mike -Original Message- From: Micha Schopman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Date: Wed, 2 Jun 2004 18:22:14 +0200 Subject: RE: caching.. Mike, What are the caching settings in your browser? If you do not load very much images dynamically(because of a MSIE bug) you should consider changing it to every visit to the page :) If you have trusted cache off, then ColdFusion is not the one who is giving you troubles. Also try to call the template with different url variables. Just dummy variables. Like index.cfm?a=b _ From: techmike [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 5:06 PM To: CF-Talk Subject: caching.. Shouldnt setting the template cache size in administraor to 0 prevent caching? This server is just for my testing, and I don't want anything cached. I deleted a file, but coldfusion seems to of cached it because it still displays even though the file doesnt exist! -Mike _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Replication/Synchronization across servers not on the same network
Tom, Is that basically FTP or is it some other protocol?Is it a *nix only app or will it work on Windows? John Burns -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:41 AM To: CF-Talk Subject: Re: Replication/Synchronization across servers not on the same network On Thursday 03 Jun 2004 15:30 pm, Burns, John D wrote: 2. Use an FTP program that will allow scheduling and synchronization to Unsurprisingly, a problem that has been solved many times before in the shape of rsync. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mach II and whitespace
At 10:49 AM 6/3/2004, you wrote: I'm starting to evaluate Mach II as a framework.It throws a LOT of whitespace at the top of docs.Is there a version available that does a better job of managing whitespace, or are there specific techniques that people use to manage whitespace?I know it sounds pretty anally-retentive, but after spending 2+ years of wrestling with whitespace in Spectra I don't feel like having to jump through hoops to regain downloaded cfm template size. Could the problem be in your custom model components, perhaps? I would assume that since the framework outputs nothing by itself, the authors would have taken the steps to turn off whitespace output everywhere. There's always FuseBox .qry and .dsp files! ;-) -- Alex [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Session Variables Suddenly Stopped Working
I played with some of the error handling and was able to get a little more information. The message says Application.applicationName is in a scope that contains data shared across threads and cannot be accessed without an active lock. I know very little about session variables and locking.Does that mean the problem is with the lock itself? From: KeAnne Hoeg [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Session Variables Suddenly Stopped Working Date: Thu, 03 Jun 2004 10:45:57 -0400 I inherited a site that uses session variables to track users' paths through the site and to handle the Admin login section.The code worked fine until yesterday when it suddenly stopped working.The only information I get is Processing Error.Does anyone have any idea why it suddenly stopped working?One of the admins was able to log in as recently as 6/1. Here's the code in the Application.cfm file: cfapplication name=solarcenter sessionmanagement=Yes clientmanagement=Yes applicationtimeout=#createTimespan(0,0,90,0)# sessiontimeout=#CreateTimespan(0,0,90,0)# cflock name=#APPLICATION.applicationName# type=Exclusive timeout=20 throwontimeout=Yes !--- If Session-Tracker does not exist, generate it --- cfparam name=APPLICATION.SessionTracker default=#StructNew()# !--- Log current user --- cfscript sUserInfo = StructNew(); sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.CFID=#session.cfid#; sUserInfo.Token=#session.cftoken#; sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.Time=#Now()#; sUserInfo.Template=#CGI.CF_Template_Path#; ID = #session.cfid##session.cftoken#; /cfscript cfset dummy = StructInsert(APPLICATION.SessionTracker, ID, sUserInfo, true) /cflock [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Unable to open license.properties
Check the permissions on the file. Doug Robertson-Ravo, Neil (RX) wrote: I am getting an error in the logs ofWarning Unable to open D:\CFusionMX\runtime/lib/license.properties.I have recently upgraded our JVM which is installed on D: and so is CFMX. Any one know where the setting/path is to ensure that this error is stopped? Neil This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, 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 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mach II and whitespace
Whitespace has been an issue all along. They fixed it somewhat in the latest release but the framework still has a lot of whitespace. Ben -Original Message- From: Alexander Sherwood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:04 AM To: CF-Talk Subject: Re: Mach II and whitespace At 10:49 AM 6/3/2004, you wrote: I'm starting to evaluate Mach II as a framework.It throws a LOT of whitespace at the top of docs.Is there a version available that does a better job of managing whitespace, or are there specific techniques that people use to manage whitespace?I know it sounds pretty anally-retentive, but after spending 2+ years of wrestling with whitespace in Spectra I don't feel like having to jump through hoops to regain downloaded cfm template size. Could the problem be in your custom model components, perhaps? I would assume that since the framework outputs nothing by itself, the authors would have taken the steps to turn off whitespace output everywhere. There's always FuseBox .qry and .dsp files! ;-) -- Alex [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Russian Charset 1251 - MX and SQL server
Hello All, I have searched over and over again, but cannot get my problem solved.Any insight would help greatly. Currently, I have data in a SQL Server DB that has data in the windows-1251 charset. I have the output working properly.My problem lies in the insertion of data using an admin.When the form posts back, the form data is in UTF-8 encoding.While i can change the db to nvarchar and use UTF-8 and solve all problems, my client wants me to use the 1251 charset.After poking around the net, almost all russian sites use 1251 and not utf-8, so i understand the concern. I tried using the setEncoding of the form scope to 1251, but the results are incorrect.It looks like it is converting the UTF to 1251 or something. I have played with all the permutations of cfprocessingdirective cfcontent etc.When i can get the CF to insert into the DB properly, the display is screwed up.When i get the display working, there are UTF chars in the DB. Another test i tried is by using the same source code for a CFM file and an HTML file. The html renders properly, but the CFM does not.if you view the source, they are still exactly the same.Looking at the encoding of the page in IE, the cfm version is set at UTF-8.When i switch to cyrillic in the IE options, i get a completely different output than the HTML version.This is fixed if i add the cfcontent type=text/htmlIf i add the charset attribute, it doesn't work. Now, the problem is that i cannot get the display, database insertion and FORM encoding all working at the same time and using the same charset(1251) TIA! - j james curran technical director nylon technology mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 212-691-1134 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Session Variables Suddenly Stopped Working
Sounds like the server admins just turned on strict locking validation. Have you talked to them? - Original Message - From: KeAnne Hoeg The message says Application.applicationName is in a scope that contains data shared across threads and cannot be accessed without an active lock. I know very little about session variables and locking.Does that mean the problem is with the lock itself? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Unable to open license.properties
Nope, its not in therethe weird thing is that its all working as an Enterprise Server (the .properties file is used to determine this). This must be something inbuilt to JRun N _ From: Kev McCabe [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 15:25 To: CF-Talk Subject: RE: Unable to open license.properties One area to look at is in D:\CFusionMX\runtime\bin\jvm.config Have at look at java.home this could shed some light on it for you. I wouldn't use the CF Admin to edit the JVM as I've known this to cuase issues to hand edit it. HTH _ Mr Kev McCabe Senior ETV Developer, Interactive Technology Development Application Development Team British Sky Broadcasting First Floor North East, West Cross House Grant Way Isleworth Middlesex TW7 5QD Email:[EMAIL PROTECTED] Web: http://www.sky.com http://www.sky.com/ Tel: +44 (0) 20 7941 5329 Fax: +44 (0) 20 7941 5243 _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Replication/Synchronization across servers not on the same network
On Thursday 03 Jun 2004 16:04 pm, Burns, John D wrote: Is that basically FTP or is it some other protocol?Is it a *nix only ISTR it runs using rsh by default, but supports just about anyother protocol too. app or will it work on Windows? Started of as *nix, but these days things run fairly well anywhere. CygWin is just one way of getting a proper set of command line tools (mostly GNU ones) onto a Win32 machine, for instance. It's occured to me that rsync is propbably over the top. You just need to find all the files older than $lastRunTime and copy those to each of the other hosts. You could do that with just find (using -exec ftpput, for instance) easily enough. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Session Variables Suddenly Stopped Working
You may want to see if the CF Admin set strict locking validation otherwise; I don't really see why you would throw that error off-hand (assuming you are on CF5?) however I would suggest some changes: cfapplication name=solarcenter sessionmanagement=Yes clientmanagement=Yes applicationtimeout=#createTimespan(0,0,90,0)# sessiontimeout=#CreateTimespan(0,0,90,0)# Move the cfscript out of the application lock since you are dealing only with session variables and create a session lock around them cflock timeout=5 throwontimeout=no type=readonly scope=session !--- Log current user --- cfscript sUserInfo = StructNew(); sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.CFID=#session.cfid#; sUserInfo.Token=#session.cftoken#; sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.Time=#Now()#; sUserInfo.Template=#CGI.CF_Template_Path#; ID = #session.cfid##session.cftoken#; /cfscript /cflock Try changing from using the variable name #APPLICATION.applicationName# to just the hardcoded name solarcenter and reduce the timeout value: cflock name=solarcenter type=Exclusive timeout=5 throwontimeout=Yes !--- If Session-Tracker does not exist, generate it --- cfparam name=APPLICATION.SessionTracker default=#StructNew()# cfset dummy = StructInsert(APPLICATION.SessionTracker, ID, sUserInfo, true) /cflock Of course there is always the 'When in doubt - stop/start the CF service' :-) Steve -Original Message- From: KeAnne Hoeg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:14 AM To: CF-Talk Subject: RE: Session Variables Suddenly Stopped Working I played with some of the error handling and was able to get a little more information. The message says Application.applicationName is in a scope that contains data shared across threads and cannot be accessed without an active lock. I know very little about session variables and locking.Does that mean the problem is with the lock itself? From: KeAnne Hoeg [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Session Variables Suddenly Stopped Working Date: Thu, 03 Jun 2004 10:45:57 -0400 I inherited a site that uses session variables to track users' paths through the site and to handle the Admin login section.The code worked fine until yesterday when it suddenly stopped working.The only information I get is Processing Error.Does anyone have any idea why it suddenly stopped working?One of the admins was able to log in as recently as 6/1. Here's the code in the Application.cfm file: cfapplication name=solarcenter sessionmanagement=Yes clientmanagement=Yes applicationtimeout=#createTimespan(0,0,90,0)# sessiontimeout=#CreateTimespan(0,0,90,0)# cflock name=#APPLICATION.applicationName# type=Exclusive timeout=20 throwontimeout=Yes !--- If Session-Tracker does not exist, generate it --- cfparam name=APPLICATION.SessionTracker default=#StructNew()# !--- Log current user --- cfscript sUserInfo = StructNew(); sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.CFID=#session.cfid#; sUserInfo.Token=#session.cftoken#; sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.Time=#Now()#; sUserInfo.Template=#CGI.CF_Template_Path#; ID = #session.cfid##session.cftoken#; /cfscript cfset dummy = StructInsert(APPLICATION.SessionTracker, ID, sUserInfo, true) /cflock _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Session Variables Suddenly Stopped Working
Sounds like a change was made from the CF Admin -- a change that now requires you to lock shared scopes. Locking Server/Application/Session scope Full Checking would do this, I think. If you have to live with this global change in the CF Administrator (shared host, or something), then lock all of your application/session scope reads with read-only locks and lock all of your application/session scope writes with exclusive locks. Same with server scoped vars, though those are fairly unusual. Jamie On Thu, 03 Jun 2004 15:13:56 +, in cf-talk you wrote: I played with some of the error handling and was able to get a little more information. The message says Application.applicationName is in a scope that contains data shared across threads and cannot be accessed without an active lock. I know very little about session variables and locking.Does that mean the problem is with the lock itself? From: KeAnne Hoeg [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Session Variables Suddenly Stopped Working Date: Thu, 03 Jun 2004 10:45:57 -0400 I inherited a site that uses session variables to track users' paths through the site and to handle the Admin login section.The code worked fine until yesterday when it suddenly stopped working.The only information I get is Processing Error.Does anyone have any idea why it suddenly stopped working?One of the admins was able to log in as recently as 6/1. Here's the code in the Application.cfm file: cfapplication name=solarcenter sessionmanagement=Yes clientmanagement=Yes applicationtimeout=#createTimespan(0,0,90,0)# sessiontimeout=#CreateTimespan(0,0,90,0)# cflock name=#APPLICATION.applicationName# type=Exclusive timeout=20 throwontimeout=Yes !--- If Session-Tracker does not exist, generate it --- cfparam name=APPLICATION.SessionTracker default=#StructNew()# !--- Log current user --- cfscript sUserInfo = StructNew(); sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.CFID=#session.cfid#; sUserInfo.Token=#session.cftoken#; sUserInfo.Address=#CGI.REMOTE_ADDR#; sUserInfo.Time=#Now()#; sUserInfo.Template=#CGI.CF_Template_Path#; ID = #session.cfid##session.cftoken#; /cfscript cfset dummy = StructInsert(APPLICATION.SessionTracker, ID, sUserInfo, true) /cflock [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SUM/Convert string numeric data
And Grind? Cute...thanks for the help. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX and non-HTML Paginated Report Generation
Hi Guy, We got back late Tuesday night.All went pretty well. Got about 1256 email messages. Just finished downloading.Haven't had time to read any but thanks for all the appropriate email.I expect to be working on the web reporting issue this month, maybe even in the next week or so. You know that I did buy that book on Crystal Reports. Good to be back. Paige - Original Message - From: Arden Weiss To: CF-Talk Sent: Thursday, May 20, 2004 11:18 AM Subject: CFMX and non-HTML Paginated Report Generation Does Crystal Reports play nice with Cold Fusion these days?? If so, exactly what components/versions of Crystal are required to be able to generate reports in PDF file format? Also, what report generation products do you use and like -- instead of Crystal Reports -- to generate paginated reports via CFMX ?? Thanks for any and all advice... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SUM/Convert string numeric data
Some of us can't read every mail message that comes through the system. This was a pun to get you to mail your message again. Mail the message again and I promise I will try and help! hammerin hankster wrote: And Grind? Cute...thanks for the help. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Session Variables Suddenly Stopped Working
I did talk to the server admin, and she hadn't changed any of the settings recently, but when I checked the CF Administrator on our test site (which works), I noticed that the locking information was set differently, so I changed the lock settings in the production CF Administrator from Full Checking to No Automatic Checking, and that cleared up the problem because the code uses the name attribute instead of the scope attribute. What I find odd, however, is that this code and the production CF Admin server settings have not changed in 2 years, meaning that the production environment has been set to Full Checking for a long time, so why did it suddenly throw the error yesterday? From: Deanna Schneider [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: Session Variables Suddenly Stopped Working Date: Thu, 3 Jun 2004 10:36:25 -0500 Sounds like the server admins just turned on strict locking validation. Have you talked to them? - Original Message - From: KeAnne Hoeg The message says Application.applicationName is in a scope that contains data shared across threads and cannot be accessed without an active lock. I know very little about session variables and locking.Does that mean the problem is with the lock itself? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Controling spider access
My company has an affiliate program set up with other webmasters.The webmasters put a banner on their site that links to ours with a unique referral ID.The problem we are having is that several search engines are spidering these other sites and then following the links from them to our site.This way, it looks like the web site is sending traffic to our site. This is a problem.What we would like to do is catch this type of activity and keep it from being recorded in the database for that web site.We've thought up some clunky solutions, but I thought I would ask in case someone knows of an elegant way to handle this. Todd [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Replication/Synchronization across servers not on the same network
on a windows server?checkout FRSbuilt into windows servers, used it here before, worked fine. Doug -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:31 AM To: CF-Talk Subject: Replication/Synchronization across servers not on the same network I'm facing an upcoming project that will have the following scenario and I'm trying to figure out what the best solution would be: 2 servers in separate locations with the same website actively operating on both servers.The website allows for uploads of files and images to the server.The files on each server need to be updated (at least daily, if not faster) from the files on the other server that have been changed.The site structure cannot be changed and we can't just use one of the servers as the file server.Both actually have to have copies of the files. My thoughts are as follows and any other suggestions or pros and cons on each option would be great. 1. Use CFFTP to move new files from the server that the change is made on to the other server at the time the change is made. In my mind the downsides are the extra network traffic at possible peak times and how to handle files if the upload to the first server works but for some reason the upload to server 2 fails. 2. Use an FTP program that will allow scheduling and synchronization to do the synchronization nightly.This would take the load off of CF and run it at a time when the traffic should be lower.It should also be easy to tell if it fails and work from there. Please let me know your thoughts, especially if you have experience in this area. John Burns _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfinclude outside of site document root?
Is it possible to cfinclude a file from outside of a site's configured document root (in IIS)?At work we have about six different sites between intranet and internet sites and many of them share some basic information (company name, address, some standard URLs, etc).Is this possible?Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
path to uploaded file
I have my file uploaded to a directory that is two levels up from my upload cfm and I'm trying to get it's path through: cfset CurrentDir=GetDirectoryFromPath(ExpandPath(../../images/)) cfset dest = /#CurrentDir#calendar_uploads/ cfset image_path = '#dest##CFFILE.serverFileName#.#CFFILE.ServerFileExt#' This is giving me a path to my webhosting environment, rather than a path that I can use in the url. It's giving me: http://hhp.umd.edu/afs/glue.umd.edu/department/oit/eis/webhosting/hhp/htdocs/HHPv1/images/calendar_uploadsa4.jpg but what I really need to view it is: http://hhp.umd.edu/HHPv1/images/calendar_uploads/a4.jpg which is the domain and everything past htdocs.How do I query for it's viewable path rather than it's development path? thanks. -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD20742-2611 301-405-2545 Phone www.phi.umd.edu [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Russian Charset 1251 - MX and SQL server
welcome to the nightmare of codepage encoding. problems, my client wants me to use the 1251 charset.After poking around the net, almost all russian sites use 1251 and not utf-8, so i understand the concern. that's hardly true these days. but how do you know windows-1251 was used to enter the data? how exactly was the data entered? web forms? somebody key it via enterprise manager? i don't know of any russian encodings but the last time i looked there were at least 5 cyrillic encodings (no idea but i'll guess these are not equivalent since there are so many of them). which sort of rivals the CJK locales' encodings. without looking at the rest of your issues i suggest cycling thru those until you find the one that was used with the data and then work from that. i'm also fairly certain that if an N datatype wasn't used you're probably looking at some kind of mutation. just use unicode© [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFC example
I need a good example of an object CFC. One with get and set methods, etc. Anyone? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
need to edit the Text File
I have a quick quesiton I have a text file which can have upto 10 lines something like below. The | is the delimeter. Title:|Story|Link|Target What I need to do is Have to edit those lines as well as insert the new lines at the bottom. How this can be done through CFFILE. (I think thats the only way) Thanks Asim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Russian Charset 1251 - MX and SQL server
Jim, I have a commercial tag that does character set conversions, I'm willing to let you have a free trial with it if you wish. Mail me off-list to arrange me sending you a copy if you want to give it a try. Yours Paul [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
edit the text file.
I have a quick quesiton I have a text file which can have upto 10 lines something like below. the | is the delimeter. Title:|Story|Link|Target What I need to do is Have to edit those lines as well as insert the new lines at the bottom. How this can be done through CFFILE. (I think thats the only way) Thanks [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfinclude outside of site document root?
Yep, use a cf mapping. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Controling spider access
You could use the META tag for robots: meta name=robots content=noindex,nofollow I'm sure there are other solutions, but this might get you going in the right direction. -Dain [EMAIL PROTECTED] wrote: My company has an affiliate program set up with other webmasters.The webmasters put a banner on their site that links to ours with a unique referral ID.The problem we are having is that several search engines are spidering these other sites and then following the links from them to our site.This way, it looks like the web site is sending traffic to our site. This is a problem.What we would like to do is catch this type of activity and keep it from being recorded in the database for that web site.We've thought up some clunky solutions, but I thought I would ask in case someone knows of an elegant way to handle this. Todd [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Replication/Synchronization across servers not on the same network
Replication/Synchronization across servers not on the same network Coming in late as usual. http://www.foldershare.com/ I cannot vouch for this... not sure about the security, reliability etc, but it's on my list of things to check out! -- dc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: Netegrity/Siteminder
Does anyone know why when siteminder intercepts a URL that it would be putting a $SM$ after the target= These extra characters $SM$ are causing the template not to be found. I can remove those characters from the URL and hits the site fine. TARGET=$SM$http%3a%2f%2fmy%2eurl%2eintranet%2ecom%2fmy%2ffolder%2findex%2ecfm%3ffuseaction%3dMyHome Thanks, Casey Cook [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Session Variables Suddenly Stopped Working
I did talk to the server admin, and she hadn't changed any of the settings recently, but when I checked the CF Administrator on our test site (which works), I noticed that the locking information was set differently, so I changed the lock settings in the production CF Administrator from Full Checking to No Automatic Checking, and that cleared up the problem because the code uses the name attribute instead of the scope attribute. What I find odd, however, is that this code and the production CF Admin server settings have not changed in 2 years, meaning that the production environment has been set to Full Checking for a long time, so why did it suddenly throw the error yesterday? KeAnne, I don't know the answer to your last question, but I'd like to make a recommendation, if I may, as to your current setup. The optimal setup with specific regard to your locking issue would be to enable the strict locking checkboxes in the CF Administrator in your *development* environment so as to force the developers to code better, and then disable the checkboxes in production. The enabling of the features results in a noticeable performance degradation, particularly under load. If you enable the options in your development environment, you force your team to code smarter and alleviate the need to for overhead in production. I use ColdFusion MX now, so I haven't had to worry about this in a while. But when I was on previous versions of CF, this approach resulted in noticeable benefits -- 1) your team codes smarter and more proactively, 2) your production site performance increases, and 3) proper locking will alleviate the chances of clashes and race conditions, which is why you're locking in the first place. Hope this helps. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: path to uploaded file
dont make it more complicated than it has too be cfset uploads=htdocs/HHPv1/images/calendar_uploads/ I have my file uploaded to a directory that is two levels up from my upload cfm and I'm trying to get it's path through: cfset CurrentDir=GetDirectoryFromPath(ExpandPath(../../images/)) cfset dest = /#CurrentDir#calendar_uploads/ cfset image_path = '#dest##CFFILE.serverFileName#.#CFFILE.ServerFileExt#' This is giving me a path to my webhosting environment, rather than a path that I can use in the url. It's giving me: http://hhp.umd.edu/afs/glue.umd.edu/department/oit/eis/webhosting/hhp/htdocs/HHPv1/images/calendar_uploadsa4.jpg but what I really need to view it is: http://hhp.umd.edu/HHPv1/images/calendar_uploads/a4.jpg which is the domain and everything past htdocs.How do I query for it's viewable path rather than it's development path? thanks. -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD20742-2611 301-405-2545 Phone www.phi.umd.edu [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Replication/Synchronization across servers not on the same network
Doug, Can you do FRS across machines that are not on the same network? John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:51 AM To: CF-Talk Subject: RE: Replication/Synchronization across servers not on the same network on a windows server?checkout FRSbuilt into windows servers, used it here before, worked fine. Doug -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:31 AM To: CF-Talk Subject: Replication/Synchronization across servers not on the same network I'm facing an upcoming project that will have the following scenario and I'm trying to figure out what the best solution would be: 2 servers in separate locations with the same website actively operating on both servers.The website allows for uploads of files and images to the server.The files on each server need to be updated (at least daily, if not faster) from the files on the other server that have been changed.The site structure cannot be changed and we can't just use one of the servers as the file server.Both actually have to have copies of the files. My thoughts are as follows and any other suggestions or pros and cons on each option would be great. 1. Use CFFTP to move new files from the server that the change is made on to the other server at the time the change is made. In my mind the downsides are the extra network traffic at possible peak times and how to handle files if the upload to the first server works but for some reason the upload to server 2 fails. 2. Use an FTP program that will allow scheduling and synchronization to do the synchronization nightly.This would take the load off of CF and run it at a time when the traffic should be lower.It should also be easy to tell if it fails and work from there. Please let me know your thoughts, especially if you have experience in this area. John Burns _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: need to edit the Text File
Try this: cffile action="" file=#expandpath(.)#\somefile.txt variable=myfile cfloop list=#myfile# delimiters=#chr(10)# index=line cfloop list=#line# delimiters=| index=column cfoutput#column#br/cfoutput /cfloop /cfloop Steve Nelson _ From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:22 PM To: CF-Talk Subject: need to edit the Text File I have a quick quesiton I have a text file which can have upto 10 lines something like below. The | is the delimeter. Title:|Story|Link|Target What I need to do is Have to edit those lines as well as insert the new lines at the bottom. How this can be done through CFFILE. (I think thats the only way) Thanks Asim _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: need to edit the Text File
I would say that the problem isn't editing the text file, but rather figuring out where to enter your new information and how to break what you have into structs, etc. You can read the original text file in without a problem using CFFILE. You might want to look at looping over the text using new lines as a delimiter to break each line up into a separate value within the struct. Then do a loop within that loop to break the line into separate values and store that within the struct.Once that is finished, just add and delete stuff from your struct and then write some code to output it in the format you want and write that to the file.You might choose to just use Arrays as well.Use one array for each field you have. John -Original Message- From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:22 PM To: CF-Talk Subject: need to edit the Text File I have a quick quesiton I have a text file which can have upto 10 lines something like below. The | is the delimeter. Title:|Story|Link|Target What I need to do is Have to edit those lines as well as insert the new lines at the bottom. How this can be done through CFFILE. (I think thats the only way) Thanks Asim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfinclude outside of site document root?
One way you can do it is to create a CF mapping (this is different from an IIS mapping) in the CF administrator. For example /myglobalfiles === d:\inetpub\globalfiles\ cfinclude template=/myglobalfiles/somefile.cfm Steve Nelson _ From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:00 PM To: CF-Talk Subject: cfinclude outside of site document root? Is it possible to cfinclude a file from outside of a site's configured document root (in IIS)?At work we have about six different sites between intranet and internet sites and many of them share some basic information (company name, address, some standard URLs, etc).Is this possible?Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Controling spider access
Most spiders have a specific cgi.user_agent could you check that and disregard those hits? Steve _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:54 AM To: CF-Talk Subject: Controling spider access My company has an affiliate program set up with other webmasters.The webmasters put a banner on their site that links to ours with a unique referral ID.The problem we are having is that several search engines are spidering these other sites and then following the links from them to our site.This way, it looks like the web site is sending traffic to our site. This is a problem.What we would like to do is catch this type of activity and keep it from being recorded in the database for that web site.We've thought up some clunky solutions, but I thought I would ask in case someone knows of an elegant way to handle this. Todd _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Session Variables Suddenly Stopped Working
Thanks for the suggestion, Dave!We'll give that a try. From: Dave Carabetta [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: Session Variables Suddenly Stopped Working Date: Thu, 03 Jun 2004 12:27:56 -0400 KeAnne, I don't know the answer to your last question, but I'd like to make a recommendation, if I may, as to your current setup. The optimal setup with specific regard to your locking issue would be to enable the strict locking checkboxes in the CF Administrator in your *development* environment so as to force the developers to code better, and then disable the checkboxes in production. The enabling of the features results in a noticeable performance degradation, particularly under load. If you enable the options in your development environment, you force your team to code smarter and alleviate the need to for overhead in production. I use ColdFusion MX now, so I haven't had to worry about this in a while. But when I was on previous versions of CF, this approach resulted in noticeable benefits -- 1) your team codes smarter and more proactively, 2) your production site performance increases, and 3) proper locking will alleviate the chances of clashes and race conditions, which is why you're locking in the first place. Hope this helps. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Controling spider access
One more way is if you have all your referral files in particular folder then you can protect using a robots.txt file. Here is an online tool you can use to do that http://www.instantposition.com/robots_txt_file_generator.cfm Thanks, Ketan _ From: Dain Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:14 PM To: CF-Talk Subject: Re: Controling spider access You could use the META tag for robots: meta name=robots content=noindex,nofollow I'm sure there are other solutions, but this might get you going in the right direction. -Dain [EMAIL PROTECTED] wrote: My company has an affiliate program set up with other webmasters.The webmasters put a banner on their site that links to ours with a unique referral ID.The problem we are having is that several search engines are spidering these other sites and then following the links from them to our site.This way, it looks like the web site is sending traffic to our site. This is a problem.What we would like to do is catch this type of activity and keep it from being recorded in the database for that web site.We've thought up some clunky solutions, but I thought I would ask in case someone knows of an elegant way to handle this. Todd _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Base 64 encoding hexadecimal string
I've only used the tobase64() function to encode image files into a string. It took a couple trys before I got it to work right. I'd recommend you first try and get CF to just encode the data, then decode it and make sure it's returning back to normal. If it does that and it still doesn't work with the other application, you're probably SOL. Here's some sample code that is working in one of my applications (I've stripped it down a bit). cffile action="" file=#expandpath(directory)#\#name# variable=filevariable cfset filedata=tobase64(filevariable) cfset binaryfile=tobinary(filedata) cffile action="" file=#attributes.newdirectory#\images\#filename# output=#binaryfile# Steve _ From: Bob Jacoby [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 9:59 AM To: CF-Talk Subject: Base 64 encoding hexadecimal string I need to hash a string using sha-1 and then base64 encode the result. This is required to interoperate with another agency who's using java to do the same. We're hashing correctly and getting a hexadecimal string back (need hex since may contain non-ascii characters). However, we can't feed the hash result in to the tobase64 function because it interprets the hexadecimal string as an ascii string. This means the 160 bit hash/40 length hexadecimal string is interpreted by the tobase64 function to be a 320 bit string. The encoding therefore doesn't result in a string 28 characters long (as it should be), but 56. Is there a CF tag that can properly base64 encode a hexadecimal string? Our other alternative is to use java, which we can do, but I wanted to see if there was a CF way first. Thanks, Bob _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: edit the text file.
Simple: If you need to view the file and edit: Use CFFILE ACTION="" to read the file. Output the contents of the file to a Textarea field Then on the SAVE Function: CFFILE ACTION=""> If you just simple need to add a line to a text file without viewing it first: CFFILE ACTION="" ADDNEWLINE=TRUE Something like that. -Original Message- From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:19 PM To: CF-Talk Subject: edit the text file. I have a quick quesiton I have a text file which can have upto 10 lines something like below. the | is the delimeter. Title:|Story|Link|Target What I need to do is Have to edit those lines as well as insert the new lines at the bottom. How this can be done through CFFILE. (I think thats the only way) Thanks _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Replication/Synchronization across servers not on the same network
have to be in the same domain actually.sounds like the other suggestions maybe a better approach then. Doug -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:33 PM To: CF-Talk Subject: RE: Replication/Synchronization across servers not on the same network Doug, Can you do FRS across machines that are not on the same network? John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:51 AM To: CF-Talk Subject: RE: Replication/Synchronization across servers not on the same network on a windows server?checkout FRSbuilt into windows servers, used it here before, worked fine. Doug -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:31 AM To: CF-Talk Subject: Replication/Synchronization across servers not on the same network I'm facing an upcoming project that will have the following scenario and I'm trying to figure out what the best solution would be: 2 servers in separate locations with the same website actively operating on both servers.The website allows for uploads of files and images to the server.The files on each server need to be updated (at least daily, if not faster) from the files on the other server that have been changed.The site structure cannot be changed and we can't just use one of the servers as the file server.Both actually have to have copies of the files. My thoughts are as follows and any other suggestions or pros and cons on each option would be great. 1. Use CFFTP to move new files from the server that the change is made on to the other server at the time the change is made. In my mind the downsides are the extra network traffic at possible peak times and how to handle files if the upload to the first server works but for some reason the upload to server 2 fails. 2. Use an FTP program that will allow scheduling and synchronization to do the synchronization nightly.This would take the load off of CF and run it at a time when the traffic should be lower.It should also be easy to tell if it fails and work from there. Please let me know your thoughts, especially if you have experience in this area. John Burns _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Controling spider access
This is what we are doing now.How often do these change, if at all? - Original Message - From: Steve Nelson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:39 PM Subject: RE: Controling spider access Most spiders have a specific cgi.user_agent could you check that and disregard those hits? Steve [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFC example
I put some good examples of this in The ColdFusion MX Bible, and the code is also on the CD.My examples also handle things like initialization, synchronizing new versus existing objects with its corresponding data in the database, and locking. Respectfully, Adam Phillip Churvis Member of Team Macromedia Advanced Intensive ColdFusion MX Training: * ColdFusion MX Master Class * Advanced Development with CFMX and SQL Server 2000 http://www.ColdFusionTraining.com Download CommerceBlocks V2.1 and LoRCAT from http://www.ProductivityEnhancement.com The ColdFusion MX Bible is in bookstores now! - Original Message - From: Cutter (CF-Talk) [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:12 PM Subject: CFC example I need a good example of an object CFC. One with get and set methods, etc. Anyone? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Controling spider access
From: [EMAIL PROTECTED] My company has an affiliate program set up with other webmasters.The webmasters put a banner on their site that links to ours with a unique referral ID.The problem we are having is that several search engines are spidering these other sites and then following the links from them to our site.This way, it looks like the web site is sending traffic to our site. This is a problem.What we would like to do is catch this type of activity and keep it from being recorded in the database for that web site.We've thought up some clunky solutions, but I thought I would ask in case someone knows of an elegant way to handle this. For a simple solution, just make sure that the http_user_agent contains Mozilla The larger search engine robots don't have that [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFC example
ck out http://www.cfczone.org/good stuffs there and a great mail list too. Doug -Original Message- From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:13 PM To: CF-Talk Subject: CFC example I need a good example of an object CFC. One with get and set methods, etc. Anyone? Cutter _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: path to uploaded file
well I can't think of a good reason NOT to do it that way.Though I'm trying to hard-code as little as possible, this isn't any more than the way I was doing it which specified a path for ExpandPath. So, do you think that maybe I should just store the image name in the DB rather than the path to it and then just implement the path in the display html, rather than in the db? dont make it more complicated than it has too be cfset uploads=htdocs/HHPv1/images/calendar_uploads/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Russian Charset 1251 - MX and SQL server SOLVED
Hey Paul Paul, Thanks for the responses... I actually figured it out... Seems obvious now... but somewhat backwards. All I needed to do was setEncoding(form,windows-1252) yes, 1252, to return the form submission from UTF-8 back to the standard windows charset. It makes sense in retrospect, but what a battle getting there. P. Vernon, i'll keep you in mind the next time i need charset conversion P. Hastings, i pray that they will switch to Unicode soon :) - j james curran technical director nylon technology mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 212-691-1134 -Original Message- From: Paul Vernon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:18 PM To: CF-Talk Subject: RE: Russian Charset 1251 - MX and SQL server Jim, I have a commercial tag that does character set conversions, I'm willing to let you have a free trial with it if you wish. Mail me off-list to arrange me sending you a copy if you want to give it a try. Yours Paul _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SUM/Convert string numeric data
Some of us can't read every mail message that comes through the system. This was a pun to get you to mail your message again. Mail the message again and I promise I will try and help! Sorry, I'm reading this through the Web site and not email.I'll post teh problem again. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Need CFML Mailing List Package Recommendation
A potential client needs a newsletter (broadcast) mailing list solution to allow sign ups, removals, email confirmations, basic checking for email syntax error or duplicate addresses -- all without human intervention. Before writing something from scratch, I googled for existing packages and of course there are plenty. So I'm looking for any recommendations. Would run on a shared host: CFMX and Access or SQL server. Thanks in advance. - Regards, Bob Haroche O n P o i n tS o l u t i o n s www.OnPointSolutions.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFMX 6.1 randomly not finding cfc/cfm files that exist
We have been having a very random problem resently. The production server says it can't find a file. The files exist, have not been updated for a long time, and are hit every hundreds, if not thousands of times a day. Also, it's never the same file. The first few instances have been files included in the Application.cfm. The last instance occurred while trying to createObject on a cfc. To fix it all I have to do is open the file and save it. Then CF will think something chagned and rebuild the class file. This is totally unacceptable in a production envroment. Is anyone else having a similar problem? Solution? Anything Justin Hansen Project Manager Uhlig Communications [EMAIL PROTECTED] PH.913.754.4273 FX.913.754.4219 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]