Apache, mod_deflate and coldfusion
Hi, I am experimenting a bit with mod_deflate for enabling http1.1 compression of html and text (and possibly css and _javascript_). The server is running Apache 2 and ColdFusion Enterprise. It seems like the compression works fine for static pages, but not for anything that is rendered through coldfusion... Any tips? I guess this has something to do with how Jrun handles the work etc... ? /H. - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Caching problem?
Hi all, We're in the process of developing a new site which is very similar to a previous site we've built, so we copied the webroot and customtags to new folders and renamed the customtags (and references to them within the code). Now we've mapped the dev domain name to the webroot, so we have kn-dev.open.ac.uk and krn-dev.open.ac.uk. We seem to be getting a problem where if we restart the server and visit kn-dev.open.ac.uk/index.cfm and then go to the page krn-dev.open.ac.uk/index.cfm the KRN version picks up the header file from KN, similarly if we go to krn-dev.open.ac.uk/index.cfm first and then kn-dev.open.ac.uk/index.cfm the KN version picks up the KRN version. (We've updated the KRN header file with a different design to KN). We've tried a number of things including; - adding a cfheader no-cache to stop the client caching the page - rebooting the server - clearing the compiled java classes - adding cfcache action="" to each index page However none of these seem to be working. So does anyone have any other suggestions as to what we could try? Unfortunately it's all behind a firewall so you won't be able to view the problem - but this is not an april fool!! ;-) TIA Alex [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Embedding an image in cfmail
On Wednesday 31 Mar 2004 23:41 pm, [EMAIL PROTECTED] wrote: with this approach you just build a web page as teh body.note that the image tags have to have FQ URIs...http://foo.net/images/goo.gif. They shouldn't have to be - you should be able to reference inline attached pictures. Remember WinXPSP2 will block external references in HTML email. IIRC, it's a bug that you can't do this with the 'new' cfmail tags in CFMX, because you can't set the cid without buidling the email by yourself (hence having to write the boundrys in the mail by hand etc. It should be easier, but isn't. As it happens, I'm doing this today too :-) -- 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: Embedding an image in cfmail
On Thursday 01 Apr 2004 11:22 am, Thomas Chiverton wrote: IIRC, it's a bug that you can't do this with the 'new' cfmail tags in CFMX, because even when I set: cfmailparam name=content-type value='multipart/alternative; boundary=7C252360672B03A0BAD013A5' The email still comes out with CF auotgenerated boundrys: --=_Part_4_4000810.1080815767335 and then at the end is my hard coded one: 7C252360672B03A0BAD013A5 Sounds like a bug - anyone know of any hotfixes or custom tags/cfc, before I go and learn the Java mail API myself ? -- 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: help with string manipulation (Find,Replace)
Sweet! You are a genius! I can never get my head round regular expressions. I don't have a clue what this is actually doing regexp = ^\s*([*]{3}.+?[*]{3}.+?)\s*(?:[*]{3}.*)?$; str2 = REReplace(str,regexp,\1); Can you kindly explain it to me because I have to explain it to my colleague and not look like a fool. Thanks Pascal cfsavecontent variable=str *** 13/01/200309:47:06TUser1 *** callno:1126 Some comment1 *** 13/01/200308:30:27TUser2 *** Some Comment2 /cfsavecontent cfscript regexp = ^\s*([*]{3}.+?[*]{3}.+?)\s*(?:[*]{3}.*)?$; str2 = REReplace(str,regexp,\1); /cfscript cfoutputpre#str2#/pre/cfoutput This returns the first comment with the datetime user info. If you want it without that info the regexp should be ^\s*[*]{3}.+?[*]{3}(.+?)\s*(?:[*]{3}.*)?$ Watch out for wrapping. There are no spaces in the regexp. Pascal [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Caching problem?
Did you copy the application file as well ? It might be worth while double checking it, making sure the application name, and any application specific settings have been changed correctly. -Original Message- From: A.Little [mailto:[EMAIL PROTECTED] Sent: 01 April 2004 09:34 To: CF-Talk Subject: Caching problem? Hi all, We're in the process of developing a new site which is very similar to a previous site we've built, so we copied the webroot and customtags to new folders and renamed the customtags (and references to them within the code). Now we've mapped the dev domain name to the webroot, so we have kn-dev.open.ac.uk and krn-dev.open.ac.uk. We seem to be getting a problem where if we restart the server and visit kn-dev.open.ac.uk/index.cfm and then go to the page krn-dev.open.ac.uk/index.cfm the KRN version picks up the header file from KN, similarly if we go to krn-dev.open.ac.uk/index.cfm first and then kn-dev.open.ac.uk/index.cfm the KN version picks up the KRN version. (We've updated the KRN header file with a different design to KN). We've tried a number of things including; - adding a cfheader no-cache to stop the client caching the page - rebooting the server - clearing the compiled java classes - adding cfcache action="" to each index page However none of these seem to be working. So does anyone have any other suggestions as to what we could try? Unfortunately it's all behind a firewall so you won't be able to view the problem - but this is not an april fool!! ;-) TIA Alex _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: help with string manipulation (Find,Replace)
^ start of string \s* any number of whitespace (spaces, tabs, newlines,...) ( start group (for back reference) [*]{3} three stars .+? one or more characters (non greedy match: untill first match of what comes next) [*]{3} three stars .+? one or more characters (non greedy match: untill first match of what comes next) ) end group \s* any number of whitespace (spaces, tabs, newlines,...) (?:[*]{3}.*)? optional group not included in backreference: three stars followed by any number of characters $ end of string \1 backreference to match for first group ([*]{3}.+?[*]{3}.+?) Pascal PS If you don't understand the difference between greedy and non greedy matches, try doing the same on a string with 2 or more comments using .+ instead of .+? -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: donderdag 1 april 2004 11:56 To: CF-Talk Subject: Re: help with string manipulation (Find,Replace) Sweet! You are a genius! I can never get my head round regular expressions. I don't have a clue what this is actually doing regexp = ^\s*([*]{3}.+?[*]{3}.+?)\s*(?:[*]{3}.*)?$; str2 = REReplace(str,regexp,\1); Can you kindly explain it to me because I have to explain it to my colleague and not look like a fool. Thanks Pascal [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Caching problem?
Are you using CF mappings? If you didn't change those it will include the files from the previous site when you use them. Are you using the application and session scope to store info? Be sure to change the name attribute of cfapplication Pascal -Original Message- From: A.Little [mailto:[EMAIL PROTECTED] Sent: donderdag 1 april 2004 10:34 To: CF-Talk Subject: Caching problem? Hi all, We're in the process of developing a new site which is very similar to a previous site we've built, so we copied the webroot and customtags to new folders and renamed the customtags (and references to them within the code). Now we've mapped the dev domain name to the webroot, so we have kn-dev.open.ac.uk and krn-dev.open.ac.uk. We seem to be getting a problem where if we restart the server and visit kn-dev.open.ac.uk/index.cfm and then go to the page krn-dev.open.ac.uk/index.cfm the KRN version picks up the header file from KN, similarly if we go to krn-dev.open.ac.uk/index.cfm first and then kn-dev.open.ac.uk/index.cfm the KN version picks up the KRN version. (We've updated the KRN header file with a different design to KN). We've tried a number of things including; - adding a cfheader no-cache to stop the client caching the page - rebooting the server - clearing the compiled java classes - adding cfcache action="" to each index page However none of these seem to be working. So does anyone have any other suggestions as to what we could try? Unfortunately it's all behind a firewall so you won't be able to view the problem - but this is not an april fool!! ;-) TIA Alex [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blue Dragon on Mandrake 9.2 with MySQL
Hello, I'm a bit late on this thread, but in my previous job, I was running BD 3.x on Mandrake 9. I was also using MySQL for a small community based app that I had built. Worked very well. But I haven't tried BD 6 on any linux system as of yet. Yves - Original Message - From: Alex Gorelik To: CF-Talk Sent: Wednesday, March 31, 2004 3:50 PM Subject: Blue Dragon on Mandrake 9.2 with MySQL Hello, I've got Blue Dragon 3.x running on RedHat 7.3.It works well with MySQL Datasources. I just installed Blue Dragon 6 (Beta) on Mandrake 9.2... seems to work well except I keep getting General SQL error when I try to create a MySQL datasource.There are no problems with MySQL... I'm able to connect to my DB in terminal and GUI - MySQLCC. Wondered if anyone has run Blue Dragon on a Mandrake distro b4... trying to figure out whether my problem is Mandrake / Blue Dragon 6, combo of these or something else entirely. BTW: I posted this in the general CF-Talk but find that this is a more appropriate thread... apologies for the cross-post. Discry [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: help with string manipulation (Find,Replace)
thanks Pascal that explaination makes perfect sense and I understand it. Thanks again for all your help. Best Regards, cfcoder [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: string formatting and manipulation
thank you all for relying to my message. I'm sorry I was not here yesterday to reply to your posts. I found the solution to my problem. Kindly see this thread. Best regards, cfcoder [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: string formatting and manipulation
http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=31529forumid=4 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Embedding an image in cfmail
You have to reference the full http path for the image in the email, not just image.jpg. You'd have to do img src="" for it to work. John From: Casey C Cook [mailto:[EMAIL PROTECTED] Sent: Wed 3/31/2004 5:25 PM To: CF-Talk Subject: RE: Embedding an image in cfmail Using CFMX currently. So what Im hearing is use cfmail type = html and its possible. We have been unable to get it to work as of yet. Thanks for the responses. CC [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: XML encoding
UTF-8 encoding can handle accents characters too. Anyway, You can change encoding value by just using replace function. like this. repleace(tostring(generatedxmldoc), 'encoding=UTF-8', 'encoding=ISO-8859-1') And, how will you use generated xml document? If you want to write it to file, you should specify encoding option as 'iso-8859-1'. or if you want to show as http response, you should use cfcontent type=text/xml; charset=ISO-8859-1. Thanks, -- Hiroshi -Original Message- From: Allan Cliff - CFUG Spain [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:51 AM To: CF-Talk Subject: XML encoding Whenever I create an xml document dynamically using cfxml it gives me ?xml version=1.0 encoding=UTF-8? How can I change it to ISO-8859-1 so the document will accept accents etc. Thanks Allan Cliff [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Dynamic DNS and IP
Hello all, I'd like to be able to host my personal site of my home box. I've got a util for updating the IP on the DNS automatically, but I'd like to know if there is a util for updating the IP on my webserver automatically, or at least just by running a batch file or something similar. Anyone seen such a creature? Specs: IIS 5.0 (willing to go apache though), Win2K Pro, CF 5 Thx, Guy http://guymcdowell.hopto.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
SOT: RIA performance was Flex is out
A few of us have been critical of the implications of poorly-performing RIAs in general and the available Flex examples in particular. I am particularly disappointed in theperformance of The Flex Code Explorer showcase app: http://macromedia.com/software/flex/?promoid=home_prod_flex_111703# Click Flex Code Explorer Link. This takes about 7 seconds to load on my DSL link, then about 7 seconds to render. Once that is done we (assumedly) are ready for a Rich Internet Application experience. On the left of the screen is a (logical) frame containing a familiar tree menu to navigate the rest of the application. While, functional, it is one of the slowest tree menus, I've seen. To contrast this RIA experience, I brought up the CFMX Administrator and the CFMX Docs -- it includes a PIA version of a tree menu. It is interesting to use these 2 (the RIA and the PIA) side by side -- the PIA wins hands down in speed and crispness and, yes Richness of the user experience, Why is this so -- the RIA system (Flex and Flash) have been designed to address this specific component of a web application? Why is the PIA useful and the RIA, well... let's just say that I would be embarrassed to show it to a client. I am all for RIAs -- they will be the norm in the long run.But we've got a ways to go... Dick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Dynamic DNS and IP
Guy McDowell said: I'd like to be able to host my personal site of my home box. I've got a util for updating the IP on the DNS automatically, but I'd like to know if there is a util for updating the IP on my webserver automatically, or at least just by running a batch file or something similar. Anyone seen such a creature? Specs: IIS 5.0 (willing to go apache though), Win2K Pro, CF 5 Why? If you set IIS to listen on all IP addresses it works automagically. But if you *really* want to, I use mdutil.exe for all IIS automation and it can do this too. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Embedding an image in cfmail
On Thursday 01 Apr 2004 11:51 am, Thomas Chiverton wrote: I go and learn the Java mail API myself ? I am having some success with cf_advancedemail form Jochem, except it appears to be corrupting the gif attachments. I'm cc'ing him to see if he knows why this might be the case, as well as digging my self. It's not a clean solution for us, becuase I'll have to excute a pipe to sendmail to actualy spool it off, but that will be OK... -- 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]
why? cfloop error
hi. getting a cfloop context errorany ideas why? thanks cfsetting enablecfoutputonly=Yes cfquery datasource=#reportsDSN# name=ReportWriter select * from test /cfquery cffile action="" file=test.csv output=OneColumn nameconflict=OVERWRITE cfsavecontent variable=dataToCSV cfoutput query=reportWriter cfif reportWriter.NewEvent EQ 0 #reportWriter.oneColumn##Chr(13)##Chr(10)# cfelse cfquery name=eventGrabber datasource=#reportsDSN# select anotherColumn from test /cfquery #theOtherColumn##Chr(13)##Chr(10)# cfloop query=eventGrabber ,#eventGrabber.endOfMyRope##Chr(13)##Chr(10)# /cfloop /cfif /cfoutput /cfsavecontent cffile action="" file=test.csv output=#dataToCSV# ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFOUTPUT Question
Your close, you don't want to close the new row inside your If statement.And you will need a closing tag at the end. tr cfoutput query=qSubCat1 group=Style td img src="" border=0 /td cfifCurrentRow Mod 2 IS 1 /tr tr /cfif /cfoutput /tr You can also simplify your if statement if you like [cfif CurrentRow Mod 2].A non zero value of an _expression_ always equates to true, and conversely a zero value is false. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: why? cfloop error
here is the errorbtw. error.Message:Context validation error for tag cfloop. error.Diagnostics:Context validation error for tag cfloop. The start tag must have a matching end tag. An explicit end tag can be provided by adding /cfloop. If the body of the tag is empty you can use the shortcut cfloop .../. The CFML compiler was processing: The body of a cfoutput tag beginning on line 20, column 10. The body of a cfoutput tag beginning on line 20, column 10. The error occurred on line -1. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:24 AM To: CF-Talk Subject: why? cfloop error hi. getting a cfloop context errorany ideas why? thanks cfsetting enablecfoutputonly=Yes cfquery datasource=#reportsDSN# name=ReportWriter select * from test /cfquery cffile action="" file=test.csv output=OneColumn nameconflict=OVERWRITE cfsavecontent variable=dataToCSV cfoutput query=reportWriter cfif reportWriter.NewEvent EQ 0 #reportWriter.oneColumn##Chr(13)##Chr(10)# cfelse cfquery name=eventGrabber datasource=#reportsDSN# select anotherColumn from test /cfquery #theOtherColumn##Chr(13)##Chr(10)# cfloop query=eventGrabber ,#eventGrabber.endOfMyRope##Chr(13)##Chr(10)# /cfloop /cfif /cfoutput /cfsavecontent cffile action="" file=test.csv output=#dataToCSV# ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: [cftalk] RE: XML encoding
Yes, that is the workaround i was using. Thanks anyway Allan - Original Message - From: Hiroshi Okugawa To: CF-Talk Sent: Thursday, April 01, 2004 3:41 PM Subject: [cftalk] RE: XML encoding UTF-8 encoding can handle accents characters too. Anyway, You can change encoding value by just using replace function. like this. repleace(tostring(generatedxmldoc), 'encoding=UTF-8', 'encoding=ISO-8859-1') And, how will you use generated xml document? If you want to write it to file, you should specify encoding option as 'iso-8859-1'. or if you want to show as http response, you should use cfcontent type=text/xml; charset=ISO-8859-1. Thanks, -- Hiroshi -Original Message- From: Allan Cliff - CFUG Spain [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:51 AM To: CF-Talk Subject: XML encoding Whenever I create an xml document dynamically using cfxml it gives me ?xml version=1.0 encoding=UTF-8? How can I change it to ISO-8859-1 so the document will accept accents etc. Thanks Allan Cliff [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: why? cfloop error
Tony Prolly awrong number of #sthing -- comment out the lines within the loop to see which one is the offender HTH Dick On Apr 1, 2004, at 6:29 AM, Tony Weeg wrote: here is the errorbtw. error.Message:Context validation error for tag cfloop. error.Diagnostics:Context validation error for tag cfloop. The start tag must have a matching end tag. An explicit end tag can be provided by adding /cfloop. If the body of the tag is empty you can use the shortcut cfloop .../. The CFML compiler was processing: The body of a cfoutput tag beginning on line 20, column 10. The body of a cfoutput tag beginning on line 20, column 10. The error occurred on line -1. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:24 AM To: CF-Talk Subject: why? cfloop error hi. getting a cfloop context errorany ideas why? thanks cfsetting enablecfoutputonly=Yes cfquery datasource=#reportsDSN# name=ReportWriter select * from test /cfquery cffile action="" file=test.csv output=OneColumn nameconflict=OVERWRITE cfsavecontent variable=dataToCSV cfoutput query=reportWriter cfif reportWriter.NewEvent EQ 0 #reportWriter.oneColumn##Chr(13)##Chr(10)# cfelse cfquery name=eventGrabber datasource=#reportsDSN# select anotherColumn from test /cfquery #theOtherColumn##Chr(13)##Chr(10)# cfloop query=eventGrabber ,#eventGrabber.endOfMyRope##Chr(13)##Chr(10)# /cfloop /cfif /cfoutput /cfsavecontent cffile action="" file=test.csv output=#dataToCSV# ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: why? cfloop error
I know its april fools day and all, but dick, can I kiss ya? WTF im an idiot...we had four eyes look at it...and didn't even think about that!! thanks. good day. tw -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:38 AM To: CF-Talk Subject: Re: why? cfloop error Tony Prolly awrong number of #sthing -- comment out the lines within the loop to see which one is the offender HTH Dick On Apr 1, 2004, at 6:29 AM, Tony Weeg wrote: here is the errorbtw. error.Message:Context validation error for tag cfloop. error.Diagnostics:Context validation error for tag cfloop. The start tagmust have a matching end tag. An explicit end tag can be provided by adding/cfloop. If the body of the tag is empty you can use the shortcut cfloop.../. The CFML compiler was processing: The body of a cfoutput tag beginning on line 20, column 10. The body of a cfoutput tag beginning on line 20, column 10. The error occurred on line -1. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:24 AM To: CF-Talk Subject: why? cfloop error hi. getting a cfloop context errorany ideas why? thanks cfsetting enablecfoutputonly=Yes cfquery datasource=#reportsDSN# name=ReportWriterselect * from test/cfquery cffile action="" file=test.csv output=OneColumn nameconflict=OVERWRITE cfsavecontent variable=dataToCSV cfoutput query=reportWriter cfif reportWriter.NewEvent EQ 0 #reportWriter.oneColumn##Chr(13)##Chr(10)# cfelse cfquery name=eventGrabber datasource=#reportsDSN# select anotherColumn from test /cfquery #theOtherColumn##Chr(13)##Chr(10)# cfloop query=eventGrabber ,#eventGrabber.endOfMyRope##Chr(13)##Chr(10)# /cfloop /cfif /cfoutput /cfsavecontent cffile action="" file=test.csv output=#dataToCSV# ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: FLEX: are you HERE or are you NOW?
On Mar 31, 2004, at 3:43 PM, Scott Weikert wrote: Now is it just me, or does that paragraph simply NOT answer the question it's associated with? How does offering it only on CD have anything to do with support? I think this question has been pretty well covered by responses form Dave and others, but just to reiterate and summarize, we would like to try to make sure that the people who are evaluating Flex right now are serious potential customers so that we can provide them with as much support as possible.(Yes, this is subtly implied in the FAQ rather than explicitly stated.)Of course, charging $8.99 for the trial is no guarantee, but it will help to reduce the noise.The $8.99 obviously does not cover support costs, but it can at least help to keep them under control. I also want to mention that there was a misconfiguration in the Macromedia online store that was causing international customers to be overcharged for the trial.Apparently that has been fixed.Please let me know if you discover otherwise. Christian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: why? cfloop error
On Apr 1, 2004, at 6:41 AM, Tony Weeg wrote: I know its april fools day and all, but dick, can I kiss ya? Well I'm thinking ah, not this time:) WTF im an idiot...we had four eyes look at it...and didn't even think about that!! thanks. good day. tw -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:38 AM To: CF-Talk Subject: Re: why? cfloop error Tony Prolly a wrong number of #s thing -- comment out the lines within the loop to see which one is the offender HTH Dick On Apr 1, 2004, at 6:29 AM, Tony Weeg wrote: here is the errorbtw. error.Message:Context validation error for tag cfloop. error.Diagnostics:Context validation error for tag cfloop. The start tag must have a matching end tag. An explicit end tag can be provided by adding /cfloop. If the body of the tag is empty you can use the shortcut cfloop .../. The CFML compiler was processing: The body of a cfoutput tag beginning on line 20, column 10. The body of a cfoutput tag beginning on line 20, column 10. The error occurred on line -1. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:24 AM To: CF-Talk Subject: why? cfloop error hi. getting a cfloop context errorany ideas why? thanks cfsetting enablecfoutputonly=Yes cfquery datasource=#reportsDSN# name=ReportWriter select * from test /cfquery cffile action="" file=test.csv output=OneColumn nameconflict=OVERWRITE cfsavecontent variable=dataToCSV cfoutput query=reportWriter cfif reportWriter.NewEvent EQ 0 #reportWriter.oneColumn##Chr(13)##Chr(10)# cfelse cfquery name=eventGrabber datasource=#reportsDSN# select anotherColumn from test /cfquery #theOtherColumn##Chr(13)##Chr(10)# cfloop query=eventGrabber ,#eventGrabber.endOfMyRope##Chr(13)##Chr(10)# /cfloop /cfif /cfoutput /cfsavecontent cffile action="" file=test.csv output=#dataToCSV# ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: FLEX: are you HERE or are you NOW?
Christian I ordered the CD -- no prob! But i would have liked the option to immediately dload in addition to the CD. Tried to join the beta -- but it was closed. I have some time available it would be nice to discuss from a position of experience, rather than just observing the examples (which disappoint me). Dick On Apr 1, 2004, at 6:42 AM, Christian Cantrell wrote: On Mar 31, 2004, at 3:43 PM, Scott Weikert wrote: Now is it just me, or does that paragraph simply NOT answer the question it's associated with? How does offering it only on CD have anything to do with support? I think this question has been pretty well covered by responses form Dave and others, but just to reiterate and summarize, we would like to try to make sure that the people who are evaluating Flex right now are serious potential customers so that we can provide them with as much support as possible. (Yes, this is subtly implied in the FAQ rather than explicitly stated.) Of course, charging $8.99 for the trial is no guarantee, but it will help to reduce the noise. The $8.99 obviously does not cover support costs, but it can at least help to keep them under control. I also want to mention that there was a misconfiguration in the Macromedia online store that was causing international customers to be overcharged for the trial. Apparently that has been fixed. Please let me know if you discover otherwise. Christian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfc causing cf admin to blank out
I'm invoking a cfc I made which creates pdf's based on a query.For some reason, it's failing when I send in a sql server query(not really the question), but it's creating a zero byte pdf.When I go to check if any errors are logged, all pages in CF Admin load but are completely blank(no html in source).In a few minutes, if I refresh the CF admin page, it's fine. any ideas? cfmx 6.0(wish i could upgrade)/win2k thanks, seth [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Embedding an image in cfmail
You have to reference the full http path for the image in the email, not just image.jpg. You'd have to do img src=""> com/images/image.jpg for it to work. John From: Casey C Cook [mailto:[EMAIL PROTECTED] Sent: Wed 3/31/2004 5:25 PM To: CF-Talk Subject: RE: Embedding an image in cfmail Using CFMX currently. So what Im hearing is use cfmail type = html and its possible. We have been unable to get it to work as of yet. Thanks for the responses. CC [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Caching problem?
Thanks, we're not using CF mappings, and we're not using application or session scope - we're using the request scope and client vars. I;ve checked that the Application.cfm has a different app name - although the client variable store datasource is the same, but I can't see why this would make any difference. We've got the file structure as follows: D:\wwwroot\ - this is for kn-dev.open.ac.uk D:\wwwroot\workspace\krn\ for krn-dev.open.ac.uk And the KRN site has it's own Application.cfm but the krn-dev.open.ac.uk is picking up the d:\wwwroot\index.cfm if the kn-dev.open.ac.uk has been viewed first. I;ve set up a number of sites on another server in exactly the same way (still w2k IIS5) and these work fine. Any other ideas? Alex -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: 01 April 2004 12:23 To: CF-Talk Subject: RE: Caching problem? Are you using CF mappings? If you didn't change those it will include the files from the previous site when you use them. Are you using the application and session scope to store info? Be sure to change the name attribute of cfapplication Pascal -Original Message- From: A.Little [mailto:[EMAIL PROTECTED] Sent: donderdag 1 april 2004 10:34 To: CF-Talk Subject: Caching problem? Hi all, We're in the process of developing a new site which is very similar to a previous site we've built, so we copied the webroot and customtags to new folders and renamed the customtags (and references to them within the code). Now we've mapped the dev domain name to the webroot, so we have kn-dev.open.ac.uk and krn-dev.open.ac.uk. We seem to be getting a problem where if we restart the server and visit kn-dev.open.ac.uk/index.cfm and then go to the page krn-dev.open.ac.uk/index.cfm the KRN version picks up the header file from KN, similarly if we go to krn-dev.open.ac.uk/index.cfm first and then kn-dev.open.ac.uk/index.cfm the KN version picks up the KRN version. (We've updated the KRN header file with a different design to KN). We've tried a number of things including; - adding a cfheader no-cache to stop the client caching the page - rebooting the server - clearing the compiled java classes - adding cfcache action="" to each index page However none of these seem to be working. So does anyone have any other suggestions as to what we could try? Unfortunately it's all behind a firewall so you won't be able to view the problem - but this is not an april fool!! ;-) TIA Alex [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Embedding an image in cfmail
On Thursday 01 Apr 2004 11:51 am, Thomas Chiverton wrote: digging my self. You need to change line 454 to be: cffile action="" file=#request.AdvancedEmail.AttachmentArray[CurrentAttachment][1]# variable=temp There may or may not need to be some logic for using a normal action="" for CSS files. Anyway, for cf-talk, here is the code: cf_advancedemail from=#request.emailFrom# to=#email# server=localhost spooldir=/tmp/ tempdir=/tmp/ format=text type=ALTERNATIVE inline=Local mode=DEBUG cache=FALSE cf_advancedemailparam contenttype=Text cfoutputHere is the#attributes.report_name# report you requested. It had request ID#attributes.report_request_id#./cfoutput /cf_advancedemailparamcfoutput htmlheadtitleYour #attributes.report_name# report, id #attributes.report_request_id#/title/headbody img src="" is #expandpath('/images_client/greatbigblue/reportmail/generic.gif')#p itest/iHere is the#attributes.report_name# report you requested. It had request ID#attributes.report_request_id#. /body/html /cfoutput /cf_advancedemail -- 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: Dynamic DNS and IP
Hi Jochem, I've set the IP Address value to All Unassigned and it doesn't work. Is that what you meant by setting IIS to listen on all IP addresses? ~Guy http://guuymcdowell.hopto.org Guy McDowell said: Why? If you set IIS to listen on all IP addresses it works automagically. But if you *really* want to, I use mdutil.exe for all IIS automation and it can do this too. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFExecute and Winzip
I just downloaded the new command line utility for winzip 9 hoping I could use cfexecute to unzip a whole bunch of zip files. When I try to run it via cfexecute I constantly get the error: An exception occurred when invoking an external process. The cause of this exception was that: java.io.IOException: CreateProcess: wzunzip error=2. Is there any reason this shouldn't work? I tested cfexecute with netstat and ipconfig and they both work fine. Is it possible CF needs different permissions to run the wzunzip executable? Thanks, Ben [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
creating 404 page for CFM and JSP files.
I think I'm having a brain fart today because I cannot get this to work. Here is what I'm trying to do. I have a Win2K3 server running CFMX. This site I'm working with used to use JSP pages. All the JSP pages have been rewritten to use CFM. Trouble is, some of the JSP pages are still cached in search engines and people still have them bookmarked. I've made a customer 404 page (in CF) to redirect a user to the main site. The trouble I'm running into is that I can't get the server to pull up my custom 404 when a JSP page is accessed. All I get is the generic error: A License Exception has been thrown Will this not work unless JSP is installed on the server? I'm currently have JSP mapped to be processed by the CFMX engine. TIA Dan Phillips CFXHosting.com 866.239.4678 x112 [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Embedding an image in cfmail
John: You're right for the short answer. Casey: The simple technical answer turns out to be a hotly debated topic near and dear to the viewing public's heart. At one place I worked for, we attempted to build an Interactive Online Email campaign featuring HTML emails and landing pages containing a short video and Flash slides. In practice, delivering consistant HTML email messages is messy at best when dealing with quirks of emails programs out there. For example in Outlook 2003 images using this notation are blocked by the idefault/i security setting (this can be changed by the user). In the previous version this was allowed. Each of the different email programs out there-- Yahoo, Hotmail, Outlook Express, Outlook, Lotus Notes and all of the others have their own way of how they will render HTML email-- some allow muti-part messaging others strip it out. And don't forget that many out there have email filters that will strip out everything from multi-part messages to images tags linked to the outside. Add to this that many get very prickly about the email they recieve... spam has had such an impact on people's feelings on this topic. But on the other hand, I have seen surveys that suggest the click through rate of HTML email is higher than the response rate on direct mail -- so we will continue to see marketers blindly send out direct emails to purchased lists. (HTML email also allows the marketer to determine who opened by the email as well providing yet another metric.) In practice, I've done the following with my clients for opt in lists. 1) Allow the customer to determine how they want their email sent. Provide choices for HTML email and plain text email -- and respect their choices. 2) Don't send out anything like Flash or Windows Media files inside of the email -- that's even less likely than pictures to be displayed on email. 3) Provide a way in HTML emails for the user to go to a webpage containing the same information -- allowing the user to go to the message in case HTML is displayed as plain text. I've referenced an article below that talks about this topic in depth. Take a look at http://www.alistapart.com/articles/cssemail/ and the associated discussion about embedding HTML inside of emails and deadling with the myrid of email clients out there. Jeremy You have to reference the full http path for the image in the email, not just image.jpg. You'd have to do img src=""> com/images/image.jpg for it to work. John From: Casey C Cook [mailto:[EMAIL PROTECTED] Sent: Wed 3/31/2004 5:25 PM To: CF-Talk Subject: RE: Embedding an image in cfmail Using CFMX currently. So what Im hearing is use cfmail type = html and its possible. We have been unable to get it to work as of yet. Thanks for the responses. CC [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Inserting a row at the top of a query
Is there a way to programmatically insert a row into a CF recordset so that it comes back as the first record? Thanks much, Rich [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFFile Problem
I've run into a rather bizarre problem with CFFILE and wondered if anyone else has seen something similar or might have an idea what would cause it. Here's the situation: I have two different pages that upload images to the server. I'm trying to upload the same image, to the same directory from these two different pages. I output the directory name just to make sure that it is indeed going to the same directory, and the cffile tags are the same. One of the functions works, the other throws an error that access is denied. Doesn't happen on my local machine, only on the server. Any ideas? Mary Jo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: creating 404 page for CFM and JSP files.
you could install ISAPI_ReWrite and setup a rule like... # Convery .jsp to .cfm RewriteRule (.*)\.jsp $1.cfm Thats what we're using on one of our servers... HTH -Original Message- From: Dan Phillips [mailto:[EMAIL PROTECTED] Sent: Thursday, April 1, 2004 16:18 To: CF-Talk Subject: creating 404 page for CFM and JSP files. I think I'm having a brain fart today because I cannot get this to work. Here is what I'm trying to do. I have a Win2K3 server running CFMX. This site I'm working with used to use JSP pages. All the JSP pages have been rewritten to use CFM. Trouble is, some of the JSP pages are still cached in search engines and people still have them bookmarked. I've made a customer 404 page (in CF) to redirect a user to the main site. The trouble I'm running into is that I can't get the server to pull up my custom 404 when a JSP page is accessed. All I get is the generic error: A License Exception has been thrown Will this not work unless JSP is installed on the server? I'm currently have JSP mapped to be processed by the CFMX engine. TIA Dan Phillips CFXHosting.com 866.239.4678 x112 [EMAIL PROTECTED] _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Dynamic DNS and IP
Whoops, it works now, after a few restarts. Should have known a few restarts was all I needed with MS stuff. Thanks Jochem. ~Guy http://guymcdowell.hopto.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Query of Queries - Repost
I am not sure if this ever made it to the list because I didn't recieve it back myself so here is the repost: I am having trouble with a query of query.Is there a known issue with 0 values in query of queries? I have a result set called getShipping that produces the following result set: getShipping result set == 18|0|Free Shipping 19|15|2nd Day Air 20|20|3 Day Select 22|25|Next Day Air Note: 18|0|Free Shipping, the 0 is the value for shipping. Then I try to run the following query of queries (without ANY other code in between) SELECT code,rate,description FROM getShipping And here is it's result set: (Note the 18//Free Shipping the 0 is now gone.I could write some code to look for the and then replace it with a 0 but that seems hacked and wanted to know if I am missing something. Shipping query of queries result set: 18//Free Shipping 19/15/2nd Day Air 20/20/3 Day Select 22/25/Next Day Air Paul Giesenhagen QuillDesign [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: creating 404 page for CFM and JSP files.
Dan, On 4/1/2004 at 10:17, you wrote: DP Will this not work unless JSP is installed on the server? I'm currently DP have JSP mapped to be processed by the CFMX engine. You should be able to tell your web server (IIS?) to check for the existence of JSP files before sending them to the application server, and then specify a CFM template as your 404 handler. The same can be done for CFM modules as well, so you don't have to specify a custom 404 handler in CF Admin just for CFM pages. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFOUTPUT Question
Thanks Ian. It is still not right. This is the result: table align=center border=0 cellpadding=0 cellspacing=2 width=500 tr td colspan=4 class=headertd align=Left Caps /td /tr tr td colspan=4 align=center hr /td /tr tr td colspan=4 align=left class=tdstyles Product Styles /td /tr tr td img src="" border=0 /td /tr tr td img src="" border=0 /td /tr tr td img src="" border=0 /td /tr tr td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td /tr tr td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td /tr tr td img src="" border=0 /td /tr tr td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td /tr tr td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td td img src="" border=0 /td /tr tr /tr /td /tr /table _ From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 8:20 AM To: CF-Talk Subject: RE: CFOUTPUT Question Your close, you don't want to close the new row inside your If statement. And you will need a closing tag at the end. tr cfoutput query=qSubCat1 group=Style td img src="" border=0 /td cfifCurrentRow Mod 2 IS 1 /tr tr /cfif /cfoutput /tr You can also simplify your if statement if you like [cfif CurrentRow Mod 2]. A non zero value of an _expression_ always equates to true, and conversely a zero value is false. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFile Problem
Are the uploading the same image at the same time? Could be that one process is not completed when the other one starts -Original Message- From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:28 AM To: CF-Talk Subject: CFFile Problem I've run into a rather bizarre problem with CFFILE and wondered if anyone else has seen something similar or might have an idea what would cause it. Here's the situation: I have two different pages that upload images to the server. I'm trying to upload the same image, to the same directory from these two different pages. I output the directory name just to make sure that it is indeed going to the same directory, and the cffile tags are the same. One of the functions works, the other throws an error that access is denied. Doesn't happen on my local machine, only on the server. Any ideas? Mary Jo _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFile Problem
Firstly, are you using nameConflict=Overwrite? You'll need this to overwrite any existing file of the same name. If you already are then you might want to check whether the error is being caused by virus checker locking the existing uploaded file while it checks for viruses, and thus preventing CF from overwriting it with the newly uploaded one. I came accross this on a server recently when trying to overwrite files which had recently been created dynamically. I wasn't using CFfile, but the symptoms sound pretty similar. I think I got round it by renaming the target file before uploading the new one, then deleting the renamed one. HTH Cheers Bert -Original Message- From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED] Sent: 01 April 2004 15:28 To: CF-Talk Subject: CFFile Problem I've run into a rather bizarre problem with CFFILE and wondered if anyone else has seen something similar or might have an idea what would cause it. Here's the situation: I have two different pages that upload images to the server. I'm trying to upload the same image, to the same directory from these two different pages. I output the directory name just to make sure that it is indeed going to the same directory, and the cffile tags are the same. One of the functions works, the other throws an error that access is denied. Doesn't happen on my local machine, only on the server. Any ideas? Mary Jo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFOUTPUT Question
Can you provide the complete CFML code.I think you may need to reverse your if statement to cfif NOT currentRow MOD 4.It looks like you are trying to output 4 columns? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFOUTPUT Question
I've got something very similar to that, with three columns, but otherwise similar logic: cfset total_items = GetPerFeatures.Recordcount cfset columns = 3 cfset col_tick = 0 cfset count = 0 table border=0 cellpadding=0 cellspacing=0 width=90% align=center tr cfoutput cfloop query=GetPerFeatures cfset col_tick = IncrementValue(col_tick) cfset count = IncrementValue(count) td valign=top width=200 pimg src="" width=150 border=0 align=center/a/p /td cfif count EQ total_items /tr/table cfelseif col_tick EQ columns /trtrcfset col_tick = 0 /cfif /cfloop /cfoutput Discry I have this piece of code: tr cfoutput query=qSubCat1 group=Style td img src="" border=0 /td cfifCurrentRow Mod 2 IS 1 /tr tr /tr /cfif /cfoutput What I was hoping to achieve was, when the second image appeared (the second column), then a new row would appear. So I guess what I am saying is that I want to create a table that is two colums wide by X rows. Thanks, Bruce Sorge [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blue Dragon on Mandrake 9.2 with MySQL
FYI: The kind folks at New Atlanta provided the following info: BlueDragon 6.1 does not contain the MySQL jar because of licensing restrictions.Therefore you need to download the jar and install it into the BDroot/lib directory as the file mysql.jar.Restart BlueDragon Server and all will be well :-) Hello, I've got Blue Dragon 3.x running on RedHat 7.3.It works well with MySQL Datasources. I just installed Blue Dragon 6 (Beta) on Mandrake 9. 2... seems to work well except I keep getting General SQL error when I try to create a MySQL datasource.There are no problems with MySQL... I'm able to connect to my DB in terminal and GUI - MySQLCC. Wondered if anyone has run Blue Dragon on a Mandrake distro b4... trying to figure out whether my problem is Mandrake / Blue Dragon 6, combo of these or something else entirely. BTW: I posted this in the general CF-Talk but find that this is a more appropriate thread... apologies for the cross-post. Discry [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFile Problem
Are the uploading the same image at the same time? Could be that one process is not completed when the other one starts No, this is with just me testing the two sections. Doesn't matter if it's the same image or not, I just mentioned that to eliminate the file itself as the cause of the problem. MJS [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript Remoting (js web service accessing stuff)
I have been playing with Rob Rohan's Neuromancer system since he first posted several weeks ago. Rob's system is much more than a chat app -- though a chat really shows it off. I wanted to do some PIA (Robs acronym for Poor Internet/Interface Application) apps where data exchange speed between the host and client is very important. To do this I wrote some CFCs to handle the server-side, the web service,and to implement a function that we call Thin Arrays. The Thin Array functions take a CFquery or CFarray and converts it into a streamlined packet that defines the data and structure in a single string. This Thin Array contains very little non-data overhead and can be sent to the client, quickly with minimal bandwidth usage (and very few processing cycles to serialize/de-serialize at either end) . Rob wrote the complementary js routines at the client incorporated them into Neuromancer. -- they are lean and wicked-fast. What Rob does in effect, is retrieve and replicate the equivalent of the server-side query or arrayon the client.Then he provides a set of functions to manipulate the client copy of the data structure. Rob uses the Thin Array format to retrieve the chat messages(a db query on the server) to his chat program on the client... yes his chat logs every message to a database on the host. To illustrate other uses of Robs system and Thin Arrays, I have written 2 programs to illustrate how (part of) a drill down might look: 1) EmployeeDrillDownPreload.cfm -- When the initial page is downloaded it includes a table that displays the first 5 records of n records in the query. When the page initially loads, it requests the entire query (15 rows in our example) and builds the equivalent structure on the client.The user can next/prev page thru these records 5 at a time without any interaction with the host. 2) EmployeeDrillDownOnDemand.cfm -- Same as above except only the 1st 5 records are retrieved on page load. Each next/prev request retrieves the desired set of 5 records from the server. This shows how fast Robs system can consume a web service and how efficiently thin arrays can be used to exchange data. The meagre documentation on thin arraysis included as comments in the cfBAM,cfc-- available for download at Robs site. http://www.rohanclan.com/products/neuromancer/ The 2 apps above are also available for download -- or if you'd just like to see PIAs in action go to the following links: Note: both of these apps have an initial 2-second delay to cover connection to, and learning of, the remote web service -- I didn't have a js Loading... routine handy. So, after the page loads, wait a few seconds until a value appears in the elapsed time box. http://www.rohanclan.com/products/neuromancer/datatest/ EmployeeDrillDownPreload.cfm and http://www.rohanclan.com/products/neuromancer/datatest/ EmployeeDrillDownOnDemand.cfm You might want to bring these 2 apps up side-by-side for camparison. And be sure to visit Rob's PIA chat at: http://www.rohanclan.com/products/neuromancer/chatdemo2.cfm I hope you like what you see -- we are quite happy withit! BTW, the Employees database is the cfSnippets db that comes with CFMX. So if you installed the CFMX examples you can run these apps without change For the techies out there, Rob has added a new feature called synch/asynch.This allows the client-side app to tradeoff performance against losing some data packets sent from the host*.Things like the drill downs will likely operate synchmode so no data packets are lost and, because these are UI event driven, there will be no noticeable affect on client performance. * Actually, only packets in transit are lost --the original data remains intact on the host(and client) for retransmission or synchronization. There is a class of apps, however, likes chats, status monitors, etc, where the data is constantly updated and a few lost data packets are tolerable -- the next data update will replace them anyway.So Neuromancer allows you to run this portion of your app with separate UI threads and data exchange threads -- the UI doesn't need to wait for the data exchange and vise versa.This provides a significant improvement in performance and a much crisper feel for the UI, with a tolerable loss of a few data packets, The synch/asynch feature allows you, the developer, to optimize the performance of the UI (and data exchange) according to the needs of each specfic app. The entire package is free, open source and available for download at: Enjoy! Dick On Mar 31, 2004, at 8:21 AM, Rob wrote: On Wed, 2004-03-31 at 04:59, Whittingham, P wrote: Rob, I like your code alot. Does it works with a cfm template? You mean instead of a web service? I don't think it would becuase what it does is makes a _javascript_ object that matches a web service, you then use that javascritpt object locally... however, you *could* use the Neuromacer libraries to call cfm pages by hand. If not, I could extend its
RE: CFOUTPUT Question
Bruce, I just ran this against a local table and it renders 2 nice columns. The y helps you see what currentrow MOD 2 is doing. cfquery name=x datasource=cftest SELECT TOP 10 * FROM company /cfquery table width=90% border=1 tr cfoutput query=x cfset y = CurrentRow Mod 2 td#email# - #y#/td cfif CurrentRow Mod 2 LT 1 /tr tr /tr /cfif /cfoutput /table [EMAIL PROTECTED] - 1 [EMAIL PROTECTED] - 0 [EMAIL PROTECTED] - 1 [EMAIL PROTECTED] - 0 [EMAIL PROTECTED] - 1 [EMAIL PROTECTED] - 0 [EMAIL PROTECTED] - 1 [EMAIL PROTECTED] - 0 [EMAIL PROTECTED] - 1 [EMAIL PROTECTED] - 0 -Original Message- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:00 PM To: CF-Talk Subject: CFOUTPUT Question I have this piece of code: tr cfoutput query=qSubCat1 group=Style td img src=""> border=0 /td cfifCurrentRow Mod 2 IS 1 /tr tr /tr /cfif /cfoutput What I was hoping to achieve was, when the second image appeared (the second column), then a new row would appear. So I guess what I am saying is that I want to create a table that is two colums wide by X rows. Thanks, Bruce Sorge [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFile Problem
Firstly, are you using nameConflict=Overwrite? You'll need this to overwrite any existing file of the same name. Yes If you already are then you might want to check whether the error is being caused by virus checker locking the existing uploaded file while it checks for viruses, and thus preventing CF from overwriting it with the newly uploaded one. Don't think that's the issue here, since I get the error 100% of the time, even with a new file. Thanks for the idea though! Interestingly enough, if I change the CFFile tag to include the mime types I accept, the error changes to: 'The MIME type of the uploaded file (image/gif) was not accepted by the server' even though this is a mime type in the accepted list. If I leave the mime types out, I just get the access denied error. Again, the same code on the other page works fine, it uploads a gif image without issue. MJS [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFile Problem
Are you using IIS?Apache? If Apache, check to see if you are using the MODE=777 in the CFFILE tag. Might be a permissions issue -Original Message- From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 10:39 AM To: CF-Talk Subject: Re: CFFile Problem Firstly, are you using nameConflict=Overwrite? You'll need this to overwrite any existing file of the same name. Yes If you already are then you might want to check whether the error is being caused by virus checker locking the existing uploaded file while it checks for viruses, and thus preventing CF from overwriting it with the newly uploaded one. Don't think that's the issue here, since I get the error 100% of the time, even with a new file. Thanks for the idea though! Interestingly enough, if I change the CFFile tag to include the mime types I accept, the error changes to: 'The MIME type of the uploaded file (image/gif) was not accepted by the server' even though this is a mime type in the accepted list. If I leave the mime types out, I just get the access denied error. Again, the same code on the other page works fine, it uploads a gif image without issue. MJS _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFINVOKE vs CreateObject - Flogging OOP!
Agreed...maybe it will take some getting used to, but I'm aware of what you correctly point out as an example of flexibility. Even if one allows CFMX leeway on this issue (I can Most OO languages allow the use of static classes, don't they? In those cases, you're not interested in creating instances of objects, you simply have an object that contains a bunch of useful, related methods. As for why you'd use static CFCs instead of UDFs, I'd suggest the facts that they generate documentation and can be used easily within Dreamweaver MX as two reasons. I prefer a single, architecturally solid construct over multiple ways to do things that violate the very benefits that they are supposed to bring. I prefer to use languages that let me do what I want to do, rather than ones that tell me what I should do. Ease of use and flexibility are closely related. Granted, I wouldn't mind at all if CFMX provided a CFCONSTRUCTOR tag like BlueDragon does, but if I want to write OO code, I'll use an OO language. If I want to be able to mix procedural and OO code to my liking, I'll use CF. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Homesite 5.5+ vs. Standard Homesite 5.5
I have 5.5 standard. What is the major differences? Can I get CFMX6.1 tag libraries for 5.5 Standard? There was no way to upgrade our 4.5 to plus, so we upgraded to 5.5 standard.. I searched around on the CF-Talk archives and couldn't find any direct comparison. Thanks, Jeff [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFile Problem
Are you using IIS?Apache? If Apache, check to see if you are using the MODE=777 in the CFFILE tag. Sorry, should have mentioned I was on IIS. I'd think there was some permissions issue with the folder I'm uploading to, but that wouldn't explain why it works from one of the pages and not the other. MJS [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Dynamic DNS and IP
Not sure what you mean...but it if it what I think, I use www.noip.com You can set up a pre-defined domain name from their list or you can buy your own domain name, then you install a client on your server that updates their DNS servers automatically and points your domain name to your server.It's worked really well for me and I've been using it for about 2 years.I think using the pre-defined domain names is free. John -Original Message- From: Guy McDowell [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 8:02 AM To: CF-Talk Subject: Dynamic DNS and IP Hello all, I'd like to be able to host my personal site of my home box. I've got a util for updating the IP on the DNS automatically, but I'd like to know if there is a util for updating the IP on my webserver automatically, or at least just by running a batch file or something similar. Anyone seen such a creature? Specs: IIS 5.0 (willing to go apache though), Win2K Pro, CF 5 Thx, Guy http://guymcdowell.hopto.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: nearby zip codes
I would definitely be interested in this too.We have a directory style site that people can search geographically, but would love the ability for someone to enter a zip code and find the listings in the zip codes in a certain area around that zip code. Ray At 04:06 PM 3/31/2004, Steve Logan wrote: I read the thread a few weeks about about distance radius searching for US zip codes, but - what about doing neighboring zip codes.I have a client that seems to prefer the idea of seeing every zip code that is next to the one searched for.Is anyone aware of a db that can be purchased out there that has this neighboring zip data? Steve [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: nearby zip codes
If the zip db contains latitude longitude then it is simple to find others that are+ or - whatever HTH dick On Apr 1, 2004, at 9:20 AM, Ray Champagne wrote: I would definitely be interested in this too. We have a directory style site that people can search geographically, but would love the ability for someone to enter a zip code and find the listings in the zip codes in a certain area around that zip code. Ray At 04:06 PM 3/31/2004, Steve Logan wrote: I read the thread a few weeks about about distance radius searching for US zip codes, but - what about doing neighboring zip codes. I have a client that seems to prefer the idea of seeing every zip code that is next to the one searched for. Is anyone aware of a db that can be purchased out there that has this neighboring zip data? Steve [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question)
Anybody? - Original Message - From: Joe Eugene To: CF-Talk Sent: Wednesday, March 31, 2004 4:43 PM Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Is there a BUG using cfContent in CFMX? It throws all kinda Errors on Log Files when downloading files larger than 100K. Can anybody Explain the Workings behind cfContent Thanks, Joe Eugene -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:20 PM To: CF-Talk Subject: CFHEADER CFCONTENT question Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using CFHEADER NAME=content-disposition VALUE=attachment; filename=#FileName# CFCONTENT TYPE=application/octet-stream FILE=#application.filehttppathstring##location# DELETEFILE=No My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question)
I've never had issues and I've served files up to a few meg, both reading from the filesystem and dynamically generated in realtime. Cheers, barneyb -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:48 AM To: CF-Talk Subject: Re: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Anybody? - Original Message - From: Joe Eugene To: CF-Talk Sent: Wednesday, March 31, 2004 4:43 PM Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Is there a BUG using cfContent in CFMX? It throws all kinda Errors on Log Files when downloading files larger than 100K. Can anybody Explain the Workings behind cfContent Thanks, Joe Eugene -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:20 PM To: CF-Talk Subject: CFHEADER CFCONTENT question Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using CFHEADER NAME=content-disposition VALUE=attachment; filename=#FileName# CFCONTENT TYPE=application/octet-stream FILE=#application.filehttppathstring##location# DELETEFILE=No My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JRun has closed connection
We have downloaded the update and when installing we request that it do a full install and entered the key. As result we are still getting the same problem. What I do not understand is that I am not on the server and I can access the pages but no other user can! What am I doing wrong? Yes that could have a profound effect, under single IP the server is in development mode and can only be accessed from itself.Usually as localhost and/or 127.0.0.1, but if you set up a website in your local IIS (or other web server I presume) you may also access it under that name from the local box. No body else can though.That is the limitation of the free development version of the software, if it wasn't restricted who would bother to pay for it for production purposes. The gotcha that exists is the for the first 30 days it runs in Trial version as a full production server and during this initial period of time other users can access the box. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfmx and tomcat with IIS
Hi, before I post my problem, has anyone on this list successfully integrated apache tomcat 4.x with cfmx and IIS 4.x or higher. J. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Homesite 5.5+ vs. Standard Homesite 5.5
Jeff, I believe the largest items are the buttons for CF functions,CF vtml libraries, CF help files and support for ColdFusion 5 and lower debugging (CF Studio debugging doesn't work on MX) - Calvin - Original Message - From: Jeff Waris To: CF-Talk Sent: Thursday, April 01, 2004 11:41 AM Subject: Homesite 5.5+ vs. Standard Homesite 5.5 I have 5.5 standard. What is the major differences? Can I get CFMX6.1 tag libraries for 5.5 Standard? There was no way to upgrade our 4.5 to plus, so we upgraded to 5.5 standard.. I searched around on the CF-Talk archives and couldn't find any direct comparison. Thanks, Jeff [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFExecute and Winzip
I just downloaded the new command line utility for winzip 9 hoping I could use cfexecute to unzip a whole bunch of zip files. When I try to run it via cfexecute I constantly get the error: An exception occurred when invoking an external process. The cause of this exception was that: java.io.IOException: CreateProcess: wzunzip error=2. Is there any reason this shouldn't work? I tested cfexecute with netstat and ipconfig and they both work fine. Is it possible CF needs different permissions to run the wzunzip executable? Are you using CFMX? Any reason why you wouldn't use the underlying Java API's Zip/Unzip classes? There are UDFs at cflib.org if you can use them. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript Remoting (js web service accessing stuff)
Dick or Rob, Does the PIA take inconsideration if the web service is down/network problems?? Is there a timeout time/message if that occurs? TIA, Patrick Whittingham United Space Alliance AES - Data Warehouse -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 11:34 AM To: CF-Talk Subject: Re: _javascript_ Remoting (js web service accessing stuff) I have been playing with Rob Rohan's Neuromancer system since he first posted several weeks ago. Rob's system is much more than a chat app -- though a chat really shows it off. I wanted to do some PIA (Robs acronym for Poor Internet/Interface Application) apps where data exchange speed between the host and client is very important. To do this I wrote some CFCs to handle the server-side, the web service,and to implement a function that we call Thin Arrays. The Thin Array functions take a CFquery or CFarray and converts it into a streamlined packet that defines the data and structure in a single string. This Thin Array contains very little non-data overhead and can be sent to the client, quickly with minimal bandwidth usage (and very few processing cycles to serialize/de-serialize at either end) . Rob wrote the complementary js routines at the client incorporated them into Neuromancer. -- they are lean and wicked-fast. What Rob does in effect, is retrieve and replicate the equivalent of the server-side query or arrayon the client.Then he provides a set of functions to manipulate the client copy of the data structure. Rob uses the Thin Array format to retrieve the chat messages(a db query on the server) to his chat program on the client... yes his chat logs every message to a database on the host. To illustrate other uses of Robs system and Thin Arrays, I have written 2 programs to illustrate how (part of) a drill down might look: 1) EmployeeDrillDownPreload.cfm -- When the initial page is downloaded it includes a table that displays the first 5 records of n records in the query. When the page initially loads, it requests the entire query (15 rows in our example) and builds the equivalent structure on the client.The user can next/prev page thru these records 5 at a time without any interaction with the host. 2) EmployeeDrillDownOnDemand.cfm -- Same as above except only the 1st 5 records are retrieved on page load. Each next/prev request retrieves the desired set of 5 records from the server. This shows how fast Robs system can consume a web service and how efficiently thin arrays can be used to exchange data. The meagre documentation on thin arraysis included as comments in the cfBAM,cfc-- available for download at Robs site. http://www.rohanclan.com/products/neuromancer/ The 2 apps above are also available for download -- or if you'd just like to see PIAs in action go to the following links: Note: both of these apps have an initial 2-second delay to cover connection to, and learning of, the remote web service -- I didn't have a js Loading... routine handy. So, after the page loads, wait a few seconds until a value appears in the elapsed time box. http://www.rohanclan.com/products/neuromancer/datatest/ EmployeeDrillDownPreload.cfm and http://www.rohanclan.com/products/neuromancer/datatest/ EmployeeDrillDownOnDemand.cfm You might want to bring these 2 apps up side-by-side for camparison. And be sure to visit Rob's PIA chat at: http://www.rohanclan.com/products/neuromancer/chatdemo2.cfm I hope you like what you see -- we are quite happy withit! BTW, the Employees database is the cfSnippets db that comes with CFMX. So if you installed the CFMX examples you can run these apps without change For the techies out there, Rob has added a new feature called synch/asynch.This allows the client-side app to tradeoff performance against losing some data packets sent from the host*.Things like the drill downs will likely operate synchmode so no data packets are lost and, because these are UI event driven, there will be no noticeable affect on client performance. * Actually, only packets in transit are lost --the original data remains intact on the host(and client) for retransmission or synchronization. There is a class of apps, however, likes chats, status monitors, etc, where the data is constantly updated and a few lost data packets are tolerable -- the next data update will replace them anyway.So Neuromancer allows you to run this portion of your app with separate UI threads and data exchange threads -- the UI doesn't need to wait for the data exchange and vise versa.This provides a significant improvement in performance and a much crisper feel for the UI, with a tolerable loss of a few data packets, The synch/asynch feature allows you, the developer, to optimize the performance of the UI (and data exchange) according to the needs of each specfic app. The entire package is free, open source and available for download at: Enjoy! Dick On Mar 31, 2004, at 8:21 AM, Rob wrote: On Wed,
RE: creating 404 page for CFM and JSP files.
make sure and delete all the jsp files. What is probably happening is that CF (i.e. Jrun) is being tasked by IIS to serve the JSP pages, but you have the wrong version to do it (like CF professional).Also, go into the site properties and make sure that CF is NOT tasked with serving JSP pages (click on the configuration button on the web site tab). Make sure the site knows that JSP is persona non grata. -Mark -Original Message- From: Dan Phillips [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:18 AM To: CF-Talk Subject: creating 404 page for CFM and JSP files. I think I'm having a brain fart today because I cannot get this to work. Here is what I'm trying to do. I have a Win2K3 server running CFMX. This site I'm working with used to use JSP pages. All the JSP pages have been rewritten to use CFM. Trouble is, some of the JSP pages are still cached in search engines and people still have them bookmarked. I've made a customer 404 page (in CF) to redirect a user to the main site. The trouble I'm running into is that I can't get the server to pull up my custom 404 when a JSP page is accessed. All I get is the generic error: A License Exception has been thrown Will this not work unless JSP is installed on the server? I'm currently have JSP mapped to be processed by the CFMX engine. TIA Dan Phillips CFXHosting.com 866.239.4678 x112 [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript Remoting (js web service accessing stuff)
On Thu, 2004-04-01 at 10:42, Whittingham, P wrote: Dick or Rob, Does the PIA take inconsideration if the web service is down/network problems?? Is there a timeout time/message if that occurs? At present it does not, but the headers are returned when the ws call is made so you could check for 404s. The mechanism is there, it just does not do it yet. -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript Remoting (js web service accessing stuff)
On Thu, 2004-04-01 at 11:00, Rob wrote: On Thu, 2004-04-01 at 10:42, Whittingham, P wrote: Dick or Rob, Does the PIA take inconsideration if the web service is down/network problems?? Is there a timeout time/message if that occurs? At present it does not, but the headers are returned when the ws call is made so you could check for 404s. The mechanism is there, it just does not do it yet. (you could also check for file not found - which would be network down if you knew the file did exist) -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript Remoting (js web service accessing stuff)
what about if the web service does a query to a database on a different server then the web service server. The problem could be the web service box(down) or the db box(down). Isn't multi-tier environment just wonderful:) Pat -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:03 PM To: CF-Talk Subject: RE: _javascript_ Remoting (js web service accessing stuff) On Thu, 2004-04-01 at 11:00, Rob wrote: On Thu, 2004-04-01 at 10:42, Whittingham, P wrote: Dick or Rob, Does the PIA take inconsideration if the web service is down/network problems?? Is there a timeout time/message if that occurs? At present it does not, but the headers are returned when the ws call is made so you could check for 404s. The mechanism is there, it just does not do it yet. (you could also check for file not found - which would be network down if you knew the file did exist) -- Rob [EMAIL PROTECTED] _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Checking for a number
What is the best way to check that a value is an integer? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript Remoting (js web service accessing stuff)
On Thu, 2004-04-01 at 11:27, Whittingham, P wrote: what about if the web service does a query to a database on a different server then the web service server. The problem could be the web service box(down) or the db box(down). Isn't multi-tier environment just wonderful:) Yeah that's true... if you do it in sync mode it will just wait and wait, so you could have the first ws throw a timeout error to neuromancer if the database box doesn't respond (handle timeout in the cfc). If you ran neuromancer in asyc mode you could kind of keep checking the results and resend the request after a while... good question Patrick - hadn't thought of that :-/ - I'll have to play a bit -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Checking for a number
isNumeric() -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:35 PM To: CF-Talk Subject: Checking for a number What is the best way to check that a value is an integer? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Checking for a number
http://www.cflib.org/udf.cfm?ID=582 -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:35 PM To: CF-Talk Subject: RE: Checking for a number isNumeric() -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:35 PM To: CF-Talk Subject: Checking for a number What is the best way to check that a value is an integer? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Checking for a number
cfset val = df / cfif isNumeric(val) AND val EQ int(val) it's a number cfelse o, bad stuff /cfif -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 11:35 AM To: CF-Talk Subject: Checking for a number What is the best way to check that a value is an integer? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Checking for a number
dunno if it's the -best- way...but would this work? cfif reFind('[^0-9]', myNumber) number is not an integer cfelse number is an integer /cfif - Original Message - From: Tangorre, Michael [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 12:35 PM Subject: Checking for a number What is the best way to check that a value is an integer? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript Remoting (js web service accessing stuff)
I would think you could write t the service cfc to put a try block around the db request with a timeout then return an indication to the client/consumer Dich On Apr 1, 2004, at 11:32 AM, Rob wrote: On Thu, 2004-04-01 at 11:27, Whittingham, P wrote: what about if the web service does a query to a database on a different server then the web service server. The problem could be the web service box(down) or the db box(down). Isn't multi-tier environment just wonderful:) Yeah that's true... if you do it in sync mode it will just wait and wait, so you could have the first ws throw a timeout error to neuromancer if the database box doesn't respond (handle timeout in the cfc). If you ran neuromancer in asyc mode you could kind of keep checking the results and resend the request after a while... good question Patrick - hadn't thought of that :-/ - I'll have to play a bit -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JRun has closed connection
I could realy do with some help here! My problem is that I am still getting JRun closed connecton on users systems. So far I have: Check the logs- No errors Install update and requested that it do a full install insted. Entered Key when runing update. Should I remove coldfusion and reinstall it useing the key then add the update? Please help. Thank you John [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Function for data type determination
OK, here's a part of a sample data after ToBase64 conversion from an image file, JVBERi0xLjIgDQol4uPP0w0KIA0KMTIgMCBvYmoNCjw8DQovTGV Now, to determine this set of data, none of CF6.1 decision or the like functions would do the job, IsObject comes close but won't do the job. The fun part is, IsSimpleValue function considers this set of data as TRUE. Any thoughts? TIA [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Documentation Oddity
Every piece of PDF or printed documentation I can find since the MX product line came out contains a disclaimer for Apple Computer on page 2 along with the other Macromedia disclaimers. I am dying to know why this is there. -Cameron - Cameron Childress Sumo Consulting Inc --- land:858.509.3098 cell:678.637.5072 aim:cameroncf email: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CF5 Services running as user - Now service won't start
We're trying to lock down some security on our servers by making CF services run as a specified user instead of System.We did this successfully on a CFMX server yesterday without any problems, now today, we're doing it on a CF5 server and having lots of troubles. I set up the the CF Application Service, CF Executive Service and CF RDS Service to all run under a local user account.That user account has full control in the C:\cfusion folder where CF is installed.It also has full access to the webroot folder on a different drive.For some reason though, when I stopped and restarted the services, the CF Executive is the only one that would restart sucessfully.The CF App Service and the RDS Service give the following error: Could not start the Cold Fusion Application Service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your System Administrator. Did I do something wrong with the permissions?Does CF5 have some other setup that needs to take place?Any advice or thoughts would be EXTREMELY helpful. By the way, the server is Windows 2000 and again, the CF version is 5. John Burns [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blue Dragon on Mandrake 9.2 with MySQL
That would do it. :-) Yves - Original Message - From: Alex Gorelik To: CF-Talk Sent: Thursday, April 01, 2004 11:28 AM Subject: Re: Blue Dragon on Mandrake 9.2 with MySQL FYI: The kind folks at New Atlanta provided the following info: BlueDragon 6.1 does not contain the MySQL jar because of licensing restrictions.Therefore you need to download the jar and install it into the BDroot/lib directory as the file mysql.jar.Restart BlueDragon Server and all will be well :-) Hello, I've got Blue Dragon 3.x running on RedHat 7.3.It works well with MySQL Datasources. I just installed Blue Dragon 6 (Beta) on Mandrake 9. 2... seems to work well except I keep getting General SQL error when I try to create a MySQL datasource.There are no problems with MySQL... I'm able to connect to my DB in terminal and GUI - MySQLCC. Wondered if anyone has run Blue Dragon on a Mandrake distro b4... trying to figure out whether my problem is Mandrake / Blue Dragon 6, combo of these or something else entirely. BTW: I posted this in the general CF-Talk but find that this is a more appropriate thread... apologies for the cross-post. Discry [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Inserting a row at the top of a query
The closest I can think of is to use the functions, QueryAddRow, QuerySetCell, you may want to look them up and play with it. Is there a way to programmatically insert a row into a CF recordset so that it comes back as the first record? Thanks much, Rich [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: JRun has closed connection
Hi John, The jrun closed connection error is not cut and dry, it can be caused by a number of things. I just finished writing a technote about this topic, here is the preliminary text that will probably change through the edit cycle: The JRun Closed Connection error is caused by an issue occurring in the JVM which in turn causes the JVM to close the socket that is open from the external webserver connector, such as IIS, Apache, or iPlanet, to JRun. The JVM problem can occur due to several different issues, such as: 1. outOfMemory or the JVM approaches the max heap 2. Native code in a CFX or COM objects causes an error in the JVM The memory condition can also occur due to several different issues, most commonly: 1. If debugging is left on in production. Make sure you have it turned completely off on production servers. 2. Large resultsets are returned from the database taking up a significant amount of memory. Reduce the size of database results you are returning. This technote will provide you with steps for debugging the root cause. 1. In The ColdFusion Administrator\Server Settings\Settings Page turn on timeout requests and set the value to 30 seconds 2. In The ColdFusion Administrator\Debugging Logging\Logging Settings turn on log slow running pages and set the value to 30 seconds 3. Upgrade your jvm to the latest 1.4.2_04 jdk http://java.sun.com/j2se/1.4.2/download.html http://java.sun.com/j2se/1.4.2/download.html. When you install, it will install to your c drive by default. For example. C:\j2sdk1.4.2_03 In the ColdFusion Administrator-- JVM Settings page point the jvm in the CF Admin to this path. 4. Enable JRun Metrics in {cfusion}/runtime/servers/default/SERVER-INF/jrun.xml: Make a backup of {cfusion}/runtime/servers/default/SERVER-INF/jrun.xml Uncomment the entry service class=jrunx.metrics.MetricsService name=MetricsService attribute name=bindToJNDItrue/attribute /service Inside of service class=jrunx.logger.LoggerService name=LoggerService modify attribute name=metricsEnabledtrue/attribute attribute name=metricsLogFrequency5/attribute 5. Enable verbose Garbage Collection in the ColdFusion Administrator\Server Settings\Java and JVM\JVM Arguments by adding the following arguments: -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC 6. Stop ColdFusion 7. Delete all the logs in {cfusion}/logs and {cfusion}/runtime/logs 8.Start ColdFusion so we can produce a stack trace, for example as per this article: http://www.macromedia.com/support/coldfusion/ts/documents/tn18339.htm http://www.macromedia.com/support/coldfusion/ts/documents/tn18339.htm >From the cmd c:\CFusionMX\bin\ cfstart out.txt 9.Run cfstat so we can see the requests: >From the cmd c:\CFusionMX\bin\ cfstat 5 c:\cfusionmx\logs\cfstat.out 10.When the site becomes unresponsive do a stack trace, examine the stack trace, cfstat and log files or contact Technical Support with these files. I would practice running a stack trace (set focus to the DOS window and press Ctrl-Break) and then look at the out.txt for the text Full Thread Dump, it will be after all of the services starting info. If it's not there then it didn't work. Christine -Original Message- From: John Croney [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:00 PM To: CF-Talk Subject: Re: JRun has closed connection I could realy do with some help here! My problem is that I am still getting JRun closed connecton on users systems. So far I have: Check the logs- No errors Install update and requested that it do a full install insted. Entered Key when runing update. Should I remove coldfusion and reinstall it useing the key then add the update? Please help. Thank you John _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JRun has closed connection
Try increasing the NO OF ACTIVE THREADS... The Default Installation is set to 8 and you might some SLOWProcesses taking up the Threads. HTH Joe Eugene - Original Message - From: John Croney To: CF-Talk Sent: Thursday, April 01, 2004 2:00 PM Subject: Re: JRun has closed connection I could realy do with some help here! My problem is that I am still getting JRun closed connecton on users systems. So far I have: Check the logs- No errors Install update and requested that it do a full install insted. Entered Key when runing update. Should I remove coldfusion and reinstall it useing the key then add the update? Please help. Thank you John [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Function for data type determination
Unless I'm confused, an image converted to base64 *is* simple data. What are you trying to do here? --Ben Doom Chunshen (Don) Li wrote: OK, here's a part of a sample data after ToBase64 conversion from an image file, JVBERi0xLjIgDQol4uPP0w0KIA0KMTIgMCBvYmoNCjw8DQovTGV Now, to determine this set of data, none of CF6.1 decision or the like functions would do the job, IsObject comes close but won't do the job. The fun part is, IsSimpleValue function considers this set of data as TRUE. Any thoughts? TIA [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question)
Barney, Are your programs using the below kinda routine/syntax. cfheader name=content-disposition value=attachment;filename=#variables.docInfo.docFileName# cfcontent type=application/pdf file=#variables.docInfo.docFileNamePath# If the Main page is set to use text/html content type and the subsequent inlcude page switches the header information like the above... Can this cause the problem? Thanks, Joe Eugene - Original Message - From: Barney Boisvert To: CF-Talk Sent: Thursday, April 01, 2004 12:53 PM Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) I've never had issues and I've served files up to a few meg, both reading from the filesystem and dynamically generated in realtime. Cheers, barneyb -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:48 AM To: CF-Talk Subject: Re: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Anybody? - Original Message - From: Joe Eugene To: CF-Talk Sent: Wednesday, March 31, 2004 4:43 PM Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Is there a BUG using cfContent in CFMX? It throws all kinda Errors on Log Files when downloading files larger than 100K. Can anybody Explain the Workings behind cfContent Thanks, Joe Eugene -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:20 PM To: CF-Talk Subject: CFHEADER CFCONTENT question Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using CFHEADER NAME=content-disposition VALUE=attachment; filename=#FileName# CFCONTENT TYPE=application/octet-stream FILE=#application.filehttppathstring##location# DELETEFILE=No My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Inserting a row at the top of a query
You could also create that first row as a separate query object, and then use a QofQ to do a UNION on that query and the one containing the rest of your data. Cheers, barneyb -Original Message- From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 11:28 AM To: CF-Talk Subject: Re: Inserting a row at the top of a query The closest I can think of is to use the functions, QueryAddRow, QuerySetCell, you may want to look them up and play with it. Is there a way to programmatically insert a row into a CF recordset so that it comes back as the first record? Thanks much, Rich [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Checking for a number
You can force it to be an integer, regardless of what it currently is by #int(variable)# Therefore if this new integer, which you KNOW is an integer because you just forced it to be one,is equal to the variable you started with, then it must have been an integer to start with. cfif int(variable) EQ (variable) the variable is an integer cfelse it's not an integer /cfit (having said that, I'll probably find out there's a function that's existed in CF since version 4 but I never knew it was there) Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com _ From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Friday, 2 April 2004 5:35 AM To: CF-Talk Subject: Checking for a number What is the best way to check that a value is an integer? _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
jsessionID... ?
Hello everyone... Does anyone know just how long the JSessionID gets? I see that it jumps in length a digit or two. Also it's my understanding that the Jsession is always a unique number, is this right? I know the CF session ID is not unique, but can it be made to be unique or would it be better to use the jsessionID? I'm not sure I understand the advantages of either one. I have read the info on MM site but could not really find any info that state why one is better than the other beside security and unique IDs. Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question)
Here's a snip from one of my apps: cfheader name=Content-Disposition value=attachment; filename=#REreplace(documentinfo.filename, '[^a-zA-Z0-9._-]', '_', 'all')# / cfcontent file=#application.document_directory#/#documentinfo.filename# deletefile=false type=application/octet-stream reset=true /cfabort / That's at 4 includes deep.You might try adding the RESET attribute to CFCONTENT.That will remove all content that has been previously emitted. I don't know about the headers.I suspect that if you've previously used CFHEADER to supply a content-type header, that CFCONTENT will write a new one, not replace the existing one, but you'd have to check for sure. Cheers, barneyb -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 12:49 PM To: CF-Talk Subject: Re: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Barney, Are your programs using the below kinda routine/syntax. cfheader name=content-disposition value=attachment;filename=#variables.docInfo.docFileName# cfcontent type=application/pdf file=#variables.docInfo.docFileNamePath# If the Main page is set to use text/html content type and the subsequent inlcude page switches the header information like the above... Can this cause the problem? Thanks, Joe Eugene - Original Message - From: Barney Boisvert To: CF-Talk Sent: Thursday, April 01, 2004 12:53 PM Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) I've never had issues and I've served files up to a few meg, both reading from the filesystem and dynamically generated in realtime. Cheers, barneyb -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 9:48 AM To: CF-Talk Subject: Re: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Anybody? - Original Message - From: Joe Eugene To: CF-Talk Sent: Wednesday, March 31, 2004 4:43 PM Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question) Is there a BUG using cfContent in CFMX? It throws all kinda Errors on Log Files when downloading files larger than 100K. Can anybody Explain the Workings behind cfContent Thanks, Joe Eugene -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:20 PM To: CF-Talk Subject: CFHEADER CFCONTENT question Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using CFHEADER NAME=content-disposition VALUE=attachment; filename=#FileName# CFCONTENT TYPE=application/octet-stream FILE=#application.filehttppathstring##location# DELETEFILE=No My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CF5 Services running as user - Now service won't start
Hi John, Is the user you have created part of the local administrator's group? We suggest they are. Also, if you start the services from the command line you will see a more descriptive error. You can use: net start Cold Fusion Application Server net start ColdFusion Executive net start ColdFusion RDS Christine -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 3:25 PM To: CF-Talk Subject: CF5 Services running as user - Now service won't start We're trying to lock down some security on our servers by making CF services run as a specified user instead of System.We did this successfully on a CFMX server yesterday without any problems, now today, we're doing it on a CF5 server and having lots of troubles. I set up the the CF Application Service, CF Executive Service and CF RDS Service to all run under a local user account.That user account has full control in the C:\cfusion folder where CF is installed.It also has full access to the webroot folder on a different drive.For some reason though, when I stopped and restarted the services, the CF Executive is the only one that would restart sucessfully.The CF App Service and the RDS Service give the following error: Could not start the Cold Fusion Application Service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your System Administrator. Did I do something wrong with the permissions?Does CF5 have some other setup that needs to take place?Any advice or thoughts would be EXTREMELY helpful. By the way, the server is Windows 2000 and again, the CF version is 5. John Burns _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Dynamic DNS and IP
Hi John, Yep, noip.com is what I'm using too for the DNS update. However, due to my daftness, I kept going into IIS and changing the IP manually instead of just setting it to All Unnassigned. Works wonderfully now. I'm looking into easyDNS as they have some sort of association with my ISP. Hard to find out if they have all the features of noip or not though. I'd like to be able to host multiple domains on my box and noip has the ability to let me do that, DNS wise, but I can't tell if easyDNS will. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
New CFMX Colour Scheme tool on line.
For my own benefit, I have been developing a colour schemer tool, and I've put it on my web site for others to use, comment about, help me improve. If you have coldfusion servers yourself, I am going to put it in the dev gallery at Macromedia soon. There are lots of colour development tools around, I know, but I got into doing my own because all the tools I have known about use _javascript_ and the scheme can't be saved.For example there's a great one at http://www.pixy.cz/apps/barvy/index-en.htmlbut if you click anywhere on the page, or try to cut and paste the colour numbers, it changes the scheme and you can't get back again easily.The only way to record the scheme you work on so hard, is to get a pen and paper and write down all the colour numbers. So I started developing my own, so I can produce a chart for each site I'm working on with the colours I've decided on for the site listed out.I've put it on my web site and I'd really appreciate if you could go have a look, and let me know if there's any way I can make it more useful, any features I should add. My one uses no _javascript_ at all, and the form uses the GET method, so you can email the URL and get the same results every time.You can email the url once you're happy with the colours you've selected and the receiver will see what you see as well. You can use either the full HEX colour number (e.g. #3366CC)or the 3 character abbreviation (e.g. #36C) and you select the number of steps you want between the first and last colour.It'll show you all the colours in between the two and samples of text in the different colours. You might also be interested to know there are no tables on this page- it's all done with CSS2. http://afpwebworks.com/colourschemer/is the address. (note the Australian COLOUR not the American COLOR) Cheers Mike Kear AFP Webworks Windsor, NSW, Australia http://afpwebworks.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Function for data type determination
OK, let's forget about the semantics here, if data look like a dog is looking at a cat or data look like 28233, fine; but else if the data look like JVBERi0xLjIgDQol4uPP0w0KIA (non-English set of data) do something here. The goal is, if the data is non-English like the above sample, then, not display it for it's quite meaningless to user. Unless I'm confused, an image converted to base64 *is* simple data. What are you trying to do here? --Ben Doom Chunshen (Don) Li wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
More local variables scoping weirdness
So I happened to loop over a recordset in a function today and one of the column names had the same name as an argument to the function.I thought nothing of it, and assumed that inside my CFLOOP tag, the column's value in the current record would have the highest priority in the scope search queue.But that's NOT the case. Local variables have a higher priority that columns when looping a recordset.Thus, if you want to reference a recordset column within a function that has either an argument or a local variable with the same name, you have to do it longhand: #recordsetname.columnname[currentrow]#, rather that the usual #columnname# Anyone have any clever insights about this, and/or know if it is/should be a bug?I think it should, but we all know my opinions on scoping are interesting. To prove to myself I wasn't crazy, I wrote a simple test case and included it below.While it will happen rarely (this is the first time it's happened to me), it seems counterintuitive that the local variables scope would be searched before the recordset, since the recordset loop is a narrower scope than the local variables scope.Both CFC methods loop the recordset and create a list of the 'id' field's values for the records.The output should, IMHO, be 1,2,3 for all three, but it is in fact 42,42,42, 37,37,37, and 1,2,3. test.cfm: - cfset q = queryNew(id) / cfset queryAddRow(q) /cfset querySetCell(q, id, 1) / cfset queryAddRow(q) /cfset querySetCell(q, id, 2) / cfset queryAddRow(q) /cfset querySetCell(q, id, 3) / cfoutput #createObject(component, test).testArg(q, 42)#br / #createObject(component, test).testLocal(q)#br / #createObject(component, test).testFullScope(q)# /cfoutput test.cfc: - cfcomponent cffunction name=testArg output=true cfargument name=rs / cfargument name=id / cfset var result = / cfloop query=rs cfset result = listAppend(result, id) / /cfloop cfreturn result / /cffunction cffunction name=testLocal output=true cfargument name=rs / cfset var id = 37 / cfset var result = / cfloop query=rs cfset result = listAppend(result, id) / /cfloop cfreturn result / /cffunction cffunction name=testFullScope output=true cfargument name=rs / cfset var id = 37 / cfset var result = / cfloop query=rs cfset result = listAppend(result, rs.id[currentRow]) / /cfloop cfreturn result / /cffunction /cfcomponent --- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x32 fax: 360.647.5351 www.audiencecentral.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Function for data type determination
Ah.Sorry.I thought you were using simple data in a technical sense. As far as I know, there's not really a good way to do this.After all, IBM +3.75 6% 14-3/8 would make sense to some people (well, it would if it were really a stock quote), but doesn't fit the English or Number model. On the other hand, it is technically possible for an image (for example) to convert to an integer in Base64. I would guess that your best bet is to store some metadata about the content -- maybe a binary vs. text flag or something. I know that doesn't really answer your question, but I hope it helps anyway. --Ben Doom Chunshen (Don) Li wrote: OK, let's forget about the semantics here, if data look like a dog is looking at a cat or data look like 28233, fine; but else if the data look like JVBERi0xLjIgDQol4uPP0w0KIA (non-English set of data) do something here. The goal is, if the data is non-English like the above sample, then, not display it for it's quite meaningless to user. Unless I'm confused, an image converted to base64 *is* simple data. What are you trying to do here? --Ben Doom Chunshen (Don) Li wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: New CFMX Colour Scheme tool on line.
Great idea Mike. I like the link you provided as well as your own tool. I have been using BEHR paint website for some time now.. They have a cool flash app that lets you see color schemes!!! Once I find the color scheme I like, I take a screenshot and load that image into photoshop where I make a custom palet for the site im designing; this allows me to always save the colors for future use and reference! http://www.behr.com/behrx/workbook/index.jsp(click on inspiration library) Mike There are lots of colour development tools around, I know, but I got into doing my own because all the tools I have known about use _javascript_ and the scheme can't be saved.For example there's a great one at http://www.pixy.cz/apps/barvy/index-en.htmlbut if you click anywhere on the page, or try to cut and paste the colour numbers, it changes the scheme and you can't get back again easily.The only way to record the scheme you work on so hard, is to get a pen and paper and write down all the colour numbers. http://afpwebworks.com/colourschemer/is the address. (note the Australian COLOUR not the American COLOR) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CF5 Services running as user - Now service won't start
Well, the problem is, the local Admin group gives the user access to a bunch of other folders on the server by default and we don't want that. I tried the command prompt version and the error message I got was The service could not be started.The service did not report an error Any other ideas? John Burns -Original Message- From: Christine Lawson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 4:10 PM To: CF-Talk Subject: RE: CF5 Services running as user - Now service won't start Hi John, Is the user you have created part of the local administrator's group? We suggest they are. Also, if you start the services from the command line you will see a more descriptive error. You can use: net start Cold Fusion Application Server net start ColdFusion Executive net start ColdFusion RDS Christine -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 3:25 PM To: CF-Talk Subject: CF5 Services running as user - Now service won't start We're trying to lock down some security on our servers by making CF services run as a specified user instead of System.We did this successfully on a CFMX server yesterday without any problems, now today, we're doing it on a CF5 server and having lots of troubles. I set up the the CF Application Service, CF Executive Service and CF RDS Service to all run under a local user account.That user account has full control in the C:\cfusion folder where CF is installed.It also has full access to the webroot folder on a different drive.For some reason though, when I stopped and restarted the services, the CF Executive is the only one that would restart sucessfully.The CF App Service and the RDS Service give the following error: Could not start the Cold Fusion Application Service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your System Administrator. Did I do something wrong with the permissions?Does CF5 have some other setup that needs to take place?Any advice or thoughts would be EXTREMELY helpful. By the way, the server is Windows 2000 and again, the CF version is 5. John Burns _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CF5 Services running as user - Now service won't start
As a test can you try adding the user to the local admin group and then try starting the service? This will tell us if it is a permissions issue or if something else is going on. Christine -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 4:18 PM To: CF-Talk Subject: RE: CF5 Services running as user - Now service won't start Well, the problem is, the local Admin group gives the user access to a bunch of other folders on the server by default and we don't want that. I tried the command prompt version and the error message I got was The service could not be started.The service did not report an error Any other ideas? John Burns -Original Message- From: Christine Lawson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 4:10 PM To: CF-Talk Subject: RE: CF5 Services running as user - Now service won't start Hi John, Is the user you have created part of the local administrator's group? We suggest they are. Also, if you start the services from the command line you will see a more descriptive error. You can use: net start Cold Fusion Application Server net start ColdFusion Executive net start ColdFusion RDS Christine -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 3:25 PM To: CF-Talk Subject: CF5 Services running as user - Now service won't start We're trying to lock down some security on our servers by making CF services run as a specified user instead of System.We did this successfully on a CFMX server yesterday without any problems, now today, we're doing it on a CF5 server and having lots of troubles. I set up the the CF Application Service, CF Executive Service and CF RDS Service to all run under a local user account.That user account has full control in the C:\cfusion folder where CF is installed.It also has full access to the webroot folder on a different drive.For some reason though, when I stopped and restarted the services, the CF Executive is the only one that would restart sucessfully.The CF App Service and the RDS Service give the following error: Could not start the Cold Fusion Application Service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your System Administrator. Did I do something wrong with the permissions?Does CF5 have some other setup that needs to take place?Any advice or thoughts would be EXTREMELY helpful. By the way, the server is Windows 2000 and again, the CF version is 5. John Burns _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Sorting by date in QofQ
I know I've seen this posted previously - what's the workaround for sorting by date in Query of Queries? Also, I've hard negative things about QofQ. Performance. Etc. Is that still the case? Thanks, Rich [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]