Community Member Profile
- Profile: /members/2528-Henry-Ho.htm
- URL: http://henrylearnstorock.blogspot.com/
- Comments: 38
- Points: 264
Recent Blog Comments By Henry Ho
-
Creating Base64-Encoded Data URLs For Images In ColdFusion
Posted on Nov 8, 2011 at 2:19 PM
Use toBase64(imageGetBlob(myImg)) instead of just toBase64. see: http://blog.dkferguson.com/index.cfm/2010/4/27/All-your-base64-are-not-equal... read more »
-
Parsing CSV Data With An Input Stream And A Finite State Machine
Posted on Aug 16, 2011 at 2:17 PM
"ColdFusion may run out of memory when parsing ginormous files" ? You mean the file IO part? You can loop a file by line in CF8+ to avoid running out of memory. Or do you mean you're running out of ram constructing the data structure? Then FSM or not you're going to run out of... read more »
-
Branching Logic vs. Guard Logic When It Comes To Function Control Flow
Posted on May 17, 2011 at 3:05 PM
I guess it's fine as long as your function is short. However, multiple return points are not encouraged when I was in college. They prefer a short if block for guards and long if block for actual "Branching Logic", and then follow by a single return statement.... read more »
-
Returning NULL Values In JSON Using SerializeJSON() And ColdFusion
Posted on Apr 5, 2011 at 2:14 PM
@Drew Wells, so any problem with using jQuery with processData:false?... read more »
-
Reading In File Data One Line At A Time Using ColdFusion's CFLoop Tag Or Java's LineNumberReader
Posted on Sep 15, 2010 at 2:22 PM
I thought you'd include a benchmark between cfloop and Java's lineReader. :)... read more »
-
ColdFusion 9's NEW Operator Can Use Dynamic Class Paths
Posted on Jul 7, 2010 at 12:48 PM
@Jason, I think u still need cfinvoke, unless you're ok with Evaluate().... read more »
-
Converting An IP Address To An Integer Using MySQL (Thanks Julian Halliwell)
Posted on Jan 29, 2010 at 1:26 PM
Any eqv functionality for MS SQL?... read more »
-
Java's AtomicInteger vs. ColdFusion Named-Locking For Incrementing Values
Posted on Jan 5, 2010 at 9:01 PM
Related question I had on Stackoverflow: http://stackoverflow.com/questions/1811406/thread-safe-sequential-number-generator-in-coldfusion I'm now using AtomicIntege... read more »
-
Using Multi-Part Class Paths With CFScript-Based Argument Types
Posted on Dec 30, 2009 at 2:13 PM
wouldn't it be nice to support: component { void function foo(com.xyz.bar bar) {} } pls vote: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.h... read more »
-
Using Double Not-Operator (!!) For Boolean Type Casting
Posted on Dec 14, 2009 at 3:25 PM
FYI JavaScript: The Good Parts, and http://www.jslint.com/ , suggest us to use === or the !=== operator instead.... read more »
-
Creating Globally Accessible User Defined Functions In ColdFusion (Safer Version)
Posted on Dec 8, 2009 at 3:37 PM
Thanks for thinking outside the box. I like this.... read more »
-
Creating A "Remember Me" Login System In ColdFusion
Posted on Oct 1, 2009 at 12:10 PM
view source to your online bank page, you'll see the Pragma: no-cache tag they used in HEAD. :)... read more »
-
Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag
Posted on Sep 29, 2009 at 2:19 PM
I've not tested it, but seems like this tag might break when the head tag has profile="" attribute. http://stackoverflow.com/questions/1477266/how-to-prev... read more »
-
Learning ColdFusion 9: ArrayFind() And ArrayContains() For Searching Arrays
Posted on Jul 19, 2009 at 6:48 PM
Ahh!!! finally!!! Good, thanks adobe... Goodbye, stupid: ListFind(ArrayToList(arr),"urgh!")...... read more »
-
Testing For ColdFusion Component Interface Support
Posted on Apr 16, 2009 at 2:50 PM
The cfcexplorer that comes with CF8 have some code that checks if an object which declares as having some interface X implemented, has all the required methods. Maybe you will be interested to take a look how Adobe tests obj against cfinterface. :)... read more »
-
An Experiment In Non-Data-Type ColdFusion Components
Posted on Apr 13, 2009 at 2:45 PM
instead of Object.cfc, u can, in theory, put the methods in web-inf.cftags.component... read more »
-
An Experiment In Non-Data-Type ColdFusion Components
Posted on Apr 13, 2009 at 2:42 PM
? no cfargument bothers you? use cfproperty. :)... read more »
-
Object Oriented Form Helpers And Reusing Form Validation On The Client
Posted on Apr 8, 2009 at 1:39 PM
You want to add a Form Helper layer to validate FORM data before creating the actual domain object, is that all?... read more »
-
Form Helpers And Domain Objects As Data Types In Object Oriented Programming
Posted on Apr 6, 2009 at 7:44 PM
@Ben which "Single Responsibility" principle is violated? Controller's responsibility is to unwrap FORM fields and talk to Service to carry out an event, right?... read more »
-
Form Helpers And Domain Objects As Data Types In Object Oriented Programming
Posted on Apr 6, 2009 at 7:31 PM
A sequence diagram would really help. I made one for you, pls take a look if I made a mistake: read more »



