Community Member Profile
- Profile: /members/2948-Rick-O.htm
- URL: http://rickosborne.org/
- Comments: 44
- Points: 453
Recent Blog Comments By Rick O
-
ColdFusion CFThread Tag Body Executes As A Function Call
Posted on Feb 23, 2010 at 1:19 PM
Makes sense -- multithreading in most operating system-level programming languages (C, Perl, etc) is generally done with functions: Perl: new Thread \&subroutine; C++ with pthreads: pthread_create(info, attr, function, funargs); Some languages want you to create an entirely new c... read more »
-
Clearing The Session Scope Does Not End Your ColdFusion Session
Posted on Feb 11, 2010 at 12:52 PM
CFMAGIC is ColdFusion's way of reminding itself that it's set domain-level cookies.... read more »
-
Clearing The Session Scope Does Not End Your ColdFusion Session
Posted on Feb 11, 2010 at 10:30 AM
Also remember that, depending on the cookie scope, you may have to clear several sets of cookies: http://rickosborne.org/blog/index.php/2009/01/27/coldfusion-getting-a-fresh-sessio... read more »
-
Pixelating An Image With ColdFusion
Posted on Jan 26, 2010 at 6:58 PM
Tested and verified: <cfset var origWidth = image.width> <cfset var origHeight = image.height> <cfset imageResize(arguments.image, arguments.image.width / arguments.pixelSize, "")> <cfset imageResize(arguments.image, origWidth, origHeight, "nearest")><... read more »
-
Maintaining ColdFusion Query Data Type Integrity Throughout The Serialization Life Cycle
Posted on Jan 19, 2010 at 4:21 PM
Yeah, DB to WDDX to QoQ mostly. The most common use case is that someone runs a query that takes 2-3 minutes, then we save it so that we can slice and dice it later. But as you said, you definitely have to be wary of data typing issues.... read more »
-
Maintaining ColdFusion Query Data Type Integrity Throughout The Serialization Life Cycle
Posted on Jan 19, 2010 at 11:39 AM
It's a minor nitpick, but your first assumption is too general -- I've had plenty of cases where I've used WDDX to serialize a query that did come from a database. In the data warehousing apps I've written, it's a real lifesaver. A query might take 90 seconds or 5 minutes to run ... an... read more »
-
Thoughts About Salaries And Raises As Motivated By Daniel Pink's Book, Drive
Posted on Jan 11, 2010 at 11:18 AM
I'm not a very money-centric person. Most of the time I've taken a significantly lower pay to work in a better environment, or do something new and challenging, or whatever. If I've learned one thing about salary it's this: if the employer low-balls you on salary, it's not some place you w... read more »
-
Pixelating An Image With ColdFusion
Posted on Jan 7, 2010 at 11:59 AM
Doesn't resizing it down and then back up again produce the same effect?... read more »
-
Thoughts And Goals For 2010
Posted on Jan 3, 2010 at 2:03 PM
Those are excellent, insightful resolutions, Ben. Some might call it narcissistic or navel-gazing, but it takes more than that to be so honest and open with not just yourself, but those around you. Good luck in 2010 (the frickin' future, man!) and keep doing what you enjoy. -R... read more »
-
Learning ColdFusion 9: Understand ORM Events (Thanks John Whish!)
Posted on Oct 10, 2009 at 1:02 AM
For my own future reference ... I was mucking about with this today and was trying to make it so that my createdDate and updatedDate properties were read-only (no setters). I am dumb, so I assumed it would be trickier than the obvious solution. It's not. public void function preInse... read more »
-
Running UPDATE And DELETE SQL Statements Using ColdFusion Query Of Queries
Posted on Sep 12, 2009 at 3:52 PM
A while ago I had a project where I did much of the same thing in QoQ -- faux-deletes and faux-updates: http://rickosborne.org/blog/index.php/2008/11/01/quine-mccluskey-in-m... read more »
-
Ask Ben: Keeping Close Track Of Who Is Currently Online
Posted on Aug 27, 2009 at 10:50 AM
One could make the case that the heartbeat and the session timeout could be completely unrelated -- remove users from the online list when their heartbeat stops for more than a specified amount of time, no matter their session freshness. This would also give you the option of, down the road, giv... read more »
-
Learning ColdFusion 9: Trying To Understand ORM Event Handling
Posted on Aug 24, 2009 at 2:54 PM
Interesting points, all, thank you. While I'm not personally keen on "side effect" coding, especially given the lazy flush-driven architecture, I do have to admit to the elegant simplicity of such approaches. So ... who wants to be the first to shoot themselves in the foot by recursively h... read more »
-
Learning ColdFusion 9: Trying To Understand ORM Event Handling
Posted on Aug 24, 2009 at 11:37 AM
Interesting. Any thoughts on what you'd use this for beyond what you could do with DB triggers? (No, I'm not arguing against events on the theory that "real men use triggers". Nor am I trying to be inflammatory. Just trying to think of a case where you could go beyond triggers.)... read more »
-
ColdFusion Xml Nodes Have An XmlNodes Property
Posted on Aug 10, 2009 at 4:15 PM
Also, there are XML Parsers/Serializers that may reorganize text nodes into attributes, or vice-versa: <person name="Rick Osborne"/> vs <person><name>Rick Osborne</name></person> In either of those cases, you could still access person.xmlNodes... read more »
-
Learning ColdFusion 9: Extending The Query.cfc Service Component
Posted on Aug 7, 2009 at 10:57 AM
Again I say: righteous hack. I did something like this not a month ago for a DAO where I wanted to add logging to any queries that went through it. But I didn't have CF9 so it's quite a bit nastier.... read more »
-
Learning ColdFusion 9: Using CFQuery (And Other Service Tags) In CFScript
Posted on Aug 6, 2009 at 3:27 PM
Wow. That's even uglier code than I had feared. Welcome back to 1996 and writing queries in VBScript/ASP. I'd be curious to see if this broke things: SELECT 'I am not a :param' FROM foo WHERE name = :name... read more »
-
Learning ColdFusion 9: Delete Array Elements With ArrayDelete()
Posted on Aug 4, 2009 at 10:51 AM
The repeated calls to arrayFind() in the last example mean that it's going to start from the beginning to search each time. But, at least, you aren't doing it twice for each iteration, as you would be if you used arrayDelete(), too. Even that last solution falls short of manually looping o... read more »
-
Learning ColdFusion 9: From SQL To ORM - A Conceptual Shift In Relationships
Posted on Aug 3, 2009 at 12:10 PM
Ben - I had the same initial reservations as Justice -- I thought your mapping was backwards. After your explanation, I see now what you're trying to do with it ... but I again have to agree with Justice that it's a bit counterintuitive. Beyond that, good explanation of features, and... read more »
-
Learning ColdFusion 9: Refreshing And Rebuilding An ORM Application
Posted on Jul 31, 2009 at 10:45 AM
I am on the fence as to whether or not I'm keen on the Hibernate integration that has been done. It's nice, but I do worry that it may become the ORM solution for CF, instead of just one of many options. And options are good. (My reticence may also stem from my preference for Transfer... read more »



