A few days ago a user reported an issue with my blog involving the comment form. Apparently he has an email address using one of the new TLDs (top level domains) that are cropping up, specifically "directory." I decided to do some testing to see how well ColdFusion supports these new TLDs.
So hey, remember I built an open source ColdFusion survey application? This morning someone sent in a good request and I quickly added it. Surveys may now have an "attachment" question. Basically it means you can create a survey that also asks people to upload an attachment.
If you use cfindex to parse a directory of files, you should be aware of a serious issue that may hit you. As you know, you can ask cfindex to return a result structure that tells you how many files were added, removed, or deleted from an index. As an example, here is the result structure for a set of PDFs I added.
Credit for this find goes to Steve Seaquist. He and I have been discussing this over email the last few days. Ok, quiz time, look at the following CFC:
Recently, a commenter on another blog mentioned that one of the things they missed from Dreamweaver is the ability to do a search and then export the results. I didn't even know DW had this and it does sound rather useful!
Back when Adam Cameron and I launched the ColdFusion UI - The Right Way project, I mentioned that initially we would accept submissions from the community to build out the content before releasing an actual readable version. Turns out I kind of forgot to get around to doing that. The content in the GitHub repo is in Markdown, which is pretty readable, but it isn't exactly in a nice form to hand out to a junior developer.
Earlier this week I came across a person looking to find a local (to Louisiana) car safety inspection location. I think most states require this but they differ on schedules. Louisiana recently moved to letting you pay more for a two-year sticker which is nice, but it is still a bit of a hassle if you don't know where an inspection location can be found. Turns out - there is a web page for it: http://www.dps.state.la.us/safetydirections.nsf/f3f91999370ccaed862574a20074b158?OpenView.
Just a quick note that one of Adobe's ColdFusion team members has discovered a bug with javaSettings. If you don't remember, javaSettings is a way to dynamically load JAR files for a ColdFusion application. This allows you to skip using the CF Admin to work with Java classes. The bug is simple. If you use reloadOnChange:true, which is something you would only do in development anyway, then ColdFusion may have an issue loading the files correctly. To get around this, simply set that value to false, and restart CF. Yes, that is a bit annoying if you are writing the Java classes, but if you are just using some you downloaded, then it is a one-time annoyance. You still get to keep your Java files within your application folder so that's good too. I've filed a bug report for this so feel free to vote/comment on it.
Today Adobe released a patch to fix the broken update mechanism for CFBuilder 3. You can get the patch, and see more details, here: ColdFusion Builder 3 Mandatory Update Release. Note that - finally - the installer bits are also updated, which means if you haven't grabbed CFBuilder 3 yet and install it today, you get the corrected bits. (Something that has needed to be fixed for CF server for quite some time.) Also fixed in this update is the Services view. You can read more about the Services view on this old bog entry of mine.
By the way - I've mentioned a few times already how much I like CFB3. I still do. So if you still haven't grabbed it and you are doing CF development, check out a copy now. Remember, it has an "Express" edition that is free.
Just a small warning to folks using trusted cache on their production ColdFusion sites. If you have it enabled, hit a particular file, and then delete it, ColdFusion will still serve the file up. That isn't too surprising I suppose, but you may not be aware of it. While I bet most of you know that, I bet a lot of you may make the mistake I made.
Instead of clearing the entire Trusted Cache, I always use the newer folder option, see here:
This feature (which you can get via a ColdFusion Admin extension for older servers) lets you clear just one folder from the trusted cache. It is a kinder, gentler version of the "Nuke Everything From Orbit" button that clears the entire cache.
Except when I used this - it didn't work. It took me a few seconds (ok, minutes) to figure out why. The code behind this button gets all the files from the folder and clears them from trusted cache. Since the file I wanted to clear was deleted, it didn't work. The API for clearing the cache only supports files, not folders. (It should support both I'd say.) Obvious, right?