Coldfusion multiple instance
Hi all i have four coldfusion instance in jrun ,and jrun is installed in c: so all my jrun files are installed in {jrun-home/server/servername} all things are in c: now i want to change the path of one instance into d:/somefolder how can i do this thanks in advance Vishnu [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Coldfusion multiple instance
try going to your cfusion_ear\cfusion_war\WEB-INF jrun-web.xml file and add something like the following (replace values with your context root if using one, and the actual directory path with forward slashes): virtual-mapping resource-path//resource-path system-pathc:/mynewrootdir/system-path /virtual-mapping ~Simon Simon Horwith CTO, eTRILOGY ltd. Member of Team Macromedia Macromedia Certified Master Instructor Blog - http://www.horwith.com Hi all i have four coldfusion instance in jrun ,and jrun is installed in c: so all my jrun files are installed in {jrun-home/server/servername} all things are in c: now i want to change the path of one instance into d:/somefolder how can i do this thanks in advance Vishnu [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URL's with variables
- Original Message - From: Hugo Ahlenius To: CF-Talk Sent: Tuesday, August 24, 2004 1:43 AM Subject: Re: URL's with variables Have you ruled out the web-server? It should (in theory) work in any browser, they are just using a text-based reference to an information source (i.e. url) and shouldn't care how it is typed (note tahat I haven't read the rfc's though...). To see if it is the server, do a request and see what you get back (a 404, a 302 or a 209?). What I think could be the problem is if index.cfm is not set up to be the default handler. Is the dev/stage/production environment using similar setups (in web-server?). I am using the form below quite extensively, on cfmx bws and Apache (doesn't work in bd bws though, i have filed a bug for that). Not fully SES, but it makes the url shorter. host/dir/?/paramname/paramvalue (this is Mach-II so all cf requests go to index.cfm, which is the entry point for the framework) - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - Original Message From: Ewok [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 00:39 Subject: URL's with variables | I am just curious to kow if anyone knows first hand of any problems | when it comes to using or not using the document name in a url with | variables... | | example: | | site.com/index.cfm?somevar=value | | is the same as | | site.com/?somevar=value | | I just did an entire site this way and it worked just fine on the dev | server. but once it went to the demo server (i am told) that it | caused alot of errors. | | Ive hit almost every page in the site with variabels in the url on | the dev box and taken the vars out of the url manually to hit the | page again and I havent found one incident where the error trapping | didnt redirect as it should when certain vars were missing. | | Has anyone experienced any errors (or any differences for that | matter) when you exclude the template name from your urls? | | there is only one index.cfm in the entire site and that is the | default doc for the site in IIS | | [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URL's with variables
quote source=originalpost there is only one index.cfm in the entire site and that is the default doc for the site in IIS /quote - Original Message - From: Hugo Ahlenius To: CF-Talk Sent: Tuesday, August 24, 2004 1:43 AM Subject: Re: URL's with variables Have you ruled out the web-server? It should (in theory) work in any browser, they are just using a text-based reference to an information source (i.e. url) and shouldn't care how it is typed (note tahat I haven't read the rfc's though...). To see if it is the server, do a request and see what you get back (a 404, a 302 or a 209?). What I think could be the problem is if index.cfm is not set up to be the default handler. Is the dev/stage/production environment using similar setups (in web-server?). I am using the form below quite extensively, on cfmx bws and Apache (doesn't work in bd bws though, i have filed a bug for that). Not fully SES, but it makes the url shorter. host/dir/?/paramname/paramvalue (this is Mach-II so all cf requests go to index.cfm, which is the entry point for the framework) - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - Original Message From: Ewok [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 00:39 Subject: URL's with variables | I am just curious to kow if anyone knows first hand of any problems | when it comes to using or not using the document name in a url with | variables... | | example: | | site.com/index.cfm?somevar=value | | is the same as | | site.com/?somevar=value | | I just did an entire site this way and it worked just fine on the dev | server. but once it went to the demo server (i am told) that it | caused alot of errors. | | Ive hit almost every page in the site with variabels in the url on | the dev box and taken the vars out of the url manually to hit the | page again and I havent found one incident where the error trapping | didnt redirect as it should when certain vars were missing. | | Has anyone experienced any errors (or any differences for that | matter) when you exclude the template name from your urls? | | there is only one index.cfm in the entire site and that is the | default doc for the site in IIS | | [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Queries/Arrays/Structs
I just blogged a CFC I wrote to do this (query - structure), as well as a transforming to an array of structs, XML, and delimited formats. Read more / download at http://clearsoftware.net/client/index.cfm?mode=entryentry=908A13D0-E081-0478-47142477868E2D49 Hope it can help. -joe - Original Message - From: Nando [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 07:26:51 +0200 Subject: Re: Queries/Arrays/Structs To: CF-Talk [EMAIL PROTECTED] Yes, i use queryRowToStruct() all the time from cflib ... On Mon, 23 Aug 2004 19:13:23 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: CFLib has several functions regarding these type of operations. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: URL's with variables
|there is only one index.cfm in the entire site and that is the |default doc for the site in IIS /quote But the question is -- does IIS return (or redirect to) index.cfm when no file is specified or just a ? given: http://host/dir/ http://host/dir/? Perhaps it is looking for default.htm/asp, and not worrying about index.cfm ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
.cfmail to .eml
HI, ok, this might sound odd but is there a away of creating an email (with attachements) but without using cfmail. All I want is the final file so when I open it in Tunderbird I can read the message and see the file. Hope this is clear Andy --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Has anyone seen this?
They're the top-ranked site for http:// (If you don't hit I'm Feeling Lucky) - perhaps all of their URL's are full paths on their site?It's not a purchased AdWord. - Jim Qasim Rasheed wrote: If you type http:// in the search box on google homepage and press I am feeling lucky, you are directed to Microsoft homepage. Any reasons? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: .cfmail to .eml
CFX_iMSMail (our tag for sending mail with iMS) can do this.The code would be something like: cfx_imsmail createmailfileonly=yes spooldir=some_directory attachments=c:\file1.zip,c:\file2.zip header_to=someone header_from=someone body=test This code would create a mail file in the specified folder with the specified attachments.The tag is freeware and you can download it from our web site. HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion applications Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm - Original Message - From: Andy J To: CF-Talk Sent: Tuesday, August 24, 2004 8:05 AM Subject: .cfmail to .eml HI, ok, this might sound odd but is there a away of creating an email (with attachements) but without using cfmail. All I want is the final file so when I open it in Tunderbird I can read the message and see the file. Hope this is clear Andy --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Datasource
Hi All i have my coldfusion application run in jrun when i create the datasource through contol panetl odbctest the connection its says successful but when i try to add the odbc socket from coldfusion administraion ia m getting this error Connection verification failed for data source: idb []java.sql.SQLException: Timed out trying to establish connection The root cause was that: java.sql.SQLException: Timed out trying to establish connection in the same machine i can able to connect from sqlplus will any one help me on this [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Datasource
One possibility, are both the ColdFusion MX ODBC server and ColdFusion MX ODBC agent services running? G On Tue, 24 Aug 2004 09:23:39 -0400, vishnu prasad [EMAIL PROTECTED] wrote: Hi All i have my coldfusion application run in jrun when i create the datasource through contol panetl odbctest the connection its says successful but when i try to add the odbc socket from coldfusion administraion ia m getting this error Connection verification failed for data source: idb []java.sql.SQLException: Timed out trying to establish connection The root cause was that: java.sql.SQLException: Timed out trying to establish connection in the same machine i can able to connect from sqlplus will any one help me on this [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Re: Datasource
In addition, I'd also double check to make sure that the access database (I assume it's access since you're using ODBC) permissions aren't set to read-only. ~Simon Simon Horwith CTO, eTRILOGY ltd. Member of Team Macromedia Macromedia Certified Master Instructor Blog - http://www.horwith.com One possibility, are both the ColdFusion MX ODBC server and ColdFusion MX ODBC agent services running? G On Tue, 24 Aug 2004 09:23:39 -0400, vishnu prasad [EMAIL PROTECTED] wrote: Hi All i have my coldfusion application run in jrun when i create the datasource through contol panetl odbctest the connection its says successful but when i try to add the odbc socket from coldfusion administraion ia m getting this error Connection verification failed for data source: idb []java.sql.SQLException: Timed out trying to establish connection The root cause was that: java.sql.SQLException: Timed out trying to establish connection in the same machine i can able to connect from sqlplus will any one help me on this [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: SOLUTION: Re: Okay, go here to see what I'm talking about...( cfserver not r unning correctly)
Kinda scary,huh? Wait till it happens on a production box then what do you do besides sit back waiting patiently for CF to start working again... Jeff, who do you host with these days? _ From: Jeff [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 7:32 PM To: CF-Talk Subject: Re: SOLUTION: Re: Okay, go here to see what I'm talking about...(cfserver not r unning correctly) On 8/23/04 5:25 PM, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Jeff, And what was the solution prey tell - or did I miss that? -Mark See, that's the funny part...there WASN'T a solution... It...just...started...working. And I'm not about to try and figure out why. Lol... _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Transmenus and form elements
I am using a transmenus _javascript_ menu in my application. Everything works fine except when I have a cfselect box in my page, near the top. The transmenus drop down and go BEHIND the select boxes, so you can't see the menu items. Is there a change I can make that will allow the menus to always be on top of the other items on the page? Is this a _javascript_ dilemma or a CF dilemma? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Transmenus and form elements
Hi Tim, It's more of a DHTML issue than anything else - not really _javascript_ or CF.The cfSelect tag just generates plain-old html select tags. AFAIK, the piece of IE that renders selects, etc., does so on top of whatever the page is rendering, and therefore they always show on top. I don't know how this affects Mozilla etc. -joe - Original Message - From: Claremont, Timothy [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 09:28:51 -0400 Subject: Transmenus and form elements To: CF-Talk [EMAIL PROTECTED] I am using a transmenus _javascript_ menu in my application. Everything works fine except when I have a cfselect box in my page, near the top. The transmenus drop down and go BEHIND the select boxes, so you can't see the menu items. Is there a change I can make that will allow the menus to always be on top of the other items on the page? Is this a _javascript_ dilemma or a CF dilemma? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Creating a List from a Recursion
I've created a custom tag that recurses over a database to create a breadcrumb trail.The problem I'm encountering is I would really like to be able to pull a list from that tag that it can then be easily manipulated.Below is the custom tag code: cfquery name=checkParent datasource=#request.siteDSN# SELECT Keywords.KeyID, Keywords.Keyword, Keywords.Title, Keywords.ViewID, Keywords.AppID, Navigation.ParentID, ParentName.Keyword AS ParentName, ParentName.Title AS ParentTitle FROM (Navigation AS Parent RIGHT JOIN (Keywords RIGHT JOIN Navigation ON Keywords.KeyID = Navigation.KeyID) ON Parent.NavID = Navigation.ParentID) LEFT JOIN Keywords AS ParentName ON Parent.KeyID = ParentName.KeyID WHERE keywords.keyword = '#attributes.child#' /cfquery cfloop query=checkParent cfquery name=checkNextParent datasource=#request.siteDSN# SELECT Keywords.KeyID, Keywords.Keyword, Keywords.Title, Keywords.ViewID, Keywords.AppID, Navigation.ParentID, ParentName.Keyword AS ParentName, ParentName.Title AS ParentTitle FROM (Navigation AS Parent RIGHT JOIN (Keywords RIGHT JOIN Navigation ON Keywords.KeyID = Navigation.KeyID) ON Parent.NavID = Navigation.ParentID) LEFT JOIN Keywords AS ParentName ON Parent.KeyID = ParentName.KeyID WHERE keywords.keyword = '#checkParent.parentName#' /cfquery cfoutput cfif checkNextParent.recordcount NEQ 0 cf_breadcrumbs child=#checkParent.parentName# breadcrumbs= a href=''#checkParent.ParentTitle#/asiteDomain=#attributes.siteDomain# /cfif /cfoutput /cfloop cfoutput #attributes.breadcrumbs# /cfoutput Currently the breadcrumbs display directly from the custom tag which works relatively well.Except there are instances when I would really like to have the data placed into a list.Any ideas how I could accomplish this?Any help would be greatly appreciated. --Anne [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
CFMX, multi instance, and logs
Where oh where is the log destination set for CFMX?I have multi-instances of CFMX on a box and I can't get teh application, server, etc logs going.The original CFMX instance is working, bu the second is not.I set the destination on the second instance correctly in the CFADMIN tool D:\JRun4\servers\myserver\cfusion-ear\cfusion-war\WEB-INF\cfusion\logs but nothing is there.Which one of the zillion XML files is this setting in? --- Douglas Knudsen http://www.cubicleman.com If you don't like something, change it. If you can't change it, change your attitude. Don't complain. - Maya Angelouon't complain. - Maya Angelou [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Transmenus and form elements
As far as I know most drop down menu will not show up if over a select box.Select boxes are essentially created by the OS rather than the browser, and therefore do not respond well to layering... they always want to be on top. The only solution is to put the select element inside of a div then hide the div when an overlapping menu opens. Here is an example for some other menu system http://www.milonic.com/menusample.php?sampleid=14 - Original Message - From: Claremont, Timothy [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 09:28:51 -0400 Subject: Transmenus and form elements To: CF-Talk [EMAIL PROTECTED] I am using a transmenus _javascript_ menu in my application. Everything works fine except when I have a cfselect box in my page, near the top. The transmenus drop down and go BEHIND the select boxes, so you can't see the menu items. Is there a change I can make that will allow the menus to always be on top of the other items on the page? Is this a _javascript_ dilemma or a CF dilemma? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Queries/Arrays/Structs
This might help you http://clearsoftware.net/client/queryTool.cfm On Mon, 23 Aug 2004 17:20:13 -0500, Paul Giesenhagen [EMAIL PROTECTED] wrote: I have some Queries that I want to convert a record to either an Array or a Struct (different queries, different requirements). What is the easiest way to Query - Struct and Query - Array I was about to roll through the resultset and create a struct and array .. but I was curious if there is a simpler way. Paul Giesenhagen QuillDesign 417-885-1375 http://www.quilldesign.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Transmenus and form elements
without code all I could say was it's CSS with the layer positioning needing set? wrap in div's and set the z-index to try forcing on top? -- dc [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Creating a List from a Recursion
valuelist() perhaps? jb. On Tue, 24 Aug 2004 09:53:04 -0400, Anne Girardeau [EMAIL PROTECTED] wrote: I've created a custom tag that recurses over a database to create a breadcrumb trail.The problem I'm encountering is I would really like to be able to pull a list from that tag that it can then be easily manipulated.Below is the custom tag code: cfquery name=checkParent datasource=#request.siteDSN# SELECT Keywords.KeyID, Keywords.Keyword, Keywords.Title, Keywords.ViewID, Keywords.AppID, Navigation.ParentID, ParentName.Keyword AS ParentName, ParentName.Title AS ParentTitle FROM (Navigation AS Parent RIGHT JOIN (Keywords RIGHT JOIN Navigation ON Keywords.KeyID = Navigation.KeyID) ON Parent.NavID = Navigation.ParentID) LEFT JOIN Keywords AS ParentName ON Parent.KeyID = ParentName.KeyID WHERE keywords.keyword = '#attributes.child#' /cfquery cfloop query=checkParent cfquery name=checkNextParent datasource=#request.siteDSN# SELECT Keywords.KeyID, Keywords.Keyword, Keywords.Title, Keywords.ViewID, Keywords.AppID, Navigation.ParentID, ParentName.Keyword AS ParentName, ParentName.Title AS ParentTitle FROM (Navigation AS Parent RIGHT JOIN (Keywords RIGHT JOIN Navigation ON Keywords.KeyID = Navigation.KeyID) ON Parent.NavID = Navigation.ParentID) LEFT JOIN Keywords AS ParentName ON Parent.KeyID = ParentName.KeyID WHERE keywords.keyword = '#checkParent.parentName#' /cfquery cfoutput cfif checkNextParent.recordcount NEQ 0 cf_breadcrumbs child=#checkParent.parentName# breadcrumbs= a href=''#checkParent.ParentTitle#/asiteDomain=#attributes.siteDomain# /cfif /cfoutput /cfloop cfoutput #attributes.breadcrumbs# /cfoutput Currently the breadcrumbs display directly from the custom tag which works relatively well.Except there are instances when I would really like to have the data placed into a list.Any ideas how I could accomplish this?Any help would be greatly appreciated. --Anne [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
HELP! Unable to reset page encoding
Hi all. Using Win 2003 server with CFMX 6.1 All pages contain cfprocessingdirective pageencoding=utf-8 I just made a change to my appliction.cfm page and reposted it to the site. Now all I get is an error Unable to reset the page encoding. I've stopped and started the CFMX service, and also rebooted the machine with no effect. My other sites on this box work fine. What do I do, site is down... Mark [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
CF-Smarty
I am looking for stack based template parsers build with CFML (and thus running on ColdFusion). I am specifically looking for a stack based version, not for a version based on regular expressions or recursion. Does anyone happen to know one? Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 ALAmersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Strange Oracle Error
To all you oracle guru's out there, can any of you shed some light for me? A client sent me this error, they could not get a screen shot of the error so I am not 100% positive that this is worded correctly as I have never seen this error before? Oracle Error Code=0 Timeout while obtaining Oracle statement lock. ...identifier of (CFQuery) occupying doc position (401:5) to (401:97). This error is on a page that performs many queries and can be slow at times.The code has been running good until recently.There have been no changes, other that the database growing in size. Thanks, David [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: HELP! Unable to reset page encoding
Using Win 2003 server with CFMX 6.1 All pages contain cfprocessingdirective pageencoding=utf-8 I just made a change to my appliction.cfm page and reposted it to the site. Now all I get is an error Unable to reset the page encoding. I've stopped and started the CFMX service, and also rebooted the machine with no effect. My other sites on this box work fine. What do I do, site is down... There are several places where you can affect page encoding, if I recall correctly - within your page using the CFPROCESSINGDIRECTIVE tag, within your page by setting the byte order mark of the page using a text editor with that capability like Dreamweaver or a hex editor, and within the JVM settings. However, I don't think you can have two settings that disagree without getting an error. So, if I had to guess, I suspect that you changed the byte order mark of Application.cfm within Dreamweaver. You can set the byte order mark of a page by going to the Preferences dialog (Ctrl-U) and selecting New Document. 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] [Donations and Support]
RE: Strange Oracle Error
To all you oracle guru's out there, can any of you shed some light for me? A client sent me this error, they could not get a screen shot of the error so I am not 100% positive that this is worded correctly as I have never seen this error before? Oracle Error Code=0 Timeout while obtaining Oracle statement lock. ...identifier of (CFQuery) occupying doc position (401:5) to (401:97). This error is on a page that performs many queries and can be slow at times.The code has been running good until recently.There have been no changes, other that the database growing in size. I'm no Oracle guru, but in any relational database you may have problems with lock contention. It sounds to me like some of your queries are taking long enough that they're blocking other queries from running. You may want to reexamine your indexing strategy. 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] [Donations and Support]
RE: HELP! Unable to reset page encoding
Dave, Thanks for your quick reply. I hadn't changed the new doc properties in DWMX in quite a while. What I did was copied/pasted all the existing application.cfm stuff into a new blank document, resaved it and reloaded it. This solved the problem. Site is running again. Mark -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:32 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: HELP! Unable to reset page encoding Using Win 2003 server with CFMX 6.1 All pages contain cfprocessingdirective pageencoding=utf-8 I just made a change to my appliction.cfm page and reposted it to the site. Now all I get is an error Unable to reset the page encoding. I've stopped and started the CFMX service, and also rebooted the machine with no effect. My other sites on this box work fine. What do I do, site is down... There are several places where you can affect page encoding, if I recall correctly - within your page using the CFPROCESSINGDIRECTIVE tag, within your page by setting the byte order mark of the page using a text editor with that capability like Dreamweaver or a hex editor, and within the JVM settings. However, I don't think you can have two settings that disagree without getting an error. So, if I had to guess, I suspect that you changed the byte order mark of Application.cfm within Dreamweaver. You can set the byte order mark of a page by going to the Preferences dialog (Ctrl-U) and selecting New Document. 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] [Donations and Support]
Re: Creating a List from a Recursion
I don't think that will work in a recursion judging by what I've read about it.It seems it just takes data from a query column and creates a list out of it. But, that's assuming all of the data needed for the list is there on the first query.Since I'm dealing with a recursion, the query will obtain only one record per recurse of the tag.Granted, I may not fully understand how this tag could be used in my case so if I'm misunderstanding it, please enlighten me. One other issue is that I also need to be able to attain the list from outside the custom tag which may or may not put another snag into this problem. Thanks, --Anne valuelist() perhaps? jb. On Tue, 24 Aug 2004 09:53:04 -0400, Anne Girardeau [EMAIL PROTECTED] wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: .cfmail to .eml
Thanks for that. Though i've installed the CFX and registered it with CF the following code isnt producing a file cfx_imsmail createmailfileonly=yes spooldir=c:\ header_to=[EMAIL PROTECTED] header_from=[EMAIL PROTECTED] body=test Is there something im missing? Cheers Andy CFX_iMSMail (our tag for sending mail with iMS) can do this.The code would be something like: cfx_imsmail createmailfileonly=yes spooldir=some_directory attachments=c:\file1.zip,c:\file2.zip header_to=someone header_from=someone body=test This code would create a mail file in the specified folder with the specified attachments.The tag is freeware and you can download it from our web site. HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion applications Find out how iMS Stacks up to the competition: http://www. coolfusion.com/imssecomparison.cfm - Original Message - From: Andy J To: CF-Talk Sent: Tuesday, August 24, 2004 8:05 AM Subject: .cfmail to .eml HI, ok, this might sound odd but is there a away of creating an email (with attachements) but without using cfmail. All I want is the final file so when I open it in Tunderbird I can read the message and see the file. Hope this is clear Andy --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: .cfmail to .eml
Thanks for that. Though with the following code it doesnt seem to be generating any file cfx_imsmail createmailfileonly=yes spooldir=c:\Documents and Settings\aj\Desktop\ header_to=[EMAIL PROTECTED] header_from=[EMAIL PROTECTED] body=test Am i missing something? Andy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Increasing the THREAD pool size on the JRUN server
We are running CFMX on a pair of load balanced WIN servers and suddenly they have started crashing repeatedly. We restart them and after a couple of minutes once some traffic has started . dead. The error message states JRun Connector Protocol Error and after reviewing the log files it seems that the problem is occurring because the Thread Pool is full under the JRun server . ??? Is this scenario familiar to anyone, or does anyone have any suggestions about how to debug this problem? Many thanks, - Greg [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Alagad Image CFC
Anyone using the alagad image CFC and having problems with it putting a red tint on resized images? ERJ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Creating a List from a Recursion
Hi Anne, In your custom tag, you can look at the base tag list with getBaseTagList() and see if it is its own first base tag.If not, create a structure called ancestorData, and give it a member called ancestorList.If it is its own base tag, create a reference to the structure using ancestorData = getBaseTagData(cf_breadcrumbs).ancestorData.At the end of your breadcrumbs tag, pass the structure back to the current page using the caller scope. On a side note, this system could be very resource intensive.You may want to look at ways to have your navigation table track its own hierarchy, having a column that tracks what generation a child is, and what its root parent ID is.That way, you can query an entire breadcrumb in one query by asking for all children of a root parent ID ordered by their generation. Disclaimer:There are also many other ways to implement this that are even less intensive, but require more development that I can't go into right now because my dev server just came back up. Cheers, Joe - Original Message - From: Anne Girardeau [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 10:48:03 -0400 Subject: Re: Creating a List from a Recursion To: CF-Talk [EMAIL PROTECTED] I don't think that will work in a recursion judging by what I've read about it.It seems it just takes data from a query column and creates a list out of it. But, that's assuming all of the data needed for the list is there on the first query.Since I'm dealing with a recursion, the query will obtain only one record per recurse of the tag. Granted, I may not fully understand how this tag could be used in my case so if I'm misunderstanding it, please enlighten me. One other issue is that I also need to be able to attain the list from outside the custom tag which may or may not put another snag into this problem. Thanks, --Anne valuelist() perhaps? jb. On Tue, 24 Aug 2004 09:53:04 -0400, Anne Girardeau [EMAIL PROTECTED] wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Alagad Image CFC
Eric, Can you post your code? -joe - Original Message - From: Eric Jones [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 11:00:47 -0400 Subject: Alagad Image CFC To: CF-Talk [EMAIL PROTECTED] Anyone using the alagad image CFC and having problems with it putting a red tint on resized images? ERJ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
OT: Gmail is too creepy......
Apart from being OFF-TOPIC for this list, that website contains a number of basic factual errors and is mostly paranoid fear, uncertainty and doubt. Take it to cf-community please! On Sun, 22 Aug 2004 14:02:38 -0400, Andrew Grosset [EMAIL PROTECTED] wrote: Have a look at this website before using your new gmail account: http://gmail-is-too-creepy.com/ It's kind of ironic that it appears as number 3 in a google search for gmail. Andrew. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Alagad Image CFC
Here's the code. those of you who want to see sample images email me and I'll send them directly to you. !--- This instantiates the component, thereby creating an object for us to work with. --- cfset myImage = CreateObject(Component, CustomTags.corev2.imageComponent.Image) / cfset thisFile = #thisImageID#.#form.filetype# !--- Get the extension of the file we are uploading and the name of the file --- cfset fileName = #listFirst(thisFile, .)# cfset fileExtention = #listLast(thisFile, .)# !--- Test to make sure this is an ok file. IE it's an image file. --- !--- The getReadableFormats() function returns a list of ok formats to use. --- cfif #ListFindNoCase(#myImage.getReadableFormats()#, #fileExtention#, ,)# !--- read the source image --- cfset myImage.readImage(#APPLICATION.installpath#\uploads\100011_product\#thisFil e#) / !--- resize the image to a specific width and height --- cfparam name=URL.scaleToSize default=25 cfset myImage.scalePercent(#URL.scaleToSize#,#URL.scaleToSize#) / !--- output the image in it's original format with the new _thumbs added to the name. --- cfset myImage.writeImage(#APPLICATION.installpath#\uploads\100011_product\#fileNa me#_thumb.#fileExtention#, #fileExtention#) / /cfif ERJ -Original Message- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 11:11 AM To: CF-Talk Subject: Re: Alagad Image CFC Eric, Can you post your code? -joe - Original Message - From: Eric Jones [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 11:00:47 -0400 Subject: Alagad Image CFC To: CF-Talk [EMAIL PROTECTED] Anyone using the alagad image CFC and having problems with it putting a red tint on resized images? ERJ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Increasing the THREAD pool size on the JRUN server
Could it be Jrun bug 56262 ? There are a number of posts in the Jrun forums abut this: JRUN Support Forums - Thread death and memory leak in JRun4 http://tinyurl.com/2rabd -- Hugo Ahlenius - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - |-Original Message- |From: Greg Landers [mailto:[EMAIL PROTECTED] |Sent: Tuesday, August 24, 2004 16:48 |To: CF-Talk |Subject: Increasing the THREAD pool size on the JRUN server | |We are running CFMX on a pair of load balanced WIN servers and |suddenly they have started crashing repeatedly. We restart |them and after a couple of minutes once some traffic has |started . dead. The error message states JRun Connector |Protocol Error and after reviewing the log files it seems |that the problem is occurring because the Thread Pool is |full under the JRun server . ??? | | | |Is this scenario familiar to anyone, or does anyone have any |suggestions about how to debug this problem? | | | |Many thanks, | |- Greg | | | | | | | | [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Increasing the THREAD pool size on the JRUN server
Thank you for that link Hugo! That is exactly what we are dealing with. Peace, Greg _ From: Hugo Ahlenius [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:26 AM To: CF-Talk Subject: RE: Increasing the THREAD pool size on the JRUN server Could it be Jrun bug 56262 ? There are a number of posts in the Jrun forums abut this: JRUN Support Forums - Thread death and memory leak in JRun4 http://tinyurl.com/2rabd -- Hugo Ahlenius - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - |-Original Message- |From: Greg Landers [mailto:[EMAIL PROTECTED] |Sent: Tuesday, August 24, 2004 16:48 |To: CF-Talk |Subject: Increasing the THREAD pool size on the JRUN server | |We are running CFMX on a pair of load balanced WIN servers and |suddenly they have started crashing repeatedly. We restart |them and after a couple of minutes once some traffic has |started . dead. The error message states JRun Connector |Protocol Error and after reviewing the log files it seems |that the problem is occurring because the Thread Pool is |full under the JRun server . ??? | | | |Is this scenario familiar to anyone, or does anyone have any |suggestions about how to debug this problem? | | | |Many thanks, | |- Greg | | | | | | | | _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Template Execution Order
Has anyone ever come up with a way to display all of the templates in executed order. Searching of the archives does not seem to yield any info. CF 5.0 is the version I am looking to use it on. Thanks, -- Dan O'Keefe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Template Execution Order
this would be great to have. anyone get this please post to the list. ERJ -Original Message- From: Dan O'Keefe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 12:02 PM To: CF-Talk Subject: Template Execution Order Has anyone ever come up with a way to display all of the templates in executed order. Searching of the archives does not seem to yield any info. CF 5.0 is the version I am looking to use it on. Thanks, -- Dan O'Keefe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
UCase() issue
Here's my problem. I have a variable that is set from a db call. This variable is passed to a tag through an attribute. The attribute value is displayed from within a UCase() function. Pretty simple stuff. But, sometimes the value of the db call contains html code (i.e.: br / , or rsquo ;[broken to protect the message]). After the UCase() these little pieces of code don't function as they should, presumably due to the actions performed on the them by the UCase() function (i.e.: rsqou ; becomes RSQUO ;). Any suggestions as to how I should handle this? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URLEncode/URLDecode
Jordan, Though I appreciate your reply, though I made a mistake with my message. It's not URLEncode, but rather the URLEncrypt UDF from cflib, in conjunction with the URLDecrypt UDF. Cutter Jordan Michaels wrote: Cutter (CF related) wrote: Still looking for any practical example of using the URLEncode/URLDecode UDF's found on cflib.org. Anybody? The (little) documentation just doesn't cut it... Cutter What kind of an example are you looking for? Just how it's used? We use it a lot for several different reasons. To send strings in a url: CFSET variables.mystring = Jack and Jill went down the hill to fetch a bucket of water! - plus some other funky stuff here: ^*$#@(^(*$#!^(*!# CFLOCATION url=""> ... the important thing there is that the URL is save and your variable will come out on the other side exactly like you sent it. HTH, Jordan -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URLEncode/URLDecode
Hi Cutter: haha. Okay. I was wondering why you were talking about cflib.org. =P I don't know anything about those tags though... so I'm afraid I can't help much. =\ Warm regards, Jordan Cutter (CF related) wrote: Jordan, Though I appreciate your reply, though I made a mistake with my message. It's not URLEncode, but rather the URLEncrypt UDF from cflib, in conjunction with the URLDecrypt UDF. Cutter Jordan Michaels wrote: Cutter (CF related) wrote: Still looking for any practical example of using the URLEncode/URLDecode UDF's found on cflib.org. Anybody? The (little) documentation just doesn't cut it... Cutter What kind of an example are you looking for? Just how it's used? We use it a lot for several different reasons. To send strings in a url: CFSET variables.mystring = Jack and Jill went down the hill to fetch a bucket of water! - plus some other funky stuff here: ^*$#@(^(*$#!^(*!# CFLOCATION url=""> ... the important thing there is that the URL is save and your variable will come out on the other side exactly like you sent it. HTH, Jordan -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URLEncode/URLDecode
Cutter, >From what little I saw, it looks like both the tags work in conjunction to camouflage the values of url variables. Say you don't want people to know that the ID of the record they are editing is 235. Then the URLEncrypt function will encrypt it with some junk-like output. Then the URlDecrypt will decrypt it whenever you need the ID on the server side. Hope that helps. George [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: UCase() issue
How about wraping the unmodified (no uCase()) string in a SPAN tag and applying style=text-transform:uppercase; to it?That should take care of it, at least in modern browsers. cheers, barneyb On Tue, 24 Aug 2004 12:20:20 -0400, Cutter (CF related) [EMAIL PROTECTED] wrote: Here's my problem. I have a variable that is set from a db call. This variable is passed to a tag through an attribute. The attribute value is displayed from within a UCase() function. Pretty simple stuff. But, sometimes the value of the db call contains html code (i.e.: br / , or rsquo ;[broken to protect the message]). After the UCase() these little pieces of code don't function as they should, presumably due to the actions performed on the them by the UCase() function (i.e.: rsqou ; becomes RSQUO ;). Any suggestions as to how I should handle this? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Quick CFMX upgrade question
I'm going to upgrade a windows 2k server to CFMX from CF5. I'm going to uninstall CF5, clean up any residuals and then install CFMX. Anybody have any suggestions, recommendations or any other things to keep in mind while I do this? -- Phillip B. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URLEncode/URLDecode
George Abraham wrote: Cutter, From what little I saw, it looks like both the tags work in conjunction to camouflage the values of url variables. Say you don't want people to know that the ID of the record they are editing is 235. Then the URLEncrypt function will encrypt it with some junk-like output. Then the URlDecrypt will decrypt it whenever you need the ID on the server side. Hope that helps. George Hmm. How are they different from the following: CFSET variables.mystring = URLEncodedFormat(Encrypt(my string goes here, myseed)) CFLOCATION url=""> ?? -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: .cfmail to .eml
I apologize - that functionality is not often used in the tag (though it's been there for quite some time) and it seems to have been broken.I corrected the tag so that the createmailfileonly functionality works properly again.You can download the updated tag here: ftp://ftp.coolfusion.com/pub/ods/cfx_imsmail/cfx_imsmail353_dll.zip Just replace the one you have with the enclosed DLL and you should be good to go. Regards, Howie - Original Message - From: Andy Jarrett To: CF-Talk Sent: Tuesday, August 24, 2004 10:50 AM Subject: Re: .cfmail to .eml Thanks for that. Though with the following code it doesnt seem to be generating any file cfx_imsmail createmailfileonly=yes spooldir=c:\Documents and Settings\aj\Desktop\ header_to=[EMAIL PROTECTED] header_from=[EMAIL PROTECTED] body=test Am i missing something? Andy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URL's with variables
I had problems doing this a long time ago. I develop on Win/Apache and the production environment was NT/IIS and it didn't like not having the document name and caused errors. I never bothered to see if it could be 'fixed' in the IIS config, just went back to using index.cfm. It WAS on NT, so it was an older version of IIS, so YMMV. Mike I am just curious to kow if anyone knows first hand of any problems when it comes to using or not using the document name in a url with variables... example: site.com/index.cfm?somevar=value is the same as site.com/?somevar=value I just did an entire site this way and it worked just fine on the dev server. but once it went to the demo server (i am told) that it caused alot of errors. Ive hit almost every page in the site with variabels in the url on the dev box and taken the vars out of the url manually to hit the page again and I havent found one incident where the error trapping didnt redirect as it should when certain vars were missing. Has anyone experienced any errors (or any differences for that matter) when you exclude the template name from your urls? there is only one index.cfm in the entire site and that is the default doc for the site in IIS [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URLEncode/URLDecode
URLEncodedFormat will only change specific characters. So, if you pass it the string my string, all you'll get out is my%20string.Also, it doesn't take a seed parameter. The second [optional] parameter is for the character set. (I believe that pre-MX, it didn't even take that second parameter at all0. http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funca114.htm#wp1114140 The URLencrypt UDF would actually encrypt the characters that URLEncodedFormat skips (such as letters and numbers). Personally, I don't see a lot of need for the URLEncrypt().If they can break your security just by changing a URL parameter, you may have bigger issues. (Unless there's ano issue I'm not thinking of) Scott -- - Scott Brady http://www.scottbrady.net/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Increasing the THREAD pool size on the JRUN server
Greg, can you post back if this workaround solves your problem?We are getting ready to jump to Enterprise on JRun and I'm scared of this problem. Thanks M!ke Dawson From: Greg Landers [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:39 AM To: CF-Talk Subject: RE: Increasing the THREAD pool size on the JRUN server Thank you for that link Hugo! That is exactly what we are dealing with. Peace, Greg _ From: Hugo Ahlenius [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:26 AM To: CF-Talk Subject: RE: Increasing the THREAD pool size on the JRUN server Could it be Jrun bug 56262 ? There are a number of posts in the Jrun forums abut this: JRUN Support Forums - Thread death and memory leak in JRun4 http://tinyurl.com/2rabd -- Hugo Ahlenius - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - |-Original Message- |From: Greg Landers [mailto:[EMAIL PROTECTED] |Sent: Tuesday, August 24, 2004 16:48 |To: CF-Talk |Subject: Increasing the THREAD pool size on the JRUN server | |We are running CFMX on a pair of load balanced WIN servers and |suddenly they have started crashing repeatedly. We restart |them and after a couple of minutes once some traffic has |started . dead. The error message states JRun Connector |Protocol Error and after reviewing the log files it seems |that the problem is occurring because the Thread Pool is |full under the JRun server . ??? | | | |Is this scenario familiar to anyone, or does anyone have any |suggestions about how to debug this problem? | | | |Many thanks, | |- Greg | | | | | | | | _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Interesting flash remoting example?
I'm assuming thisterrific effect is flash remoting? No? Anyway it's really creative and deserves a Attaboy to the designer. http://www.turnerclassicmovies.com/ Cheers Mike Kear AFP Webworks Windsor, NSW, Australia http://afpwebworks.com .com, .net, .org etc domains start at A$20/year [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Quick CFMX upgrade question
On Tue, 24 Aug 2004 11:33:29 -0500, Phill B [EMAIL PROTECTED] wrote: I'm going to upgrade a windows 2k server to CFMX from CF5. I'm going to uninstall CF5, clean up any residuals and then install CFMX. Anybody have any suggestions, recommendations or any other things to keep in mind while I do this? Aside from the suggestion to do the upgrade on a test server first to ensure that there are no surprises, not really. -- chris johnston www.fuzzylizard.com For millions of years, mankind lived just like the animals and something happened which unleashed the power of our imagination, we learned to talk. Pink Floyd [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Quick CFMX upgrade question
I'm going to upgrade a windows 2k server to CFMX from CF5. I'm going to uninstall CF5, clean up any residuals and then install CFMX. I did that upgrade on a Win2K workstation but left CF 5 in place -- shut it down first. CFMX recognized the earlier version and offered to migrate all (or many) of the existing configurations. I chose not to leave CF 5 installed, so the CFMX install routine removed it. Very easy migration. - 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] [Donations and Support]
Re: Interesting flash remoting example?
On Wed, 25 Aug 2004 02:53:30 +1000, Michael Kear [EMAIL PROTECTED] wrote: I'm assuming thisterrific effect is flash remoting? No? Anyway it's really creative and deserves a Attaboy to the designer. http://www.turnerclassicmovies.com/ Cool website. I am wondering which effect you thought was Flash Remoting, though? Effect is not necessarily a word I would ever associate with flash remoting.Since there is no obvious database integration, it is really hard to say if they are using flash remoting. -- chris johnston www.fuzzylizard.com For millions of years, mankind lived just like the animals and something happened which unleashed the power of our imagination, we learned to talk. Pink Floyd [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
OT: Urchin?
Does anybody here use Urchin?I have a few basic questions if anyone does THX, Ray = Ray Champagne - Senior Application Developer CrystalVision Web Site Design and Internet Services 603.433.9559 www.crystalvision.org = The information contained in this transmission (including any attached files) is CONFIDENTIAL and is intended only for the person(s) named above. If you received this transmission in error, please delete it from your system and notify us immediately. If you are not an intended recipient, please note that any use or dissemination of the information contained in this transmission (including any attached files) and the copying, printing, or retransmission of that information is strictly prohibited. You can notify us by return email or by phone at 603.433.9559. Thank you. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: UCase() issue
Barney, you're a genius. Cutter Barney Boisvert wrote: How about wraping the unmodified (no uCase()) string in a SPAN tag and applying style=text-transform:uppercase; to it?That should take care of it, at least in modern browsers. cheers, barneyb On Tue, 24 Aug 2004 12:20:20 -0400, Cutter (CF related) [EMAIL PROTECTED] wrote: Here's my problem. I have a variable that is set from a db call. This variable is passed to a tag through an attribute. The attribute value is displayed from within a UCase() function. Pretty simple stuff. But, sometimes the value of the db call contains html code (i.e.: br / , or rsquo ;[broken to protect the message]). After the UCase() these little pieces of code don't function as they should, presumably due to the actions performed on the them by the UCase() function (i.e.: rsqou ; becomes RSQUO ;). Any suggestions as to how I should handle this? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Using Struts with CF
Anybody here develops CF apps with Struts MVC pattern? What's your impressions? Marco [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Interesting flash remoting example?
Exactly Chris,hence my question mark on the subject line.I was wondering if people who knew more about flash remoting than I did would be able to tell.I figured the info related to the actors was coming from the database and the fact that every day has a different star might indicate that too.But as I said, other swill know more about flash remoting than me. Cheers Mike Kear _ From: Chris Johnston [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 August 2004 3:04 AM To: CF-Talk Subject: Re: Interesting flash remoting example? On Wed, 25 Aug 2004 02:53:30 +1000, Michael Kear [EMAIL PROTECTED] wrote: I'm assuming thisterrific effect is flash remoting? No? Anyway it's really creative and deserves a Attaboy to the designer. http://www.turnerclassicmovies.com/ Cool website. I am wondering which effect you thought was Flash Remoting, though? Effect is not necessarily a word I would ever associate with flash remoting.Since there is no obvious database integration, it is really hard to say if they are using flash remoting. -- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Book Review [ Java for Coldfusion Developers ]
Here is a review I wrote for the Salt Lake CFUG (http://www.slcfug.org/index.cfm?pageID=59): Jon Java for ColdFusion Developers is great overview of the Java Programming Language for web developers who already know ColdFusion and know little or no Java. The book is written for ColdFusion programmers who want to learn Java. It is not about how to use Java with ColdFusion. The book covers all of the basics of the Java programming language. By reading this book, you are ready to start doing some mid-level Java programming. You can also take your place in Java conversations you here in your office or on email lists. What is a servlet? What is a bean? What is strict typing? This book covers these basic ideas. The book focuses on 3 major parts. The first part, about 300 pages, is the Java language itself: typing, looping constructs, types of classes, locking, collections, etc. This is a very well-written overview. The second part, about 200 pages, consists of how Java is used, especially from the perspective of the web developer. You learn about servlets, JDBC, beans, JSP's, etc. This part is also well-written, but you start to find a lot of typos as you get nearer to the end of this part. This is not a major problem - the book could have used a little more proofreading. Finally, the last 90 pages of the book is a complete example of a simple bookstore sales application. What I like about this book is that it gave a pretty complete overview of the Java application from the perspective of someone who would use Java to do web development. The author is great, mixing concepts and examples very well. For such a complex topic, I like how the author jumps into the material without overexplaining everything - (e.g. like a Dummies book). Since CF'ers are not know for the OO-mindset, this pleasantly surprised me. The topics I was interested in were mostly covered, expecially servlets and JSP's. This will help me understand how ColdFusion works as a Java Application. I would like to have seen much more detail about how to start using Java with ColdFusion. The 200 pages devoted to IDE's, applets, Swing GUI's, and the example bookstore application could have been removed, I feel, and been replaced with more useful information about how ColdFusion developers could start using Java now. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Interesting flash remoting example?
i dont know if u could actually tell, except maybe check too see if they have remoting by doing the call at the end seems a bit slow too be remoting though (at least with cfcs) if u didnt see the tut that i help do on communitymx here is a diff version of it with the same remoting though http://www.jamwerx.com/authors/authors.html remoting with cfcs is VERY fast!! -- Original Message -- From: Michael Kear [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date:Wed, 25 Aug 2004 03:31:03 +1000 Exactly Chris,hence my question mark on the subject line.I was wondering if people who knew more about flash remoting than I did would be able to tell.I figured the info related to the actors was coming from the database and the fact that every day has a different star might indicate that too.But as I said, other swill know more about flash remoting than me. Cheers Mike Kear _ From: Chris Johnston [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 August 2004 3:04 AM To: CF-Talk Subject: Re: Interesting flash remoting example? On Wed, 25 Aug 2004 02:53:30 +1000, Michael Kear [EMAIL PROTECTED] wrote: I'm assuming thisterrific effect is flash remoting? No? Anyway it's really creative and deserves a Attaboy to the designer. http://www.turnerclassicmovies.com/ Cool website. I am wondering which effect you thought was Flash Remoting, though? Effect is not necessarily a word I would ever associate with flash remoting.Since there is no obvious database integration, it is really hard to say if they are using flash remoting. -- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Help with PreserveSingleQuotes...losing my mind here
As a preface, I'm using CF5 on Win2K. I'm trying to create a UDF as follows (it will have more functions later, I know it doesn't seem very useful at the moment): cfscript function TextStore(db_string) { db_string = PreserveSingleQuotes(db_string); return db_string; } cfscript then call it as cfset bar = 'something' cfset foo = '#TextStore(bar)#' And it keeps popping this error: Parameter 1 of function PreserveSingleQuotes which is now db_string must be a valid variable name Yet when I do a WriteOutput(db_string) just above the PSQ(db_string), it outputs the value of the variable fine. I've tried countless combinations of pound signs, single quotes, and double quotes around the PSQ function, and _nothing_ is working. In 5 years of working with ColdFusion I've never had this kind of trouble with PreserveSingleQuotes...what am I doing wrong here? Thanks. Cassidy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Interesting flash remoting example?
I don't think it's the data aquisition that's slow, just the UI.it maxed my processor, and was still running well below it's desired framerate, so it's definitely a proc intensive little movie.There isn't actually that much data to gather, when you think about it, and it's static, so using XML directly would be a cheaper and not significantly more complex option if they're not running on CF (I didn't notice). cheers, barneyb On Tue, 24 Aug 2004 13:39:28 -0400, dave [EMAIL PROTECTED] wrote: i dont know if u could actually tell, except maybe check too see if they have remoting by doing the call at the end seems a bit slow too be remoting though (at least with cfcs) if u didnt see the tut that i help do on communitymx here is a diff version of it with the same remoting though http://www.jamwerx.com/authors/authors.html remoting with cfcs is VERY fast!! -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Help with PreserveSingleQuotes...losing my mind here
I belive that PSQ is only valid inside CFQUERY tags, because that's the only place that CF will automatically double your single quotes. Thus, you can't use it in a UDF.It's weird that it's giving you that error message, but getting the wrong message like that isn't unheard of. I'm curous about your UDF though.It's not doing anything except what PSQ already does, so why not just call PSQ directly? cheers, barneyb On Tue, 24 Aug 2004 10:43:27 -0700, Cassidy Symons [EMAIL PROTECTED] wrote: As a preface, I'm using CF5 on Win2K. I'm trying to create a UDF as follows (it will have more functions later, I know it doesn't seem very useful at the moment): cfscript function TextStore(db_string) { db_string = PreserveSingleQuotes(db_string); return db_string; } cfscript then call it as cfset bar = 'something' cfset foo = '#TextStore(bar)#' And it keeps popping this error: Parameter 1 of function PreserveSingleQuotes which is now db_string must be a valid variable name Yet when I do a WriteOutput(db_string) just above the PSQ(db_string), it outputs the value of the variable fine. I've tried countless combinations of pound signs, single quotes, and double quotes around the PSQ function, and _nothing_ is working. In 5 years of working with ColdFusion I've never had this kind of trouble with PreserveSingleQuotes...what am I doing wrong here? Thanks. Cassidy -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Help with PreserveSingleQuotes...losing my mind here
I belive that PSQ is only valid inside CFQUERY tags, because that's the only place that CF will automatically double your single quotes. Thus, you can't use it in a UDF.It's weird that it's giving you that error message, but getting the wrong message like that isn't unheard of. cfset foo = '#PreserveSingleQuotes(bar)#' cfquery INSERT INTO table (column) VALUES ('#foo#') /cfquery The above works fine (and for the sake of my last shred of sanity, I did just test it), so I know PSQ works outside of queries. It's possible that it doesn't work within UDFs, although a quick search on Google didn't yield any documentation to that effect... I'm curous about your UDF though.It's not doing anything except what PSQ already does, so why not just call PSQ directly? Two reasons: 1) Eventually there will be more text formatting going on in the UDF...well, there will be if I ever get the damn PSQ part working. ;-) 2) You can't call PreserveSingleQuotes on an indexed value, such as a specific query value - PreserveSingleQuotes(query_name.column_name[i]) pops an error, so you have to store query_name.column_name[i] to a temp variable, then perform PSQ on the temp variable. In the interest of not having to deal with temp variables, I wanted to see if sticking PSQ in a UDF would let me use it in that fashion, since MyFunction(query_name.column_name[i]) doesn't pop an error. Cassidy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Help with PreserveSingleQuotes...losing my mind here
I'm trying to create a UDF as follows (it will have more functions later, I know it doesn't seem very useful at the moment): cfscript function TextStore(db_string) { db_string = PreserveSingleQuotes(db_string); return db_string; } cfscript then call it as cfset bar = 'something' cfset foo = '#TextStore(bar)#' And it keeps popping this error: Parameter 1 of function PreserveSingleQuotes which is now db_string must be a valid variable name Yet when I do a WriteOutput(db_string) just above the PSQ(db_string), it outputs the value of the variable fine. I've tried countless combinations of pound signs, single quotes, and double quotes around the PSQ function, and _nothing_ is working. In 5 years of working with ColdFusion I've never had this kind of trouble with PreserveSingleQuotes...what am I doing wrong here? This is just a guess, but I think the problem might have to do with the fact that you're using the same name for the local variable as you are for the argument. You should be able to do this: function TextStore(db_string) { var tmp_db_string = PreserveSingleQuotes(db_string); return tmp_db_string; } Or this: function TextStore(db_string) { return PreserveSingleQuotes(db_string); } However, as Barney points out, this isn't going to buy you much, I suspect, since it only makes sense to use PreserveSingleQuotes within a CFQUERY tag. Presumably, you could call your function within your CFQUERY tag and it might work, but I don't know if that's what you plan to do. 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] [Donations and Support]
Re: Help with PreserveSingleQuotes...losing my mind here
This is just a guess, but I think the problem might have to do with the fact that you're using the same name for the local variable as you are for the argument. You should be able to do this: function TextStore(db_string) { var tmp_db_string = PreserveSingleQuotes(db_string); return tmp_db_string; } Or this: function TextStore(db_string) { return PreserveSingleQuotes(db_string); } Tried both of those, no go on either...I also tried function TextStore(db_string); { var db_string_temp = db_string; return PreserveSingleQuotes(db_string_temp); } However, as Barney points out, this isn't going to buy you much, I suspect, since it only makes sense to use PreserveSingleQuotes within a CFQUERY tag. Presumably, you could call your function within your CFQUERY tag and it might work, but I don't know if that's what you plan to do. As I said in an email to Barney, I've used PSQ outside of a queries before and it has worked, however...I was just playing around with turning off PSQ, and I realized ColdFusion was automatically doubling up my single quotes without even calling PSQ, which I'd never experienced before. I know it does that kind of stuff with CFINSERT and CFUPDATE, but CFQUERY? Have I been using PSQ for nothing, or am I really missing something here? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Interesting flash remoting example?
if it maxed your processor then maybe they are using xml if they arent then they probably shouldnt as doing it the xml way creates WAY more overhead then remoting does and is slower u r right, there isnt too much info too pull in. So remoting would ROCK!! -- Original Message -- From: Barney Boisvert [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date:Tue, 24 Aug 2004 10:44:03 -0700 I don't think it's the data aquisition that's slow, just the UI.it maxed my processor, and was still running well below it's desired framerate, so it's definitely a proc intensive little movie.There isn't actually that much data to gather, when you think about it, and it's static, so using XML directly would be a cheaper and not significantly more complex option if they're not running on CF (I didn't notice). cheers, barneyb [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Help with PreserveSingleQuotes - RESOLVED
Sorry, I figured things out...I was having a brainfart. Cassidy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Increasing the THREAD pool size on the JRUN server
There were two issues: ColdFusion connections and MySQL connections. We added the attribute maxHandlerThreads to the JRun config file like this: service class=jrunx.scheduler.SchedulerService name=SchedulerService attribute name=maxHandlerThreads1000/attribute /service At which point we started seeing the MySQL connections errors. We then changed the database to accept 500 connections instead of the default 100. We don't know if the MySQL issue was there before the thread change, or if it finally showed up as a result of opening ColdFusion up enough to go over the sql connection limit. Either way, it seems to be behaving now. Thanks, Greg _ From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 11:52 AM To: CF-Talk Subject: RE: Increasing the THREAD pool size on the JRUN server Greg, can you post back if this workaround solves your problem?We are getting ready to jump to Enterprise on JRun and I'm scared of this problem. Thanks M!ke Dawson From: Greg Landers [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:39 AM To: CF-Talk Subject: RE: Increasing the THREAD pool size on the JRUN server Thank you for that link Hugo! That is exactly what we are dealing with. Peace, Greg _ From: Hugo Ahlenius [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:26 AM To: CF-Talk Subject: RE: Increasing the THREAD pool size on the JRUN server Could it be Jrun bug 56262 ? There are a number of posts in the Jrun forums abut this: JRUN Support Forums - Thread death and memory leak in JRun4 http://tinyurl.com/2rabd -- Hugo Ahlenius - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - |-Original Message- |From: Greg Landers [mailto:[EMAIL PROTECTED] |Sent: Tuesday, August 24, 2004 16:48 |To: CF-Talk |Subject: Increasing the THREAD pool size on the JRUN server | |We are running CFMX on a pair of load balanced WIN servers and |suddenly they have started crashing repeatedly. We restart |them and after a couple of minutes once some traffic has |started . dead. The error message states JRun Connector |Protocol Error and after reviewing the log files it seems |that the problem is occurring because the Thread Pool is |full under the JRun server . ??? | | | |Is this scenario familiar to anyone, or does anyone have any |suggestions about how to debug this problem? | | | |Many thanks, | |- Greg | | | | | | | | _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CF-Smarty
Could you be more specific? Are you looking for generic parser generators or do you just want to do some sort of declarative templating? -Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Micha Schopman Sent: Tuesday, August 24, 2004 10:04 AM To: CF-Talk Subject: CF-Smarty I am looking for stack based template parsers build with CFML (and thus running on ColdFusion). I am specifically looking for a stack based version, not for a version based on regular expressions or recursion. Does anyone happen to know one? Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 ALAmersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Help with PreserveSingleQuotes...losing my mind here
As I said in an email to Barney, I've used PSQ outside of a queries before and it has worked, however...I was just playing around with turning off PSQ, and I realized ColdFusion was automatically doubling up my single quotes without even calling PSQ, which I'd never experienced before. I know it does that kind of stuff with CFINSERT and CFUPDATE, but CFQUERY? Have I been using PSQ for nothing, or am I really missing something here? Yes, I think you are. That's the default behavior for CFQUERY, and always has been. The PreserveSingleQuotes function allows you to override that behavior. As for PreserveSingleQuotes working before, the function won't produce an error if used outside of CFQUERY, but it won't have any effect unless used within a CFQUERY, if I recall correctly. 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] [Donations and Support]
Re: Help with PreserveSingleQuotes...losing my mind here
As I said in an email to Barney, I've used PSQ outside of a queries before and it has worked, however...I was just playing around with turning off PSQ, and I realized ColdFusion was automatically doubling up my single quotes without even calling PSQ, which I'd never experienced before. I know it does that kind of stuff with CFINSERT and CFUPDATE, but CFQUERY? Have I been using PSQ for nothing, or am I really missing something here? PSQ is for when you DON'T want CF to automatically escape your quotes. I don't know that I've got more than a couple instances of PSQ in any production app I've worked on, and the two cases I can think of are both because I had to generate my SQL statement outside the CFQUERY tag (don't ask about reasons;), and consequently didn't want CF messing with my quotes. cheers, barneyb On Tue, 24 Aug 2004 11:13:31 -0700, Cassidy Symons [EMAIL PROTECTED] wrote: This is just a guess, but I think the problem might have to do with the fact that you're using the same name for the local variable as you are for the argument. You should be able to do this: function TextStore(db_string) { var tmp_db_string = PreserveSingleQuotes(db_string); return tmp_db_string; } Or this: function TextStore(db_string) { return PreserveSingleQuotes(db_string); } Tried both of those, no go on either...I also tried function TextStore(db_string); { var db_string_temp = db_string; return PreserveSingleQuotes(db_string_temp); } However, as Barney points out, this isn't going to buy you much, I suspect, since it only makes sense to use PreserveSingleQuotes within a CFQUERY tag. Presumably, you could call your function within your CFQUERY tag and it might work, but I don't know if that's what you plan to do. As I said in an email to Barney, I've used PSQ outside of a queries before and it has worked, however...I was just playing around with turning off PSQ, and I realized ColdFusion was automatically doubling up my single quotes without even calling PSQ, which I'd never experienced before. I know it does that kind of stuff with CFINSERT and CFUPDATE, but CFQUERY? Have I been using PSQ for nothing, or am I really missing something here? -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Help with PreserveSingleQuotes...losing my mind here
Yes, I think you are. That's the default behavior for CFQUERY, and always has been. The PreserveSingleQuotes function allows you to override that behavior. As for PreserveSingleQuotes working before, the function won't produce an error if used outside of CFQUERY, but it won't have any effect unless used within a CFQUERY, if I recall correctly. Yeah, I realized that after I sent it and tested a couple more things...I've gotten used to other languages that don't automatically escape single quotes, and got myself turned around on what I was accomplishing with PSQ. Anyway, sorry for the confusion but thanks (to both you and Barney) for the help...I've had my Public Brainfart for the year now. ;-) Cassidy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
test post
test post [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: test post
test post test post [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: WAY OT: Einstein at a Spelling Bee - was Re: Exactly *how* smart are we?
Bruce maybe... iirc Einstein had lousy spelling... and wasn't real great with math either. I suspect Albert would have found the spelling bee idea silly anyway, given that he never memorized his own phone number because it was in the phone book. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? Tried to resist this topic to no avail, one would think intelligence and intellect are sort of twins to some. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Legal or Not Legal?
Matt Blatchley wrote: The Web metrics program I'm using tracks the usual...ipaddress, country, state, ISP, keyword/search engine, and site path of the user as they go from page to page within a site.This is all fine, but two different people have told me that once I match up the statistical data with a person who has placed an order, or filled out a contact form is not legal.Anyone know of this? In the Netherlands that would be correct. And since the Dutch law is supposed to be nothing but a translation of the European privacy directives, supposedly that would be illegal in all of Europe. What's your location? Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Template Execution Order
Has anyone ever come up with a way to display all of the templates in executed order. Yes, Macromedia has :-) In CF Admin: -Enable debugging. -Check Report Execution Times -Set display to Tree -- --Matt Robertson-- MSB Designs, Inc. mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Template Execution Order
I know that is in 6.1 but the client I am working at has 5.0. Dan - Original Message - From: Matt Robertson [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 13:12:03 -0700 Subject: Re: Template Execution Order To: CF-Talk [EMAIL PROTECTED] Has anyone ever come up with a way to display all of the templates in executed order. Yes, Macromedia has :-) In CF Admin: -Enable debugging. -Check Report Execution Times -Set display to Tree -- --Matt Robertson-- MSB Designs, Inc. mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Template Execution Order
DOH! thanks! -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 4:12 PM To: CF-Talk Subject: Re: Template Execution Order Has anyone ever come up with a way to display all of the templates in executed order. Yes, Macromedia has :-) In CF Admin: -Enable debugging. -Check Report Execution Times -Set display to Tree -- --Matt Robertson-- MSB Designs, Inc. mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Template Execution Order
Be aware that enabling this will make your application slow WAY down if you're using CFCs.For whatever reason, CFC invocations increase the processing time enormously, both for the actual request, and the rendering of the debug output. cheers, barneyb On Tue, 24 Aug 2004 13:12:03 -0700, Matt Robertson [EMAIL PROTECTED] wrote: Has anyone ever come up with a way to display all of the templates in executed order. Yes, Macromedia has :-) In CF Admin: -Enable debugging. -Check Report Execution Times -Set display to Tree -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF-Smarty
I am familiar with the general discussion about why create a template parser, since ColdFusion IS a template parser so I need to give some background info on what I try to accomplish. I am (started in January this year) creating a CMS with CFML. This CMS is created with the seperation of business logic and presentation layers in mind. Currently I use templates like homepage.cfm, subpage.cfm to render the content into a presentation. What is displayed, is defined in the template with short calls to methods retrieving the content etc. But ... I want to introduce a template builder. In the backend the users selects a starting template and is able to fill it with containers, building blocks like article,poll,opt-in,navigation. This means templates will become dynamic. I have two options: 1)Generate cfml code on the fly, and save the result as a template. 2)Use a custom markup language, and use a template parser to parse all the tags with corresponding content. Option 1 is more work, not because of the methods which replace the markup language (in option 1 it is pre-generated, in option 2 it is generated on demand), but because I need to keep a reference of the editable regions, where, how, business rules, etc. So I want to have a sort of dreamweaver template with my custom code: html xmlns=smml style type=text/css @media all{ smml:/container{ border:1px solid red; } smml:/article{ font-family:Arial; font-size:11px; } } /style body smml:container smml:log type=UsabilityAnalysis event=all smml:article action="" frompage=1234 / /smml:log /smml:container /body /html Then this would be parsed by the template parser. I want it stack based because this gives me the ability to 1: validate correct nesting 2: more performance 3: enables flow options [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CF-Smarty
So you want to build into CF the ability to have PHP's smarty template engine? Sort of like having a scripting engine inside a scripting engine. I dig the idea. I use a php app that makes tremendous use of the smarty template engine and there is no end of really cool things I can do with it. Sorry I don't really have any good information for you, but please keep us informed on your progress. I, for one, will be very interested. Ferg _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 1:40 PM To: CF-Talk Subject: RE: CF-Smarty Could you be more specific? Are you looking for generic parser generators or do you just want to do some sort of declarative templating? -Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Micha Schopman Sent: Tuesday, August 24, 2004 10:04 AM To: CF-Talk Subject: CF-Smarty I am looking for stack based template parsers build with CFML (and thus running on ColdFusion). I am specifically looking for a stack based version, not for a version based on regular expressions or recursion. Does anyone happen to know one? Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 ALAmersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CF-Smarty
Is it a requirement that the parser run in CFML? Would Java be okay? Can you wait for Blackstone? Are you sure you need more power than XSLT already provides? -Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Micha Schopman Sent: Tuesday, August 24, 2004 4:26 PM To: CF-Talk Subject: Re: CF-Smarty I am familiar with the general discussion about why create a template parser, since ColdFusion IS a template parser so I need to give some background info on what I try to accomplish. I am (started in January this year) creating a CMS with CFML. This CMS is created with the seperation of business logic and presentation layers in mind. Currently I use templates like homepage.cfm, subpage.cfm to render the content into a presentation. What is displayed, is defined in the template with short calls to methods retrieving the content etc. But ... I want to introduce a template builder. In the backend the users selects a starting template and is able to fill it with containers, building blocks like article,poll,opt-in,navigation. This means templates will become dynamic. I have two options: 1)Generate cfml code on the fly, and save the result as a template. 2)Use a custom markup language, and use a template parser to parse all the tags with corresponding content. Option 1 is more work, not because of the methods which replace the markup language (in option 1 it is pre-generated, in option 2 it is generated on demand), but because I need to keep a reference of the editable regions, where, how, business rules, etc. So I want to have a sort of dreamweaver template with my custom code: html xmlns=smml style type=text/css @media all{ smml:/container{ border:1px solid red; } smml:/article{ font-family:Arial; font-size:11px; } } /style body smml:container smml:log type=UsabilityAnalysis event=all smml:article action="" frompage=1234 / /smml:log /smml:container /body /html Then this would be parsed by the template parser. I want it stack based because this gives me the ability to 1: validate correct nesting 2: more performance 3: enables flow options [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF-Smarty
Yes, XSLT is unfortunately very limited. It is a fine transformation language for simple or intermediate level templates, but I have experienced several situations where XSLT lacks functionality. It is just not powerfull enough. What I am interested in are more or less proof of concepts, little code pieces which help me to: 1: split a page into an array of tags (including the content) This is difficult, because a page is not always xml formatted (like xhtml strict) 2: run thread safe code, which is able to be nested within other code blocks (this already works) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URL's with variables
The only time I've ever seen a problem with it is if I accidentally left the trailing / off of the directory name. Doesn't mean there can't be problems even when the / is there. I think most (all?) webservers are capable of supporting this, so in an instance where there is a problem I'd bank on it being a misconfigured webserver. I had problems doing this a long time ago. I develop on Win/Apache and the production environment was NT/IIS and it didn't like not having the document name and caused errors. I never bothered to see if it could be 'fixed' in the IIS config, just went back to using index.cfm. It WAS on NT, so it was an older version of IIS, so YMMV. Mike I am just curious to kow if anyone knows first hand of any problems when it comes to using or not using the document name in a url with variables... example: site.com/index.cfm?somevar=value is the same as site.com/?somevar=value I just did an entire site this way and it worked just fine on the dev server. but once it went to the demo server (i am told) that it caused alot of errors. Ive hit almost every page in the site with variabels in the url on the dev box and taken the vars out of the url manually to hit the page again and I havent found one incident where the error trapping didnt redirect as it should when certain vars were missing. Has anyone experienced any errors (or any differences for that matter) when you exclude the template name from your urls? there is only one index.cfm in the entire site and that is the default doc for the site in IIS [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CF-Smarty
As it stands now there simply aren't people writing parsers in CFML. I have written parsers for a variety of languages using C and Java. Further, there are a good number of open source parser generators available for C/C++ and Java. However, you aren't going to be able to easily make use of them without things being inefficient. Normally, you would use the visitor pattern and register call back methods as different elements are parsed. You couldn't do this with a Java-based parser and CFML since the call backs would need to hit CFCs. Blackstone would allow you to do this since you will be able to call CFCs from Java. If you want to go the inefficient route, you could have a Java-based parser create a parse tree and then you could traverse the parse tree from CFML. If you are interested in going that route I can point you in the right direction. -Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Micha Schopman Sent: Tuesday, August 24, 2004 4:55 PM To: CF-Talk Subject: Re: CF-Smarty Yes, XSLT is unfortunately very limited. It is a fine transformation language for simple or intermediate level templates, but I have experienced several situations where XSLT lacks functionality. It is just not powerfull enough. What I am interested in are more or less proof of concepts, little code pieces which help me to: 1: split a page into an array of tags (including the content) This is difficult, because a page is not always xml formatted (like xhtml strict) 2: run thread safe code, which is able to be nested within other code blocks (this already works) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Creating a List from a Recursion
Hey Joe, Thanks for your input.Actually I figured something out using session variables and it works amazingly well. The performance of it also isn't too terrible since the most the script should ever recurse would be 5 or 6 times, if that. I am, however, intrigued by your comment about having the database track its own hierarchy.I tried creating new columns for generation and parent root but got stuck when I was trying to get the path for a 3rd generation crumb with several 2nd generation crumbs that shared the same root, if that makes any sense.In other words, I could get the first and last breadcrumbs without problems but getting the second was a bit difficult without something to tell the system which second generation crumb to use. The other option you suggested I did play around with but was never able to totally figure it out.I'm assuming it's intended to be utilized in a CF script and I don't have too much experience with CF scripting. Thanks for your help, --Anne Hi Anne, In your custom tag, you can look at the base tag list with getBaseTagList() and see if it is its own first base tag.If not, create a structure called ancestorData, and give it a member called ancestorList.If it is its own base tag, create a reference to the structure using ancestorData = getBaseTagData(cf_breadcrumbs).ancestorData.At the end of your breadcrumbs tag, pass the structure back to the current page using the caller scope. On a side note, this system could be very resource intensive.You may want to look at ways to have your navigation table track its own hierarchy, having a column that tracks what generation a child is, and what its root parent ID is.That way, you can query an entire breadcrumb in one query by asking for all children of a root parent ID ordered by their generation. Disclaimer:There are also many other ways to implement this that are even less intensive, but require more development that I can't go into right now because my dev server just came back up. Cheers, Joe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Creating a List from a Recursion
I'd recommend using the request scope, rather than the session scope. A breadcrumb display is not bound to a user session in any way, it's strictly related to the current request. Joe's suggestion to use the custom tag framework that CF provides is superior even to that, because it allows multiple invocations of the tag on a single request to remain totally independant, but that's probably not much of an issue with breadcrumb generation. cheers, barneyb On Tue, 24 Aug 2004 17:24:01 -0400, Anne Girardeau [EMAIL PROTECTED] wrote: Hey Joe, Thanks for your input.Actually I figured something out using session variables and it works amazingly well. The performance of it also isn't too terrible since the most the script should ever recurse would be 5 or 6 times, if that. I am, however, intrigued by your comment about having the database track its own hierarchy.I tried creating new columns for generation and parent root but got stuck when I was trying to get the path for a 3rd generation crumb with several 2nd generation crumbs that shared the same root, if that makes any sense.In other words, I could get the first and last breadcrumbs without problems but getting the second was a bit difficult without something to tell the system which second generation crumb to use. The other option you suggested I did play around with but was never able to totally figure it out.I'm assuming it's intended to be utilized in a CF script and I don't have too much experience with CF scripting. Thanks for your help, --Anne -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Creating a List from a Recursion
Thanks for the tip barneyb, I replaced session with request and it still works beautifully. I agree that it's not much of an issue with breadcrumb generation.I'm never going to need more than one set of breadcrumbs on a requesting page so hopefully I'm pretty safe with what I have. Thanks again, --Anne I'd recommend using the request scope, rather than the session scope. A breadcrumb display is not bound to a user session in any way, it's strictly related to the current request. Joe's suggestion to use the custom tag framework that CF provides is superior even to that, because it allows multiple invocations of the tag on a single request to remain totally independant, but that's probably not much of an issue with breadcrumb generation. cheers, barneyb On Tue, 24 Aug 2004 17:24:01 -0400, Anne Girardeau [EMAIL PROTECTED] wrote: -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: URL's with variables
quote source=originalpost there is only one index.cfm in the entire site and that is the default doc for the site in IIS /quote and the answer was... there is only one index.cfm in the entire site and that is the default doc for the site in IIS not only is it the default document in IIS, it's THE default document in IIS. I dont know what else to say to explain that it is the default document in IIS. - Original Message - From: Hugo Ahlenius To: CF-Talk Sent: Tuesday, August 24, 2004 7:52 AM Subject: RE: URL's with variables |there is only one index.cfm in the entire site and that is the |default doc for the site in IIS /quote But the question is -- does IIS return (or redirect to) index.cfm when no file is specified or just a ? given: http://host/dir/ http://host/dir/? Perhaps it is looking for default.htm/asp, and not worrying about index.cfm ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Date, Ignore time
What is the most efficient way to ignore the time portion of a date field in SQL server when making a comparison to a user specified date value without a time portion? Wow, that was a mouthful. Thanks, Mike [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Date, Ignore time
trunc ? Thanks, CC x56927 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Date, Ignore time
Cast to date, if you're not using an index, would seem like the best bet to me.Second to that, add a time portion to the user's value behind the scenes that will make the comparison do what you want.If it's a LT comparison, set the time to midnight.If it's a LTE, set the time to 23:59:59.etc. I usually do the latter, because the CFCs that house my business logic assume that everything (well, almost everything) is a datetime value. So in my UI controller, I tack on the appropriate time portion, and then pass the full datetime to the backend CFCs. cheers, barneyb On Tue, 24 Aug 2004 18:02:02 -0400, Tangorre, Michael [EMAIL PROTECTED] wrote: What is the most efficient way to ignore the time portion of a date field in SQL server when making a comparison to a user specified date value without a time portion? Wow, that was a mouthful. Thanks, Mike -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Date, Ignore time
Or maybe Left(Getdate(),11) Thanks, CC [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
categories, subcategories and sub-subcategories in a database
I have scripts and notes that I would like to be able to organize in a better fashion. For example (scripts) Category: _javascript_ SubCategory: Form Validation SubSubCategory: Checkboxes Item: Is checkbox selected? I'm thinking about the following tables: SCRIPTS scriptID scriptText SCRIPTDISPLAY scriptDisplayID scriptID scriptCategory The scriptCategory would be a combined number based upon category and subcategories (tables seen below) CATEGORY categoryID categoryName (Cold Fusion, PHP, _javascript_) SUB1 sub1ID sub1Name (Form Validation, Browser Detection) SUB2 sub2ID sub2Name (Checkboxes, Textboxes) An admin screen would pull the categories out and would build the scriptCategory number example 002 001 001 001 (_javascript_, Form Validation, Checkboxes, Item) So a search for this (or any) script would be SELECT FROM WHERE #LEFT(scriptCategory,3)# AND #MID(scriptCategory,4,3)# AND ... If ever I add more subcategories I would only have to add more MIDs and cfparams. Now I have more complicated scenarios with notes and cross-referencing -- but this post has become long enough. I'll leave that until later. :-) thx for any ideas Gil [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Simultaneous File download limiting system
Hi, We are attempting to create a file download system that will limit the user to two simultaneous file transfers.We have a project where we have a file browser web page in the web site that reads from a database and when the user wishes to download a file they click the icon and we direct them to our ftp site with a redirection to a link like so: ftp://ftp.oursite.com/filename.zip . The files are fairly large 6-25megs each so we didn't want to burden the CF engine sending them inline with cfcontent.We are using CF 5.x and Serv-U 4.x as the FTP server. We have bandwidth limiting on the FTP server so when a user opens multiple download sessions the transfer rates drop.We are trying to write either a server side (CF) or client side (_javascript_) script to detect that they are already downloading two files and when one of the files finishes the third file they queued will start. Within CF I can determine when a download starts but can't find a way to determine when it is actually finished. I was wondering of anyone knows of a way to get the file completion status from Serv-U maybe with a plugin or add-on utility, short of parsing the logs? Alternately being a _javascript_ novice I am unsure if a client slide solution can be written where the _javascript_ in the browser detects the two open download windows and prevents them downloading another until one of the windows is finished.It doesn't have to be foolproof to the advanced users like a server side solution would be. It just needs to be functional for most users. Any assistance is greatly appreciated. Best Regards, Dennis Powers UXB Internet- A Website Design and Hosting Company 690 Wolcott Road - P.O. Box 6028 Wolcott, CT 06716 tel: (203)879-2844 http://www.uxbinternet.com http://dennis.uxb.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Creating a List from a Recursion
Currently the breadcrumbs display directly from the custom tag which works relatively well.Except there are instances when I would really like to have the data placed into a list. Any ideas how I could accomplish this? You need to build the list successively with each recursion and then pass it back the to calling routine.We do this with a breadcrumb tag we wrote for our applications. In our case we wanted a list of the ID numbers of the levels that were recursed.So we created a variable Levellist that gets passed to the recursive routine as an attribute then in the routine we executed this command cfset LevelList = ListPrepend(#Attributes.LevelList#, #GetLevel.ParentItemID#) then at the end of the routine we pass it back cfset Caller.Levellist=LevelList Best Regards, Dennis Powers UXB Internet- A Website Design and Hosting Company 690 Wolcott Road - P.O. Box 6028 Wolcott, CT 06716 tel: (203)879-2844 http://www.uxbinternet.com http://dennis.uxb.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Date, Ignore time
thats what I was going to suggest select trunc(date_Field) from dual will return just the date part.. but they're using SQL server, I dont think trunc works with that :) perhaps select convert(datetime, convert(varchar(10), DateField, 101), 101) http://msdn.microsoft.com/library/default.asp?url=""> On Tue, 24 Aug 2004 14:58:43 -0700, Casey C Cook [EMAIL PROTECTED] wrote: trunc ? Thanks, CC x56927 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]