Commons Way When I first explored this idea, I considered using the apache.commons.io package. It has a lot of interesting classes like DirectoryWalker. DirectoryWalker is a nifty class that handles all the tedious work of traversing directories. So you can focus on what you want to do with the …
While cfdirectory is a good tag, sometimes you just need just a bit more functionality in the filtering department. A recent question on stackoverflow asked whether it was possible to extend cfdirectory's filtering capabilities to perform an exclusive search (ie find all files that do not end …
Just a small note. I noticed the CF9 beta documentation mentions a change in the IsArray function: Changed behavior: if the value parameter contains a reference to a query result column, this function now returns True. For example: isArray(MyQuery['Column1']) returns True. (In earlier releases, …
Okay, that is definitely an exaggeration. But I have been testing <cfdocument format="pdf" ..> with an OpenOffice 3 installation and was quite pleased to discover it seems like it can convert any format to pdf. Well, any format OpenOffice can convert. The current version of the CF9 …
Scope Creep - 1 result Scope Creep [skohp] [creep] Usage: You are being a real creep about this. Building a space shuttle is not in the scope of a web application project. End of discussion. No wait... will you be traveling on it?
Nothing major, but if you are the curious type there was an interesting question today on stackoverflow. It is one of those simple things that you probably use every day, but may not stop to wonder "why is it this way?". Why does arrayAppend return true and listAppend return the list?
Some time back I wrote a CF translation of Paulo Soares' example of How To Sign a PDF with iText . As the java code required some of the newer iText classes, I used the JavaLoader.cfc to access a more recent version of iText. At one stage I ran into a MethodNoFoundException I just could not …
While I knew about the spreadsheet integration in CF9, I was very surprised to discover handling for other Office formats. Specifically the new cfdocument feature that can convert .doc files to .pdf format. Now for the catch: it requires an installation of OpenOffice. But if you can live with …
I noticed the CF9 beta uses POI version 3.5-beta5-20090506. I am assuming it is what powers the cool new <cfspreadsheet> tag. Now I do not know if POI is used for anything else, but the nice thing about version 3.5 is that it includes ooxml handling. That means you can use neat tricks like …
Since I love everything iText, one of the first things I did after installing the beta was check the iText version. (For the lazy, it is iText 2.1.0). How to determine the version of iText