A few days ago, Boyan Kostadinov suggested that I add functionality that would allow users to download all the code snippets of a given blog entry as one zip file (as opposed to downloading each snippet individually). That suggestion is now a reality; for all blog entries that have more than one code snippet, there is now a Download Zip link at the bottom of the blog entry content.
It is not doing anything fancy about the file names and types - every code snippet gets stored as a text (TXT) file with an incrementing ID. You will have to rename the files yourself into the appropriate file type. Since the blog entry has no sense of what kind of snippet it is, there was nothing I could do.
Comments (5) | Post Comment | Ask Ben | Permalink | Print Page
ColdFusion ZipUtility Component Can Now Write Directly To An Output Stream
ColdFusion 8 Coming Soon??? (Saucy)
Great! You the man. Where is that wishlist? I got paid today, he he.
Posted by Boyan on May 30, 2007 at 9:34 AM
Ha ha, give me another great suggestion and will call it even ;)
Posted by Ben Nadel on May 30, 2007 at 10:40 AM
Sure. You can have more than one :-) Not sure how great it is but here is an idea: offer inline comments form for those that have JavaScript enabled. It's would be swell to be able post comments without forget what I was posting about.
Posted by Boyan on May 30, 2007 at 2:15 PM
Ben,
here is another idea I've been playing around for a while. Not sure how doable it would be but it would be pretty damn cool if done. It's basically a way to execute your sample code on your site in a kind of a sandbox. So when you post a snippet, there is an option to execute it and see the results. That would also save you from having to post the output yourself. Just a thought.
Posted by Boyan on May 31, 2007 at 9:19 AM
@Boyan,
I have thought about doing some sort of sandbox feature, but my site is on my company's production server and I just think they would ever forgive me I let something malicious happen :) But it is a cool idea.
As for the inline commenting... I like it. It might a bit of effort. Maybe I can do a half-way thing and have a pop-up option like the BlogCFC does.
Posted by Ben Nadel on Jun 2, 2007 at 3:20 PM