RE: cfmx and CAPTCHA
Hi All, After having read through everyones posts here is how I actually did it and its currently running today on a site that gets 2000 new registrations a day. BTW this will run on CF 4.5 and up: Create a Java CFX which randomly uses a True Type Font from a zip file and randomly picks 6 characters to be displayed in a JPEG file. It writes the image fiel to the filesystem so you can display it on the page. It also returns (as a coldfusion variable) the six characters that it has chosen to put in the image. eg. You then immediately hash the contents of the variable and place it in a hidden form field Then have an input box for the users to type into And finally on the page the form posts to you compare the hidden form field value 'hashcode' to the hash value of whatever the user entered. If this is the same then they entered the string correctly if( hash( form_ivchars ) EQ form_hashcode ){ success = 1; } And there you have it. I'll have a word with the powers that be and see if I can give the source code out. Please don't get your hopes up though. Adam Hope Development Team Leader Wanadoo UK PLC www.smartgroups.com -Original Message- From: Whittingham, P [mailto:[EMAIL PROTECTED] Sent: 16 June 2004 20:55 To: CF-Talk Subject: cfmx and CAPTCHA Hi All, How would one provide a cfmx-only solution (no .Net) for a 'CAPTCHA' solution. Any ideas would be appreciated. http://www.devx.com/dotnet/Article/21308 TIA, Patrick Whittingham United Space Alliance _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: JAI Image resize gives rubbish images.
Hi Stephen, To increase the quality of the images you need to add a new JPEGEncodeParam: Add this before your ParameterBlock() and before the JAI.create(). JPEGEncodeParam encodeParam = new JPEGEncodeParam(); encodeParam.setQuality(quality); Where quality is a float. I belive 0.0 is crap and 1 is great, can't remember though. Adam. -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 14:28 To: CF-Talk Subject: JAI Image resize gives rubbish images. Reading Java classes and methods and trying to work out how they all work and what I should be using has given me a permanent headache, so I hope someone out there can help. I've used and got working Matt Liota's ImageUtils cfc example/article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/ Only trouble is the thumbnails it generates are of less that great quality. Does anyone know how I could increase the quality of the thumbs it creates?? Its something to do with the Interpolation, but I couldn't work out exactly what or how... :o/ TIA Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: load testing tools/services?
Hi Kelly, I have used www.opensta.org in the past. It's open source, fast, easy to use and very stable. Make sure you read the getting started guide though. Adam. -Original Message- From: Kelly Tetterton [mailto:[EMAIL PROTECTED] Sent: 01 December 2003 21:47 To: CF-Talk Subject: OT: load testing tools/services? What do people use for load testing? Ideally, we'd like to find a service that we could point to a pre-production version of a website, create several scripted scenarios, and test under various conditions. All for a low, low price, of course. Any recommendations? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Complex Data Types in CF Websevice
Hi All, I'm having problems trying to consume a CFMX 6.1 Struct with a .NET SOAP Client. Here is my very simple cfc: Both of the methods work fine and I'm getting data back to my .NET SOAP Client its just that I cannot convert the returned structure content to anything useful. The problem is that in the WSDL generated by CFMX it defines a custom type "Map". I have tried casting this as a hashtable,Idictionary and a host of other things in C# but it doesn't work. Does anybody know what this "Map" object is and how I can decode it? Adam [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfexecute on unix
Hi Hugo, I had the same thought and the same issues with it. Creating a shell script on the fly with the correct permissions and then executing and deleting it afterwards is a PITA compared to using cfexecute. Thanks for the help though, Adam. -Original Message- From: Hugo Ahlenius [mailto:[EMAIL PROTECTED] Sent: 07 November 2003 10:55 To: CF-Talk Subject: RE: cfexecute on unix A workaround that we looked into: You can cfexecute a shell-script with arguments, of where the first argument is the file that you really want to execute, then the script fixes the problem and executes the actual file. It is not a very beautiful solution. (Still waiting for a tech note on this) /Hugo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfexecute on unix
Hi All, We are in the process of migrating our CF5 system to CFMX 6.1 on Solaris and we now need to use cfexecute and pass multiple arguments with spaces into it. Does anyone have a workaround that is more complete than the macromedia suggestion below? In other words does anyone have a working custom cfx to do this or a better/different solution? Thanks, Adam. -Original Message- From: Hiroshi Okugawa [mailto:[EMAIL PROTECTED] Sent: 04 November 2003 20:21 To: CF-Talk Subject: RE: cfexecute on unix Unfortunately cfexecute doesn't work correctly with argument which contains spaces. (bugid 50604) # It's Linux/Unix only. I think you may create custom java cfx for workaround. # use Runtime.getRuntime().exec(String []) instead of Runtime.getRuntime().exec(String) sorry for inconvenience. Thanks, -- Hiroshi [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Novell to acquire SUSE
Redhat are not ending their free distros in fact they are extending the free distro into a new release called Fedora. See http://fedora.redhat.com. I have been eagerly awaiting its first release which was due out today. All Redhat have said is that they will no longer sell the personal version of Redhat Linux and if you want to buy a version it will have to be from the Advanced/Enterprise fold. Adam. -Original Message- From: Dave Carabetta [mailto:[EMAIL PROTECTED] Sent: 04 November 2003 15:23 To: CF-Talk Subject: SOT: Novell to acquire SUSE Thought this was interesting: http://www.suse.com/us/company/press/press_releases/archive03/novell_suse.html With RedHat ending their free distros (well, at least the free versions that won't change every 2 weeks), and now this acquisition, seems like cost-benefit of Linux is slowly dying. While Novell hasn't announced plans to stop providing free versions of SUSE, I don't see why they wouldn't follow RedHat's lead at some point. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX Instances on JRUN
Hi Joe, > I am unable to access the CFMX administrator with different port numbers. > i.e. > http://127.0.0.1:8300/CFIDE/administrator/index.cfm > http://127.0.0.1:8101/CFIDE/administrator/index.cfm When you use the default J2EE install and you tell it to connect to the webserver what happens is that it installs the CFIDE in webroot>/CFIDE/. So you will be able to access /CFIDE/. You will find that it has installed the CFIDE directory structure in: //CFIDE But there will be no .cfm pages in there. What you need to do is take a copy of the CFIDE from webroot>/CFIDE/ and place them in / root>/CFIDE which should be: /opt/jrun4/servers/cfusion-ear/cfusion-war/cfusion/ Now remove the /CFIDE/. You will also find that if you connected your first instance to Apache on installtion that the internal web server will not be running for your first instance. You can start that from: Jrun Admin Console -> -> Services -> WebService Just click the run button. Now you should be able to access both of the coldfusion administrators individually by using: ://CFIDE/administrator/index.cfm You will also need to remove the web connector and re-attach it to the cluster you created in JRUN that points to both of your instances. Remove by using: java -jar wsconfig.jar -uninstall -v Restart apache. Re-connect by editing the cfmxconnectors.sh in /opt/jrun4/bin and changing the line with the server in to cluster: So this: $CF_DIR/runtime/jre/bin/java -Dtrace.ci=1 -jar $CF_DIR/lib/wsconfig.jar -server cfusion -ws apache -dir /usr/local/apache/conf -bin /usr/local/apache/bi n/httpd -script /usr/local/apache/bin/apachectl -map .jsp,.jws -coldfusion -v Becomes: $CF_DIR/runtime/jre/bin/java -Dtrace.ci=1 -jar $CF_DIR/lib/wsconfig.jar -cluster mycluster -ws apache -dir /usr/local/apache/conf -bin /usr/local/apache/bi n/httpd -script /usr/local/apache/bin/apachectl -map .jsp,.jws -coldfusion -v Execute the cfmxconnectors.sh as root and check the /opt/jrun4/ConnectorInstall0.txt for any errors. If that was successful, stop and start all your cfusion server instances from the JRUN admin console and they will find each other. The event logs will show this as they are now clustered. You can now place content in your /usr/local/apache/htdocs directory and have your pages accessed by both instances. Bear in mind that by default JRUN uses sticky sessions so that if you are testing from a single machine/browser you will most likely only see one instance processing anything. You can tun off sticky sessions but I would only recommend this if you do not want to share session data between the instances because when you make a request to one server it stores your session data in ram and when you immediately hit the next server it sync's all your session info. Thus drastically slowing down the server. I hope this help (and I hope I didn't miss anything), Adam Hope. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFC-based GPL web HTML editor
Such a big thread an no-one has mentioned HTMLArea. Check out: http://sourceforge.net/projects/itools-htmlarea/ And here for a demo: Version 3.0 Beta http://dynarch.com/htmlarea/example-fully-loaded.html This works in IE and Mozilla based browsers. It might be worth a look just to port that to a cfc. Adam Hope. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
RE: Please help with apache connector CFMX 6.1
Hi Tom, I had a quick look at mod_proxy however I'd prefer to get the standard connector working. I also had a butchers at the apache logs and there is nothing suspect in either the access_log or the error_log. Adam. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: 03 September 2003 12:32 To: CF-Talk Subject: Re: Please help with apache connector CFMX 6.1 Use mod_proxy instad ? Failing that, anything in the apache logs ? ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Please help with apache connector CFMX 6.1
Hi All, I'm having problems getting Apache to pass the .cfm templates to CFMX. I have run the cfmx-connectors.sh shell script int /opt/jrun4/bin directory and it completes successfully with no errors. It modifed the apache/conf/httpd.conf file successfully as well and the mod_jrun.so file is successfully built in the /opt/jrun4/lib/wsconfig/1 directory. However when I browse /CFIDE/administrator/index.cfm it just displays the encrypted coldfusion template as plain text. It isn't handed over to Cf to process. As far as I can see everything is setup correctly even the jrunserver.store file points at the right port. I can access the administrator fine by going to :8101/cfusion/CFIDE/administrator/index.cfm so the deployment has worked. I just can't access it through apache. System config: CMFX 6.1 deployed as EAR onto bundled JRUN4 Apache 1.3.27 Solaris 8 Adam. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
RE: Search Engines
Hi Ryan, We are accessing the database via jdbc, quering for the columns we need and then indexing the returned data. Adam. -Original Message- From: Ryan [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 15:42 To: CF-Talk Subject: Re: Search Engines Hey, Adam, Thanks for the response! Are you exporting your database content to a flat file and then indexing it or is Lucene able to index right out of the db? Many Thanks, Ryan ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Search Engines
Hi Ryan, We used to use verity but when we started indexing over 3million files it got very slow indeed. We now use lucene to index flat files and database content. If you are a java coder you can write your own cfx interface to lucene and then anything you can access with java you can index with lucene. It seems a daunting task at first but once you get your head around how lucene works its really easy. To give you an idea of speed we index over 90,000 flat files in one index and the search takes about 140ms on a Sun E250. (dual proc 300mhz 1gb ram). The indexing is also far quicker. Adam. -Original Message- From: Ryan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:35 AM To: CF-Talk Subject: Search Engines We currently use the canned verity search features that come with CF 5, but we're outgrowing it. Can anyone give me a few leads on alternative search engines other than K2? I'd like a few options to explore. BTW, we're indexing text out of a database, not pages on the site. Thanks! Ryan ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PCodeRuntimeContextImp::executeSQLTagCFQuery::endTag and other weird errors
Hi Andres, Take a look at this document at MM about Locking Best Practices: http://www.macromedia.com/v1/handlers/index.cfm?id=20370&method=full That should give you a guide on how to implement good locking in your code. If you want to track down an elusive lock then on a development server enable "Automatic Read Locking" for all the scopes in the Coldfusion Administrator Locking section. This performs full write locking checks as well and wiil halt your code when it finds unlocked writes. Adam Hope Development Team Leader, www.smartgroups.com Freeserve.com Plc, PO Box 452, Leeds LS2 7SW > -Original Message- > From: Andres [mailto:[EMAIL PROTECTED]] > Sent: 10 December 2002 16:04 > To: CF-Talk > Subject: RE: PCodeRuntimeContextImp::executeSQLTagCFQuery::endTag and > other weird errors > > > Doug, > Can you provide a link or location where i can find this methodology? > > Thank you! > > Andres > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 12:49 AM > To: CF-Talk > Subject: RE: PCodeRuntimeContextImp::executeSQLTagCFQuery::endTag and > other weird errors > > > yup, seen that. pcode errors, from what I've experienced and > from research, are related to one of the most popular topics > on these lists, locking and shared scopes. We put an app in > production, after a month or so when it got popular and the > usage climed, we saw these pcode errors often. We made sure > every access to session.foo was locked and still got them > under load, but much less often. Once we changed over to the > 'copy session scope to the request scope' methodology, all > the pcode errors went bye bye. > > > These makes me wonder...it seems an app can be written in > such a way as to 'over use' locking/session scope. > > > Doug > > >-Original Message- > >From: Andres [mailto:[EMAIL PROTECTED]] > >Sent: Monday, December 09, 2002 9:31 PM > >To: CF-Talk > >Subject: > PCodeRuntimeContextImp::executeSQLTagCFQuery::endTag and other > >weird errors > > > > > >Hello All, > >I have recently (last 36 or so hours) have began experiencing > >server timeouts, hangs, and have needed to restart CF and IIS > >in all my servers. > > > >Among the many errors i get in the application.log file are > >things such as > >PCodeRuntimeContextImp::executeSQLTagCFQuery::endTag and > >CFTempOnlyForSetVariableNeverUseThisNameInYourCFMLCode122333444 > >45654321 > > > >I started a support event with MM. Their engineer tells me it > >is an issue with shared variable locking. I have began looking > >closely at my code and have found some potential locking > >issues. But the fact is that my code HAS NOT CHANGED since we > >went 5.0 over 5 months ago. No other major changes have taken place. > > > >I am starting to make sure all my app, session, and server > >vars are properly locked, but we host two huge apps (over 1500 > >templates each) so it will take time to go through them. > > > >My question is.. has anyone ever experienced their CF server > >suddenly require such drastic use of cflocking? > > > >Any suggestions or ideas will be much appreciated! > > > >Thanks > > > >Andres > > > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: let me try again: Urgent need for help with CFHTTP again
Hi Mitko, Whenever I have had problems retreiving data from webservers using CFHTTP I have told it to save the files directly to disk instead of using cfhttp.filecontent. http://webserver.com/thefile.txt"; method="GET" path="/tmp/" file="theremotefile.txt" resolveurl="false"> Adam Hope Senior Application Developer, www.smartgroups.com Freeserve.com Plc, PO Box 452, Leeds LS2 7SW __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Anybody using large scale CFMX and MYSQL?
> what's your application requirements? :-) The application is a CF based web community tool with over 1million full users processing about 40million emails a month. > cost of software should not be an argument with professional developers when u earn >more in 2-3 days that the software costs... If you're talking about MySQL, yes its cheap. 1 Oracle license for our platform is a few years salaries for us. I was interested in anybody using CFMX in anger with MySQL to see if it really is scalable. I've talked with people who used MySQL and earlier version of CF who said they had problems because the MySQL driver was not fully multi-threaded. Adam. __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Anybody using large scale CFMX and MYSQL?
Hi All, I am currently re-evaluating our database needs and I was wondering if anybody was using MySQL wired to CFMX for any large scale production environments. If you are, are their any major issues? We also need to talk to the DB via Ansi C and Java. I have looked at the MySQL C++ API and the JDBC Type 4 drivers but I have not heard about their performance or scalability. Any feedback welcome. Adam. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Smartgroups
Hi All, I just received the following mail from another developer here at Freeserve: >-Original Message- >From: project_boo [mailto:[EMAIL PROTECTED]] >Sent: 13 August 2002 15:20 >To: CF-Talk >Subject: Smartgroups >I have heard a comment posted on a bamboo list that smargroups was in >decline and going to be shut down. >Has anybody heard anything else, I have been unable to find any >information relating to this comment. I can assure you that Smartgroups in not in decline. In fact we have been ramping up development to take on the increasing user base. For those that don't know about Smartgroups it is a fully internationalised free community tool developed in Coldfusion. We use Apache's Java based Lucene for our searching as verity just doesn't cut it. Then we have more Java and ANSI C back end stuff doing the rest. Mail me if you have any questions. Adam Hope Senior Applications Developer, www.smartgroups.com Freeserve.com Plc, PO Box 452, Leeds LS2 7SW __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists