Grumpy CFer
Member since Dec 30, 2009
- Profile: /members/5068-grumpy-cfer.htm
- Comments: 18
Recent Blog Comments By Grumpy CFer
-
Looking At Prototypal Inheritance To Determine Data Types In JavaScript
Posted on Apr 16, 2013 at 12:49 PM
@Ben I like this. You can get a significant speed boost in real usage by removing the typeReference function and having the add/remove property stuff inside the isBlah functions. e.g. function isNumber(value){ /* null and undefined checks go here if desired */ Number.prototype.__type_referenc... read more »
-
Crypto.cfc For Hmac-SHA1, Hmac-Sha256, and Hmac-MD5 Code Generation In ColdFusion
Posted on Aug 23, 2012 at 11:20 AM
If you decide to stop, don't tell me, so I can just point people at your last comment that says that you're giving it a go. :-p... read more »
-
Converting Data Between String, Binary, Hex, And Base64 Format In ColdFusion
Posted on Aug 23, 2012 at 11:18 AM
@Ben w00t! Thankfully the new functions are tucked away in helper functions which are even easier to read then the old CF functions. :-)... read more »
-
Crypto.cfc For Hmac-SHA1, Hmac-Sha256, and Hmac-MD5 Code Generation In ColdFusion
Posted on Aug 22, 2012 at 5:49 PM
Yeah, in CF8 we skipped the scope declaration. varscoper is happy enough with it, and it works. Since CF9 we scope with Variables.... read more »
-
Converting Data Between String, Binary, Hex, And Base64 Format In ColdFusion
Posted on Aug 22, 2012 at 5:47 PM
Something I threw into pastebin last year in response to a Ray Camden blog post uses those functions... http://pastebin.com/bFb1bBpU With a bit of luck it's correct and helpful.... read more »
-
Crypto.cfc For Hmac-SHA1, Hmac-Sha256, and Hmac-MD5 Code Generation In ColdFusion
Posted on Aug 22, 2012 at 12:01 PM
@Ben re:named arguments Yes, it was fixed in CF9. re: 2. This still makes me cry. If you can use `this` to access them then they aren't private. Can we instead call them Nadel-Only-Public functions, or Ignore-Me-I'm-A-Pink-Elephant-Public functions? It's hard enough teaching proper function acc... read more »
-
Converting Data Between String, Binary, Hex, And Base64 Format In ColdFusion
Posted on Aug 22, 2012 at 11:53 AM
Quick pedantic note: as of CF7 Adobe recommends against using toString, toBinary and toBase64; and instead using CharsetEncode, BinaryDecode, and BinaryEncode, respectively. You've got a mixture going on in the code above. As an aside, what versions of CF to your want Crypto.cfc to work with? I be... read more »
-
Detecting (And Canceling) Key-Combo Events With jQuery
Posted on Jun 24, 2012 at 3:57 AM
A resource I use when working with key filtering. http://www.w3.org/2002/09/tests/keys.html... read more »
-
Ask Ben: Reading In A File Using CFFile And CFInclude
Posted on Feb 19, 2012 at 6:20 PM
@carehart Yeah, that is a bit pedantic. I can't imagine anyone would presume that means that their code will be re-authored by cfadmin by changing a boolean value. I'm not sure how it would be read otherwise, but hopefully others will find the distinction useful.... read more »
-
Ask Ben: Reading In A File Using CFFile And CFInclude
Posted on Feb 18, 2012 at 3:30 PM
@carehart Nope, not Dave. :-) Yep, "parsed" was the wrong way to describe that. Thanks for clarifying it for others. And yeah, "Cache Template In Request" is a major improvement for CF9 and "Trusted Cache" can be very effective as long as, as you say, you understand... read more »
-
Ask Ben: Reading In A File Using CFFile And CFInclude
Posted on Nov 30, 2011 at 8:03 AM
Just to throw some more "don't use the cfinclude method" fire. With the CF9 admin setting "Cache Template In Request" you may get old results, because as you say, the content of the file is parsed. Contrived example: <cfloop from="1" to="10" index=&quo... read more »
-
Empty SRC And URL() Values Can Cause Duplicate Page Requests
Posted on Aug 5, 2011 at 5:35 AM
This knowledge is part of the Yahoo! "Best Practices for Speeding Up Your Web Site," which should be on every webdev's reading list. http://developer.yahoo.com/performance/rules.html#emptysrc Apparently the rule was inspired by the link that Ben Alman provided above.... read more »
-
Some Thoughts On Handling 401 Unauthorized Errors With jQuery
Posted on Jul 18, 2011 at 5:17 AM
Hopefully someone can provide more insight, but I use something similar to the above, but believe it is in violation of the standard. (However, I've never seen any ill consequences of it.) When sending 401, "The response MUST include a WWW-Authenticate header field (section 14.47) containing ... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Jan 9, 2010 at 10:23 PM
@Ben For me, I think I would spend more time creating constructs to get around the use of less commonly supposed (lcs) selectors than I would searching through the css files and making sure those selectors are represented in a separate js file. Knowing the proper use of selectors and this trick sh... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Jan 8, 2010 at 10:15 PM
It would be possible to use the js implementation for all browsers. The two main considerations are that there may be people with javascript turned off; and the javascript will take longer to parse than the js, so it's possible to see the wrong styles and watch them be replaced as the js loads. No... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Dec 31, 2009 at 8:46 AM
@lola They certainly don't make it easy to understand. http://support.microsoft.com/gp/lifesupsps/#Windows says that Windows XP Service Pack 3 was released 21-Apr-2008. http://support.microsoft.com/?pr=lifecycle says "5 years Mainstream Support at the supported service pack level for Consum... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Dec 30, 2009 at 10:14 PM
@Ben It appears from your comments that Javascript is an acceptable requirement on the site. Have you considered using child selectors in your CSS and then for IE 6 having a conditional comment script block that injects the styles using matching jQuery selectors and css method? Not the most perfo... read more »