Mike Causer
Member since Jan 27, 2009
- Profile: /members/2861-mike-causer.htm
- URL: http://jaze.com.au
- Comments: 22
Recent Blog Comments By Mike Causer
-
Posting Form Values With The ColdFusion CFHttp And CFHttpParam Tags
Posted on Feb 21, 2012 at 1:08 AM
Has anyone noticed that if you try to post a string that exceeds 1,000,000 characters, it simply does not include the field with the request? ..and doesn't throw! eg. <cfscript> var h = new http( url = "http://...", method = "post" ); h.addParam( type = "formField&quo... read more »
-
ColdFusion 9's NEW Operator Can Use Dynamic Class Paths
Posted on Sep 14, 2011 at 2:49 AM
It's a shame we still cant go: myCfc."dynamicMethodName"() or even: myCfc[dynamicMethodNameVar]()... read more »
-
ColdFusion Session Management And Spiders / Bots
Posted on Sep 13, 2011 at 2:27 AM
Oops... "[code]" Where's the edit button Ben? :)... read more »
-
ColdFusion Session Management And Spiders / Bots
Posted on Sep 13, 2011 at 2:23 AM
In our application.cfc we have an onRequestEnd() that detects if the current cgi.http_user_agent matches a blacklist, and if so reduces the session timeout to 15 seconds. [code] session.SetMaxInactiveInterval(javaCast('long',15)); [/code] Another thing you can do is start off with a small session ... read more »
-
Why NULL Values Should Not Be Used in a Database Unless Required
Posted on Jul 14, 2011 at 7:15 PM
I don't see the point in arguing for or against the use of nulls. They have their place. It's your choice as a developer whether you will use them or ignore them. The best thing about nulls is that you can use them however you want. They are simply another value. A null (eg. string) in one applicat... read more »
-
Creating A Struct From A ColdFusion Array Using The TreeMap And The LinkedHashMap
Posted on Feb 8, 2011 at 6:07 PM
I wrote my own version of your arrayCollection() functions using TreeMaps and LinkedHashMaps without reading yours based on your sample output. Turns out we think alike! Main differences are you used arrayIsDefined() where I used isNull() with Array.get() and I favoured cfscript. The TreeM... read more »
-
Why NULL Values Should Not Be Used in a Database Unless Required
Posted on Feb 23, 2010 at 11:33 PM
Nulls are great! They are excluded where you expect them to be. As per your examples, if you wish to include them, you need to use the sql server isNull() function to replace the nulls with blank strings. Theres also an opposite nullIf() function for replacing values with nulls when they match con... read more »
-
ColdFusion Application.cfc OnRequest() Creates A Component Mixin
Posted on Aug 19, 2009 at 10:56 PM
typo detected... "Executes the requested ColdFusoin template"... read more »
-
GetMetaData() Is Shared By All Instances Of A Given Class In ColdFusion
Posted on Jul 22, 2009 at 8:53 PM
Interesting... It seems the meta data is being stored with the template proxy cache. I guess they figured it wouldn't change much and people wouldn't try to modify it... The cache hangs around until you run: createObject('component','CFIDE.AdminAPI.runtime' ).clearTrustedCache('/full/path/to/your.... read more »
-
KinkyTwits - My ColdFusion And jQuery Powered Twitter Client (Beta)
Posted on Jul 20, 2009 at 7:31 PM
seems the problem is to do with the cf8/9 javascript-style create structs and arrays. eg. myStruct = {}; myArray = []; try replacing {} with structNew() and [] with arrayNew(1) or upgrading to cf8... read more »
-
KinkyTwits - My ColdFusion And jQuery Powered Twitter Client (Beta)
Posted on May 15, 2009 at 1:08 AM
Nice work! One thing I noticed was in TinyURLService.cfc you were pointing to http://tinyurl.com/create.php and using regex to extract the url. There is a TinyURL api which just simply returns the url, without tons of html. No need for the regex. Simply change create.php to api-create.php. eg. ... read more »