Adam Tuttle
Member since Feb 2, 2009
- Profile: /members/2878-adam-tuttle.htm
- URL: http://fusiongrokker.com
- Comments: 22
Recent Blog Comments By Adam Tuttle
-
Very Strange Script-Based Behavior For CFParam In ColdFusion
Posted on Nov 1, 2013 at 8:37 AM
Seb, function arguments is literally the first thing in the scope chain, so even if there were _also_ a local.rc, CF should still find arguments.rc via just "rc"... but that said, I am a fan of explicit references. :)... read more »
-
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
Posted on May 24, 2013 at 5:13 PM
Hi Jason, Thanks for checking up on that, but I still stand firm on my position. :) There are actually two listLast()'s in use, and you're right that the one using a space as a delimiter is fine. (Perhaps I should have been more explicit in my previous comment.) The one that will cause ... read more »
-
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
Posted on Dec 29, 2012 at 2:18 PM
There's a bug in your code samples, Ben. ;) Consider someone with this password: gd$#fds:fdsa3! It has a colon in it, so your use of listLast(...,":") will result in the user's password appearing to be "fdsa3!". Instead you should use listRest(), which returns everything after ... read more »
-
Parsing, Traversing, And Mutating HTML With ColdFusion And jSoup
Posted on Apr 9, 2012 at 4:21 PM
Matthew, Have you considered just putting the jar on your classpath and using this? createObject('java', 'org.jsoup.Jsoup'); Or perhaps even using javaloader: http://javaloader.riaforge.org/... read more »
-
Parsing, Traversing, And Mutating HTML With ColdFusion And jSoup
Posted on Apr 6, 2012 at 9:43 AM
Awesome! Just last week I was looking at Nokogiri's jruby implementation and wondering if the JAR could be used from CF. This is definitely going to come in handy! Bookmarked!... read more »
-
Cleaning High Ascii Values For Web Safeness In ColdFusion
Posted on Aug 24, 2010 at 7:11 AM
Hey Ben, I used the information from your post to write a sanitization function for a C# web service yesterday, but I was still having problems. It turns out the entire range [\x00-\x7F] isn't safe. For example, a vertical tab (\x0B) causes all 3 XML parsers I tried (ColdFusion, Firefox, Chrome) t... read more »
-
Creating Flickr-Style Photo Tagging With jQuery
Posted on Feb 2, 2010 at 7:56 PM
You need to package this up as a jQuery plugin and release it!... read more »
-
ColdFusion vs. XYZ - It Finally Got Physical
Posted on Aug 10, 2009 at 3:50 PM
Ben, I get that you're telling a joke, but I have a ( tiny ) problem with it... First, I get why you rag on .NET (or anything else) -- as CF Developers, we regularly put up with much worse from people who haven't looked at the language/platform since 4.5 or 5.0 and/or are just happy to jump on th... read more »
-
Caching ColdFusion Pages With Expires Header Value
Posted on Jun 26, 2009 at 9:03 AM
I've used the same method of passing a url parameter to signify when the file has changed, but it never occurred to me to set it to a value that was updated every time you re-initialize the application. That's darn right brilliant. Good tip. Thanks Ben!... read more »
-
A Problem With My Coding Methodology That's Driving Me Crazy
Posted on Jun 20, 2009 at 8:38 AM
In CF, in that case, I use a var scoped struct named local, and in flex I have been trying using the prefix "fn" for function arguments that match a class property. fnDisplayType will be very similar to class property displayType. I'm not sure how much I like this, but at least it makes it clear whe... read more »
-
A Problem With My Coding Methodology That's Driving Me Crazy
Posted on Jun 16, 2009 at 9:45 PM
Now that I'm doing more development in Flex, I've run into a similar issue, only it's not about capitalization, it's about spacing. I've seen the same code written a few ways: [Bindable] public var foo : String = "bar"; [Bindable] public var foo:String = "bar"; In this case, I'm currently leanin... read more »
-
A Problem With My Coding Methodology That's Driving Me Crazy
Posted on Jun 12, 2009 at 1:59 PM
I always thought that Hungarian Notation made a lot of sense from a theory perspective... in the classroom. And I can see it being useful in complex mathematical situations (computing formula results in the code that makes Excel work, for example -- which is where the H.N. idea came from); but in re... read more »
-
cf.Objective() Photo Raffle With Me (Ben Nadel)
Posted on May 12, 2009 at 3:30 PM
@Nafisa You know you're already in there, right? http://www.bennadel.com/index.cfm?site-photo=7 Not that that should stop you from getting more pictures with Ben...... read more »
-
Data-Driven CSS Style Sheets Using ColdFusion
Posted on May 5, 2009 at 10:04 AM
I've done something similar with JavaScript includes before. It wasn't for themes, but used the same methodology. It worked really well for me. :)... read more »
-
KinkyTwits - My ColdFusion And jQuery Powered Twitter Client
Posted on Apr 1, 2009 at 11:13 AM
@Craig, I wonder if Twitter recently changed their API. They've been known to do that. If you have specific problems, I would recommend logging them on the issues page for the RIAForge project. Not enough people do that. :)... read more »
-
KinkyTwits - My ColdFusion And jQuery Powered Twitter Client
Posted on Apr 1, 2009 at 9:21 AM
@Craig, you might want to consider using something like this: http://twitterclient.riaforge.org/ That will make posting to twitter from your CFML application a breeze.... read more »
-
Learning ColdFusion 8: CFThread Part I - Data Exchange
Posted on Feb 26, 2009 at 1:04 PM
Ben, I wanted to mess with sessions from inside a thread, so I created this page (cfthread.cfm) to test it out: http://atuttle.pastebin.com/f1a734bff My tests, in CF8, show that the session variable isn't updated as far as the original process (page that creates the thread) can tell...... read more »
-
Snurl.com (SnipUrl) API ColdFusion Component Wrapper
Posted on Feb 6, 2009 at 10:19 AM
Andy, I'm not sure if I'm misunderstanding your intentions, but wouldn't it be easier just to write a function that uses the configuration from the services structure to compose the API call as needed? You may need to add a configuration point or two (ReturnsXML = true/false, comes to mind), but it ... read more »
-
Snurl.com (SnipUrl) API ColdFusion Component Wrapper
Posted on Feb 6, 2009 at 9:03 AM
Indeed, it's pretty well tested at this point. And I've submitted some changes to make it compatible with CF 6, and 7, as well as Railo. :)... read more »
-
KinkyTwits Update: Filter Groups Based On Include/Exclude Screen Names
Posted on Feb 2, 2009 at 3:40 PM
Awesome, thanks for adding my feature Ben!... read more »