Tony Nelson
Member since Feb 17, 2009
- Profile: /members/2949-tony-nelson.htm
- URL: http://bears-eat-beets.blogspot.com/
- Comments: 28
Recent Blog Comments By Tony Nelson
-
Crypto.cfc For Hmac-SHA1, Hmac-Sha256, and Hmac-MD5 Code Generation In ColdFusion
Posted on Aug 20, 2012 at 10:20 AM
@Ben, Is there a reason you used underscores to scope your "private" functions rather than actually declare them as private? Was it so you could test them?... read more »
-
ColdFusion 10 - Script vs. Tags And My Coding Methodology
Posted on Mar 29, 2012 at 5:16 PM
@David, As a community member, you could also take it upon yourself to update the open-source varscoper project to fully support cfscript. In fact, I'm pretty sure there are people who have already done so.... read more »
-
ColdFusion 10 - Script vs. Tags And My Coding Methodology
Posted on Mar 28, 2012 at 6:20 PM
@Dan, You're right in that script-based CFCs don't generate output by default, but this is primarily in reference to whitespace. In your case, since you're explicitly calling writeOutput(), it will still output your string.... read more »
-
Experimenting With GitHub Gist-Based Code Samples For My Blog
Posted on Jan 16, 2012 at 11:17 AM
GitHub uses Pygments for its syntax highlighting. http://pygments.org/ https://bitbucket.org/birkenfeld/pygments-main Unfortunately it doesn't support script-based CFCs yet, and I don't know Python well enough to submit a patch for it.... read more »
-
Javascript: The Good Parts By Douglas Crockford
Posted on May 18, 2011 at 10:51 AM
And yet you still refuse to capitalize the "S" in JavaScript...... read more »
-
ColdFusion Custom Tags Cannot Act As ColdFusion Component Mixins
Posted on Jan 4, 2011 at 4:56 PM
@Ben, No it still errors out. Must just be an update to cfdump that's causing the difference in results.... read more »
-
ColdFusion Custom Tags Cannot Act As ColdFusion Component Mixins
Posted on Jan 4, 2011 at 4:13 PM
@Ben, When I run your code and dump caller.this, I see both sayHello() and privateMethod() inside the dump. What version of CF are you running? I'm on 9,0,1,274733.... read more »
-
Exploring Mixins And ColdFusion Components
Posted on Oct 31, 2009 at 6:30 PM
@Ben, Sorry I should've followed up to my previous comment. When I first tried using mixins in CF9, it didn't appear as if they would work because none of the functions in the mixin appear if you dump the object. However, the functions work as expected.... read more »
-
Exploring Mixins And ColdFusion Components
Posted on Oct 19, 2009 at 8:54 PM
Have you tried using mixins in CF9 yet? I'll give you a hint: not what you'd expect...... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 10:47 AM
Duh. How'd I miss that?... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 10:42 AM
While regular expressions are pretty handy, aren't they a little overkill when a simple #left(blogContent,50)# would suffice?... read more »
-
String Data Type Gotcha When Using CFGroovy
Posted on Sep 14, 2009 at 11:15 AM
Looks like you got hung up by a GString, huh?... read more »
-
How Much Should Our ColdFusion Applications Actually Know About ORM?
Posted on Sep 8, 2009 at 4:25 PM
@Ben, If you wanted to, you could create a generic HiberanteDAO that encapsulated ColdFusion's Entity***() methods and inject it into all the services that required the necessary CRUD operations. However, I don't see a huge benefit in adding a DAO layer just for the sake of adding another layer of ... read more »
-
Ask Ben: Creating A PDF And Attaching It To An Email Using ColdFusion
Posted on Sep 4, 2009 at 7:47 PM
I'm not sure why I noticed this, but I like how the cfmail tag is sending the email from info@certificiates.com and the screenshot shows the email coming from info@certiciates.com. What exactly were you trying to spell? Certificates? A little over excited for the long weekend? Aside from that, nice... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 19, 2009 at 3:56 PM
@Paulo, Your example does work for smaller applications, but once you get into a larger project with multiple objects, each have various dependencies between to other objects, it becomes rather cumbersome to define all the relationships in your application. Using a dependency injection framework, l... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 18, 2009 at 12:00 PM
@Ben, Yeah I figured it was more for demonstration purposes than anything, but I've never thought about setting it up like that and it was kinda nice to see a new perspective on things. Props.... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 18, 2009 at 11:55 AM
That's an interesting take on the Active Record pattern. Most of the time, I would've expected the User object to either extend an ActiveRecord or have a reference to something similar (Reactor?), rather than having a reference to a service that then talks to a DAO to perform the CRUD.... read more »
-
ColdFusion 8's OnMissingTemplate() - So Close To Being Good
Posted on Jul 1, 2009 at 5:51 PM
@Rich, No, onMissingTemplate() will only fire if you have a .cfm extension in your url.... read more »
-
ColdFusion 8's OnMissingTemplate() - So Close To Being Good
Posted on Jul 1, 2009 at 11:57 AM
I've been using onMissingTemplate() to intercept requested templates and render them inside a layout. It's been working pretty well. I previously used onRequest(), but ran into issues with webservices. http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=C... read more »
-
ColdFusion 8 Application Specific Mappings Work With The CFComponent Extends Attribute
Posted on Jun 13, 2009 at 11:22 AM
@Kevin, Unfortunately application specific mappings won't work for flash remoting since the call isn't coming from the application, so you'll still need to create the mapping within your cfadmin. What I do is create the mapping during onApplicationStart() by using the cfadmin API. Works pretty we... read more »