Happy Valentines Day ColdFusion

Posted February 14, 2007 at 11:37 AM

Tags: ColdFusion

ColdFusion, will you be mine?


 
 
 

 
ColdFusion Valentines Day Card  
 
 
 

Roses are red,
Violets are blue,
Dynamic typing rocks it hardcore,
And so do you!

Post Comment  |  Ask Ben  |  Print Page




Reader Comments

Feb 15, 2007 at 11:09 AM // reply »
165 Comments

One of my favorite adaptations....

Roses are red
Violets are blue
All my base are belong to you


Feb 15, 2007 at 11:15 AM // reply »
7,546 Comments

Ha ha ha. Classic :)


Feb 15, 2007 at 11:16 AM // reply »
7,546 Comments

Hey Steve,

I put my auto-url linking in place... and I see now that my RegEx logic is totally off base :) I always get confused with the whole greatest matching string. I always think it will go back and un-match parts of the string to -rematch longer strings. ... of course RegEx does NOT do that. Uggg :)


Feb 15, 2007 at 12:22 PM // reply »
165 Comments

:) Hey, I'd be happy to help if I can... just let me know what your requirements are. E.g., does it need to ignore URLs within <a> elements, does it need to always force that matches end before certain punctuation characters, etc.?


Feb 15, 2007 at 12:28 PM // reply »
7,546 Comments

It's matching file names, but then not their extensions. I see why - its trying to match a directory first (which becomes the file name) but then fails on the rest of the matches because the extensions itself does not make a valid file name (which is what it would expect after a directory).

I thought this would work before because I assumed it would try to make the largest match first, but I wasn't thinking clearly and forgot that backtracking doesn't work that way.

I will give it another go and run it by you. Thanks!


Post Comment  |  Ask Ben

Recent Blog Comments
Mar 19, 2010 at 8:37 AM
Ask Ben: Javascript Replace And Multiple Lines / Line Breaks
@Abdul, Looks like "re_nlchar" is undefined. You don't have an "else" statement in your if-else-if statements; you are hitting a case where none of the conditions in your IF statement are true, cau ... read »
Mar 19, 2010 at 8:33 AM
jQuery's Event Triggering, Order Of Default Behavior, And triggerHandler()
@Alex, The beauty of jQuery method chaining. ... read »
Mar 19, 2010 at 8:30 AM
Regular Expressions Make CSV Parsing In ColdFusion So Much Easier (And Faster)
@Ziggy, 4000 lines doesn't seem like too much. I guess string parsing takes up more memory that I assume it does. I am not sure what to tell you about that. I suppose you could try using a buffered ... read »
Mar 19, 2010 at 8:28 AM
SQL COUNT( NULLIF( .. ) ) Is Totally Awesome
@Robert, That's pretty clever to subtract 1 from the flag value. Snazzy. ... read »
Mar 19, 2010 at 8:26 AM
Posting XML SOAP Requests With jQuery
@Jason, The RegExp object and the replace method are parts of the core Javascript language; they are not part of jQuery. ... read »
Mar 19, 2010 at 8:10 AM
Exploring ColdFusion Component Runtime Class Properties And Serialization
@Elliott, I guess I've never done Enterprise type architectures where I'm actually passing around full-on objects. I figured I would typically communicate through an API. I can't even think of a sy ... read »
Mar 19, 2010 at 5:39 AM
Regular Expressions Make CSV Parsing In ColdFusion So Much Easier (And Faster)
I get a java heap error on a 4000 line x 8 col csv file. (Processing only, not doing anything with the result yet.) If I cut the file in half it works. Why does it use so much memory? Can anything ... read »
Mar 19, 2010 at 1:43 AM
jQuery Attr() Function Doesn't Work With IMAGE.complete
sample: ..... var loadWatch = setInterval(function() { if(img.complete) { clearInterval(loadWatch); completeCallback(img); } }, 100); } else .... ... read »