From ml at beeblebrox.net Thu May 3 16:03:09 2007
From: ml at beeblebrox.net (Thomas Weibel)
Date: Thu, 03 May 2007 22:03:09 +0200
Subject: How to create a drop-down list with Markaby?
Message-ID: <1178222589.30169.10.camel@marvin>
Hi
I couldn't figure out, how to create a drop-down list with Markaby. How
would I create something like this:
Marvin the paranoid Android
Arthur Dent
Zaphod Beeblebrox
Tricia McMillan
Ford Prefect
with Markaby?
Thanks,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070503/8407f449/attachment.bin
From david.gurba at gmail.com Thu May 3 16:09:10 2007
From: david.gurba at gmail.com (David Gurba)
Date: Thu, 03 May 2007 13:09:10 -0700
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178222589.30169.10.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
Message-ID: <463A4166.2010606@gmail.com>
Thomas Weibel wrote:
> Hi
>
> I couldn't figure out, how to create a drop-down list with Markaby. How
> would I create something like this:
>
>
> Marvin the paranoid Android
> Arthur Dent
> Zaphod Beeblebrox
> Tricia McMillan
> Ford Prefect
>
>
> with Markaby?
>
> Thanks,
> Thomas
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
Something like this is maybe what you want:
# form for selecting projects to backup.
def _backup_projects_form
if @res then
b "Status:"; _status_type(@res[0]);
p text(@res[1])
else
span.warning do
'backing up a project can take several minutes'
end
p 'Select project(s) to backup: ';
form :id => :backupprojects, :method => :post, :action => R(Backup) do
tag! :select, :name => 'project_list' do
#,:multiple=>:multiple,:size=>10
_active_projects_list.each do |p|
tag! :option, p
end
end
br
input :type => :submit, :value => 'Backup Selected Projects'
end
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070503/1e19adfe/attachment-0001.html
From twoggle at gmail.com Fri May 4 04:45:14 2007
From: twoggle at gmail.com (Tim Fletcher)
Date: Fri, 4 May 2007 09:45:14 +0100
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178222589.30169.10.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
Message-ID:
On 03/05/07, Thomas Weibel wrote:
> I couldn't figure out, how to create a drop-down list with Markaby. How
> would I create something like this:
>
>
> Marvin the paranoid Android
> Arthur Dent
> Zaphod Beeblebrox
> Tricia McMillan
> Ford Prefect
>
>
> with Markaby?
This works for me (Markaby 0.5)...
html = Markaby::Builder.new do
select :name => 'character' do
option 'Marvin the paranoid Android', :value => 'marvin'
option 'Arthur Dent', :value => 'arthur'
option 'Zaphod Beeblebrox', :value => 'zaphod'
option 'Tricia McMillan', :value => 'trillian'
option 'Ford Prefect', :value => 'ford'
end
end
From fisheye at metacasa.net Fri May 4 07:57:29 2007
From: fisheye at metacasa.net (John Sheets)
Date: Fri, 4 May 2007 06:57:29 -0500
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178222589.30169.10.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
Message-ID:
On May 3, 2007, at 3:03 PM, Thomas Weibel wrote:
> Hi
>
> I couldn't figure out, how to create a drop-down list with Markaby.
> How
> would I create something like this:
>
>
> Marvin the paranoid Android
> Arthur Dent
> Zaphod Beeblebrox
> Tricia McMillan
> Ford Prefect
>
Here's a helper method I use with Camping. You can pass in a simple
array if your value matches your display text like ["value1",
"value2", ...], or nested array pairs of [ ["value1",
"display1"], ... ] if they don't.
def select_form(action, label_text, field_name, option_list,
button_text = "Submit")
form :action => action, :method => "post" do
label label_text; br
select :name => field_name do
option_list.each do |value, text|
option(text || value, :value => value)
end
end
input :type => "submit", :value => button_text
end
end
Your example above would look something like:
options = [ ["marvin", "Marvin the paranoid Android"],
["arthur", "Arthur Dent"], ... ]
select_form(R(MyController), "Select a hitchhiker:", "character",
options)
It should also be easy to extract just the portion. In fact
I think I'll do that on my end too...
John
--
"The Internet is not something you just dump something
on. It's not a big truck. It's a series of tubes."
--Senator Ted Stevens, R-AK
John R. Sheets
http://bark.metacasa.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070504/2cf1ba43/attachment.html
From ml at beeblebrox.net Fri May 4 08:39:28 2007
From: ml at beeblebrox.net (Thomas Weibel)
Date: Fri, 04 May 2007 14:39:28 +0200
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178222589.30169.10.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
Message-ID: <1178282368.16957.4.camel@marvin>
Thanks for all your answers, I finally got it working.
It's a shame, Markaby is not documented more detailed.
Thanks again,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070504/de3d71fa/attachment.bin
From ml at beeblebrox.net Fri May 4 10:26:40 2007
From: ml at beeblebrox.net (Thomas Weibel)
Date: Fri, 04 May 2007 16:26:40 +0200
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178222589.30169.10.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
Message-ID: <1178288800.16957.7.camel@marvin>
One more thing: How would I preselect a certain entry like this?
Marvin the paranoid
Android
Arthur Dent
Zaphod Beeblebrox
Thanks,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070504/9bfd501e/attachment.bin
From boss at topfunky.com Fri May 4 10:27:36 2007
From: boss at topfunky.com (Geoffrey Grosenbach)
Date: Fri, 4 May 2007 07:27:36 -0700
Subject: CampingConf?
Message-ID: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
Campers --
In a few weeks there will be a bunch of people in Portland, OR, for a
conference. A long time ago some campers mentioned that might be a
good time for us to get together and hold a mini CampingConf for a few
hours. Is anyone interested? Does anyone want to organize it?
I'm thinking Wednesday night, May 16.
We could possibly get a spot at FreeGeek (not likely since they are
often booked), or there are small venues nearby that could be rented
(I'd be glad to foot the bill). Seattle.rb has a projector that we
could use.
--
Geoffrey Grosenbach
boss at topfunky.com
p.s.: r.i.p. RedHanded, it's been a fun ride.
From ml at beeblebrox.net Fri May 4 10:33:02 2007
From: ml at beeblebrox.net (Thomas Weibel)
Date: Fri, 04 May 2007 16:33:02 +0200
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178288800.16957.7.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
<1178288800.16957.7.camel@marvin>
Message-ID: <1178289182.16957.9.camel@marvin>
On Fri, 2007-05-04 at 16:26 +0200, Thomas Weibel wrote:
> One more thing: How would I preselect a certain entry like this?
Never mind, I figured it out:
@roles.each { |k,v|
if @user and @roles[@user.role].to_s == v.to_s
option v.to_s, :value => k, :selected => "selected"
else
option v.to_s, :value => k
end
}
Obviously, XHTML need "selected='selected'" anyway.
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070504/b1835f9c/attachment.bin
From jeremymcanally at gmail.com Fri May 4 10:37:43 2007
From: jeremymcanally at gmail.com (Jeremy McAnally)
Date: Fri, 4 May 2007 10:37:43 -0400
Subject: CampingConf?
In-Reply-To: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
Message-ID:
I unfortunately won't be able to make it if you guys do have something
on the 16th. Plane tickets were a lot more expensive on the 16th
rather than the 17th (for some reason), so the wife veto'd that idea.
;)
The 17th is just tutorial day anyhow; if you could do it that day I'd
be happy to attend (or organize, if need be).
--Jeremy
On 5/4/07, Geoffrey Grosenbach wrote:
> Campers --
>
> In a few weeks there will be a bunch of people in Portland, OR, for a
> conference. A long time ago some campers mentioned that might be a
> good time for us to get together and hold a mini CampingConf for a few
> hours. Is anyone interested? Does anyone want to organize it?
>
> I'm thinking Wednesday night, May 16.
>
> We could possibly get a spot at FreeGeek (not likely since they are
> often booked), or there are small venues nearby that could be rented
> (I'd be glad to foot the bill). Seattle.rb has a projector that we
> could use.
>
> --
> Geoffrey Grosenbach
> boss at topfunky.com
>
> p.s.: r.i.p. RedHanded, it's been a fun ride.
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
http://www.jeremymcanally.com/
My free Ruby e-book:
http://www.humblelittlerubybook.com/book/
My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/
From whateley at gmail.com Fri May 4 10:24:16 2007
From: whateley at gmail.com (Brendan Taylor)
Date: Fri, 4 May 2007 08:24:16 -0600
Subject: How to create a drop-down list with Markaby?
In-Reply-To: <1178288800.16957.7.camel@marvin>
References: <1178222589.30169.10.camel@marvin>
<1178288800.16957.7.camel@marvin>
Message-ID: <20070504142416.GC31202@nyarlathotep.ed.shawcable.net>
On Fri, May 04, 2007 at 04:26:40PM +0200, Thomas Weibel wrote:
> One more thing: How would I preselect a certain entry like this?
option 'Marvin', :value => "marvin", :selected => "selected"
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070504/ffb6921b/attachment.bin
From tlockney at gmail.com Fri May 4 10:52:36 2007
From: tlockney at gmail.com (Thomas Lockney)
Date: Fri, 4 May 2007 07:52:36 -0700
Subject: CampingConf?
In-Reply-To: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
Message-ID:
On 5/4/07, Geoffrey Grosenbach wrote:
>
> Campers --
>
> In a few weeks there will be a bunch of people in Portland, OR, for a
> conference. A long time ago some campers mentioned that might be a
> good time for us to get together and hold a mini CampingConf for a few
> hours. Is anyone interested? Does anyone want to organize it?
>
> I'm thinking Wednesday night, May 16.
>
> We could possibly get a spot at FreeGeek (not likely since they are
> often booked), or there are small venues nearby that could be rented
> (I'd be glad to foot the bill). Seattle.rb has a projector that we
> could use.
The Lucky Lay on Hawthorne has a space available for rent:
http://luckylab.com/html/parties.html#brewpub
It's a decent place, centrally located and is one of the main locations used
for after-meeting-beers by the Portland Ruby Brigade.
--
Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070504/394765b3/attachment.html
From amdayton at gmail.com Fri May 4 10:54:44 2007
From: amdayton at gmail.com (Andrew Dayton)
Date: Fri, 4 May 2007 09:54:44 -0500
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
Message-ID: <77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
Perhaps the following weekend? It just so happens I'll be in Portland
that weekend, so it would work out well for me ... not that I would
expect anyone to change their schedule to fit mine (or know who I am
for that matter) ...
Oh yeah, and wouldn't it be .. you know ... more conceptually fit to
have CampingConf at a ... campsite? I've got a couple pretty long
extension chords I could bring, and I make a mean campfire hobo
dinner ...
Andy Dayton
On May 4, 2007, at 9:37 AM, Jeremy McAnally wrote:
> I unfortunately won't be able to make it if you guys do have something
> on the 16th. Plane tickets were a lot more expensive on the 16th
> rather than the 17th (for some reason), so the wife veto'd that idea.
> ;)
>
> The 17th is just tutorial day anyhow; if you could do it that day I'd
> be happy to attend (or organize, if need be).
>
> --Jeremy
>
> On 5/4/07, Geoffrey Grosenbach wrote:
>> Campers --
>>
>> In a few weeks there will be a bunch of people in Portland, OR, for a
>> conference. A long time ago some campers mentioned that might be a
>> good time for us to get together and hold a mini CampingConf for a
>> few
>> hours. Is anyone interested? Does anyone want to organize it?
>>
>> I'm thinking Wednesday night, May 16.
>>
>> We could possibly get a spot at FreeGeek (not likely since they are
>> often booked), or there are small venues nearby that could be rented
>> (I'd be glad to foot the bill). Seattle.rb has a projector that we
>> could use.
>>
>> --
>> Geoffrey Grosenbach
>> boss at topfunky.com
>>
>> p.s.: r.i.p. RedHanded, it's been a fun ride.
>> _______________________________________________
>> Camping-list mailing list
>> Camping-list at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/camping-list
>>
>
>
> --
> http://www.jeremymcanally.com/
>
> My free Ruby e-book:
> http://www.humblelittlerubybook.com/book/
>
> My blogs:
> http://www.mrneighborly.com/
> http://www.rubyinpractice.com/
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
From manfred at gmail.com Fri May 4 11:00:50 2007
From: manfred at gmail.com (Manfred Stienstra)
Date: Fri, 4 May 2007 17:00:50 +0200
Subject: CampingConf?
In-Reply-To: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
Message-ID: <1848CBD2-A4FB-4725-9B08-16C6179A9446@gmail.com>
On May 4, 2007, at 4:27, Geoffrey Grosenbach wrote:
>
> I'm thinking Wednesday night, May 16.
I wouldn't mind attending, and maybe even tell a short story for
around the campfire. I'm going to be in Portland from the 16th to the
23rd.
Manfred
From tlockney at gmail.com Fri May 4 11:17:51 2007
From: tlockney at gmail.com (Thomas Lockney)
Date: Fri, 4 May 2007 08:17:51 -0700
Subject: CampingConf?
In-Reply-To: <77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
Message-ID:
On 5/4/07, Andrew Dayton wrote:
>
> Perhaps the following weekend? It just so happens I'll be in Portland
> that weekend, so it would work out well for me ... not that I would
> expect anyone to change their schedule to fit mine (or know who I am
> for that matter) ...
While I won't be able to attend Railsconf, I've got big events the weekend
before (BarCampPortland) and the weekend after (PDXBot:
http://www.pdxbot.org), so I really, really hope it's not on the weekend.
;~)
Oth, I might be busy with organizational stuff most of the week in between
anyway. But if there's a CampingConf, I want to at least have the
possibility of making it out.
--
Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070504/dd48d675/attachment.html
From kprojection at gmail.com Fri May 4 11:37:48 2007
From: kprojection at gmail.com (Eric Mill)
Date: Fri, 4 May 2007 11:37:48 -0400
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
Message-ID:
I'd love to do a CampingConf, and I bet I have a couple coworkers
who'd like to do it. We're flying in on Thursday night though, my
flight arrives at 9:10pm PST, and we're leaving Monday morning. Maybe
Friday or Saturday night, before people are thoroughly exhausted from
RailsConf, we have it at night, in the dark, in the woods?
-- Eric
On 5/4/07, Thomas Lockney wrote:
> On 5/4/07, Andrew Dayton wrote:
> > Perhaps the following weekend? It just so happens I'll be in Portland
> > that weekend, so it would work out well for me ... not that I would
> > expect anyone to change their schedule to fit mine (or know who I am
> > for that matter) ...
>
> While I won't be able to attend Railsconf, I've got big events the weekend
> before (BarCampPortland) and the weekend after (PDXBot:
> http://www.pdxbot.org), so I really, really hope it's not on the weekend.
> ;~)
>
> Oth, I might be busy with organizational stuff most of the week in between
> anyway. But if there's a CampingConf, I want to at least have the
> possibility of making it out.
>
>
> --
> Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
From kprojection at gmail.com Fri May 4 11:39:01 2007
From: kprojection at gmail.com (Eric Mill)
Date: Fri, 4 May 2007 11:39:01 -0400
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
Message-ID:
My coworker raises a good point, saying that in the spirit of
CampingConf, it will have to take only 5 minutes, and we'll all give
our talks at once, using one single run on sentence.
-- Eric
On 5/4/07, Eric Mill wrote:
> I'd love to do a CampingConf, and I bet I have a couple coworkers
> who'd like to do it. We're flying in on Thursday night though, my
> flight arrives at 9:10pm PST, and we're leaving Monday morning. Maybe
> Friday or Saturday night, before people are thoroughly exhausted from
> RailsConf, we have it at night, in the dark, in the woods?
>
> -- Eric
>
> On 5/4/07, Thomas Lockney wrote:
> > On 5/4/07, Andrew Dayton wrote:
> > > Perhaps the following weekend? It just so happens I'll be in Portland
> > > that weekend, so it would work out well for me ... not that I would
> > > expect anyone to change their schedule to fit mine (or know who I am
> > > for that matter) ...
> >
> > While I won't be able to attend Railsconf, I've got big events the weekend
> > before (BarCampPortland) and the weekend after (PDXBot:
> > http://www.pdxbot.org), so I really, really hope it's not on the weekend.
> > ;~)
> >
> > Oth, I might be busy with organizational stuff most of the week in between
> > anyway. But if there's a CampingConf, I want to at least have the
> > possibility of making it out.
> >
> >
> > --
> > Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
> > _______________________________________________
> > Camping-list mailing list
> > Camping-list at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/camping-list
> >
>
From mark.m.fredrickson at gmail.com Fri May 4 11:41:53 2007
From: mark.m.fredrickson at gmail.com (Mark Fredrickson)
Date: Fri, 4 May 2007 10:41:53 -0500
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
Message-ID: <3db8a8970705040841j17551ca6uf0cac7b3b7bf8697@mail.gmail.com>
There should be an abridged conference, that everyone gets by default,
and an unabridged conference that you have to hunt around in the woods
to find.
-M
On 5/4/07, Eric Mill wrote:
> My coworker raises a good point, saying that in the spirit of
> CampingConf, it will have to take only 5 minutes, and we'll all give
> our talks at once, using one single run on sentence.
>
> -- Eric
>
> On 5/4/07, Eric Mill wrote:
> > I'd love to do a CampingConf, and I bet I have a couple coworkers
> > who'd like to do it. We're flying in on Thursday night though, my
> > flight arrives at 9:10pm PST, and we're leaving Monday morning. Maybe
> > Friday or Saturday night, before people are thoroughly exhausted from
> > RailsConf, we have it at night, in the dark, in the woods?
> >
> > -- Eric
> >
> > On 5/4/07, Thomas Lockney wrote:
> > > On 5/4/07, Andrew Dayton wrote:
> > > > Perhaps the following weekend? It just so happens I'll be in Portland
> > > > that weekend, so it would work out well for me ... not that I would
> > > > expect anyone to change their schedule to fit mine (or know who I am
> > > > for that matter) ...
> > >
> > > While I won't be able to attend Railsconf, I've got big events the weekend
> > > before (BarCampPortland) and the weekend after (PDXBot:
> > > http://www.pdxbot.org), so I really, really hope it's not on the weekend.
> > > ;~)
> > >
> > > Oth, I might be busy with organizational stuff most of the week in between
> > > anyway. But if there's a CampingConf, I want to at least have the
> > > possibility of making it out.
> > >
> > >
> > > --
> > > Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
> > > _______________________________________________
> > > Camping-list mailing list
> > > Camping-list at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/camping-list
> > >
> >
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
From why at whytheluckystiff.net Fri May 4 11:53:39 2007
From: why at whytheluckystiff.net (why the lucky stiff)
Date: Fri, 4 May 2007 10:53:39 -0500
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
Message-ID: <20070504155338.GR28530@beekeeper.hobix.com>
On Fri, May 04, 2007 at 11:39:01AM -0400, Eric Mill wrote:
> My coworker raises a good point, saying that in the spirit of
> CampingConf, it will have to take only 5 minutes, and we'll all give
> our talks at once, using one single run on sentence.
With a deep breath every 80th character.
You know, if everyone stood and read the complete code aloud in
unison, I think that would be sufficiently occult for my tastes.
_why
From jeremymcanally at gmail.com Fri May 4 11:53:03 2007
From: jeremymcanally at gmail.com (Jeremy McAnally)
Date: Fri, 4 May 2007 11:53:03 -0400
Subject: CampingConf?
In-Reply-To: <3db8a8970705040841j17551ca6uf0cac7b3b7bf8697@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
<3db8a8970705040841j17551ca6uf0cac7b3b7bf8697@mail.gmail.com>
Message-ID:
And the abridged one should be basically unintelligible, speaking only
in single letters.
On 5/4/07, Mark Fredrickson wrote:
> There should be an abridged conference, that everyone gets by default,
> and an unabridged conference that you have to hunt around in the woods
> to find.
>
> -M
>
> On 5/4/07, Eric Mill wrote:
> > My coworker raises a good point, saying that in the spirit of
> > CampingConf, it will have to take only 5 minutes, and we'll all give
> > our talks at once, using one single run on sentence.
> >
> > -- Eric
> >
> > On 5/4/07, Eric Mill wrote:
> > > I'd love to do a CampingConf, and I bet I have a couple coworkers
> > > who'd like to do it. We're flying in on Thursday night though, my
> > > flight arrives at 9:10pm PST, and we're leaving Monday morning. Maybe
> > > Friday or Saturday night, before people are thoroughly exhausted from
> > > RailsConf, we have it at night, in the dark, in the woods?
> > >
> > > -- Eric
> > >
> > > On 5/4/07, Thomas Lockney wrote:
> > > > On 5/4/07, Andrew Dayton wrote:
> > > > > Perhaps the following weekend? It just so happens I'll be in Portland
> > > > > that weekend, so it would work out well for me ... not that I would
> > > > > expect anyone to change their schedule to fit mine (or know who I am
> > > > > for that matter) ...
> > > >
> > > > While I won't be able to attend Railsconf, I've got big events the weekend
> > > > before (BarCampPortland) and the weekend after (PDXBot:
> > > > http://www.pdxbot.org), so I really, really hope it's not on the weekend.
> > > > ;~)
> > > >
> > > > Oth, I might be busy with organizational stuff most of the week in between
> > > > anyway. But if there's a CampingConf, I want to at least have the
> > > > possibility of making it out.
> > > >
> > > >
> > > > --
> > > > Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
> > > > _______________________________________________
> > > > Camping-list mailing list
> > > > Camping-list at rubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/camping-list
> > > >
> > >
> > _______________________________________________
> > Camping-list mailing list
> > Camping-list at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/camping-list
> >
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
http://www.jeremymcanally.com/
My free Ruby e-book:
http://www.humblelittlerubybook.com/book/
My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/
From rcoder at gmail.com Fri May 4 13:03:52 2007
From: rcoder at gmail.com (Lennon Day-Reynolds)
Date: Fri, 4 May 2007 10:03:52 -0700
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
<3db8a8970705040841j17551ca6uf0cac7b3b7bf8697@mail.gmail.com>
Message-ID: <5d4c61240705041003p761a5743ue6b105d525ef6e34@mail.gmail.com>
I had actually thought that the campsite idea could be a lot of fun.
There's a campground just outside of Portland called Oxbow along the
Sandy river that's just close enough to have cell phone service (i.e.,
'net connection) and AC at the campsites, but secluded and quiet at
night.
Since I won't actually be attending RailsConf, I'd be happy to help
establish a stable "Camp Camping" somewhere at Oxbow, and other folks
could stop by, hack for a while, hang out, and then either pitch a
tent or drive back into the city.
Just a thought,
Lennon
From chris at ozmm.org Fri May 4 13:22:07 2007
From: chris at ozmm.org (Chris Wanstrath)
Date: Fri, 4 May 2007 10:22:07 -0700
Subject: CampingConf?
In-Reply-To: <5d4c61240705041003p761a5743ue6b105d525ef6e34@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<77D3918B-D795-4EF6-9B25-83F5BBCEDD4C@gmail.com>
<3db8a8970705040841j17551ca6uf0cac7b3b7bf8697@mail.gmail.com>
<5d4c61240705041003p761a5743ue6b105d525ef6e34@mail.gmail.com>
Message-ID: <8b73aaca0705041022y6d9be298la493a902f2ad45a2@mail.gmail.com>
Yes, brilliant!
I'll be there. I have some leftover marshmallows and a hat.
On 5/4/07, Lennon Day-Reynolds wrote:
> I had actually thought that the campsite idea could be a lot of fun.
> There's a campground just outside of Portland called Oxbow along the
> Sandy river that's just close enough to have cell phone service (i.e.,
> 'net connection) and AC at the campsites, but secluded and quiet at
> night.
>
> Since I won't actually be attending RailsConf, I'd be happy to help
> establish a stable "Camp Camping" somewhere at Oxbow, and other folks
> could stop by, hack for a while, hang out, and then either pitch a
> tent or drive back into the city.
>
> Just a thought,
>
> Lennon
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
Chris Wanstrath
http://errfree.com // http://errtheblog.com
From lwu.two at gmail.com Fri May 4 13:51:55 2007
From: lwu.two at gmail.com (Leslie Wu)
Date: Fri, 4 May 2007 10:51:55 -0700
Subject: CampingConf?
In-Reply-To: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
Message-ID: <78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
I have set us up a memorial tumblelog for RedHanded:
http://redhanded.tumblr.com/
Please log-in and leave/linkto your fondest memories!
~L
On 5/4/07, Geoffrey Grosenbach wrote:
>
> In a few weeks there will be a bunch of people in Portland, OR, for a
> conference. A long time ago some campers mentioned that might be a
> good time for us to get together and hold a mini CampingConf for a few
> hours. Is anyone interested? Does anyone want to organize it?
>
> p.s.: r.i.p. RedHanded, it's been a fun ride.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070504/dbd0ab16/attachment.html
From drnicwilliams at gmail.com Fri May 4 14:35:58 2007
From: drnicwilliams at gmail.com (Nic Williams)
Date: Fri, 4 May 2007 20:35:58 +0200
Subject: CampingConf?
In-Reply-To: <78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
Message-ID: <44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
Who's bringing the internet to the campground?
On 5/4/07, Leslie Wu wrote:
>
> I have set us up a memorial tumblelog for RedHanded:
>
> http://redhanded.tumblr.com/
>
> Please log-in and leave/linkto your fondest memories!
>
> ~L
>
> On 5/4/07, Geoffrey Grosenbach wrote:
> >
> > In a few weeks there will be a bunch of people in Portland, OR, for a
> > conference. A long time ago some campers mentioned that might be a
> > good time for us to get together and hold a mini CampingConf for a few
> > hours. Is anyone interested? Does anyone want to organize it?
> >
> > p.s.: r.i.p. RedHanded, it's been a fun ride.
> >
> >
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
Dr Nic Williams
http://myconfplan.com - plan the next conference you go to
http://www.drnicwilliams.com - Ruby/Rails/Javascript/Web2.0
skype: nicwilliams
(p) +61 7 3102 3237 (Finds me anywhere in the world, via Skype)
(m) +4673 768 1389 (Swedish mobile)
(f) +61 7 3305 7572 (sends fax to my email)
Bj?rnsonsgatan 153, 16 844 Bromma, Sweden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070504/83b85ba4/attachment.html
From rcoder at gmail.com Fri May 4 14:44:56 2007
From: rcoder at gmail.com (Lennon Day-Reynolds)
Date: Fri, 4 May 2007 11:44:56 -0700
Subject: CampingConf?
In-Reply-To: <44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
Message-ID: <5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
On 5/4/07, Nic Williams wrote:
> Who's bringing the internet to the campground?
If I can scrounge up some cables, I've got two different phones
(personal and work) with unlimited data service, so I'll tent-atively
(sorry) commit to being responsible for bandwidth. Of course, even two
phones from two different providers may not be enough redundancy to
keep things up throughout...
(There was some interesting discussion at a recent PDX.rb meeting
about putting a cantenna on a small dirigible and pointing it back at
town, but it quickly degenerated into silliness.)
-Lennon
From chris at ozmm.org Fri May 4 15:29:00 2007
From: chris at ozmm.org (Chris Wanstrath)
Date: Fri, 4 May 2007 12:29:00 -0700
Subject: CampingConf?
In-Reply-To: <5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
Message-ID: <8b73aaca0705041229r571c20ecnfa460384978d9855@mail.gmail.com>
Internet is anti-camping. We must create an adhoc network in
conjunction with nic.d and hoodwink.d.
On 5/4/07, Lennon Day-Reynolds wrote:
> On 5/4/07, Nic Williams wrote:
> > Who's bringing the internet to the campground?
>
> If I can scrounge up some cables, I've got two different phones
> (personal and work) with unlimited data service, so I'll tent-atively
> (sorry) commit to being responsible for bandwidth. Of course, even two
> phones from two different providers may not be enough redundancy to
> keep things up throughout...
>
> (There was some interesting discussion at a recent PDX.rb meeting
> about putting a cantenna on a small dirigible and pointing it back at
> town, but it quickly degenerated into silliness.)
>
> -Lennon
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
From kprojection at gmail.com Fri May 4 16:08:49 2007
From: kprojection at gmail.com (Eric Mill)
Date: Fri, 4 May 2007 16:08:49 -0400
Subject: CampingConf?
In-Reply-To: <8b73aaca0705041229r571c20ecnfa460384978d9855@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
<8b73aaca0705041229r571c20ecnfa460384978d9855@mail.gmail.com>
Message-ID:
> Internet is anti-camping. We must create an adhoc network in
> conjunction with nic.d and hoodwink.d.
Dr. Nic should be able to help us out with that........
......!
From tlockney at gmail.com Fri May 4 20:27:54 2007
From: tlockney at gmail.com (Thomas Lockney)
Date: Fri, 4 May 2007 17:27:54 -0700
Subject: CampingConf?
In-Reply-To: <5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
Message-ID:
On 5/4/07, Lennon Day-Reynolds wrote:
>
> (There was some interesting discussion at a recent PDX.rb meeting
> about putting a cantenna on a small dirigible and pointing it back at
> town, but it quickly degenerated into silliness.)
>
No, no, no... still quite serious! As soon as I can drag Aaron to one of the
dorkbot meetings to discuss this more, we'll start putting together a plan.
not likely to happen quite so quickly, unfortunately. ;~)
--
Thomas Lockney | tlockney at gmail.com | http://opposable-thumbs.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070504/df688645/attachment-0001.html
From joshua.schairbaum at gmail.com Mon May 7 14:31:57 2007
From: joshua.schairbaum at gmail.com (Joshua Schairbaum)
Date: Mon, 7 May 2007 14:31:57 -0400
Subject: Module Madness
Message-ID: <7408e5820705071131g4ef19c2dg85d2b2e38975eedf@mail.gmail.com>
I'm wanted to make a "global" module that I could include in my
application for some shared code between them. I've been making
several camping apps and wanted them all to share a helper/partial
that contained the navigation.
I ran into a lot of difficulty when trying to include it, the primary
problem being "methodUndefined" errors. I did finally get it to work,
but I'm not sure why. Here's the relevant bits:
my_app.rb
MyApp::Helpers
include Global::Helpers
def month_name
...helper code
end
end
MyApp::Views
def layout
...some markaby
:navigation #throws an UndefinedMethod error if not a symbol
...some more markaby
end
end
global.rb
module Global
module Helpers
def navigation
...what i need
end
end
end
If I list the instance methods in irb, both "navigation" and
"month_name" shows up. However, I have to use use :navigation as a
symbol in my view as opposed to just using month_name for the other.
Both are defined as instance methods.
What gives with the symbol usage?
From joshua.schairbaum at gmail.com Tue May 8 12:42:55 2007
From: joshua.schairbaum at gmail.com (Joshua Schairbaum)
Date: Tue, 8 May 2007 12:42:55 -0400
Subject: Module Madness
In-Reply-To: <7408e5820705071131g4ef19c2dg85d2b2e38975eedf@mail.gmail.com>
References: <7408e5820705071131g4ef19c2dg85d2b2e38975eedf@mail.gmail.com>
Message-ID: <7408e5820705080942s1fe649edh2578c42873400307@mail.gmail.com>
I was wrong. A symbol didn't work, it just didn't throw an error.
>From the code below, can anyone see why I wouldn't be able to
namespace a Global::Helpers module and include it in MyApp::Helpers
and have the methods available?
This seems to be the way that Camping::BasicAuth works, are
views/helpers different?
---------- Forwarded message ----------
From: Joshua Schairbaum
Date: May 7, 2007 2:31 PM
Subject: Module Madness
To: camping-list at rubyforge.org
I'm wanted to make a "global" module that I could include in my
application for some shared code between them. I've been making
several camping apps and wanted them all to share a helper/partial
that contained the navigation.
I ran into a lot of difficulty when trying to include it, the primary
problem being "methodUndefined" errors. I did finally get it to work,
but I'm not sure why. Here's the relevant bits:
my_app.rb
MyApp::Helpers
include Global::Helpers
def month_name
...helper code
end
end
MyApp::Views
def layout
...some markaby
:navigation #throws an UndefinedMethod error if not a symbol
...some more markaby
end
end
global.rb
module Global
module Helpers
def navigation
...what i need
end
end
end
If I list the instance methods in irb, both "navigation" and
"month_name" shows up. However, I have to use use :navigation as a
symbol in my view as opposed to just using month_name for the other.
Both are defined as instance methods.
What gives with the symbol usage?
From whateley at gmail.com Tue May 8 13:12:03 2007
From: whateley at gmail.com (Brendan Taylor)
Date: Tue, 8 May 2007 11:12:03 -0600
Subject: Module Madness
In-Reply-To: <7408e5820705080942s1fe649edh2578c42873400307@mail.gmail.com>
References: <7408e5820705071131g4ef19c2dg85d2b2e38975eedf@mail.gmail.com>
<7408e5820705080942s1fe649edh2578c42873400307@mail.gmail.com>
Message-ID: <20070508171203.GA26052@nyarlathotep.ed.shawcable.net>
On Tue, May 08, 2007 at 12:42:55PM -0400, Joshua Schairbaum wrote:
> I was wrong. A symbol didn't work, it just didn't throw an error.
> >From the code below, can anyone see why I wouldn't be able to
> namespace a Global::Helpers module and include it in MyApp::Helpers
> and have the methods available?
>
> This seems to be the way that Camping::BasicAuth works, are
> views/helpers different?
As far as I know helpers are methods in the MyApp module. I don't
know if Camping uses or ever has used MyApp::Helpers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070508/6b5f1bab/attachment.bin
From fisheye at metacasa.net Tue May 8 13:50:15 2007
From: fisheye at metacasa.net (John Sheets)
Date: Tue, 8 May 2007 12:50:15 -0500
Subject: Module Madness
In-Reply-To: <7408e5820705071131g4ef19c2dg85d2b2e38975eedf@mail.gmail.com>
References: <7408e5820705071131g4ef19c2dg85d2b2e38975eedf@mail.gmail.com>
Message-ID: <264962DD-494F-46B8-AF73-BA738FB01BE5@metacasa.net>
On May 7, 2007, at 1:31 PM, Joshua Schairbaum wrote:
> I'm wanted to make a "global" module that I could include in my
> application for some shared code between them. I've been making
> several camping apps and wanted them all to share a helper/partial
> that contained the navigation.
I think the root of the "problem" is the way the app modules are
loaded into the Markaby rendering context:
module Views; include Controllers, Helpers end
class Mab < Markaby::Builder
include Views
def tag!(*g,&b)
h=g[-1]
[:href,:action,:src].each{|a|(h[a]=self/h[a])rescue 0}
super
end
end
Here's a slightly unnerving hack which seems to solve the problem.
You pass it the base module (or symbol of) your Camping app and one
or more shared helper modules, and it'll inject them into your
Camping app. (Obviously the symbol parameters won't work if you have
nested modules...you'll have to pass in the module constant
instead...the symbols are just syntactic sugar to echo Camping.goes().)
class TentSteak
def self.bootstrap(mod_or_sym, *appmods)
@@rootmod = mod_or_sym.instance_of?(Module) ? mod_or_sym :
const_get(mod_or_sym.to_s)
inject appmods
end
def self.inject(*mod_or_syms)
@@rootmod.module_eval "class Mab < Markaby::Builder; include #
{mod_or_syms.join(', ')}; end"
end
def self.view_method_defined?(meth)
@@rootmod::Mab.method_defined?(meth)
end
end
Usage is like this:
Camping.goes :MyApp
TentSteak.bootstrap :MyApp, :MyHelperModule, :MyOtherHelpers
I'd love to hear if there's a better way to do this injection. Seems
pretty hacky. Incidentally, TentSteak is a Camping helper library
I've been working on recently. I'll upload it to rubyforge as soon
as I get the ugly corners chiseled off and properly tested/
documented....
John
--
"The Internet is not something you just dump something
on. It's not a big truck. It's a series of tubes."
--Senator Ted Stevens, R-AK
John R. Sheets
http://bark.metacasa.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070508/3067553e/attachment.html
From ryan at yeahnah.org Wed May 9 23:10:30 2007
From: ryan at yeahnah.org (Ryan Allen)
Date: Thu, 10 May 2007 13:10:30 +1000
Subject: Camping and Threads and Stuff!
In-Reply-To:
References:
Message-ID: <1C2F74F5-C086-4BC9-992F-4121B744C88B@yeahnah.org>
Hey Everybody!
I was wondering if/how Camping can process more than one request at
once (i.e. not what Rails does). I'm fairly new to threads, and I
bought a book, and read some of it, and dived into the Camping source...
I found some thread stuff but I'm not... entirely sure. So I thought
I would ask!
RYan.
From ryan at yeahnah.org Thu May 10 00:22:39 2007
From: ryan at yeahnah.org (Ryan Allen)
Date: Thu, 10 May 2007 14:22:39 +1000
Subject: Camping and Threads!
Message-ID:
Hey Everybody!
I was wondering if/how Camping can process more than one request at
once (i.e. not what Rails does). I'm fairly new to threads, and I
bought a book, and read some of it, and dived into the Camping source...
I found some thread stuff but I'm not... entirely sure. So I thought
I would ask!
RYan.
http://yeahnah.org/
From _ at whats-your.name Thu May 10 13:59:57 2007
From: _ at whats-your.name (carmen)
Date: Thu, 10 May 2007 13:59:57 -0400
Subject: Camping and Threads!
In-Reply-To:
References:
Message-ID: <20070510175957.GD1510@replic.net>
On Thu May 10, 2007 at 02:22:39PM +1000, Ryan Allen wrote:
> Hey Everybody!
>
> I was wondering if/how Camping can process more than one request at
> once (i.e. not what Rails does). I'm fairly new to threads, and I
> bought a book, and read some of it, and dived into the Camping source...
>
> I found some thread stuff but I'm not... entirely sure. So I thought
> I would ask!
recent discussion on IRC suggests one technique is to use mongrel for its HTTP parsing, responding to requests in the EventMachine loop. so far i think only IOWA has been hooked up this way..
ive asked what it would take to make normal plain old camping respond tom ore than one request at a time, and havent gotten a response - i guess i'll have to figure it out myself - but i probably never will, since the ruby VM keeps segfaulting and theres a lot more work in the cometd / simultaneous http model going on in Lua and Erlang so i can kill 2 birds with one stone...
>
> RYan.
> http://yeahnah.org/
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
From evan at cloudbur.st Thu May 10 14:22:47 2007
From: evan at cloudbur.st (Evan Weaver)
Date: Thu, 10 May 2007 14:22:47 -0400
Subject: Camping and Threads!
In-Reply-To: <20070510175957.GD1510@replic.net>
References:
<20070510175957.GD1510@replic.net>
Message-ID:
Evented mongrel probably would help. I have a prerelease kicking
around I think, but the real one should drop soon:
http://swiftiply.swiftcore.org/mongrel.html
We should read about the IOReactor pattern.
I think the deal right now is that ActiveRecord isn't really 100%
threadsafe, despite the Base::allow_concurrency flag. I don't know how
Camping's routes would respond in a threaded environment.
If you want a quick solution, just run multiple mongrel processes. RV
can do this with some minor hacking of PID file locations:
http://blog.evanweaver.com/articles/2006/12/19/rv-a-tool-for-luxurious-camping
Evan
On 5/10/07, carmen <_ at whats-your.name> wrote:
> On Thu May 10, 2007 at 02:22:39PM +1000, Ryan Allen wrote:
> > Hey Everybody!
> >
> > I was wondering if/how Camping can process more than one request at
> > once (i.e. not what Rails does). I'm fairly new to threads, and I
> > bought a book, and read some of it, and dived into the Camping source...
> >
> > I found some thread stuff but I'm not... entirely sure. So I thought
> > I would ask!
>
> recent discussion on IRC suggests one technique is to use mongrel for its HTTP parsing, responding to requests in the EventMachine loop. so far i think only IOWA has been hooked up this way..
>
> ive asked what it would take to make normal plain old camping respond tom ore than one request at a time, and havent gotten a response - i guess i'll have to figure it out myself - but i probably never will, since the ruby VM keeps segfaulting and theres a lot more work in the cometd / simultaneous http model going on in Lua and Erlang so i can kill 2 birds with one stone...
>
> >
> > RYan.
> > http://yeahnah.org/
> > _______________________________________________
> > Camping-list mailing list
> > Camping-list at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/camping-list
> >
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
Evan Weaver
Cloudburst, LLC
From zimbatm at oree.ch Thu May 10 17:02:26 2007
From: zimbatm at oree.ch (Jonas Pfenniger)
Date: Thu, 10 May 2007 23:02:26 +0200
Subject: Camping and Threads!
In-Reply-To:
References:
Message-ID:
2007/5/10, Ryan Allen :
> Hey Everybody!
>
> I was wondering if/how Camping can process more than one request at
> once (i.e. not what Rails does). I'm fairly new to threads, and I
> bought a book, and read some of it, and dived into the Camping source...
>
> I found some thread stuff but I'm not... entirely sure. So I thought
> I would ask!
Hi,
Camping is green-thread-safe on the requests. At every requests,
YourApp.run is called and an instance of your routed controller is
created. You just need a web server that allows concurrency, like
mongrel. Just don't use ActiveRecord for your data backend because I
don't believe it's green-thread-safe.
--
Cheers,
zimbatm
From boss at topfunky.com Wed May 16 21:19:04 2007
From: boss at topfunky.com (Geoffrey Grosenbach)
Date: Wed, 16 May 2007 18:19:04 -0700
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
Message-ID: <15754f7e0705161819y42e72ec1j181a49e1988c69ad@mail.gmail.com>
Unfortunately CampingConf was never officially organized, but I'm in
Portland right now and have a room with a couch. If any Campers want
to hack tonight, give me a call.
Geoffrey Grosenbach
mobile: 206 276-5474
From kprojection at gmail.com Wed May 16 23:47:00 2007
From: kprojection at gmail.com (Eric Mill)
Date: Wed, 16 May 2007 23:47:00 -0400
Subject: CampingConf?
In-Reply-To: <15754f7e0705161819y42e72ec1j181a49e1988c69ad@mail.gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
<15754f7e0705161819y42e72ec1j181a49e1988c69ad@mail.gmail.com>
Message-ID:
You know, we could just get a big tent, and put it up come evening
time outside of RailsConf. Inside some Campers could bring their
laptops and show off their micro apps to interested folk who wander in
for a s'more and some programmatically compressed Ruby framework.
On 5/16/07, Geoffrey Grosenbach wrote:
> Unfortunately CampingConf was never officially organized, but I'm in
> Portland right now and have a room with a couch. If any Campers want
> to hack tonight, give me a call.
>
> Geoffrey Grosenbach
> mobile: 206 276-5474
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
From manfred at gmail.com Thu May 17 13:40:58 2007
From: manfred at gmail.com (Manfred Stienstra)
Date: Thu, 17 May 2007 10:40:58 -0700
Subject: CampingConf?
In-Reply-To:
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
<15754f7e0705161819y42e72ec1j181a49e1988c69ad@mail.gmail.com>
Message-ID: <868BBC27-6349-411B-B035-91A8B26F16C4@gmail.com>
On May 16, 2007, at 8:47 PM, Eric Mill wrote:
> You know, we could just get a big tent, and put it up come evening
> time outside of RailsConf. Inside some Campers could bring their
> laptops and show off their micro apps to interested folk who wander in
> for a s'more and some programmatically compressed Ruby framework.
There's a sort of tent next to the Jupiter hotel, we can use that.
Manfred
From evan at cloudbur.st Thu May 17 13:50:59 2007
From: evan at cloudbur.st (Evan Weaver)
Date: Thu, 17 May 2007 10:50:59 -0700
Subject: CampingConf?
In-Reply-To: <868BBC27-6349-411B-B035-91A8B26F16C4@gmail.com>
References: <15754f7e0705040727r4e01ca01v1b6665687cd3c44c@mail.gmail.com>
<78ec96990705041051i4090caabp25c199141b16fd8c@mail.gmail.com>
<44b555bb0705041135jee56159j42803eb008e3d1c9@mail.gmail.com>
<5d4c61240705041144h25e818dcw93cc8204c250f3ff@mail.gmail.com>
<15754f7e0705161819y42e72ec1j181a49e1988c69ad@mail.gmail.com>
<868BBC27-6349-411B-B035-91A8B26F16C4@gmail.com>
Message-ID:
I have a lot of microapps.
On 5/17/07, Manfred Stienstra wrote:
>
> On May 16, 2007, at 8:47 PM, Eric Mill wrote:
>
> > You know, we could just get a big tent, and put it up come evening
> > time outside of RailsConf. Inside some Campers could bring their
> > laptops and show off their micro apps to interested folk who wander in
> > for a s'more and some programmatically compressed Ruby framework.
>
> There's a sort of tent next to the Jupiter hotel, we can use that.
>
> Manfred
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
Evan Weaver
Cloudburst, LLC
From fisheye at metacasa.net Fri May 18 09:31:53 2007
From: fisheye at metacasa.net (John Sheets)
Date: Fri, 18 May 2007 08:31:53 -0500
Subject: [ANN] TentSteak First Release
Message-ID:
Hey all,
I just pushed out the inaugural release of TentSteak 0.1.0, a set of
Camping/Markaby helpers to minimize the busywork in your views (or
was that the "viewwork in your busies"?). It includes lotsa HTML
form and table helpers, plus a little bootstrapper to make it easy to
load in shared helper modules of your own.
Please check it out and let me know what you think. I'd love
feedback on the API, code implementation, new feature requests, and
whatever else you might care to discuss (e.g. the d00fy weather in
Minnesota).
It's currently available as the tent_steak gem on RubyForge.
http://rubyforge.org/projects/tentsteak/
http://tentsteak.rubyforge.org/
Cheers,
John
--
"The Internet is not something you just dump something
on. It's not a big truck. It's a series of tubes."
--Senator Ted Stevens, R-AK
John R. Sheets
http://bark.metacasa.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070518/77223abf/attachment.html
From aredridel at nbtsc.org Fri May 18 13:03:04 2007
From: aredridel at nbtsc.org (Aredridel)
Date: Fri, 18 May 2007 11:03:04 -0600
Subject: [ANN] TentSteak First Release
In-Reply-To:
References:
Message-ID: <464DDC48.8070205@nbtsc.org>
John Sheets wrote:
> Hey all,
>
> I just pushed out the inaugural release of TentSteak 0.1.0, a set of
> Camping/Markaby helpers to minimize the busywork in your views (or was
> that the "viewwork in your busies"?). It includes lotsa HTML form and
> table helpers, plus a little bootstrapper to make it easy to load in
> shared helper modules of your own.
>
> Please check it out and let me know what you think. I'd love feedback
> on the API, code implementation, new feature requests, and whatever
> else you might care to discuss (e.g. the d00fy weather in Minnesota).
>
> It's currently available as the tent_steak gem on RubyForge.
>
> http://rubyforge.org/projects/tentsteak/
> http://tentsteak.rubyforge.org/
Very nice. I love that you called it "TentSteak" and not "TentStake".
The mental image of pinning canvas to dirt with a T-bone is just too
amusing.
(Anyone read that kid's book "Bunnicula", where Chester the cat is
trying to kill the possibly-vampiric bunny by pounding a steak into him?)
Aria
From david.gurba at gmail.com Fri May 18 13:31:57 2007
From: david.gurba at gmail.com (David Gurba)
Date: Fri, 18 May 2007 10:31:57 -0700
Subject: [ANN] TentSteak First Release
In-Reply-To: <464DDC48.8070205@nbtsc.org>
References:
<464DDC48.8070205@nbtsc.org>
Message-ID: <464DE30D.5090500@gmail.com>
Aredridel wrote:
> John Sheets wrote:
>
>> Hey all,
>>
>> I just pushed out the inaugural release of TentSteak 0.1.0, a set of
>> Camping/Markaby helpers to minimize the busywork in your views (or was
>> that the "viewwork in your busies"?). It includes lotsa HTML form and
>> table helpers, plus a little bootstrapper to make it easy to load in
>> shared helper modules of your own.
>>
>> Please check it out and let me know what you think. I'd love feedback
>> on the API, code implementation, new feature requests, and whatever
>> else you might care to discuss (e.g. the d00fy weather in Minnesota).
>>
>> It's currently available as the tent_steak gem on RubyForge.
>>
>> http://rubyforge.org/projects/tentsteak/
>> http://tentsteak.rubyforge.org/
>>
>
> Very nice. I love that you called it "TentSteak" and not "TentStake".
> The mental image of pinning canvas to dirt with a T-bone is just too
> amusing.
>
> (Anyone read that kid's book "Bunnicula", where Chester the cat is
> trying to kill the possibly-vampiric bunny by pounding a steak into him?)
>
> Aria
>
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
>
hehe. bunnicula is a great series.
-dg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070518/3c77a8fa/attachment-0001.html
From joshua.schairbaum at gmail.com Fri May 18 23:09:31 2007
From: joshua.schairbaum at gmail.com (Joshua Schairbaum)
Date: Fri, 18 May 2007 23:09:31 -0400
Subject: RV permissions -- can't park in my lot!
Message-ID: <7408e5820705182009n569a300fv18f9ea30af3f235d@mail.gmail.com>
I'm trying to setup RV and cannot get it started. I keep getting:
Permission Denied : /var/log/rv.log
I've tried running it as root to test and also using www-data and chrgrp of
rv.log to www-data.
Here's the output:
nohup su -c "/usr/bin/ruby rv_harness.rb 3301 127.0.0.1 < /dev/null 2>&1 >
/dev/null" www-data < /dev/null 2>&1 >> /var/log/rv.log &
If I run run the section in quotations, it works. I'm the call to /dev/null
is the stream for the mongrel log, and the second one outside the quotations
is for the rv log.
Obviously, permissions are a weakpoint for me, so I'd appreciate any help
that someone could give.
Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070518/bb3a1d0f/attachment.html
From whateley at gmail.com Fri May 18 22:57:23 2007
From: whateley at gmail.com (Brendan Taylor)
Date: Fri, 18 May 2007 20:57:23 -0600
Subject: RV permissions -- can't park in my lot!
In-Reply-To: <7408e5820705182009n569a300fv18f9ea30af3f235d@mail.gmail.com>
References: <7408e5820705182009n569a300fv18f9ea30af3f235d@mail.gmail.com>
Message-ID: <20070519025723.GC6154@nyarlathotep.ed.shawcable.net>
On Fri, May 18, 2007 at 11:09:31PM -0400, Joshua Schairbaum wrote:
> nohup su -c "/usr/bin/ruby rv_harness.rb 3301 127.0.0.1 < /dev/null 2>&1 >
> /dev/null" www-data < /dev/null 2>&1 >> /var/log/rv.log &
>
> Obviously, permissions are a weakpoint for me, so I'd appreciate any help
`su -c` executes the bit you have inside the quotations as a different
user; everything else (including the redirection you're using to rv.log)
gets executed as your regular user. So, /var/log/rv.log needs to be writeable
by whatever user is running that command.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070518/76643564/attachment.bin
From joshua.schairbaum at gmail.com Fri May 18 23:37:51 2007
From: joshua.schairbaum at gmail.com (Joshua Schairbaum)
Date: Fri, 18 May 2007 23:37:51 -0400
Subject: RV permissions -- can't park in my lot!
In-Reply-To: <20070519025723.GC6154@nyarlathotep.ed.shawcable.net>
References: <7408e5820705182009n569a300fv18f9ea30af3f235d@mail.gmail.com>
<20070519025723.GC6154@nyarlathotep.ed.shawcable.net>
Message-ID: <7408e5820705182037w56d9b73bxc88aeb52016e9d8c@mail.gmail.com>
Brendan,
Thanks for the help, but I still can't get it cranked up...
Some relevant bits:
ls -a /var/log #=> -rw-rw-r-- 1 root jschairb 8352 2007-05-18 23:33
rv.log
Obviously, I'm jschairb... but I'm calling the script like this: sudo
/etc/init.d/rv start
I've tried having root be the group as well.
Thanks,
Josh
On 5/18/07, Brendan Taylor wrote:
>
> On Fri, May 18, 2007 at 11:09:31PM -0400, Joshua Schairbaum wrote:
> > nohup su -c "/usr/bin/ruby rv_harness.rb 3301 127.0.0.1 < /dev/null 2>&1
> >
> > /dev/null" www-data < /dev/null 2>&1 >> /var/log/rv.log &
> >
> > Obviously, permissions are a weakpoint for me, so I'd appreciate any
> help
>
> `su -c` executes the bit you have inside the quotations as a different
> user; everything else (including the redirection you're using to rv.log)
> gets executed as your regular user. So, /var/log/rv.log needs to be
> writeable
> by whatever user is running that command.
>
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070518/07d2253b/attachment.html