Re: Open source ColdFusion forums
what i'd really really really like to see is a fully blown cfml hosting control panel. so not just a control panel that integrates with CF but a control panel that is built on CF. probably built around Railo if you were to go the open source route. the hosting control panel would handle everything from resource allocation to billing to auto account creation and even domain registration. fancy biting that one off? :-) zac P.S. lots of individual packages already exisit that could be brought together to make this happen. FileZilla for FTP LightHouse Pro for bug tracking and support CF-works for billing you get the idea... the list goes on Hi everyone, I've recently taken a new job that has opened up some free time for me, and I'm considering a project I'd thought about long ago but never had time to implement. I'm curious if there is any interest in the development of an open source, ColdFusion-based forum application. The goal would be something comparable to vBulletin or PHPBB done in ColdFusion, done in open source style, completely free. It would seem that Ray's Galleon forums project is still alive and well, so with one open source forum application out in the wild I'm unsure if there is really need for another. So first, I want to be sure there would be interest in such a project; would the community welcome a second open source forum application in ColdFusion? Would anyone use it? Is there really a need for one? Is there some other category of software that I could invest time into that would be better served? I've been writing ColdFusion for over a decade, like many of you, and am interested in contributing back to the community. I welcome any thoughts or feedback you might have. -Justin Scott ~| 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:34 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion 9 cflayout ajax errors
What does Firebug tell you? I use the Chrome console, but I ran it in FF w/ firebug as well and get the same '404' response: GET http://machineaddresshere.asu.edu/test/selectpage.cfm? _cf_containerId=selectpage_cf_nodebug=true_cf_nocache=true_cf_clientid= EE835B64871E4BDA8BF645C28C2EC7EF_cf_rc=0 404 (Not Found) Is selectpage.cfm in a directory called test? Is that the same directory used above for the page that refers to selectpage.cfm? 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. ~| 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:343334 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
java.lang.OutOfMemoryError: Java heap space
i have this error on a win2000 with cf8, 4gb ram here are my java settings : java.args=-server -Xms1024m -Xmx1024m -Xmn100M -Dsun.io.useCanonCaches=false -XX:PermSize=64m -XX:+UseConcMarkSweepGC -XX:NewSize=48m -XX:SurvivorRatio=4 -XX:+UseParNewGC -XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar is the code the problem or my java settings? ~| 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:343335 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Progress/OpenEdge
I need to set up an ODBC datasource for CFMX to use to connect to Progress/OpenEdge. Does anyone with experience doing this know if I need to install the full Progress Client on my server or is there some way to just install the drivers themselves? Thanks, Scott ~| 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:343336 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: java.lang.OutOfMemoryError: Java heap space
Can you make the max any higher? We finally resolved our issue with that when we upgraded to Win Server 2k8, 8gb ram, and CF9. I was able to set the max to 4gb. ~| 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:343337 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfc creation best practice
One of the big advantages of caching your CFC's in memory is to reduce the overhead of instantiating them. If you have a rarely used ADMIN section, then this wont be an issue for for you if they are invoked every time you use them, so I wouldn't make any more work for yourself unnecessarily. On Mon, Mar 28, 2011 at 3:50 AM, Greg Morphis gmorp...@gmail.com wrote: Awesome! I appreciate the info Brian! On Mar 27, 2011 9:48 PM, Brian Kotek brian...@gmail.com wrote: Since the memory footprint of a CFC is generally very small, I would just create everything together at app startup (ideally using ColdSpring) and be done with it. On Sun, Mar 27, 2011 at 7:21 PM, Greg Morphis gmorp...@gmail.com wrote: If you have a site or an area of the site that's not going to get used a WHOLE lot would it make sense to create cfc objects (beans, gateways, daos) when you need them or is it still best just to create the gateway and dao object on application start? At what point would you just create it in the application scope? ~| 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:343338 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: java.lang.OutOfMemoryError: Java heap space
Hard to tell from this... I have no problem with your settings though - except perhaps I would make MaxPermSize 256m. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: tom vallee [mailto:tom...@numerique.ca] Sent: Monday, March 28, 2011 9:26 AM To: cf-talk Subject: java.lang.OutOfMemoryError: Java heap space i have this error on a win2000 with cf8, 4gb ram here are my java settings : java.args=-server -Xms1024m -Xmx1024m -Xmn100M -Dsun.io.useCanonCaches=false -XX:PermSize=64m -XX:+UseConcMarkSweepGC -XX:NewSize=48m -XX:SurvivorRatio=4 -XX:+UseParNewGC -XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/ ../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB- INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar is the code the problem or my java settings? ~| 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:343339 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: java.lang.OutOfMemoryError: Java heap space
FYI - Chad is suggesting moving from 32bit to 64bit. -Original Message- From: Chad Baloga [mailto:cbal...@gmail.com] Sent: Monday, March 28, 2011 9:30 AM To: cf-talk Subject: Re: java.lang.OutOfMemoryError: Java heap space Can you make the max any higher? We finally resolved our issue with that when we upgraded to Win Server 2k8, 8gb ram, and CF9. I was able to set the max to 4gb. ~| 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:343340 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfc creation best practice
Russ, This use to be a huge problem in CF 6 and to a lesser extent CF 7 (probably related to Java 1.4). But as of CF 8 the penalty for instantiation is very slight once the class is compiled. So I have flip-flopped a little bit on this. I used to use a singleton approach and stuff everything in the app scope. But now I'm more judicious and only put things in there that demonstrate a slow instantiation issue. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Monday, March 28, 2011 9:22 AM To: cf-talk Subject: Re: cfc creation best practice One of the big advantages of caching your CFC's in memory is to reduce the overhead of instantiating them. If you have a rarely used ADMIN section, then this wont be an issue for for you if they are invoked every time you use them, so I wouldn't make any more work for yourself unnecessarily. On Mon, Mar 28, 2011 at 3:50 AM, Greg Morphis gmorp...@gmail.com wrote: Awesome! I appreciate the info Brian! On Mar 27, 2011 9:48 PM, Brian Kotek brian...@gmail.com wrote: Since the memory footprint of a CFC is generally very small, I would just create everything together at app startup (ideally using ColdSpring) and be done with it. On Sun, Mar 27, 2011 at 7:21 PM, Greg Morphis gmorp...@gmail.com wrote: If you have a site or an area of the site that's not going to get used a WHOLE lot would it make sense to create cfc objects (beans, gateways, daos) when you need them or is it still best just to create the gateway and dao object on application start? At what point would you just create it in the application scope? ~| 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:343341 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: java.lang.OutOfMemoryError: Java heap space
You have a 32bit server with CF8 which means you have limits. The memory error may or may not be due to the overall heap size. You need to monitor the server and see what is happening. Try enabling metrics logging and verbose GC logging. Enable verbose garbage collection, is by passing 4 arguments to the JVM -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -verbose:gc -Xloggc:GarbageCollection.log The heap of 1024 is pretty much as big as it can get on a 32bit server. I see other items to look at though. Is this a multi-cpu server? If so the try the parallel GC instead. -XX:+UseParallelGC The -XX:MaxPermSize=192m -XX:PermSize=64m could also be an issue. If you run out of memory here you could get that same error. Again, with out turing on metric logging and verbose GC you are only taking shot in the dark. But try increasing both to 256m. For more details on JVM Tuning read my articles on the subject here http://www.trunkful.com/index.cfm/JVM-Tuning Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Mar 28, 2011, at 9:26 AM, tom vallee wrote: i have this error on a win2000 with cf8, 4gb ram here are my java settings : java.args=-server -Xms1024m -Xmx1024m -Xmn100M -Dsun.io.useCanonCaches=false -XX:PermSize=64m -XX:+UseConcMarkSweepGC -XX:NewSize=48m -XX:SurvivorRatio=4 -XX:+UseParNewGC -XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar is the code the problem or my java settings? ~| 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:343342 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion 9 cflayout ajax errors
And if you copy that response link, can you browse it the browse. My bet you can't. I'm not sure if some of your post was cut off, but specifying source= will result in the expected source not found error. Browsing directly to the 'selectpage.cfm' url will return the page fine with no errors. If I start taking off part of the CF generated ajax URL until it succeeds or fails, I get the following: This will fail: http://machinename.asu.edu/test/selectpage.cfm?_cf_containerId=selectpage This will succeed (of course): http://machinename.asu.edu/test/selectpage.cfm The 'NET' tab in firebug indeed provides more info than Chrome, 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:343343 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion 9 cflayout ajax errors
Is selectpage.cfm in a directory called test? Is that the same directory used above for the page that refers to selectpage.cfm? Yes on both counts. I can browse selectpage.cfm directly no problems. Also, I should mention that the server is running the latest CHF 9.0.1 ~| 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:343344 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion 9 cflayout ajax errors
I am not sure if this is related to your problem or not, but I did discover some changes to ColdFusion 9 and the ajaxproxy that ColdFusion uses for this stuff. It might be a long shot. http://www.andyscott.id.au/2010/12/13/Problems-with-CFAjaxProxy-and-migratin g-over-to-ColdFusion-9-what-you-need-to-know Regards, Andrew Scott http://www.andyscott.id.au/ ~| 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:343345 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: java.lang.OutOfMemoryError: Java heap space
i should replace -XX:+UseConcMarkSweepGC and -XX:+UseParNewGC or only -XX:+UseConcMarkSweepGC with : XX:+UseParallelGC ~| 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:343346 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: java.lang.OutOfMemoryError: Java heap space
I have never tried to run two garbage collectors. I'm not sure that is a good idea. On multi-cpu/core servers I have only used -XX:+UseParallelGC Also, the default time the GC runs is once per minute. This may or may not work for your application. To adjust that use the settings below. They are set to 10 minutes. Again, adjust the numbers to suite the needs of the server and application. -Dsun.rmi.dgc.client.gcInterval=60 -Dsun.rmi.dgc.server.gcInterval=60 Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Mar 28, 2011, at 10:48 AM, tom vallee wrote: i should replace -XX:+UseConcMarkSweepGC and -XX:+UseParNewGC or only -XX:+UseConcMarkSweepGC with : XX:+UseParallelGC ~| 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:343347 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: DoD CAC authentication
Do you know how to get the email from the CAC? ~| 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:343348 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: DoD CAC authentication
One way... CFSET usersCert = GetPageContext().getRequest().getAttribute(javax.servlet.request.X509Certificate)/ CFSET usersEmail = usersCert[1].getSubjectAlternativeNames() / ~| 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:343349 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: java.lang.OutOfMemoryError: Java heap space
Wil, I rather like the low pause collector combined with the UseParNewGC. It works quite well for us on our high traffic multi-instance servers. -Mark -Original Message- From: Wil Genovese [mailto:jugg...@trunkful.com] Sent: Monday, March 28, 2011 11:02 AM To: cf-talk Subject: Re: java.lang.OutOfMemoryError: Java heap space I have never tried to run two garbage collectors. I'm not sure that is a good idea. On multi-cpu/core servers I have only used -XX:+UseParallelGC Also, the default time the GC runs is once per minute. This may or may not work for your application. To adjust that use the settings below. They are set to 10 minutes. Again, adjust the numbers to suite the needs of the server and application. -Dsun.rmi.dgc.client.gcInterval=60 -Dsun.rmi.dgc.server.gcInterval=60 Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Mar 28, 2011, at 10:48 AM, tom vallee wrote: i should replace -XX:+UseConcMarkSweepGC and -XX:+UseParNewGC or only -XX:+UseConcMarkSweepGC with : XX:+UseParallelGC ~| 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:343350 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Open source ColdFusion forums
On Sun, Mar 27, 2011 at 11:47 AM, Al Musella, DPM muse...@virtualtrials.com wrote: I would love to see a good open source CF medical office management program that includes electronic medical records as well as billing. There is a php based attempt going on at http://www.oemr.org/http://www.oemr.org/ They did an amazing job on some parts, but dropped the ball on others. The user interface sucks. Not well laid out. Do you have any idea how huge a project that is? Medical billing alone is a huge pain, what with RVUs, the upcoming switch to IDC-10, EDI for getting Insurance payments. Add in all the up and coming requirements from the HITECH act with HIPPA and your EMR/PM system is a giant set of requirements. There is a reason the software is so expensive. Juda ~| 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:343351 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
What event specifically triggers OnApplicationStart?
In Application.cfc, I know that OnApplicationStart is called when an application starts. I'd like to define that better. From what I've read, this is when the first page is requested from an app (also possible are event gateways and Flash remoting but I'm not using either). So, if I say: this.applicationTimeout = CreateTimeSpan(1, 0, 0, 0); in my Application.cfc and a day goes by since calling OnApplicationStart, isn't it true that the server doesn't invoke my code on its own (like a cron job). It waits for a day to go by and then invokes OnApplicationStart on the next page request - even if that request is hours later? I'm asking because I'm trying to track down some odd behavior in a customer's app. The OnApplicationStart code looks at CGI.SERVER_NAME to determine which config file to load (production, staging, dev, etc.). Twice in the last 6 months, the production system starts to think it's a dev system. Are there cases where CGI.SERVER_NAME could be empty or undefined or... when OnApplicationStart is called? Can I trust that CGI var's are always set correctly in this scenario? ~| 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:343352 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
memory variables only timeout if they are not accessed the specified timeout period. every time anyone loads a page on your site, it accesses the application scope and their session scope, so the timeout is reset back to 0. An application will restart when ColdFusion restarts, when you reach the applicationTimeout, if you force a restart via code or via the CFADMIN/server monitor When you say you use cgi.server_name to determine which variables to use, are you being VERY explicity, as in the SERVER_NAME must match EXACTLY, or are you doing an if/else to say if its this then set as live else set as dev ? On Mon, Mar 28, 2011 at 6:25 PM, Dave Burns cft...@burnsorama.com wrote: In Application.cfc, I know that OnApplicationStart is called when an application starts. I'd like to define that better. From what I've read, this is when the first page is requested from an app (also possible are event gateways and Flash remoting but I'm not using either). So, if I say: this.applicationTimeout = CreateTimeSpan(1, 0, 0, 0); in my Application.cfc and a day goes by since calling OnApplicationStart, isn't it true that the server doesn't invoke my code on its own (like a cron job). It waits for a day to go by and then invokes OnApplicationStart on the next page request - even if that request is hours later? I'm asking because I'm trying to track down some odd behavior in a customer's app. The OnApplicationStart code looks at CGI.SERVER_NAME to determine which config file to load (production, staging, dev, etc.). Twice in the last 6 months, the production system starts to think it's a dev system. Are there cases where CGI.SERVER_NAME could be empty or undefined or... when OnApplicationStart is called? Can I trust that CGI var's are always set correctly in this scenario? ~| 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:343353 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion 9 cflayout ajax errors
I found the error, which was due to server-side config and IIS 7 security settings. In the move from IIS 6 to IIS 7 on a new server, the server admin did not correctly copy the SQL Injection exception terms from the previous config. So, II 7 then denied certain keywords in the query string which had the only 'symptom' of a 404. Thanks for your help. ~| 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:343354 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: java.lang.OutOfMemoryError: Java heap space
Mark, would that be as effective on a shared server ? what benefits over the default GC does it provide ? Russ On Mon, Mar 28, 2011 at 5:45 PM, Mark A. Kruger mkru...@cfwebtools.comwrote: Wil, I rather like the low pause collector combined with the UseParNewGC. It works quite well for us on our high traffic multi-instance servers. -Mark -Original Message- From: Wil Genovese [mailto:jugg...@trunkful.com] Sent: Monday, March 28, 2011 11:02 AM To: cf-talk Subject: Re: java.lang.OutOfMemoryError: Java heap space I have never tried to run two garbage collectors. I'm not sure that is a good idea. On multi-cpu/core servers I have only used -XX:+UseParallelGC Also, the default time the GC runs is once per minute. This may or may not work for your application. To adjust that use the settings below. They are set to 10 minutes. Again, adjust the numbers to suite the needs of the server and application. -Dsun.rmi.dgc.client.gcInterval=60 -Dsun.rmi.dgc.server.gcInterval=60 Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Mar 28, 2011, at 10:48 AM, tom vallee wrote: i should replace -XX:+UseConcMarkSweepGC and -XX:+UseParNewGC or only -XX:+UseConcMarkSweepGC with : XX:+UseParallelGC ~| 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:343355 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Open source ColdFusion forums
If I were putting as much work as needed to meet the functional, not to mention legal requirements, I would charge a *lot* of money for it. Doctors, medical offices, and insurance providers have plenty of money to pay for it. Not to mention that there are legal requirements that demand certain functionality already, and that's just going to explode, as more medical records are required to be digitally available through Intranets and the Internet for portability and patient access. That's a nightmare of responsibility for a programmer, who is going to be on the bottom of the lawsuit food chain if something goes wrong. If I were a doctor or insurance company, I wouldn't want to utilized *any* software that wasn't backed by a company that I could sue if something were violated legally and I had a doctor/medical practice or, especially an insurance company, coming down on me with a lawsuit because something didn't function exactly as required by law. I use open-source software, such as MySQL, but I wouldn't blame anyone if it didn't exist. It's difficult to run a business on support alone, anyway. -Original Message- From: Judah McAuley [mailto:ju...@wiredotter.com] Sent: Monday, March 28, 2011 1:01 PM To: cf-talk Subject: Re: Open source ColdFusion forums On Sun, Mar 27, 2011 at 11:47 AM, Al Musella, DPM muse...@virtualtrials.com wrote: I would love to see a good open source CF medical office management program that includes electronic medical records as well as billing. There is a php based attempt going on at http://www.oemr.org/http://www.oemr.org/ They did an amazing job on some parts, but dropped the ball on others. The user interface sucks. Not well laid out. Do you have any idea how huge a project that is? Medical billing alone is a huge pain, what with RVUs, the upcoming switch to IDC-10, EDI for getting Insurance payments. Add in all the up and coming requirements from the HITECH act with HIPPA and your EMR/PM system is a giant set of requirements. There is a reason the software is so expensive. Juda ~| 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:343356 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
memory variables only timeout if they are not accessed the specified timeout period. every time anyone loads a page on your site, it accesses the application scope and their session scope, so the timeout is reset back to 0. An application will restart when ColdFusion restarts, when you reach the applicationTimeout, if you force a restart via code or via the CFADMIN/server monitor To confirm my understanding, are you saying that on a very busy site, it's possible that OnApplicationStart might never run again once the app has started? (server admin and restarts aside.) Since the app is running fine for months and then all of a sudden switches configs, something else then must trigger a call to OnApplicationStart but with a screwy environment. (I'm going to add logging to track this down but I can't predict when the problem might happen again.) When you say you use cgi.server_name to determine which variables to use, are you being VERY explicity, as in the SERVER_NAME must match EXACTLY, or are you doing an if/else to say if its this then set as live else set as dev? My code looks like this: configName = dev if CGI.SERVER_NAME contains blah.com configName = production I can tell from a diagnostic page I have that configName's value ended up being dev. Fixing the problem is as easy as forcing a call to OnApplicationStart by hitting a special URL. Which makes me wonder under what circumstances OnApplicationStart can be called without CGI being set properly. Strange. ~| 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:343357 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
To confirm my understanding, are you saying that on a very busy site, it's possible that OnApplicationStart might never run again once the app has started? (server admin and restarts aside.) That's exactly correct. Since the app is running fine for months and then all of a sudden switches configs, something else then must trigger a call to OnApplicationStart but with a screwy environment. (I'm going to add logging to track this down but I can't predict when the problem might happen again.) It's entirely possible that (a) the server is stopping and restarting, which will cause all applications to stop, or (b) there's an explicit call to onApplicationStart somewhere within your code - this is actually pretty common. 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. ~| 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:343358 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What event specifically triggers OnApplicationStart?
On said diagnostic page, what is the value of CGI.SERVER_NAME and CGI.HTTP_HOST when the configName's value is dev? -Original Message- From: Dave Burns [mailto:cft...@burnsorama.com] Sent: Monday, March 28, 2011 1:10 PM To: cf-talk Subject: Re: What event specifically triggers OnApplicationStart? memory variables only timeout if they are not accessed the specified timeout period. every time anyone loads a page on your site, it accesses the application scope and their session scope, so the timeout is reset back to 0. An application will restart when ColdFusion restarts, when you reach the applicationTimeout, if you force a restart via code or via the CFADMIN/server monitor To confirm my understanding, are you saying that on a very busy site, it's possible that OnApplicationStart might never run again once the app has started? (server admin and restarts aside.) Since the app is running fine for months and then all of a sudden switches configs, something else then must trigger a call to OnApplicationStart but with a screwy environment. (I'm going to add logging to track this down but I can't predict when the problem might happen again.) When you say you use cgi.server_name to determine which variables to use, are you being VERY explicity, as in the SERVER_NAME must match EXACTLY, or are you doing an if/else to say if its this then set as live else set as dev? My code looks like this: configName = dev if CGI.SERVER_NAME contains blah.com configName = production I can tell from a diagnostic page I have that configName's value ended up being dev. Fixing the problem is as easy as forcing a call to OnApplicationStart by hitting a special URL. Which makes me wonder under what circumstances OnApplicationStart can be called without CGI being set properly. Strange. ~| 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:343359 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
I think I can see one possible cause of your problem Dave. You may actually have 2 applications running. one on yourdomain.com and another on www.yourdomain.com So if someone goes to yourdoamin.com and then www.yourdomain.com they will NOT be seeing the same application. So perhaps most people go to www.yourdomain.com, but every so often someone visits yourdoamin.cominstead, which would restart the application if it was outside the timeout period. To avoid this you need to add a redirect, so that only 1 domain is in use. either redirect www.yourdoamin.com to yourdomain.com or vice versa. And also change your code to explicit to avoid this problem if CGI.SERVER_NAME IS blah.com else ... staging else ... dev else redirect to blah.com On Mon, Mar 28, 2011 at 7:46 PM, Dave Watts dwa...@figleaf.com wrote: To confirm my understanding, are you saying that on a very busy site, it's possible that OnApplicationStart might never run again once the app has started? (server admin and restarts aside.) That's exactly correct. Since the app is running fine for months and then all of a sudden switches configs, something else then must trigger a call to OnApplicationStart but with a screwy environment. (I'm going to add logging to track this down but I can't predict when the problem might happen again.) It's entirely possible that (a) the server is stopping and restarting, which will cause all applications to stop, or (b) there's an explicit call to onApplicationStart somewhere within your code - this is actually pretty common. 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. ~| 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:343360 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
One thing to keep in mind, if you do not have a *unique *ApplicationName on your server, then the variables could be shared w/another application--which is especially dangerous on shared hosting. I've seen people roll out an application w/a common ApplicationName like MainApp and have issues w/their App scope being shared w/another application that also used a name of MainApp. Same thing happens if the Application.cfc/cfm doesn't define a ApplicationName. IMO, the safest thing you can do is name define ever ApplicationName with a hash of the current directory path: cfset this.name = hash(getDirectoryFromPath(getCurrentTemplatePath())) / That way you can use the same code w/every Application.cfc, but your virtually guaranteed to have a unique ApplicationName. -Dan On Mon, Mar 28, 2011 at 2:55 PM, Russ Michaels r...@michaels.me.uk wrote: I think I can see one possible cause of your problem Dave. You may actually have 2 applications running. one on yourdomain.com and another on www.yourdomain.com So if someone goes to yourdoamin.com and then www.yourdomain.com they will NOT be seeing the same application. So perhaps most people go to www.yourdomain.com, but every so often someone visits yourdoamin.cominstead, which would restart the application if it was outside the timeout period. To avoid this you need to add a redirect, so that only 1 domain is in use. either redirect www.yourdoamin.com to yourdomain.com or vice versa. And also change your code to explicit to avoid this problem if CGI.SERVER_NAME IS blah.com else ... staging else ... dev else redirect to blah.com On Mon, Mar 28, 2011 at 7:46 PM, Dave Watts dwa...@figleaf.com wrote: To confirm my understanding, are you saying that on a very busy site, it's possible that OnApplicationStart might never run again once the app has started? (server admin and restarts aside.) That's exactly correct. Since the app is running fine for months and then all of a sudden switches configs, something else then must trigger a call to OnApplicationStart but with a screwy environment. (I'm going to add logging to track this down but I can't predict when the problem might happen again.) It's entirely possible that (a) the server is stopping and restarting, which will cause all applications to stop, or (b) there's an explicit call to onApplicationStart somewhere within your code - this is actually pretty common. 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. ~| 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:343361 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
It's entirely possible that (a) the server is stopping and restarting, which will cause all applications to stop, or (b) there's an explicit call to onApplicationStart somewhere within your code - this is actually pretty common. Dave - For the sake of argument, if the server is restarted but no one hits a single page on the app, OnApplicationStart won't run right? So if it takes a page hit to call it, CGI should be defined, no? I just grepped my entire code base. The only call to onApplicationStart is my code in OnRequestStart which looks for a magic URL param. ~| 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:343362 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
Dave - For the sake of argument, if the server is restarted but no one hits a single page on the app, OnApplicationStart won't run right? So if it takes a page hit to call it, CGI should be defined, no? Yes, unless that page request comes through an event gateway I guess. I just grepped my entire code base. The only call to onApplicationStart is my code in OnRequestStart which looks for a magic URL param. Are you sure that hasn't been invoked? You might want to (a) add logging, or (b) grep your web server log files. 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. ~| 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:343363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
I think I can see one possible cause of your problem Dave. You may actually have 2 applications running. one on yourdomain.com and another on www.yourdomain.com So if someone goes to yourdoamin.com and then www.yourdomain.com they will NOT be seeing the same application. So perhaps most people go to www.yourdomain.com, but every so often someone visits yourdoamin.com instead, which would restart the application if it was outside the timeout period. To avoid this you need to add a redirect, so that only 1 domain is in use. either redirect www.yourdoamin.com to yourdomain.com or vice versa. And also change your code to explicit to avoid this problem if CGI.SERVER_NAME IS blah.com else ... staging else ... dev else redirect to blah.com Russ - I'm not sure I follow 100%. Whether the subdomain is there or not, IIS is configured to point to the same docroot so the same code will execute. I thought that the code manipulated the same application object if this.name was the same (which it is regardless of subdomain). Or am I missing something? ~| 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:343364 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
One thing to keep in mind, if you do not have a *unique *ApplicationName on your server, then the variables could be shared w/another application--which is especially dangerous on shared hosting. I've seen people roll out an application w/a common ApplicationName like MainApp and have issues w/their App scope being shared w/another application that also used a name of MainApp. Same thing happens if the Application.cfc/cfm doesn't define a ApplicationName. IMO, the safest thing you can do is name define ever ApplicationName with a hash of the current directory path: cfset this.name = hash(getDirectoryFromPath(getCurrentTemplatePath())) / That way you can use the same code w/every Application.cfc, but your virtually guaranteed to have a unique ApplicationName. -Dan Dan - That's a good tip but the app name is unique and I've verified that there are no unintended conflicts by dumping the application object's variables. (But, yes, I'm on shared hosting - meant to say that.) ~| 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:343365 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
On said diagnostic page, what is the value of CGI.SERVER_NAME and CGI. HTTP_HOST when the configName's value is dev? Bill - That's the key question. My diagnostic page only dumps the current config, not how it got there. I'm going to change that. Since I don't get an exception thrown within OnApplicationStart, I can assume that CGI is defined and CGI.SERVER_NAME is also defined. The only thing I can say is that, assuming my theory is right, the value of CGI.SERVER_NAME does not contain blah.com when I think it should. ~| 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:343366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
On 3/28/2011 11:10 AM, Dave Burns wrote: My code looks like this: configName = dev if CGI.SERVER_NAME contains blah.com configName = production Which means that if I (or any joker poking at your site to see if they can do something) who requests your site by its IP address could set your production server into dev mode. CGI.SERVER_NAME is probably populated, but it is populated by what I put into MY browser, just as long as that resulted in a request to YOUR server. ~| 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:343367 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
On 3/28/2011 11:10 AM, Dave Burns wrote: My code looks like this: configName = dev if CGI.SERVER_NAME contains blah.com configName = production Which means that if I (or any joker poking at your site to see if they can do something) who requests your site by its IP address could set your production server into dev mode. CGI.SERVER_NAME is probably populated, but it is populated by what I put into MY browser, just as long as that resulted in a request to YOUR server. Well, since that code is in OnApplicationStart, only if you either a) knew the secret URL param and value to force a call to OnApplicationStart() or b) got lucky and were the very first page request to the app after a server restart. Both are possible but improbable. ~| 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:343368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What event specifically triggers OnApplicationStart?
I suppose you haven't considered throwing some log recording in that area to help identify what might be going on? Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Burns [mailto:cft...@burnsorama.com] Sent: Tuesday, 29 March 2011 6:44 AM To: cf-talk Subject: Re: What event specifically triggers OnApplicationStart? Since I don't get an exception thrown within OnApplicationStart, I can assume that CGI is defined and CGI.SERVER_NAME is also defined. The only thing I can say is that, assuming my theory is right, the value of CGI.SERVER_NAME does not contain blah.com when I think it should. ~| 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:343369 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
Dave, Since your config is based on the cgi.server_name variable, why don't you search your web server access logs for calls to your dev domain name? This would tell you when and what was accessed which might have reset your app. Dean On Mon, Mar 28, 2011 at 4:00 PM, Dave Burns cft...@burnsorama.com wrote: On 3/28/2011 11:10 AM, Dave Burns wrote: My code looks like this: configName = dev if CGI.SERVER_NAME contains blah.com configName = production -- --- Dean M. Lawrence INTERNET DATA TECHNOLOGY p // 888.438.4381 ext. 701 w // www.idatatech.com f // www.facebook.com/idatatech t // www.twitter.com/idatatech Social Marketing | SEO | Design | Internet Developm ~| 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:343370 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
Which means that if I (or any joker poking at your site to see if they can do something) who requests your site by its IP address could set your production server into dev mode. Not necessisarily, that would depend on how the web server was set to handle requests. One of my application has a similar setup and IIS will only pass the request to the application if the IP and hostname bindings are correct. If you made a request on the IP itself you'd just get a 301 response with a redirect to the main URL. Of course, if you knew the dev URL you could get into the application in development mode (also assuming you had proper credentials), but you couldn't put the live application into dev mode just by tweaking the HTTP request. -Justin ~| 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:343371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What event specifically triggers OnApplicationStart?
Is it possible that someone is accessing your site by it's ip address, in an attempt to fool it into something that could enable a hacking attempt? I've seen security scanning software do similar things. This is why I tend to have the production state be the default state, and have development and stage be explicitly defined. That way, if the system is not sure which configuration to use, it uses the most secure. Mark Sent from my mobile device. On 29/03/2011 7:58 AM, Dean Lawrence dean...@gmail.com wrote: Dave, Since your config is based on the cgi.server_name variable, why don't you search your web server access logs for calls to your dev domain name? This would tell you when and what was accessed which might have reset your app. Dean On Mon, Mar 28, 2011 at 4:00 PM, Dave Burns cft...@burnsorama.com wrote: On 3/28/2011 11:10 AM, Dave Burns wrote: My code looks like this: configName = dev if CGI.SERVER_NAME contains blah.com configName = production -- --- Dean M. Lawrence INTERNET DATA TECHNOLOGY p // 888.438.4381 ext. 701 w // www.idatatech.com f // www.facebook.com/idatatech t // www.twitter.com/idatatech Social Marketing | SEO | Design | Internet Developm ~| 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:343372 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFSEARCH puzzle
Your looking at the context result in the query, right? Not the summary column, but the context column. On Sun, Mar 27, 2011 at 4:52 AM, Kevin Parker tras...@internode.on.net wrote: Does anyone have any insight into why CFSEARCH (CF8) might ignore contexthighlightbegin and contexthighlightend - it seems to be ignored - its not even outputting anything into the code in the search results. cfsearch collection=#TheDatabaseCollection#,#TheDocumentCollection# name=GetSearchResults contextpassages=#form.context# status=info contexthighlightbegin=strong contexthighlightend=/strong suggestions=5 criteria=#FORM.criteria# language=English TIA! ++ Kevin Parker ~| 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:343373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Open source ColdFusion forums
I didn't say it would be easy:) I wrote the first billing program that was certified by Medicare in NY to transfer claims directly from a doctors office to Medicare (Over 30 years ago:) I changed it over to a web application around the time coldfusion 2 was released and a few doctors are still using it. However, with all of the coming changes, it will soon be obsolete and I would have to start from scratch basically. Many doctors - maybe most - are in a bad position now. There have been cuts every year for the last 20 years.. and we are at the point where the profit margins are so thin that some doctors are going out of business. They close up the private offices and go to work for insurance companies or join huge groups. The HiTech act gives doctors an incentive to move to electronic medical records. The incentive is about $44,000 per doctor to use electronic medical records. And soon - if you do not use it - they will penalize you by taking a small % of your payments back. I have been evaluating many EMR packages - from open source to very expensive. None of them are really suitable for a small medical practice. There is a catch to that $44,000 incentive. You have to spend more time on record keeping and billing. A LOT more time. We basically have a first generation of programs again - and they look it. All of the old programs that went through many generations of fine tuning are obsolete. For most of the EMRs, they just slapped on more screens to qualify, without regard for the doctors who have to use it, thinking the $44,000 will offset the additional time, but it doesn't. Quick example: With my current system, it takes me about 30 seconds to write the chart and enter the bill. With the best of the new systems, it takes about 3-4 minutes to do the same thing. If an average doctor sees 30 patients in a day, that takes 15 minutes of the doctor's time for paperwork on my system, over an hour and a half for the new system.. Is over an hour a day of wasted time for 5 years worth $44,000? That works out to getting paid $33 an hour for extra paperwork - but average overhead is over $150 an hour... so by getting the bonus, you lose over $110 an hour while doing the paperwork instead of gaining. That doesn't count the huge bills being charged by most EMR vendors. I considered creating a system that could be certified under the new rules.. but I don't think it could be commercially viable - we would have to charge too much and there are way too many systems out there now to compete against. However, a group effort to produce an open source EMR might open up a big opportunity for many people to get into the support business. Most doctor offices need an IT person to keep the computers running and someone to call when there are problems. I picture all of the people who work on the project being able to list themself as support people for the program in their area. Either an hourly rate or yearly service contract. Perhaps also offer hosting of it. By having a lot of creative minds working on it - we could have numerous user interfaces to suit every type of doctor. The doctors could try out the various ways of entering the information and pick the way they like best, and offer suggestions on how to improve it. I read the qualifications to get certified.. they are not complicated - just a lot of them. Nothing that a team of CFers couldn't handle! At 01:55 PM 3/28/2011, you wrote: If I were putting as much work as needed to meet the functional, not to mention legal requirements, I would charge a *lot* of money for it. Doctors, medical offices, and insurance providers have plenty of money to pay for it. Not to mention that there are legal requirements that demand certain functionality already, and that's just going to explode, as more medical records are required to be digitally available through Intranets and the Internet for portability and patient access. That's a nightmare of responsibility for a programmer, who is going to be on the bottom of the lawsuit food chain if something goes wrong. If I were a doctor or insurance company, I wouldn't want to utilized *any* software that wasn't backed by a company that I could sue if something were violated legally and I had a doctor/medical practice or, especially an insurance company, coming down on me with a lawsuit because something didn't function exactly as required by law. I use open-source software, such as MySQL, but I wouldn't blame anyone if it didn't exist. It's difficult to run a business on support alone, anyway. -Original Message- From: Judah McAuley [mailto:ju...@wiredotter.com] Sent: Monday, March 28, 2011 1:01 PM To: cf-talk Subject: Re: Open source ColdFusion forums On Sun, Mar 27, 2011 at 11:47 AM, Al Musella, DPM muse...@virtualtrials.com wrote: I would love to see a good open source CF medical office management program that includes
Re: java.lang.OutOfMemoryError: Java heap space
NewGen switches are odd. I am not sure about the NewGen configured with -Xmn100m and also -XX:NewSize=48m both switches are for configuring NewGen however set to differing sizes. Perhaps the java heap error is related to this remembering that Heap is made up of NewGen and OldGen or YoungGen and Tenure (if you like those name conventions instead)? Suggest loose one or the other NewGen setting from JVM arg and see if java heap errors cease. Logging is always are good idea rather than just guessing at the problem. I do not mind the low pause collector in combination with the newgen collector. HTH, Carl. Wil, I rather like the low pause collector combined with the UseParNewGC. It works quite well for us on our high traffic multi-instance servers. -Mark I have never tried to run two garbage collectors. I'm not sure that is a good idea. On multi-cpu/core servers I have only used -XX:+UseParallelGC Also, the default time the GC runs is once per minute. This may or may not work for your application. To adjust that use the settings below. They are set to 10 minutes. Again, adjust the numbers to suite the needs of the server and application. -Dsun.rmi.dgc.client.gcInterval=60 -Dsun.rmi.dgc.server.gcInterval=60 Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Mar 28, 2011, at 10:48 AM, tom vallee wrote: i should replace -XX:+UseConcMarkSweepGC and -XX:+UseParNewGC or only -XX:+UseConcMarkSweepGC with : XX:+UseParallelGC ~| 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:343375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm