From judofyr at gmail.com Sat Jan 2 16:48:49 2010 From: judofyr at gmail.com (Magnus Holm) Date: Sat, 2 Jan 2010 22:48:49 +0100 Subject: Created a small instrumentation NewRelic plugin for Camping controllers In-Reply-To: <4B3C0D43.8090201@monnet-usa.com> References: <4B3C0D43.8090201@monnet-usa.com> Message-ID: <391a49da1001021348n7adcc5feu1329a9a509a5316f@mail.gmail.com> Excellent, I'll definitely check it out when I come home (writing this on a crappy Sony Ericsson while it's -20C outside). Yes, there are more cool things about Camping then the 4k (or 3k at the moment). Hit me up at #camping @ irc.freenode.net if there still is something that's unclear. I think I understand the code, but hey, with camping.rb you never know. -- Happy new year to all of you! 2009/12/31, Philippe Monnet : > After a bit over a day of both looking at the way NewRelic implemented > their plugin for Rack and Sinatra, as well as digging deep in the core > Camping code of the service and M methods, I managed to get something > working. See > http://github.com/techarch/rpm/blob/master/lib/new_relic/agent/instrumentation/camping.rb > > It took me many tests to understand that the M method actually include > some of the Camping modules in the controller classes. I have been > reading the entire framework back to back a bunch of times and I keep > being amazed at the overall design. There are so many Rubyisms to be > learned from the code. > > Let me know if you end up using the plugin and if there are ways to > improve it. > If you are using Heroku you should definitely give NewRelic a try since > the Bronze edition comes for free. > > Philippe > -- //Magnus Holm From judofyr at gmail.com Sun Jan 3 12:27:34 2010 From: judofyr at gmail.com (Magnus Holm) Date: Sun, 3 Jan 2010 18:27:34 +0100 Subject: Created a small instrumentation NewRelic plugin for Camping controllers In-Reply-To: <4B3C0D43.8090201@monnet-usa.com> References: <4B3C0D43.8090201@monnet-usa.com> Message-ID: <391a49da1001030927y37818785v72554ab33d0ede95@mail.gmail.com> Wouldn't it be possible to simply use http://pastie.textmate.org/private/8bnszgdfkkgdlorzncgnww? //Magnus Holm On Thu, Dec 31, 2009 at 03:32, Philippe Monnet wrote: > After a bit over a day of both looking at the way NewRelic implemented their > plugin for Rack and Sinatra, as well as digging deep in the core Camping > code of the service and M methods, I managed to get something working. See > http://github.com/techarch/rpm/blob/master/lib/new_relic/agent/instrumentation/camping.rb > > It took me many tests to understand that the M method actually include some > of the Camping modules in the controller classes. I have been reading the > entire framework back to back a bunch of times and I keep being amazed at > the overall design. There are so many Rubyisms to be learned from the code. > > Let me know if you end up using the plugin and if there are ways to improve > it. > If you are using Heroku you should definitely give NewRelic a try since the > Bronze edition comes for free. > > Philippe > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From his2000x at gmail.com Mon Jan 18 03:27:54 2010 From: his2000x at gmail.com (in-seok hwang) Date: Mon, 18 Jan 2010 17:27:54 +0900 Subject: what is this log mean? Message-ID: Hi, all my server spec is .. camping -1.5.180 mongrel-1.1.5 4~5 times a day i will see the log . But , i don't know this message's mean . The following is the log. Sun Jan 17 18:25:19 +0900 2010: HTTP parse error, malformed request > (125.230.144.181): # fails.> > Sun Jan 17 18:25:19 +0900 2010: REQUEST DATA: "\005\001\000" > --- > PARAMS: {} > --- > Sun Jan 17 18:25:20 +0900 2010: Read error: # URI(is not URI?): 203.188.201.253:25> > /usr/lib/ruby/1.8/uri/common.rb:436:in `split' > /usr/lib/ruby/1.8/uri/common.rb:485:in `parse' > /usr/local/lib/site_ruby/1.8/mongrel.rb:127:in `process_client' > /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `run' > /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `initialize' > /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `new' > /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `run' > /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `initialize' > /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `new' > /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `run' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:282:in `run' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:281:in `each' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:281:in `run' > conf_mongrel.rb:2070:in `cloaker_' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:149:in `call' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:149:in `listener' > conf_mongrel.rb:2066:in `cloaker_' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:50:in `call' > /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:50:in `initialize' > conf_mongrel.rb:2065:in `new' > conf_mongrel.rb:2065 > what is this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.beppu at gmail.com Mon Jan 18 12:53:26 2010 From: john.beppu at gmail.com (John Beppu) Date: Mon, 18 Jan 2010 09:53:26 -0800 Subject: what is this log mean? In-Reply-To: References: Message-ID: <21a10fe01001180953i2a52974aj30f82fcaa6ba655d@mail.gmail.com> It means that someone sent you an invalid HTTP request, and this is Mongrel's noisy way of rejecting it. Don't worry. It's harmless. --beppu On Mon, Jan 18, 2010 at 12:27 AM, in-seok hwang wrote: > Hi, all > > my server spec is .. > camping -1.5.180 > mongrel-1.1.5 > > 4~5 times a day i will see the log . > > But , i don't know this message's mean . > > The following is the log. > > > Sun Jan 17 18:25:19 +0900 2010: HTTP parse error, malformed request >> (125.230.144.181): #> fails.> >> Sun Jan 17 18:25:19 +0900 2010: REQUEST DATA: "\005\001\000" >> --- >> PARAMS: {} >> --- >> Sun Jan 17 18:25:20 +0900 2010: Read error: #> URI(is not URI?): 203.188.201.253:25> >> /usr/lib/ruby/1.8/uri/common.rb:436:in `split' >> /usr/lib/ruby/1.8/uri/common.rb:485:in `parse' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:127:in `process_client' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `run' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `initialize' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `new' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `run' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `initialize' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `new' >> /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `run' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:282:in `run' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:281:in `each' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:281:in `run' >> conf_mongrel.rb:2070:in `cloaker_' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:149:in `call' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:149:in `listener' >> conf_mongrel.rb:2066:in `cloaker_' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:50:in `call' >> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:50:in `initialize' >> conf_mongrel.rb:2065:in `new' >> conf_mongrel.rb:2065 >> > > what is this? > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From his2000x at gmail.com Tue Jan 19 01:22:18 2010 From: his2000x at gmail.com (in-seok hwang) Date: Tue, 19 Jan 2010 15:22:18 +0900 Subject: what is this log mean? In-Reply-To: <21a10fe01001180953i2a52974aj30f82fcaa6ba655d@mail.gmail.com> References: <21a10fe01001180953i2a52974aj30f82fcaa6ba655d@mail.gmail.com> Message-ID: Thanks beppu :) 2010/1/19 John Beppu > It means that someone sent you an invalid HTTP request, and this is > Mongrel's noisy way of rejecting it. > > Don't worry. It's harmless. > > --beppu > > On Mon, Jan 18, 2010 at 12:27 AM, in-seok hwang wrote: > >> Hi, all >> >> my server spec is .. >> camping -1.5.180 >> mongrel-1.1.5 >> >> 4~5 times a day i will see the log . >> >> But , i don't know this message's mean . >> >> The following is the log. >> >> >> Sun Jan 17 18:25:19 +0900 2010: HTTP parse error, malformed request >>> (125.230.144.181): #>> fails.> >>> Sun Jan 17 18:25:19 +0900 2010: REQUEST DATA: "\005\001\000" >>> --- >>> PARAMS: {} >>> --- >>> Sun Jan 17 18:25:20 +0900 2010: Read error: #>> URI(is not URI?): 203.188.201.253:25> >>> /usr/lib/ruby/1.8/uri/common.rb:436:in `split' >>> /usr/lib/ruby/1.8/uri/common.rb:485:in `parse' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:127:in `process_client' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `run' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `initialize' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `new' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:285:in `run' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `initialize' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `new' >>> /usr/local/lib/site_ruby/1.8/mongrel.rb:268:in `run' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:282:in `run' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:281:in `each' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:281:in `run' >>> conf_mongrel.rb:2070:in `cloaker_' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:149:in `call' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:149:in `listener' >>> conf_mongrel.rb:2066:in `cloaker_' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:50:in `call' >>> /usr/local/lib/site_ruby/1.8/mongrel/configurator.rb:50:in `initialize' >>> conf_mongrel.rb:2065:in `new' >>> conf_mongrel.rb:2065 >>> >> >> what is this? >> >> >> >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From terragb at gmail.com Thu Jan 21 00:19:01 2010 From: terragb at gmail.com (Garret Buell) Date: Wed, 20 Jan 2010 21:19:01 -0800 Subject: Broken Camping (on Dreamhost) Message-ID: <54e0571c1001202119q6269c38ci4513bcd68e3baad9@mail.gmail.com> Hello all, I'm running Camping 1.9.300 on DreamHost. Everything has been working great for quite some time, then recently, visiting the Camping app gives a 500 Internal Server Error. It seems as if something at DreamHost was upgraded and now everything is broken. Even the basic example Camping apps do not work so I suspect there is some incompatibility with Camping and the current setup. I'm hoping someone can help me figure out what is wrong. Here is the relevant error log data: [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in `rewind': Illegal seek (Errno::ESPIPE) [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in `POST' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:160:in `params' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom (eval):30:in `initialize' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom (eval):50:in `new' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom (eval):50:in `call' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom dispatch.cgi:16 [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:33:in `serve' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:7:in `run' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom dispatch.cgi:19 [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] Premature end of script headers: dispatch.cgi My dispatch.cgi worked previously and nothing has been modified but here it is: #!/usr/bin/ruby ENV['GEM_PATH'] = '/home/garret/.gems:/usr/lib/ruby/gems/1.8' ENV['GEM_HOME'] = '/home/garret/.gems' Dir.chdir '/home/garret/admin.*****.com' require 'admin' app = Admin fixed = lambda do |env| r = env["REQUEST_URI"][0..(env["REQUEST_URI"].index("?")||0)-1] d = r.length - (env["PATH_INFO"]||'/').length env["SCRIPT_NAME"] = r[0...d] env["PATH_INFO"] = r[d..-1] app.call(env) end Rack::Handler::CGI.run(fixed) The require 'admin' app = Admin can be replaced with any of the sample apps I've found with the same effect. Help? Thanks, Garret Buell From judofyr at gmail.com Thu Jan 21 01:12:24 2010 From: judofyr at gmail.com (Magnus Holm) Date: Thu, 21 Jan 2010 07:12:24 +0100 Subject: Broken Camping (on Dreamhost) In-Reply-To: <54e0571c1001202119q6269c38ci4513bcd68e3baad9@mail.gmail.com> References: <54e0571c1001202119q6269c38ci4513bcd68e3baad9@mail.gmail.com> Message-ID: <391a49da1001202212h65c50c12y914ba5cbdd022389@mail.gmail.com> That's weird? First of all, could you update Rack to 1.1 and try with that version? If it's still broken, I think this monkey-patch should do it: class Rack::Request def params self.GET.update(self.POST) rescue EOFError, Errno::ESPIPE => e self.GET end end // Magnus Holm On Thu, Jan 21, 2010 at 06:19, Garret Buell wrote: > Hello all, > I'm running Camping 1.9.300 on DreamHost. Everything has been working > great for quite some time, then recently, visiting the Camping app > gives a 500 Internal Server Error. It seems as if something at > DreamHost was upgraded and now everything is broken. Even the basic > example Camping apps do not work so I suspect there is some > incompatibility with Camping and the current setup. I'm hoping someone > can help me figure out what is wrong. > > Here is the relevant error log data: > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in > `rewind': Illegal seek (Errno::ESPIPE) > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in > `POST' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:160:in > `params' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > (eval):30:in `initialize' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > (eval):50:in `new' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > (eval):50:in `call' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > dispatch.cgi:16 > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in > `call' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in > `call' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:33:in > `serve' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:7:in > `run' > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom > dispatch.cgi:19 > [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] Premature > end of script headers: dispatch.cgi > > My dispatch.cgi worked previously and nothing has been modified but here it > is: > #!/usr/bin/ruby > > ENV['GEM_PATH'] = '/home/garret/.gems:/usr/lib/ruby/gems/1.8' > ENV['GEM_HOME'] = '/home/garret/.gems' > > Dir.chdir '/home/garret/admin.*****.com' > > require 'admin' > app = Admin > > fixed = lambda do |env| > r = env["REQUEST_URI"][0..(env["REQUEST_URI"].index("?")||0)-1] > d = r.length - (env["PATH_INFO"]||'/').length > env["SCRIPT_NAME"] = r[0...d] > env["PATH_INFO"] = r[d..-1] > app.call(env) > end > > Rack::Handler::CGI.run(fixed) > > > The > require 'admin' > app = Admin > > can be replaced with any of the sample apps I've found with the same > effect. > > Help? > > Thanks, > Garret Buell > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From terragb at gmail.com Thu Jan 21 01:48:22 2010 From: terragb at gmail.com (Garret Buell) Date: Wed, 20 Jan 2010 22:48:22 -0800 Subject: Broken Camping (on Dreamhost) In-Reply-To: <391a49da1001202212h65c50c12y914ba5cbdd022389@mail.gmail.com> References: <54e0571c1001202119q6269c38ci4513bcd68e3baad9@mail.gmail.com> <391a49da1001202212h65c50c12y914ba5cbdd022389@mail.gmail.com> Message-ID: <54e0571c1001202248i2e2e50c2xefa11a9b3bff5731@mail.gmail.com> Thanks Magnus! Updating Rack to 1.1 worked. No idea what broke it in the first place though since it definitely wasn't running Rack 1.1 before. Also, that patch looks a lot like a patch I saw for Sinatra to address a similar problem so I assume it would also work. -Garret On Wed, Jan 20, 2010 at 10:12 PM, Magnus Holm wrote: > That's weird? > First of all, could you update Rack to 1.1 and try with that version? > If it's still broken, I think this monkey-patch should do it: > class Rack::Request > ??def params > ????self.GET.update(self.POST) > ??rescue EOFError, Errno::ESPIPE?=> e > ?? ?self.GET > ??end > end > // Magnus Holm > > > On Thu, Jan 21, 2010 at 06:19, Garret Buell wrote: >> >> Hello all, >> I'm running Camping 1.9.300 on DreamHost. Everything has been working >> great for quite some time, then recently, visiting the Camping app >> gives a 500 Internal Server Error. It seems as if something at >> DreamHost was upgraded and now everything is broken. Even the basic >> example Camping apps do not work so I suspect there is some >> incompatibility with Camping and the current setup. I'm hoping someone >> can help me figure out what is wrong. >> >> Here is the relevant error log data: >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in >> `rewind': Illegal seek (Errno::ESPIPE) >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in >> `POST' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:160:in >> `params' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> (eval):30:in `initialize' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> (eval):50:in `new' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> (eval):50:in `call' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> dispatch.cgi:16 >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in >> `call' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in >> `call' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:33:in >> `serve' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:7:in >> `run' >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom >> dispatch.cgi:19 >> [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] Premature >> end of script headers: dispatch.cgi >> >> My dispatch.cgi worked previously and nothing has been modified but here >> it is: >> #!/usr/bin/ruby >> >> ENV['GEM_PATH'] = '/home/garret/.gems:/usr/lib/ruby/gems/1.8' >> ENV['GEM_HOME'] = '/home/garret/.gems' >> >> Dir.chdir '/home/garret/admin.*****.com' >> >> require 'admin' >> app = Admin >> >> fixed = lambda do |env| >> ?r = env["REQUEST_URI"][0..(env["REQUEST_URI"].index("?")||0)-1] >> ?d = r.length - (env["PATH_INFO"]||'/').length >> ?env["SCRIPT_NAME"] = r[0...d] >> ?env["PATH_INFO"] = r[d..-1] >> ?app.call(env) >> end >> >> Rack::Handler::CGI.run(fixed) >> >> >> The >> require 'admin' >> app = Admin >> >> can be replaced with any of the sample apps I've found with the same >> effect. >> >> Help? >> >> Thanks, >> Garret Buell >> _______________________________________________ >> 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 deveritt at innotts.co.uk Sat Jan 23 15:12:45 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Sat, 23 Jan 2010 20:12:45 +0000 Subject: gems.judofyr.net 404 Message-ID: I noticed today that this: gem install camping --source http://gems.judofyr.net has broken, so wanted to update the wiki at Github so visitors can get the latest version via gem? Dave Everitt From judofyr at gmail.com Sat Jan 23 15:55:10 2010 From: judofyr at gmail.com (Magnus Holm) Date: Sat, 23 Jan 2010 21:55:10 +0100 Subject: gems.judofyr.net 404 In-Reply-To: References: Message-ID: <391a49da1001231255m3d83c3c9ifdf1a83a041eaa28@mail.gmail.com> And it's back up again! I'll try to get stuff.judofyr.net/camping-docs working too? // Magnus Holm On Sat, Jan 23, 2010 at 21:12, Dave Everitt wrote: > I noticed today that this: > gem install camping --source http://gems.judofyr.net > > has broken, so wanted to update the wiki at Github so visitors can get the > latest version via gem? > > Dave Everitt > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From deveritt at innotts.co.uk Sat Jan 23 18:21:28 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Sat, 23 Jan 2010 23:21:28 +0000 Subject: gems.judofyr.net 404 In-Reply-To: <391a49da1001231255m3d83c3c9ifdf1a83a041eaa28@mail.gmail.com> References: <391a49da1001231255m3d83c3c9ifdf1a83a041eaa28@mail.gmail.com> Message-ID: <5DA299C5-0608-4E77-82DC-A06835B69D28@innotts.co.uk> Great - I've updated the version number on the wiki - Dave > And it's back up again! > > I'll try to get stuff.judofyr.net/camping-docs working too? > > // Magnus Holm > >> On Jan 23at 21:12, Dave Everitt wrote: >> I noticed today that this: >> gem install camping --source http://gems.judofyr.net >> >> has broken, so wanted to update the wiki at Github so visitors can >> get the latest version via gem? >> >> Dave Everitt