Inline Code Snippets Can Now Be Downloaded As One Zip File

Posted May 29, 2007 at 9:16 PM by Ben Nadel

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.




Reader Comments

May 30, 2007 at 9:34 AM // reply »
95 Comments

Great! You the man. Where is that wishlist? I got paid today, he he.


May 30, 2007 at 10:40 AM // reply »
11,243 Comments

Ha ha, give me another great suggestion and will call it even ;)


May 30, 2007 at 2:15 PM // reply »
95 Comments

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.


May 31, 2007 at 9:19 AM // reply »
95 Comments

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.


Jun 2, 2007 at 3:20 PM // reply »
11,243 Comments

@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.


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 22, 2013 at 5:35 PM
Script Tags, jQuery, And Html(), Text() And Contents()
This is still an issue 2 years later. jQuery is supposed to remediate these cross browser issues, no? I have been unable to find any statement from the jQuery team calling this behavior "by de ... read »
May 22, 2013 at 12:44 PM
Ask Ben: Query Loop Inside CFScript Tags
In cf10, if you call a function that has: local.result = {}; local.result.msg = ""; local.svc = new query(); local.svc.setSQL("SELECT * FROM..."); local.obj = local.svc.exe ... read »
May 22, 2013 at 12:29 PM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Ben: What version of Java are you using? Also, did you test users.id to see what Java reports as the data type? I wonder if it's not a Java primitive data type, but getting returned as something ... read »
May 22, 2013 at 11:47 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Dana, Awesome - so it looks like this bug was fixed in ColdFusion 10. Thanks so much for double-checking that. ... read »
May 22, 2013 at 11:37 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
When I c&p and run on cf10, I get: Selected User IDs: 1,4 User 1 selected: YES - YES User 2 selected: NO - NO User 3 selected: NO - NO User 4 selected: YES - YES User 5 selected: NO - ... read »
May 22, 2013 at 11:27 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Tom, Good thought, but no dice. Both of these still exhibit the same behavior: users.id[ users.currentRow ] users[ "id" ][ users.currentRow ] It's just something whacky happening with ... read »
May 22, 2013 at 11:07 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
Could your problem be that "users.id" is actually an ARRAY, not a single value? Perhaps try it again with "users.id[1]" (I only have CF8 here at work). ... read »
May 22, 2013 at 7:52 AM
Nested Views, Routing, And Deep Linking With AngularJS
Hi, Just a quick thank you. As it happens, for my own purposes, the pending ui-router work being done in native angular is likely the one I'll adopt, but your exploration, code and documentation of ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools