Re: Percentages Form Variables
You might also want to consider the shorthand: correctanswers++ rather than correctanswers = correctanswers+1. On Thu, Mar 3, 2011 at 11:11 PM, Azadi Saryev azadi.sar...@gmail.comwrote: Something like this: a) at the top of your action page add: cfset ttlquestions = 5!--- total number of q's in the test --- cfset correctanswers = 0 b) in the table showing answers in your action page add cfset correctanswers = correctanswers+1 to all your cfif blocks like so: cfif Form.Q1 EQ Ans1 img src=Images/Good.gif alt=Correct width=16 height=16 cfset correctanswers = correctanswers+1 cfelse ...[your current code as is here]... /cfif c) at the bottom of your action page show the score: cfoutputYour Score: #round( (correctanswers/ttlquestions)*100, )#%/cfoutput Azadi On 04/03/2011 11:48 , John Eubanks wrote: Anyone know how to calculate a percentage from form variables. I have a simple quiz (five questions) with multiple choice answers. I have the correct answers set using cfset on the processing page. However, I need to run a percentage so the display shows something like: Score: 80%. ~| 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:342744 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Percentages Form Variables
Assuming, of course, that John is on CF8+. Scott On Fri, Mar 4, 2011 at 4:22 AM, Michael Grant mgr...@modus.bz wrote: You might also want to consider the shorthand: correctanswers++ rather than correctanswers = correctanswers+1. -- - Scott Brady http://www.scottbrady.net/ ~| 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:342745 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Percentages Form Variables
oops, typo in the round() function... it should be: #round( (correctanswers/ttlquestions)*100 ) [i had a comma in there which should not be there...] On 04/03/2011 12:11 , Azadi Saryev wrote: Azadi, many, many thanks. Works like a charm. :-) ~| 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:342746 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
stored proc timeout
I have a page with a stored procedure on it. After the stored proc runs, I have a database call to set some variables. The variables aren't getting set in the database occasionally. It also seems that the stored procedure, before the variables are set, times out at occasionally. If a stored procedure times out, should the rest of the script run? I don't know if that's the cause of the stored proc is timing out. Maybe the cf is timing out from the stored proc timing out. I have no access to the server that is having the problem because it's in production. thanks for any information. back to googling. ~| 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:342747 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
I wonder what this says, if anything, about ColdFusion?
I was just completing a short survey from Application Development Trends for their their 2011 Reader Survey. I got to this question... Which of the following languages/tools are currently in use in your enterprise? (Check all that apply.) ...and was very surprised to see everything under the sun listed, except ColdFusion. From PHP, to Oracle, ASP, HTML, XML, etc, etc... and not even and Other space to use where I could input ColdFusion or CFML. I did finally notice, in the next question, which read... Which software development platforms are currently in use in your enterprise? (Check all that apply.) ... and, there listed at top of the list, was Adobe Cold Fusion (yes, spelled with a space). Now, not knowing much about any other platforms, such as ASP and its dependency on a server to run it, I did notice that ASP was listed in the first question I mentioned and Microsoft ASP.NET was also listed in the second question above, CFML or ColdFusion is not listed in both. Isn't MS ASP.NET necessary to use ASP code? And, if so, why wouldn't there be mention of CFML in the first question's possible responses, if ASP is listed in the first and MS.NET in the second? (Hopefully that makes sense...) It seems, that while ColdFusion is seen software development platform, CFML is not, at least of this survey, recognized as a language/tool for development, of a broad range of applications, from desktop to web. It was just very curious that CFML was not even on the list in the first question. Rick ~| 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:342748 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: I wonder what this says, if anything, about ColdFusion?
I was talking to vendor a while back and he made the comment, Wow! ColdFusion? Isn't that old? Click... -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Friday, March 04, 2011 8:39 AM To: cf-talk Subject: I wonder what this says, if anything, about ColdFusion? I was just completing a short survey from Application Development Trends for their their 2011 Reader Survey. I got to this question... Which of the following languages/tools are currently in use in your enterprise? (Check all that apply.) ...and was very surprised to see everything under the sun listed, except ColdFusion. From PHP, to Oracle, ASP, HTML, XML, etc, etc... and not even and Other space to use where I could input ColdFusion or CFML. I did finally notice, in the next question, which read... Which software development platforms are currently in use in your enterprise? (Check all that apply.) ... and, there listed at top of the list, was Adobe Cold Fusion (yes, spelled with a space). Now, not knowing much about any other platforms, such as ASP and its dependency on a server to run it, I did notice that ASP was listed in the first question I mentioned and Microsoft ASP.NET was also listed in the second question above, CFML or ColdFusion is not listed in both. Isn't MS ASP.NET necessary to use ASP code? And, if so, why wouldn't there be mention of CFML in the first question's possible responses, if ASP is listed in the first and MS.NET in the second? (Hopefully that makes sense...) It seems, that while ColdFusion is seen software development platform, CFML is not, at least of this survey, recognized as a language/tool for development, of a broad range of applications, from desktop to web. It was just very curious that CFML was not even on the list in the first question. Rick ~| 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:342749 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: I wonder what this says, if anything, about ColdFusion?
I was just completing a short survey from Application Development Trends for their their 2011 Reader Survey. I got to this question... Which of the following languages/tools are currently in use in your enterprise? (Check all that apply.) ...and was very surprised to see everything under the sun listed, except ColdFusion. From PHP, to Oracle, ASP, HTML, XML, etc, etc... and not even and Other space to use where I could input ColdFusion or CFML. I did finally notice, in the next question, which read... Which software development platforms are currently in use in your enterprise? (Check all that apply.) ... and, there listed at top of the list, was Adobe Cold Fusion (yes, spelled with a space). The people who write these surveys are not developers, and often have a cursory knowledge of the field being surveyed. Inconsistencies and mistakes like this are very common - and not just with CF. So I wouldn't read too much into it. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342750 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Check boxes
Hello all -- I have a form that contains checkboxes which sends multiple record numbers to an action form for processing. For example, it would send: formfield1=ABC formfield2=1,2,3,4,5,6,7 In the database I want to update the formfield1 column to ABC wherever the formfield2 column value is either 1 or 2 or 3 or 4 or 5 or 6 or 7. I've tried a few different ways to do this, but only one record gets updated. Any tips on how I can accomplish this? Scott ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342751 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
update tablename set formfield1 = cfqueryparam value=#form.formfield1# cfsqltype=cf_sql_varchar where formfield2 in cfqueryparam value=#form.formfield2# cfsqltype=cf_sql_integer list=true On Fri, Mar 4, 2011 at 11:01 AM, Scott Williams myscottwilli...@yahoo.comwrote: Hello all -- I have a form that contains checkboxes which sends multiple record numbers to an action form for processing. For example, it would send: formfield1=ABC formfield2=1,2,3,4,5,6,7 In the database I want to update the formfield1 column to ABC wherever the formfield2 column value is either 1 or 2 or 3 or 4 or 5 or 6 or 7. I've tried a few different ways to do this, but only one record gets updated. Any tips on how I can accomplish this? Scott ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342752 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
Are you doing the update via a SQL statement or stored proc? On Fri, Mar 4, 2011 at 11:01 AM, Scott Williams myscottwilli...@yahoo.comwrote: Hello all -- I have a form that contains checkboxes which sends multiple record numbers to an action form for processing. For example, it would send: formfield1=ABC formfield2=1,2,3,4,5,6,7 In the database I want to update the formfield1 column to ABC wherever the formfield2 column value is either 1 or 2 or 3 or 4 or 5 or 6 or 7. I've tried a few different ways to do this, but only one record gets updated. Any tips on how I can accomplish this? Scott ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342753 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
Never mind -- I figured it out. This works: cfquery name=query2 datasource=#dsn# UPDATE aTable SET ColumnA = '#form.var1#' WHERE ColumnB IN (#form.var2#) /cfquery I had tried using IN in my update query except that I didn't include the parentheses. Scott ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342754 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
That is exactly what I was going to suggest. Good job. ~| 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:342755 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
Be sure to add cfqueryparam / to your query. If you want to know why, post a link to your live site, and we can show 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:342756 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
lol On 3/4/2011 12:26 PM, Matt Quackenbush wrote: Be sure to addcfqueryparam / to your query. If you want to know why, post a link to your live site, and we can show 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:342757 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFC arguments, passing large strings
Hello, I have a CFC which does some string parsing to find and replace wildcards. Within the CFC I am calling a method over and over and passing in the entire string as an argument. The method does some magic and returns a result. The string could be a large (like a 2 page document) string and since its being provided as an argument and is not inside an object/struct, I believe its passed by value. Which means, unless I am mistaken, if I call the internal method 100 times, and pass in this large string am I creating a ton of overhead/memory usage? Would I be better off creating a temp structure to hold the string and other arguments (which change with each iteration) and passing that into my method so its passed by reference instead? What do you think? Brook D. ~| 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:342758 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
KickAssVps.com Experiences
Hello again everyone, I'd be curious to hear about your experiences with www.KickAssVPS.com if any of you have a Virtual Private Server with them. I checked them out several times and like the fact that they offer ColdFusion 9 and use Paralells Helm Control Panel for site management and the Virtuozzo Control Panel for managing the server. Both products work very well with screen reading software. Being a screen reader user this is of importance to me. I have had the opportunity to use several Parallels products and found that they all work well with Jaws For Windows Version 12.0. Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue ~| 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:342759 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
re: CFC arguments, passing large strings
My recommendation would be to initialize the CFC with the string as an initial argument, then call the different iterative methods without sending the string over and over: just modify the variable within the CFC after the init. Ex: cfcomponent displayName=stringModder cfset variables.myString = / cffunction name=init access=public cfargument name=myLongString type=string required=true / cfset variables.myString = arguments.myLongString / /cffunction cffunction name=replaceSmartQuotes access=public cfset variables.myString = replaceList(variables.myString, chr(145) , chr(146), ',') / /cffunction cffunction name=replaceLineBreaks access=public cfset variables.myString = replace(variables.myString, chr(13) chr(10), br /, all) / /cffunction /cfcomponent Then in the calling template: cfset stringObj = createObject(component, StringModder).init(form.bigTextValue) / cfset newString = stringObj.replaceSmartQuotes() / cfset newString = stringObj.replaceLineBreaks() / etc ... From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 12:41 PM To: cf-talk cf-talk@houseoffusion.com Subject: CFC arguments, passing large strings Hello, I have a CFC which does some string parsing to find and replace wildcards. Within the CFC I am calling a method over and over and passing in the entire string as an argument. The method does some magic and returns a result. The string could be a large (like a 2 page document) string and since its being provided as an argument and is not inside an object/struct, I believe its passed by value. Which means, unless I am mistaken, if I call the internal method 100 times, and pass in this large string am I creating a ton of overhead/memory usage? Would I be better off creating a temp structure to hold the string and other arguments (which change with each iteration) and passing that into my method so its passed by reference instead? What do you think? Brook D. ~| 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:342760 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check boxes
SET ColumnA = '#form.var1#' WHERE ColumnB IN (#form.var2#) How ever, make sure you check for form.var2 not being empty, because ColumnB IN () causes an error. ~| 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:342761 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFC arguments, passing large strings
I should have mentioned the CFC is stored in the application scope, so I can't do that... Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 9:56 AM To: cf-talk Subject: re: CFC arguments, passing large strings My recommendation would be to initialize the CFC with the string as an initial argument, then call the different iterative methods without sending the string over and over: just modify the variable within the CFC after the init. Ex: cfcomponent displayName=stringModder cfset variables.myString = / cffunction name=init access=public cfargument name=myLongString type=string required=true / cfset variables.myString = arguments.myLongString / /cffunction cffunction name=replaceSmartQuotes access=public cfset variables.myString = replaceList(variables.myString, chr(145) , chr(146), ',') / /cffunction cffunction name=replaceLineBreaks access=public cfset variables.myString = replace(variables.myString, chr(13) chr(10), br /, all) / /cffunction /cfcomponent Then in the calling template: cfset stringObj = createObject(component, StringModder).init(form.bigTextValue) / cfset newString = stringObj.replaceSmartQuotes() / cfset newString = stringObj.replaceLineBreaks() / etc ... From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 12:41 PM To: cf-talk cf-talk@houseoffusion.com Subject: CFC arguments, passing large strings Hello, I have a CFC which does some string parsing to find and replace wildcards. Within the CFC I am calling a method over and over and passing in the entire string as an argument. The method does some magic and returns a result. The string could be a large (like a 2 page document) string and since its being provided as an argument and is not inside an object/struct, I believe its passed by value. Which means, unless I am mistaken, if I call the internal method 100 times, and pass in this large string am I creating a ton of overhead/memory usage? Would I be better off creating a temp structure to hold the string and other arguments (which change with each iteration) and passing that into my method so its passed by reference instead? What do you think? Brook D. ~| 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:342762 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFC arguments, passing large strings
Oh, well, if it's a singleton, then you're going to end up taking up those whacking great chunks of server memory on every request cycle. I would strongly consider moving it out of application scope for that very reason, but I certainly don't know the entire app structure so that's just a shot in the dark. From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 1:18 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: CFC arguments, passing large strings I should have mentioned the CFC is stored in the application scope, so I can't do that... Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 9:56 AM To: cf-talk Subject: re: CFC arguments, passing large strings My recommendation would be to initialize the CFC with the string as an initial argument, then call the different iterative methods without sending the string over and over: just modify the variable within the CFC after the init. Ex: cfcomponent displayName=stringModder cfset variables.myString = / cffunction name=init access=public cfargument name=myLongString type=string required=true / cfset variables.myString = arguments.myLongString / /cffunction cffunction name=replaceSmartQuotes access=public cfset variables.myString = replaceList(variables.myString, chr(145) , chr(146), ',') / /cffunction cffunction name=replaceLineBreaks access=public cfset variables.myString = replace(variables.myString, chr(13) chr(10), br /, all) / /cffunction /cfcomponent Then in the calling template: cfset stringObj = createObject(component, StringModder).init(form.bigTextValue) / cfset newString = stringObj.replaceSmartQuotes() / cfset newString = stringObj.replaceLineBreaks() / etc ... From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 12:41 PM To: cf-talk cf-talk@houseoffusion.com Subject: CFC arguments, passing large strings Hello, I have a CFC which does some string parsing to find and replace wildcards. Within the CFC I am calling a method over and over and passing in the entire string as an argument. The method does some magic and returns a result. The string could be a large (like a 2 page document) string and since its being provided as an argument and is not inside an object/struct, I believe its passed by value. Which means, unless I am mistaken, if I call the internal method 100 times, and pass in this large string am I creating a ton of overhead/memory usage? Would I be better off creating a temp structure to hold the string and other arguments (which change with each iteration) and passing that into my method so its passed by reference instead? What do you think? Brook D. ~| 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:342763 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue My experience with them sucked. My hosting setup was a bit rocky. The support was ok, but aremysitesup.com reported site down messages to me almost every day, multiple times a day. I don't know how Rick is doing well with them, he must've gotten the magical kickassvps account. I use viviotech now. No, it isn't a discount host, but they're rock solid from top to bottom. It's been a pleasure dealing with them for over a year now. Oh, and my aremysitesup has been extremely quiet the entire time. my .02 Will ~| 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:342764 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
I've had a VPS with them for about 2 years and it has been awesome for the most part. A couple of small outages and DDOS attacks but nothing that they weren't able to address in a couple of hours. Every now and then the CF service wouldn't start back up after an update or something so I just wrote a batch file to start the CF service. It fires every couple of minutes just in case. John Blayter Land line: 303.731.3009 Mobile: 303.325.1979 http://www.blayter.com/john/ Denver ColdFusion User Group Manager http://denvercfug.org/ On Fri, Mar 4, 2011 at 10:56 AM, Peter Donahue pdonah...@satx.rr.com wrote: Hello again everyone, I'd be curious to hear about your experiences with www.KickAssVPS.com if any of you have a Virtual Private Server with them. I checked them out several times and like the fact that they offer ColdFusion 9 and use Paralells Helm Control Panel for site management and the Virtuozzo Control Panel for managing the server. Both products work very well with screen reading software. Being a screen reader user this is of importance to me. I have had the opportunity to use several Parallels products and found that they all work well with Jaws For Windows Version 12.0. Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue ~| 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:342765 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFC arguments, passing large strings
But if I wrap it in structure, then it would be passed by reference. Wouldn't this alleviate the memory usage issue? Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 10:24 AM To: cf-talk Subject: RE: CFC arguments, passing large strings Oh, well, if it's a singleton, then you're going to end up taking up those whacking great chunks of server memory on every request cycle. I would strongly consider moving it out of application scope for that very reason, but I certainly don't know the entire app structure so that's just a shot in the dark. From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 1:18 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: CFC arguments, passing large strings I should have mentioned the CFC is stored in the application scope, so I can't do that... Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 9:56 AM To: cf-talk Subject: re: CFC arguments, passing large strings My recommendation would be to initialize the CFC with the string as an initial argument, then call the different iterative methods without sending the string over and over: just modify the variable within the CFC after the init. Ex: cfcomponent displayName=stringModder cfset variables.myString = / cffunction name=init access=public cfargument name=myLongString type=string required=true / cfset variables.myString = arguments.myLongString / /cffunction cffunction name=replaceSmartQuotes access=public cfset variables.myString = replaceList(variables.myString, chr(145) , chr(146), ',') / /cffunction cffunction name=replaceLineBreaks access=public cfset variables.myString = replace(variables.myString, chr(13) chr(10), br /, all) / /cffunction /cfcomponent Then in the calling template: cfset stringObj = createObject(component, StringModder).init(form.bigTextValue) / cfset newString = stringObj.replaceSmartQuotes() / cfset newString = stringObj.replaceLineBreaks() / etc ... From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 12:41 PM To: cf-talk cf-talk@houseoffusion.com Subject: CFC arguments, passing large strings Hello, I have a CFC which does some string parsing to find and replace wildcards. Within the CFC I am calling a method over and over and passing in the entire string as an argument. The method does some magic and returns a result. The string could be a large (like a 2 page document) string and since its being provided as an argument and is not inside an object/struct, I believe its passed by value. Which means, unless I am mistaken, if I call the internal method 100 times, and pass in this large string am I creating a ton of overhead/memory usage? Would I be better off creating a temp structure to hold the string and other arguments (which change with each iteration) and passing that into my method so its passed by reference instead? What do you think? Brook D. ~| 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:342766 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
+1 for KA VPS I had a VPS with them for a couple of years with just a couple of relatively minor hiccups. Someone DDoS'ed their network one time and took them off line along with my VPS. Support was good (excellent for the price) and prompt. Based entirely on my experience I would definitely recommend them. But of course YMMV. IIRC others on this list have had less than stellar experience with KAVPS and would disagree with me, as is expected. I will also recommend VivioTech without a nanosecond of hesitation. I cannot say enough good things about them. http://www.viviotech.net/hosting/vps_hosting.cfm http://www.viviotech.net/services/coldfusion.cfm HTH G! On Fri, Mar 4, 2011 at 12:56 PM, Peter Donahue pdonah...@satx.rr.comwrote: Hello again everyone, I'd be curious to hear about your experiences with www.KickAssVPS.comif any of you have a Virtual Private Server with them. I checked them out several times and like the fact that they offer ColdFusion 9 and use Paralells Helm Control Panel for site management and the Virtuozzo Control Panel for managing the server. Both products work very well with screen reading software. Being a screen reader user this is of importance to me. I have had the opportunity to use several Parallels products and found that they all work well with Jaws For Windows Version 12.0. Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue ~| 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:342767 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFC arguments, passing large strings
Yes, that would work. I suppose it breaks encapsulation, since the scope of the struct is 'known' to the CFC, but it should accomplish what you're after. If you do that, you technically wouldn't even need return values from the CFC, since changes to made to the method argument, would be made to the actual struct variable in the calling template. From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 2:35 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: CFC arguments, passing large strings But if I wrap it in structure, then it would be passed by reference. Wouldn't this alleviate the memory usage issue? Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 10:24 AM To: cf-talk Subject: RE: CFC arguments, passing large strings Oh, well, if it's a singleton, then you're going to end up taking up those whacking great chunks of server memory on every request cycle. I would strongly consider moving it out of application scope for that very reason, but I certainly don't know the entire app structure so that's just a shot in the dark. From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 1:18 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: CFC arguments, passing large strings I should have mentioned the CFC is stored in the application scope, so I can't do that... Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 9:56 AM To: cf-talk Subject: re: CFC arguments, passing large strings My recommendation would be to initialize the CFC with the string as an initial argument, then call the different iterative methods without sending the string over and over: just modify the variable within the CFC after the init. Ex: cfcomponent displayName=stringModder cfset variables.myString = / cffunction name=init access=public cfargument name=myLongString type=string required=true / cfset variables.myString = arguments.myLongString / /cffunction cffunction name=replaceSmartQuotes access=public cfset variables.myString = replaceList(variables.myString, chr(145) , chr(146), ',') / /cffunction cffunction name=replaceLineBreaks access=public cfset variables.myString = replace(variables.myString, chr(13) chr(10), br /, all) / /cffunction /cfcomponent Then in the calling template: cfset stringObj = createObject(component, StringModder).init(form.bigTextValue) / cfset newString = stringObj.replaceSmartQuotes() / cfset newString = stringObj.replaceLineBreaks() / etc ... From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 12:41 PM To: cf-talk cf-talk@houseoffusion.com Subject: CFC arguments, passing large strings Hello, I have a CFC which does some string parsing to find and replace wildcards. Within the CFC I am calling a method over and over and passing in the entire string as an argument. The method does some magic and returns a result. The string could be a large (like a 2 page document) string and since its being provided as an argument and is not inside an object/struct, I believe its passed by value. Which means, unless I am mistaken, if I call the internal method 100 times, and pass in this large string am I creating a ton of overhead/memory usage? Would I be better off creating a temp structure to hold the string and other arguments (which change with each iteration) and passing that into my method so its passed by reference instead? What do you think? Brook D. ~| 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:342768 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
I'd have to agree with John and Gerald: overall, my experience with KAVPS has been generally quite good. There have been occasional minor outages, and a few other quirks - things that will tend to happen with a small hosting service. But they're very flexible, Brian Emerson is very helpful, and they have some great tools included with their accounts that they should (but don't) make enough of a noise about. They do have phone support. It's just not the sort of 24/7, lots of support reps thing you'll get with a larger service. The tools I refer to are things like: - a web interface to handle your own DNS settings. You can create a full set of DNS listings of all types, without the necessity of asking them to make DNS changes for you. Add a new site/domain on your VPS, you can create a new set of DNS listings for it. - Set up your own monitors for your sites - ping, HTML, etc. I doubt that the monitoring comes from outside their network, so if their network has problems, the monitoring probably would, too. But it certainly gives you the ability to monitor issues on your own VPS. - Database backup/restore tool. A web-based interface to any SQL Server database you have with them. While they do their own nightly backups, you can create a backup at any time and download it. You can also upload a backup file and force a restore on their system. I use the first function fairly frequently to refresh the databases on my development server from the live, production databases. That said, you should check VivioTech, too. There is a difference in orientation, in my opinion: KAVPS is more Windows-oriented, VivioTech more Linux. That's oversimplified, of course, but mostly true. It may or may not make a difference in your choice. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560 ~| 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:342769 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
I 2nd the recommendation for viviotech.net! On 3/4/2011 2:42 PM, Gerald Guido wrote: +1 for KA VPS I had a VPS with them for a couple of years with just a couple of relatively minor hiccups. Someone DDoS'ed their network one time and took them off line along with my VPS. Support was good (excellent for the price) and prompt. Based entirely on my experience I would definitely recommend them. But of course YMMV. IIRC others on this list have had less than stellar experience with KAVPS and would disagree with me, as is expected. I will also recommend VivioTech without a nanosecond of hesitation. I cannot say enough good things about them. http://www.viviotech.net/hosting/vps_hosting.cfm http://www.viviotech.net/services/coldfusion.cfm HTH G! On Fri, Mar 4, 2011 at 12:56 PM, Peter Donahuepdonah...@satx.rr.comwrote: Hello again everyone, I'd be curious to hear about your experiences with www.KickAssVPS.comif any of you have a Virtual Private Server with them. I checked them out several times and like the fact that they offer ColdFusion 9 and use Paralells Helm Control Panel for site management and the Virtuozzo Control Panel for managing the server. Both products work very well with screen reading software. Being a screen reader user this is of importance to me. I have had the opportunity to use several Parallels products and found that they all work well with Jaws For Windows Version 12.0. Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue ~| 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:342770 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
+1,000,000,000,000,000,000,000 x 1,000,000,000,000,000,000,000 for http://viviotech.net/. You will *never* find a better company. And it starts at the very top! ~| 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:342771 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: KickAssVps.com Experiences
Yes, my experience, since July 2008 has been very good. Perhaps 3 outages in over 2.5 years. Twice it was very short periods, one from an outside attack and another upgrades they were doing that affected the VPS. A third time, my server was just using too much memory and needed to be refreshed. And, while I typically use their trouble ticket system for problems, I have talked to them over the phone and the number is listed right on the top of the pages. The phone number is part of the header graphic, so that may be why you're not aware of it. I see they've also added live chat to the support options, which I will make use of from now on as my first option. Always had good response and good performance! I manage my server over remote desktop connection, however, and don't use any of the management tools. Rick -Original Message- From: Will Tomlinson [mailto:w...@wtomlinson.com] Sent: Friday, March 04, 2011 1:58 PM To: cf-talk Subject: Re: KickAssVps.com Experiences Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue My experience with them sucked. My hosting setup was a bit rocky. The support was ok, but aremysitesup.com reported site down messages to me almost every day, multiple times a day. I don't know how Rick is doing well with them, he must've gotten the magical kickassvps account. I use viviotech now. No, it isn't a discount host, but they're rock solid from top to bottom. It's been a pleasure dealing with them for over a year now. Oh, and my aremysitesup has been extremely quiet the entire time. my .02 Will ~| 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:342772 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ImageDrawText Fonts
When using ImageDrawText in CF8 on a Windows 2003 server can you create a text image with any font you have installed on the server? Also is there any way to use Google's font api within CF8's image tags? Terry ~| 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:342773 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
I've been with them for a year or so now. Wonderful. MUCH better then hostingatoz.com and worth the money. The staff are knowledgeable and the few times I actually did call the office, they didn't have any attitude at all that I was calling them. Heck, as far as support goes, I emailed them at their 911 email and at 3am their time (20 mins. after I sent the email), the issue got fixed. I should point out.. I don't have a full VPS with them. I just have their web hosting plan. But if I had the extra money, I would upgrade to VPS in a heartbeat. On Fri, Mar 4, 2011 at 9:56 AM, Peter Donahue pdonah...@satx.rr.com wrote: Hello again everyone, I'd be curious to hear about your experiences with www.KickAssVPS.com if any of you have a Virtual Private Server with them. I checked them out several times and like the fact that they offer ColdFusion 9 and use Paralells Helm Control Panel for site management and the Virtuozzo Control Panel for managing the server. Both products work very well with screen reading software. Being a screen reader user this is of importance to me. I have had the opportunity to use several Parallels products and found that they all work well with Jaws For Windows Version 12.0. Beyond this they seem to be a good company although I'm a little squeemish about there not being telephone tech support available. That's the impression I get from viewing their Web Site. Any feedback will be very much appreciated. Peter Donahue ~| 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:342774 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: KickAssVps.com Experiences
I have had great service from KickAssVps As a newbie to vps it has been a challenge setting up/managing the vps but the support has been good Rob Robert J. Voyle, Psy.D. Director, Clergy Leadership Institute For Coaching and Training in Appreciative Inquiry Author: Restoring Hope: Appreciative Strategies to Resolve Grief and Resentment http://www.appreciativeway.com/ 503-647-2378 or 503-647-2382 On 4 Mar 2011 at 11:56, Peter Donahue wrote: Hello again everyone, I'd be curious to hear about your experiences with www.KickAssVPS.com if ~| 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:342775 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm