Re: CF Groovy
JRuby looks nice, and for windows folks there is a a IIS module done by helicontech, installed via Web Platform Installer. ~| 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:350625 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFC based Android vs. ipad vs iphone auto senser
plus like a billion for bootstrap On Tuesday, April 3, 2012, Cameron Childress wrote: On Tue, Apr 3, 2012 at 1:28 PM, Brian Thornton br...@cfdeveloper.comjavascript:; wrote: I wondered if anyone has a CFC that conditional includes css and layout instructions for the wizzbang devices? I have a complex writer and//or redirector but looking for something more elegant. If you're looking for elegant, consider using Responsive Design. Here's a good example: http://twitter.github.com/bootstrap/index.html -Cameron -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook http://www.facebook.com/cameroncf | twitterhttp://twitter.com/cameronc | google+ https://profiles.google.com/u/0/117829379451708140985 ~| 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:350626 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFC based Android vs. ipad vs iphone auto senser
If you don't want to go responsive, I've had a lot of luck with this:http://detectmobilebrowsers.com/ BlogCFC uses it for mobile detection (with a slight mod to ignore iPad/XOOM). On Wed, Apr 4, 2012 at 7:04 AM, Tony tonyw...@gmail.com wrote: plus like a billion for bootstrap On Tuesday, April 3, 2012, Cameron Childress wrote: On Tue, Apr 3, 2012 at 1:28 PM, Brian Thornton br...@cfdeveloper.comjavascript:; wrote: I wondered if anyone has a CFC that conditional includes css and layout instructions for the wizzbang devices? I have a complex writer and//or redirector but looking for something more elegant. If you're looking for elegant, consider using Responsive Design. Here's a good example: http://twitter.github.com/bootstrap/index.html -Cameron -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook http://www.facebook.com/cameroncf | twitterhttp://twitter.com/cameronc | google+ https://profiles.google.com/u/0/117829379451708140985 ~| 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:350627 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
There's still actually quite a bit of activity around Groovy (2.0 is imminent with many enhancements), but it is overshadowed by Grails, which is extremely active. Since the two are tightly linked (you use Groovy to build Grails apps), looking at *only* Groovy activity may be misleading. Probably similar to looking at straight Ruby vs. looking at Rails, which is what virtually everyone who uses Ruby is actually working with. It could be that I'm extra-happy with Groovy because I've also done a lot of Java work, so almost everything I'm familiar with still applies, but it's just a lot easier to work with. The syntax is almost identical where I want or need it to be, but I can drop a lot of the rigid BS that Java can force on me. I can paste straight Java code into a Groovy class and it will compile. Which I assume (so watch out) would be difficult with other JVM languages that have different syntax. Maybe I'll have to confirm that heh. On Wed, Apr 4, 2012 at 12:43 AM, Mark Mandel mark.man...@gmail.com wrote: I quite like Groovy as well - although unfortunately it doesn't look like it really exploded like I think many of us thought it would do. While it has a following, from my research, it seems to have kinda stagnated in it's community growth, in favour of some other JVM based languages. I'm looking at Ruby a lot these days, as it has similar constructs and meta programming models, but a much larger community - and if you run it on JRuby, it has access to both the Java libraries as well as Ruby ones, which is very powerful. Mark On Wed, Apr 4, 2012 at 12:54 PM, Brian Kotek brian...@gmail.com wrote: Groovy is by far the best all-around programming *language* I have ever run into. It doesn't have all the built-in extras that CF does, but CF is actually a platform, not just a language. But in my opinion (and I may get flak for saying it), in terms of language elegance and power, Groovy blows everything else out of the water. -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350628 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFC based Android vs. ipad vs iphone auto senser
If you're looking for elegant, consider using Responsive Design. Here's a good example: http://twitter.github.com/bootstrap/index.html THAT is very, very nice. Thanx for posting that. G! On Tue, Apr 3, 2012 at 2:55 PM, Cameron Childress camer...@gmail.comwrote: On Tue, Apr 3, 2012 at 1:28 PM, Brian Thornton br...@cfdeveloper.com wrote: I wondered if anyone has a CFC that conditional includes css and layout instructions for the wizzbang devices? I have a complex writer and//or redirector but looking for something more elegant. If you're looking for elegant, consider using Responsive Design. Here's a good example: http://twitter.github.com/bootstrap/index.html -Cameron -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook http://www.facebook.com/cameroncf | twitterhttp://twitter.com/cameronc | google+ https://profiles.google.com/u/0/117829379451708140985 ~| 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:350629 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
The best description of Groovy I have heard came from Todd Sharp - 'I't like cfscript all growed up' On Wed, Apr 4, 2012 at 11:16 AM, Brian Kotek brian...@gmail.com wrote: There's still actually quite a bit of activity around Groovy (2.0 is imminent with many enhancements), but it is overshadowed by Grails, which is extremely active. Since the two are tightly linked (you use Groovy to build Grails apps), looking at *only* Groovy activity may be misleading. Probably similar to looking at straight Ruby vs. looking at Rails, which is what virtually everyone who uses Ruby is actually working with. It could be that I'm extra-happy with Groovy because I've also done a lot of Java work, so almost everything I'm familiar with still applies, but it's just a lot easier to work with. The syntax is almost identical where I want or need it to be, but I can drop a lot of the rigid BS that Java can force on me. I can paste straight Java code into a Groovy class and it will compile. Which I assume (so watch out) would be difficult with other JVM languages that have different syntax. Maybe I'll have to confirm that heh. On Wed, Apr 4, 2012 at 12:43 AM, Mark Mandel mark.man...@gmail.com wrote: I quite like Groovy as well - although unfortunately it doesn't look like it really exploded like I think many of us thought it would do. While it has a following, from my research, it seems to have kinda stagnated in it's community growth, in favour of some other JVM based languages. I'm looking at Ruby a lot these days, as it has similar constructs and meta programming models, but a much larger community - and if you run it on JRuby, it has access to both the Java libraries as well as Ruby ones, which is very powerful. Mark On Wed, Apr 4, 2012 at 12:54 PM, Brian Kotek brian...@gmail.com wrote: Groovy is by far the best all-around programming *language* I have ever run into. It doesn't have all the built-in extras that CF does, but CF is actually a platform, not just a language. But in my opinion (and I may get flak for saying it), in terms of language elegance and power, Groovy blows everything else out of the water. -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350630 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
Another very common description is it's what Java would have been if Java was created in the 21st century. :-) On Wed, Apr 4, 2012 at 12:45 PM, Scott Stroz boyz...@gmail.com wrote: The best description of Groovy I have heard came from Todd Sharp - 'I't like cfscript all growed up' ~| 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:350631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Multiple Datasources in Model GLue
I'm scratching the surface of Model-Glue, and it's brought up a question off the bat. It appears that the datasource name that we would normally park in the application scope is a model bean in ModelGlue. Does this mean that for each datasource in a given app, a separate bean would need to be created? -- -- Scott Stewart Adobe Certified Instructor, ColdFusion 8 9 Adobe Certified Expert, ColdFusion 8 9 Blog: http://www.sstwebworks.com Email: webmas...@sstwebworks.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350632 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Multiple Datasources in Model GLue
If you mean the ConfigBean, you can put any config you want in there. So you could have dsn1=mybeer dsn2=yourbeer On Wed, Apr 4, 2012 at 2:48 PM, Scott Stewart webmas...@sstwebworks.com wrote: I'm scratching the surface of Model-Glue, and it's brought up a question off the bat. It appears that the datasource name that we would normally park in the application scope is a model bean in ModelGlue. Does this mean that for each datasource in a given app, a separate bean would need to be created? -- -- Scott Stewart Adobe Certified Instructor, ColdFusion 8 9 Adobe Certified Expert, ColdFusion 8 9 Blog: http://www.sstwebworks.com Email: webmas...@sstwebworks.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350633 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
Bill Joy would be pissed if he saw that... I guess he's the last laughing now... http://www.edge.org/documents/dinner2010/dinner2010_index.html On Wed, Apr 4, 2012 at 3:18 PM, Brian Kotek brian...@gmail.com wrote: Another very common description is it's what Java would have been if Java was created in the 21st century. :-) On Wed, Apr 4, 2012 at 12:45 PM, Scott Stroz boyz...@gmail.com wrote: The best description of Groovy I have heard came from Todd Sharp - 'I't like cfscript all growed up' ~| 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:350634 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Javascript test in ColdFusion
Thanks to all for the suggestions on this. I went with the approach below and it worked well. Thank you Andy, -RR On Mon, Mar 26, 2012 at 11:39 PM, andy matthews li...@commadelimited.comwrote: A dead simple way of testing for JavaScript: script window.location.href = 'javascriptCapable.cfm'; /script meta http-equiv=refresh content=1; url=nonJavascriptCapable.cfm If a browser understands JS they get one page, if they don't they get another. One thing to consider though that it's not quite as simple as understanding JS...you should be checking for specific functionality using something like Modernizr. http://www.modernizr.com/ andy -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Monday, March 26, 2012 12:00 PM To: cf-talk Subject: Javascript test in ColdFusion Hello again. I have a site that loads all the content in ajax. I also have a version of the site that does not use ajax. I am looking for some code I can put in the application.cfm to test to see if the visitor's browser supports javascipt or not, so I can load the right version of the site. Any ideas? Thanks. --RR ~| 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:350635 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Javascript test in ColdFusion
Umm.. Why not just put in noscript? On Mon, Mar 26, 2012 at 8:39 PM, andy matthews li...@commadelimited.com wrote: A dead simple way of testing for JavaScript: script window.location.href = 'javascriptCapable.cfm'; /script meta http-equiv=refresh content=1; url=nonJavascriptCapable.cfm If a browser understands JS they get one page, if they don't they get another. One thing to consider though that it's not quite as simple as understanding JS...you should be checking for specific functionality using something like Modernizr. http://www.modernizr.com/ andy -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Monday, March 26, 2012 12:00 PM To: cf-talk Subject: Javascript test in ColdFusion Hello again. I have a site that loads all the content in ajax. I also have a version of the site that does not use ajax. I am looking for some code I can put in the application.cfm to test to see if the visitor's browser supports javascipt or not, so I can load the right version of the site. Any ideas? Thanks. --RR ~| 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:350636 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
On Thu, Apr 5, 2012 at 1:16 AM, Brian Kotek brian...@gmail.com wrote: There's still actually quite a bit of activity around Groovy (2.0 is imminent with many enhancements), but it is overshadowed by Grails, which is extremely active. Since the two are tightly linked (you use Groovy to build Grails apps), looking at *only* Groovy activity may be misleading. Probably similar to looking at straight Ruby vs. looking at Rails, which is what virtually everyone who uses Ruby is actually working with. While I agree that there is activity... I'm just not seeing the growth in the language (and from what I'm reading, people have similar opinions). That's not to say that people shouldn't be using it - but it's just a factor of adoption. I really like Groovy - I think it's a great language with some kick ass language constructs, and it has SpringSource behind it, which is also cool - I'm just curious to see how much it is going to grow. Mark -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350637 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
How to get IIS7 to redirect with query string
Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~| 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:350638 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to get IIS7 to redirect with query string
I take it you are using rewrite rules? If not there are two ways to do it, one is to use an add on for IIS at iis.net that will do it. Or I would recommend Helicon ISAPI rewrite, mainly because you can use .htaccess to define your rules and the fact the Helicon is awesome. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Apr 5, 2012 at 10:22 AM, Robert Rhodes rrhode...@gmail.com wrote: Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~| 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:350639 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to get IIS7 to redirect with query string
In the rules section of your web.config it'd be something like: rule name=favorite color rewrite match url=((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*)) / action type=Rewrite url=index.cfm?q=favorite.colorsamp;{R:2}={R:3}amp;{R:4}={R:5} appendQueryString=false / /rule On 4/4/12 5:22 PM, Robert Rhodes wrote: Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~| 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:350640 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Javascript test in ColdFusion
My pleasure RR. andy -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Wednesday, April 04, 2012 7:05 PM To: cf-talk Subject: Re: Javascript test in ColdFusion Thanks to all for the suggestions on this. I went with the approach below and it worked well. Thank you Andy, -RR On Mon, Mar 26, 2012 at 11:39 PM, andy matthews li...@commadelimited.comwrote: A dead simple way of testing for JavaScript: script window.location.href = 'javascriptCapable.cfm'; /script meta http-equiv=refresh content=1; url=nonJavascriptCapable.cfm If a browser understands JS they get one page, if they don't they get another. One thing to consider though that it's not quite as simple as understanding JS...you should be checking for specific functionality using something like Modernizr. http://www.modernizr.com/ andy -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Monday, March 26, 2012 12:00 PM To: cf-talk Subject: Javascript test in ColdFusion Hello again. I have a site that loads all the content in ajax. I also have a version of the site that does not use ajax. I am looking for some code I can put in the application.cfm to test to see if the visitor's browser supports javascipt or not, so I can load the right version of the site. Any ideas? Thanks. --RR ~| 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:350641 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
I like that one too. On Wed, Apr 4, 2012 at 3:18 PM, Brian Kotek brian...@gmail.com wrote: Another very common description is it's what Java would have been if Java was created in the 21st century. :-) On Wed, Apr 4, 2012 at 12:45 PM, Scott Stroz boyz...@gmail.com wrote: The best description of Groovy I have heard came from Todd Sharp - 'I't like cfscript all growed up' ~| 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:350642 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Groovy
Part of it may also be that there are now so many JVM languages that growth is spread out across a much wider range than any other platform. If you're interested, some of the sweet new stuff in 2.0 is detailed here: http://www.slideshare.net/glaforge/whats-new-in-groovy-20/download On Wed, Apr 4, 2012 at 8:11 PM, Mark Mandel mark.man...@gmail.com wrote: While I agree that there is activity... I'm just not seeing the growth in the language (and from what I'm reading, people have similar opinions). That's not to say that people shouldn't be using it - but it's just a factor of adoption. I really like Groovy - I think it's a great language with some kick ass language constructs, and it has SpringSource behind it, which is also cool - I'm just curious to see how much it is going to grow. Mark -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350643 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm