RobLoach has successfully implemented a mimic of pastebin at http://www.drupalbin.com

It would be very useful if we could implement this functionality on DD2, so that we could keep snippets indefinitely on the site (presumably we'd need some sort of cleaning mechanism however).

This just keeps lots of relevant stuff in one place.

I'm happy to have a go at implementing this (as long as Rob tells me how he did it!) :)

Comments

dmitrig01’s picture

I agree. Maybe if we have some way to attach them to lessons.

BTW, it's the geshifilter module that does it all.

niklp’s picture

I imagine that "Fix" uses http://drupal.org/project/node_clone ?

dmitrig01’s picture

yup

niklp’s picture

Further to that, can we tag pastebins with taxonomy...? Similar to the potential facet of the bookmarking feature I mentioned here? It would be nice if there was a way to keep everything for each lesson centralised.

I know from my point of view, I've had a hell of a time finding screencasts, etc in the past. I just want ONE node, with a link to everything on it. No fuss, no muss.

add1sun’s picture

I agree with having all relevant info for a lesson be in one easy location. (I do feel that we pretty much do that now though since each lesson has links for IRC, class notes, screencast, etc. even though they aren't used for every lesson.)

If we want code added for lessons, we don't necessarily need a fullblown pastebin since we can simply create a content type for lesson code/notes and add them that way. Is what you are thinking of somewhere is these three avenues I could see?

1) Full pastebin (like pastebin.com or drupalbin.com) for full time use however people want to use it.
2) A way for anyone to add code snippets that are related to a particular lesson as they work on/discover things, i.e. not necessarily "official" code from the lesson but additional things that people can add later.
3) A way to show code related to specific lessons as provided by the instructor and directly related to the content they have used. Sort of the "official" code, like workbook snippets.

I'm open to code snips but right now I'm not inclined to option #1 necessarily since other very good things already exist for that and I don't feel the Dojo needs to supply that.

niklp’s picture

Yes and no. Consider the following.

Dojo starts. joshk opens a new pastebin and promptly starts wobbling on about nodeapi or something, pastes some code in our very own pastebin. This then updates a link in the dojo lesson page, "Latest notes" or something.

As the lesson continues, josh can paste various new bits of code into the 'bin. Everyone has a constantly updated link to it. When he makes a glaring, buffoon-ish typo (sorry about all this, josh), dmitri or someone will spot it instantly, update the 'bin automatically and inform the irc channel (or whatever), the contents of which can then all update their screens, if they wish.

When the lesson ends, josh can mark the notes as finished (cck field) which can maybe close the bin to updates, mark it as "permanent", flag it up as such on the lesson page, and open comments. Something like that, bit hazy.

The difference here is that we could essentially have this as a sort of "private" bin, where it might only be open during lessons. We have The Power. Other than that, it could be open I guess; I tend to use http://drupalbin.com as a matter of course now, as the interface is nice, and I know where I stand, and it does Drupal syntax highlighting. Bottom line is, it doesn't have to be a traditional bin.

So, your three avenues: 1) see above; 2) see Comments module ;) and 3) see above ("final" code/notes) and also this melds with your suggestion for a content type for code/notes... same difference there, really.

add1sun’s picture

Sweet! Thanks for the explanation and I think that is a great use case.

add1sun’s picture

http://drupal.org/node/205676 => Code snippet / pastebin => Drupal Dojo 2.0, Website, normal, active, 2 IRC mentions
[14:46] i propose we set this to want/normal
[14:46] +1 hell yes
[14:46] normal
[14:46] it would be really useful, plus it ties in lovely with the bookmarks feature
[14:46] +1
[14:46] that would be cool; not sure how complex it woudl be to implement tho...
[14:46] plus my other reason as in ongoing 'bins for teachers etc as per the issue
[14:46] +1
[14:46] it's not that hard, josh_k
[14:47] +1, but not a high priority
[14:47] there's a module isnt there?
[14:47] josh_k, that's why i'd say not need
[14:47] josh_k: the bin is easy, robloach has already implemented it
[14:47] josh_k: It'll save me from manually updating 12 different links as the leson progreses
[14:47] +1
[14:47] +1
[14:47] I propose need/critical
[14:47] basically the lesson page would just update to the latest bin
[14:47] well if the module exists...
[14:48] http://drupalbin.com/
[14:48] ok, so the tally is +1
[14:48] but dmitrig01 proposes need vs want
[14:48] I really need it to work
[14:48] so please state either need or want in response
[14:48] I think it's too useful in terms of how it would integrate with other proposed features to leave out, mself
[14:48] So I don't have to update our lesson node so often
[14:48] +want
[14:49] want
[14:49] +need
[14:49] It's a lot of changing pastebin links for me if we don't have this
[14:49] if you're saying want, I think maybe you haven't read the thread...
[14:49] And I'm all about automation on this new site
[14:49] and what Senpai said basically the thing, which I mentioned there
[14:49] NikLP, no i am trying to keep the bare minumm needed to makea dojo site
[14:49] down in scope
[14:49] "said is"
[14:49] so we can accomplish it quickly
[14:50] i love the idea
[14:50] but it is not bare bones to me
[14:50] well this has already been built, so we just need to copy it and tack some glue code in, job done.
[14:50] why not have it is really the question
[14:50] That's what I'm sayin
[14:50] i don't think want means it's not going to get done
[14:50] vote peeps
[14:50] it's just not the first priority
[14:50] +1 need
[14:50] I really don't think its that hard to implement
[14:50] yeah it doesn't mean we won't do it
[14:50] simply that the needs have to be done first
[14:50] its done already! :) put it in! :p
[14:50] +1
[14:51] 10!
[14:51] Discussion of this issue is going 'round in circles, cause we've been talking about it for more than ten minutes. Let's vote!
[14:51] I think that if we try to stick stuff in later, it will make things more awkward
[14:51] guardian gusaus gusaus_
[14:51] +1 want
[14:51] ++++1 need
[14:51] josh_k, gusaus do you have a vote on need vs want?
[14:51] +1 want
[14:52] +1 want
[14:52] in real terms, this is less important than a good library, good scheduling, etc
[14:52] right
[14:52] ok, anymore votes?
[14:52] +1 need
[14:52] the tally is 4 want and 3 need
[14:52] add1sun: Is it split?
[14:52] * dmitrig01 asks for a re-count
[14:52] :P
[14:52] haha
[14:52] josh_k: library = bookmarks :)
[14:52] Senpai: need or want
[14:52] ?
[14:52] If it's split, mark it as want
[14:52] Senpai, it is 4/3
[14:53] We can roll it in easily at a later date
[14:53] * NikLP is now known as NikLP2
[14:53] me, josh_k , brenda003 gusaus = want
[14:53] +need ;)
[14:53] NikLP2, dmitrig01 , Senpai = need
[14:53] add1sun: Mark it as a want

add1sun’s picture

Status: Active » Closed (fixed)

Project is abandoned. Closing all issues.

gusaus’s picture

Assigned: niklp » gusaus
Status: Closed (fixed) » Postponed (maintainer needs more info)

The DrupalBin module looks like a good potential solution.

Features
* Submit code fragments and get a URL like http://drupalbin.com/2 with Drupal-based code highlighting
* Share clean code links on IRC, or an IM conversation
* Submit modifications of existing code
* Download code snippets

Module page and group:
http://drupal.org/project/drupalbin
http://groups.drupal.org/drupalbin

gusaus’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing and resetting this issue here - http://drupal.org/node/574162