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.
Doing something a bit different today. A PhoneGap user contacted me yesterday with an interesting problem. He and I discussed it over a quick Google Hangout, and I thought I'd write up some thoughts about our discussion. Ultimately I want to build a proof of concept around this idea, but I thought I'd start first with an explanation, sans code, to see what people thought.
The problem, at a high level, involves downloading data files to a PhoneGap/Cordova application after the user has installed it. These would not be required downloads. Think more of things like DLC, or additional songs for a game, optional items. His question was how an application could be architected to support such a system. Here is what I told him. (And as always, I welcome other opinions in the comments below.)
So a while ago I mentioned I was working on the CreativeSDK project. My role is to help out with documentation, including tweaks to the API guides and writing articles. As someone still pretty new to ObjectiveC, my articles are pretty simple, but hopefully that's exactly the kind of content that can help people use it. The SDK is now public and you can peruse some of the terribly exciting articles I wrote that demonstrate things like CC file access and PSD extraction.
The best place to start though is the Getting Started article, which walks you through project set up (XCode is pretty darn impressive by the way) and how to handle basic authentication with Creative Cloud.
Check it out at http://creativesdk.adobe.com.
I've already had multiple people ping me about this so I thought it was a good idea to make sure folks knew I was aware. I have not used the coldfusionjedi.com domain in a long time, but each year I was renewing. After some advice from a reader, I put it up for auction and sold it. So - yep - I know that requests for coldfusionjedi.com go someplace else. I also have some blog entries that may link to that domain. I'll correct them as I run across them.
Earlier today a user on Twitter asked how one could determine the version of Cordova used to create a project. As far as I knew there wasn't really a way to determine this, especially since there are multiple versions in play now. But I double checked on the main developer list just to be sure.
I kinda stumbled upon this by accident, but Ionic has a CDN you can find here:
Ok, just a random note. I was going to post this on Google+ but figured I'd get a broader reach here on my blog. Lately I've run into two sites that handle notifications in a way that kinda bug me. I wanted to see if it bugs you too. I'm also curious if folks think my ideas for improvement makes sense, or if perhaps something else would be better.
Earlier today a user on the Cordova development list asked if plugins are tested against only the current release of the SDK. This brought up an interesting discussion that I'm summarizing here.
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.