Re: cfindex is taking forever
Not in front of a computer right now, but there is an option in the CFcollection tag to list or get a collection details (something like that). Pretty sure that gives you the record or document count and maybe even size . I think that is accessible while indexing is happening. You could possibly write a quick script to see how far along things are. On Apr 8, 2015 6:51 PM, Les Mizzell lesm...@bellsouth.net wrote: That doesn't actually sound unreasonable, but it might be useful to come up with a document count more specific than very large. Approx 3000 documents - around 3 gb of data ... it's still running from what I can tell. ~ ~| 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:360437 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: I/O Exception: Name in certificate does not match host name
Think what you might need is to add the SSL certificate to the java cacerts file as a trusted certificate. Then any sub-name for the domain will work. https://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html This is a nice plugin for the CF Administrator to manage the cacerts, as opposed to messing with the command line. http://certman.riaforge.org/ ~Byron On Wed, Apr 8, 2015 at 5:23 AM, Ian Chapman ian.chap...@melodimedia.co.uk wrote: Hi Guys, Some time ago I posted a question about an error we were getting with MX7.1 http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353955 I have a similar problem but I believe the client is using a widlcard certificate so I get the error: I/O Exception: Name in certificate `*.domain.net' does not match host name `prerelease-api.anotherdomain.com' The difference this time is the '*.domain.net', previously it was for a determined sub domain so an aaddition to the host file resolved it. I've trid a number of things with the host file but as it's a wildcard I don't see what I would add to the hosts as any number of subdomains on domain.net could resovle to a number of IP's. Any ideas? Regards, Ian. ~| 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:360427 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ACF10 mail and Windows Server 2012
Careful with that, make sure you aren't opening up an open mail relay if you have public IP space on the server. You can do a check with some online tools like this. http://mxtoolbox.com/supertoolmobile.aspx On Apr 7, 2015 8:20 AM, John M Bliss bliss.j...@gmail.com wrote: In the SMTP Server properties, I changed the IP from one of the IP's on the box to all unassigned and it worked. ~| 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:360417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ACF10 mail and Windows Server 2012
Careful with that, make sure you aren't opening up an open mail relay if you have public IP space on the server. You can do a check with some online tools like this. http://mxtoolbox.com/supertoolmobile.aspx On Apr 7, 2015 8:20 AM, John M Bliss bliss.j...@gmail.com wrote: In the SMTP Server properties, I changed the IP from one of the IP's on the box to all unassigned and it worked. ~| 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:360416 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Sudden error with CFHTTP ans SSL
What is the URL and does the domain name match the certificate exactly, meaning not a wildcard certificate. Could be PayPal updated their SSL certificate and is either a wildcard certificate or multi-site/domain certificate (not sure what these are really called). CF will not like it if the domain is www.domain.com, but the certificate is *.domain.com. In this case, you need to import the certificate to the java cacerts as a trusted certificate to by-pass the security matching. You can either do this from the command line, or by far the easier route is this extension to CF admin. http://certman.riaforge.org/ https://www.google.com/webhp?sourceid=chrome-instantion=1espv=2ie=UTF-8#q=import+ssl+certificate+coldfusion+9+to+cacerts ~Byron On Mon, Mar 30, 2015 at 12:34 PM, wrote: Hi, I have an application under CF 9 with a paiment module using Paypal. At the end of the process, Paypal acknowledges the paiement and my app calls a Paypal page to validate the whole operation. This is done with a CFHTTP call This application has been working fine for years with no modification, bur all of a sudden starting March 23rd, I get this error: I/O Exception: peer not authenticated It appears to be an error with the SSL certificate, but how come ? The Paypal site is verified by Verisign. What ca I 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:360319 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: considering two options for changing hosting
Sorry I cannot comment on Hostek, but I would recommend working with your host and getting to the root of the issue before putting in the work on moving things. I just know that can be a hassle and you could wind up in the same place as you are today. So some recommendations. - Get your provider to move the site to another server. Even if it's temporary to see if the server is the issue. Maybe they can just provide another temp account for free. This way the db can stay where it is and just gave to move the files. - Put another simple php app on your site. This would help narrow down php on the server or your php instance (depending on their config) as the issue. - Disable your Wordpress plugins one by one to see if one is at fault. I know you stated these aren't the issue, but worth trying. - Check web logs to see if someone is leeching your Wordpress content and beating up your site. - Use a Wordpress caching plugin, you should do this anyway as Wordpress usually runs like doodie without one anyway. - Run the site through something like pingdom.com/tools, which will break down the load times and from where. Could be a plugin loading content from another site that is the issue and this would show it. - Check the html source, possible that your Wordpress site is compromised and there is some hidden content or something in the page causing a slow down. If you wanted to share the site, I'm sure some people on the list might be able to offer some insight. On Mar 26, 2015 7:05 PM, Mark Spence markpence...@gmail.com wrote: I am currently using Newtek/Crystaltek for a client site and have a couple of issues with them I am able to resolve. The site has been with them for several years. 1. Lately the Wordpress portion of the site has become slow and I can't figure out why. It's not the db and it is not the plug-ins. It's a simple site with not many posts or widgets and it should be faster. The CF portion of the site is fast. 2. They don't support http compression. This is more a minor annoyance, but it is something I want. So I am looking at the Hostek Personal Plus for $7.99 CF shared hosting. Has anyone used both hosts and can compare the two? Will I see a performance difference? ~| 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:360309 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Scheduler directory missing.
I would make a copy of the entire directory, then uninstall and install. Then copy and overwrite the configuration files. Pretty sure with 7, you will want the lib/neo-*.xml files. That should get you most of the way there. You could also leave the current install as is. Install a fresh copy to a new directory. Copy the configuration files, then update the Web server connectors to the new instance/install. That may be preferred as it would be easier to roll back to the prior version to at least keep things working. On Mar 26, 2015 1:28 PM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk wrote: Hi guys, long time no speak. Hardly doing any CF work these days, but still looking after a couple of long time customers on CF 7. I know it's old (ok, ancient), but it does what I need it to do. I've hardly touched the CF 7 install in years. Today I went to check a scheduled tasks and the entire /scheduler directory is awol. I suspect because I hid it from hackers so well that I can't find it! Is it possible to run a CF7 reinstall to recover this directory without overwriting my existing installation and configuration? Thanks, Jenny ~| 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:360301 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Error calling a .net object
I know I've done things like pass a file path (string) instead of file object, so make sure the type the method wants is string or otherwise. So might look if the function is this: OpenDesign(File, Int) as opposed to: OpenDesign(String, Int) ~Byron On Wed, Mar 25, 2015 at 9:08 AM, Bobby bo...@acoderslife.com wrote: example: opendesign(javacast('string',thisfile), javacast('int',0)) ~| 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:360290 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Error calling a .net object
Anyone have any ideas if the introspection into .NET objects shows private methods? May be the case that the method is private being shown in the CFDump? I seem to remember this might be the case. May be able to use this to decompile the dll and see what is what. http://www.red-gate.com/products/dotnet-development/reflector/ On Wed, Mar 25, 2015 at 10:33 AM, Charles Sheehan-Miles char...@sheehanmiles.net wrote: Still no dice. Iâm banging my head against the wall on this one. I know Iâve got the right path⦠I opened it up with cffile and dump it to the screen and itâs there. I donât have an asp application using it, going to try that next. If I can get it to work there, at least it will give me some indication of where the issue might be. On Mar 25, 2015, at 10:15 AM, Bobby bo...@acoderslife.com wrote: opendesign(javacast('string',thisfile), javacast('short',0) ~| 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:360295 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF version of JIRA?
If it's just issue tracking you are after and not so much project management, Jira is really overkill and IMHO overly complex to setup and manage anyhow. PivotalTracker might be something to look at if you are looking for something similar in the project management arenas. It is geared towards Agile, but could be used for more traditional PM. If just issue tracking is the goal, Trac or Redmine would be a good simple ways to go. Trello is a pretty awesome free organization tool that may be of interest as well. Plus the mobile app for it works really well. ~Byron On Mon, Mar 23, 2015 at 4:26 AM, Robert Glover sled...@gmail.com wrote: Is there a decent issue management system written in CF that is similar to JIRA? I could spend the $20 to get JIRA and host it myself, but I can't help but choke when I see the price difference between 10 users and 25 ($20 vs $1200, WTF?)... to the point that I'm like, screw you, I'll just find something else. Not even that we'd never need 25. It's just kind of the principle of it all. :) Thanks Rob ~| 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:360285 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: jQuery: firing a click event from a class instead of an ID
.on() in jquery 1.7+ is probably what to use instead of delegate(). I only say this as the documentation notates on() supercedes delegate(). And they have a habit of deprecation in these instances. $(document).on(event, selector, function ) On Mar 20, 2015 1:08 PM, Scott Stewart webmas...@sstwebworks.com wrote: .delegate is what I was looking for ~| 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:360276 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Hotfix 16, CF10
As a start, I would check your CF logs to see if there is any additional information that may shed light on the issue. Event logs are usually pretty generic when it comes to CF. You could also roll back the hot fix to get things working again. ~| 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:360267 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Decrypting MD5
Just for reference. Here's a pretty good article on how to hash properly. https://crackstation.net/hashing-security.htm Hashing is often done incorrectly, even if it's being salted you never want to use the same salt across the board. Simple thing is, compute power is so available, brute forcing MD5 hashes is fairly easy these days. I wouldn't even recommend using MD5 for anything secure like a hash of a password. Stick to that for simple things like file compares, etc. Cheers, ~Byron ~| 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:360248 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Line breaks being lost in textarea form field
I would view the source to see if the subsequent form edit has line breaks. If not this would indicate the data is not being saved as it was entered. You could also copy and paste the data out of the database into notepad or something, to see how the data is actually being stored. On Mar 8, 2015 1:52 PM, Mark Spence markpence...@gmail.com wrote: I don't know if this specifically a CF question so sorry if it is considered OT. I have an admin section of the site that lets the owner add and edit items/products. I am having an issue with the description field where the newline/enter key input is being lost when editing an entry. To give more detail, we have a product description saved in the db like so: This is product description1. This is paragraph 2. This is paragraph 3 I am using the tag ParagraphFormat2.cfm from cflib and the output is working fine on the product page. However, when the owner goes to edit the item, and the description is pulled from the db, it appears like this: This is product description1.This is paragraph 2.This is paragraph 3 After saving the item the text now appers on the product page without any paragraph breaks as a single paragraph. So if the owner wants to make any edits to the item they have to reformat the description re-adding the paragraph breaks. I tried adding htmleditformat() with no luck. Here is the tag: tdtextarea name=productDescription rows=10 cols=39#htmleditformat(attributes.itemForm.productDescription)#/textarea/td Any ideas? I would really appreciate it. Thank you. ~| 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:360228 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: trying to shorten long string
Might be something to test, but first look if there is no period on a string +200, I don't believe anything will return. Another method might be to use reMatch to break the string into an array of sentences. Then loop over the returned array, concatenating the string back together until length 200. ~Byron On Mar 7, 2015 11:23 AM, Captain Obvious mr.happ...@gmail.com wrote: Variable I is undefined. This works, cfif len(variables.description) gt 200 cfset variables.i = false cfloop condition=variables.i eq false cfset variables.description = listDeleteAt(variables.description,listLen(variables.description, .),.) cfif len(variables.description) lte 200 cfset variables.i = true /cfif /cfloop /cfif cfoutput#variables.description#/cfoutput ~| 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:360224 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Threaded cfhttp example
This should get you started. The cfthread join waits the specific timeout for the threads in the name list to finish. If not all threads are complete, things continue on, so you may want to perform checks against the threads returned in cfthread to ensure the values exists, etc. cfthread action=run aUrl=http://www.google.com; name=t1 cfhttp method=get url=#aUrl# timeout='10' / cfset thread.rtn = cfhttp.fileContent.length() /cfthread cfthread action=run aUrl=http://www.google.com; name=t2 cfhttp method=get url=#aUrl# timeout='10' / cfset thread.rtn = cfhttp.fileContent.length() /cfthread cfthread action='join' name='t1,t2' timeout='5000'/cfthread cfdump var=#cfthread# Byron On Mon, Feb 16, 2015 at 7:57 AM, Michael Christensen m...@travelmarket.com wrote: Hello Experts! I have been trying to create a multi-threaded cfhttp request script, but I have so far failed miserably. I want to run 10 concurrent threads that call URLS using cfhttp and I want to store the results (basically cfhttp.filecontent) in an array or a similar structure that I can loop once all threads have finished. Can someone provide me with a working example of this? ~| 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:360121 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Loading a java jar outside of the webroot and not in a standard CF/Railo jar directory.
Found these links that may be of help. https://github.com/markmandel/JavaLoader/wiki/Class-Loading http://www.bennadel.com/blog/424-loading-java-classes-with-coldfusion-runtime-java-javaproxy.htm Cf10, added a similar feature. https://wikidocs.adobe.com/wiki/display/coldfusionen/Enhanced+Java+integration+in+ColdFusion+10 ~| 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:360112 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Passing arguments into base class
This might work, if I'm understanding. component name='baseClass' { variables.utilClass = ''; public any function init(utilClass utilClass){ variables.utilClass = arguments.utilClass; } } In your derived class you can do this. component extends='baseClass'{ public any function init(utilClass utilClass){ super.init(argumentCollection=arguments); } } ~| 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:360067 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF10 setting comparable to CF9 maximum JRun threads?
Do not believe this is a setting any longer. There are only options to set the template, flash, web service and CFC requests. Believe the defaults are 20,5,5,10 respectively. ~| 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:360069 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Passing arguments into base class
Think you might want something like this in your base cfc? I think you'd not want the UtilClass to inherit the base class however, or this would lead to a circular reference and probably kill the app. component name='baseClass' { variables.utilClass = new UtilClass(); } On Fri, Feb 6, 2015 at 11:14 AM, Dean Lawrence dean...@gmail.com wrote: All of my classes in my app are derived from a base class. I've been using this successfully for the last couple of years. However, within the base class, I need the use of a utility class as well. I am currently calling it from the application scope, but I want to better encapsulate the base class and inject the utility class into the base class instead of relying on an external reference. My question is, how do I do this? I know how to do it with a regular class file, but not with a class that is being inherited. Can anyone give me some direction? Thanks, -- [image: profile picture] *Dean Lawrence* *President* Internet Data Technology *Phone:* 888-438-4381 x701 *Web:* www.idatatech.com *Email:* d...@idatatech.com Programming | Database | Consulting | Training ~| 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:360062 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cannot access session variables in a cfc
On Wed, Jan 28, 2015 at 1:57 PM, Robert Harrison rharri...@aimg.com wrote: try adding an Application.cfc in the root physical directory I don't that that will work. It would still be a separate application pool, and I think you need the CFID and CFTOKEN cookies to have session vars. Did a simple test on CF10 and CF8 and this does seem to work. The only identifier for an application is the application name that I'm aware of, so I would guess the first Application.cfc to be called would be the one to initialize the application. Subsequent calls would set the session and application timeouts, thus setting them the same would be a good idea. That being said, Dean's proxy suggestion is probably best, since you would probably want the code to run from either application.cfc. I thought the directory structure might be like this. The proxy would still work, but would probably just need a cfmapping to the app root so the /cfc/application.cfc could find the /app/applicationproxy.cfc. /cfc /app /app/application.cfc ~| 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:360035 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cannot access session variables in a cfc
@Dean, Looked into this a bit further on CF10. root - Application.cfc - ApplicationProxy.cfc (extends Application) - cfc-folder - - Application.cfc (extends ApplicationProxy) - - myCFC.cfc This does not work without the cfc/application.cfc having extends=root.ApplicationProxy, where 'root' is a CF mapping. As you said, CF will search from the application root downward on the file system. Since there is an Application.cfc in the cfc folder, it would start there and not find the ApplicationProxy in the directory above. This would work if the actual root directory was cfusion/wwwroot, or maybe if both application.cfc had the same applicationName and the ApplicationProxy was used/cached in /root app somehow before /root/cfc was initialized. If you use a CF mapping the proxy is really not even necessary, as this does work. /cfc/application.cfc - cfcomponent extends=root.application Cheers, Byron On Wed, Jan 28, 2015 at 3:44 PM, Dean Lawrence dean...@gmail.com wrote: Byron, the ApplicationProxy.cfc needs to be in the root directory along with the main Application.cfc. When you extend a CFC, CF will first look in the same directory to see if that CFC exist. If it doesn't CF will start looking for the CFC from the application root down. So by simply adding extends=ApplicationProxy to the Application.cfc within the /cfc directory, CF will find the ApplicationProxy.cfc in the root, which in turn finds the Application.cfc in the root. No mappings are needed. T ~| 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:360039 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cannot access session variables in a cfc
While I agree it isn't a good practice to make use of scope variables in a CFC, try adding an Application.cfc in the root physical directory of your CFCs and use the same application name and session and app timeouts. I think this would work in older versions, but not too sure about more recent versions. On Wed, Jan 28, 2015 at 11:08 AM, John Pullam jpul...@mcleansystems.com wrote: My app is running in a CF10 system and since I moved my cfc's out of the document root, they are losing access to the session variables. It seems that they work for around a day and then can no longer be found. I initialize them in my application.cfm to a value and I can still cfdump them in a regular web page, but the cfc fails with the error Element XXX is undefined in SESSION. Is this normal behaviour? If it is, then what is the alternative method of passing a variable into the cfc (other than making it a parameter when calling)? ~| 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:360030 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: PHP To Cold Fusion
The Y2K in me says this would be better ;-) int(getTickCount()/1000) On Fri, Jan 16, 2015 at 1:19 PM, Michael Dinowitz mdino...@houseoffusion.com wrote: 2. The epoch is GMT and using the ColdFusion now() function returns local time, not GMT. This is a more accurate epoch value: left(GetTickCount(), 10) ~| 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:359986 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: validating email CF11
With all the new top level domains available now (), you are better with a regex that matches by size, instead of adding specific strings beyond 3 or 4 characters. Just change the {2,4} to something like {2,254}, which should fairly future proof the regex. I believe the RFC for DNS has a maximum length of 253 for a domain, while the RFC for an email address is 254 for max length. http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#ICANN-era_generic_top-level_domains http://en.wikipedia.org/wiki/Email_address Interesting to note, that many special characters are allowed in the local part and IPV4 and IPV6 addresses are allowed for the domain part of an email address. The first regex Robert provided will handle most typical email addresses however. I don't think I've seen an email with an IP domain in like forever, but if IPV6 every takes hold, it's very possible it would become typical at some point. ~Byron ~| 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:359970 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: validating email CF11
DNS lookup might suffice just to verify the domain is valid (ie, registered). ~| 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:359974 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Chat app (using CF websockets) has stopped working after upgrading to CF11
Maybe a missing CF Mapping for the custom listener path? So does something like createObject(component, 'myPath.myCustomListener') work? You mentioned an upgrade, is CF 10 still running on the server? Maybe a port conflict if that's the case. I would check all the CF 11 logs to see if there are any exceptions being tossed as well. On Wed, Jan 7, 2015 at 8:20 AM, Parul Bali parul.sarasw...@gmail.com wrote: No worries Russ. Yes, I'm able to access 'CFIDE.websocket.ChannelListener' directly using the cfc browser. Also, it seems that the cfwebsocket tag isn't creating the javascript websocket object at all, because when i try calling the startup functions directly thru the console, i get the error that the websocket object is not defined. This was never an issue before upgrading to CF11. On Wed, Jan 7, 2015 at 1:10 PM, Russ Michaels r...@michaels.me.uk wrote: ok sorry thought you were saying you could not lock down CFIDE cozz you used web sockets. are you able to access the CFC directly via the browser using the cfc browser? On Wed, Jan 7, 2015 at 12:44 PM, Parul Bali parul.sarasw...@gmail.com wrote: Thanks Russ, we do follow these practices on Production, but right now am testing locally. So was just ruling that out as the issue that might be breaking my Websockets' application which suddenly stopped working after upgrading to CF11. So was wondering if anyone's faced such Websocket issues after upgrading to CF11. Any pointers or troubleshooting tips would be appreciated. On Wed, Jan 7, 2015 at 11:02 AM, Russ Michaels r...@michaels.me.uk wrote: The master CFIDE must be locked down, otherwise you are opening yourself up to be hacked. One of the standard best practices I have documented since CF6 is to make a copy of the CFIDE with only the minimal required files and to use this as the vDir in your sites if required. This will then contain nothing dangerous that can be abused. It is also fully documented in many places, including the lock down guide how to lock down only the parts of the CFIDE that need locking down if you choose to use the original copy on your sites. Have you tried this ? On Wed, Jan 7, 2015 at 9:38 AM, Parul Bali parul.sarasw...@gmail.com wrote: Bryon, My custom channel listener does extend 'CFIDE.websocket.ChannelListener', but if CFIDE's Channel Listener is inaccessible, I get the error that my custom ChannelListener is not a valid ChannelListener handler. So locking down of CFIDE is ruled out. Thanks On Wed, Jan 7, 2015 at 8:45 AM, Parul Bali parul.sarasw...@gmail.com wrote: Hi Bryon, I use my own custom channel listener CFC. So that's probably not the issue. Thanks for your help. Hi Jack, The websockets are enabled in CFAdmin. Thanks. It was working right before the upgrade to CF11, so wondering if there's anything to be kept in mind while upgrading - that I might have missed. On Wed, Jan 7, 2015 at 4:09 AM, Jack Traynor traynor.j...@gmail.com wrote: There is an option in CFAdmin that enables websockets, make sure that is still enabled after your upgrade. On Wed, Jan 7, 2015 at 3:06 AM, Byron Mann byronos...@gmail.com wrote: Any chance you locked down the CFIDE on the new install and you are using the default listener CFIDE\websocket\ChannelListner.cfc? http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518767eb3aa135858633ee-7ffe.html I haven't used websockets extensively, so I hope I'm not getting you off track. On Tue, Jan 6, 2015 at 2:00 AM, Parul B parul.sarasw...@gmail.com wrote: Hi, I recently upgraded to CF 11 and my chat application (which uses Coldfusion websockets and was earlier working great with CF10 and Apache) has now suddenly stopped working. Even a basic handshake isn't happening. I've already tried disconnecting/reconnecting the CF connector. Any pointers in this regard (if anyone has come across this issue after upgrading to CF11) would be highly appreciated. ~| 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:359923 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http
Re: Chat app (using CF websockets) has stopped working after upgrading to CF11
Any chance you locked down the CFIDE on the new install and you are using the default listener CFIDE\websocket\ChannelListner.cfc? http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518767eb3aa135858633ee-7ffe.html I haven't used websockets extensively, so I hope I'm not getting you off track. On Tue, Jan 6, 2015 at 2:00 AM, Parul B parul.sarasw...@gmail.com wrote: Hi, I recently upgraded to CF 11 and my chat application (which uses Coldfusion websockets and was earlier working great with CF10 and Apache) has now suddenly stopped working. Even a basic handshake isn't happening. I've already tried disconnecting/reconnecting the CF connector. Any pointers in this regard (if anyone has come across this issue after upgrading to CF11) would be highly appreciated. ~| 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:359907 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Builder 3
Builder is a desktop development environment (IDE), based on Eclipse. If you have not used Eclipse with CFEclipse or Builder, I would recommend giving it a go. Byron Mann Lead Engineer Architect HostMySite.com On Jan 6, 2015 1:20 PM, Steve LaBadie slaba...@po-box.esu.edu wrote: We just purchased CF 11 and we also received a license for Builder 3. I don't know anything about the product and wanted to know if it something that should be installed. Does it get installed on the server or desktop? Steve LaBadie, Web Manager East Stroudsburg University 570-422-3999 slaba...@esu.edumailto:slaba...@esu.edu [facebook-16x16]http://www.facebook.com/eaststroudsburguniversity [twitter-16x16] http://twitter.com/esuniversity [youtube-16x16] http://www.youtube.com/user/esuedu ~| 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:359912 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Builder 3
I use Sublime as well and love it for its simplicity. However, believe you can do real debugging with CF Builder. That may be a perk worth consideration. I do agree, changing dev methodologies can be time consuming, so maybe start off using it in your free time to get used to things. Byron Mann Lead Engineer Architect HostMySite.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:359914 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bad Gateway!
I would look to the code then. Something running well today does not mean it will run well tomorrow. I would maybe run the process and watch fusion reactor to see when things go bad. Also check the CF logs for any exceptions. Byron ~| 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:359897 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bad Gateway!
This is the kind of error you might get when the CF service is down. First impression is something you are running is crashing the CF service. Anything in the logs that might indicate this is the case? Byron ~| 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:359895 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bcrypt.class error
Based on your description, I think this is the line causing an error. bcrypt.checkpw(lcase(password),Member.getMemberPassword()) I might just add some more granular logging before the statement that would maybe nail down what is amiss. try { writeoutput(lcase(password)); } catch (any e) { write error 1 } try { writeoutput(Member.getMemberPassword()); } catch (any e) { write error 2 } try { writeoutput(bcrypt.checkpw('test','test')); } catch (any e) { write error 3 } try { writeoutput(bcrypt.checkpw(lcase(password),Member. getMemberPassword())); } catch (any e) { write error 4 } bcrypt.checkpw(lcase(password),Member.getMemberPassword()) Could maybe also pull out the checkpw function from inside the if an set to a variable. var chkResult = bcrypt.checkpw(lcase(password),Member.getMemberPassword()) if(isDefined(chkResult) and !isNull(chkResult) and isBoolean(chkResult) and chkResult){. if statement might be a bit overkill, but may handle the error more gracefully. On Thu, Dec 18, 2014 at 3:03 PM, Dean Lawrence dean...@gmail.com wrote: Yea, it is the generic nature of the error that is so frustrating. Like I said, I can still call the same class file and make the identical method call from another cf file even after the webservice starts throwing the error, so my assumption is that it is being cached somewhere. I tried clearing the template and cfc caches which had no affect on it though. If I knew that I could reset it without having to reboot CF, I could then build a test to do so on error. I'll try your suggestion of caching it in the application scope and see if that fixes the issue. Thanks Russ. On Thu, Dec 18, 2014 at 2:52 PM, Russ Michaels r...@michaels.me.uk wrote: that is a pretty generic error, but as it only happens after a while you might solve the problem by caching your object in application scope so it doesn;t have to be instan tiated every time. application.bcrypt = CreateObject(java, BCrypt); obviously check that it exists before creating it , or you are just doing the same thing. On Thu, Dec 18, 2014 at 7:36 PM, Dean Lawrence dean...@gmail.com wrote: I am using the java bcrypt class library to encrypt passwords on one of my sites and it is working fine. However, I am extending the app with a webservice and using the same bcrypt library to authenticate logins. This works fine for a period of time and then stops working. The error that I receive is An exception occurred when executing method checkpw.. The error detail is The cause of this exception was that: java.lang.NullPointerException.. Even when I start to receive this error, I am still able to make the exact same call from within a CF template without a problem. But being called from the webservice, I get the error. I have tried reinitializing the app to no avail. The only way that I have been able to fix the issue is by rebooting CF. I am using ACF 10 and here is the code that I am using to call bcrypt. component displayname=Consumer API output=false wsversion=2 namespace=http://mydomain/; { variables.bcrypt = CreateObject(java, BCrypt); remote struct function authenticate() returnformat=JSON { var results = {}; var memberEmail = ; var password = ; var token = ; results.status = 0; results.message = Invalid email or password; if (isSOAPRequest()){ try { memberEmail = getSOAPRequestHeader(http://mydomain/;, memberEmail); password = getSOAPRequestHeader(http://mydomain/;, password); if (isValid(email,memberEmail)){ Member = entityLoad(Member,{email=memberEmail},true); if (NOT isNull(Member)){ if (bcrypt.checkpw(lcase(password),Member.getMemberPassword())){ results.message = Successfully Authenticated; token = variables.utility.formStringEncrypt(Member.getMemberID()); addSOAPResponseHeader(http://mydomain/;, token, token, false); results.status = 1; results.message = Member authenticated; } else { addSOAPResponseHeader(http://mydomain/;, token, token, false); } } else { addSOAPResponseHeader(http://mydomain/;, token, token, false); } } else { addSOAPResponseHeader(http://mydomain/;, token, token, false); } } catch(Any e) { results.message = Error processing request.;
Re: CF11 mail issue
Could it just be the password is not what you think the CF7 machine has configured? Try the cfmail test with user/password/server (IP is Russ suggested) from the CF7 machine. That might tell you if the password is off. Any antivirus or OS firewall on the CF11 machine possibly blocking the service from sending? On Wed, Dec 17, 2014 at 7:28 AM, Russ Michaels r...@michaels.me.uk wrote: are you use a FQDN for the mail server? if so, try using the IP address instead and see if that helps. Might be some weird dns caching issue. On Wed, Dec 17, 2014 at 6:14 AM, Gonzo Rock gonzor...@gmail.com wrote: Pressing on I coded up a simple template to send a simple email using cfmail ... it's the first user added cfm on the server. Executing it I got this for an error in the mail.log file. Error,scheduler-1,12/16/14,20:17:08,,javax.mail.AuthenticationFailedException: 535 No SMTP server defined. Use real server address instead of 127.0.0.1 in your account. And this error in the exception.log file Error,scheduler-1,12/16/14,20:17:08,,javax.mail.AuthenticationFailedException: 535 No SMTP server defined. Use real server address instead of 127.0.0.1 in your account. javax.mail.AuthenticationFailedException: 535 No SMTP server defined. Use real server address instead of 127.0.0.1 in your account. at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:826) ...etc etc. wtf? So I look in the neo-mail.xml file and it looks correct... has all the expected server id info etc. So I reconfirm the same by looking with the CFadmin tool. So I use CFAdmin and clear out the cfmail settings and confirm by looking at the neo-mail.xml file again. Next I add code to the simple template, this time adding in Server= smtp-server.ca.rr.com username=user password=pass etc... I get the same errors as above. So I restart the cfserver. And again I get the same errors as above. Kerflummoxed. On Tue, Dec 16, 2014 at 5:50 PM, Gonzo Rock gonzor...@gmail.com wrote: Good idea... yes... both machines can initiate a telnet connection in that it gets to the opening prompt, Welcome to Road Runner... and waits for instructions. I type QUIT and the session terminates. On Tue, Dec 16, 2014 at 5:10 PM, Russ Michaels r...@michaels.me.uk wrote: can you telnet into the mail server on port 25 from the cf11 machine ? On Wed, Dec 17, 2014 at 12:11 AM, Gonzo Rock gonzor...@gmail.com wrote: I am setting up a new CF11 server on my network. Have a CF7 running currently too. I am having trouble getting the CF11 server to verify a mail server connection. These are the details: CF7 is on Win2003 and using: username:pass@mailserver on port 25 for CFMail CF11 is on Win2008 and using the 3 text boxes to define the username, pass and mailserver on port 25. CF7 verifies the email server connection and always has. CF11 won't. Both are on the same network... one at 10.0.0.20 and the other at 10.0.0.30 talking to a router at 10.0.0.1 to get outside the lan. Both machines can traceroute to the mailserver without issue Both machines can browse the web I reinstalled CF in the developer mode thinking something was locking it up. Next I thought it was windows firewall on the CF11 install but turning it completely off across all three areas, domain, private and public doesn't help. Google has not been my friend... just finding the obvious expected suggestions. Now that I have shot two days doing this I'm not clear on what to try next. Ideas anyone? Thanks, Gonzo ~| 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:359851 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SQLServer JDBC Driver - maximum number of connections
One thing maybe to check is the DSN is set to the maintain connection, could be the upgrade did not bring this over which might account to a large number of sql connections being made. The only times I have seen a similar error were with session limits on a firewall and a windows OS reaching outbound connection limits. Byron On Dec 12, 2014 8:38 PM, Don danfar...@hotmail.com wrote: How could one determine this limitation on maximum number of connections exceeded? [Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this 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:359840 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: GC overhead limit exceeded
Could this maybe be a difference in the jvm.config upon upgrade? I have not upgraded anything to CF11, but previous versions were basically a new install. So the memory limits in your prior version may have been tuned more appropriately to your application. ~| 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:359780 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problem returning JSON from CFCS
So the http response actually has Echo is on? Maybe there is just some additional output occurring in the CFC or Application.cfc that is outputting that string prior to the JSON response. On Tue, Dec 9, 2014 at 4:48 PM, Steve Durette st...@durette.org wrote: Hi all, I'm having a problem returning JSON from a CFC. Windows server 2012 Railo 4.2.1.008 IIS When I use fiddler it shows the data in the JSON view, but in the raw data view, Echo is on is before the JSON. This is causing the query .getjson to fail on character E. I'm sure that it is something simple but my google foo is failing me at the moment. Any ideas? Thanks, Steve Sent from my iPhone ~| 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:359781 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: how to diagnose a potential bottleneck
Sounds like you are on a shared server if the host cannot, install something to your liking. This could be a case of another site on the server bringing it down and not your site. Byron Mann Lead Engineer Architect HostMySite.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:359729 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: incoming tabular data stream error?
I'll make a recommendation here that may or may not apply, but may be worth noting. This is assuming ms sql Server. Insert...values... Insert...values... , n Will be much slower from SQL perspective than: Insert... Values(...) , (...) , (...) , n Or Begin tran Insert... Values... Insert... Values... , n Commit tran First option is preferred. I only mention this as cfthread will just speed up the sql statement generation (ie , looping over the spreadsheet) and not the actual sql execution time (or at least it sounds like in this instance) . You may be able to include some of these sql performance tweaks to improve performance further. Byron Mann Lead Engineer Architect HostMySite.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:359687 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Advise in optimizing an application
This may be something like that you want. cfquery name=findDups SELECT max(a.email_id) as email_id, a.ml_email FROM nl_mailgroups a inner join nl_catREL c on c.email_id = a.email_id WHERE c.groups_id = cfqueryparam value=#req.thisGROUPID# cfsqltype=CF_SQL_INTEGER / group by a.ml_email ORDER BY email_id /cfquery Your other query may be taking a while due to a missing index on the ml_email column. ~| 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:359652 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Redirects
With that many I might look into using some sort of command line script to manage. Here's a thread with a simple example on using appcmd for IIS to create a rewrite rule. http://stackoverflow.com/questions/19091661/urlrewrite-via-appcmd On Tue, Nov 11, 2014 at 8:36 AM, Steve LaBadie slaba...@po-box.esu.edu wrote: I have over 400 redirects that have to be recreated and I am always adding more. ~| 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:359609 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Scheduled Tasks Error
I've seen this before when the CF service suddenly terminates. Could be the service terminated during an update to the xml file rendering it empty. A subsequent restart of CF may have created a backup of the xml file before stopping, rendering the bak file empty as well. We moved to clustered configuration for scheduled tasks which keeps all the tasks in a database instead of a file. This has been really nice, since we have 12 instance running for all our internals. I think the only issue we have seen is the next run time not being updated appropriately. I believe this has only happened once or twice in a few years. ~Byron On Mon, Nov 10, 2014 at 8:26 AM, John M Bliss bliss.j...@gmail.com wrote: Only by restoring from backup. No clue as to root-cause / preventing it from happening again. On Sun, Nov 9, 2014 at 6:37 PM, Sebastian Powell bas...@gmail.com wrote: [crickets] :-) -- John Bliss - http://www.linkedin.com/in/jbliss I am experiencing the same issue on CF 11, neo-cron.xml all the scedheuled task vanished. and its an empty file. Did you manage to resolve this? ~| 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:359588 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Scheduled Tasks Error
This was a new feature implemented in CF10. There were a ton of improvements to scheduling for that release. http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d31851899e53a51353e870493-8000.html On Mon, Nov 10, 2014 at 9:08 AM, Russ Michaels r...@michaels.me.uk wrote: is this a new feature in CF10/11 to install the tasks in DB ? On Mon, Nov 10, 2014 at 1:37 PM, Byron Mann byronos...@gmail.com wrote: I've seen this before when the CF service suddenly terminates. Could be the service terminated during an update to the xml file rendering it empty. A subsequent restart of CF may have created a backup of the xml file before stopping, rendering the bak file empty as well. We moved to clustered configuration for scheduled tasks which keeps all the tasks in a database instead of a file. This has been really nice, since we have 12 instance running for all our internals. I think the only issue we have seen is the next run time not being updated appropriately. I believe this has only happened once or twice in a few years. ~Byron On Mon, Nov 10, 2014 at 8:26 AM, John M Bliss bliss.j...@gmail.com wrote: Only by restoring from backup. No clue as to root-cause / preventing it from happening again. On Sun, Nov 9, 2014 at 6:37 PM, Sebastian Powell bas...@gmail.com wrote: [crickets] :-) -- John Bliss - http://www.linkedin.com/in/jbliss I am experiencing the same issue on CF 11, neo-cron.xml all the scedheuled task vanished. and its an empty file. Did you manage to resolve this? ~| 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:359590 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Redirects
Is the site coded in a manner where it is not using absolute paths for anything? If this is the case, the new server can probably just have a virtual directory in IIS off the root for /police, that points to the physical path for about/offices/police And by the way, I hope you are not using the same mainframe my dad installed there in the late 70's. Byron Mann Lead Engineer Architect HostMySite.com On Nov 10, 2014 3:39 PM, Steve LaBadie slaba...@po-box.esu.edu wrote: We are currently using a meta date redirect from a UNIX box. The redirects currently sit on www and the production server sit at www4. We are taking down www so the redirects have to be recreated on our new production server which will be taking www. Current redirect structure: HTML BODY META HTTP-EQUIV=REFRESH CONTENT=1;URL= http://www4.esu.edu/about/offices/police/index.cfm; /BODY /HTML When the user types in www.esu.edu/policehttp://www.esu.edu/police it takes you to the correct page. We use this format to avoid long URLs on marketing pieces. Can someone give me directions for best practices using CF. The new production server currently runs CF9 but looking to upgrade to CF11. Steve LaBadie, Web Manager East Stroudsburg University 570-422-3999 slaba...@esu.edumailto:slaba...@esu.edu [facebook-16x16]http://www.facebook.com/eaststroudsburguniversity [twitter-16x16] http://twitter.com/esuniversity [youtube-16x16] http://www.youtube.com/user/esuedu ~| 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:359607 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfqueryparam EncodeForHTML
cfqueryparam will not prevent the malicious data from getting entered into the table. However it does prevent the malicious text from executing as T-SQL. cfqueryparam does not parse or cleanse data in any way. Basically it passes the text as a variable to the sql statement. Thus preventing any malicious code in the text from executing. So instead of T-SQL actually executing like this: select * from myTable where x='some'; delete * from myTable --' cfqueryparam is actually running T-SQL something like this. select * from myType where x= @aVar CF and the database driver are assigning @aVar your text string, @aVar = some'; delete * from myTable -- . So the value of the string inside the variable can never be execute, as it is not part of the actual T-SQL syntax. Just a variable value at that point. You can specify a data type to the query param. So if you specified cf_sql_integer and attempted to insert text with that parameter you would get an T-SQL error data type mismatch of sorts. Hope this helps explain a bit. ~Byron ~| 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:359558 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfqueryparam EncodeForHTML
Larry, You are already using cfqueryparam so you are protected for the most part. I say most part, because you could still extract the data from the db and have bad consequences if you are not considerate of the underlying data and how you use it. Like querying malicious data and using it in another cfquery without cfqueryparam. In general it is best practice to save data as it was transmitted and in as raw a format as possible and leave the logic up to the application on how to proceess and present data. Could get rebuttals on that but it is my preference. That said, it's not that you shouldn't or can't html encode. You just need to make the decision based on the requirements at hand. If you're storing html code for presentation later, this may very well make sense, where doing so for a company name probably does not. +1 on being so security aware. Byron ~| 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:359556 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternative to shared SMTP server
You could also do something like a small linux EC2 instance and run Postfix which based on your data transfer would probably be free as well. http://aws.amazon.com/free/ I think with Amazon SES you can send something like 2000 emails per day at no cost. ~Byron ~| 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:359532 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IE slow, Ffox, Chrome, Opera fast
I would agree the UI should maybe be tweaked; however things they may help IE and even other browsers. Set a fixed width on your columns and table. table width='500' td width='20'. Not sure if doing this as a style makes a difference or not. Set the table-layout to fixed. table style='table-layout: fixed;' On Wed, Oct 29, 2014 at 8:53 PM, .jonah jonah@creori.com wrote: It seems the IE rendering engine is slower in your particular case. Time re-work your app to not send 13 Megs of data and 6000 select options to the client. Look into paging, live filtering, and ajax-powered searching. On 10/29/14, 5:46 PM, Gonzo Rock wrote: Looking for ideas on how to fix this. -- IE seems to hang after it renders a very large webpage... 13Mb of html -- Same page in firefox or chrome or opera have no problems Details: This page is pretty much straight up html markup of a 6000 row table using the classic tabletrtd tags generated in CF. Caveat. Above the main data table are 6 or so select boxes where the user can select various filters to use and once they have they submit the page with the selected filter to CF where a new query is run to effect the filter. Among the 6 selects there are upwards of 6000 various options to choose from. One of them holds 5000+ in that select box. Clicking on any of the select boxes... even the one with 6 options... takes 5-10 seconds before the select box opens. However this works VERY fast in Chrome, FFox, Opera. If the user submits a filter that reduces the data returned to say 600 rows in the table... IE quickly shows the drop down box... as do the other browsers. The Select/Option syntax is perfect... I have reviewed it over and over again for errors... there are none that I see. The trtd sets are all proper I have worked with the doc type, the meta tags for encoding, yielding no improvement. Fiddler has not been useful in this effort... though I'd be the first to admit I don't get much of what it produces. Stackoverflow has a lot of discussion of javascript rendering but... this is all html from CF So what is it about IE that causes this problem? This is IE 10 and 11. I can't vouch for IE 9. Thanks for any ideas to chase down. ~| 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:359534 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributive Mode
We actually run our internal CF sites in distributed mode. CF10+ works better than 9-. Previously it seems to work very slow and the clustering well, just plain sucked. And yes, you can accomplish pretty much the same thing with reverse proxy. The distributed methodology is still useful (proxy or connector method) as CF can still peg CPU from time to time, and if you have other non-CF sites on the web server (we have like 10 others), it is nice to have these running while the lone CF site dies a horrible death on different servers. My best suggestion for easily configuring, would be to install IIS on the CF server, run the wsconfig.exe in the c:\ColdFusion10\cfusion\runtime\bin. This will create the configuration files as well as the handler mappings and virtual directory for the isapi_redirect.dll. Don't remove these so you can use them as a reference for setting up your web servers the same way. Copy the c:\ColdFusion10\config to your web server from the CF server. Then recreate the IIS handler mappings and jakarta virtual directory to mimic the CF server's IIS configuration. You will also have to add the isapi_redirect.dll as an allowed executable. You can see this on the CF server as well in IIS under the server root ISAPI restrictions. Make sure the website application pool user has write permission to the 'config' directory. The connector is more beneficial than a proxy in my opinion, as if you have more than one CF server on the backend, it can act as a load balancer of sorts. We have 12 CF instances backing our stuff, you can manually change the isapi_redirect worker files to create a pseudo cluster. You can also do things like redirect specific sites or sub-folders to a particular CF instances. One example I have is a CF service that routinely timeout and kills the server (as it calls another SOAP service off-site). I have this particular file redirected to one of the CF instances to minimize it killing others and effecting other sites. You can probably do the pseudo clustering as well with a redirect proxy. But the connector seems to be a more simple solution IMHO. 20 ways to catch a fish. The documentation for the Tomcat connnector is here: http://tomcat.apache.org/connectors-doc/reference/iis.html Don't follow the instructions for setting it up with IIS, it has stuff about registry keys and such, and they are not necessary. Just use it for a reference for the properties in the config files. Here is a snippet from our workers.properties file for the cluster (oh when I say cluster it's not really a CF cluster, the connector acts like a simple load balancer between your CF instances). Your ports may differ than 8013. I think 8009 is the default. You can see this in your CF instance in the web.xml file for tomcat under: c$\ColdFusion10\cfusion\runtime\conf\server.xml. Look for something like this, which also may be commented out. If so you will need to un-comment and restart CF. Connector port=8013 redirectPort=8443 protocol=AJP/1.3 tomcatAuthentication=false/ # workers.properties worker.list=cluster-1 worker.cluster-1.type=lb worker.cluster-1.balance_workers=cfusion-3,cfusion-5 worker.cluster-1.sticky_session=true worker.cfusion-3.type=ajp13 worker.cfusion-3.host=10.78.4.57 worker.cfusion-3.port=8013 worker.cfusion-3.max_reuse_connections=250 worker.cfusion-3.lbfactor=1 worker.cfusion-3.route=cfusion-3 worker.cfusion-5.type=ajp13 worker.cfusion-5.host=10.78.4.58 worker.cfusion-5.port=8013 worker.cfusion-5.max_reuse_connections=250 worker.cfusion-5.lbfactor=1 worker.cfusion-5.route=cfusion-5 Then your uriworkermap.properties would look something like this, we removed some of the default stuff: # uriworkermap.properties /rest/* = cluster-1 /*.cfml/* = cluster-1 /*.mxml = cluster-1 /*.cfm = cluster-1 /*.cfm/* = cluster-1 /*.cfml = cluster-1 /*.cfc = cluster-1 /*.cfc/* = cluster-1 Since you've used this in the past you probably already know, it's a good idea to mimic the same directory structure for your web apps between CF and web server. We use DFRS to replicate all the files, but other methods will work as well. Good Luck. ~Byron --I am having a Poodle of a day. ~| 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:359486 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Avoiding a boat load of queries inserting multiple records - Better Way?
Ideally I would also suggest SSIS for this, but sounds like a total re-write might be out of the question. This is what I would probably try, maybe breaking the number of records done during one transaction into something reasonable depending on server performance. Believe the OUTPUT clause is supported down to sql 2005. cfquery begin tran cfloop INSERT INTO listTable (email, fname, lname, other) OUTPUT #req.thisGROUPID#, inserted.listID INTO nl_catREL (groups_id, email_id) VALUES ('#mailREC[CurrentRow][1]#', '#mailREC[CurrentRow][2]#', '#mailREC[CurrentRow][3]#', '#mailREC[CurrentRow][4]') /cfloop commit tran /cfquery I was on a 2005 sql server, so I'm not sure if the multiple VALUES clause will work, but if so I would imagine this would be even more efficient. cfquery begin tran INSERT INTO listTable (email, fname, lname, other) OUTPUT #req.thisGROUPID#, inserted.listID INTO nl_catREL (groups_id, email_id) VALUES cfloop ('#mailREC[CurrentRow][1]#', '#mailREC[CurrentRow][2]#', '#mailREC[CurrentRow][3]#', '#mailREC[CurrentRow][4]') , /cfloop commit tran /cfquery You'd have to re-write this to account for the extra comma of course. Byron Mann Lead Engineer Architect HostMySite ~| 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:359454 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Why this regex takes so long?
Think this has something to do with the Regex itself. I stink at them; however try plugging it in here: http://regex101.com/ It returns something about catastrophic backtracking. You may want something like this: [A-Z0-9]*@ On Thu, Oct 2, 2014 at 11:51 AM, wrote: Hi, I'm having a problem with a scheduled task that chokes my server. Its role is to analyse bounced messages. I have been able to identify where it blocks, when analysing a line like this one with the regex below: Message-id: 26823262.22036.1411993378646.JavaMail.NS4007563$@127.0.0.1 CFSET regEx = [A-Za-z0-9_](\.?[A-Za-z0-9_\-]+)*@[A-Za-z0-9_\-\.]+(\.[A-Za-z]{2,6}) The server seems to get stuck in an infinite loop. Actually, the problem is that the function REfind takes much too long. I narrowed the problem to the following code which shows that the time taken grows exponentially with the number of characters and is anyway abnormaly long : CFSET line=00$@ CFSET regEx = ([A-Z0-9]+)*@ CFLOOP INDEX=n FROM=1 TO=10 CFSET line = 0 line CFSET deb=getTickCount() CFSET result = REFindNocase (regEx, line) CFSET time = (getTickCount()-deb)/1000 CFOUTPUT line = (#len(line)# char. = #line# result = #result# in #time# sec.BR/CFOUTPUT /CFLOOP And the result is: line = (17 char. = 000$@ result = 17 in 0.055 sec. line = (18 char. = $@ result = 18 in 0.028 sec. line = (19 char. = 0$@ result = 19 in 0.063 sec. line = (20 char. = 00$@ result = 20 in 0.113 sec. line = (21 char. = 000$@ result = 21 in 0.224 sec. line = (22 char. = $@ result = 22 in 0.447 sec. line = (23 char. = 0$@ result = 23 in 0.902 sec. line = (24 char. = 00$@ result = 24 in 1.787 sec. line = (25 char. = 000$@ result = 25 in 3.574 sec. line = (26 char. = $@ result = 26 in 7.192 sec. ~| 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:359390 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF10 creating extra CFID/CFTOKEN cookies at the domain level
If your Application has setclientcookies=yes, which is the default, a cookie/session will be created for each host used by the client to access the site. So domain.com,www.domain.com, 127.0.0.1, could all be the same physical web site, but would have 3 different cookies and sessions generated. You mentioned you setup a redirect to www. If the redirect is done via cflocation, then you would still see 2 CF cookies at the client, since the client actually is hitting both host names. A web server redirect would resolve this, so the client never really gets to domain.com as a CF request, hence no cfid/cftoken cookie. Another common issue I have seen is a login session occurring under www, but somewhere in the application a link goes to the non wwwîª host, which could result in a dropped session/login depending on how things are coded. Byron Mann Lead Engineer Architect HostMySite.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:359385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Getting memory amount used
Might be able to get this using Java. http://stackoverflow.com/questions/52353/in-java-what-is-the-best-way-to-determine-the-size-of-an-object For simpler objects maybe serialize the variable to json or wddx and do a regex to replace all the syntax characters and get the length. Fusion reactor or the builtin CF monitoring may get this granular for session variables. I cannot remember off hand. Byron Mann Lead Engineer Architect HostMySite.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:359386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cf incorrectly thinks compiled java byte code is correct
Can you post the code for the set_first_name.cfm? firstName variable is undefined. I have seen this type of error before when the variable is set to null. Something like a web service call that fails or really does not return anything. In this instance setName might be a function that returns 'void', so firstName would be null. cfinvoke method=setName webservice=...?wsdl returnvariable=firstname . /cfinvoke You could test this by checking isNull(firstname). I would think if the byte code was incorrect you would not be getting CF error details about what is going on and probably get some sort of java servlet 503 error instead. Byron On Wed, Sep 17, 2014 at 5:07 PM, Dave Watts dwa...@figleaf.com wrote: How do you know this? What do you mean exactly by incorrectly compiled? What version of CF are you running? What are the exact error messages you're seeing? The reason I know it's not being compiled correctly is because when this issue occurs, the errors that happen are indicative of the .cfm file being in place, but the byte code being empty. What I mean is, let's say page.cfm does a cfinclude on a high volume file called set_first_name.cfm which simply sets a variable called firstName. If that file is corrupted in the way I am describing, a firstName variable is undefined error would occur when firstName was referenced back in page.cfm (after the cfinclude). Because even though the included set_first_name.cfm file does indeed exist, the byte code that was generated is behaving as if it is blank (for lack of a better term). I haven't personally examined the byte code, but 1) I don't have access to the live server, and 2) I wouldn't really know how to read it. Well, my take on this is that you wouldn't see this problem if the file is corrupted. Instead, the entire page would simply fail to render unless you had the CFINCLUDE in a CFTRY/CFCATCH. The generated byte code has to be a fully-formed Java class that conforms to the Java Servlet API, and it seems to me to be unlikely that the class would be created correctly but just without your custom code. Again, I don't know enough about the internals of CF to guarantee this, but I do know a little bit about compilers and Java, and it seems unlikely. It would be useful if you could simply compare the bytecode size between good and bad versions of the same compiled class, if you could access those from the live server. They may be written to disk, in the cfclasses directory, if you have Save cache files to disk enabled in the CF Administrator. I've never seen this problem, even in many high-volume environments - some of which had their own problems. And it doesn't really make sense, given my (admittedly limited) knowledge of CF internals. So, I kind of think this is unlikely. Something else is probably happening. You may be right, but this is what we're experiencing. I also admit a limited knowledge of CF internals. I guess what I'm getting at here is: you definitely have a problem. But I don't think your description of the cause of the problem is accurate at all, and you could easily go down a rabbit-hole here by focusing on what you imagine is the cause of the problem, rather than the problem itself. The basic description of the problem is that you're not getting the output under load that you get without load, right? What happens if you block incoming traffic to the server, stop and restart the CF service, and rerun the same pages, with Save cache files to disk enabled? My guess is that you'll get the correct output. That article isn't really related, although it could solve the problem you describe. You can precompile CF code, then deploy that instead of the source code. You could try doing this to solve your problem, but again I don't think that's really the problem you're having. I agree that the article is only somewhat related, but it is related in the fact that, yes, there seems to be some sort of problem with the compilation process. We have thought about deploying the compiled code, but wanted to see if anyone else had experienced this problem first. You could certainly try to just deploy compiled classes and see what happens. It's generally a good thing to do in production anyway. Another approach you could try is to force the server to precompile everything by running a test script that generates an HTTP request for each CF file before you open access to users. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 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!
Link checker
I know there was a previous thread about spidering a site to check links and some people recommended a certain utility other than wget. I went through the archives and wasn't able to find that thread. Any thoughts? -- Regards, Byron Mann ~| 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:359281 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTRY / CFCATCH not working
Numbers of source Raster bands and source color space components do not match null Where do you see this error? In the exception logs? Or is the thread just dying and outputting this and not continuing on? Also what CF Version, I know older versions seemed to have many more problems reading image files than more recent version. On Tue, Sep 9, 2014 at 1:33 PM, Robert Harrison rob...@austin-williams.com wrote: Thanks, but that had no effect at all. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Cameron Childress [mailto:camer...@gmail.com] Sent: Tuesday, September 09, 2014 1:25 PM To: cf-talk Subject: Re: CFTRY / CFCATCH not working If there is an error in your error handling code you will get a hard error. It may be because you are still attempting to work with the corrupt file in your catch. Change this: cfcatch type=Anycfset get_imginfo.ImgWidth=0cfset get_imginfo.ImgHeight=0/cfcatch To this: cfcatch type=Any/cfcatch ...and see if it makes the error go away. -Cameron On Tue, Sep 9, 2014 at 1:02 PM, Robert Harrison rob...@austin-williams.com wrote: I have a script that returns image properties to me (below). After years of using it I've hit some sort of file that crashes it. The error I'm getting is: Numbers of source Raster bands and source color space components do not match null I'm assuming that from a corrupt image file, but the real problem is I wrapped this in a cftry / cfcatch (as shown below) and it's ignoring the CFTRY and giving me a hard error. cftry cfscript function get_imageinfo(imgfile){ jFileIn = createObject(java,java.io.File).init(imgfile); ImageInfo = StructNew(); ImageObject = createObject(java,javax.imageio.ImageIO).read(jFileIn); -THIS IS THE OFFENDING LINE imageFile = CreateObject(java, java.io.File); imageFile.init(imgfile); sizeb = imageFile.length(); sizekb = numberformat(sizeb / 1024, 9.99); sizemb = numberformat(sizekb / 1024, .99); get_imginfo = StructNew(); get_imginfo.ImgWidth = ImageObject.getWidth(); get_imginfo.ImgHeight = ImageObject.getHeight(); get_imginfo.SizeKB = sizekb; get_imginfo.SizeMB = sizemb; get_imginfo.ImageFormat = ListLast(ListLast(imgfile, \), .); } /cfscript cfcatch type=Anycfset get_imginfo.ImgWidth=0cfset get_imginfo.ImgHeight=0/cfcatch /cftry It runs this in a loop over a bunch of images and works until it hits the bad file... but it's ignoring my CFTRY and still throwing a hard error. Anyone have any ideas on why the CRFTY/CFCATCH is not working. Is there a problem because I'm catching a cfscript block? Thanks Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams ~| 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:359258 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: isvalid(url) issue
Wonder if encoding your query string values would result in a positive response. Byron Mann Lead Engineer Architect HostMySite.com On Aug 27, 2014 2:03 PM, John M Bliss bliss.j...@gmail.com wrote: ACF 10's isvalid(url) says that this is not a valid URL. What's your favorite alternative to isvalid(url)? http://www.domain.com/page.php?var=valuevar=valuevar=http://www.domain.com/path/page.htmvar=value -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359208 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: deleting an image after using cfimage
Just to add a bit. This is not limited to just CFimage. CF file functions and tags exhibit the same behavior. Although, in my experience has been better with version 9+. Seems like CF is a bit asynchronous with writing files. So a file write, immediately followed by another file action like move or delete, will sometimes fail. I have done similar things like Russ mentioned to deal with the issue. Usually, I will just leave the old file, and next time into the function/process add a check for old files and remove them. Another option is to write to a system temp directory that gets wiped on reboot. All dependent on the requirement of course. Byron Mann Lead Engineer Architect HostMySite.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:359176 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Scheduled Tasks Not Attempted
Do you have logging your scheduled tasks enabled? Might shed some light. Does a CF restart fix the issue? Are these setup as clustered? If so I would check server time-stamps between CF and DB servers to ensure they are correct. Not sure if this would really matter, as I would think CF would just use the DB server timestamp as authoritative in a clustered setup, but probably worth checking. I would recommend removing the task and rescheduling them. I've had to do this before where a task would not run for whatever reason. ~ Byron Mann Lead Engineer and Architect HostMySite ~| 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:359167 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion hangs or slow when several datasources are not found
Check your DSN settings, and set the login timeout to something reasonable like 5 seconds. The default is 30 seconds. You may have to tweak this a bit based on the time it takes to actually authenticate to your DB servers. All our DBs are local to the network and I've never had issue with a 5 second timeout. Also ensure you DSN have maintain database connection checked. This is a performance tweak in general. This forces CF to reuse the connection and reduces the overhead running a query. What is happening is CF is still attempting to connect to the DB server as needed. Each thread doing so, will wait until the login timeout is met before terminating. CF has a finite number of threads, which is outlined in the CFAdmin. The threads are getting used up by the waiting DB requests, once this reaches the maximum number of threads, additional requests are queued and you will begin to see slowness. Something like a cascade effect. The 5 seconds won't solve the issue all around. It just releases those threads faster. Depending on the number of queries attempting to run on the failed DB server. You may still see slowness. ~Byron Mann Lead Engineer Architect HostMySite ~| 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:359163 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EMail Injection Attack
Make sure the cfmail option for logging sent mail is enabled via the CFAdmin. This will tell you if CF is actually sending the mail. The log file will be in your CF root under logs. I think it's mailsent.log. Most likely one of two things. You have a web form that sends through another template using the cfmail tag which does no human checking, like a Captcha or checking the delay between page load and send request. Or you have an open relay with the mail server that is being used by CF to send mail, and CF is not actually the issue. Your mail server logs can log this, log location will vary based on the server used. There are several online tools to check if your mail server has an open relay. http://mxtoolbox.com/diagnostic.aspx ~Byron On Mon, Aug 18, 2014 at 3:56 PM, Garry Tran tran.ga...@gmail.com wrote: Hi All - Recently we've been under a email injection attack where we have unauthorized emails being sent through our coldfusion application. At this point we are unsure if it is through an email injection attack or not but if anybody has any advice on how to figure out where the attack is coming from it would be very helpful. My first question is - is there a way to trace back to which page cfmail is being called from? Are there any logs that I can view that would allow us to track down what pages are being hijacked? Much 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:359132 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EMail Injection Attack
No really good way in CF logs that I know to see the actual file that sent the CFMail. Might be able to correlate your web server access logs to the cf mail sent log with the timestamp. Most of the time attacks like this will be all at once, so it should be fairly easy to see in the web logs. ~Byron On Mon, Aug 18, 2014 at 4:12 PM, G T tran.ga...@gmail.com wrote: Hi Robert - Thanks for the reply, yes of course let me explain a bit more. While checking our sent mail logs, logged by coldfusion, we noticed emails were being sent out that was not directly sent through our own pages. Spam emails that were sent to different outside emails. So we can see that spam emails were sent outbound, but as of yet, we have no source of where they're coming from (ie. which pages are compromised). From what I've been researching, one way this is done by email inject - where they use form submissions to inject their own coldfusion code to form their own 'cfmail' sends. http://www.asadesigner.com/13-coldfusion/07d6a249de5791e6.htm Please let me know if you need additional info ~| 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:359134 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EMail Injection Attack
I'd also enlist the help of your hosting provider if server level troubleshooting is part of your service level agreement. It's usually in their best interest to squash this type of activity, as it can get their ip addreses and ranges blacklisted. Byron Mann Lead Engineer Architect HostMySite.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:359157 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Auto File Uploading...
Sounds like curl or wget would do the trick. Byron Mann Lead Engineer Architect HostMySite.com On Aug 6, 2014 8:36 PM, Phillip Vector vec...@mostdeadlygame.com wrote: So I have a server that reads a file that is submitted to it and processes the contents. I can not touch this server and change any settings on it.. I want to take a file I have (Let's call it data.txt) and upload it to the server once an hour. I can just reload the page once an hour or I can set up a schedule, no problem.. I just can't seem to automate the browse button to pick the file (which I can understand not allowing). So is there any way for me to not use the browse button and post it directly to an address like a form? ~| 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:359083 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Emails MIA
Your hosting provider should troubleshoot this if they will not provide the SMTP logs. We do not usually provide entire logs either, but will attempt to find the pertinent records and provide them. Should be easy enough to parse the logs if you provide an approximate time the email was sent and email address for the destination. Provider should also check to see if it just never made it off the local server. Could be the endpoint mail server was unresponsive at the time. Most email server will queue and retry a few times after a certain time period, but eventually fail and hold Your provider may also have an outbound spam filter trapping the email. This might account for it not making it to the end point. Use a failto in cfmail as it may provide you some detail. If the mail isn't making it off the server, it should bounce to the failto. I do agree with Russ a shared web server sending mail through localhost is usually a bad thing. We stopped allowing this. Just too many customers who have compromised forms that abusers use to send spam. So we now require smtp auth to send via their shared mail server (makes it easier to track abuse) or suggest an external mail service. Byron Mann Lead Engineer Architect HostMySite ~| 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:359056 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Query columns shifting
I've seen this before when the query was previously a SELECT * and modified to SELECT col1, col2, * ..., or is a SELECT * and the database schema is modified, or other similar scenario. Only way I remember resolving this was a CF restart. I think when SELECT * is used there is some sort of caching (on the CF side) of the column names and positions that occurs. Even changing the name attribute in the cfquery has no effect. I don't remember seeing this happening in CF 10, but pretty sure it was still happening in CF 9. For this and others, I always explicitly state the columns, and even more so use stored procedures over inline queries whenever possible. -- Regards, Byron Mann Lead Engineer Architect HostMySite On Tue, Jul 29, 2014 at 8:00 AM, Michael Christensen mich...@strib.dk wrote: Hey guys Got at bit of a weird thing going on in my code... Sometimes when I make a certain query, the query will return from the DB without error, but when I try to use the query I find that the columns have shifted, so that in a column where I would expect a date there is now a string. Has this ever happened to any of you? ~| 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:359032 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: multithreaded job....can i programmatically ignore waiting for threads?
Cfthread does have a terminate action. https://wikidocs.adobe.com/wiki/display/coldfusionen/cfthread You could do some sort of loop that checks the status of the threads every second or so, pausing with the sleep function. When you hit your exception, loop over the threads to terminate those threads requiring it. Alternately, your thread join can have a timeout. You could put a maximum wait time. Then loop the threads and terminate those not completed and throw an error. Byron Mann Lead Engineer Architect HostMySite.com On Jul 23, 2014 6:24 PM, Yuliang Ruan yuliangr...@hotmail.com wrote: scenario is this. main thread starts a pool of threads to do work. the result of all threads are combined together to form a big result set and returned. however, i'm envisioning that if 1 thread fails, the thread join is still waiting for the 9 other threads to complete before throwing an error.is there a way that once one thread fails, immediately throw, ignoring the 9 other threads? cftry cfloop from=1 to=10 index=icfthread name=t_#i# cfset dofoo_that_can_fail_and_throw_error()/cfthread cfthread action=join name=t1,t2,t3,t4,t5,t6,t7,t8,t9,t10 cfloop list=t1,t2,t3,t4,t5,t6,t7,t8,t9,t10 index=i cfif cfthread[i].status NEQ COMPLETE cfthrow type=fooFailed /cfif/cfloop cfcatch type=fooFailed cfrethrow/cfcatch/cftryc ~| 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:358994 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: need help with two sites - willing to pay $45/hour
Matthew, The site seemed to be responsive this morning, so I took a look at things and have fixed the basic errors that were happening and the home page now loads properly. I've done the following. Implemented an error handler in Application.cfm. So on error a full dump of the error is shown using /error.cfm template. It is a very basic handler. You may want to edit this to present something better to end users when error occur, and maybe email the error detail to your self. Fixed the cfquery(s) in /cfcs/qry-todatabase.cfc. Look like you were attempting to use a standard connection string. cfquery uses the datasource attribute which is configured in the CFAdmin (which you already provided as fatcat111). The rest of the database calls in that file were using #request.datasource#, so I did the same. This variable was missing, so I set this in the /fbx_settings.cfm (see line 24). There was also an additional syntax error and this was resolved as well. Let me know of anything further. How would you like to handle payment. I usually use PayPal, would this suffice? In all I've spent ~2 hours on this. Regards, Byron On Wed, Jul 23, 2014 at 1:05 AM, Rakesh Prasad rkprasa...@gmail.com wrote: Hi, We have excellent experience in Coldfusion based website and web application development as mentioned below, Also we have a team of well experienced developers in Coldfusion technology. Experience : around 15 years Projects: 200 web application and website. We can provide help you to troubleshoot your website issues. Thanks Regards RK Prasad On Tue, Jul 22, 2014 at 6:56 AM, Matthew Smith chedders...@gmail.com wrote: I have two sites with minor issues I need help with. http://www.theartoflovingcatsanddogs.com http://www.fatcate-juice.com The first is an image reference issue and the second has to do with a cfc issue. Please let me know if anyone is interested. Thanks. -- Regards, chedder is bedder ~| 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:358982 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: need help with two sites - willing to pay $45/hour
Apologies to all, result of too many open windows and not enough coffee. On Wed, Jul 23, 2014 at 9:44 AM, Scott Stewart webmas...@sstwebworks.com wrote: Byron, no offense but did you really mean to send this out to the enitre CF-Talk list? On Wed, Jul 23, 2014 at 9:14 AM, Byron Mann byronos...@gmail.com wrote: Matthew, The site seemed to be responsive this morning, so I took a look at things and have fixed the basic errors that were happening and the home page now loads properly. I've done the following. Implemented an error handler in Application.cfm. So on error a full dump of the error is shown using /error.cfm template. It is a very basic handler. You may want to edit this to present something better to end users when error occur, and maybe email the error detail to your self. Fixed the cfquery(s) in /cfcs/qry-todatabase.cfc. Look like you were attempting to use a standard connection string. cfquery uses the datasource attribute which is configured in the CFAdmin (which you already provided as fatcat111). The rest of the database calls in that file were using #request.datasource#, so I did the same. This variable was missing, so I set this in the /fbx_settings.cfm (see line 24). There was also an additional syntax error and this was resolved as well. Let me know of anything further. How would you like to handle payment. I usually use PayPal, would this suffice? In all I've spent ~2 hours on this. Regards, Byron On Wed, Jul 23, 2014 at 1:05 AM, Rakesh Prasad rkprasa...@gmail.com wrote: Hi, We have excellent experience in Coldfusion based website and web application development as mentioned below, Also we have a team of well experienced developers in Coldfusion technology. Experience : around 15 years Projects: 200 web application and website. We can provide help you to troubleshoot your website issues. Thanks Regards RK Prasad On Tue, Jul 22, 2014 at 6:56 AM, Matthew Smith chedders...@gmail.com wrote: I have two sites with minor issues I need help with. http://www.theartoflovingcatsanddogs.com http://www.fatcate-juice.com The first is an image reference issue and the second has to do with a cfc issue. Please let me know if anyone is interested. Thanks. -- Regards, chedder is bedder ~| 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:358985 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Insite Help on CF Hanging?
Are the client variables in a database? If so, I would run a query on the CF tables to get a count of records. It could be your attack was worse than you think and have a boat load of records. An attack like that would likely result in a set of client variables for each request. The query to purge the database will lock the tables. Any application using client variables would basically have to wait until that is done and keep chewing up memory. I know this was an issue in CF8, not sure if it's still a linger issue in newer versions, as that is around the time we stopped using client variables. @Mark, I want to say both CF 9 10 install with Cookie as the default client storage. This could just be how we provision our servers however. I remember the days of CF taking an hour to start if your client var registry was out of control. We had the oops moment on our shared servers long ago. Regards, Byron Mann Lead Engineer Architect HostMySite ~| 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:358992 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Spelling Correction
Working on a search feature on CF8 with Verity. I see that it returns suggestions for alternate searches. We were hoping to use this for a feature similar to Google's Did you mean, when you fat finger a word. However, the suggestions returned from Verity are pretty horrible and useless. Has anyone done this type of thing previously and have any suggestions? I was thinking if there is an API out there to do this, that might work. I did the Googling with a few suggestions, but mainly came across Thesaurus type APIs. Doesn't seem to be too many auto-correction services. -- Regards, Byron Mann ~| 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:358968 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Regex help maybe
This would do one special, 3 consecutive numbers: ajfds123jdfs# ^(?=.*\d{3})(?=.*[\~\!\@\#\$\%\^\\*\(\)\_\+]+).{10,20}$ This would do one special, 3 numbers any position: a#bcdef2k3#4^ ^(?=.*\d.*\d.*\d)(?=.*[\~\!\@\#\$\%\^\\*\(\)\_\+]+).{10,20}$ And if your restricting to just numbers and the special chars outline, replace the last . in either to this. [\d\~\!\@\#\$\%\^\\*\(\)\_\+] So like this in the second variant: ^(?=.*\d.*\d.*\d)(?=.*[\~\!\@\#\$\%\^\\*\(\)\_\+]+)[\d\~\!\@\#\$\%\^\\*\(\)\_\+]{10,20}$ Plenty of online regex testers as well so you don't have to keep coding it up to tweak. I use this one a bit. http://regexpal.com/ Byron Mann Lead Engineer Architect HostMySite On Mon, Jul 21, 2014 at 5:29 PM, UXB denn...@uxbinternet.com wrote: I am terrible at Regex's. I looked all over and am going blind. Is there anyone here that can shorted my search? I need one to test true for: 10 to 20 Characters in length 3 numeric characters in any order 1 special character from basic list ~!@#$%^*()_+ Any help is appreciated. Dennis Powers UXB Internet - A website Design and Hosting Company P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 W: http://www.uxbinternet.com W: http://www.ctbusinesslist.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:358953 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: AWeber Email List Management
Is installing php and using the php lib via cfexecute an option? Byron Mann Lead Engineer Architect HostMySite.com On Jul 14, 2014 3:28 PM, Dean Lawrence dean...@gmail.com wrote: Does anyone have any experience using the AWeber API ( https://labs.aweber.com/) from within their ColdFusion app? They don't have an wrapper library for ColdFusion and their documentation is not very good. I haven't been able to find anything substantial by using Google, so any help pointing me in the right direction would be greatly appreciated. ~| 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:358875 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: AWeber Email List Management
Guess I should have phrased that a bit differently. Php (and others) option with cfexecute is certainly viable, I was concerned if the original poster was able to do so. They may be in a corporate, hosted or government environment that dictates otherwise. If php and CF are running locally on the server, I would opt for the command line method, as it will perform better. If this is a hosted environment a POST method will probably be the better option since many hosts lock down cfexecute in the sandbox. My million dollar idea would be to write a CF/Php compiler. Hm, project for the weekend me thinks. Byron Mann Lead Engineer Architect HostMySite.com On Jul 15, 2014 10:57 PM, Maureen mamamaur...@gmail.com wrote: I don't see why not. If you are going to do that, there are several options other than PHP as well. Or you could just call the php page on your form action instead of a cfm page. On Tue, Jul 15, 2014 at 10:39 PM, Byron Mann byronos...@gmail.com wrote: Is installing php and using the php lib via cfexecute an option? Byron Mann Lead Engineer Architect HostMySite.com On Jul 14, 2014 3:28 PM, Dean Lawrence dean...@gmail.com wrote: Does anyone have any experience using the AWeber API ( https://labs.aweber.com/) from within their ColdFusion app? They don't have an wrapper library for ColdFusion and their documentation is not very good. I haven't been able to find anything substantial by using Google, so any help pointing me in the right direction would be greatly appreciated. ~| 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:358877 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: The state of Statlessness
Very curious to know what the scenario is for this requirement. Byron Mann Lead Engineer Architect HostMySite.com On Jul 3, 2014 12:38 PM, UXB denn...@uxbinternet.com wrote: I have always know and understood the underlying technology of the web in that it is a stateless medium. For the past decade I have been designing web apps knowing that because it is stateless you can never trust the client condition or the data being sent from them. So with that in mind I find myself struggling with a methodology to determine if a single CF session has opened a particular web page in two or more browser windows. Has anyone come up with a way to make this determination? The solution does not need to be bullet proof just best try. I am trying to prevent or warn a user from visiting a page he already has open and running/displayed in a separate browser window. Ps: where is everyone? On vacation? I have only received 8 messages from this list since the 1st of the month. Dennis Powers UXB Internet - A website Design and Hosting Company P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 W: http://www.uxbinternet.com W: http://www.ctbusinesslist.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:358816 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: The state of Statlessness
I wonder if something server side could handle this maybe as well. So user initiates a new upload already in progress under the same name, different file or not. Assuming on the server side you could check for uploads in progress already for that user/session, return an error code to the client? Overhead would be minimal as you would only really have to perform the check on the first block of a file being uploaded. Byron Mann Lead Engineer Architect HostMySite.com On Jul 4, 2014 12:07 PM, UXB denn...@uxbinternet.com wrote: Byron, Very curious to know what the scenario is for this requirement. The original requirement was that I was working with a file upload system (Plupload) utilizing the chunk method for uploading files. We needed a way for users to use HTTP to upload gig sized files. In the basic implementation of the system each chunk of the file is uploaded to the server with three multipart form fields; Name, chunk, chunks which contains the actual file name, the chunk being sent and the total number of chunks to send. Each chunk is sent as blob. In testing I found that if someone opened the upload page in two or more browsers windows (as a way of bypassing the number of files at a time in the queue) and started two upload sessions they could easily upload a different file with the same name simultaneously. There was no way to determine which window uploaded which chunk of two different files with eh same name so on the server receiving end they would become intermixed and the file would be corrupted. My first thought was that I needed a way to either to uniquely identify that there were two separate windows of the upload page opened and send that identifier within the extended multipart form fields. In investigating I found that instead I could uniquely identify each file from each instance of the window (see my other thread) even in the same session and thereby prevent file upload corruption. Dennis Powers UXB Internet - A website Design and Hosting Company P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 W: http://www.uxbinternet.com W: http://www.ctbusinesslist.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:358821 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfdirectory issue
First I would check the obvious and verify permissions, you just never know. Is this anything like a directory on a file share? Could just be an availability thing then. Anything new outside of code changes? Patches? Other new software installed on the server? Any other software or process possibly locking the directory? Virus scanning? Some other new code unrelated? Is the directory growing and now has a large number of files or directories, Windows doesn't like that so much pre 2008. My first instinct says that another process is doing something occasionally to the directory or files. Might be good to see some code and what version you are on. Are sandboxes in use? I have seen things like creating a file or directory via CF and then accessing that in the next few lines it doesn't exist yet, but that was previous versions, have not seen that with 10±. Byron Mann Lead Engineer Architect HostMySite.com On Jun 13, 2014 6:38 PM, Tim Do t...@wng.com wrote: I have some code that's been working for years, but recently starting to act strange. Simple cfdirectory looking in a particular folder and listing out some files. Users are saying there are files in there and when I go in and check, there are! Cfdirectory returns me 0, no errors and DirectoryExists returns no. The strange thing is that nothing changes then suddenly half hr or hr later it starts to see it again. I can't imagine it being a permissions issue since it works intermittently. Any ideas? Thanks in advance... Sample disclaimer text ~| 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:358732 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: DDOS Prevention
I had issue attempting to get that IP restrictions module to work with CF 10. Seems as though the request was getting handed off to CF before hitting the IIS module. So it did not seem to work properly at least for me. I didn't put too much effort into it, as our load-balancer actually handles some of this mitigation. Any DDOS of significance would get alerted to our Network Operations team proactively where they usually mitigate the issue at the border routers, thus the LB or servers would never see the traffic. You might look into setting up a software based load balancing solution to handle this. Something like Nginx which is a good bit more configurable than IIS. There are also services that you can route your traffic through like CloudFlare, which I believe just uses Nginx in the clusters. Byron Mann Lead Engineer Architect HostMySite.com On Tue, May 27, 2014 at 11:00 AM, John M Bliss bliss.j...@gmail.com wrote: Does anyone have a preferred free / low-cost solution for DDOS prevention for Windows / IIS? Anyone have any good/bad experience with http://www.iis.net/downloads/microsoft/dynamic-ip-restrictions ? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:358682 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: DDOS Prevention
Not to steal the thread, but I remember trying that and something else broke. I want to say the default doc wasn't working correctly, so I couldn't get http://domain.com/ to pass off to CF. May have been something else though. One of these days I'll have to give it another try. Byron Mann Lead Engineer Architect HostMySite.com On Tue, May 27, 2014 at 11:32 AM, Russ Michaels r...@michaels.me.uk wrote: For iis modules that don't work with cf the ususl fix is to get rid of wildcard handler and use regular handler Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 27 May 2014 16:22, Byron Mann byronos...@gmail.com wrote: I had issue attempting to get that IP restrictions module to work with CF 10. Seems as though the request was getting handed off to CF before hitting the IIS module. So it did not seem to work properly at least for me. I didn't put too much effort into it, as our load-balancer actually handles some of this mitigation. Any DDOS of significance would get alerted to our Network Operations team proactively where they usually mitigate the issue at the border routers, thus the LB or servers would never see the traffic. You might look into setting up a software based load balancing solution to handle this. Something like Nginx which is a good bit more configurable than IIS. There are also services that you can route your traffic through like CloudFlare, which I believe just uses Nginx in the clusters. Byron Mann Lead Engineer Architect HostMySite.com On Tue, May 27, 2014 at 11:00 AM, John M Bliss bliss.j...@gmail.com wrote: Does anyone have a preferred free / low-cost solution for DDOS prevention for Windows / IIS? Anyone have any good/bad experience with http://www.iis.net/downloads/microsoft/dynamic-ip-restrictions ? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:358684 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: which is better - cfx_image or cfimage?
I have also seen random issues with CFimage in 8 and 9, where it will not load an image due to image format. Things like the color map used for a jpg. Cfx_image seems to be able to handle most conversions more gracefully. Byron Mann Lead Engineer Architect HostMySite.com On May 19, 2014 11:42 PM, Matthew Smith chedders...@gmail.com wrote: Rather than having the site owner have to create thumbnails for each product, I was planning on having cfimage resize the images as needed. I am having a security issue that support is working on with me. The cfimage only needs to run once so performance is not a huge issue. Looking through the SBA knowledge base, I saw an article on cfx_image. Is this a better solution? My current solution uses a background color that matches the site's, so I am not sure if this is possible with CFX_image. Anyone know? 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:358664 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: security issue with reading file with cfimage read and write
The try catch seems peculiar. If the first CFimage fails and throws an error, things go inside the cfcatch. The first line inside there is the same as the very first, so I would assume you are really getting 2 of the same errors in a row, and not catching the second. I can only see this working, if some code just wrote the original file and is locked on the first try but not the second try when reading the file. Byron Mann Lead Engineer Architect HostMySite.com On May 19, 2014 10:19 PM, Matthew Smith chedders...@gmail.com wrote: /Had it working a couple of times but I think I am having pathing issues here and there. NOt sure where I am off... Any help is appreciated... cftry cfimage action=read name=myImage source=/site_theartoflovingcatsanddogs_com/taolcad_images/products/resize/#qry_allItemsInProductKeyList.largepic1# cfcatch cfimage action=read name=myImage source=/site_theartoflovingcatsanddogs_com/taolcad_images/products/#qry_allItemsInProductKeyList.largepic1# !--- Set the square size of the thumb --- cfset sq_size = 333 !--- Write the result to a file. --- cfset ImageSetAntialiasing(myImage,on) cfset ImageScaleToFit(myImage,sq_size,sq_size) !--- Calculate the x and y position to paste the image --- cfif myImage.width GTE myImage.height cfset x = 0 cfset y = ceiling((myImage.width - myImage.height)/2) cfelse cfset x = ceiling((myImage.height - myImage.width)/2) cfset y = 0 /cfif cfset newimg = ImageNew(,sq_size, sq_size, rgb, c4cba9) cfset ImagePaste(newimg, myImage, x, y) cfset ImageWrite(newimg,/site_theartoflovingcatsanddogs_com/taolcad_images/products/resize/#qry_allItemsInProductKeyList.largepic1#) /cfcatch /cftry ~| 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:358665 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Unable to add text to HTML HEAD tag
Maybe try putting the cfajaximport into the head portion instead of inline elsewhere. Byron Mann Lead Engineer Architect HostMySite.com On Wed, May 7, 2014 at 11:35 AM, John Pullam jpul...@mcleansystems.comwrote: So you suggest going back and rewriting a 50,000 line application in order to resolve the problem? Not a very practical solution, I'm afraid. Does anyone have a more realistic suggestion? ~| 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:358573 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion Looping
Am i missing something obvious. cfoutput cfset t = 1 cfloop condition=t LTE 10 t=#t#BR cfset t++ cfif t GT 10 cfbreak/ /cfif /cfloop cfset w = 1 cfloop condition=1 eq 1 w=#w#BR cfset w++ cfif w GT 10 cfbreak/ /cfif /cfloop cfloop from=1 to=10 index=y y=#y#BR cfset y++ /cfloop cfscript for(x=1; x = 10; x++){ writeOutput(x BR); x++; } writeOutput(x); /cfscript /cfoutput t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 w=1 w=2 w=3 w=4 w=5 w=6 w=7 w=8 w=9 w=10 y=1 y=2 y=3 y=4 y=5 y=6 y=7 y=8 y=9 y=10 1 3 5 7 9 11 Only the last version is working as I would expect. I ran into this attempting to increment an index inside cfloop, so I could skip a few records in an array. I can't believe I've never noticed this, or am I just plain nuts? Byron Mann Lead Engineer Architect HostMySite.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:358394 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Looping
Yes, that last one with x is what I actually want. I'm just surprise the first few versions do not act in the same manner. Byron Mann Lead Engineer Architect HostMySite.com On Thu, Apr 24, 2014 at 12:25 PM, Blake wdavi...@gmail.com wrote: Looks like your incrementing X in the for statement and in the body of the loop ~| 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:358396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Looping
cfloop from=1 to=10 index=x #x#- cfset x = x + 2 /cfloop 1- 2- 3- 4- 5- 6- 7- 8- 9- 10- I would use step in cfloop, however, the increment can be variable from iteration to iteration. Byron Mann Lead Engineer Architect HostMySite.com On Thu, Apr 24, 2014 at 12:32 PM, Blake wdavi...@gmail.com wrote: You are only incrementing the earlier loops by one. Why not do something like cfset y = y+2 On Thu, Apr 24, 2014 at 9:28 AM, Byron Mann byronos...@gmail.com wrote: Yes, that last one with x is what I actually want. I'm just surprise the first few versions do not act in the same manner. Byron Mann Lead Engineer Architect HostMySite.com On Thu, Apr 24, 2014 at 12:25 PM, Blake wdavi...@gmail.com wrote: Looks like your incrementing X in the for statement and in the body of the loop ~| 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:358398 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Looping
OK, me==dah, the first 2 examples I just need to increment by 2 (or any other factor) other than 1. This is what happens without enough coffee. My actual code in use was like the 3rd example, but it is nested inside other loops. I had to break the inner loop in differing steps/increments. Something like this cfloop from=1 to=#arrayLen(ary)# index='x' ... cfloop from=#x# to='#arrayLen(ary)# index='y' cfset x=x+{various value} !-- skip this many now --- Suffice to say, it was easy enough to fix once I modified to a for statement and understood what was going on. Just looking at the code for 2 hours and thinking THIS SHOULD WORK was what got me about it all. I guess in 15 years of CF I've really just never done this or have done by other means. Just seems perplexing that this particular incarnation would act differently. I'll add it to the CF quirky list I have in my head. Thanks everyone for taking a look, ~Byron On Thu, Apr 24, 2014 at 1:49 PM, Andrew Scott andr...@andyscott.id.auwrote: They are all working the way they are intended, but I will look at one in particular as it can catch a lot of people out. cfloop from=1 to=10 index=y y=#y#BR cfset y++ /cfloop When ColdFusion does any looping like this, the y is reset to the actual loop valuem hence making the manual increment mute. If you want it to step in lots of 2 then use the step attribute to do this. As for the first example, what a frigging mess but it does exactly what you are telling it to do. The problem with cfscript is that it is more ESMAC compliant, which means you can increment it when being used in a for loop as you have shown in your last example. Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Fri, Apr 25, 2014 at 2:28 AM, Byron Mann byronos...@gmail.com wrote: Yes, that last one with x is what I actually want. I'm just surprise the first few versions do not act in the same manner. Byron Mann Lead Engineer Architect HostMySite.com On Thu, Apr 24, 2014 at 12:25 PM, Blake wdavi...@gmail.com wrote: Looks like your incrementing X in the for statement and in the body of the loop ~| 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:358406 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Spam management for forms handling
http://www.ubergizmo.com/2014/04/google-develops-algorithm-that-can-decipher-its-own-captchas/ Thought this was interesting in the context of the thread. Byron Mann Lead Engineer Architect HostMySite.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:358378 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: weird issue with utility
It sounds like maybe the first cfhttp call from the client is ending with maybe a 500 error at the production.com URI and not really returning a response to the client. In that instance I can see the first iteration in the client side loop just stalling, while on the end point side, Fusion Reactor thinks the request is done. Do you get output on the client side when just calling the first iteration... cfloop index=i from=0 to=-90 step=-1 cfhttp url=http://production.com/?Date=#DateFormat(DateAdd('d', i, now()), 'm/d/')# cfdump var=#cfhttp# cfbreak /cfloop Byron Mann Lead Engineer Architect HostMySite.com On Tue, Apr 15, 2014 at 3:32 PM, John M Bliss bliss.j...@gmail.com wrote: I have a little utility I run on my dev box which calls data-fetching processes on my production box. Usually works great: cfloop index=i from=0 to=-90 step=-1 cfhttp url=http://production.com/?Date=#DateFormat(DateAdd('d', i, now()), 'm/d/')# /cfloop But now I have it pointed at a different process and here's what happens: 1. I tell utility to go 2. Using Fusion Reactor, I can see that http://production.com/?Date=4/15/2014 has been called and is running on production 3. When, that finishes, http://production.com/?Date=4/14/2014 is *not* called but my utility keeps spinning as if it's still doing its thing Any ideas? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:358337 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Extending Application.CFC
We have a bootloader.cfc file for all common variables in our applications. Each application has different application names, so each app is separate. In the application start we include the bootloader and then override variables as needed. This has worked pretty well pasting all our legacy apps together to make them a bit more cohesive. What is IVR an acronym for anyhow? Byron Mann Lead Engineer Architect HostMySite.com On Apr 11, 2014 12:59 PM, Donnie Carvajal donnie.carva...@transformyx.com wrote: Hi, I have an application with a root application.cfc and a subfolder for IVR access that also has an application.cfc which extends the root application.cfc. There are certain Application variables that I only need in the IVR subfolder, so I added an onApplicationStart method to the subfolder application.cfc. I'm running into an issue in my IVR access indicating that the IVR specific variables are not available. This is because the root application.cfc ran before the sub and the onApplicationStart method in the sub application.cfc did not. Would you suggest putting all application variables in the Root onApplicationStart method or add a check in subfolder onRequest method for variables and call subfolder onApplicationStart if missing? Any best practices I'm missing? Thanks, Donnie ~| 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:358318 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: get cached query result set
Believe, in your scenario, each query version could have a unique cacheID, so, cacheID=idFeb2013, cacheID =idJan2013, ... To retrieve from cache... Jan2013=cacheGet(idJan20013); Feb2013=cacheGet(idFeb2010);... Byron Mann Lead Engineer Architect HostMySite.com On Apr 3, 2014 11:56 AM, John M Bliss bliss.j...@gmail.com wrote: If I cache a query with: cfquery name=recordset result=thisResult datasource=#application.datasource# cachedafter=#CreateDateTime(Year(Now()), Month(Now()), Day(Now()), 5, 0, 0)# cacheID=mycacheID ...is there then a way to use mycacheID to programmatically get cached query result set without actually re-running that same cfquery? (I have a situation where I have a bunch of cached versions of a report for Jan 2013, Feb 2013, etc, and I'm tasked with fetching those reports from the cache and aggregating them into one multi-month report.) -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:358301 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: max heap
Dave, Thanks so much for this 3GB article. I never ever knew about this. We have a ton of Cf8, servers on 2003 still. Literally, those older chassis can weigh alot. Actually, we've P2V'd must of them. Most, if not all are running jrockit, since it was much better than the Sun jvm back then. So, I wouldn't doubt that this is specific to jrockit. Byron Mann Lead Engineer Architect HostMySite.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:358303 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Scheduled Tasks Not Running
I'd also add as a side note, that while you don't have to, you should always use SSL, when using the basic authentication. Byron Mann Lead Engineer Architect HostMySite.com While Ian's post is still applicable and on point, scheduled task URLs do not have to be anonymously accessible. They just have to use Basic Authentication instead of Integrated Windows Authentication (Kerberos, NTLM). ~| 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:358304 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SOT - Navicat Identity Column
Believe this is how Navicat works if the table already exists. I have version 10 and can only set the identity column and other optional values if the table is new and has not been saved yet. Alternately, I would suggest writing SQL to do the task. Also you could download SQL Server Express as it comes with SQL Management Studio, which is much better at managing SQL Server installations and databases. Bonus it's free. https://www.microsoft.com/betaexperience/pd/SQLEXP/enus/ Of course this is all Windows reliant. Byron Mann Lead Engineer Architect HostMySite.com On Tue, Apr 1, 2014 at 7:04 AM, Kevin Parker tras...@internode.on.netwrote: At the risk of sounding a little daft or maybe missing something that is plainly obvious if anyone uses Navicat to design MS SQL tables I'd be grateful for a little help please. I am trying to set an Identity column but all the identity attributes (identity, seeding, incrementing etc.) are greyed out for the column of choice, in fact all columns of any type - have set the column as an int - Navicat help is extremely basic and unhelpful and Googling it wasn't much better. I'm using Navicat Premium v 11 Thank you!! ++ 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:358257 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
returnformat
Is there a better way to determine the return format inside an executing CFC method? Right now, I'm checking for url.returnformat exists and that == to json. Basically I want to overload an existing method that currently returns a query and return a different json format for the query than just serializing the result set. Byron Mann Lead Engineer Architect HostMySite.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:358103 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: returnformat
Your jQuery plugin is exactly what I want to do. Thanks for that. Still would be neat to know if there is another way to access the runtime value of returnformat other than the url scope. Just a curiosity thing at this point. Byron Mann Lead Engineer Architect HostMySite.com On Wed, Mar 26, 2014 at 9:20 AM, Steve 'Cutter' Blades cold.fus...@cutterscrossing.com wrote: Byron, What is it, exactly, that you're trying to do? CF Splendor (in beta now) allows for custom serializers, as well as the more standard name/value record pairings many client side apps need. I'm doing these conversions client-side now, with my serializeCFJSON jQuery plugin (https://github.com/cutterbl/serializeCFJSON). Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://cutterscrossing.com Co-Author Learning Ext JS 3.2 Packt Publishing 2010 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book The best way to predict the future is to help create it On 3/26/2014 8:12 AM, Byron Mann wrote: Is there a better way to determine the return format inside an executing CFC method? Right now, I'm checking for url.returnformat exists and that == to json. Basically I want to overload an existing method that currently returns a query and return a different json format for the query than just serializing the result set. Byron Mann Lead Engineer Architect HostMySite.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:358106 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFC Not Returning JSON properly from an array
The default for the return format for a remote cffunction call is WDDX. Sounds like inside your CFC you are serializing the return value first. So something like return serializeJson(myValue); If the return string in this case is JSON, then your remote call to the CFC should include a returnformat=plain, to return the string as is. Byron Mann Lead Engineer Architect HostMySite.com On Fri, Mar 14, 2014 at 3:26 PM, Rixon Reed ri...@photoeye.com wrote: I have a CFC that I'm trying to return JSON data in a web service.=20 If I do a dump before I return the code to the calling program, the JSON is= fine. However it returns this to the calling program:[\\\n\\t\\n\\t\\t\\= n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\\/portfolio\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\= t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\\/portfolio= \\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\\/portfolio\\n\\t\\n\\= t\\t\\n\\t\\t\\n\\t\\\/portfolio\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\= t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\\/portfolio\\n\\t\\= n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\= t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\= n\\t\\\/portfolio\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= t\\\/portfolio\\n\\t\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\\/category\\n\\t= \\t\\\/category\\n\\t\\\/category\\n\\t\\n\\t\\t\\n\\t\\t\\\/category= \\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\\/portfolio\\n\\t\\t\\n\\t\\t\\\/categor= y\\n\\t\\t\\n\\t\\t\\\/category\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\\/portfo= lio\\n\\t\\t\\n\\t\\t\\\/portfolio\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\t\\= n\\t\\t\\t\\t\\n\\t\\t\\t\\\/portfolio\\n\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\= t\\t\\t\\n\\t\\t\\t\\\/portfolio\\n\\t\\t\\\/category\\n\\t\\t\\n\\t\\t= \\\/portfolio\\n\\t\\\/category\\n\\t\\n\\t\\\/portfolio\\n\\t\\n\\t= \\\/portfolio\\n\\t\\n\\t\\\/portfolio\\n\\\/root\,\\\n\\t\\n\\t\\\= /category\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\\/portfolio\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\= \\/portfolio\\n\\t\\n\\t\\\/category\\n\\t\\n\\t\\\/category\\n\\\/ro= ot\] What am I doing wrong? Thanks in advance. ~| 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:357937 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Default Values for Built-in Function Optional Parameters
I somehow never had occasion to do this using a CF built-in function, but would like to by-pass entering some of the optional parameters and use defaults. Specifically I've created a caching region, and will just be using the defaults for the time-outs. CachePut(id, value, [timeSpan], [idleTime], [region], [throwOnError]); So I'd like to just do something similar to this: CachePut(id=x, value=v, region='myregion'); This doesn't work of course. I also tried, argumentCollection without success. I'm assuming this is just the way life is and will have to do something to just pass the region defaults. cachePut(id, val, CacheGetProperties('myregion').TIMETOIDLESECONDS, CacheGetProperties('myregion').TIMETOLIVESECONDS, 'myregion'); Byron Mann Lead Engineer Architect HostMySite.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:357900 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: array2.equals(array1) how to show difference?
Is it possible there is whitespace appended to some of the array values? Byron Mann Lead Engineer Architect HostMySite.com On Feb 27, 2014 7:32 PM, morchella morchella.delici...@gmail.com wrote: hey guys i have two, 2 dimensional arrays. they have 3 columns. i have used #array2.equals(array1)# to show when they are difference and then just continue with normal logic. but now i have an instance where they say no the don't equal. but for the life of me i cant visually see the difference in the query's i am using cf9 locally and 10 on the server. how can i force the different record(S) to display. thanks a bunch, -m ~| 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:357787 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: creditcard-billing-system
There are services like Maxmind that do fraud screening, which could be done before submitting a transaction to a payment gateway. Basically the service returns a fraud potential score, and you can dictate if it is low enough to perform a transaction. There isn't anything baked-into CF to do this. There may be some CF libraries that do a number check to see if the cc number itself is valid, as this is a common algorithm, but more advanced filtering would be through another service. Byron Mann Lead Engineer Architect HostMySite.com On Feb 20, 2014 8:29 AM, Uwe Degenhardt cf-t...@sdsolutions.de wrote: Hi everybody, I inherited the development of a creditcard-billing system based on ColdfFusion (7/8/9). I have to develop some checks as the following: - IP-blocking - cardnumber-check - blocking of failed cc-number-checks - checking credit card limits - checking of a valid transaction gateway ...and so on. I wonder if there are any coldfusion standard-/check-routines available out there which I can use. I haven't checked ColdFusion Exchange yet, which I am going to do as well. Uwe ~| 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:357718 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: creditcard-billing-system
There are services like Maxmind that do fraud screening, which could be done before submitting a transaction to a payment gateway. Basically the service returns a fraud potential score, and you can dictate if it is low enough to perform a transaction. There isn't anything baked-into CF to do this. There may be some CF libraries that do a number check to see if the cc number itself is valid, as this is a common algorithm, but more advanced filtering would be through another service. Byron Mann Lead Engineer Architect HostMySite.com On Feb 20, 2014 8:29 AM, Uwe Degenhardt cf-t...@sdsolutions.de wrote: Hi everybody, I inherited the development of a creditcard-billing system based on ColdfFusion (7/8/9). I have to develop some checks as the following: - IP-blocking - cardnumber-check - blocking of failed cc-number-checks - checking credit card limits - checking of a valid transaction gateway ...and so on. I wonder if there are any coldfusion standard-/check-routines available out there which I can use. I haven't checked ColdFusion Exchange yet, which I am going to do as well. Uwe ~| 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:357717 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm