Community Member Profile
- Profile: /members/676-Gary-Fenton.htm
- Comments: 15
- Points: 75
Recent Blog Comments By Gary Fenton
-
Learning ColdFusion 9: Using CFQuery In CFScript Can Enable SQL Injection Attacks
Posted on Aug 7, 2009 at 9:20 AM
@Matt - thanks for the correction, I didn't realise the restriction was lifted. Good! Having done some asp/vbscript sites I pass all user inputted strings through a server-side function to escape single quotes and remove security nasties. It made me *really* appreciate what cfquery[param] d... read more »
-
Learning ColdFusion 9: Using CFQuery In CFScript Can Enable SQL Injection Attacks
Posted on Aug 7, 2009 at 6:31 AM
Using cfqueryparam means that CF's db caching won't work on that query, so you'll have to roll your own caching, possibly storing the query in a app or session var and managing the timeout of the cache yourself. But anyone using cfscript for db queries will probably be doing that anyway.... read more »
-
Creating A Remote AJAX Proxy In Javascript Without ColdFusion 8's CFAjaxProxy
Posted on Feb 17, 2009 at 2:22 PM
I've missed something... you've got javascript calling a cfc directly? I thought only a call written in cfml or a web service could talk to a cfc?... read more »
-
Embedding ZIP Files Inside JPG Files Using ColdFusion (Live Demo)
Posted on Jan 22, 2009 at 7:54 PM
Thanks Ben. I believe you now. :-D I'll run the code locally to generate the merged jpeg. Maybe IE did something to the image when I right-clicked and saved it from your previous blog.... read more »
-
Embedding ZIP Files Inside JPG Files Using ColdFusion
Posted on Jan 20, 2009 at 5:51 AM
Renamed to .zip. A demo video? Cool, I like them. :-)... read more »
-
Embedding ZIP Files Inside JPG Files Using ColdFusion
Posted on Jan 19, 2009 at 10:07 PM
"The compressed folder is invalid or corrupt". :-( WinRar doesn't like it either.... read more »
-
Embedding ZIP Files Inside JPG Files Using ColdFusion
Posted on Jan 17, 2009 at 5:40 PM
Very clever. :-) Can this be put to a real world use? For example, when I try to email zip files or other non-Office files to certain organisations/clients it's rejected by their filewall, so sending an innocent looking file could be slipped through. (Wouldn't that be like a tojan, something scan... read more »
-
Experimenting With Flat-File ColdFusion CFML Caching
Posted on Dec 5, 2008 at 12:05 PM
If a web app is always asking for the same data from the db then it's crazy not to cache it in memory or disk. One of my apps requires unique data for every user for every page so there's no benefit to cache results or pages at the application level. The only solution it seems is to increas... read more »
-
Array Iteration Is Much Faster That Struct Iteration (Thanks Eric Stevens)
Posted on May 27, 2008 at 9:42 AM
That's good to know about lists not being slow after all. I like using lists if all I need is a shallow 1D string of data. CF has lots of list functions and because of that it's more flexible than using a 1D array. A few times I've used 2 or 3 lists to create pseudo 2D or 3D arrays just so I can... read more »
-
The Philosophy Of Undocumented ColdFusion Features
Posted on May 16, 2008 at 12:31 PM
@Ben, I get that the Java functions are really cool (by that I mean powerful and useful rather than cool like Paris Hilton and totally pointless) but if you use a CF UDF to achieve the same using just CFML then you won't have to use undocumented features to convert the string. Yes, more lines of... read more »
-
The Philosophy Of Undocumented ColdFusion Features
Posted on May 16, 2008 at 11:38 AM
No way. If it's a shortcut that saves you as much as several lines of code then is it really worth the potential consequences? You'll be storing up problems for the future and if the project is for a client then that's just bad practice and unprofessional. If your client upgrades their cfml... read more »
-
Tiny Change In ColdFusion Coding Methodology
Posted on Aug 25, 2007 at 6:06 AM
HoW aBoUt AlTeRnAtInG cAsE? iT mAkEs YoUr CoDe RuN fAsTeR iF yOu HaVe An Ac PoWeR sUpPlY! ;-)... read more »
-
Lenny And Bo, ColdFusion Programmers (Vol. 17)
Posted on Jun 8, 2007 at 8:13 AM
Ha-ha. And us CF guys are so easily pleased. Say, that stick woman looks hot. See what I mean? ;-)... read more »
-
Spacious Formatting For Inline ColdFusion Variable Evaluation
Posted on Apr 30, 2007 at 10:03 AM
You guys have missed the point. What I really want to know is did your Weird Science girl materialise? :-)... read more »
-
Lenny And Bo, ColdFusion Programmers (Vol. 1)
Posted on Mar 19, 2007 at 12:26 PM
He-he! I like it. Always look on the bright side of life! There's always someone worse off than you, etc. Bo is a great optimist.... read more »



