Re: Highlighting non-standard ASCII characters?
Bobby, Thank you! This works great! MarieT Something like this? rereplace(str, '([^A-Za-z0-9_\r\s\n!\.\?''\(\),;:])', 'span class=highlight\1/span', 'all') If you donât mind characters like ñ, then just use \w instead of A-Za-z0-9_ rereplace(str, '([^\w\r\s\n!\.\?''\(\),;:])', 'span class=highlight\1/span', 'all') .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337853 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Highlighting non-standard ASCII characters?
Hmmm, although it works that code is not quite correct - there's a few issues with it. If you don?t mind characters like ñ, then just use \w instead of A-Za-z0-9_ This is *incorrect* - in ColdFusion regex, \w does NOT include accented characters. There are other regex engines where it does, but the Apache ORO used by CF doesn't. (Unless that's changed with CF9 anyhow, but I suspect not..) There are several unnecessary escapes since .?() do not need escaping inside classes. (However, if '-' wants to be included (it's not currently) then it should be escaped as '\-' so it's not treated as a range.) By including \s you're not just saying space, you're *also* including \r and \n and \t and \v. So either just use a literal space (to avoid tabs) or to allow tabs don't specify the \r and \n since they're just adding noise. [^\w\r \n!.?''(),;:] or [^\w\s!.?''(),;:] Outside of the character class, the outer group is redundant - regex already captures the match to \0 so just do: rereplace( str , '[^\w\r \n!.?''(),;:]' , 'span class=highlight\0/span' , 'all' ) And finally, one more optimisation - to avoid a long series of HTML spans, just add a + to collect multiple characters together: rereplace( str , '[^\w\r \n!.?''(),;:]+' , 'span class=highlight\0/span' , 'all' ) Hope this helps. :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337854 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
I went to go take a look at it, and got to the download page... Apparently I have to sign an SLA and NDA to download it? Screw that. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337855 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Smartertools (was Looking for the right SMTP server)
My argument was over a reseller account I was dealing with Jeffrey J. Hardy, Vice President of Business Operations He was Argumentative, insulting, accused me of fraudulent activity and criminal intent and told blatant lies to myself and the other party involved trying to play us off against each other. Now I tend to give as good as I get SO I then of course said I no longer wanted anything more to do with Smartertools or their products, which is a shame as I think their products are good. Obviously I never expected to hear anything more on the subject, but have since heard from colleagues and other partners that they have had problems with Smartertools refusing to do business with them simply because they were associated with my company in some way. So don't upset Jeff hardy or he will go after your friends, your family and anyone that knows you LOL Russ -Original Message- From: Al Musella, DPM [mailto:muse...@virtualtrials.com] Sent: 05 October 2010 02:36 To: cf-talk Subject: Re: Looking for the right SMTP server I am glad you said that. I thought it was me. I never had a software company be as rude to me as smartertools. They detected that I had the software running on 2 servers and sent me a really rude invoice asking me to pay for the second licence. I wrote back explaining how the licence specifically allows me to use the software for free as a backup mail server as long as it has no real email boxes. (I only have a total of about 10 mail boxes on the first instance! None on the second.) They said they would look into it. 6 months later, I get another nasty letter saying I am in violation. I call them and explain the situation and they said ok.. I am right, ignore it. Then it happened again. Now I just ignore it. I also stopped upgrading and am moving most of the mailboxes to google. At 08:44 PM 9/29/2010, you wrote: Smartertools used to be great, but the bigger they got the more arrogant they got and the higher their prices got and the worse the customer service got, you wouldn't believe how rude they are. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337856 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
Ah, free as in beer but not free as in speech. Yeah, I'll stick to FOSS or pay for a commercial license, thanks. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 5 October 2010 18:04, Peter Boughton bought...@gmail.com wrote: I went to go take a look at it, and got to the download page... Apparently I have to sign an SLA and NDA to download it? Screw that. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337857 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFMAP and the no longer needed api key
Since version 3 no longer requires an API key for the Google Maps API, does anyone know a way around CF's restriction of needing one for using cfmap? My guess is that CF doesn't use the version 3 API anyway, so you'd still need a key. 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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337858 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFMAP and the no longer needed api key
CF definitely uses V2. You can see it in the JS libraries requested. You can always just use Google Maps naked - I did for the first time last weekend: http://www.coldfusionjedi.com/index.cfm/2010/10/2/Centering-a-map-when-you-dont-know-where-to-center-it On Tue, Oct 5, 2010 at 9:02 AM, Dave Watts dwa...@figleaf.com wrote: Since version 3 no longer requires an API key for the Google Maps API, does anyone know a way around CF's restriction of needing one for using cfmap? My guess is that CF doesn't use the version 3 API anyway, so you'd still need a key. 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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337859 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFMAP and the no longer needed api key
I will be taking the naked approach...I was just hoping that there was a way around it as the tag is SO much easier. Most of the work i have done with Google Maps has been through the API...I was just hoping to be able to take advantage of the tag...oh well ;-) The API approach is pretty simple to use, so no big deal. Thanks guys! Eric On Tue, Oct 5, 2010 at 10:32 AM, Raymond Camden rcam...@gmail.com wrote: CF definitely uses V2. You can see it in the JS libraries requested. You can always just use Google Maps naked - I did for the first time last weekend: http://www.coldfusionjedi.com/index.cfm/2010/10/2/Centering-a-map-when-you-dont-know-where-to-center-it On Tue, Oct 5, 2010 at 9:02 AM, Dave Watts dwa...@figleaf.com wrote: Since version 3 no longer requires an API key for the Google Maps API, does anyone know a way around CF's restriction of needing one for using cfmap? My guess is that CF doesn't use the version 3 API anyway, so you'd still need a key. 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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337860 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Image button in a cfwindow doesn't pass coordinates
Normally when you click on an image button inside a CFFORM, the coordinates are passed to the form processor. This is a simple way to support multiple buttons from a single form because you can use the presence of a coordinate to tell you which button was pressed. I couldn't figure out why this wasn't working inside a CFWINDOW and eventually I stripped out all the extraneous code until I discovered that when the CFFORM is inside a CFWINDOW, it no longer passes the coordinates. Is that documented? Can anyone comment on that situation? If anyone wants to play around with it, my test program is in 2 pieces below, the page that opens the CFWINDOW followed by the CFWINDOW code which dumps the FORM fields. TestImageButton.cfm: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html head meta http-equiv=Content-Type content=text/html; charset=utf-8 titleUntitled Document/title /head body pa href=javascript:ColdFusion.Window.show('EventUpdate');ColdFusion.navigate('TestImageButton2.cfm','EventUpdate'); Click here to open the window/a/p cfwindow name=EventUpdate modal=true resizable=false title=Test width=550 height=550 x=500 y=150 bodyStyle=font-size:12px; font-family: verdana; background-color: ##dcefd2; color: black; text-align: left; headerStyle=font-size:13px; font-weight:bold; font-family:Verdana; color: white; text-align:left; cfajaximport tags=cfform, cfwindow scriptsrc=/CFIDE/scripts /cfwindow /body /html TestImageButton2.cfm: cfdump var=#FORM# cfform cfinput name=Comment size=75 required=no / INPUT TYPE=IMAGE NAME=Save SRC=Buttons/MSave.png INPUT TYPE=IMAGE NAME=Delete SRC=Buttons/MDelete.png /cfform ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337861 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
Thanks for the feedback. If you don't mind saying more, I'd like to followup with you off-list. Everything has a license these days, even FOSS. Most just drop it in the download folder with ...by using this software you agree to the terms of this license... that you may or may not see. I wanted to be up-front, and my lawyers pushed for a checkbox, so I'm curious to know a little more about why you object. Or anyone else, for that matter. My personal email is below, since this is technically not CF-related. Peter Oliver-Krueger President, MillionMunkeys LLC MillionMunkeys: Your Architect-in-a-Box! E: p...@millionmunkeys.net P: 1-530-MUN-KEYS (1-530-686-5397) W: http://www.millionmunkeys.net/ On Oct 5, 2010, at 6:04 AM, Peter Boughton wrote: I went to go take a look at it, and got to the download page... Apparently I have to sign an SLA and NDA to download it? Screw that. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337862 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
Can software still be 'open source' if you need to agree to a non-disclosure agreement before downloading it? Seems like a contradiction there. On Mon, Oct 4, 2010 at 5:08 PM, Pete Oliver-Krueger p...@millionmunkeys.net wrote: Good day, CFers, I'm looking for beta testers for a new framework. We've been using it with MillionMunkeys sites for the past year, but now we want to make it available to the entire CF community as a free download, and see if it helps others as much as it helps us, plus how the community could make it grow. The usual question is Why another framework? Well, the short answer is that we do a lot of prototyping at MillionMunkeys and we needed something that facilitated faster edits and was more flexible, but still retained the full power of a framework all the way to the end of the product lifecycle. I'll stop there, so as not to take up more space on the list. If you want to know more, visit: http://millionmunkeys.net/TrafficMunkey/ For the more advanced: TrafficMunkey is written using Property-Invocation (Pi) Programming, which is like Implicit-Invocation (as in the II of Mach-II), but centered around properties instead of events. I would love to get feedback on this approach if you're curious about trying out a new approach to Object-Oriented programming. Pi Programming is laid out in more detail here: http://millionmunkeys.net/PiMunkey/ Thanks for your time, Peter Oliver-Krueger http://www.millionmunkeys.net/ If you take a million programmers and put them in front of a million computers you get ... MillionMunkeys Software! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337863 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
You can freely use and redistribute the code, just don't tell anyone where you got it. ;) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Scott Stroz wrote: Can software still be 'open source' if you need to agree to a non-disclosure agreement before downloading it? Seems like a contradiction there. On Mon, Oct 4, 2010 at 5:08 PM, Pete Oliver-Krueger p...@millionmunkeys.net wrote: Good day, CFers, I'm looking for beta testers for a new framework. We've been using it with MillionMunkeys sites for the past year, but now we want to make it available to the entire CF community as a free download, and see if it helps others as much as it helps us, plus how the community could make it grow. The usual question is Why another framework? Well, the short answer is that we do a lot of prototyping at MillionMunkeys and we needed something that facilitated faster edits and was more flexible, but still retained the full power of a framework all the way to the end of the product lifecycle. I'll stop there, so as not to take up more space on the list. If you want to know more, visit: http://millionmunkeys.net/TrafficMunkey/ For the more advanced: TrafficMunkey is written using Property-Invocation (Pi) Programming, which is like Implicit-Invocation (as in the II of Mach-II), but centered around properties instead of events. I would love to get feedback on this approach if you're curious about trying out a new approach to Object-Oriented programming. Pi Programming is laid out in more detail here: http://millionmunkeys.net/PiMunkey/ Thanks for your time, Peter Oliver-Krueger http://www.millionmunkeys.net/ If you take a million programmers and put them in front of a million computers you get ... MillionMunkeys Software! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337864 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
On Oct 5, 2010, at 9:40 AM, James Holmes wrote: Ah, free as in beer but not free as in speech. Yeah, I'll stick to FOSS or pay for a commercial license, thanks. Actually - to clarify - my company's philosophy is that we split out a percentage of the profits to pay contributors to the free software projects. Just because the product is no-cost doesn't mean their contributions don't have a value. The only way I can track that is by having a central repository. Peter Oliver-Krueger President, MillionMunkeys LLC If you take a million programmers and put them in front of a million computers you get ... MillionMunkeys Software! E: p...@millionmunkeys.net P: 1-530-MUN-KEYS (1-530-686-5397) W: http://www.millionmunkeys.net/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337865 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
You know what, my bad. You never said it was 'open source' merely that it was 'free'. Very big differences there. Carry on. On Tue, Oct 5, 2010 at 12:13 PM, Scott Stroz boyz...@gmail.com wrote: Can software still be 'open source' if you need to agree to a non-disclosure agreement before downloading it? Seems like a contradiction there. On Mon, Oct 4, 2010 at 5:08 PM, Pete Oliver-Krueger p...@millionmunkeys.net wrote: Good day, CFers, I'm looking for beta testers for a new framework. We've been using it with MillionMunkeys sites for the past year, but now we want to make it available to the entire CF community as a free download, and see if it helps others as much as it helps us, plus how the community could make it grow. The usual question is Why another framework? Well, the short answer is that we do a lot of prototyping at MillionMunkeys and we needed something that facilitated faster edits and was more flexible, but still retained the full power of a framework all the way to the end of the product lifecycle. I'll stop there, so as not to take up more space on the list. If you want to know more, visit: http://millionmunkeys.net/TrafficMunkey/ For the more advanced: TrafficMunkey is written using Property-Invocation (Pi) Programming, which is like Implicit-Invocation (as in the II of Mach-II), but centered around properties instead of events. I would love to get feedback on this approach if you're curious about trying out a new approach to Object-Oriented programming. Pi Programming is laid out in more detail here: http://millionmunkeys.net/PiMunkey/ Thanks for your time, Peter Oliver-Krueger http://www.millionmunkeys.net/ If you take a million programmers and put them in front of a million computers you get ... MillionMunkeys Software! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337866 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF9 Paused Scheduled Tasks Still Running
I've got about 20 scheduled tasks set up in a CF9 installation, and I have every single one of them PAUSED. Yes, the second icon from the left in the Actions column of the Scheduled Tasks page in CF Admin shows as a green light document, with the title (tool tip) of Resume Scheduled Task for every task. These tasks are definitely PAUSED. Yet the Last Run is continually updating with a new date/time at every interval specified by the task settings. Now, I have most of these tasks set up to save output to a file, and those files are not being created, so that leads me to believe that these tasks are indeed NOT running, contrary to what the date/times in the Last Run column is telling me. Is this a known bug? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337867 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
Are you paying for beta testing? If so, then true. It's acceptable to have an NDA. But your post came off as someone who wants to have the community help beta test for free. In that case, IMHO, it should be open source and therefore, open to people to talk about. Then again, that's just my personal opinion. On Tue, Oct 5, 2010 at 9:09 AM, Pete Oliver-Krueger p...@millionmunkeys.net wrote: Thanks for the feedback. If you don't mind saying more, I'd like to followup with you off-list. Everything has a license these days, even FOSS. Most just drop it in the download folder with ...by using this software you agree to the terms of this license... that you may or may not see. I wanted to be up-front, and my lawyers pushed for a checkbox, so I'm curious to know a little more about why you object. Or anyone else, for that matter. My personal email is below, since this is technically not CF-related. Peter Oliver-Krueger President, MillionMunkeys LLC MillionMunkeys: Your Architect-in-a-Box! E: p...@millionmunkeys.net P: 1-530-MUN-KEYS (1-530-686-5397) W: http://www.millionmunkeys.net/ On Oct 5, 2010, at 6:04 AM, Peter Boughton wrote: I went to go take a look at it, and got to the download page... Apparently I have to sign an SLA and NDA to download it? Screw that. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337868 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
Are you paying for beta testing? If so, then true. It's acceptable to have an NDA. But your post came off as someone who wants to have the community help beta test for free. In that case, IMHO, it should be open source and therefore, open to people to talk about. Then again, that's just my personal opinion. Adobe would appear to disagree with you. They require an NDA for private betas, and they don't pay me anything to beta-test their software. This includes software that they later release as free, or even open-source. 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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337869 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFMAP and the no longer needed api key
+1 on using the API. I have written several maps this way, and the developer community is VERY supportive and helpful when you hit snags. The only trouble I've had with that community is that they require you to post a publicly accessible version of your map before they'll even look at your question. Personally I develop a lot of stuff in an Intranet, so posting my stuff publicly is not always easy. But other than that, the gmaps community is awesome. On Tue, Oct 5, 2010 at 8:38 AM, Eric Roberts ow...@threeravensconsulting.com wrote: I will be taking the naked approach...I was just hoping that there was a way around it as the tag is SO much easier. Most of the work i have done with Google Maps has been through the API...I was just hoping to be able to take advantage of the tag...oh well ;-) The API approach is pretty simple to use, so no big deal. Thanks guys! Eric On Tue, Oct 5, 2010 at 10:32 AM, Raymond Camden rcam...@gmail.com wrote: CF definitely uses V2. You can see it in the JS libraries requested. You can always just use Google Maps naked - I did for the first time last weekend: http://www.coldfusionjedi.com/index.cfm/2010/10/2/Centering-a-map-when-you-dont-know-where-to-center-it On Tue, Oct 5, 2010 at 9:02 AM, Dave Watts dwa...@figleaf.com wrote: Since version 3 no longer requires an API key for the Google Maps API, does anyone know a way around CF's restriction of needing one for using cfmap? My guess is that CF doesn't use the version 3 API anyway, so you'd still need a key. 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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337870 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFMAP and the no longer needed api key
You are right Jacob...they are a very helpful community. I am blessed to be part of 2 very helpful communities. I wish all the other lists were as helpful as Google maps and cf-talk. Eric On Tue, Oct 5, 2010 at 1:17 PM, Jacob Munson yacoub...@gmail.com wrote: +1 on using the API. I have written several maps this way, and the developer community is VERY supportive and helpful when you hit snags. The only trouble I've had with that community is that they require you to post a publicly accessible version of your map before they'll even look at your question. Personally I develop a lot of stuff in an Intranet, so posting my stuff publicly is not always easy. But other than that, the gmaps community is awesome. On Tue, Oct 5, 2010 at 8:38 AM, Eric Roberts ow...@threeravensconsulting.com wrote: I will be taking the naked approach...I was just hoping that there was a way around it as the tag is SO much easier. Most of the work i have done with Google Maps has been through the API...I was just hoping to be able to take advantage of the tag...oh well ;-) The API approach is pretty simple to use, so no big deal. Thanks guys! Eric On Tue, Oct 5, 2010 at 10:32 AM, Raymond Camden rcam...@gmail.com wrote: CF definitely uses V2. You can see it in the JS libraries requested. You can always just use Google Maps naked - I did for the first time last weekend: http://www.coldfusionjedi.com/index.cfm/2010/10/2/Centering-a-map-when-you-dont-know-where-to-center-it On Tue, Oct 5, 2010 at 9:02 AM, Dave Watts dwa...@figleaf.com wrote: Since version 3 no longer requires an API key for the Google Maps API, does anyone know a way around CF's restriction of needing one for using cfmap? My guess is that CF doesn't use the version 3 API anyway, so you'd still need a key. 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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337871 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF9 Paused Scheduled Tasks Still Running
I'm not totally sure, but I do notice that when I restart my CF server, there is an entry for the scheduled task in the log stating that it is paused. Could it be that that date updates every time the CF Server tries to run (on its scheduled time) but doesn't actually run it. Or maybe instead of trying to run it, every time it checks the jobs to see if they are runnable it updates. Again, I have no idea, just some possible suggestions. Steve -Original Message- From: Christopher Watson [mailto:skyg...@gmail.com] Sent: Tuesday, October 05, 2010 12:44 PM To: cf-talk Subject: CF9 Paused Scheduled Tasks Still Running I've got about 20 scheduled tasks set up in a CF9 installation, and I have every single one of them PAUSED. Yes, the second icon from the left in the Actions column of the Scheduled Tasks page in CF Admin shows as a green light document, with the title (tool tip) of Resume Scheduled Task for every task. These tasks are definitely PAUSED. Yet the Last Run is continually updating with a new date/time at every interval specified by the task settings. Now, I have most of these tasks set up to save output to a file, and those files are not being created, so that leads me to believe that these tasks are indeed NOT running, contrary to what the date/times in the Last Run column is telling me. Is this a known bug? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337872 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to point to a Directory?
IE definitely used to pass the full path... we created a feature based on it where someone high level could configure links to documents that existed somewhere on the users network... //machine/path/path/filename.extension Then users using the application could open the files on their local machines IF they were logged in on a machine with rights to read the file. Some installations even had their users update the files and resave them in the location. Now that capability is gone gone gone and we will need to re-engineer it. Funny how we have not heard complaints... just stumbled across the failure while trying to build a feature using the now missing capability :-( So maybe AIR it is... or other :-) On Mon, Oct 4, 2010 at 6:35 PM, Dave Watts dwa...@figleaf.com wrote: agh! Just noticed that techniques developed to capture the network path no longer work... c:/fakepath Expect that is because of a security upgrade that has occurred with browsers in the last few years... as hinted at by Dave Watts when he said... not possible. To the best of my knowledge, browsers never sent the local path to the file that's uploaded. It would be an information leakage vulnerability if they did - it's none of the web site's business where I store files locally. 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 onsit ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337873 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
Pete, Kudos for sharing your framework with the wider community, but I think your SLA and NDA are going to negatively impact it's adoption and growth. I've unfortunately become quite apt at reading agreements like these and a few items have jumped out at me. 2.1 Licensor hereby grants to Licensee a nonexclusive, nontransferable and non-perpetual limited license to use the Software within its own facilities and as part of Licensee's own business, in accordance with the terms of this Agreement. This license shall commence on the latest date of the execution of this Agreement. The *non-perpetual* part raises a red flag. You are saying that the Licensee is free to build software that includes TraffiMunkey, but at any time that right might expire. Obviously, that's pretty scary to anyone who would want to deploy this software for more than 1 year (the term of the SLA). *2.2 Primary Copy of Software.* This license allows the Software to be installed on any number of computers/servers and at any locations administered by the Licensee, provided that the provisions in Section 4 regarding confidentiality are fully enforced. Licensee may temporarily transfer the Software to back-up computer equipment if the original computer equipment is inoperative. Here you prevent a developer from distributing an application that include TrafficMunkey. For example, if I was to build a blogging application, I wouldn't be able to distribute it to end users (since it would be deployed to locations not administered by the Licensee). Beyond COTS software, this also prevents any application that include TrafficMunkey from being stored on RIAForge, GitHub or any other publicly accessible repository. 3.4 Licensee shall not comingle the Software with any in-house or third party open source software on Licensee's system and/or server. Licensee must restrict all adaptations within their environment to the designated adaptation points. This one is a bit confusing and I'm surprised a lawyer used the word co-mingle, because it's very vague (and missing a hyphen). This basically says, if there is a directory with TrafficMunkey code in it (C:\TrafficMunkey), you cannot put any other code in the same directory. Since the definition of co-mingle so vague, it could also mean that you couldn't store code at a higher-level (C:\). Who is to say that C:\TrafficMunkey and C:\ are not 'co-mingled'. Why explicitly call out open source software? Section 3.4 is nullified if the developer claims the code as proprietary or closed-source. 3.5 Licensee is put on notice that the Software includes embedded trade secrets owned by Licensor and that Paragraph 4.3 of this Agreement shall strictly apply at all times. Furthermore, Licensee must insure that the strict rules of Paragraph 4.3 of this Agreement shall apply in any of Licensee's relationships with third parties. I honestly don't think this can stand up in court. In my opinion something ceases to be a trade secret when it's openly shared. It's the defining difference between a patent and a trade secret. You patent an idea that you plan to share and protect, you don't share secrets. Any lawyer will tell you, don't put it into the agreement if you don't think you can defend it. 4 4. CONFIDENTIAL MATERIAL I don't mean to be rude, but this entire section is really bizarre. Most developers, consultants and business do not employ security practices around software and documents. Asking people to stamp CDs, secure code and have their employees sign confidentiality agreements is too much. Furthermore, how do you plan to market and drive adoption for this framework if you prevent anyone from talking about it? This section excludes the possibility of user groups talks, conference sessions, and even a mailing list devoted to the framework. 5.1 Licensee shall pay to Licensor pursuant to the terms set forth in Schedule A of this Agreement for Licensee's right to use the Software, as consideration for this Agreement, and prior to Licensor's conveyance to Licensee of the right to use Licensor's Software. Schedule A says the software is offered free of charge, but 5.1 says the right to use the software requires the Licensor be paid. It's very confusing. As the language stands, it would seem that the framework is *not*free. I don't think that is what you intended. Schedule A: TrafficMunkey, which includes, among other components, SiteMunkey, PageMunkey, LinkMunkey, PiMunkey, and PiComponent, are offered free of charge. Licensee is allowed to make modifications to the Software for adaptation of the Software to its own environment. Section 3 of this Agreement provides the proper ways to effectuate this. However, Licensee is *absolutely prohibited* from distributing any changes and modifications it makes, except back to MillionMunkeys® LLC, whereupon MillionMunkeys® LLC will make the changes available to others. The last line is a big liability for you. If changes are submitted back to MillonMunkeys,
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
True. I've signed NDAs for a lot of private betas. On Tue, Oct 5, 2010 at 10:11 AM, Dave Watts dwa...@figleaf.com wrote: Adobe would appear to disagree with you. They require an NDA for private betas, and they don't pay me anything to beta-test their software. This includes software that they later release as free, or even open-source. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337875 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfgrid dynamic row colour
Hi i have a grid that displays a date field. Im looking some help in changing the colour of the row if the date is less than 2 weeks away?? also im using cf9 Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337876 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Any way to prevent storing methods inside of an array
I have a cfc that gets instantiated and then stored in an array. I have a bunch of different objects (arrays, queries, structures, etc) in the cfc which all gets used but because of the way I am storing them, the methods can be called and I want to prevent that. So here is an example of my issue: Animal.cfc Cat.cfc extends Animal.cfc Cat.cfc: this.name=Kitty; //instance vars go here function init(id){ this.id=arguments.id //setters go here return this; } function meow(){ writeoutput(meow); } So now I am going to store the cats catsArray = []; for(i=1;i lte cats.recordcount;i++){ cat = createobject(component,cat.cfc).init(cats.id[i]); //method to get structure here? catsArray[i] = cat; } Now if you dump the array, you get all of the stuff in cat and animal but you also get the methods to kill cat, feed cat and all. There must be a way to only get the structure with members and not the option to call the cfc methods. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337877 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
What you want is a serialized form of your CFC. You need to write a method, perhaps called serialization, or maybe toStruct(), that returns a struct containing the data you want. On Tue, Oct 5, 2010 at 4:12 PM, Tony Bentley cascadefreehee...@gmail.com wrote: I have a cfc that gets instantiated and then stored in an array. I have a bunch of different objects (arrays, queries, structures, etc) in the cfc which all gets used but because of the way I am storing them, the methods can be called and I want to prevent that. So here is an example of my issue: Animal.cfc Cat.cfc extends Animal.cfc Cat.cfc: this.name=Kitty; //instance vars go here function init(id){ this.id=arguments.id //setters go here return this; } function meow(){ writeoutput(meow); } So now I am going to store the cats catsArray = []; for(i=1;i lte cats.recordcount;i++){ cat = createobject(component,cat.cfc).init(cats.id[i]); //method to get structure here? catsArray[i] = cat; } Now if you dump the array, you get all of the stuff in cat and animal but you also get the methods to kill cat, feed cat and all. There must be a way to only get the structure with members and not the option to call the cfc methods. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337878 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
I was hoping to shortcut the process of resetting the 'this' scope to a different scope for the sake of saving time. So you're saying that the only way is to specifically call on the structure members? returnObject = StructNew(); returnObject.id = this.id; returnObject.name = this.name; return returnObject; There must be a better way than a new method than resetting the structure... perhaps using the variables scope instead of the this scope? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337879 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
I don't think I am actually understanding the question at hand, but hopefully this will at least help you out. First of all, I would strongly discourage anyone from using the this scope of the CFC. There are a variety of reasons for that recommendation, but chief among them is the ability to access and change the instance data from outside of the object. Instead, you will want to use the variables scope, and have getX() and setX() methods to access/change the instance data. Now then, if you are wanting a struct representing the instance data, then you would create a getMemento() method to return that, which would look something like the following: public struct function getMemento() { // duplicate it so the internal data cannot be changed outside of the object return duplicate(variables); } These are just general guidelines and may/should change based upon your actual needs. HTH ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337880 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
Matt, do you know of a good rundown on the difference between This and Variables scope in a CFC? I have a basic understanding of it but it is always been something I wanted to make sure I understood the fine distinctions in, kind of like the difference between var scoped variables and the local scope in CF9. Cheers, Judah On Tue, Oct 5, 2010 at 3:00 PM, Matt Quackenbush quackfu...@gmail.com wrote: I don't think I am actually understanding the question at hand, but hopefully this will at least help you out. First of all, I would strongly discourage anyone from using the this scope of the CFC. There are a variety of reasons for that recommendation, but chief among them is the ability to access and change the instance data from outside of the object. Instead, you will want to use the variables scope, and have getX() and setX() methods to access/change the instance data. Now then, if you are wanting a struct representing the instance data, then you would create a getMemento() method to return that, which would look something like the following: public struct function getMemento() { // duplicate it so the internal data cannot be changed outside of the object return duplicate(variables); } These are just general guidelines and may/should change based upon your actual needs. HTH ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337881 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF9 Paused Scheduled Tasks Still Running
I think the tasks are still polled to see if they need to run or not. That is probably what is updating the date. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Christopher Watson [mailto:skyg...@gmail.com] Sent: Tuesday, October 05, 2010 12:44 PM To: cf-talk Subject: CF9 Paused Scheduled Tasks Still Running I've got about 20 scheduled tasks set up in a CF9 installation, and I have every single one of them PAUSED. Yes, the second icon from the left in the Actions column of the Scheduled Tasks page in CF Admin shows as a green light document, with the title (tool tip) of Resume Scheduled Task for every task. These tasks are definitely PAUSED. Yet the Last Run is continually updating with a new date/time at every interval specified by the task settings. Now, I have most of these tasks set up to save output to a file, and those files are not being created, so that leads me to believe that these tasks are indeed NOT running, contrary to what the date/times in the Last Run column is telling me. Is this a known bug? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337882 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Highlighting non-standard ASCII characters?
Much, much cleaner. (if it works) I always forget about not needing to escape characters inside classes. Lately, I don't get as much regex exercise as I used to. As for the ñ, I thought it was odd since the docs say \w is the equivalent of A-Za-z0-9_, yet when I use \w, it matched ñ where A-Za-z0-9_ obvsiouly would not. There is a definite difference between the two as far as accented characters go. I was on CF 8 when I briefly tested what I came up with. I just ran yours through the same test with different results. cfsavecontent variable=str aóbcñ...@#$%^*()_+=-\][|}{';:/.?,`~ FG*!^$ /cfsavecontent cfoutput#rereplace(str, '[^\w\r \n!.?''(),;:]+', 'span class=highlight\0/span', 'all')#/cfoutput This will not span the accesnted characters. Replacing \w with A-Za-z0-9_ will. I think the best of both worlds would be [^A-Za-z0-9_\r \n!.?''(),;:]+ That is, assuming the OP wants to highlight the accented chars as well. Thanks for the escape reminder and the the \0 tip. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Peter Boughton [mailto:bought...@gmail.com] Sent: Tuesday, October 05, 2010 5:55 AM To: cf-talk Subject: Re: Highlighting non-standard ASCII characters? Hmmm, although it works that code is not quite correct - there's a few issues with it. If you don?t mind characters like ñ, then just use \w instead of A-Za-z0-9_ This is *incorrect* - in ColdFusion regex, \w does NOT include accented characters. There are other regex engines where it does, but the Apache ORO used by CF doesn't. (Unless that's changed with CF9 anyhow, but I suspect not..) There are several unnecessary escapes since .?() do not need escaping inside classes. (However, if '-' wants to be included (it's not currently) then it should be escaped as '\-' so it's not treated as a range.) By including \s you're not just saying space, you're *also* including \r and \n and \t and \v. So either just use a literal space (to avoid tabs) or to allow tabs don't specify the \r and \n since they're just adding noise. [^\w\r \n!.?''(),;:] or [^\w\s!.?''(),;:] Outside of the character class, the outer group is redundant - regex already captures the match to \0 so just do: rereplace( str , '[^\w\r \n!.?''(),;:]' , 'span class=highlight\0/span' , 'all' ) And finally, one more optimisation - to avoid a long series of HTML spans, just add a + to collect multiple characters together: rereplace( str , '[^\w\r \n!.?''(),;:]+' , 'span class=highlight\0/span' , 'all' ) Hope this helps. :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337883 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
Thanks Matt. I think I understand the difference between the two scopes and why not to use the this scope. For the very reason I am needing! In most cases it isn't a problem but when methods are exposed it becomes apparent. - Tony Bentley (sent from iPhone) On Oct 5, 2010, at 3:11 PM, Judah McAuley ju...@wiredotter.com wrote: Matt, do you know of a good rundown on the difference between This and Variables scope in a CFC? I have a basic understanding of it but it is always been something I wanted to make sure I understood the fine distinctions in, kind of like the difference between var scoped variables and the local scope in CF9. Cheers, Judah On Tue, Oct 5, 2010 at 3:00 PM, Matt Quackenbush quackfu...@gmail.com wrote: I don't think I am actually understanding the question at hand, but hopefully this will at least help you out. First of all, I would strongly discourage anyone from using the this scope of the CFC. �There are a variety of reasons for that recommendation, but chief among them is the ability to access and change the instance data from outside of the object. Instead, you will want to use the variables scope, and have getX() and setX() methods to access/change the instance data. Now then, if you are wanting a struct representing the instance data, then you would create a getMemento() method to return that, which would look something like the following: public struct function getMemento() { � � // duplicate it so the internal data cannot be changed outside of the object � � return duplicate(variables); } These are just general guidelines and may/should change based upon your actual needs. HTH ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337884 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
Odd question - why do you care if the methods are exposed? If they are meant to be exposed, what is the point of hiding them? Mark On Wed, Oct 6, 2010 at 11:16 AM, Tony Bentley cascadefreehee...@gmail.comwrote: Thanks Matt. I think I understand the difference between the two scopes and why not to use the this scope. For the very reason I am needing! In most cases it isn't a problem but when methods are exposed it becomes apparent. - Tony Bentley (sent from iPhone) On Oct 5, 2010, at 3:11 PM, Judah McAuley ju...@wiredotter.com wrote: Matt, do you know of a good rundown on the difference between This and Variables scope in a CFC? I have a basic understanding of it but it is always been something I wanted to make sure I understood the fine distinctions in, kind of like the difference between var scoped variables and the local scope in CF9. Cheers, Judah On Tue, Oct 5, 2010 at 3:00 PM, Matt Quackenbush quackfu...@gmail.com wrote: I don't think I am actually understanding the question at hand, but hopefully this will at least help you out. First of all, I would strongly discourage anyone from using the this scope of the CFC. �There are a variety of reasons for that recommendation, but chief among them is the ability to access and change the instance data from outside of the object. Instead, you will want to use the variables scope, and have getX() and setX() methods to access/change the instance data. Now then, if you are wanting a struct representing the instance data, then you would create a getMemento() method to return that, which would look something like the following: public struct function getMemento() { � � // duplicate it so the internal data cannot be changed outside of the object � � return duplicate(variables); } These are just general guidelines and may/should change based upon your actual needs. HTH ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337885 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
composition over inheritance? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337886 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfgrid dynamic row colour
http://www.andyscott.id.au/2010/10/5/ColdFusion-9-and-how-to-change-the-colo ur-of-the-row-in-a-CFGrid Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Anthony Doherty [mailto:anthony.dohe...@oakleafcontracts.com] Sent: Wednesday, 6 October 2010 7:53 AM To: cf-talk Subject: cfgrid dynamic row colour Hi i have a grid that displays a date field. Im looking some help in changing the colour of the row if the date is less than 2 weeks away?? also im using cf9 Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337887 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
How does composition over inheritance apply here? Mark On Wed, Oct 6, 2010 at 12:09 PM, Tony Bentley cascadefreehee...@gmail.comwrote: composition over inheritance? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337888 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
On Tue, Oct 5, 2010 at 2:12 PM, Tony Bentley cascadefreehee...@gmail.com wrote: I have a cfc that gets instantiated and then stored in an array. I have a bunch of different objects (arrays, queries, structures, etc) in the cfc which all gets used but because of the way I am storing them, the methods can be called and I want to prevent that. CFCs have methods - that's kinda the point - so I'm a bit puzzled as to what you're really trying to achieve? Now if you dump the array, you get all of the stuff in cat and animal but you also get the methods to kill cat, feed cat and all. There must be a way to only get the structure with members and not the option to call the cfc methods. Why use CFCs at all then? If all you want is an array of structs, why not load your data into structs instead of using CFCs? -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337889 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
On Oct 5, 2010, at 8:10 PM, Sean Corfield wrote: On Tue, Oct 5, 2010 at 2:12 PM, Tony Bentley cascadefreehee...@gmail.com wrote: I have a cfc that gets instantiated and then stored in an array. I have a bunch of different objects (arrays, queries, structures, etc) in the cfc which all gets used but because of the way I am storing them, the methods can be called and I want to prevent that. CFCs have methods - that's kinda the point - so I'm a bit puzzled as to what you're really trying to achieve? True, they do but I saw the possibility that storing the cfc's method when I really only wanted the members could lead to problems. Maybe not. If someone here said that doing so was harmless, especially you or Ray I might chill out and take your advice. No far no one has said that its okay and nothing bad is going to happen. Now if you dump the array, you get all of the stuff in cat and animal but you also get the methods to kill cat, feed cat and all. There must be a way to only get the structure with members and not the option to call the cfc methods. Why use CFCs at all then? If all you want is an array of structs, why not load your data into structs instead of using CFCs? I thought there might be a way without having to retype all of the items in the scope of that object to store them. There are work arounds I'm sure. Maybe I need to go back and learn some patterns that could automate this. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337890 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
On Tue, Oct 5, 2010 at 9:51 PM, Tony Bentley cascadefreehee...@gmail.com wrote: True, they do but I saw the possibility that storing the cfc's method when I really only wanted the members could lead to problems. Maybe not. If someone here said that doing so was harmless, especially you or Ray I might chill out and take your advice. No far no one has said that its okay and nothing bad is going to happen. I guess I don't even understand why you'd think there would be a problem? Objects have methods. If you store objects, they still have methods. Why do you think this could be a problem? You haven't explained what you're trying to do and *why* you think having the methods callable is... anything other than expected behavior. Sorry if I'm not being very helpful but I just can't get my head around where you're coming from on this... -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337891 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Any way to prevent storing methods inside of an array
What exactly are you trying to accomplish? Or, perhaps I should ask, what is the problem that you are trying to alleviate by hiding methods? If we know the answer to those questions, we can steer you in the right direction. Right now, though, we don't really have much to go on. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337892 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm