From john.beppu at gmail.com Mon Mar 10 12:33:23 2008 From: john.beppu at gmail.com (John Beppu) Date: Mon, 10 Mar 2008 11:33:23 -0500 Subject: Camping is a winner at SXSW-i Message-ID: <21a10fe00803100933m7095a804hf8c8160ec6f875ea@mail.gmail.com> Last night, a little Camping application I wrote called MetaNoteswon the Experimental division in the SXSW Web Awards . MetaNotes is a site that lets you (and many other people) simultaneously place colorful post-it notes on a wide canvas. If you get lucky, you may see notes move in the background as other people (or robots) make changes to the space you happen to be in. I must warn you that it's very alpha at the moment, so be gentle with the site. In my estimation, it's only about 60% done, and we were surprised to even be finalists. ---- Anyway, I'm writing this email to thank everyone who worked on Camping and made it the beautiful little web microframework that it is. My favorite part of Camping is the way controllers are expressed. It gives me so much control over URLs, and I love how the controllers are RESTful by default. That was a brilliant idea. --beppu PS: During the web awards, we must've been sitting at the lucky table. There were 3 teams at the table, and at the end of the night, that table had 4 awards. I wish I had taken a picture. (The MetaNotes crew was sitting w/ people from Wikinvest and Launchball. We all won our respective categories, and Launchball won something else at the end.) How crazy is that. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20080310/fd378cfa/attachment-0001.html From seti at tquadrado.com Mon Mar 10 12:56:12 2008 From: seti at tquadrado.com (pedro mg) Date: Mon, 10 Mar 2008 16:56:12 +0000 Subject: Fwd: Camping is a winner at SXSW-i In-Reply-To: References: <21a10fe00803100933m7095a804hf8c8160ec6f875ea@mail.gmail.com> Message-ID: On 3/10/08, John Beppu wrote: > Last night, a little Camping application I wrote called MetaNotes won the > Experimental division in the SXSW Web Awards. Hey, congrats John ;) Very well indeed. Camping is in fact very cool. -- pedro mg http://blog.tquadrado.com From jonathan.stott at gmail.com Tue Mar 11 06:30:39 2008 From: jonathan.stott at gmail.com (Jonathan Stott) Date: Tue, 11 Mar 2008 10:30:39 +0000 Subject: Dropping Root Message-ID: <20080311103039.247d67a6.jonathan.stott@gmail.com> Hello Campers I'm not sure this is the right list to ask but: I'm using the junebug wiki (which is written in camping) for my own personal wiki. I'd like it to behave as a proper daemon, so it will start up at boot, get stopped properly at shutdown, keep a pid file in /var/run etc. This requires a little messing with the wiki script junebug makes in the wiki directory (changing the dirmode to system, amongst other things). Junebug uses the daemons gem for this purpose, for those who haven't looked at the gem. This works and I can copy the wiki script to /etc/init.d/ and add the appropriate runlevel symlinks with update-rc.d. Which all works great. Except that I end with the process running as root. Which makes me twitchy and nervous. So I'd to like to make it step down like a good little process to a much less privileged user. I can't do this in the /etc/init.d/ script, as it then can't write the pid file (and probably other things). But putting it in the setup post amble doesn't seem to work (the wiki is still root) So where should my Process.uid statements go? Regards, Jon. From john.turner at norgg.org Tue Mar 11 07:42:52 2008 From: john.turner at norgg.org (John Turner) Date: Tue, 11 Mar 2008 11:42:52 +0000 Subject: Dropping Root In-Reply-To: <20080311103039.247d67a6.jonathan.stott@gmail.com> References: <20080311103039.247d67a6.jonathan.stott@gmail.com> Message-ID: <5b67d7010803110442ic584c9eoaa683600905a2ab9@mail.gmail.com> I was playing with some setuid and camping for a project myself. I don't see if you've mentioned this, but I assume you're using the camping server to run it? I ended up just editing the camping server script to change uid and chroot just after its requires (I also edited it to do all its requires up front because I was chrooting and to just use mongrel just because). I'm not sure what the problem with doing this in the postamble would be though, are you sure it's getting run? Is it getting run every time camping reloads the script? How exactly are you setting the uid? John On 11/03/2008, Jonathan Stott wrote: > Hello Campers > > I'm not sure this is the right list to ask but: > I'm using the junebug wiki (which is written in camping) for my own personal wiki. I'd like it to behave as a proper daemon, so it will start up at boot, get stopped properly at shutdown, keep a pid file in /var/run etc. > > This requires a little messing with the wiki script junebug makes in the wiki directory (changing the dirmode to system, amongst other things). Junebug uses the daemons gem for this purpose, for those who haven't looked at the gem. This works and I can copy the wiki script to /etc/init.d/ and add the appropriate runlevel symlinks with update-rc.d. > > Which all works great. Except that I end with the process running as root. Which makes me twitchy and nervous. So I'd to like to make it step down like a good little process to a much less privileged user. I can't do this in the /etc/init.d/ script, as it then can't write the pid file (and probably other things). But putting it in the setup post amble doesn't seem to work (the wiki is still root) > > So where should my Process.uid statements go? > > Regards, > Jon. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From jonathan.stott at gmail.com Tue Mar 11 09:33:08 2008 From: jonathan.stott at gmail.com (Jonathan Stott) Date: Tue, 11 Mar 2008 13:33:08 +0000 Subject: Dropping Root In-Reply-To: <5b67d7010803110442ic584c9eoaa683600905a2ab9@mail.gmail.com> References: <20080311103039.247d67a6.jonathan.stott@gmail.com> <5b67d7010803110442ic584c9eoaa683600905a2ab9@mail.gmail.com> Message-ID: <20080311133308.05f0ad00.jonathan.stott@gmail.com> No, junebug uses the Mongrel Camping handler (which is set up in the same postamble) which I know is invoked, as I can change messages in there and they are reflected in the logs, for example. the postamble looks like: connect to DB create tables Invoke the Mongrel::Camping handler set up some signal traps join the server thread. (or see a pastie of the actual code here: http://pastie.caboo.se/164364 ) I'm trying to set the uid via 'Process.uid = ###', which I've tried at various points through the post amble, both before and after the join, but it still seems to be running as root when I check ps. Regards, Jonathan On Tue, 11 Mar 2008 11:42:52 +0000 "John Turner" wrote: > I was playing with some setuid and camping for a project myself. I > don't see if you've mentioned this, but I assume you're using the > camping server to run it? I ended up just editing the camping server > script to change uid and chroot just after its requires (I also edited > it to do all its requires up front because I was chrooting and to just > use mongrel just because). I'm not sure what the problem with doing > this in the postamble would be though, are you sure it's getting run? > Is it getting run every time camping reloads the script? How exactly > are you setting the uid? > > John > From john.turner at norgg.org Tue Mar 11 11:10:00 2008 From: john.turner at norgg.org (John Turner) Date: Tue, 11 Mar 2008 15:10:00 +0000 Subject: Dropping Root In-Reply-To: <20080311133308.05f0ad00.jonathan.stott@gmail.com> References: <20080311103039.247d67a6.jonathan.stott@gmail.com> <5b67d7010803110442ic584c9eoaa683600905a2ab9@mail.gmail.com> <20080311133308.05f0ad00.jonathan.stott@gmail.com> Message-ID: <5b67d7010803110810n26a3d435j21c565794f70f6ed@mail.gmail.com> I was using Process::UID.change_privilege(uid), which seems to do the job (in irb at least) where Process.uid= doesn't, it seems like it should though. There's grant_privelege too, but I don't know what the difference between that and change_privilege is. Hope that helps. John On 11/03/2008, Jonathan Stott wrote: > No, junebug uses the Mongrel Camping handler (which is set up in the same postamble) which I know is invoked, as I can change messages in there and they are reflected in the logs, for example. > > the postamble looks like: > connect to DB > create tables > Invoke the Mongrel::Camping handler > set up some signal traps > join the server thread. > (or see a pastie of the actual code here: > http://pastie.caboo.se/164364 ) > > I'm trying to set the uid via 'Process.uid = ###', which I've tried at various points through the post amble, both before and after the join, but it still seems to be running as root when I check ps. > > Regards, Jonathan > > > On Tue, 11 Mar 2008 11:42:52 +0000 > "John Turner" wrote: > > > I was playing with some setuid and camping for a project myself. I > > don't see if you've mentioned this, but I assume you're using the > > camping server to run it? I ended up just editing the camping server > > script to change uid and chroot just after its requires (I also edited > > it to do all its requires up front because I was chrooting and to just > > use mongrel just because). I'm not sure what the problem with doing > > this in the postamble would be though, are you sure it's getting run? > > Is it getting run every time camping reloads the script? How exactly > > are you setting the uid? > > > > John > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From john.beppu at gmail.com Tue Mar 11 11:09:28 2008 From: john.beppu at gmail.com (John Beppu) Date: Tue, 11 Mar 2008 10:09:28 -0500 Subject: Dropping Root In-Reply-To: <20080311103039.247d67a6.jonathan.stott@gmail.com> References: <20080311103039.247d67a6.jonathan.stott@gmail.com> Message-ID: <21a10fe00803110809q67a02578rfa1d1a182abcb59c@mail.gmail.com> Having you considered using rv? http://blog.evanweaver.com/files/doc/fauna/rv/files/README.html On Tue, Mar 11, 2008 at 5:30 AM, Jonathan Stott wrote: > Hello Campers > > I'm not sure this is the right list to ask but: > I'm using the junebug wiki (which is written in camping) for my own > personal wiki. I'd like it to behave as a proper daemon, so it will start > up at boot, get stopped properly at shutdown, keep a pid file in /var/run > etc. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20080311/75bf857f/attachment.html From zimbatm at oree.ch Wed Mar 12 06:17:47 2008 From: zimbatm at oree.ch (Jonas Pfenniger) Date: Wed, 12 Mar 2008 11:17:47 +0100 Subject: Camping is a winner at SXSW-i In-Reply-To: <21a10fe00803100933m7095a804hf8c8160ec6f875ea@mail.gmail.com> References: <21a10fe00803100933m7095a804hf8c8160ec6f875ea@mail.gmail.com> Message-ID: Brilliant ! -- Cheers, Jonas From zimbatm at oree.ch Wed Mar 12 06:28:38 2008 From: zimbatm at oree.ch (Jonas Pfenniger) Date: Wed, 12 Mar 2008 11:28:38 +0100 Subject: how to "encrypt" the password/login for the blog.rb example? In-Reply-To: <73925d240802251321x5ee6feb3ye5a92656f2d21ee9@mail.gmail.com> References: <73925d240802221028g5430eadfy8d7b5580fac7cb43@mail.gmail.com> <915B63B5-19DC-4CC8-BB9A-398FBCAFD5F1@gmail.com> <20080223181031.GK2918@nyarlathotep.necronomicorp.com> <8460F964-49DC-4748-8593-D7BF5102ECA0@gmail.com> <73925d240802251321x5ee6feb3ye5a92656f2d21ee9@mail.gmail.com> Message-ID: 2008/2/25, Albert Ng : > I'll keep that in mind. > > As an aside, using this gem, how would I go about changing the user without > closing the browser or raising ?Unauthorized?? That last pops up a log-in > window that can't authorize (have to press escape). There is no perfect solution. Here is what I use in jQuery : // idea from : http://nanodocumet.homedns.org/rest/ $('#header A.disconnect').click(function() { try { if ($.browser.msie) { // IE clear HTTP Authentication document.execCommand("ClearAuthenticationCache"); } else { var xhr = new XMLHttpRequest(); xhr.open("GET", "/logout", true, "logout", "logout"); xhr.send(null); xhr.abort(); } } catch(e) { error(e) } }) --------- * the /logout url should respond "Unauthorized" for the logout:logout credential * the xhr.open is called with async to true, otherwise the browser shows the login window -- Cheers, Jonas From zimbatm at oree.ch Wed Mar 12 12:58:00 2008 From: zimbatm at oree.ch (Jonas Pfenniger) Date: Wed, 12 Mar 2008 17:58:00 +0100 Subject: Are we ready for a release ? Message-ID: Hi campers, what do you think of releasing the current trunk as camping-1.6 ? Nothing much has moved since a while and apart from FastCGI, I believe most bugs where ironed out. After the gem release, I propose putting some effort on documentation and how to use Rack's FastCGI. When that's done, we'll have a Rubyforge announcement and such. /me is waiting for community input -- Cheers, Jonas From paul at luon.net Wed Mar 12 16:19:56 2008 From: paul at luon.net (Paul van Tilburg) Date: Wed, 12 Mar 2008 21:19:56 +0100 Subject: Are we ready for a release ? In-Reply-To: References: Message-ID: <20080312201956.GA8807@power.luon.net> Hello all, On Wed, Mar 12, 2008 at 05:58:00PM +0100, Jonas Pfenniger wrote: > what do you think of releasing the current trunk as camping-1.6 ? > Nothing much has moved since a while and apart from FastCGI, I believe > most bugs where ironed out. Yeah, I see in the roadmap that there are two bugs open (you mention one here). Are these real blockers? It would be greate to have a relase. > After the gem release, I propose putting some effort on documentation > and how to use Rack's FastCGI. When that's done, we'll have a > Rubyforge announcement and such. Don't forget the tarball release. ;) By the way, do you/we have any release notes, or NEWS listing the new features? Paul -- PhD Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 From zimbatm at oree.ch Wed Mar 12 18:16:31 2008 From: zimbatm at oree.ch (Jonas Pfenniger) Date: Wed, 12 Mar 2008 23:16:31 +0100 Subject: Are we ready for a release ? In-Reply-To: <20080312201956.GA8807@power.luon.net> References: <20080312201956.GA8807@power.luon.net> Message-ID: 2008/3/12, Paul van Tilburg : > Hello all, > > On Wed, Mar 12, 2008 at 05:58:00PM +0100, Jonas Pfenniger wrote: > > what do you think of releasing the current trunk as camping-1.6 ? > > Nothing much has moved since a while and apart from FastCGI, I believe > > most bugs where ironed out. > > Yeah, I see in the roadmap that there are two bugs open (you mention > one here). Are these real blockers? It would be greate to have a relase. You're right. Actually the ESPIPE error (#130) is hard to solve. jsheets proposed to read the full upload in a StringIO. That idea clearly doesn't scale to big files. The ideal solution would be to rewrite that big chunk in #initialize to not use IO#revert but I never had the guts to do it. So while I could wait for somebody to do the work, I prefer to state that file uploads doesn't work in CGI instead of penalizing the other adapters. I clearly have to be documented somewhere at least. > > After the gem release, I propose putting some effort on documentation > > and how to use Rack's FastCGI. When that's done, we'll have a > > Rubyforge announcement and such. > > Don't forget the tarball release. ;) Noted > By the way, do you/we have any release notes, or NEWS listing the new > features? The changes are only noted in the SVN actually. I'll scan trough it when updating the doc. -- Cheers, Jonas From zimbatm at oree.ch Wed Mar 12 18:19:34 2008 From: zimbatm at oree.ch (Jonas Pfenniger) Date: Wed, 12 Mar 2008 23:19:34 +0100 Subject: Are we ready for a release ? In-Reply-To: References: <20080312201956.GA8807@power.luon.net> Message-ID: 2008/3/12, Jonas Pfenniger : > 2008/3/12, Paul van Tilburg : > > By the way, do you/we have any release notes, or NEWS listing the new > > features? > The changes are only noted in the SVN actually. I'll scan trough it > when updating the doc. Actually, erm, it seems that I have updated the CHANGELOG in [237]. Some things might be missing although. -- Cheers, Jonas From aredridel at nbtsc.org Wed Mar 12 18:47:18 2008 From: aredridel at nbtsc.org (Aria Stewart) Date: Wed, 12 Mar 2008 16:47:18 -0600 Subject: Are we ready for a release ? In-Reply-To: References: Message-ID: <14E334B4-5481-4748-87BD-2E84136DC493@nbtsc.org> On Mar 12, 2008, at 10:58 AM, Jonas Pfenniger wrote: > Hi campers, > > what do you think of releasing the current trunk as camping-1.6 ? > Nothing much has moved since a while and apart from FastCGI, I believe > most bugs where ironed out. > > After the gem release, I propose putting some effort on documentation > and how to use Rack's FastCGI. When that's done, we'll have a > Rubyforge announcement and such. I'm a fan! From seti at tquadrado.com Wed Mar 12 22:25:41 2008 From: seti at tquadrado.com (pedro mg) Date: Thu, 13 Mar 2008 02:25:41 +0000 Subject: Are we ready for a release ? In-Reply-To: References: Message-ID: On 3/12/08, Jonas Pfenniger wrote: > Hi campers, > > what do you think of releasing the current trunk as camping-1.6 ? > Nothing much has moved since a while and apart from FastCGI, I believe > most bugs where ironed out. > > After the gem release, I propose putting some effort on documentation > and how to use Rack's FastCGI. When that's done, we'll have a > Rubyforge announcement and such. > > /me is waiting for community input agree -- pedro mg http://blog.tquadrado.com From manfred at gmail.com Thu Mar 13 03:07:04 2008 From: manfred at gmail.com (Manfred Stienstra) Date: Thu, 13 Mar 2008 08:07:04 +0100 Subject: Are we ready for a release ? In-Reply-To: References: <20080312201956.GA8807@power.luon.net> Message-ID: <8371CE2C-421D-4213-A3C7-A00023682486@gmail.com> On Mar 12, 2008, at 11:16 PM, Jonas Pfenniger wrote: > I prefer to state that file uploads doesn't work in CGI instead > of penalizing the other adapters. I personally don't really care about CGI. From aredridel at nbtsc.org Mon Mar 17 18:03:48 2008 From: aredridel at nbtsc.org (Aria Stewart) Date: Mon, 17 Mar 2008 16:03:48 -0600 Subject: Keeping Camping going In-Reply-To: References: Message-ID: <1C151683-4888-444B-B9F8-91449CA838AC@nbtsc.org> On Jan 12, 2008, at 4:15 PM, Jonas Pfenniger wrote: > 2008/1/10, Jeremy McAnally : >> I'm not sure who Camping's steward is at this point(zimbatm? _why?), >> but I haven't seen much activity in quite some time. I really like >> Camping, and I understand open source projects can fall by the >> wayside. > > Some times ago, I proposed to take the project a little further. Times > passes so fast ! I managed to do some cleanup but then got stuck for > some reasons. At last, you are welcome to kick in :) > > Why not start by fixing some open ticket ? I was thinking of dropping > the fastcgi support but if you wish to make it work it would be a > great start. Another part that could be fixed, is the Session support. > Dig in the list archive for some discussions around it. Indeed, I need the FastCGI support for an app I use every day. I'm interested in keeping that alive. From aredridel at nbtsc.org Mon Mar 17 18:04:35 2008 From: aredridel at nbtsc.org (Aria Stewart) Date: Mon, 17 Mar 2008 16:04:35 -0600 Subject: Keeping Camping going In-Reply-To: References: Message-ID: <37E28703-778F-4052-8A2E-D1BA7EEE736A@nbtsc.org> On Jan 12, 2008, at 6:07 PM, Jeremy McAnally wrote: > Hmm yes the direct FastCGI support could be supplanted by making sure > we have a solid and tested Rack adapter. That way they still get the > FastCGI support but we don't have to maintain all the evil parts of > it. > > I'll look through the list and see what I can do. Hopefully I'll have > some time to spend fixing some tickets this week. :) That's even better. Rack for the win!