Wow, not a good morning for one of my favorite new features of ColdFusion 11. This morning I reported on a bug found with queryExecute by a user on StackOverflow. I did some more digging and found that if you use queryExecute inside a thread, it returns an undefined value. Here is a simple test case:
One of the nicer features in ColdFusion 11 was the addition of queryExecute. It lets you run a query from cfscript easier than using the component based system that was added in the past. However, a StackOverflow user discovered an interesting bug with it.
Late last month a reader asked me if it was possible to override the session timeout so that he could provide different time outs based on a user role. As far as I know there is no direct way of doing this. There may be a way if you get to the underlying Java Session stuff, but I recommended something simpler - if you keep a variable for when the user last hit your site and do a quick time check, you can easily log them out early. To be clear, this is not the same as ending the session, but honestly, thats not what he really needed. He simply needed to toggle a flag (loggedin) from true to false if that time limit had expired. I thought I'd whip up a quick set of example code to demonstrate this.
So, I don't do this very often, but, I was asked to share a message, and it is one I agree with, so I decided to pass it along. This comes from a member of our community - so please give it a few moments of your time.
First, the good news. Today Adobe released the first update to ColdFusion 11: ColdFusion 11 - Update 1. You can update via the normal admin interface. Please note that this update includes a connector update for IIS. If you are using IIS, first, I'm sorry, second, update the connector.
Finally, I'm sorry to say that I will not be speaking at the ColdFusion Summit this year. I was really looking forward to it, but I had something come up, something kinda important, that will have me quite a bit far away at the same time. I'll give details when I can. I strongly urge you to attend if you haven't gotten a ticket yet. If for some reason my ColdFusion Builder session is not picked up by someone else, you have my word that I'll give it via a Google Hangout sometime in November.
Ok, technically, the two topics mentioned in the subject have nothing to do with each other, but both were interesting things I ran into during my presentation on Sunday so I thought I'd call them out.
Here is the other presentation I did at NCDevCon - a review of my top features of ColdFusion 11. I should totally be in marketing. Honest.
I'm a few days late on this, but I wanted to be sure my readers knew about the release of CommandBox by Ortus Solutions, the same fine folks behind the ColdBox series of products. CommandBox provides probably the number one feature missing from ColdFusion - a command line and package manager.
Ok, snap quiz time, given the following code, and that url.name exists, will the UDF run?
I'm very happy to announce that I'll be speaking at NCDevCon 2014. I've spoken at this conference for a few years now but didn't submit a topic this year due to some personal issues. Those personal issues are currently in hibernation for a few months and when an opening popped up at the last minute, I leapt at it.
I'll be speaking on two topics this year. My first is a simple look at what I think are the top features of ColdFusion 11. This will be a very opinionated look at the features of ColdFusion 11 (and ColdFusion Builder 3) that I think are worth your attention.
The second topic will be a look at the Ionic framework. This is a presentation I was supposed to give a month or two ago but that event was cancelled. I'm a complete and utter Ionic fan boy so I can't wait to share the awesomeness of Ionic with others.
For folks who can't attend (shame on you - you should :) - all NCDevCon sessions are taped and will be available for free after the conference. But tickets are still for sale. It isn't too late. If you can make it, I highly recommend going!
p.s. Sorry for being quiet the last few days. I just got back from my brother's wedding and I'm somewhat swamped. I need a clone. Or three.