more migration woes
Can anyone help me Please. Intially I was working on PC so Coldfusion Server was running on PC, but now in my office they have shifted PC to Mac OS X. You know in PC how we cansave all database in db folder and cfm pages in WWWroot folder of the server and then later from Admin section we can map the folder. but in Mac Server I am not sure where to save the database files and cfm files? I know we have to create a separate server for each project but where to save the database file and cfm pages and how to map it? I will be thankful if anyone can help me Regards Sangeeta [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Transfer to Mac OS X Server
Can anyone help me Please Intially I was working on PC so Coldfusion Server was running on PC, but now in my office they have shifted PC to Mac OS X. You know in PC how we cansave all database in db folder and cfm pages in WWWroot folder of the server and then later from Admin section we can map the folder. but in Mac Server I am not sure where to save the database files and cfm files? I know we have to create a separate server for each project but where to save the database file and cfm pages and how to map it? I will be thankful if you can help me Regards Sangeeta [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Splitting Access DB Columns
I don't know that much about access sql, but you can do it in cf. First create the new fields for city and zip. cfquery name=qCity datasource=... Select city, id from tbl /cfquery cfset regexp = ^(.+)[[:space:]]+([0-9]+)$ cfloop query=qCity cfset stTmp = REFindNoCase(regexp,qCity.city,1,true) cfif stTmp.pos[1] cfset newcity = Mid(qCity.city,stTmp.pos[2],stTmp.len[2]) cfset newzip = Mid(qCity.city,stTmp.pos[3],stTmp.len[3]) cfelse !--- format doesn't match --- cfset newcity = qCity.city cfset newzip = /cfif cfquery datasource=... UPDATE tbl SET newcity = cfqueryparam cfsqltype=CF_SQL_VARCHAR value=#newcity#, newzip = cfqueryparam cfsqltype=CF_SQL_VARCHAR value=#newzip# WHERE id = cfqueryparam cfsqltype=CF_SQL_NUMERIC value=#qCity.id# /cfquery /cfloop If you know that the zip is always there and has exactly 5 digits, you can probably do it directly in access using this query: UPDATE tbl SET newcity = Left(city,Len(city)-6), newzip = Right(city,5) WHERE Len(city) 6 -Original Message- From: Bob Haroche [mailto:[EMAIL PROTECTED] Sent: maandag 16 februari 2004 22:03 To: CF-Talk Subject: SOT: Splitting Access DB Columns My client gave me a copy of their database which has a field for city, containing both city and zip code, eg: New York 10021 Santa Rosa 95404 Within the DB I need to split this column into two, one for city and the other for zip. How can I do this using Access 2002 and/or ColdFusion and regexp. Thanks in advance. - Regards, Bob Haroche O n P o i n tS o l u t i o n s www.OnPointSolutions.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: new version of the cfeclipse plugin (1.1.0)
On Tuesday 17 February 2004 05:57 am, Rob Rohan wrote: There is a new cfeclipse plug-in (1.1.0) 3.0M7 (note M7). I don't know whos Fault it was, but it's much faster now :-) This version adds a bit of key bindings ... Cold Fusion menu I was thinking about starting to learn how to add them the other day... upgrading to M7 is kind of a pain. All seems to have gone smoothly here. CVS intergration is still borked, which is a shame though. -- 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: Transfer to Mac OS X Server
On Mon, 2004-02-16 at 22:56, Sangeeta Karmokar wrote: Can anyone help me Please Intially I was working on PC so Coldfusion Server was running on PC, but now in my office they have shifted PC to Mac OS X. Congratulations :) You know in PC how we cansave all database in db folder and cfm pages in WWWroot folder of the server and then later from Admin section we can map the folder. but in Mac Server I am not sure where to save the database files and cfm files? I do not know where they are on Mac Server, and I assume there is no GUI on Mac server (if so it's probably in Macinthosh HD then Applications; however if it is the same directory structure as linux look in /opt/coldfusionmx/, or in the apache (I am assuming) directory. If you have GUI open a terminal if not just type: [computer:~you]$ find / -name *.cfm that will find all the .cfm files on your system, that should give you a clue as to where to start looking. if that goes by too fast try: [computer:~you]$ find / -name *.cfm | more I know we have to create a separate server for each project but where to save the database file and cfm pages and how to map it? Map it? Like create a short cut, share the directory over the network, or map it in cold fusion administrator? network stuff depends on what you are using - and I cant say for sure how you are doing it, but if you mean map it like a short cut on windows [computer:~you]$ ln -s /Applications/something /private/somewhere that makes a short cut from /Applications/something to /private/somewhere (meaning when you go into /private/somewhere you get the files in /Applications/something) if you have a gui hold the ctrl key click on the folder and choose make alias. If you are going to do a lot of work with mac stuff I suggest you check out the bash and csh shells. I hope I was close to answering your questions ;) -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: new version of the cfeclipse plugin (1.1.0)
On Tue, 2004-02-17 at 00:31, Thomas Chiverton wrote: On Tuesday 17 February 2004 05:57 am, Rob Rohan wrote: There is a new cfeclipse plug-in (1.1.0) 3.0M7 (note M7). I don't know whos Fault it was, but it's much faster now :-) I wish it was me... but it was them :(. The fonts look way better on Linux now too. This version adds a bit of key bindings ... Cold Fusion menu I was thinking about starting to learn how to add them the other day... The more I use this thing the cooler it gets. Someone told me there are now lots of books out on eclipse - I'll have to buy one soon if I want to do cool stuff like tree views etc. So much to learn so little time :) upgrading to M7 is kind of a pain. All seems to have gone smoothly here. CVS intergration is still borked, which is a shame though. Yeah that and the FTP stuff works so so with M$ (IIS) servers (diff doesn't work right) - I wonder if they did that on purpose. Works great on other types. wee -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: new version of the cfeclipse plugin (1.1.0)
On Tuesday 17 February 2004 08:38 am, Rob Rohan wrote: The fonts look way better on Linux now too. :hadn't notice any difference, what are they meant to have done ? to do cool stuff like tree views etc. So much to learn so little time :) And collapse of the code view based on it... mmm... wee :grins a lot -- 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: new version of the cfeclipse plugin (1.1.0)
On Tue, 2004-02-17 at 00:43, Thomas Chiverton wrote: On Tuesday 17 February 2004 08:38 am, Rob Rohan wrote: The fonts look way better on Linux now too. :hadn't notice any difference, what are they meant to have done ? It just looks less GTKish to me (perhaps I've been up too long) - the edges seem more defined or something. to do cool stuff like tree views etc. So much to learn so little time :) And collapse of the code view based on it... mmm... Ahhh good call :) (gotta write that down) - that and the bracket and tag matching highlighting thingies Cheers -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Regular expression help
cfscript regexp = ##[[:space:]]*([0-9]{2-3}); stTmp = REFindNoCase(regexp,str,1,true); if(stTmp.pos[1]) result = Mid(str,stTmp.pos[2],stTmp.len[2]); else result = ; /cfscript If you need to find all, you do it in a loop: cfscript regexp = ##[[:space:]]*([0-9]{2-3}); results = ArrayNew(1); start = 1; while(true){ stTmp = REFindNoCase(regexp,str,start,true); if(stTmp.pos[1]){ ArrayAppend(results,Mid(str,stTmp.pos[2],stTmp.len[2])); start = stTmp.pos[1] + stTmp.len[1]; } else break; } /cfscript Probably you want to make sure that the character after the 2-3 digits is not a digit. If so, modify the regexp to regexp = ##[[:space:]]*([0-9]{2-3})([^0-9]|$); On CFMX you could use negative lookahead: regexp = ##\s*(\d{2,3})(?!\d); Pascal -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 februari 2004 0:05 To: CF-Talk Subject: Regular _expression_ help What regular _expression_ would find a # followed by any number of blanks, followed by 2-3 numbers For example, I want to return 45 from this string: Testing this string # 45 to 46 Andy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: new version of the cfeclipse plugin (1.1.0)
Just put the 1.1 plugin into my plugins directory. I get tag insight but none of the new shortcut keys work...could it be me? -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 08:44 To: CF-Talk Subject: Re: new version of the cfeclipse plugin (1.1.0) On Tuesday 17 February 2004 08:38 am, Rob Rohan wrote: The fonts look way better on Linux now too. :hadn't notice any difference, what are they meant to have done ? to do cool stuff like tree views etc. So much to learn so little time :) And collapse of the code view based on it... mmm... wee :grins a lot -- 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: new version of the cfeclipse plugin (1.1.0)
On Tuesday 17 February 2004 08:48 am, Rob Rohan wrote: It just looks less GTKish to me (perhaps I've been up too long) - the edges seem more defined or something. I think it always had anti-aliased fonts if you picked the right ones in the preferences. Ahhh good call :) (gotta write that down) - that and the bracket and tag matching highlighting thingies Matching highlight would rock :-) -- 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]
data to/from client via ActiveX
Has anyone used an ActiveX control to upload data on a client machine to a CF app on the server before? I'm looking an integrating an application of ours with legacy client software and need to send data down to the client as well as upload data from the client. How is it implemented - and what's the syntax/format for data download? TIA Rich --- Rich Wild Senior Web Developer --- e-mango Tel: 01202 755 300 Gild House Fax: 01202 755 301 74 Norwich Avenue West Bournemouth Mailto:[EMAIL PROTECTED] BH2 6AW, UK http://www.e-mango.com --- This message may contain information which is legally privileged and/or confidential.If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of e-mango.com ltd, unless otherwise explicitly and independently indicated by an authorised representative of e-mango.com ltd. --- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
MACH II is what Macromedia used for building their website...
I know this topic was already debated to dead, but I think it may be interesting to see how people already misunderstand the facts... The post below was posted on Webdesign-L, a well-know mailing list with 2000+ subscribers Massimo - Original Message - From: Krassy [EMAIL PROTECTED] To: Webdesign-L [EMAIL PROTECTED] Sent: Monday, February 16, 2004 6:15 PM Subject: Re: [WD]: App Development Methodology Question Randal, You might want to have a look at Fusebox and MACH II. (MACH II is what Macromedia used for building their website) http://www.fusebox.org http://www.mach-ii.com Both are frameworks and methodologies for building web-based applications. I have used Fusebox 3 and the problems you describe for the most part can be taken care of by the architecture. I just attended a ColdFusion conference where I saw useful and inspiring presentations on both, Fusebox 4 and MACH II.More on my blog entry: http://www.krassycandoit.com/blah/#107665076365602210 = Krassy Lyakov web.developer http://www.krassycandoit.com __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html + [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: MACH II is what Macromedia used for building their website...
On Tuesday 17 February 2004 10:18 am, Massimo Foti wrote: - Original Message - From: Krassy [EMAIL PROTECTED] You might want to have a look at Fusebox and MACH II. (MACH II is what Macromedia used for building their website) Krassy Lyakov web.developer http://www.krassycandoit.com MM employee sole-trader's to write their website ? How does shee know what they use ? -- 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: data to/from client via ActiveX
On Tuesday 17 February 2004 09:14 am, Rich Wild wrote: Has anyone used an ActiveX control to upload data on a client machine to a CF app on the server before? I've not done it, but sounds like a webservice is the way to go. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: MACH II is what Macromedia used for building their website...
From: Krassy [EMAIL PROTECTED] You might want to have a look at Fusebox and MACH II. (MACH II is what Macromedia used for building their website) Krassy Lyakov web.developer http://www.krassycandoit.com MM employee sole-trader's to write their website ? How does shee know what they use ? Well, in my opinion it doesn't matter if she knows or not (she clearly doesn't). The point is that ordinary people out there will start believing saying this sort of things, leading to some serious misinformation (I would almost call it urban legend...). Massimo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SQL Freetext
can 'contains'be used to span multiple fts catalogs and return rows and ranks ? - Original Message - From: Philip Arnold To: CF-Talk Sent: Sunday, February 15, 2004 8:08 PM Subject: RE: SQL Freetext I'm presuming you're using SQL Server Why aren't you using CONTAINS()? It's a lot easier to read than using the FREETEXTTABLE() function IMO -Original Message- From: admin [mailto:[EMAIL PROTECTED] Sent: 15 February 2004 19:22 To: CF-Talk Subject: sot: SQL Freetext Just wondering if any one has some examples of how I can do the following. I need to do a freetext search on two tables and return the selections by rank - this is what I came up with but of course gets a syntax error (no sql manual around today !) - any suggestions would be much appreciated. SELECT name, FROM table1 as ft_tbl, table2 as ft_tbl2 INNER JOIN freetextTABLE (table1,*,'widget',100) AS KEY_TBL ON ft_tbl.ID = KEY_TBL.[KEY], INNER JOIN freetextTABLE (table2,*,'wifget',100) AS KEY_TBL2 ON ft_tbl2.ID = KEY_TBL2.[KEY] ORDER BY KEY_TBL.RANK, namet asc Cheers Richard [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: SQL Freetext
can 'contains'be used to span multiple fts catalogs and return rows and ranks ? To be honest, I don't know, as I always use FTS on one field and search just for that, returning in an order that I require... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFML/ASP equivalents
Does anyone know of a resource that shows the ASP equivalents for CFML?Like what is the ASP equivalent for CFPARAM?A chart would be great.I've Googled it but haven't found anything. Thanks, Chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Opening File in Associated Software
Thank you, everyone!Works great.I'd kinda like to get rid of the IE open/save confirmation box that pops up.Even when unchecking Always ask before opening this type of file, it still asks. Anyway.Thanks again. -Brad -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 2:45 PM To: CF-Talk Subject: Re: Opening File in Associated Software Do NOT use the correct mime-type if you want to force a downloadin a lot of cases it will either open the file in the browser OR allow download but with the wrong file extension or name. Use this: cfheader name=Content-type value=application/octet-stream cfheader name=Content-Disposition value='attachment; filename=#FileName#' !--- if this fouls up in various browsers...try trailing slash in file attribute below --- cfcontent file=#FullFilePath.Value# type=application/octet-stream The mime-type of application/octet-stream will fake out the browser and force a download. This code above has been tested on CFMX 6.1 on Windows 200 Advanced Server and Linux Red Hat 9.x with Apache.I've tried it with varioud document, image, audio, and video file types Enjoy!! Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: [EMAIL PROTECTED] To: CF-Talk Sent: Monday, February 16, 2004 11:16 AM Subject: RE: Opening File in Associated Software yup, 'cept use application/unknown as the mime type.Along with CFHEADER NAME=Content-Disposition VALUE='Inlinefilename=foo.xxx' may get windblows/IE to use the users file associtaions to open the file. Doug -Original Message- From: Rob Rohan [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 2:10 PM To: CF-Talk Subject: RE: Opening File in Associated Software Do you mean: Add a cfcontent with the proper file type (text/csv, application/csv) and that should launch the assigned viewer. (a small list of content types) http://www.geocities.com/dtmcbride/tech/filetype.html For example: cfsetting enablecfoutputonly=yes cfcontent type=text/csvcfoutput TEST,ONE,TWO,THREE 123,1,2,3 /cfoutput On Mon, 2004-02-16 at 10:52, Brad Roberts wrote: I'm basically trying to open a specific file from the browser, in it's associated program. In this case, a file created in SureThing CD Labeler.This is an intranet application, so we have access to anything we might need (registry, etc.) -Brad -Original Message- From: Rob Rohan [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:41 PM To: CF-Talk Subject: Re: Opening File in Associated Software On Mon, 2004-02-16 at 06:52, Brad Roberts wrote: We use SureThing CD Labeler for labeling various media.The program will take a CSV file as a datasource.I've created a CF app to input data and create CSV files for the labeling program, but I would like to be able to open specific files (in SureThing CD Labeler) from the browser. Anyone have suggestions? (I assume you are talking about winders) I don't think you can control this from the server side. If you could, that would be quite a hack (format c: open with command.com \c)! but you can put instructions on how to go into file associations and assign file types (.cvs) to specific programs. (Tools, folder options, file types I think) -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Calling CFC from C# or Java?
Are there any facilities to using flash remoting with a C# application or Java Application? To be clear I want to call a ColdFusion server from a GUI developed in C# or Java.I am sure I could do it using WebServices, but flash remoting is quite a bit more efficient. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfmailparam Return-Receipt-To
How on earth can I make this piece of code: cfmailparam name=Return-Receipt-To value=#form.mailFrom# actually let the receiving server sent a receipt? Yes, I am using it inside a cfmail tag that works. Maybe I have to use another procedure? Please tell me! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: SQL Freetext
AFAIK CONTAINS on its own cannot span...have you investigated what the Microsoft Search service can do for you? From: Philip Arnold [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 13:05 To: CF-Talk Subject: RE: SQL Freetext can 'contains'be used to span multiple fts catalogs and return rows and ranks ? To be honest, I don't know, as I always use FTS on one field and search just for that, returning in an order that I require... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
textarea field limit
Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Transfer to Mac OS X Server
Sangeeta , I do all my CFMX development on OS X. I really don't see much difference between running JRun/CFMX on Windows and Mac. I changed the install directories from /opt/jrun4 to /Applications/jrun4 and /opt/cfmx to /Applications/cfmx. It isn't necessary but to work in /opt you need to be root, and the Finder (the Mac equivalent to Windows Explorer) by default hides a lot of those directories (/etc, /opt, /var) from the user thus it's much harder to work in them. From inside the JRun and CFMX admins, the only difference you'll really notice is that your directory delimiter is different, from \ on Windows to / on the Mac OS. I wonder about your save all the database in db folder statement. Are you using MDB files (from Access)? If so, you'll need to find some other option. There really is no comparable db in the Mac world that is usable by ColdFusion. MySQL will run just fine (get the distribution from http://www.entropy.ch/) but there's no built in GUI. However there are a number of excellent third-party JDBC interfaces available (SQLGrinder, phpmyadmin, sql4x). OS X uses Apache as it's web server and has that installed by default. The default location for the server (http://localhost/) webroot is /Library/Webserver/Documents, but user's web documents (http://localhost/~username) are in /Users/username/Sites. In my experience this doesn't really lend itself to portable development. I set up aliases to localhost using Netinfo Manager and an Apache configuration file with NamedVirtualHosts (if you save this into /private/etc/httpd/users/ any upgrades to the OS won't overwrite them). I'm sure I left something out... -- Howard Fore, [EMAIL PROTECTED] The basic tool for the manipulation of reality is the manipulation of words.If you can control the meaning of words, you can control the people who must use the words. (Philip K. Dick) On Feb 17, 2004, at 1:56 AM, Sangeeta Karmokar wrote: Can anyone help me Please Intially I was working on PC so Coldfusion Server was running on PC, but now in my office they have shifted PC to Mac OS X. You know in PC how we cansave all database in db folder and cfm pages in WWWroot folder of the server and then later from Admin section we can map the folder. but in Mac Server I am not sure where to save the database files and cfm files? I know we have to create a separate server for each project but where to save the database file and cfm pages and how to map it? I will be thankful if you can help me Regards Sangeeta [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea field limit
Sure is, this is what I wrote, but I am sure it can be tweaked to be better;it fires off of the onKeyDown method for a text area function check_input_length(){ var the_counter; the_counter = eval(199 - (document.lookup_form.note_text.value.length + 1)); if (the_counter 0){ document.all.counter_cell.innerHTML = 0 } else{ document.all.counter_cell.innerHTML = the_counter; } if (the_counter = 0){ document.lookup_form.note_text.value = document.lookup_form.note_text.value.slice(0,199) } } HTH John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:28 AM To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea field limit
Only in _javascript_ function limitSize(obj,len,label){ if(obj.value.length len){ obj.value = obj.value.slice(0,len); if(label) alert(label + can be max. + len + characters long!); } } You can call this function in the js form validation and/or in the events of the textarea directly: textarea cols=50 rows=5 name=ORG_DESC_ACTIVITY wrap=soft description of the organisation\'s activities and objectives'); > description of the organisation\'s activities and objectives');/textarea -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 februari 2004 14:28 To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea field limit
Thanks John. I'm new to _javascript_ some what. Is the 199 the limit of the number of characters? RO -Original Message- From: John Stanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:38 AM To: CF-Talk Subject: RE: textarea field limit Sure is, this is what I wrote, but I am sure it can be tweaked to be better;it fires off of the onKeyDown method for a text area function check_input_length(){ var the_counter; the_counter = eval(199 - (document.lookup_form.note_text.value.length + 1)); if (the_counter 0){ document.all.counter_cell.innerHTML = 0 } else{ document.all.counter_cell.innerHTML = the_counter; } if (the_counter = 0){ document.lookup_form.note_text.value = document.lookup_form.note_text.value.slice(0,199) } } HTH John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:28 AM To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmailparam Return-Receipt-To
This should work, but AFAIK it is not the mail-server that is sending a receipt, but the recipients mail client Pascal Peters Certified ColdFusion MX Advanced Developer Macromedia Certified Instructor LR Technologies Av. E. De Mot, 19 1000 BRUSSELS, BELGIUM Tel: +32 2 639 68 70 Fax: +32 2 639 68 99 Email: [EMAIL PROTECTED] Web: www.lrt.be -Original Message- From: Wim Lemmens [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 februari 2004 13:18 To: CF-Talk Subject: cfmailparam Return-Receipt-To How on earth can I make this piece of code: cfmailparam name=Return-Receipt-To value=#form.mailFrom# actually let the receiving server sent a receipt? Yes, I am using it inside a cfmail tag that works. Maybe I have to use another procedure? Please tell me! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Flash, java file uploading applet
Does anyone use a flash or java client file uploading applet? I've been looking about at a few for a while now and none I've seen have quite been what I'm looking for. Criteria Must work in IE/mozilla/Safari on PC and or Mac Needs an upload progress status indicator Will integrate with CF Preferably flash, but java will do. Anyone got any suggestions or use something that matches the criteria? Craig Dudley Senior Developer Netstep Corporate Communications Ltd Direct Line: +44(0) 1422 319712 Phone: +44(0) 1422 200308 Fax: +44(0) 1422 200306 e-mail: [EMAIL PROTECTED] MS Messenger: [EMAIL PROTECTED] www: www.netstep.co.uk [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea field limit
Yea, that's my arbitrary limit. Was dealing with a sql 6.5 db. You can expand that number to whatever you need. Just make sure that the id of the text field matches the object reference, and that the form name matches as well. You dont have to use my names, but just change the function to whever yours are called. The counter cell refers to a cell that I used to visually tell the user how many characters they had left to type as they are typing. -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:37 AM To: CF-Talk Subject: RE: textarea field limit Thanks John. I'm new to _javascript_ some what. Is the 199 the limit of the number of characters? RO -Original Message- From: John Stanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:38 AM To: CF-Talk Subject: RE: textarea field limit Sure is, this is what I wrote, but I am sure it can be tweaked to be better;it fires off of the onKeyDown method for a text area function check_input_length(){ var the_counter; the_counter = eval(199 - (document.lookup_form.note_text.value.length + 1)); if (the_counter 0){ document.all.counter_cell.innerHTML = 0 } else{ document.all.counter_cell.innerHTML = the_counter; } if (the_counter = 0){ document.lookup_form.note_text.value = document.lookup_form.note_text.value.slice(0,199) } } HTH John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:28 AM To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: textarea field limit
Nice little script... I was about to write something very similar myself, but now I'm just gonna pinch yours.;oD Thank a lot... Stephen Pascal Peters wrote: Only in _javascript_ function limitSize(obj,len,label){ if(obj.value.length len){ obj.value = obj.value.slice(0,len); if(label) alert(label + can be max. + len + characters long!); } } You can call this function in the js form validation and/or in the events of the textarea directly: textarea cols=50 rows=5 name=ORG_DESC_ACTIVITY wrap=soft description of the organisation\'s activities and objectives'); > description of the organisation\'s activities and objectives');/textarea -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 februari 2004 14:28 To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea field limit
Yep, thats one to noteif you pass the form/field name in as arguments it will more generic... _ From: John Stanley [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 13:47 To: CF-Talk Subject: RE: textarea field limit Yea, that's my arbitrary limit. Was dealing with a sql 6.5 db. You can expand that number to whatever you need. Just make sure that the id of the text field matches the object reference, and that the form name matches as well. You dont have to use my names, but just change the function to whever yours are called. The counter cell refers to a cell that I used to visually tell the user how many characters they had left to type as they are typing. -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:37 AM To: CF-Talk Subject: RE: textarea field limit Thanks John. I'm new to _javascript_ some what. Is the 199 the limit of the number of characters? RO -Original Message- From: John Stanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:38 AM To: CF-Talk Subject: RE: textarea field limit Sure is, this is what I wrote, but I am sure it can be tweaked to be better;it fires off of the onKeyDown method for a text area function check_input_length(){ var the_counter; the_counter = eval(199 - (document.lookup_form.note_text.value.length + 1)); if (the_counter 0){ document.all.counter_cell.innerHTML = 0 } else{ document.all.counter_cell.innerHTML = the_counter; } if (the_counter = 0){ document.lookup_form.note_text.value = document.lookup_form.note_text.value.slice(0,199) } } HTH John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:28 AM To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. _ _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmailparam Return-Receipt-To
Read confirmations are sent by the receipients mail client, but delivery reports are not. If you send a mail with a request for a delivery report to a Hotmail address (or any other webmail), you receive the report even if the user didn't read the mail. Wim. -- Origineel Bericht -- Date: Tue, 17 Feb 2004 14:43:50 +0100 From: Pascal Peters [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: RE: cfmailparam Return-Receipt-To This should work, but AFAIK it is not the mail-server that is sending a receipt, but the recipients mail client Pascal Peters Certified ColdFusion MX Advanced Developer Macromedia Certified Instructor LR Technologies Av. E. De Mot, 19 1000 BR SSELS, BELGIUM Tel: +32 2 639 68 70 Fax: +32 2 639 68 99 Email: [EMAIL PROTECTED] Web: www.lrt.be -Original Message- From: Wim Lemmens [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 februari 2004 13:18 To: CF-Talk Subject: cfm ilparam Return-Receipt-To How on earth can I make this piece of code: cfmailparam name=Return-Receipt-To value=#form.mailFrom# actually let the receiving server sent a receipt? Yes, I am using it inside a cfmail tag that work . Maybe I have to use another procedure? Please tell me! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea field limit
Thanks John all for the advice. RO -Original Message- From: John Stanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:47 AM To: CF-Talk Subject: RE: textarea field limit Yea, that's my arbitrary limit. Was dealing with a sql 6.5 db. You can expand that number to whatever you need. Just make sure that the id of the text field matches the object reference, and that the form name matches as well. You dont have to use my names, but just change the function to whever yours are called. The counter cell refers to a cell that I used to visually tell the user how many characters they had left to type as they are typing. -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:37 AM To: CF-Talk Subject: RE: textarea field limit Thanks John. I'm new to _javascript_ some what. Is the 199 the limit of the number of characters? RO -Original Message- From: John Stanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:38 AM To: CF-Talk Subject: RE: textarea field limit Sure is, this is what I wrote, but I am sure it can be tweaked to be better;it fires off of the onKeyDown method for a text area function check_input_length(){ var the_counter; the_counter = eval(199 - (document.lookup_form.note_text.value.length + 1)); if (the_counter 0){ document.all.counter_cell.innerHTML = 0 } else{ document.all.counter_cell.innerHTML = the_counter; } if (the_counter = 0){ document.lookup_form.note_text.value = document.lookup_form.note_text.value.slice(0,199) } } HTH John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:28 AM To: CF-Talk Subject: textarea field limit Is there any way to limit how much text is put into a textarea field via a form? I want to prevent too many characters from being typed in similar to the maxlength field in a onle line text box. Thx. Robert O. _ _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Cfcontent error
I have the following error on MX 6.1/Win when I serve up a PDF file with cfcontent and press the Cancel button in the IE save file dialog box: The cause of this output exception was that: java.net.SocketException: Connection reset by peer: socket write error If I choose to save or open the file, everything is fine. Here's the code: cfset filename = GetFileName(attributes.documentid) cfset serverFilename = attributes.documentid .pdf cfheader name= Content-Disposition value = attachment; filename=#filename# cfcontent type=application/pdf file=#request.documentsDir#\#serverFilename# deletefile=No Thanks for any tips! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: MACH II is what Macromedia used for building their website...
What I'd like to see is some processes and experiences that folks have gone through while developing their methodologies and frameworks. Sort of what Matt has started on his blog (looking forward to the next bit): http://devilm.com/ - Calvin - Original Message - From: Massimo Foti To: CF-Talk Sent: Tuesday, February 17, 2004 6:23 AM Subject: Re: MACH II is what Macromedia used for building their website... From: Krassy [EMAIL PROTECTED] You might want to have a look at Fusebox and MACH II. (MACH II is what Macromedia used for building their website) Krassy Lyakov web.developer http://www.krassycandoit.com MM employee sole-trader's to write their website ? How does shee know what they use ? Well, in my opinion it doesn't matter if she knows or not (she clearly doesn't). The point is that ordinary people out there will start believing saying this sort of things, leading to some serious misinformation (I would almost call it urban legend...). Massimo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
JAI Image resize gives rubbish images.
Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. I've used and got working Matt Liota's ImageUtils cfc example/article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/ Only trouble is the thumbnails it generates are of less that great quality.Does anyone know how I could increase the quality of the thumbs it creates??Its something to do with the Interpolation, but I couldn't work out exactly what or how... :o/ TIA Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfx_xslt problem (urgent)
This might be a stupid question, but are you sure your XSL file and your original XML file are both well-formed? Even if they are not, the parser should be good enough to parse what it can and ignore with notes of what it can't. Same as when we write a program we need to add data validation element. Reasonable? Unfortunately for you, that's not how XML parsers work. If a file isn't well-formed, for any reason at all, the XML parser will not recognize it as XML. In fact, you could argue that it's not XML if it's not well-formed - it just looks a lot like XML. This is one of the defining characteristics of XML, and is one of the reasons for its ubiquity. XML parsers can be much smaller than HTML parsers, for example, because they are intolerant of malformed documents. Besides, in this case, the XSL files are not up to me whether they are well-formed or not. If you're getting them from somewhere else, they probably are well-formed, but perhaps you're appending data to them accidentally. For example, it's common to accidentally append debug output when serving XML documents via CF. Thank for the great info. I haven't looked at / familarize myself with these new tags. Funny, when I viewed sample for the XMLtransform tag, I got an another MM error (they guys don't seem to give a sh?? these days or is it just me?) URL, http://examples.macromedia.com/coldfusion/xmltransform/? I didn't see any errors there. Fortunately, there isn't much about XMLTransform that you need to know to use it, usually. 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]
Re:Administrator mapping not working
This method does work. However, I am not sure why it doesn't work as designed out of the box.This worked fine under CF5 and is supposed to work the same way under CFMX.We should not have to move those files under the web root. Also, I still have the issue with GetCurrentTemplatePath() including the path above the symbolic link.Did MX change the way it interprets symbolic links?This is a huge problem for our architecture.We were expecting code changes to convert from CF5 to CFMX like named parameters on stored procs, but not things dealing with path information. Thanks in advance. I added this to my site (www.actcfug.com) back in September. Hope it assists. My CFFORM are creating JS errors at the browser level in a ColdFusion MX hosted environment. Why? Thursday, 18 September, 2003 In a dedicated or hosted ColdFusion environment you will more often than not, for security reasons, find that your host has moved some crucial folders required by MX from an area directly accessible from your own web root. There are many valid reasons for doing this - but a key side-affect is that whenever you use the CFMX built-in form validation of the CFFORM tag - your page will produce JS errors because the location CF expects the crucial _javascript_ libraries is no longer accessible. Under CFMX the scriptsrc tag is a new feature added to the CFFORM tag, for example: cfform scriptsrc=lib/cfform.js name=MembersLogin action=""> But I just discovered an easier way that will allow you to continue to freely use the CFFORM functions of field validation WITHOUT having to - unless extreme circumstances - use it as we did with CF5 and earlier. I ran into this problem with a rather large application (over 5Mb compressed) called FuseTalk (http://www.fusetalk.com) but fixed the problem by doing the following: 1. In your wwwroot\mysite\ folder create a folder called cfide. You should now have, say a c:\inetpub\wwwroot\cfide\ folder. 2. As a sub directory in this folder create a folder called scripts. You should now have, say a c:\inetpub\wwwroot\cfide\scripts\ folder. 3. Copy the two key .js files that CFMX already puts in the wwwroot\cfide\scripts folder and copy them up to your current development/production site. Copy ONLY those two files. Your own cfforms should now work as intended by Macromedia - and FuseTalk also without have to finde/replace any instance of CFFORM and add the SCRIPTSRC attribute. I'm sure MANY FuseTalk templates use the CFFORM tag so this is the best way to make sure ALL of your apps, not just FuseTalk, will work with no more form validation/_javascript_ errors. My next step is to put my own scripts in the same folder - wwwroot\mysite\cfide\scripts\ and see what happens. NOTE: Linux/Unix users may need to retain CASE for folder names. CFIDE is uppercase but the SCRIPTS and script filenames are lowercase. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JAI Image resize gives rubbish images.
In the Java class you can replace InterpolationNearest with anyone of the following classes if you are looking to try different algorithms. InterpolationBicubic InterpolationBicubic2 InterpolationBilinear -Matt On Feb 17, 2004, at 9:27 AM, Stephen Moretti wrote: Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. I've used and got working Matt Liota's ImageUtils cfc example/article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/ 33907/ Only trouble is the thumbnails it generates are of less that great quality.  Does anyone know how I could increase the quality of the thumbs it creates??  Its something to do with the Interpolation, but I couldn't work out exactly what or how... :o/ TIA Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Source control ans Studio 5
Hello all, Has anyone used PVCS with CF Studio 5? I have a project created in CFS Studio, it's mapped to PVCS.There are no errors, but opening a directory takes forever, and I'm not able to check out files - the option is greyed out on the right-click popup. Opening the same diretory in Windows Explorer takes a couple seconds. In CF Studio 5 it can take 8 or 9 minutes to load the project, then diretcory changes within the project take another two or three minutes. The project repository and the code directories are on mapped drives over TCP/IP through a VPN. I'm not sure what else to tell you :) Any ideas? I'm pretty stumped here. Thanks! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Looking for URL RegEx
In my scenario I am searching for any url within a string of text and then removing it. I am not familiar with how to begin using the method you speak of. Do you know of any documentation out there for that? Josen I just create an instance of java.net.URL with the supplied URL string. It is able to validate that the URL is correct and has many methods of interacting with URLs, which I find to be much more useful than a RegEx. -Matt On Feb 16, 2004, at 3:52 PM, Josen Ruiseco wrote: I am looking for a regular _expression_ that captures a domain name within a url. It needs to consider all the possible variations of a domain name, ie. domain.com, www.domain.com, www.domain.co.uk, domain.biz, etc. Does anyone have that written already? Thanks... Josen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Source control ans Studio 5
I've done it with Networked drives. At the City of Los Angeles, I was in the office with the server and some other programmers were in an office a few blocks away. (PVCS 6 using CFStudio 5).PVCS was on a Unix Box. My connect times were pretty good, theirs were fairly slow.I would say it is the VPN that is probably slowing you down. _ From: Jeff Beer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 10:08 AM To: CF-Talk Subject: Source control ans Studio 5 Hello all, Has anyone used PVCS with CF Studio 5? I have a project created in CFS Studio, it's mapped to PVCS.There are no errors, but opening a directory takes forever, and I'm not able to check out files - the option is greyed out on the right-click popup. Opening the same diretory in Windows Explorer takes a couple seconds. In CF Studio 5 it can take 8 or 9 minutes to load the project, then diretcory changes within the project take another two or three minutes. The project repository and the code directories are on mapped drives over TCP/IP through a VPN. I'm not sure what else to tell you :) Any ideas? I'm pretty stumped here. Thanks! _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Looking for URL RegEx
In that case, a RegEx would be the best way. -Matt On Feb 17, 2004, at 9:15 AM, Josen Ruiseco wrote: In my scenario I am searching for any url within a string of text and then removing it. I am not familiar with how to begin using the method you speak of. Do you know of any documentation out there for that? Josen I just create an instance of java.net.URL with the supplied URL string. It is able to validate that the URL is correct and has many methods of interacting with URLs, which I find to be much more useful than a RegEx. -Matt On Feb 16, 2004, at 3:52 PM, Josen Ruiseco wrote: I am looking for a regular _expression_ that captures a domain name within a url. It needs to consider all the possible variations of a domain name, ie. domain.com, www.domain.com, www.domain.co.uk, domain.biz, etc. Â Â Does anyone have that written already? Â Â Thanks... Â Â Josen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Carrying WDDX packet from form to form.
Where are client variables stored? Troy Tony Weeg wrote: cant you just store the wddx packet in an client variable...then just refer to it on the next page as such? tony r e v o l u t i o n w e b d e s i g n [EMAIL PROTECTED] www.revolutionwebdesign.com its only looks good to those who can see bad as well -anonymous -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 9:12 PM To: CF-Talk Subject: Carrying WDDX packet from form to form. All, I would like to carry a WDDX packet from one form to another form to another form, etc. Is this the way to do it? !--- Convert bean to WDDX Packet --- cfwddx action="" input=#bean.getArgs()# output=wddxBean usetimezoneinfo=yes form ... !--- Hide bean in the form --- input name=wddxBean type=hidden value=#HTMLEditFormat(wddxBean)# /form Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Carrying WDDX packet from form to form.
Database, Registry or Cookie depending on your application/server settings. - Calvin - Original Message - From: Troy Simpson To: CF-Talk Sent: Tuesday, February 17, 2004 10:40 AM Subject: Re: Carrying WDDX packet from form to form. Where are client variables stored? Troy Tony Weeg wrote: cant you just store the wddx packet in an client variable...then just refer to it on the next page as such? tony r e v o l u t i o n w e b d e s i g n [EMAIL PROTECTED] www.revolutionwebdesign.com its only looks good to those who can see bad as well -anonymous -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 9:12 PM To: CF-Talk Subject: Carrying WDDX packet from form to form. All, I would like to carry a WDDX packet from one form to another form to another form, etc. Is this the way to do it? !--- Convert bean to WDDX Packet --- cfwddx action="" input=#bean.getArgs()# output=wddxBean usetimezoneinfo=yes form ... !--- Hide bean in the form --- input name=wddxBean type=hidden value=#HTMLEditFormat(wddxBean)# /form Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Update an XML file with CFMX
Hi all, I have a really simple app. for which I am storing config values in an XML file. I am parsing the values with no problems, but I now have questions about writing to it. Is there an easy way to change the value of a particular node with CF Functions or must I actually re-write the entire file with CFFILE? Thanks jw [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: JAI Image resize gives rubbish images.
Hi Stephen, To increase the quality of the images you need to add a new JPEGEncodeParam: Add this before your ParameterBlock() and before the JAI.create(). JPEGEncodeParam encodeParam = new JPEGEncodeParam(); encodeParam.setQuality(quality); Where quality is a float. I belive 0.0 is crap and 1 is great, can't remember though. Adam. -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 14:28 To: CF-Talk Subject: JAI Image resize gives rubbish images. Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. I've used and got working Matt Liota's ImageUtils cfc example/article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/ Only trouble is the thumbnails it generates are of less that great quality.Does anyone know how I could increase the quality of the thumbs it creates??Its something to do with the Interpolation, but I couldn't work out exactly what or how... :o/ TIA Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JAI Image resize gives rubbish images.
Cheers Matt and Adam, Adam I believe you are correct from what I remember of the brain-bleeding reading I've been doing! Stephen Adam Hope wrote: Hi Stephen, To increase the quality of the images you need to add a new JPEGEncodeParam: Add this before your ParameterBlock() and before the JAI.create(). JPEGEncodeParam encodeParam = new JPEGEncodeParam(); encodeParam.setQuality(quality); Where quality is a float. I belive 0.0 is crap and 1 is great, can't remember though. Adam. -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 14:28 To: CF-Talk Subject: JAI Image resize gives rubbish images. Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. I've used and got working Matt Liota's ImageUtils cfc example/article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/ Only trouble is the thumbnails it generates are of less that great quality.Does anyone know how I could increase the quality of the thumbs it creates??Its something to do with the Interpolation, but I couldn't work out exactly what or how... :o/ TIA Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JAI Image resize gives rubbish images.
That is obviously only true if the output format is JPEG. BTW, since it seems people are using this code and there clearly needs to be some updates, what do you think about putting the code up on OpenXCF and contributing the changes. I am happy to relicense my original work if others are willing to contribute. -Matt On Feb 17, 2004, at 10:50 AM, Adam Hope wrote: Hi Stephen, To increase the quality of the images you need to add a new JPEGEncodeParam: Add this before your ParameterBlock() and before the JAI.create(). JPEGEncodeParam encodeParam = new JPEGEncodeParam(); encodeParam.setQuality(quality); Where quality is a float. I belive 0.0 is crap and 1 is great, can't remember though. Adam. -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 14:28 To: CF-Talk Subject: JAI Image resize gives rubbish images. Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. I've used and got working Matt Liota's ImageUtils cfc example/article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/ 33907/ Only trouble is the thumbnails it generates are of less that great quality.  Does anyone know how I could increase the quality of the thumbs it creates??  Its something to do with the Interpolation, but I couldn't work out exactly what or how... :o/ TIA Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
ID awkaly... thanks
Yours ID ojhybidol -- Thank [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Source control ans Studio 5
We use Studio/VSS and it works fine, except over the VPN, when it slows right down to unworkable, both opening the project and opening individual files. It seemed to be a bit quicker using the VSS client to do checkin/checkout, but was still dog slow. Not sure why the right click option would be greyed out though. Sorry - have't got a solution, but i'd agree with Sandy that the VPN is probably the bottleneck. Cheers Bert -Original Message- From: Sandy Clark [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 15:16 To: CF-Talk Subject: RE: Source control ans Studio 5 I've done it with Networked drives. At the City of Los Angeles, I was in the office with the server and some other programmers were in an office a few blocks away. (PVCS 6 using CFStudio 5).PVCS was on a Unix Box. My connect times were pretty good, theirs were fairly slow. I would say it is the VPN that is probably slowing you down. _ From: Jeff Beer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 10:08 AM To: CF-Talk Subject: Source control ans Studio 5 Hello all, Has anyone used PVCS with CF Studio 5? I have a project created in CFS Studio, it's mapped to PVCS. There are no errors, but opening a directory takes forever, and I'm not able to check out files - the option is greyed out on the right-click popup. Opening the same diretory in Windows Explorer takes a couple seconds. In CF Studio 5 it can take 8 or 9 minutes to load the project, then diretcory changes within the project take another two or three minutes. The project repository and the code directories are on mapped drives over TCP/IP through a VPN. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
In asp it would just be setting a declaring a var Eample: Dim myString As String I have not really seen any site or book with the chart you are seeking. Pick up a cheap ASP 3 book. Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 5:03 AM To: CF-Talk Subject: CFML/ASP equivalents Does anyone know of a resource that shows the ASP equivalents for CFML? Like what is the ASP equivalent for CFPARAM?A chart would be great.I've Googled it but haven't found anything. Thanks, Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Administrator mapping not working
Actually, this isn't working for me.IE was not reporting the _javascript_ error, but when I try it in Mozilla I still see the same error in the _javascript_ console.The error is: Error:_CF_hasValue is not defined. This is one of the functions in cfform.js.The previous poster asked what the log file states as the location of cfform.js.I do not see cfform.js mentioned in any of my log files. Thanks again... I added this to my site (www.actcfug.com) back in September. Hope it assists. My CFFORM are creating JS errors at the browser level in a ColdFusion MX hosted environment. Why? Thursday, 18 September, 2003 In a dedicated or hosted ColdFusion environment you will more often than not, for security reasons, find that your host has moved some crucial folders required by MX from an area directly accessible from your own web root. There are many valid reasons for doing this - but a key side-affect is that whenever you use the CFMX built-in form validation of the CFFORM tag - your page will produce JS errors because the location CF expects the crucial _javascript_ libraries is no longer accessible. Under CFMX the scriptsrc tag is a new feature added to the CFFORM tag, for example: cfform scriptsrc=lib/cfform.js name=MembersLogin action=""> But I just discovered an easier way that will allow you to continue to freely use the CFFORM functions of field validation WITHOUT having to - unless extreme circumstances - use it as we did with CF5 and earlier. I ran into this problem with a rather large application (over 5Mb compressed) called FuseTalk (http://www.fusetalk.com) but fixed the problem by doing the following: 1. In your wwwroot\mysite\ folder create a folder called cfide. You should now have, say a c:\inetpub\wwwroot\cfide\ folder. 2. As a sub directory in this folder create a folder called scripts. You should now have, say a c:\inetpub\wwwroot\cfide\scripts\ folder. 3. Copy the two key .js files that CFMX already puts in the wwwroot\cfide\scripts folder and copy them up to your current development/production site. Copy ONLY those two files. Your own cfforms should now work as intended by Macromedia - and FuseTalk also without have to finde/replace any instance of CFFORM and add the SCRIPTSRC attribute. I'm sure MANY FuseTalk templates use the CFFORM tag so this is the best way to make sure ALL of your apps, not just FuseTalk, will work with no more form validation/_javascript_ errors. My next step is to put my own scripts in the same folder - wwwroot\mysite\cfide\scripts\ and see what happens. NOTE: Linux/Unix users may need to retain CASE for folder names. CFIDE is uppercase but the SCRIPTS and script filenames are lowercase. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Administrator mapping not working
On Tuesday 17 February 2004 15:16 pm, Alisa Thomson wrote: This is one of the functions in cfform.js.The previous poster asked what the log file states as the location of cfform.js.I do not see cfform.js mentioned in any of my log files. What is the actual HTML that has ended up for the form tag(s) ? Does it reference cfform.js anywhere ? -- 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: CFML/ASP equivalents
I've got a cheap ASP book but the index is poor and I'm wasting a lot of time hunting for info.A comparison would be easier/more useful. Also, I didn't think that the Dim statement really replicates the way a CFPARAM tag sets a default value if the variable is undefined.Won't Dim overwrite the variable if it already exists?These are the kinds of things I'd like to know as a CF developer who occasionally needs to work with ASP.Maybe I just need to make a web site ASP for CF Developers... Chris -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:16 AM To: CF-Talk Subject: RE: CFML/ASP equivalents In asp it would just be setting a declaring a var Eample: Dim myString As String I have not really seen any site or book with the chart you are seeking. Pick up a cheap ASP 3 book. Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 5:03 AM To: CF-Talk Subject: CFML/ASP equivalents Does anyone know of a resource that shows the ASP equivalents for CFML? Like what is the ASP equivalent for CFPARAM?A chart would be great.I've Googled it but haven't found anything. Thanks, Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: new version of the cfeclipse plugin (1.1.0)
On Tue, 2004-02-17 at 00:51, John Beynon wrote: Just put the 1.1 plugin into my plugins directory. I get tag insight but none of the new shortcut keys work...could it be me? What OS - winders, mac, linux? did you download the M7 version of eclipse? - email me off list and I'll see if I can help. -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Anybody used Firebird, the database
Anybody ever seen or used this? http://www.firebirdsql.org/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cf web app on a cd?
Hi all, Done quite a bit of research on this and have come up empty so far. We have a client that would like to put his CF/SQL Server web app onto a cd for distribution. Is this possible? I found one product that can move asp web apps to a cd, but nothing for CF. Thanks, --Nathan __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfx_xslt problem (urgent)
I now believe both CFX_XSLT tag and MM's XmlTranform tag work, it's just that late last night, sort of new to this thing + late night (couldn't think straight), the URL I was using last night was invalid, and I failed to debug to see if the CFHTTP call is successful. Now, CF script (url.releaseID value is given by a previous link, which is ok) cfhttp URL=""> cffile action="" file=C:\intel\wrt\ccbn\xsl\PressReleaseText.xsl variable=ccbnxsl debug:br cfoutputLength of raw data: #Len(cfhttp.FileContent)# p raw data:br #cfhttp.FileContent# /cfoutput p xml transformed HTML output below:br cfoutput#xmltransform(cfhttp.FileContent,ccbnxsl)#/cfoutput XSL file: !--' INCLUDES ''-- xsl:include href=""> !--' OUTPUT MEHTOD ''-- xsl:output method=html omit-xml-declaration=yes indent=yes standalone=no/ !--'' MAIN TEMPLATE ''-- xsl:template match=/ xsl:call-template name=GeneratePressReleaseText/!--page-level template-- /xsl:template !--' ''-- xsl:template name=GeneratePressReleaseText table width=100% border=0 cellpadding=3 cellspacing=1 tr class=modBgTblTtl td valign=top class=modTblTtlxsl:value-of select=/*/NewsReleaseText/Title//td /tr tr class= td valign=top width=100% class=modBodyTextxsl:value-of select=/*/NewsReleaseText/ReleaseText disable-output-escaping=yes//td /tr /table /xsl:template !--' ''-- /xsl:stylesheet UA Results: IE6 failed to dispaly, Netscape6 display cfhttp call raw data, but xml transformed HTML nothing I sort of suspect the XSL file is culprit.Further thought?Thanks. On Mon, 2004-02-16 at 20:18, Chunshen Li wrote: Now.Rob, both CFX_XSLT tag and MM's XmlTranform tag failed.Same err msg as I posted before.What could be my best bet?Thanks. Don How are you passing them in can you post the code please -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfx_xslt problem (urgent)
Dave, Please elaborate on it's common to accidentally append debug output when serving XML documents via CF..Thanks. Don This might be a stupid question, but are you sure your XSL file and your original XML file are both well-formed? Even if they are not, the parser should be good enough to parse what it can and ignore with notes of what it can't. Same as when we write a program we need to add data validation element. Reasonable? Unfortunately for you, that's not how XML parsers work. If a file isn't well-formed, for any reason at all, the XML parser will not recognize it as XML. In fact, you could argue that it's not XML if it's not well-formed - it just looks a lot like XML. This is one of the defining characteristics of XML, and is one of the reasons for its ubiquity. XML parsers can be much smaller than HTML parsers, for example, because they are intolerant of malformed documents. Besides, in this case, the XSL files are not up to me whether they are well-formed or not. If you're getting them from somewhere else, they probably are well-formed, but perhaps you're appending data to them accidentally. For example, it's common to accidentally append debug output when serving XML documents via CF. Thank for the great info. I haven't looked at / familarize myself with these new tags. Funny, when I viewed sample for the XMLtransform tag, I got an another MM error (they guys don't seem to give a sh?? these days or is it just me?) URL, http://examples.macromedia.com/coldfusion/xmltransform/? I didn't see any errors there. Fortunately, there isn't much about XMLTransform that you need to know to use it, usually. 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]
Re: JAI Image resize gives rubbish images.
On Tue, 2004-02-17 at 06:27, Stephen Moretti wrote: Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. if your head ache gets to be greater than 30 bucks you just buy a tag to do it for you http://www.rohanclan.com/cart/sales_item.cfm?ProductID=491CID=151 (demo http://www.rohanclan.com/index.cfm?mode=productproduct=cfximagesize) If you are pressing ever forward, you might want to check out this site http://www.acme.com/ they have code to do gif encoding (as well as some other cool totally unrelated stuff) -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
I just tested this : testVar = Hello World Dim testVar response.write testVar and it still wrote out the value There really isn't anything in asp that works like CFPARAM. Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:47 AM To: CF-Talk Subject: RE: CFML/ASP equivalents I've got a cheap ASP book but the index is poor and I'm wasting a lot of time hunting for info.A comparison would be easier/more useful. Also, I didn't think that the Dim statement really replicates the way a CFPARAM tag sets a default value if the variable is undefined.Won't Dim overwrite the variable if it already exists?These are the kinds of things I'd like to know as a CF developer who occasionally needs to work with ASP. Maybe I just need to make a web site ASP for CF Developers... Chris -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:16 AM To: CF-Talk Subject: RE: CFML/ASP equivalents In asp it would just be setting a declaring a var Eample: Dim myString As String I have not really seen any site or book with the chart you are seeking. Pick up a cheap ASP 3 book. Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 5:03 AM To: CF-Talk Subject: CFML/ASP equivalents Does anyone know of a resource that shows the ASP equivalents for CFML? Like what is the ASP equivalent for CFPARAM?A chart would be great.I've Googled it but haven't found anything. Thanks, Chris _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
What are you trying to do? Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:47 AM To: CF-Talk Subject: RE: CFML/ASP equivalents I've got a cheap ASP book but the index is poor and I'm wasting a lot of time hunting for info.A comparison would be easier/more useful. Also, I didn't think that the Dim statement really replicates the way a CFPARAM tag sets a default value if the variable is undefined.Won't Dim overwrite the variable if it already exists?These are the kinds of things I'd like to know as a CF developer who occasionally needs to work with ASP. Maybe I just need to make a web site ASP for CF Developers... Chris -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:16 AM To: CF-Talk Subject: RE: CFML/ASP equivalents In asp it would just be setting a declaring a var Eample: Dim myString As String I have not really seen any site or book with the chart you are seeking. Pick up a cheap ASP 3 book. Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 5:03 AM To: CF-Talk Subject: CFML/ASP equivalents Does anyone know of a resource that shows the ASP equivalents for CFML? Like what is the ASP equivalent for CFPARAM?A chart would be great.I've Googled it but haven't found anything. Thanks, Chris _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Re:cfx_xslt problem (urgent)
On Tue, 2004-02-17 at 08:05, Chunshen Li wrote: I now believe both CFX_XSLT tag and MM's XmlTranform tag work, it's just that late last night, sort of new to this thing + late night (couldn't think straight), the URL I was using last night was invalid, and I failed to debug to see if the CFHTTP call is successful. Now, CF script (url.releaseID value is given by a previous link, which is ok) cfhttp URL=""> cffile action="" file=C:\intel\wrt\ccbn\xsl\PressReleaseText.xsl variable=ccbnxsl debug:br cfoutputLength of raw data: #Len(cfhttp.FileContent)# p raw data:br #cfhttp.FileContent# /cfoutput p xml transformed HTML output below:br cfoutput#xmltransform(cfhttp.FileContent,ccbnxsl)#/cfoutput Careful here you might want to trim() the file, and I think (depending on your version of MX) you have to xmltransform(XMLParse(cfhttp.FileContent),ccbnxsl) XSL file: !--' INCLUDES ''-- xsl:include href=""> !--' OUTPUT MEHTOD ''-- xsl:output method=html omit-xml-declaration=yes indent=yes standalone=no/ !--'' MAIN TEMPLATE ''-- xsl:template match=/ xsl:call-template name=GeneratePressReleaseText/!--page-level template-- /xsl:template !--' ''-- xsl:template name=GeneratePressReleaseText table width=100% border=0 cellpadding=3 cellspacing=1 tr class=modBgTblTtl td valign=top class=modTblTtlxsl:value-of select=/*/NewsReleaseText/Title//td /tr tr class= td valign=top width=100% class=modBodyTextxsl:value-of select=/*/NewsReleaseText/ReleaseText disable-output-escaping=yes//td /tr /table /xsl:template !--' ''-- /xsl:stylesheet If this is the full XSL file, then you are correct, the file is broken. It's not a full XML document. UA Results: IE6 failed to dispaly, Netscape6 display cfhttp call raw data, but xml transformed HTML nothing I sort of suspect the XSL file is culprit.Further thought?Thanks. Try this just to see if all is well. I am just writing this so there might be errors (I have not run it through cf) !--- basic xslt --- !--- note the ? must be the first thing in the file / variable --- cfsavecontent variable=xmlinput?xml version=1.0 encoding=UTF-8? test messageEat at joes!/message /test /cfsavecontent !--- note the ? must be the first thing in the file / variable --- cfsavecontent variable=xsltinput?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform xsl:output method=html indent=yes encoding=UTF-8/ xsl:template match=/ h2xsl:value-of select=/test/message //h2 /xsl:template /xsl:stylesheet /cfsavecontent cfdump var=#xmlinput# cfdump var=#xsltinput# !--- try both of these --- cfdump var=#XmlTransform(XmlParse(xmlinput),xsltinput)# !--- cfdump var=#XmlTransform(xmlinput,xsltinput)# --- !--- basic xslt --- -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Administrator mapping not working
I have tried several different things.If I do not include scriptSrc in the CFFORM tag and view source, I get /CFIDE/scripts/cfform.js.I also tried adding a new mapping in the administrator called cfscripts that mapped to document_root/scripts then put in the CFFORM...scriptSrc=/cfscripts/cfform.js, so that is the same path I see when I view source.The only thing I have gotten to work is if I copy cfform.js into the application directory as use scriptSrc=cfform.js in the CFFORM.This is not acceptable because I would have to have cfform.js in each of my application directories.So, it sees it if it is local, but not if it is mapped.Because of the problem I am having with GetCurrentTemplatePath() I am still wondering if this is not a symbolic link issue. Thanks. On Tuesday 17 February 2004 15:16 pm, Alisa Thomson wrote: This is one of the functions in cfform.js.The previous poster asked what the log file states as the location of cfform.js.I do not see cfform.js mentioned in any of my log files. What is the actual HTML that has ended up for the form tag(s) ? Does it reference cfform.js anywhere ? -- 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]
Date Format Question
I've got a date-time that is goinmg to be passed to me as this: 2003:12:27 12:19:58 Can anyone suggest the best way to get that into a more friendly format as in.. 12/27/03 12:19pm ?? It obviously won't fit into standard dateformat function. Any ideas I can come up with are complicated. There must be an easy solution? Jeff F [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
I've ran into situations where a site like this would be very valuable. It would be great to take it a step further, with PHP comparisons as well. You could deal with each task (CF tag) individually, as well as compare small sample applications that demonstrated how things works together. I could see this helping CF, ASP, PHP developers who are curious about how do do something in one of the other languages. I think the site would be easy to create if it were a community based, where developers could contribute how you might handle tasks in each language. I'm sure best practices would be something to consider as well, since different people will have their own opinions on how to best accomplish a task. Just some thoughts, Brad -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:47 AM To: CF-Talk Subject: RE: CFML/ASP equivalents I've got a cheap ASP book but the index is poor and I'm wasting a lot of time hunting for info.A comparison would be easier/more useful. Also, I didn't think that the Dim statement really replicates the way a CFPARAM tag sets a default value if the variable is undefined.Won't Dim overwrite the variable if it already exists?These are the kinds of things I'd like to know as a CF developer who occasionally needs to work with ASP. Maybe I just need to make a web site ASP for CF Developers... Chris -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:16 AM To: CF-Talk Subject: RE: CFML/ASP equivalents In asp it would just be setting a declaring a var Eample: Dim myString As String I have not really seen any site or book with the chart you are seeking. Pick up a cheap ASP 3 book. Shawn Regan -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 5:03 AM To: CF-Talk Subject: CFML/ASP equivalents Does anyone know of a resource that shows the ASP equivalents for CFML? Like what is the ASP equivalent for CFPARAM?A chart would be great. I've Googled it but haven't found anything. Thanks, Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Date Format Question
Date = parseDateTime(Rereplace(date, ^([0-9]{4}):([0-9]{2}):(.*)$, \1/\2/\3)); Date = dateFormat(date, ...); You might be able to get by with removing either parseDateTime() or the Rereplace(), but I'm not 100% sure. Cheers, barneyb -Original Message- From: Jeff Fongemie [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:29 AM To: CF-Talk Subject: Date Format Question I've got a date-time that is goinmg to be passed to me as this: 2003:12:27 12:19:58 Can anyone suggest the best way to get that into a more friendly format as in.. 12/27/03 12:19pm ?? It obviously won't fit into standard dateformat function. Any ideas I can come up with are complicated. There must be an easy solution? Jeff F [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Administrator mapping not working
erm... might be off a little.. but the /CFIDE/scripts mapping is at the webserver level not CF HTH -Original Message- From: Alisa Thomson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 16:28 To: CF-Talk Subject: Re:Administrator mapping not working I have tried several different things.If I do not include scriptSrc in the CFFORM tag and view source, I get /CFIDE/scripts/cfform.js.I also tried adding a new mapping in the administrator called cfscripts that mapped to document_root/scripts then put in the CFFORM...scriptSrc=/cfscripts/cfform.js, so that is the same path I see when I view source.The only thing I have gotten to work is if I copy cfform.js into the application directory as use scriptSrc=cfform.js in the CFFORM.This is not acceptable because I would have to have cfform.js in each of my application directories.So, it sees it if it is local, but not if it is mapped.Because of the problem I am having with GetCurrentTemplatePath() I am still wondering if this is not a symbolic link issue. Thanks. On Tuesday 17 February 2004 15:16 pm, Alisa Thomson wrote: This is one of the functions in cfform.js.The previous poster asked what the log file states as the location of cfform.js.I do not see cfform.js mentioned in any of my log files. What is the actual HTML that has ended up for the form tag(s) ? Does it reference cfform.js anywhere ? -- 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: Date Format Question
Jeff Fongemie said: I've got a date-time that is goinmg to be passed to me as this: 2003:12:27 12:19:58 Can anyone suggest the best way to get that into a more friendly format as in.. 12/27/03 12:19pm ?? It obviously won't fit into standard dateformat function. Any ideas I can come up with are complicated. There must be an easy solution? theDate = REReplace(input, ^([0-9]*):([0-9]*):(.*)$,\1-\2-\3); Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfx_xslt problem (urgent)
Rob, please see below. Don On Tue, 2004-02-17 at 08:05, Chunshen Li wrote: I now believe both CFX_XSLT tag and MM's XmlTranform tag work, it's just that late last night, sort of new to this thing + late night (couldn't think straight), the URL I was using last night was invalid, and I failed to debug to see if the CFHTTP call is successful. Now, CF script (url.releaseID value is given by a previous link, which is ok) cfhttp URL=""> asp?compid=132066reqtype=newsreleasesreqid=#URL.releaseID# cffile action="" file=C:\intel\wrt\ccbn\xsl\PressReleaseText. xsl variable=ccbnxsl debug:br cfoutputLength of raw data: #Len(cfhttp.FileContent)# p raw data:br #cfhttp.FileContent# /cfoutput p xml transformed HTML output below:br cfoutput#xmltransform(cfhttp.FileContent,ccbnxsl)#/cfoutput Careful here you might want to trim() the file, and I think (depending on your version of MX) you have to xmltransform(XMLParse(cfhttp.FileContent),ccbnxsl) XSL file: !-- ' INCLUDES ''-- xsl:include href=""> !-- ' OUTPUT MEHTOD ''-- xsl:output method=html omit-xml-declaration=yes indent=yes standalone=no/ !--' ' MAIN TEMPLATE ''-- xsl:template match=/ xsl:call-template name=GeneratePressReleaseText/ !--page-level template-- /xsl:template !-- ' ''-- xsl:template name=GeneratePressReleaseText table width=100% border=0 cellpadding=3 cellspacing=1 tr class=modBgTblTtl td valign=top class=modTblTtlxsl:value-of select=/*/NewsReleaseText/Title//td /tr tr class= td valign=top width=100% class=modBodyTextxsl:value-of select=/*/NewsReleaseText/ReleaseText disable-output-escaping=yes//td /tr /table /xsl:template !-- ' ''-- /xsl:stylesheet If this is the full XSL file, then you are correct, the file is broken. It's not a full XML document. Here is another included XSL file from the above one (please advise if I can provide a more readable copy): ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:ccbnxml=http://xml.corporate-ir.net exclude-result-prefixes=xsl xmlns ccbnxml !--' ''-- xsl:template name=DisplayDate xsl:param name=strDate/ !--strDate is assumed to be in mmdd format-- !--year parse-- xsl:variable name=strYear select=substring($strDate,1,4)/ !--month parse and string map-- xsl:variable name=intMonth xsl:value-of select=substring($strDate,5,2)/ /xsl:variable xsl:variable name=strMonth xsl:if test=$intMonth='01'Jan/xsl:if xsl:if test=$intMonth='02'Feb/xsl:if xsl:if test=$intMonth='03'Mar/xsl:if xsl:if test=$intMonth='04'Apr/xsl:if xsl:if test=$intMonth='05'May/xsl:if xsl:if test=$intMonth='06'Jun/xsl:if xsl:if test=$intMonth='07'Jul/xsl:if xsl:if test=$intMonth='08'Aug/xsl:if xsl:if test=$intMonth='09'Sep/xsl:if xsl:if test=$intMonth='10'Oct/xsl:if xsl:if test=$intMonth='11'Nov/xsl:if xsl:if test=$intMonth='12'Dec/xsl:if /xsl:variable !--day parse and remove trailing 0 if applicable-- xsl:variable name=strDay xsl:choose xsl:when test=substring($strDate,7,1) = '0'xsl:value-of select=substring($strDate,8,1)//xsl:when xsl:otherwisexsl:value-of select=substring($strDate,7,2)//xsl:otherwise /xsl:choose /xsl:variable !--display date as Dec. mm, -- xsl:value-of select=concat($strMonth,'. ',$strDay,', ',$strYear)/ /xsl:template !--' ''-- xsl:template name=DisplayTime xsl:param name=strTime/ !--strTime is assumed to be in 00:00:00 format-- xsl:if test=string-length($strTime) gt; 0 !--hour parse-- xsl:variable name=intHour select=substring($strTime,1,2)/ !--minute parse-- xsl:variable name=intMinute select=substring($strTime, 4,2)/
AOL issues with my session vars
I have a client who is using their aol account and likely Windows to access their site. I have a form that allows people to sign up and another to update their information. In the forms I have checkboxes for them to select which groups they want to be a part of. !--- Update Example --- input type=checkbox name=consignor cfif qryCOSinthissale.recordcount gt 0checked/cfif !--- New user example input type=checkbox name=consignor When the records are added and or updated to the DB, at the first of the query I set a session var for each checkbox option to No !--- add new user reset session var example: Update reset is the same --- cfset session.cosignor = No and once the logic gets to the part for determining if and what boxes have been checked for each one that exists and is checked it resets the session var for that group to Yes cfif isdefined('form.consignor') cfset session.consignor = Yes Blah, blah, blah... /cfif so it can be accessed in an email confirmation that is sent to the user. cfparam name=session.consignor default =No Etc, etc. cfif session.consignor eq YesYes!cfelseNo/cfif It works great for me even when I sign up multiple people in one session. However, when my client does it it is like some of the session group vars are getting stuck and not resetting each time to No Any thoughts or ideas? Thanks, Drew Harris CEO: Quantum Delta me: http://QuantumDelta.com/files/DrewHarris.vcf my company: http://QuantumDelta.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
Someone set up a wiki, and we'll get started. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:25 AM To: CF-Talk Subject: RE: CFML/ASP equivalents I've ran into situations where a site like this would be very valuable. It would be great to take it a step further, with PHP comparisons as well. You could deal with each task (CF tag) individually, as well as compare small sample applications that demonstrated how things works together. I could see this helping CF, ASP, PHP developers who are curious about how do do something in one of the other languages. I think the site would be easy to create if it were a community based, where developers could contribute how you might handle tasks in each language. I'm sure best practices would be something to consider as well, since different people will have their own opinions on how to best accomplish a task. Just some thoughts, Brad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
I'm surprised that there isn't a site out there already. Shawn Regan -Original Message- From: Ryan Kime [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 9:42 AM To: CF-Talk Subject: RE: CFML/ASP equivalents Someone set up a wiki, and we'll get started. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:25 AM To: CF-Talk Subject: RE: CFML/ASP equivalents I've ran into situations where a site like this would be very valuable. It would be great to take it a step further, with PHP comparisons as well. You could deal with each task (CF tag) individually, as well as compare small sample applications that demonstrated how things works together. I could see this helping CF, ASP, PHP developers who are curious about how do do something in one of the other languages. I think the site would be easy to create if it were a community based, where developers could contribute how you might handle tasks in each language. I'm sure best practices would be something to consider as well, since different people will have their own opinions on how to best accomplish a task. Just some thoughts, Brad _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfx_xslt problem (urgent)
Dave, Please elaborate on it's common to accidentally append debug output when serving XML documents via CF..Thanks. Different Dave, but I believe he means that if you're serving this XML document via CF and you have debugging turned on (i.e., in development), then MX will add a bunch of debugging code to the bottom of the document (just do a View Source on a CF page with debugging and you'll see). You'll need to explicitly use cfsetting showDebugOutput=No to suppress and attempt by CF to output debugging code. This extra code will of course make this XML document invalid. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Date Format Question
Am I missing something? I've got: cfset mydate=#myexifinfo.DateTimeOriginal# Original Date:#REReplace(mydate, ^([0-9]*):([0-9]*):(.*)$,\1-\2-\3)# This gives me exactly the same date time format as I input? The regex does not change anything? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Re:cfx_xslt problem (urgent)
The document had a bunch of errors like this: Window::transform: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Non-whitespace text is not allowed in this position in the stylesheet! They could have been added in the email, but I don't think so. They seem to occur around xsl:choose's. Its probably on the xslt generation end if they are using a legacy system to create the xslt file. Either they are using a wack editor, or the process they use to generate the xslt is sticking in non-printable control characters. Most any white space (aside from tab, newline, return, space) will cause these errors and they are hard to spot because it looks just like white space. If you have a hex editor handy, you can spot them a bit easier. After I removed the bad whitespace chars it ran fine. Try running the xsl file against that fake xml file I sent in the last post. (That why you know any errors are in the xslt) -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cf web app on a cd?
Forgetting about the licencing and pricing issues (see strong recomendation at the bottom of post) for a moment (for CF and SQL Server), you probally will not be able to run CF from a CD for the following reasons: Even using apache/Tomcat CF takes up at nearly 300MB of space (nearly 1/2 of the CD). This does not include any compoents (Java runtime engine, services interfaces or any other component that might be installed outside the Tomcat application.) This would not include any programs that would autoluanch apache/Tomcat or any database functionality. Nor would it include your application or any space to run your application. This would also not add the permissions necessary to run Tomcat properly as well -- since Tomcat or any other J2EE server requires local administration permissions to reach certain resources. Adding a Database (forget about SQL Server) would at least another 50-90 MBs, assuming you're using mySQL as your database. SQL Server is really tied to the operating system so it will be hard if not impossible to run. Before ASP.net entered the fray, it was much easier to move applications into ASP using Microsoft's Personal Web Service-- having support for ASP out of the box. With ASP.net other overhead exists making CD versions not as attractive. When you add licencing issues (Microsoft makes you pay for each connection unit, CF on a dual CPU basis.) then very quickly you'll see the reason why I would (strongly) not recommend anyone going down this path. Better to ask if the client has some Internet conductivity and would be willing to go down the Flash client/CF, SQL Server server route instead. This way you are not placing your client at a legal risk. Jeremy Brodie Edgewater Technology web: http://www.edgewater.com phone:(703) 815-2500 email: [EMAIL PROTECTED] Hi all, Done quite a bit of research on this and have come up empty so far. We have a client that would like to put his CF/SQL Server web app onto a cd for distribution. Is this possible? I found one product that can move asp web apps to a cd, but nothing for CF. Thanks, --Nathan __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
query help...
This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 ~~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFML/ASP equivalents
Me too.I did find bits and pieces here and there but nothing comprehensive.It seems like someone would have this somewhere but I sure couldn't find it.That's why I asked... And what's a wiki anyway? Chris -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 12:49 PM To: CF-Talk Subject: RE: CFML/ASP equivalents I'm surprised that there isn't a site out there already. Shawn Regan -Original Message- From: Ryan Kime [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 9:42 AM To: CF-Talk Subject: RE: CFML/ASP equivalents Someone set up a wiki, and we'll get started. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:25 AM To: CF-Talk Subject: RE: CFML/ASP equivalents I've ran into situations where a site like this would be very valuable. It would be great to take it a step further, with PHP comparisons as well. You could deal with each task (CF tag) individually, as well as compare small sample applications that demonstrated how things works together. I could see this helping CF, ASP, PHP developers who are curious about how do do something in one of the other languages. I think the site would be easy to create if it were a community based, where developers could contribute how you might handle tasks in each language. I'm sure best practices would be something to consider as well, since different people will have their own opinions on how to best accomplish a task. Just some thoughts, Brad _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: query help...
select * from estates where featured = 1 and date_modified=(select max(date_modified) from estates) Nick Han [EMAIL PROTECTED] 02/17/04 10:14AM This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: query help...
select * from estates where featured = 1 and date = (select max(date_modified) from estates where featured = 1) maybe? -Original Message- From: Daniel Farmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 1:15 PM To: CF-Talk Subject: query help... This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Date Format Question
Jeff Fongemie said: I've got: cfset mydate=#myexifinfo.DateTimeOriginal# Original Date:#REReplace(mydate, ^([0-9]*):([0-9]*):(.*)$,\1-\2-\3)# This gives me exactly the same date time format as I input? The regex does not change anything? Could be if there is an error in the RegEx. But I don't see the error :( Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Anybody used Firebird, the database
FirebirdSQL works with CFMX.You must download their JDBC driver, add it to the classpath in the CFAdmin Java/JVM page, and then configure it as OTHER in the CFAdmin Datasource page. Last year there was a bug uncovered in the Jaybird driver for FirebirdSQL regarding inserts and updates, but the developers fixed it pretty quickly. The most current JDBC driver should be just fine. _ From: Kwang Suh [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:46 AM To: CF-Talk Subject: Anybody used Firebird, the database Anybody ever seen or used this? http://www.firebirdsql.org/ http://www.firebirdsql.org/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: query help...
this didn't work got error... using mySQL btw TCX][MyODBC]You have an error in your SQL syntax near - Original MTCX][MyODBC]You have an error in your SQL syntax near essage - From: Nick Han To: CF-Talk Sent: Tuesday, February 17, 2004 1:21 PM Subject: Re: query help... select * from estates where featured = 1 and date_modified=(select max(date_modified) from estates) Nick Han [EMAIL PROTECTED] 02/17/04 10:14AM This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: query help...
This didn't work either... TCX][MyODBC]You have an error in your SQL syntax near - Original Message - From: Tony Weeg To: CF-Talk Sent: Tuesday, February 17, 2004 1:24 PM Subject: RE: query help... select * from estates where featured = 1 and date = (select max(date_modified) from estates where featured = 1) maybe? -Original Message- From: Daniel Farmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 1:15 PM To: CF-Talk Subject: query help... This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cf web app on a cd?
Did anyone look into coral?It's limited, but that's what it does. Search the archives and you'll find the links and discussions. John Burns -Original Message- From: Jeremy Brodie [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 12:15 PM To: CF-Talk Subject: Re:cf web app on a cd? Forgetting about the licencing and pricing issues (see strong recomendation at the bottom of post) for a moment (for CF and SQL Server), you probally will not be able to run CF from a CD for the following reasons: Even using apache/Tomcat CF takes up at nearly 300MB of space (nearly 1/2 of the CD). This does not include any compoents (Java runtime engine, services interfaces or any other component that might be installed outside the Tomcat application.) This would not include any programs that would autoluanch apache/Tomcat or any database functionality. Nor would it include your application or any space to run your application. This would also not add the permissions necessary to run Tomcat properly as well -- since Tomcat or any other J2EE server requires local administration permissions to reach certain resources. Adding a Database (forget about SQL Server) would at least another 50-90 MBs, assuming you're using mySQL as your database. SQL Server is really tied to the operating system so it will be hard if not impossible to run. Before ASP.net entered the fray, it was much easier to move applications into ASP using Microsoft's Personal Web Service-- having support for ASP out of the box. With ASP.net other overhead exists making CD versions not as attractive. When you add licencing issues (Microsoft makes you pay for each connection unit, CF on a dual CPU basis.) then very quickly you'll see the reason why I would (strongly) not recommend anyone going down this path. Better to ask if the client has some Internet conductivity and would be willing to go down the Flash client/CF, SQL Server server route instead. This way you are not placing your client at a legal risk. Jeremy Brodie Edgewater Technology web: http://www.edgewater.com phone:(703) 815-2500 email: [EMAIL PROTECTED] Hi all, Done quite a bit of research on this and have come up empty so far. We have a client that would like to put his CF/SQL Server web app onto a cd for distribution. Is this possible? I found one product that can move asp web apps to a cd, but nothing for CF. Thanks, --Nathan __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
The Dangers of Java
Hi All, We're in the process of migrating to CFMX, and the server administrators have real reservations about allowing us to do anything with Java. They have disallowed read access, such that getPageContext().forward() won't even work. They've disallowed cfinvoke, cfimport, and cfobject by default. I don't know enough about java to be able to make a rational argument for allowing us to use those tags and the native classes. Can anyone point me to any _readable_ information about the risks? Thanks. -Deanna -- Deanna Schneider UWEX-Cooperative Extension Interactive Media Developer [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: query help...
Daniel Farmer wrote: This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 ~~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfx_xslt problem (urgent)
Many thanks, Rob. Please see results after calling these two XSL files separately. http://68.32.61.40/ccbn/test_usingListXSL.cfm http://68.32.61.40/ccbn/test_usingTextXSL.cfm I kind of question the wisdom of getting all these XSL files from a remote site, and constantly checking if they would work with CF and make changes if not, just for the project I intend to do.Or because of no better alternatives? Again, I appreciate it. Don The document had a bunch of errors like this: Window::transform: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Non-whitespace text is not allowed in this position in the stylesheet! They could have been added in the email, but I don't think so. They seem to occur around xsl:choose's. Its probably on the xslt generation end if they are using a legacy system to create the xslt file. Either they are using a wack editor, or the process they use to generate the xslt is sticking in non-printable control characters. Most any white space (aside from tab, newline, return, space) will cause these errors and they are hard to spot because it looks just like white space. If you have a hex editor handy, you can spot them a bit easier. After I removed the bad whitespace chars it ran fine. Try running the xsl file against that fake xml file I sent in the last post. (That why you know any errors are in the xslt) -- Vale, Rob Luxuria immodica insaniam creat. Sanam formam viatae conservate! http://www.rohanclan.com http://treebeard.sourceforge.net http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: query help...
Why not select them ordered by date_modified and then just use the first record?Or if you're worried about passing all of that data back and forth you can use TOP (or whatever corresponds to your DB server) John Burns -Original Message- From: Steve Milburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 1:51 PM To: CF-Talk Subject: Re: query help... Daniel Farmer wrote: This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Date Format Question
It changes the colons to hypens. --Ben Doom Jeff Fongemie wrote: Am I missing something? I've got: cfset mydate=#myexifinfo.DateTimeOriginal# Original Date:#REReplace(mydate, ^([0-9]*):([0-9]*):(.*)$,\1-\2-\3)# This gives me exactly the same date time format as I input? The regex does not change anything? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Custom Tag for importing into ACT?
Does anyone know if there are any custom tags for importing some info from a form into ACT? I've looked on the MM exchange and on google but couldn't seem to find anything. Thanks, Ben [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfx_xslt problem (urgent)
Dave, Dave seems to be a nice name, I'll name my son Dave down the road :) Anyway, I did not interprete accidentally append debug output when serving XML documents via CF as that one needs to turn off debugging when doing XML stuff for turn on debugging for development is pretty standard, I can't seem to align standard and accidentally together. If I were MM, I would set a check before executing any XML family tag to turn off debugging if not.Wouldn't it be better this way by design?Overhead?Totally necessary. Dave, Please elaborate on it's common to accidentally append debug output when serving XML documents via CF..Thanks. Different Dave, but I believe he means that if you're serving this XML document via CF and you have debugging turned on (i.e., in development), then MX will add a bunch of debugging code to the bottom of the document (just do a View Source on a CF page with debugging and you'll see). You'll need to explicitly use cfsetting showDebugOutput=No to suppress and attempt by CF to output debugging code. This extra code will of course make this XML document invalid. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: query help...
select top 1 * from estates where featured = 1 Order by date_modified desc From: Daniel Farmer [mailto:[EMAIL PROTECTED] This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: query help...
In oracle, there is no 'top' select.In the scenario given, a sub select is the most efficient. My apology for not having asked Dan what DB he was using. Nick Han [EMAIL PROTECTED] 02/17/04 10:53AM Why not select them ordered by date_modified and then just use the first record?Or if you're worried about passing all of that data back and forth you can use TOP (or whatever corresponds to your DB server) John Burns -Original Message- From: Steve Milburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 1:51 PM To: CF-Talk Subject: Re: query help... Daniel Farmer wrote: This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: The Dangers of Java
Well considering that 80% of all enterprises use Java for their web applications I suspect that your server administrators just aren't aware of the correct security procedures. Certainly that would appear to be true considering they disabled cfobject, but Java objects can still be created anyway using alternate syntax. What you need to find it is exactly what their security concerns are and report back to the list. I'm sure we can come up with appropriate responses once we know what is the issue. -Matt On Feb 17, 2004, at 1:53 PM, Deanna Schneider wrote: Hi All, We're in the process of migrating to CFMX, and the server administrators have real reservations about allowing us to do anything with Java. They have disallowed read access, such that getPageContext().forward() won't even work. They've disallowed cfinvoke, cfimport, and cfobject by default. I don't know enough about java to be able to make a rational argument for allowing us to use those tags and the native classes. Can anyone point me to any _readable_ information about the risks? Thanks. -Deanna -- Deanna Schneider UWEX-Cooperative Extension Interactive Media Developer [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: query help...
OK that sounds like a good solution but how do I select the first record of a query ? - Original Message - From: Burns, John To: CF-Talk Sent: Tuesday, February 17, 2004 1:53 PM Subject: RE: query help... Why not select them ordered by date_modified and then just use the first record?Or if you're worried about passing all of that data back and forth you can use TOP (or whatever corresponds to your DB server) John Burns -Original Message- From: Steve Milburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 1:51 PM To: CF-Talk Subject: Re: query help... Daniel Farmer wrote: This is my query... select * from estates where featured = 1 and [ I want to select the oldest date_modified field here ] ~~ Daniel Farmer Coldfusion Developer / Sales / Producer 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]