Re: Distributive Mode
Thanks so much! I really appreciate all the feedback and information from everyone. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359495 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Distributive Mode
Looking for help. We currently run CF9 on windows and run it in distributive mode. I set this up by installing coldfusion on one server(using JRUN to run multiple instances), setup a cluster.. then copy the wsconfig.jar file to the IIS web server, install the JRE on web server then run the java -jar wsconfig.jar to load to the web config tool.. I then would enter the host name of the coldfusion box.. it would display the cf cluster on the coldfusion box.. then I would choose the website I wanted to add the coldfusion mapping to.. and all would be good. I am currently trying to setup CF11 in this configuration and am having trouble.. A. finding any documentation on this for CF11 B. getting it to work .. Any help would be appreciated. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359478 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributive Mode
Distributive mode allowed us to have three servers on three separated tiers. Presentation, Application and Database. Presentation never talking to DB. To me it doesn't seem a good idea to run IIS and Coldfusion on the same server. There is already a load balancer(reverse proxy) in front of the web servers but I prefer not to run IIS and Coldfusion on the same server. Are all Coldfusion installations done on the web server now? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributive Mode
For better security...piece of mind, I prefer to have my web servers physically separated from my database servers and distributed mode lets me do this. I finally did find a good article https://wikidocs.adobe.com/wiki/display/coldfusionen/WebSocket+Enhancements that describes exactly what I need to do within CF11. I will give this a go and see if I have success. Thanks for the help and advice. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359482 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
httponly and cookie-secure
Not sure what I am missing here. We are running Coldfusion 9.0.2 in a clustered environment. I added the -Dcoldfusion.sessioncookie.httponly=true to the jvm.config file. I restart the coldfusion instances. Run an application scan and it still says the y are not httponly (also check using Chrome and it says the same thing). I also added the cookie-config activetrue/active cookie-securetrue/cookie-secure /cookie-config to the jrun-web.xml file in each cf instance as well and the scan comes back with the cookies not being set to secure. This is a very straight forward process that I have implemented on other setups.. so I am really puzzled as to why this is not working on this current environment. Any ideas? I am using CF 9.0.2 w/ built-in JRUN and Windows 2008 R2 OS. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358658 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Coldfusion in distributed mode with multiple subnets on host
I am running coldfusion 9 in distributed mode(web server and CF on different servers). I have three web servers and three coldfusion servers running in a clustered environment. The problem is that I can never get the cluster setup or the web servers to see the cluster unless I disable the database NIC on the coldfusion boxes. Our environment is divided into three tiers. Web tier, Application tier and Database tier with the web servers not being able to see the database tier... so the web servers do not have a database NIC and it seems coldfusion is always listening on the .111 subnet (database). This also causes a problem when coldfusion is restarted on one of the app servers because it always rejoins the cluster using it's .111 address and then the web servers do not pass traffic to those coldfusion servers until I shut down the database NIC and then restart the coldfusion services.. It then registers on the App tier subnet which the web servers can see. Any ideas on how to make coldfusion only listen on the App tier ip address and not the database tier ip address? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion in distributed mode with multiple subnets on host
Thanks for all the replies.. Changing the order of the nics was all I had to do. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Announcement: ColdBox Developer Week - FREE training
Team ColdBox is excited to announce an entire week of free ColdBox training coming up at the end of this month-- July 23rd through 27th. We've lined up 15 sessions of beginner and advanced topics from ColdBox experts all around the world. Please check out the session schedule on the official CBDW page of our site and get signed up now. http://www.coldbox.org/cbdw What the heck IS ColdBox? ColdBox is an event-driven, convention-based ColdFusion Development Platform. Read more about ColdBox here: http://www.coldbox.org/about Thanks! ~Brad ColdBox Platform Evangelist Ortus Solutions, Corp E-mail: b...@coldbox.org ColdBox Platform: http://www.coldbox.org Blog: http://www.codersrevolution.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351793 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFHTTP in Distributed Mode
Have a problem with using an cfhttp get command while running in distributed mode. I have one test lab setup running coldfusion and iis on the same box and the cfhttp get command works great. The other is running in distributed mode (web and cf on different servers) and it fails every time with a Connection Failure error. I have eliminated almost all variables and am left that the only difference is one is running in distributed mode and the other is not. Both tests are running on IIS and Coldfusion 9. If anyone has any ideas as to why a cfhttp get would work on a non distributed mode vs a distributed mode.. I would love any suggestions. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351275 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP in Distributed Mode
What does the URL look like? If you're using the address as if it is on the webserver, make sure the CFHTTP url is pointing to the web server, Phil Well, after some more troubleshooting.. realized that the CFHTTP Get was trying to access the URL from the Coldfusion box and not the web box.. had to add the Proxy statements to the CFHTTP command in order for the outside url to be accessible from the CF applicatin box (had no public access on it) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351277 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP in Distributed Mode
Well, after some more troubleshooting.. realized that the CFHTTP Get was trying to access the URL from the Coldfusion box and not the web box.. had to add the Proxy statements to the CFHTTP command in order for the outside url to be accessible from the CF applicatin box (had no public access on it) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351278 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Cluster not sending request to second server
I have two Windows 2008 R2 boxes, one running 4 CF instances and the other running two. I have created a cluster with all six instances. My problem is that Coldfusion never sends request to the second server. I had this running for many years on 2003 servers but for some reason i cannot get this setup to work. Any ideas? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cluster not sending request to second server
Do you have a port filter on the network? On Mar 12, 2012 10:49 AM, brad f b...@ciswired.com wrote: No port filter and local os firewall disabled. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cluster not sending request to second server
Do you have a port filter on the network? On Mar 12, 2012 10:49 AM, brad f b...@ciswired.com wrote: no port filter and local os firewall is disabled. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cluster not sending request to second server
ok.. Thanks for all the quick replies but i have figured it out after doing a netstat and seeing the other server was connecting on the wrong subnet.. i disabled the other NIC and restarted CF services.. then re-enabled the other nic and we are good to go. Thanks again for all the responses :-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion 9 Session Replication
Here's a question hopefully someone can answer. Is it possible to use session replication to multiple instances on different physical servers without having to use CF load-balancing? We have a hardware load balancer in front of the web servers. I would like hardware appliance to handle the load-balancing and failover in the event a failure. All I want CF to do is replicate the sessions so they are available on the other servers if the load balancer marks a server as unavailable. Is this possible? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348029 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Salesforce CFC?
riaforge.com should give you a way to submit a ticket and contact the project owner so he can include your updates into the main project. ~Brad - Original Message - From: Billy Cox bi...@oldworldspices.com To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, July 22, 2010 10:40 AM Subject: Re: Salesforce CFC? For the benefit of anyone else who wants to use Salesforce.CFC with the Salesforce API v.19... There are only a handful of changes needed, the most consequential of which are a couple of lines in the parseQueryXML function code. Salesforce API v.19 returns XML a bit differently than version 11.1. I have tested the Login, QueryObject and SaveObject functions and all of their child functions. I would be happy to share the updated cfc if you want to email me off-list. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335642 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IIS Missing CFM Pages
Check the Verify that file exists checkbox on the IIS mapping. Beware, this will break things like cfimage display in browser, cfchart output and RDS sine those rely on the wildcard mapping to non-existent directories that CF still processes. ~Brad - Original Message - From: Robert Harrison rob...@austin-williams.com To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, July 22, 2010 11:46 AM Subject: IIS Missing CFM Pages How can I make IIS 404 work for missing CFM pages? It works for any except CFM. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335643 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SOT: Automated Firebug Net-style Timing
If you know .NET, there appears to be API for Fiddler (an IE plugin that monitors HTTP requests) which is for use in special-purpose applications that run with either no user-interface (e.g. test automation). It would probably do exactly what you need, but it wouldn't be a turn-key solution. http://fiddler.wikidot.com/fiddlercore ~Brad Original Message Subject: SOT: Automated Firebug Net-style Timing From: John M Bliss bliss.j...@gmail.com Date: Wed, July 21, 2010 11:11 am To: cf-talk cf-talk@houseoffusion.com Hello, smart people. So you know how Firebug's Net panel will take an HTTP request and show all URL's involved in the request (because of redirects, cflocations, etc) and milliseconds consumed by each of those URL's? I'm looking for a free/cheap website/software that'll automate that functionality and allow me to test, for example, 100 URL's 100 times each and spit out a report of the resulting milliseconds consumed. Suggestions? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335601 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Problems with multiple instances in CF9
it seems that all the instances are still tied to the main service. Output the following in a cfm template to see what instance you are hitting. This works for CF8 and I assume it still works in CF9. #createObject(java, java.net.InetAddress).localhost.getHostName()# #createObject(java, jrunx.kernel.JRun).getServerName()# ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335542 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF7.1 CFHTTP to Amazon S3: cfhttp.filecontent = 'Conn ection Failure'?
the problem is that when we try to retrieve the binary data for a file using CFHTTP, cfhttp.filecontent says 'connection failure' even though the cfhttp.responseheader from Amazon returns a 200 OK Is the response compressed? Post the HTTP headers that you are getting back. ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335549 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF7.1 CFHTTP to Amazon S3: cfhttp.filecontent = 'Conn ection Failure'?
Hmm, I don't' see any signs of HTTP compression. The content length is 423K so it looks like the remote server at least intended to send the file. If you run a packet sniffer like WireShark on your CF box while it makes the request can you confirm if the actual binary content is sent back? ~Brad Original Message Subject: Re: CF7.1 CFHTTP to Amazon S3: cfhttp.filecontent = 'Conn ection Failure'? From: Ed Griffiths edward.griffi...@uk.agimedia.com Date: Tue, July 20, 2010 12:16 pm To: cf-talk cf-talk@houseoffusion.com the problem is that when we try to retrieve the binary data for a file using CFHTTP, cfhttp.filecontent says 'connection failure' even though the cfhttp.responseheader from Amazon returns a 200 OK Is the response compressed? Post the HTTP headers that you are getting back. ~Brad thanks. here are the response headers: Content-Length 423873 Content-Type image/jpeg Date Tue, 20 Jul 2010 17:22:18 GMT ETag f3eff1bd83a93da79195b7f73b473ead Explanation OK Http_Version HTTP/1.1 Last-Modified Tue, 29 Jun 2010 12:41:51 GMT Server AmazonS3 Status_Code 200 x-amz-id-2 mKWr+XNY5cMQuyPngsCkceLiP5172/sXmwlSNxMg+U2czwVfHb+cbJxiOzPC5HQC x-amz-request-id 0453236A1664A90B ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335561 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Connecting to CFC's in the same directory in CF9.
What ColdFusion mappings do you have set up on the CF8 and CF9 boxes? That could explain a difference in behavior. If I can't use virtual directories, what is the approach that others use for testing on a desktop with multiple CF websites? Install Apache, set up multiple sites, and use your host file to have a separate domain for each of them. For instance, www.example.com could be devww.example.com on your desktop. ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335460 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Connecting to CFC's in the same directory in CF9.
In your E-mail you said the component file name was TestCFC2.cfm . Shouldn't that be TestCFC2.cfc? ~Brad Original Message Subject: Connecting to CFC's in the same directory in CF9. From: John Pullam jpul...@mcleansystems.com Date: Fri, July 16, 2010 4:42 pm To: cf-talk cf-talk@houseoffusion.com This is a variation of a question I posted a few days ago that didn't get resolved, so please bear with me. It seems simple but I am not getting anywhere with it. I have a test page (TestCFC.cfm) that binds to a CFC (TestCFC2.cfm) that is in the same directory. This used to work on CF8 but it doesn't on CF9. I keep being told that The specified CFC TestCFC2 could not be found. I don't understand why it can't be found because the manual says that for bind expressions, The componentPath value must be a dot-delimited path from the web root or the directory that contains the current page. My calling page contains: cfform cfselect name=oSLevel bind=cfc:TestCFC2.GetRoles() bindonload=true value=m / /cfform ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335435 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: logout and back button
By citation needed I think the implication was that you didn't know what what you were talking about. The original poster's problem had nothing to do with persisted session vars and everything to do with browser cache. This can be an issue regardless of sever-side technology in use. ~Brad Sent from my HTC on the Now Network from Sprint! - Reply message - From: Anene Isioma Wealth anene.quor...@yahoo.com Date: Thu, Jul 15, 2010 8:04 am Subject: logout and back button To: cf-talk cf-talk@houseoffusion.com seconded... Sincerely, Chuka I.W. Anene Chief Software Eng./CEO Quorium Solutions www.quorium.org 07029609185,07032696113 From: Tom Chiverton tom.chiver...@halliwells.com To: cf-talk cf-talk@houseoffusion.com Sent: Thu, July 15, 2010 1:59:38 AM Subject: Re: logout and back button On Wednesday 14 Jul 2010 14:49:29 you wrote: If other programming languages can effectively end session variables, i still dont know what MX's problem is. Citation needed. -- Tom Chiverton Helping to globally deliver collaborative best-of-breed eye-catching open- source solutions as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word âpartnerâ to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Looking for a CF Recipe script!
And if you want to just go way too far-- these logic gates are actually only aware of the current flowing through their traces which is pushed by the voltage and inversely proportional to the resistance in the circuit per Ohm's law. Current is measured in amperes whereas one amp-second is a coulomb of electrical charge, or 6.241E18 electrons flowing through the conductor. So the real question is this: when your computer starts counting all those electrons does it start at 1 as the first one flows by? I believe the answer is yes, so it turns out CF was right after all. ~Brad - Original Message - From: Judah McAuley ju...@wiredotter.com To: cf-talk cf-talk@houseoffusion.com Sent: Monday, July 12, 2010 11:13 PM Subject: Re: Looking for a CF Recipe script! If you want to be extremely extremely pedantic, computers only know voltage differential. Those voltage differentials are just cleverly organized into logic gates, which it is useful (currently) to represent with binary numbers and basic arithmetical operations. Judah On Mon, Jul 12, 2010 at 7:56 PM, Andrew Scott andr...@andyscott.id.au wrote: No, if you want to be extremely pedantic about it. Computers only know 0 and 1's. So by that logic it knows zero before it knows one. -Original Message- From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans schneeg...@interneti=71?= =?ISO-8859-1?Q?ue.com=3E?=] Sent: Friday, 9 July 2010 10:31 PM To: cf-talk Subject: Re: Looking for a CF Recipe script! Nobody calls their thumb their zeroth finger. Sure, but computers do not count on their fingers... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335289 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ByteArray objects
If you want to be able to visually represent something that is a little cumbersome to display, why don't you try hashing it? That may help comparing them as well. ~Brad - Original Message - From: Sisk, Kris ks...@gckschools.com To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, July 01, 2010 9:38 AM Subject: RE: ByteArray objects I've got all that worked out except how to make it readable so that a human can verify that it grabbed the right one. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335016 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Order By question
And by much faster he means by 100 milliseconds. Realistically, I would not consider the appending of two rows to a query to be a time consuming operation in CF. I would disagree with that approach too, but only on the grounds that is more work, more code, and more convoluted than a simple case statement in your order by. ORDER BY CASE WHEN id IN (x,y) THEN 1 ELSE 0 END, last_name Either way, it's good to know all the cat-skinning options CF gives you. ~Brad Original Message Subject: Re: Order By question From: Michael Grant mgr...@modus.bz Date: Wed, June 30, 2010 2:40 pm To: cf-talk cf-talk@houseoffusion.com I respectfully disagree with this approach. Doing it in the db will be much faster. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334983 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Order By question
Let's hope no one has a last name starting with any of the following characters: space ! # $ % ' ( ) * + , - . / All of those fall alphabetically before 0. :) ~Brad Original Message Subject: RE: Order By question From: Paul Alkema paulalkemadesi...@gmail.com Date: Wed, June 30, 2010 3:06 pm To: cf-talk cf-talk@houseoffusion.com I secont John's SQL. To expand explain further see my example. SELECT * FROM folks ORDER BY CASE WHEN last_name = 'Smith' OR last_name = 'Jones' THEN 0 ELSE last_name END ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334985 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Order By question
lol. My list-of-names-that-will-screw-up-DBAs just got a little longer. ~Brad Original Message Subject: Re: Order By question From: John M Bliss bliss.j...@gmail.com Date: Wed, June 30, 2010 3:16 pm To: cf-talk cf-talk@houseoffusion.com Yeah *that's* why I didn't suggest your more terse ELSE last_name Yeah. That's the ticket. ;-) On Wed, Jun 30, 2010 at 3:13 PM, b...@bradwood.com wrote: Let's hope no one has a last name starting with any of the following characters: space ! # $ % ' ( ) * + , - . / All of those fall alphabetically before 0. :) ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334992 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Order By question
Paul, now's a good time to start a select * rant. :) Glad it works for you Les. ~Brad Original Message Subject: Re: Order By question From: Les Mizzell lesm...@bellsouth.net Date: Wed, June 30, 2010 4:18 pm To: cf-talk cf-talk@houseoffusion.com Works the charm: SELECT * FROM judges ORDER BY CASE WHEN judge_id IN (2589,7555) THEN 1 ELSE 0 END, judge_lname Thanks folks... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334999 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Turning off try/catch
If you have debugging turned on, there is a section right under Debugging Information and right above SQL Queries called Exceptions in my 8.0.1 server that list all errors on the page, even if they were try/caught. It doesn't include a stack trace, but it does give you the error message, file, and line number. You might also be able to attach a debugger to your CF instance and have it break on exceptions. If I were you though, I would do a global find and replace and change all instances of cfcatch to cfcatchcfrethrow. That will effectively turn off your try catch and you can put it all back with another find and replace later. Better yet, replace it with cfcatchcfset handleError(cfcatch) where handleError is a custom function you write to do whatever you want with the error. Then you can log it, rethrow it, ignore it, whatever. Thanks! ~Brad On 2010-06-29, at 12:06, Shannon Rhodes wrote: Is there any global way to turn off try/catch handling? I believe I've heard of this for VB but I don't think I've come across it for CF. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334938 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dump out CFC properties/variables
I usually include a dump method in my CFC's that simply cfdumps out whatever internals you want to see and cfaborts. If all your CFCs extend a single base component, this is even easier since you can put the method there. ~Brad - Original Message - From: Scott Brady dsbr...@gmail.com To: cf-talk cf-talk@houseoffusion.com Sent: Saturday, June 26, 2010 9:17 PM Subject: Dump out CFC properties/variables What's a good way to dump out the properties/instance variables of a CFC? I have a page where I can pass in a variable name and dumping it out dynamically. But, with CFCs, obviously all I get are method names, which aren't that useful, when, in the case of beans, I want the values of the variables in the CFC (basically, the result of every getter). Typically, these beans are in the session scope. It seems like it shouldn't be that hard, but I'm not having much luck. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334872 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Seriously PO'd - cfqueryparam and/or struct dereference flakes out
It's a bit more code, but if you switch to having a cfargument tag for each parameter and enforce the type there, you can pass in your struct as an argument collection. You'll get a more meaningful error that way. Sent from my HTC on the Now Network from Sprint! - Reply message - From: Marc Funaro subscripti...@advantex.net Date: Thu, Jun 24, 2010 5:43 pm Subject: Seriously PO'd - cfqueryparam and/or struct dereference flakes out To: cf-talk cf-talk@houseoffusion.com The function below was written literally MONTHS ago. Worked fine the whole time, even today... then suddenly it's throwing the error: Invalid data '' for CFSQLTYPE CF_SQL_INTEGER. The error points to the line in the WHERE clause, referencing a.articleId. Next, I purposely set the output=true on this function, and did a cfdump of #a.articleId# -- it's definitely a valid integer. but it's now choking on it for some reason. as a test, i hard coded an article id into the where clause, removing the cfqueryparam. with a hard coded number, it chokes on the next cfqueryparam up. if i reference #a.articleId# directly (outside of cfqueryparam), I also get the same error. how can a.articleId suddenly become '' right after dumping it and successfully showing it to be an integer?? I've restarted both the cf server and the database server, wondering if there was some sort of strange hangup there... no joy. I'm losing my mind... help!! cffunction name=updateArticle returntype=void access=private output=true cfargument name=structArticle required=true type=Struct hint=A structure containing all fields of an article, and the values to be saved. cfset var a = arguments.structArticle cfset var qUpdateArticle = !--- uncommenting this line gives me a valid integer on screen --- !--- cfdump var=#a.articleId#cfabort --- cfquery name=qUpdateArticle datasource=#request.dsn# UPDATE Article SET categoryId = cfqueryparam value=#a.categoryId# cfsqltype=cf_sql_integer /, title = cfqueryparam value=#a.title# cfsqltype=cf_sql_varchar /, byLine = cfqueryparam value=#a.byLine# cfsqltype=cf_sql_varchar /, imageId = cfqueryparam value=#a.imageId# cfsqltype=cf_sql_integer /, imageCaption = cfqueryparam value=#a.imageCaption# cfsqltype=cf_sql_varchar /, abstract = cfqueryparam value=#a.abstract# cfsqltype=cf_sql_varchar /, body = cfqueryparam value=#a.body# cfsqltype=cf_sql_varchar /, isLead = cfqueryparam value=#a.isLead# cfsqltype=cf_sql_bit /, publishDateTime = cfqueryparam value=#a.publishDateTime# cfsqltype=cf_sql_timestamp / WHERE articleId = cfqueryparam value=#a.articleId# cfsqltype=cf_sql_integer / /cfquery /cffunction ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334834 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Server Survey
According to the link, the survey is closed. This survey is currently closed. Please contact the author of this survey for further assistance. ~Brad - Original Message - From: Shilpi Khariwal shilpi.an...@gmail.com To: cf-talk cf-talk@houseoffusion.com Sent: Sunday, June 20, 2010 11:39 PM Subject: ColdFusion Server Survey Dear All, If you have not already filled the ColdFusion Survey, please do so using the following link: http://www.surveymonkey.com/s/6N7QWPQ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334671 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Branching Strategies
Thanks to all who replied to my question. You guys gave me a lot of help and info I will share with the rest of my team to help decide how we set up Subversion. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334581 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion files aren't found.
The user that Cf runs as needs to have access to that drive. The html file is being served directly by iis and using its permissions. Sent from my HTC on the Now Network from Sprint! - Reply message - From: Richard Steele r...@photoeye.com Date: Sun, Jun 13, 2010 4:17 pm Subject: Coldfusion files aren't found. To: cf-talk cf-talk@houseoffusion.com We're trying to get our IIS7 webserver to serve cfm files that are on a different drive, but they aren't being found even though they are there. This works: http://localhost/sites/test.html This doesn't work: http://localhost/sites/test.cfm even though it is there. Here's the CF error message: File Not Found: /sites/test.cfm /sites/test.cfm is on a different drive than jrun. Many thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334514 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Branching Strategies
We are finally implementing source control for a decently sized CF application were I work with a total of 5-6 CF developers but we can't decide when and how often to branch our code. One co-worker wants to create a branch of every release (we have about a 3-month release cycle) and develop changes for the next release in that branch while day-to-day hot fixes get committed directly to the trunk for immediate deployment. I would rather always commit straight to the trunk and only branch for really big projects which are likely to interfere or break other development because I am afraid of the overhead of merging. I found a lot of good branching theory here: http://www.cmcrossroads.com/bradapp/acme/branching/ However, I wanted to hit up the list to get opinions from people with similar sized teams to see what you've found to be a good branching strategy. Thanks! ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334488 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Avoiding SQL deadlocks
My understanding and experience is that a well-architected application should NEVER experience a SQL deadlock. If I am incorrect in this premise, please let me know. It's also my understanding and experience is that a well-architected application should NEVER experience bugs of any kind. :) A statement like that may seem safe since the mere existence of a deadlock (or a bug for that matter) could automatically disqualify it from the well-architected list, but honestly in my experience deadlocks more commonly come from the devil-in-the-details, not over-arching failures in system architecture. Based on that assumption, I'm trying to diagnose a client's deadlock problem. They are a new client. I have a copy of their code and a copy of the error, but don't have access to their SQL Server 2005 database. That kind of sucks. It's like me giving an Altas of everywhere I've driven to my mechanic and asking him to fix my car's occasional knocking noise without actually having the car. Due to deadlocks' evasive nature, I've found the best way to capture them is to duplicate them (preferably a staging environment) and analyze SQL traces to identify the database objects involved. I'm told the database has no stored procedures, no functions, triggers, or external jobs running on it, but I suppose that information is wrong. Unless your client has a reason to lie, I would assume that is probably true. They have 3 pages with cftransaction around some code. It appears that this is the code that's throwing this sort of error: Sounds like a good place to start. What tables are being touched in those transactions and in what order? The error isn't actually in index.cfm but I can deduce what page it's on as the site isn't very large and there aren't many queries around line 270 of any pages. Of course, it takes two to tango as well as deadlock. You need to know what the other process was. Was it also the code on line 270 of mysteryPage.cfm or another file entirely? I tried setting the isolation level to serializable, thinking that would bypass the deadlocks. Where? In your cfquery's? In the cftransaction tag? The default for the database? Either way, I'm not surprised if it didn't help. I have usually resolved most deadlocks by refactoring code in such a way that similar locked objects are always locked in the same order. Serializable isolation is enforced in MS SQL with range locks or table locks to eliminate phantom reads, and will probably have little to do with your situation other than lowering concurrency and therefore performance. However, they're still happening. If there's nothing else hitting the databases, and if the queries are simple inserts/updates, should there still be deadlocks? It doesn't take a complex system to create a deadlock if your good... er, unlucky. Your biggest problem now is the unknown. The best you can do with only the CF code is guess. Like I said before, many deadlocks occur when multiple places in your application are modifying the same objects in a different order within a transaction. i.e. page 1 updates records in table a, then table b while page 2 updates records in table b, then table a. Of course, deadlocks don't have to be between tables-- it could be pages in an index. That's why you REALLY need to have them run SQL Profiler and capture deadlocks and their related data. This will tell you the exact resources that in are involved in the error and prevent a lot of guesswork for you. They're really crippling you by asking you to solve this problem without the most critical piece (the database). The execution plan of the offending queries will be invaluable to seeing what is happening. Good luck. ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334440 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: How do I solve this path issue for components?
+1 for per-application mappings. You can even get fancy and set it it based on cgi.server_name or path_info so you don't have to change the code between dev and production. Note, for this to work, dev and production need to be in their OWN application. A better solution would be to actually have a dedicated box for your dev server so you can do testing there without fear of ruining your production server's stability. There are also settings I enable on a production server like Trusted Cache that you wouldn't be able to use for a dev server. If you can't spare a separate box, AT LEAST create different sites for dev and production on your server with their own completely separate web root. www.mysite.com and devwww.mysite.com. If you are running CF Enterprise in multi-server mode you can actually have separate instances for dev and production which is the next best thing to a different physical server. Ok, actually a VM is the next best thing to that, but I digress... ~Brad Original Message Subject: Re: How do I solve this path issue for components? From: Sean Corfield seancorfi...@gmail.com Date: Tue, June 08, 2010 3:34 pm To: cf-talk cf-talk@houseoffusion.com Why not use per-application mappings? In Application.cfc, you can set this.mappings[ '/mysite' ] to either the production or dev CFC root as needed... On Tue, Jun 8, 2010 at 1:03 PM, Rick Faircloth r...@whitestonemedia.com wrote: Hi, all. I've started using two different folders on my servers for each site. The first is for viewing a site online during development and the second folder is for production. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Home Site+ and Windows 7
How many folks think of a web site or a web application when they're editing / creating new files? Do folks really find it a stretch to go from that concept to an actual site/project in their IDE? I'm genuinely curious about this because I can't imagine working without sites / projects and I want to really understand why there is such a pushback on this... Thanx! It's not the files that are already part of my web application that usually present a problem-- it's the exceptions that crop up from time to time that are really annoying. One of the most common scenarios for me is when I've downloaded some bit of code or UDF off the Internet. Since it's not part of any actual site yet and probably laying on my desktop in a zip file, I'll just want to quickly open it up and read through it to see if I feel like using it or just want to delete it. My 2nd most common scenario is usually some bit of javascript or HTML code that I have copied and wish to toss in a temporary .html file and quickly edit for the sake of veiwing in a browser. My 3rd scenario is the very handy HTML and XML code formatted from Homesite. I would regularly use Homsite to open random config files off my hard drive for formatting that had nothing to do with the web. So, sometimes I will want to use a feature of the editor on a random text file. And my 4th scenario is the rare occasion that I would need to open a file directly off one of my staging or production servers via a UNC file path. Loading hundreds of megs of code over a network into a project just to deal with one file is not really an option. Now there might be work-arounds or alternative methods for each of my scenarios, but the fact of the matter is that's what I'm used to, it works very well, and why should I shoe-horn each of those exceptions into a project when they don't need to be? For the rest of the files I edit that are actually part of an established application, I don't have any problem with projects with the exception that Eclipse can sometimes be painfully slow when switching from one to another. ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334239 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Home Site+ and Windows 7
I'm glad to know that File View covers those scenarios. I won a copy of CF Builder at my local user group so I'll be installing it soon and I'll keep that in mind. Thanks! ~Brad Original Message Subject: Re: Home Site+ and Windows 7 From: Sean Corfield seancorfi...@gmail.com Date: Wed, June 02, 2010 3:10 pm To: cf-talk cf-talk@houseoffusion.com Again, File view works for that. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334241 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Dynamic Getters and Setters
The fields on my form are the same as in my database so I was wanting to loop over the form fields and populate the setters in a bean. So basically the methods are dynamic. Here's what I've been trying but it doesn't work but it does not work: CFLOOP INDEX=TheField list=#Form.FieldNames# cfset theMethod = set theField cfif theField IS NOT Submit cfset theObject[theMethod](#Evaluate(TheField)#) /cfif /CFLOOP Anyone have any suggestions. I was thinking about using CFINVOKE, but I'm not quite sure how I would populate the entire bean going that route. Once populated the bean will be passed to a DAO to save the data. I'm using CF8. Thanks, Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334001 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamic Getters and Setters
But isn't it a problem to use CFINVOKE with getters and setters? Wouldn't the object be reinstantiated for every single method call? Am I wrong in assuming this? --Brad **untested** cfif theField IS NOT submit cfset theMethod = theObject[set theField] / cfset theMethod(theField) / /cfif I don't use cfinvoke, so I may have the syntax a bit wrong... cfinvoke component=#theObject# method=set#theField# cfinvokeargument name=#theField# value=#theField# / /cfinvoke HTH ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334007 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Color Code XML
I'm looking for a way to take a text XML document and add the appropriate HTML markup to it so it can be viewed in a browser and color-coded and indented properly. I don't really care if it is programmatic and I don't even care what colors are used as long as it is pretty-- I just need to include some XML samples in a handful of documentation pages written in HTML. I can't find any color coding libraries that handle XML. The closest I got was to open the XML in Internet Explorer, copy and paste it into word, and then save as HTML, but that was a hideous solution that still required a number of find and replaces to finish getting rid of the JavaScript. Suggestions? Thanks! ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333998 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Color Code XML
Hmm, that's a slick little library. I like the customizability of it and the separate CSS files. Thanks! ~Brad - Original Message - From: Justin Scott jscott-li...@gravityfree.com To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, May 25, 2010 10:41 PM Subject: RE: Color Code XML Suggestions? http://alexgorbatchev.com/wiki/SyntaxHighlighter SyntaxHighlighter should make pretty quick work of it and allow the code to be displayed on the page in a viewer-friendly way. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334000 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion 9 Windows vs Linux
As far as programming, there should be very little difference. The biggest problems you would have porting over code would be case-sensitivity and the silly little slashes in your file paths all going a different direction. I'm not sure what you mean by tags our there for the Linux version. It's still CFML-- and because it all runs inside the JVM, it's all surprisingly consistent. The only main differences are where you touch the OS. As far as installation and server maintenance, you would have significantly different experience. Firstly, you'll probably be running Apache and MySQL which puts you out there in RTFM land, but it's all doable. I've deployed CF on RedHat and Open Suse with good results. Honestly, I think the real determining factor is going to be how comfortable you are with Linux and command line stuff in general. ~Brad - Original Message - From: Terry Troxel te...@it-werks.com To: cf-talk cf-talk@houseoffusion.com Sent: Friday, May 21, 2010 7:52 PM Subject: Coldfusion 9 Windows vs Linux I have been using CF since version 3 and never once tried it on anything but a windows based system. My question is how much of a learning curve should I expect and are there tags out there for the Linux version as well as the windows? I would like to set up a development server and would also like to know which is the ones most used in production. I have Ubunto, but can get whatever is recommended. I would appreciate any and all the help I can get so I can get to learning. Terry ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333912 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Transaction locking table, not sure where or why...
Store the data in a temporary structure in memory and then write it to the DB once the uploads are finished. +1 Store the data in a struct or array and wait until you have all the data to open your transaction. Do this and your problem with disappear. Also, in the places you are reading from the album table I would recommend setting the isolation for that connection only. Also keep in mind that the cftransasction tag's default isolation level is read committed, and it will reset it every time you open the tag. If you want to change the isolation level of the transaction, use the isolation attribute of the cftransaction tag. That being said, I don't think that's what you want to do. You want to change the isolation level of the query READING from the table. Also, run some traces to see if your updates are causing row locks or are escalating to table locks. I think that might be what Leigh was getting at. I don't know that I can recommend setting your global isolation level to read uncommitted. Locks are for a reason and I've seen some weird hard-to-find errors in systems where over-zealous DBA's used read uncommitted for EVERYTHING. :) ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333705 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What is the version of Java SDK CF should use?
I would recommend anything later than updater 10. Just make sure you get the JDK and not just the JRE. I'm using 1.6.0_12 on my CF8 servers. ~Brad Original Message Subject: What is the version of Java SDK CF should use? From: Nathan Chen nathan.c...@cu.edu Date: Wed, May 12, 2010 4:08 pm To: cf-talk cf-talk@houseoffusion.com I am using CF 8 and the System Info page shows the Java Version is 1.6.0_01 and Java VM Version is 1.6.0_01b-06. Is that the latest java CF should use? If not, what's the latest one? Is it the Version 6 Update 20 on java.com? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333625 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Downloading mp3s
I haven't used it, but Amazon's S3 has the ability to create temporary URLs for a user that even enforce what IP they will serve to. If you store your files in an S3 bucket, you can use the API to generate temp links for a specific user on the fly. As far as your original question-- I've always found it difficult to control user experience when downloading files based on all the different configurations of file associations and browsers. ~Brad - Original Message - From: andy matthews li...@commadelimited.com To: cf-talk cf-talk@houseoffusion.com Sent: Saturday, May 08, 2010 10:40 AM Subject: RE: Downloading mp3s You can do one of a few things. Serve up the MP3 file through ColdFusion like so: http://lab.artlung.com/coldfusion-force-download/ Or you can set up your web server to deliver MP3 files as downloads instead of playing them. andy -Original Message- From: Rob Voyle [mailto:r...@voyle.com] Sent: Saturday, May 08, 2010 7:16 AM To: cf-talk Subject: Downloading mp3s Hi Folks I have a series of mp3 sound files on my website. I would like people to be able to download them to listen on their ipod or in their car on a cd etc. People are able to listen to them from the web but their ability to download and save them seems very variable. Some can see save as others can't. There is great variability between browsers and the media programs that people are using. Some mp3 files are able to be saved others aren't though I am not sure of any difference as I haven't set any specific permissions Is there a way to create saving permission for mp3 that all browsers/media players would recognize? Thanks Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333527 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Substitute/conversion for Flash Interactive Menus for iPad?
Have you looked into HTML 5? I hear it does everything Flash does. Your clients can wait another 5 years for the spec to be implemented, right? /sarcasm ~Brad On Tue, May 4, 2010 at 5:13 PM, Dawn Sekel dse...@ciber.com wrote: Hi-I have several web templates that use Flash widgets for interactive menus-the buttons are non-standard floating bubbles or have sound and interactivity in them when the user mouses over them. Now my boss said that he wants to do away with them and go to something different because of the Apple iPad debate. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:43 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: How to protect PDF documents from direct access
Store them outside your web root and serve them up with cfcontent. Just remember a CF thread is used for the duration of the download. ~Brad Original Message Subject: How to protect PDF documents from direct access From: col...@uci.edu col...@uci.edu col...@uci.edu Date: Mon, May 03, 2010 5:57 pm To: cf-talk cf-talk@houseoffusion.com Is there some easy way to protect PDF (and perhaps other kinds of documents) from sideaways access? In other words, after building login pages, protecting html/cfm pages from direct access, etc.; someone can still directly access a document with a direct URL, like www.xxx.com/.pdf Any quick and easy ideas appreciated. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:05 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF8 sessions being dropped all of a sudden
Start by using Fiddler to look at the cookie headers being sent to you from the server and being sent back by your browser. When your session gets dropped does the server send you a new jsessionid cookie, or is your browser still sending the same one. Also, confirm your session time outs in the admin as well as the app to make sure there is nothing screwy going on. ~Brad Original Message Subject: CF8 sessions being dropped all of a sudden From: Steve Logan st...@sagescholars.com Date: Wed, April 28, 2010 7:53 am To: cf-talk cf-talk@houseoffusion.com We have an application that's been working fine for 9+ years now (started on CF5, now CF8.01). Yesterday we started to receive some comments from users that they weren't able to log in. I could log into their accounts fine, but they could not. They were using correct info (a failed login attempt was not being logged). One was on Firefox, the other on IE. In both cases, exiting and restarting the browser did the trick. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333183 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SQL Gurus... obtaining the correct Incremental ID
That would ONLY work if you used SET TRANSACTION ISOLATION LEVEL SERIALIZABLE or WITH(TABLOCKX HOLDLOCK) Even with with rowlock, another spid can insert additional records into the table and the select max() might return a bogus value. ~Brad Original Message Subject: Re: SQL Gurus... obtaining the correct Incremental ID From: nvc 1 n...@hotmail.co.uk Date: Wed, April 28, 2010 3:14 pm To: cf-talk cf-talk@houseoffusion.com why can't you do this where mytable has an auto incrementing primary key called id: cftransaction cfquery datasource=#dsn# name=insertQuery insert into mytable(acolumn) values(1) /cfquery cfquery datasource=#dsn# name=getid select max(id) as maxid from mytable /cfquery /cftransaction ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333198 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SQL Gurus... obtaining the correct Incremental ID
Transactions control when data gets committed as well as how long some locks are held. They do not necessarily keep other processes from modifying parts of a table you are touching. That's when isolation levels and locking behavior comes into play. ~Brad Original Message Subject: RE: SQL Gurus... obtaining the correct Incremental ID From: Che Vilnonis ch...@asitv.com Date: Wed, April 28, 2010 3:59 pm To: cf-talk cf-talk@houseoffusion.com I am using the cftransaction tags. Honestly, I was not absolutely sure that I needed to do anything else and that is why I posted my original question. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333199 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SQL Gurus... obtaining the correct Incremental ID
Yes, I would agree that is a much simpler and safer alternative. since scope_identity() is already specific to your connection you don't have to worry about locking and such altogether. ~Brad Original Message Subject: Re: SQL Gurus... obtaining the correct Incremental ID From: Leigh _ cfsearch...@yahoo.com Date: Wed, April 28, 2010 4:44 pm To: cf-talk cf-talk@houseoffusion.com That would ONLY work if you used SET TRANSACTION ISOLATION LEVEL SERIALIZABLE or WITH(TABLOCKX HOLDLOCK) Even with with rowlock, another spid can insert additional records into the table and the select max() might return a bogus value. Aside from being unsafe without the right isolation level, it is not necessary in MSSQL 2005 or CF8+. As use mentioned use SCOPE_IDENTITY() or cfquery's result attribute. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333206 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SQL Gurus... obtaining the correct Incremental ID
I'm on 8.0.1 and it appears that CF doesn't override the default SQL Server isolation level if you don't specify one in your cftransaction tag. I ran the following code whilst tracing: cftransaction cfquery name=test datasource=test select * from table /cfquery /cftransaction This is what I got: SET IMPLICIT_TRANSACTIONS ON select * from test IF @@TRANCOUNT 0 COMMIT TRAN IF @@TRANCOUNT 0 COMMIT TRAN SET IMPLICIT_TRANSACTIONS OFF SET TRANSACTION ISOLATION LEVEL READ COMMITTED SET TRANSACTION ISOLATION LEVEL READ COMMITTED When I added isolation=serializable to the cftransaction tag, I get SET TRANSACTION ISOLATION LEVEL SERIALIZABLE immediately prior to the select. ~Brad Original Message Subject: Re: SQL Gurus... obtaining the correct Incremental ID From: Dave Watts dwa...@figleaf.com Date: Wed, April 28, 2010 4:54 pm To: cf-talk cf-talk@houseoffusion.com That would ONLY work if you used SET TRANSACTION ISOLATION LEVEL SERIALIZABLE or WITH(TABLOCKX HOLDLOCK) This is one of those things I never am completely clear on, but I believe that the default isolation level for CFTRANSACTION is serializable in CF 7+. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333207 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SQL Gurus... obtaining the correct Incremental ID
Wouldn't READ COMMITTED do the trick? ...will never read data that another application has changed and not yet committed No. Another process could insert a record into the table and commit its change before you select out the max. The ONLY way for the max() record to be yours is to prevent ALL OTHER processes from touching the table. Or, just make life easy on yourself and use scope_identity(). ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333209 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Remove multple EXTRA spaces from string
This appears to work for me: cfset string = rereplace(string,( +), ,all) Original Message Subject: Remove multple EXTRA spaces from string From: UXB Internet denn...@uxbinternet.com Date: Fri, April 23, 2010 3:26 pm To: cf-talk cf-talk@houseoffusion.com I am having a senior moment and can't for the life of me figure this dumb thing out. I am trying to remove all extra spaces from a string but leave the single space there. Example: var=this has many extra spaces and return with this has many extra spaces ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333112 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SQL data integrity
Firstly I have absolutely no experience here and you should probably consult with an attorney with experience in this kind of thing. My best idea would be to institute a process to automatically ship all your nightly backups and or transaction logs to a third party to hold on to. If your data was ever brought into question that third party could independently verify that the data really was there on that date. That would be a heck of a lot of data- but I guess you have to ask yourself how much you are willing to pay for this kind of thing. ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333098 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Where do i find CFGRID Code?
If you go to the working link: http://adcalpos.net/trygrid.cfm you'll see it works, therefore the CFGRID applet has been installed ok, then if you go to the subdomain version of the exact same file at http://shard.adcalpos.net/trygrid.cfm you'll see now it cant find the CFGRID applet. === Your sub domain doesn't have a mapping for the cfide folder. If you use Firebug or MS Fiddler you can easily see the 404s happening when the non-working example attempts to load the JavaScript files required for the grid to work. ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333063 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfhttp Connection Failure
There's a good chance that you simply haven't found the correct combination of header values yet for that web server. First of all, why would you use this? Accept-Encoding: * That tells the server that ANY encoding is valid. In theory, the most restrictive Accept-Encoding header would be: Accept-Encoding: *;q=0 That should indicated that ALL forms (except identity of course). If you really wanted, you could do: Accept-Encoding: *;q=0, identity;q=1 Read up here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.39 ~Brad Original Message Subject: Re: cfhttp Connection Failure From: Sue Buck sue.b...@avsi.co.uk Date: Tue, April 20, 2010 8:20 am To: cf-talk cf-talk@houseoffusion.com Thanks for all the suggestions. Unfortunately my client is phasing out ColdFusion so upgrading is not an option. I've installed Wireshark and using cfhttpparam type=Header name=Accept-Encoding value=* cfhttpparam type=Header name=TE value=deflate;q=0 get the same headers as shown in the brook-bilson example with CF 8.0.1 with no CHF (which in the example returned the data uncompressed) but the headers show that I'm still getting the data back compressed. Do you think that the laterooms server is ignoring the TE header? I also looked at the headers using the java.net.URL approach and it does not send an Accept-Encoding or a TE header just an Accept header. I've tried imitating this but the cfhttp tag always adds Accept-Encoding and TE headers. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333039 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfhttp Connection Failure
Your sure it's compressed responses and not something else? No, I,m not sure. I know how to find out. http://www.wireshark.org/ ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333050 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: New SQL injection :(
FWIW I don't believe in silver bullets, but one can get a decent amount of mileage by taking the SQL account that CF connects to the database with and removing accessing to the system and information schema tables. Chances are your app doesn't use those tables and a lot of SQLi attacks revolve around them. And for the love of all that is good in the world, don't ever let your webs servers ever connect to your database with sa. :) ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333010 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfhttp Connection Failure
I'd like to second Dave Watts' comments. It is true that cfhttp can't handle compressed responses and if you are hitting a web server that is gzipping the HTTP response you will get a Connection Failure message even though that doesn't seem at all like the appropriate message for the occaision. Adding the following header values will tell the remote server that the client (CF) can't handle compressed responses: cfhttpparam type=Header name=Accept-Encoding value=deflate;q=0 cfhttpparam type=Header name=TE value=deflate;q=0 ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333023 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: DateDiff() and Minutes Wierdness
I was thinking that the function could function when the arguments are essentially the same day. I'm a little confused. The dateDiff() function DOES work when the arguments are the same day. Have we led you to believe otherwise, or are you talking about a different function functioning? Here's what I did to solve the problem: when the function returns 0, do this: Exactly what combination of inputs to dateDiff() is returning zero? If it is your second example in your original post, then it SHOULD return zero because the two dates were less than one minute apart. Your code below is asking whether or not the two times are in the same hour and minute which is a different question than asking how many full hours and minutes exists between the times. (It's also worth noting your code below will ONLY work for times on the same day and with a 24 hour clock) If your objective is to decide if the times are in the same minute then you should probably always be using datePart() starting with the largest unit (year) and working in and NOT using dateDiff() at all. Alternatively you could continue to use dateDiff() to the second level, divide by 60, and ceiling() the result up to the next full minute which is essentially what you are doing below. Perhaps you can explain exactly what you were trying to do. ~Brad cfoutput cfset holdTotalHours = ABS(DatePart(h, arguments.HighDate) - DatePart(h, arguments.LowDate)) cfset holdTotalMinutes = ABS(DatePart(n, arguments.HighDate) - DatePart(n, arguments.LowDate)) Results in (HH:MM) Format: #holdTotalHours#:#holdTotalMinutes# /cfoutput ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332864 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Distributed Mode
Have a question in regards to setting up distributed mode. We have ran in distributed mode for years with CF7 and windows 2000. We are in the process of upgrading to CF9 and Windows 2008. The problem I am having is the we used to be able to have all of our code on a fileserver and point IIS to that UNC path and life was good. Now the only way to get Coldfusion to server CFM pages is to have the CFM code on both the fileserver and the CF servers as well. It will give an error of file not found if you do not. Now I know in the documentation it says this is the way you have to set it up.. but I guess my two questions are 1. Why did it work before with the code only being in one place? 2. Why is the CFM files needed in both the file server (where IIS points for webcode) and on the CF boxes as well? Any help is appreciated Have found the answers needed. 1. Need to have interact with desktop checked on the coldfusion service 2. speed reasons alone is why you would have CFM code on the app box. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332768 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Distributed Mode
Is the new ColdFusion instance running as a user that has permission to read from the share? ~Mahcsig I have actually found the necessary info. 1. You need to have Interact with Desktop checked under services LogOn info. 2. Reason for CFM code to be stored on App box is purely for speed. Thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332769 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Distributed Mode
I have found the answers to my questions 1. Need to have Interact with Desktop checked under the service LogOn tab. 2. Code resides on app box strictly for speed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332771 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Distributed Mode
Now I know in the documentation it says this is the way you have to set it up.. but I guess my two questions are 1. Why did it work before with the code only being in one place? I don't know. Maybe it was able to resolve to a remote share where the files actually are? 2. Why is the CFM files needed in both the file server (where IIS points for webcode) and on the CF boxes as well? The connector needs to be able to resolve the existence of the file. The connector lives on the web server. The CF service needs to be able to read and compile the file. The CF service lives on a separate box. All that said, I would recommend that you ditch distributed mode if that's an option, and use a reverse proxy instead. The advantage of using a reverse proxy is that there's nothing CF-specific about the setup, and you don't have to have your files in two places. I have found the answers to my questions 1. Need to have Interact with Desktop checked under the service LogOn tab. 2. Code resides on app box strictly for speed. Thanks. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332788 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion Distributed Mode
Have a question in regards to setting up distributed mode. We have ran in distributed mode for years with CF7 and windows 2000. We are in the process of upgrading to CF9 and Windows 2008. The problem I am having is the we used to be able to have all of our code on a fileserver and point IIS to that UNC path and life was good. Now the only way to get Coldfusion to server CFM pages is to have the CFM code on both the fileserver and the CF servers as well. It will give an error of file not found if you do not. Now I know in the documentation it says this is the way you have to set it up.. but I guess my two questions are 1. Why did it work before with the code only being in one place? 2. Why is the CFM files needed in both the file server (where IIS points for webcode) and on the CF boxes as well? Any help is appreciated. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332713 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion Distributed Mode
Have a question in regards to setting up distributed mode. We have ran in distributed mode for years with CF7 and windows 2000. We are in the process of upgrading to CF9 and Windows 2008. The problem I am having is the we used to be able to have all of our code on a fileserver and point IIS to that UNC path and life was good. Now the only way to get Coldfusion to server CFM pages is to have the CFM code on both the fileserver and the CF servers as well. It will give an error of file not found if you do not. Now I know in the documentation it says this is the way you have to set it up.. but I guess my two questions are 1. Why did it work before with the code only being in one place? 2. Why is the CFM files needed in both the file server (where IIS points for webcode) and on the CF boxes as well? Any help is appreciated. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332714 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Joni Mitchell and Cold Fusion
The site seems pretty snappy to me. I'd bet you are taking too much bandwidth with the media downloads. If that truly is the problem, see if you can pay more for additional bandwidth, or most all the large media to an Amazon S3 bucket. They charge peanuts. ~Brad Original Message Subject: Joni Mitchell and Cold Fusion From: Les Irvin les.cft...@gmail.com Date: Wed, April 07, 2010 3:22 pm To: cf-talk cf-talk@houseoffusion.com Help me, I think I'm falling... here's an odd request for a certain individual. Joni's official site is hosted on a GoDaddy server (don't ask) running CF8. They keep shutting it down for overloading the server - asking me to streamline the code to avoid continued violations. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332731 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Passing NT Username and Password to SQL Server datasource - still impossible or have things changed?
Do you mean using Windows Authentication, where the client automatically passes the credentials it has logged into the domain controller with? As far as I know that still can't be done but I'm not sure why. Is there are particular reason you can't create a SQL account for CF to connect with? I actually like that because it makes it a bit easier to audit permissions with explicit accounts. ~Brad - Original Message - From: Thomas Harper harpe...@upmc.edu To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, April 06, 2010 7:26 AM Subject: Passing NT Username and Password to SQL Server datasource - still impossible or have things changed? I've been trying to pass with CF8 on a Windows Server 2008 box to SQL Server 2005 on a separate server. The references I've been seeing for previous versions say it can only pass the username and password of the account the CF8 service runs under. Kerberos references say it could be possible with the proper setup. Is it still impossible? Has it been done, and how? Thank you. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332636 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Best way to return generated html from cfc
use cfsavecontent in the CFC to put the generated HTML into a variable. Don't forget to var the cfsavecontent variable first. ~Brad Original Message Subject: Best way to return generated html from cfc From: Matthew Smith chedders...@gmail.com Date: Mon, April 05, 2010 6:22 pm To: cf-talk cf-talk@houseoffusion.com I have a cfc that will generate some html to be displayed inline. I was just going to reuturn a string rather than have it output directly. Is this the proper way to do that? How do I save generated html from cf code into a variable to be returned as a string? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332606 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion dateDiff() function?
Nope, it's working as designed. Here is an excerpt from the docs: The DateDiff function determines the number of complete datepart units between the two dates; for example, if the datepart parameter is m and the dates differ by 55 days, the function returns 1. So basically, using date diff is like using the floor operator, it is only counting the total number of COMPLETE days. Your example has a difference of only 2 minutes which is nowhere near a day. If you simply want to know if the files were created prior to midnight of the current day, then you should check for that specifically with something like so: cfset variables.yesterday = 04-04-2010 11:59 PM cfset variables.today = 04-05-2010 12:01 AM cfoutput#yesterday LT dateformat(today,mm/dd/)#/cfoutput - Original Message - From: Qing Xia txiasum...@gmail.com To: cf-talk cf-talk@houseoffusion.com Sent: Monday, April 05, 2010 9:05 PM Subject: ColdFusion dateDiff() function? Okay, I am probably splitting hairs over here, but I ran into an icky situation with the native ColdFusion function DateDiff() today and just thought I'd check whether anyone else has experienced this before. Basically, I wrote a CF Scheduled Task that is supposed to go to a directory and delete all PDF files that are created before today. Simple enough, right? It should be really, but the DateDiff() function is behaving strangely. Try running the code below: cfset variables.yesterday = 04-04-2010 11:59 PM cfset variables.today = 04-05-2010 12:01 AM cfoutputtoday - yesterday = #dateDiff(d,yesterday,today)#/cfoutput You see how it thinks the the date difference is ZERO??? Shouldn't it be ONE???!!! There are ways to get around this (elegantly or otherwise)... but now I am just irked and curious. Is this expected behavior and I am just not understanding the function correctly or is this a bug that should get fixed? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332615 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Decrypt CF scheduled job password?
I've never tried it, but if the cron passwords are stored the same way data source passwords are, then they probably are crackable. Google coldfusion decrypt datasource password Note: The people who figured out how to decrypt CF passwords had to decompile CF's source Java code so enter at your own legal risk. :) ~Brad Original Message Subject: Decrypt CF scheduled job password? From: Qing Xia txiasum...@gmail.com Date: Tue, March 30, 2010 8:09 pm To: cf-talk cf-talk@houseoffusion.com Hello folks, I was just wondering, does anyone happen to know if the password in the CF scheduled job XML file (cfroot\lib\neo_cron.xml) is crackable? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332475 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion Builder Released!
I think the most we can do is encourage people to buy other phones. Well I walked out of a Sprint store with my new HTC Hero Android phone last night so I guess I'm doin' my part :) ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332307 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion Builder Released!
I don't think this is apple saying no to flash (correct me if I am wrong) but adobe not producing flash for it yet. Gladly. When I was at Max 2008 Adobe said he had Flash working on the iPhone and they were simply awaiting approval from the head chef (Apple). That was a year and a half ago! I don't think Adobe's been dropping the ball on this one. It's also not on the Android phones yet. What - Flash isn't on the Android phones? I just got me on of them Android phones last night (HTC Hero) and it most definitely has flash in the browser. Where are you getting your info from? ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332314 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cftransaction and multiple databases
If the databases are on the same server, you can try accessing the other database from your main data source by specifying the full path to the table: SELECT * FROM databaseName.owner.tableName On SQL Server, owner is often dbo. Or you can use the shortcut databaseName..tableName ~Brad Original Message Subject: cftransaction and multiple databases From: Chad Gray cg...@careyweb.com Date: Wed, March 24, 2010 3:05 pm To: cf-talk cf-talk@houseoffusion.com Hello, ran into this one today. I have a CFTransaction surrounding some queries that insert data. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332207 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Undefined in Form when using MSIE
Geez I hope so, seeing as how that is from a post back in 2004. http://www.mail-archive.com/cf-talk@houseoffusion.com/msg172391.html Since a little water has gone under the bridge since that post why don't you start by telling us what your specific problem is. Thanks! ~Brad Original Message Subject: Re: Undefined in Form when using MSIE From: Naomi Serrano nahom...@gmail.com Date: Wed, March 24, 2010 2:39 pm To: cf-talk cf-talk@houseoffusion.com We are experiencing random occurrences of the error message âelement X undefined in formâ when using MSIE 6.0. (X represents the names of various form variables and is always the first form variable referenced in the action file.) This problem cannot be duplicated using Netscape. When the error occurs, debugging reveals the scope variable section âForm Namesâ does not exist and thus indicating no form variables are passed through. The form is submitted without error about 95% of the time and of course, debugging displays the form names and values. When the error occurs, we can actually refresh the screen and the form variables are present again. (Of course, sometimes we must refresh the page a couple of times before the form variables are present.) This leads us to believe the form variables exist but for some reason cannot be interpreted by MSIE at random occurrences. This problem is not isolated to just one form either. It randomly occurs on numerous forms in various applications. was this resolved? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332209 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Builder Released!
I hate to say it, but even without Flash Builder, Coldfusion Builder probably would have cost the same. Flash Builder was most likely thrown in to sweeten the deal and add value. Flash Builder is probably already has a foothold large enough to cover more of its development costs-- not to mention the professional version is $699. They can probably afford to toss a copy of the standard version in CFB for the people who want it. Creating a bundle for every person's needs is not always the best thing either. If you get your pricing matrix too confusing it just frustrates people. Also, you can call the shareholders greedy but unless you know how much money Adobe poured into CFB for the past year and a half you really can't prove their making bank on anything. ~Brad - Original Message - From: Eric Cobb cft...@ecartech.com To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, March 23, 2010 8:56 AM Subject: Re: ColdFusion Builder Released! Charlie Griefer wrote: Bundling it with FlashBuilder may be their way of trying to increase the uptake of the language as a whole and thus ultimately sell more server licenses. By doing this, they're potentially introducing CF to PHP developers, Java developers, etc. I have to say that I don't agree with that last statement. FlashBuilder 4 (Standard Edition) with CFBuilder costs $299, and FlashBuilder 4 (Standard Edition) without CFBuilder costs $249. So for an existing PHP/Flex developer who has no use for CF, do you think they're going to pay $299 to get an extra IDE for a language they don't use, or spend $50 less and just get the IDE they need? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332109 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF Education (was: ColdFusion Builder Released!)
To be clear, educational use in my understanding means you can teach a CFML class using the server and IDE in the classroom and for the students. It does not mean that any higher education institution can use Adobe ColdFusion to power their public school site for free. As a note, it took some time, but Adobe _does_ provide curriculum for teaching ColdFusion 8 in the classroom. http://www.adobe.com/education/instruction/teach/cfcurriculum.html ~Brad Original Message Subject: RE: CF Education (was: ColdFusion Builder Released!) From: Ben Forta b...@forta.com Date: Tue, March 23, 2010 2:12 pm To: cf-talk cf-talk@houseoffusion.com Actually, ColdFusion has been free for educational use for a long time now. https://freeriatools.adobe.com/coldfusion/ And ColdFusion Builder is now also free for educational use: https://freeriatools.adobe.com/cfbuilder/ --- Ben ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332137 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Features (Re: ColdFusion Builder Released!)
+1000 As a ColdBox user, that would be really really nice for the IDE to be aware of how the autowiring is going to work at run time. I never realized how useful it was for your IDE to know about the variables and objects in your code until I did some work in Java/Eclipse and marveled at the usefulness of simply clicking a class and being taken to the corresponding .java file etc. ~Brad Original Message Subject: Re: Features (Re: ColdFusion Builder Released!) From: Adrocknaphobia adrocknapho...@gmail.com Date: Tue, March 23, 2010 4:00 pm To: cf-talk cf-talk@houseoffusion.com Judah, I already shared you feedback with the CB engineering team _and_ Luis. I'm very much on board with providing extension points into our parsers. :-) -Adam ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332154 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion Builder Released!
There's a $249 version that doesn't have FlashBuilder Do you have a link for that? I was unable to find a copy of CF Builder without Flash Builder (Even though I would rather have it with). I did, however, find a version of Flash Builder Standard for $250. Are you sure that isn't what you found? ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331968 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Referencing column names in queries with special characters
You will probably need to use array notation: temp[BM][currentRow] or to show the dynamic-ness: cfset columnName = BM temp[columnName][currentRow] Think of it is a two-dimensional array if you will. ~Brad Original Message Subject: Referencing column names in queries with special characters From: Doug Ford doug.e.f...@gmail.com Date: Mon, March 22, 2010 3:55 pm To: cf-talk cf-talk@houseoffusion.com Hi folks - I am looking for help trying to access a column name within a query that has special characters in it: /, , \ Here's a simple example: cfquery datasource=test name=temp Select [BM], test from test /cfquery cfoutput query=temp #[BM]# br / /cfoutput ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332027 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion Builder Released!
Have you ever felt indignant, Dave? I'm not affiliated with Adobe or CFEclipse, but I would expect them both to feel indignant after you basically said that all their hard work wasn't very hard nor original. I would imagine CFB cost Adobe more than most of us realize. Especially if you take into account developers, project managers, QA, hardware, and marketing costs together with the knowledge that Builder has been under development since (if not prior) to being announced at Max 2008!! Adobe could have already easily poured 2 to 3 million dollars into this project. In the past Adam has been very upfront with the fact that Adobe is really looking at covering their costs: ...we built this for the community, not to supplement ColdFusion revenue. Adobe isn't looking for a pay day on CB... http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:60838#330537 I don't know how much Adobe has really spent on CFB, nor how many licenses they expect to sell, but my guess is that they will probably have to sell upwards to 10,000 CFB licensees to START making a profit. ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332069 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion Builder Released!
+1 on this feature. I also use ColdBox and autowire most of my objects in. I know some things are impossible with a dynamic language like CF, but I'd be willing to right click on a variable name in a CFC and specify the CFC that it is an instance of and have CFB somehow remember that if it would mean I could type variables.mySerivce. and have the list of methods pop up. ~Brad Original Message Subject: Re: ColdFusion Builder Released! From: Judah McAuley ju...@wiredotter.com Date: Mon, March 22, 2010 5:54 pm To: cf-talk cf-talk@houseoffusion.com I can tell you this and I believe, already have. I mostly write Coldbox applications in CF. It can use its own DI container, Lightwire or Coldspring. I think those are currently the only 3 DI containers in cfml-land anyway. If you can make it properly pick up the models I inject into my service layer using a DI container, show the methods through intellisense ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332072 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SOT: Default Flash behavior when crossdomain.xml is absent
But can't you just go ahead and create a crossdomain file and avoid this problem altogether? Of course, and I already have. My personality is such that I like to find out exactly why things were broke-- not just wiggle wires until it turns on, shrug, and continue. :) ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331663 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: JSON object error
Is the server call erroring? Use FireBug or MS Fiddler to capture the actual ajax request and confirm the status code and response body. ~Brad Original Message Subject: JSON object error From: sandeep saini sandeep00...@yahoo.com Date: Fri, March 12, 2010 3:22 pm To: cf-talk cf-talk@houseoffusion.com guys, I am getting following error when i access a CFC from Bind attribute of CFSELECT- Bind failed for select box,bind value is not a 2 D array or valid serialized query. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331716 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: JSON object error
I think you are double encoding your JSON. You don't need to put returnFormat=JSON in the component definition AND use the SerializeJSON() function. Pick one. Your CFC is returning JSON- but it is a JSON representation of a string that also just so happens to be a JSON representation of your result set. ~Brad Original Message Subject: Re: JSON object error From: sandeep saini sandeep00...@yahoo.com Date: Fri, March 12, 2010 3:41 pm To: cf-talk cf-talk@houseoffusion.com When I use http://127.0.0.1:8500/prototype/getData.cfc?method=rptDataidval=04; in URL, I get following displayed in browser- {\COLUMNS\:[\REPORT_NAME\],\DATA\:[[\AAA\],[\BBB\]]} Looks like the JSON object is properly get created. Then not sure whats wrong ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331719 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
SOT: Default Flash behavior when crossdomain.xml is absent
Quick question-- I swear I've Googled the crap out of this and for the life of me I can't get a definitive answer. We have two domains. www.oursite.com www.ourcdn.com We have a SWF player hosted at www.oursite.com which loads mp3s (among other things) from www.ourcdn.com. www.ourcdn.com does NOT have a crossdomain.xml policy file. Most of our users have no issues with the flash player loading the off-site content. Several people however report an error that I assume is Flash refusing to load the off-site content due to the lack of a cross domain policy. The obvious answer here is I need to create a crossdomain.xml file on www.ourcdn.com that specifies www.oursite.com as a valid location that can load its content via flash. However, in the name of curiosity, I would like to figure out which of my users are affected and why. Can anyone tell me what the default behavior of flash 7, 8, 9, 10, etc is if there is no cross domain policy _on_ the server hosting the content? Does it deny by default or allow? Based on what I am seeing, I assume some versions allow by default, while others deny but for the life of me I can't find conclusive documentation for all versions of Flash that compares their behavior. All I can find of the Internet is eleventy-billion how-to's on creating a policy new. (thanks but I already know how) Thanks. ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331621 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Daylight Savings Scheduled Tasks
I usually use the following JVM arg (I'm in the central time zone): -Duser.timezone=America/Chicago ~Brad - Original Message - From: Terry Ford terryfor...@yahoo.com To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, March 11, 2010 9:48 PM Subject: Re: Daylight Savings Scheduled Tasks Do you have any idea how CF picks up server timezone? I would have thought that the JVM would have picked up that change. I'm not sure where CF is getting that CST from. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SOT: Default Flash behavior when crossdomain.xml is absent
My understanding is that the default behavior is the same for Flash 7 and higher. It should deny access from your swf to content fetched from another domain unless that domain has the appropriate cross domain policy file allowing content to be fetched from the domain containing your swf. Yeah, that seems to align with what I've been finding. Thing is, that's not what's been happening. So, I suspect that there's something else going on. Maybe some (most?) requests are actually being served from servers within your CDN initially, rather than from your original domain. For example, if I go to www.microsoft.com, I'm actually going to someserver.www.ms.akadns.net. Perhaps that's the default behavior for many of your users? I'm kind of grasping at straws here. Straws appreciated and accepted. I don't think that's the case though. I opened MS Fiddler and hit on of our pages myself. (All of the streaming content on our site uses the same dynamic page and the same SWF player. The SWF player is not located on the CDN). This is what Fiddler showed me: Request for www.mysite.com/thePage.cfm Request for www.mysite.com/player.swf Request for www.mycdn.com/crossdomain.xml (Returned 404) Request for www.mycdn.com/theFile.mp3 It defies logic. By all rights flash should have shut down the SWF and never allowed it to access the last file. Hmm, a bit more Googling, and apparently that isn't always necessarily the case. According to this knowledge base article, Flash differentiates between simply playing an MP3 and extracting data from it. http://kb2.adobe.com/cps/963/50c96388.html This article appears to say that flash WILL allow an MP3 from another domain to be played, but will stop short of allowing you to extract data from it (like ID3 tags) without a crossdomain.xml file. Interesting... I'm not sure if that is affecting me or not. I'm using the JWPlayer and I'm pretty certain it doesn't do anything special to the MP3s. ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331633 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: null500 on nested custom tag
You should try a variable called lolcat. :) Seriously though, it sounds like an endless loop to me. If you check your server's coldfusion-out log you will probably see an out of memory exception. Put in some external logging to a text file or something to follow what is happening to your variables. Or use a counter in session to keep yourself from recursing more than 10 times so you can output debugging info in your page. Without really digging in to your code I can't really say where the problem is. It sounds like your issue is pretty straight forward-- you have a series of categories which are arranged in a hierarchy via your pivot table. Given a leaf node of your tree, you wish to climb until you reach the root node. I guess you're trying to make sure that none of your categories are orphaned with no active parents? Honestly, it might be a little simpler to write this using iteration, but don't let that keep you from recursive tags if that's what you like. As to whether or not you can do it in a single SQL statement-- maybe. If you are on SQL Server 2005 or later CTE's (common table expressions) allow recursion but I don't know that it would be any simpler. If your hierarchy of categories always has a known depth, you can just keep joining to your pivot table that many times. Other than that, you are out of luck using an adjacency list model. Nested sets are much better for calculating ancestors and descendants. One question: if your query returns no records, won't the line cfif nParentCatID LT 1 error trying to convert to a number? ~Brad - Original Message - From: Me Too must...@wabba.net To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, March 11, 2010 10:31 PM Subject: null500 on nested custom tag This is driving me nuts. Pretty simple, I have a little custom tag that runs through a pivot table trying to reach the bottom (categoryID=0) of a category tree by way of active (bActive=1) categories. The logic is: ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331635 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: chossing a methodolgy
You're likely to get as many opinions as there are people on this list. I haven't used Fusebox in a while (for no particular reason). ColdBox is a good modern MVC framework that comes with a lot of out-of-the-box tools if you want to try something new. http://www.coldboxframework.com/ If you want something uber-light weight and simple, try Sean's FW/1. http://fw1.riaforge.org/ If you want to play Framework Roulette, go to Charlie's framework list, close your eyes, and point your finger at the screen. :) http://www.carehart.org/cf411/#cffw_app ~Brad Original Message Subject: chossing a methodolgy From: Matthew Smith chedders...@gmail.com Date: Wed, March 10, 2010 10:52 am To: cf-talk cf-talk@houseoffusion.com I've been coding CF for around 12 years now. I've been using fusebox 3 since it came out and love it. I can do a site pretty quick with it and I'm very comfortable there. So comfortable that I haven't looked any further. Not a good thing for growth. As I've grown as a developer, my applications have become more comlex, and the way some things are done in fusebox 3 feel a bit kludgy to me now. So, It's time to try something new. I tried fusebox 4 for a few days when it came out, couldn't get the basic app to work, and gave up. I'm willing to give it another go, and noticed they are up to 5.5.1 now. I'm considering investing the time to give it another try. The documentation link under Learning Fusebox for 5.5 is broken. Only tutorials are for fusebox 4 and earlier. The book is $40, a bit much I think. So, before I spend $40 and, even more valuable to me, time, any recommendations? Is fusebox 5.5.1 worth it or should I go to something else? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331545 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: overwriting a component reference variable
I cannot give a definite answer, but I can hazard a guess! My understanding of the JVM is that memory is never reclaimed in-process. Instead it is re-claimed the next time GC is run. So in your example with 20 cfinvokes, I would expect a high likelihood that all 20 instances of that object still exist in memory when the request is completed but with no hard references. They will get picked up the next time garbage collection executes. ~Brad Original Message Subject: overwriting a component reference variable From: Michael Dinowitz mdino...@houseoffusion.com Date: Tue, March 09, 2010 3:08 pm To: cf-talk cf-talk@houseoffusion.com Just a fast question about components and memory so that I can be extra exact for a chapter I'm writing on components. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331499 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: query passed by value from a udf?
So the question now is if GC can be called programatically after all references to a large 'object' is removed during a single request. Yes. cfset obj = CreateObject(java, java.lang.System) cfset result = obj.gc() Careful though-- Garbage Collection can be an expensive operation. Also, GC can be a little complicated. Just because you run the code above may not guaruntee everything you expect to be collected will be. ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331527 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: query passed by value from a udf?
This is starting to sound like one of those Hibernate knows best sort of discussions. lol A sentiment I generally agree with, mind you. Second guessing Java's GC logic is probably for pretty darn special scenarios. ~Brad - Original Message - From: Dave Watts dwa...@figleaf.com To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, March 09, 2010 11:52 PM Subject: Re: query passed by value from a udf? So the question now is if GC can be called programatically after all references to a large 'object' is removed during a single request. While Brad points out that this is possible, I don't know if objects are actually marked for deletion until the request has finished. In addition, it's the kind of thing that you really don't want to get into - if you want to manage memory directly, that's why we have C/C++. The thrust of modern languages like Java is that memory management should be something that the computer does, rather than the programmer. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331530 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Pretty XML
ToString(XmlParse(xmlString)) This is redunant. You just turned a string into an object, and back into a string again. XmlFormat(ToString(XmlParse(xmlString))) 5 yard penalty for misuse of the xmlFormat function. That function is designed to make a string safe for inclusion in an XML document without being confused with the XML markup of the document it is being included in. Try this: pre #xmlString# /pre If you want more control, htmlEditFormat it, and manually replace line breaks with br, spaces with nbsp; and tabs with nbsp;nbsp;nbsp;nbsp;nbsp; etc... ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm