As folks know, I've been working on transitioning to Disqus over the past week. I ran into multiple problems, and I made multiple mistakes, but today the process completed and I'm ready to share details about my BlogCFC export script as well as some tips for others who may be considering making the jump.
So - this is kind of crazy. Yesterday I fired up ColdFusion 11 to test something and discovered that every request for a CFM returned an error. The error was a Null Pointer Exception so not terribly helpful. (Or so I thought.) I checked the logs and saw this:
A reader pinged me yesterday with a simple problem that I thought would be good to share on the blog. He had a query of events that he wanted to use with jQuery UI's Accordion control. The Accordion control simply takes content and splits into various "panes" with one visible at a time. For his data, he wanted to split his content into panes designated by a unique month and year. Here is a quick demo of that in action.
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.