Lists: | pgsql-www |
---|
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Code snippet hosting? |
Date: | 2009-03-19 14:34:46 |
Message-ID: | 49C25806.9030505@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
People often post a function, a script, or a complex query that is
general enough to be worth keeping but perhaps not appropriate for
pgfoundry or the documentation. MySQL has a code snippet service for
that: <http://forge.mysql.com/tools/>. I think something like this
would be quite useful for PostgreSQL as well. Perhaps the wiki could be
used for that; I'm not sure.
Ideas anyone?
From: | Mike Ellsworth <younicycle(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:07:54 |
Message-ID: | 219951fd0903190807w2e7a1b56k39ad7876781878b0@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thu, Mar 19, 2009 at 10:34 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> People often post a function, a script, or a complex query that is general
> enough to be worth keeping but perhaps not appropriate for pgfoundry or the
> documentation. MySQL has a code snippet service for that:
> <http://forge.mysql.com/tools/>. I think something like this would be quite
> useful for PostgreSQL as well. Perhaps the wiki could be used for that; I'm
> not sure.
>
> Ideas anyone?
No ideas for implementation - but it would be a great service to the
community and a big + for Advocacy.
From: | "Gavin M(dot) Roy" <gmr(at)ehpg(dot)net> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:14:59 |
Message-ID: | af1bce590903190814n45689691nf095d76b26c3a485@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
It wouldn't be hard for me to rebrand privatepaste.com and add the few
additional pieces (and perhaps remove others) for this.
On Thu, Mar 19, 2009 at 10:34 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> People often post a function, a script, or a complex query that is general
> enough to be worth keeping but perhaps not appropriate for pgfoundry or the
> documentation. MySQL has a code snippet service for that: <
> http://forge.mysql.com/tools/>. I think something like this would be
> quite useful for PostgreSQL as well. Perhaps the wiki could be used for
> that; I'm not sure.
>
> Ideas anyone?
>
> --
> Sent via pgsql-www mailing list (pgsql-www(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-www
>
From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:15:31 |
Message-ID: | 37ed240d0903190815v16adf79ble0a4e361f203ed74@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, Mar 20, 2009 at 1:34 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> People often post a function, a script, or a complex query that is general
> enough to be worth keeping but perhaps not appropriate for pgfoundry or the
> documentation. MySQL has a code snippet service for that:
> <http://forge.mysql.com/tools/>. I think something like this would be quite
> useful for PostgreSQL as well. Perhaps the wiki could be used for that; I'm
> not sure.
Cool idea. With a little massaging the wiki could accomodate this ...
there are syntax highlighting plugins we could install to get the code
snippets looking nice. Wouldn't be as fancy as the MySQL site you
linked, but it would do the job.
Cheers,
BJ
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:31:19 |
Message-ID: | 20090319153119.GE8874@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Brendan Jurd escribió:
> On Fri, Mar 20, 2009 at 1:34 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > People often post a function, a script, or a complex query that is general
> > enough to be worth keeping but perhaps not appropriate for pgfoundry or the
> > documentation. MySQL has a code snippet service for that:
> > <http://forge.mysql.com/tools/>. I think something like this would be quite
> > useful for PostgreSQL as well. Perhaps the wiki could be used for that; I'm
> > not sure.
>
> Cool idea. With a little massaging the wiki could accomodate this ...
> there are syntax highlighting plugins we could install to get the code
> snippets looking nice.
+1
Just make sure there are appropriate category tags.
Maybe we should use a separate namespace for this? Snippet: or
something like that ... not sure if this is a good idea.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From: | David Blewett <david(at)dawninglight(dot)net> |
---|---|
To: | "pgsql-www(at)postgresql(dot)org" <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:38:58 |
Message-ID: | 9d1f8d830903190838k30fbf0d2t776d5b614f36bc20@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thu, Mar 19, 2009 at 10:34 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> I think something like this would be quite
> useful for PostgreSQL as well. Perhaps the wiki could be used for that; I'm
> not sure.
Django has something like that [1]. Just a thought.
David Blewett
From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:41:09 |
Message-ID: | 37ed240d0903190841p46e9e2f4k7a9915a3ccf76fc9@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, Mar 20, 2009 at 2:31 AM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
>
> +1
>
> Just make sure there are appropriate category tags.
Indeed. If we use categories properly, that gives us (for free) an
alphabetical index of all available snippets.
>
> Maybe we should use a separate namespace for this? Snippet: or
> something like that ... not sure if this is a good idea.
I'm lukewarm about creating a namespace for it. I reckon we could
just allow people to create pages for their snippets and if at some
future time we start getting into page name collisions, we cross that
bridge. Another option, if the snippets start cluttering up the Main
namespace, is to make them subpages.
So, anybody got a useful code snippet they would like to volunteer as
a first test subject? =) Failing that, we could write up the
Mandelbrot recursive query demo.
Cheers,
BJ
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:45:00 |
Message-ID: | 20090319154500.GH8874@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Brendan Jurd escribió:
> So, anybody got a useful code snippet they would like to volunteer as
> a first test subject? =) Failing that, we could write up the
> Mandelbrot recursive query demo.
I support the Mandelbrot query as the first snippet :-)
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:52:06 |
Message-ID: | 1237477926.21112.0.camel@jd-laptop.pragmaticzealot.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thu, 2009-03-19 at 11:45 -0400, Alvaro Herrera wrote:
> Brendan Jurd escribió:
>
> > So, anybody got a useful code snippet they would like to volunteer as
> > a first test subject? =) Failing that, we could write up the
> > Mandelbrot recursive query demo.
>
> I support the Mandelbrot query as the first snippet :-)
Why wouldn't we just use the wiki for this?
Joshua D. Drake
>
> --
> Alvaro Herrera http://www.CommandPrompt.com/
> The PostgreSQL Company - Command Prompt, Inc.
>
--
PostgreSQL - XMPP: jdrake(at)jabber(dot)postgresql(dot)org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The PostgreSQL Company, serving since 1997
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:54:58 |
Message-ID: | 20090319155458.GK8874@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Joshua D. Drake escribió:
> On Thu, 2009-03-19 at 11:45 -0400, Alvaro Herrera wrote:
> > Brendan Jurd escribió:
> >
> > > So, anybody got a useful code snippet they would like to volunteer as
> > > a first test subject? =) Failing that, we could write up the
> > > Mandelbrot recursive query demo.
> >
> > I support the Mandelbrot query as the first snippet :-)
>
> Why wouldn't we just use the wiki for this?
Please go have some coffee and reread the thread :-)
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | jd(at)commandprompt(dot)com |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 15:55:53 |
Message-ID: | 37ed240d0903190855j7cec54beq91b5529124a4093d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, Mar 20, 2009 at 2:52 AM, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
> On Thu, 2009-03-19 at 11:45 -0400, Alvaro Herrera wrote:
>> Brendan Jurd escribió:
>>
>> > So, anybody got a useful code snippet they would like to volunteer as
>> > a first test subject? =) Failing that, we could write up the
>> > Mandelbrot recursive query demo.
>>
>> I support the Mandelbrot query as the first snippet :-)
>
> Why wouldn't we just use the wiki for this?
Um. That's ... what we're talking about?
The conversation you're quoting was about which piece of code we might
use, to start playing with a wiki implementation.
Cheers,
BJ
From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 16:03:41 |
Message-ID: | 1237478621.21112.5.camel@jd-laptop.pragmaticzealot.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, 2009-03-20 at 02:55 +1100, Brendan Jurd wrote:
> On Fri, Mar 20, 2009 at 2:52 AM, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
> > On Thu, 2009-03-19 at 11:45 -0400, Alvaro Herrera wrote:
> >> Brendan Jurd escribió:
> >>
> >> > So, anybody got a useful code snippet they would like to volunteer as
> >> > a first test subject? =) Failing that, we could write up the
> >> > Mandelbrot recursive query demo.
> >>
> >> I support the Mandelbrot query as the first snippet :-)
> >
> > Why wouldn't we just use the wiki for this?
>
> Um. That's ... what we're talking about?
>
> The conversation you're quoting was about which piece of code we might
> use, to start playing with a wiki implementation.
Oh. Well I think I will go do what Alvaro just suggested.
Joshua D. Drake
>
> Cheers,
> BJ
>
--
PostgreSQL - XMPP: jdrake(at)jabber(dot)postgresql(dot)org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The PostgreSQL Company, serving since 1997
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 17:04:24 |
Message-ID: | 49C27B18.5020604@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On 3/19/09 7:34 AM, Peter Eisentraut wrote:
> People often post a function, a script, or a complex query that is
> general enough to be worth keeping but perhaps not appropriate for
> pgfoundry or the documentation. MySQL has a code snippet service for
> that: <http://forge.mysql.com/tools/>. I think something like this would
> be quite useful for PostgreSQL as well. Perhaps the wiki could be used
> for that; I'm not sure.
Yeah, this was *supposed* to be a feature of GForge when we adopted it.
It wasn't until after we lit up GForge and moved the accounts over
from GBorg that Tim let me know that the snippets stuff didn't work and
he was planning on dumping it.
In theory also, Roberto Mello was going to come back a year ago and
re-build the function repository, but he never did.
So let's use whatever we can get up quickly. If we're going to use a
wiki for this, though, can it be a separate wiki from
wiki.postgresql.org? If I'm searching for a specific function, I don't
want to hit dozens of pages about database conversion and commitfests.
--Josh
From: | Greg Smith <gsmith(at)gregsmith(dot)com> |
---|---|
To: | Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 17:06:19 |
Message-ID: | alpine.GSO.2.01.0903191253410.17946@westnet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, 20 Mar 2009, Brendan Jurd wrote:
> So, anybody got a useful code snippet they would like to volunteer as
> a first test subject?
The snippet I use the most is already on the Wiki in the admin section:
http://wiki.postgresql.org/wiki/Disk_Usage
I was recently poking at the now defunct PostgreSQL CookBook:
http://web.archive.org/web/20031207045017/http://www.brasileiro.net/postgres/cookbook/
Two problems with grabbing a bunch of those: the licensing is unclear for
code submissions to that old site, and not everything will still work
against a current release.
But it does suggest some useful categorization for organizing a collection
of snippets.
--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD
From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 17:30:52 |
Message-ID: | 1237483853.21112.24.camel@jd-laptop.pragmaticzealot.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thu, 2009-03-19 at 10:04 -0700, Josh Berkus wrote:
> So let's use whatever we can get up quickly. If we're going to use a
> wiki for this, though, can it be a separate wiki from
> wiki.postgresql.org? If I'm searching for a specific function, I don't
> want to hit dozens of pages about database conversion and commitfests.
I disagree. I think we should keep it under the main wiki. Just create a
new section.
Joshua D. Drake
>
> --Josh
>
--
PostgreSQL - XMPP: jdrake(at)jabber(dot)postgresql(dot)org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The PostgreSQL Company, serving since 1997
From: | "Greg Sabino Mullane" <greg(at)turnstep(dot)com> |
---|---|
To: | pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 18:51:34 |
Message-ID: | 5c9b234a199b17b26e32266ef2dc62d4@biglumber.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
> So let's use whatever we can get up quickly. If we're going to use a
> wiki for this, though, can it be a separate wiki from
> wiki.postgresql.org?
Ugh, please no. We have too many domains and sites as it is: we should
be moving towards consolidation, not expansion.
If the wiki needs something to get the code snippets looking nice, etc.,
let me know, I've gotten pretty handy with MediaWiki lately. Speaking
of which, we should upgrade the wiki to a recent stable version (and upgrade
the PG backend as well)
- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200903191449
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----
iEYEAREDAAYFAknClC4ACgkQvJuQZxSWSsi+iwCg1c2K4HXMSZC9lfWJQ46ftA/S
O2sAn1qY+rbGXjHKQdrg700L5RkPPVCR
=C/jH
-----END PGP SIGNATURE-----
From: | Selena Deckelmann <selenamarie(at)gmail(dot)com> |
---|---|
To: | Greg Sabino Mullane <greg(at)turnstep(dot)com> |
Cc: | pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 18:59:06 |
Message-ID: | 2b5e566d0903191159p312959cfje50cdd12aea995c1@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thu, Mar 19, 2009 at 11:51 AM, Greg Sabino Mullane <greg(at)turnstep(dot)com>wrote:
>
> > So let's use whatever we can get up quickly. If we're going to use a
> > wiki for this, though, can it be a separate wiki from
> > wiki.postgresql.org?
>
> Ugh, please no. We have too many domains and sites as it is: we should
> be moving towards consolidation, not expansion.
+1
A nice format, with an easily distinguishable tag would be sweet. Then we
could publish a feed of the changes, and let people re-mix/re-format as
they'd like.
Greg - could you make something based on the 'show highlighted code'
example? That included a section for tags, and a description?
i.e. http://forge.mysql.com/tools/tool.php?id=85
If the wiki needs something to get the code snippets looking nice, etc.,
> let me know, I've gotten pretty handy with MediaWiki lately. Speaking
> of which, we should upgrade the wiki to a recent stable version (and
> upgrade
> the PG backend as well)
>
+10 (I'm not volunteering to do it, however.)
-selena
--
Selena Deckelmann
Open Source Bridge - http://www.opensourcebridge.org
PDXPUG - http://pugs.postgresql.org/pdx
Me - http://www.chesnok.com/daily
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Selena Deckelmann <selenamarie(at)gmail(dot)com> |
Cc: | Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 19:11:35 |
Message-ID: | 20090319191135.GN8874@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Selena Deckelmann escribió:
> Greg - could you make something based on the 'show highlighted code'
> example? That included a section for tags, and a description?
>
> i.e. http://forge.mysql.com/tools/tool.php?id=85
This should be just a matter of installing a syntax highlighter
mediawiki extension, like enscript, GeSHi or ASHighlight
http://www.mediawiki.org/wiki/Extension:Enscript
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
http://www.mediawiki.org/wiki/Extension:ASHighlight
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-www(at)postgresql(dot)org |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 19:52:56 |
Message-ID: | 200903192152.57646.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thursday 19 March 2009 17:45:00 Alvaro Herrera wrote:
> Brendan Jurd escribió:
> > So, anybody got a useful code snippet they would like to volunteer as
> > a first test subject? =) Failing that, we could write up the
> > Mandelbrot recursive query demo.
>
> I support the Mandelbrot query as the first snippet :-)
Alright:
http://wiki.postgresql.org/wiki/Snippets
http://wiki.postgresql.org/wiki/Snippets/Mandelbrot_set
Now someone install all the plugins to do the syntax highlighting on the
subpage and produce some kind of recently-added or most-often-viewed index on
the superpage.
Or scrap it if you have a better idea. ;-)
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 20:05:45 |
Message-ID: | 49C2A599.5030702@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On 3/19/09 10:30 AM, Joshua D. Drake wrote:
> On Thu, 2009-03-19 at 10:04 -0700, Josh Berkus wrote:
>
>> So let's use whatever we can get up quickly. If we're going to use a
>> wiki for this, though, can it be a separate wiki from
>> wiki.postgresql.org? If I'm searching for a specific function, I don't
>> want to hit dozens of pages about database conversion and commitfests.
>
> I disagree. I think we should keep it under the main wiki. Just create a
> new section.
Can you search just a section?
--Josh
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-www(at)postgresql(dot)org, Brendan Jurd <direvus(at)gmail(dot)com> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 20:45:08 |
Message-ID: | 20090319204508.GP8874@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Peter Eisentraut escribió:
> Alright:
>
> http://wiki.postgresql.org/wiki/Snippets
> http://wiki.postgresql.org/wiki/Snippets/Mandelbrot_set
>
> Now someone install all the plugins to do the syntax highlighting on the
> subpage and produce some kind of recently-added or most-often-viewed index on
> the superpage.
Okay, Stefan was kind enough to install the syntax highlighter
extension. I gave it a try and it seems to work great -- thanks, Stefan.
I don't know how to create an index of subpages in the superpage, but I
added category tags so you can see the snippet index here:
http://wiki.postgresql.org/wiki/Category:Snippets
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 21:06:35 |
Message-ID: | 37ed240d0903191406t72480feay95518a7bdee03808@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, Mar 20, 2009 at 7:45 AM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Peter Eisentraut escribió:
>
>> Alright:
>>
>> http://wiki.postgresql.org/wiki/Snippets
>> http://wiki.postgresql.org/wiki/Snippets/Mandelbrot_set
>>
> Okay, Stefan was kind enough to install the syntax highlighter
> extension. I gave it a try and it seems to work great -- thanks, Stefan.
Nice. It does a good job of highlighting the SQL.
I took the liberty of adding the results of the Mandelbrot query to
the page while I was there =)
We could also make a template for a snippet "infobox" that appears
floated to one side and shows some pertinent attributes of the
snippet, such as what language it's in and which version of Postgres
it works with, any dependencies, etc.
>
> I don't know how to create an index of subpages in the superpage, but I
> added category tags so you can see the snippet index here:
> http://wiki.postgresql.org/wiki/Category:Snippets
Probably relying on the category index is the right way to go ... the
superpage could just give an intro explaining what snippets are, and
maybe how to go about adding them, and link to the category page.
Cheers,
BJ
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-19 21:12:09 |
Message-ID: | 20090319211208.GQ8874@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Brendan Jurd escribió:
> On Fri, Mar 20, 2009 at 7:45 AM, Alvaro Herrera
> <alvherre(at)commandprompt(dot)com> wrote:
> We could also make a template for a snippet "infobox" that appears
> floated to one side and shows some pertinent attributes of the
> snippet, such as what language it's in and which version of Postgres
> it works with, any dependencies, etc.
+1 to that too!
(Note that I added a category tag for the language too.)
> > I don't know how to create an index of subpages in the superpage, but I
> > added category tags so you can see the snippet index here:
> > http://wiki.postgresql.org/wiki/Category:Snippets
>
> Probably relying on the category index is the right way to go ... the
> superpage could just give an intro explaining what snippets are, and
> maybe how to go about adding them, and link to the category page.
Sounds good.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | pgsql-www(at)postgresql(dot)org, Brendan Jurd <direvus(at)gmail(dot)com> |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-20 08:19:33 |
Message-ID: | 49C35195.8040405@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Alvaro Herrera wrote:
> Peter Eisentraut escribió:
>
>> Alright:
>>
>> http://wiki.postgresql.org/wiki/Snippets
>> http://wiki.postgresql.org/wiki/Snippets/Mandelbrot_set
>>
>> Now someone install all the plugins to do the syntax highlighting on the
>> subpage and produce some kind of recently-added or most-often-viewed index on
>> the superpage.
>
> Okay, Stefan was kind enough to install the syntax highlighter
> extension. I gave it a try and it seems to work great -- thanks, Stefan.
>
> I don't know how to create an index of subpages in the superpage, but I
> added category tags so you can see the snippet index here:
> http://wiki.postgresql.org/wiki/Category:Snippets
Maybe the subpages approach isn't so great then, because the
alphabetical index in the category listing puts everything under "S" now.
I suggest that we keep /Snippets as a kind of info and index page, but
move the rest to the top level and rely on the category tag exlusively.
From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-20 10:28:04 |
Message-ID: | 37ed240d0903200328s495f95c9v20b92e5cf7083db2@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, Mar 20, 2009 at 7:19 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> Maybe the subpages approach isn't so great then, because the alphabetical
> index in the category listing puts everything under "S" now.
>
> I suggest that we keep /Snippets as a kind of info and index page, but move
> the rest to the top level and rely on the category tag exlusively.
>
+1
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-20 14:30:12 |
Message-ID: | 20090320143011.GA8313@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Brendan Jurd escribió:
> On Fri, Mar 20, 2009 at 7:19 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > Maybe the subpages approach isn't so great then, because the alphabetical
> > index in the category listing puts everything under "S" now.
> >
> > I suggest that we keep /Snippets as a kind of info and index page, but move
> > the rest to the top level and rely on the category tag exlusively.
>
> +1
Done.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-21 15:59:13 |
Message-ID: | 20090321155913.GS5359@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Fri, Mar 20, 2009 at 10:30:12AM -0400, Alvaro Herrera wrote:
> Brendan Jurd escribió:
> > On Fri, Mar 20, 2009 at 7:19 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > > Maybe the subpages approach isn't so great then, because the
> > > alphabetical index in the category listing puts everything under
> > > "S" now.
> > >
> > > I suggest that we keep /Snippets as a kind of info and index
> > > page, but move the rest to the top level and rely on the
> > > category tag exlusively.
> >
> > +1
>
> Done.
How do we add language categories?
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | David Fetter <david(at)fetter(dot)org> |
Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-21 22:21:56 |
Message-ID: | 20090321222156.GA4618@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
David Fetter escribió:
> How do we add language categories?
I just added some instructions in the snippets talk page.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org |
Subject: | Re: Code snippet hosting? |
Date: | 2009-03-22 01:38:18 |
Message-ID: | 20090322013818.GT5359@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Sat, Mar 21, 2009 at 06:21:56PM -0400, Alvaro Herrera wrote:
> David Fetter escribió:
>
> > How do we add language categories?
>
> I just added some instructions in the snippets talk page.
Thanks :)
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate