From nathaniel at talbott.ws Wed Oct 4 08:27:15 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Wed, 4 Oct 2006 08:27:15 -0400 Subject: [raleigh.rb] Hack Night Message-ID: <04190E54-DEFA-48DE-93CC-C1BF80A1111F@talbott.ws> For those who are on the fence about whether or not to come out for Hack Night tomorrow, I thought I'd let you know that David Alan Black, who's in town for http://www.raleighonrails.com/, will be there. David's a Ruby mainstay in the English speaking world, having been a major force in organizing all of the RubyConfs, a constant contributor to the ruby-talk mailing list, and now author of the excellent "Ruby for Rails" book. While the Hack Night will be pretty informal, I'm sure you can hit him up for his thoughts on just about anything Ruby related. I know I'm curious to peek over his shoulder and see what he's hacking on these days. I'd also like to let everyone know that I'll be kicking off the hack night around 6:30 by doing introductions and inviting folks to let us know what they're going to be hacking on (or that they want to help someone else hack). I'm hoping it'll help new folks get a feel for what's going on, and help some of us old-timers learn some more people's names. Hope to see you there, -- Nathaniel Talbott <:((>< From moonshark413 at yahoo.com Wed Oct 4 15:29:33 2006 From: moonshark413 at yahoo.com (P.D.S.) Date: Wed, 4 Oct 2006 12:29:33 -0700 (PDT) Subject: [raleigh.rb] Net/IMAP - wherein I fail to understand... Message-ID: <20061004192934.38013.qmail@web54615.mail.yahoo.com> I'm trying to use Net/IMAP to make a ruby script to pick up mail from a server but I can't get very far due to my failure to understand how to access the UID in the struct returned when I iterate through the unseen messages. Here's some sample code with comments marking things I have tried... thanks for any help you can offer. ~P #! /opt/local/bin/ruby require "net/imap" require 'pp' mail_server = "" puts "Enter Mail server :" mail_server = gets.rstrip! # =========================== # Username and Password user = Hash.new user[:name] = "" user[:password] = "" puts "Enter Mailbox username :" user[:name] = gets.rstrip! puts "Enter Mailbox password :" user[:password] = gets.rstrip! # =========================== imap = Net::IMAP.new(mail_server) imap.authenticate('CRAM-MD5', user[:name], user[:password]) # examine prepares the messages in a mailbox for use imap.select('INBOX') stat = imap.status("inbox", ["MESSAGES", "RECENT", "UNSEEN"]) # => {"MESSAGES"=>237, "UNSEEN"=>1, "RECENT"=>0} puts stat.inspect puts "Message Count : " + stat["MESSAGES"].to_s puts "Unseen Count : " + stat["UNSEEN"].to_s # search for desired messages #imap.search(["NOT","SEEN"]).each do |message_id| imap.search(["UNSEEN"]).each do |message_id| puts message_id.to_s msg = imap.fetch(message_id, "UID") # => [#38390}>] # need a way to get at the UID in the above indicated struct # test_id = msg.attr["UID"] pp msg # goal of this script was to make phantom unseen message in Mail.app go away... # future improvement would be to delete these phantom (spam) messages # that have no body/subject and freak Mail.app out # use store function to mark a message as seen #imap.store(message_id,"+FLAGS",[:Seen]) end # fetch message by UID #(hard code test_id to one found above to make this work) # the crux of the problem is accessing the UIDs from the message_id data = imap.uid_fetch(test_id,["UID","RFC822.SIZE"]) pp data # the following will fail despite matching the docs... pp data.attr["UID"] # exit nicely imap.close imap.disconnect __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ryan.daigle at gmail.com Wed Oct 4 17:46:44 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 4 Oct 2006 17:46:44 -0400 Subject: [raleigh.rb] Net/IMAP - wherein I fail to understand... In-Reply-To: <20061004192934.38013.qmail@web54615.mail.yahoo.com> References: <20061004192934.38013.qmail@web54615.mail.yahoo.com> Message-ID: <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> I tried to recreate the FetchData struct and it seems as though msg.attr["UID"] should work... FetchData = Struct.new("FetchData", :attr) => Struct::FetchData data = FetchData.new({"UID" => 1231241}) => #1231241}> data.attr => {"UID"=>1231241} data.attr["UID"] => 1231241 When you try to use msg.attr["UID"] - what is returned? Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 4, 2006, at 3:29 PM, P.D.S. wrote: I'm trying to use Net/IMAP to make a ruby script to pick up mail from a server but I can't get very far due to my failure to understand how to access the UID in the struct returned when I iterate through the unseen messages. Here's some sample code with comments marking things I have tried... thanks for any help you can offer. ~P #! /opt/local/bin/ruby require "net/imap" require 'pp' mail_server = "" puts "Enter Mail server :" mail_server = gets.rstrip! # =========================== # Username and Password user = Hash.new user[:name] = "" user[:password] = "" puts "Enter Mailbox username :" user[:name] = gets.rstrip! puts "Enter Mailbox password :" user[:password] = gets.rstrip! # =========================== imap = Net::IMAP.new(mail_server) imap.authenticate('CRAM-MD5', user[:name], user[:password]) # examine prepares the messages in a mailbox for use imap.select('INBOX') stat = imap.status("inbox", ["MESSAGES", "RECENT", "UNSEEN"]) # => {"MESSAGES"=>237, "UNSEEN"=>1, "RECENT"=>0} puts stat.inspect puts "Message Count : " + stat["MESSAGES"].to_s puts "Unseen Count : " + stat["UNSEEN"].to_s # search for desired messages #imap.search(["NOT","SEEN"]).each do |message_id| imap.search(["UNSEEN"]).each do |message_id| puts message_id.to_s msg = imap.fetch(message_id, "UID") # => [#38390}>] # need a way to get at the UID in the above indicated struct # test_id = msg.attr["UID"] pp msg # goal of this script was to make phantom unseen message in Mail.app go away... # future improvement would be to delete these phantom (spam) messages # that have no body/subject and freak Mail.app out # use store function to mark a message as seen #imap.store(message_id,"+FLAGS",[:Seen]) end # fetch message by UID #(hard code test_id to one found above to make this work) # the crux of the problem is accessing the UIDs from the message_id data = imap.uid_fetch(test_id,["UID","RFC822.SIZE"]) pp data # the following will fail despite matching the docs... pp data.attr["UID"] # exit nicely imap.close imap.disconnect __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061004/350bd276/attachment-0001.html From lists-jared at nc.rr.com Thu Oct 5 12:21:21 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Thu, 5 Oct 2006 12:21:21 -0400 Subject: [raleigh.rb] Setting up a Ruby project... In-Reply-To: <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> References: <20061004192934.38013.qmail@web54615.mail.yahoo.com> <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> Message-ID: I saw this post today I was recently asked: How would you structure a (non-Rails) Ruby project? Here's a list of the things I generally do when creating a new project: http://jayfields.blogspot.com/2006/10/ruby-project-tree.html And it looked good to me. :) These defaults seem reasonable... What does everyone else do? Jared http://jaredrichardson.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061005/152a81e5/attachment.html From kevin.olbrich at gmail.com Thu Oct 5 15:35:23 2006 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Thu, 5 Oct 2006 15:35:23 -0400 Subject: [raleigh.rb] Setting up a Ruby project... In-Reply-To: References: <20061004192934.38013.qmail@web54615.mail.yahoo.com> <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> Message-ID: I also create a rake task for running rcov something like... require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.test_files = FileList['test/test*.rb'] #t.verbose = true # uncomment to see the executed command end then you can do 'rake rcov' and it will do it's magic. The other thing I do is add it to a subversion repository, but that's obvious, right? _Kevin On 10/5/06, Jared Richardson wrote: > > I saw this post today > > *I was recently asked: How would you structure a (non-Rails) Ruby project? > * > * > * > *Here's a list of the things I generally do when creating a new project:* > > http://jayfields.blogspot.com/2006/10/ruby-project-tree.html > > And it looked good to me. :) These defaults seem reasonable... > > What does everyone else do? > > Jared > http://jaredrichardson.net > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061005/74a9833c/attachment.html From moonshark413 at yahoo.com Thu Oct 5 16:14:48 2006 From: moonshark413 at yahoo.com (P.D.S.) Date: Thu, 5 Oct 2006 13:14:48 -0700 (PDT) Subject: [raleigh.rb] Net/IMAP - wherein I fail to understand... In-Reply-To: <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> Message-ID: <20061005201448.48210.qmail@web54612.mail.yahoo.com> Recall that the data per "pp msg" is : [#38390}>] Well, per p628 of pickaxe2 on structs, I tried to access the data in the following ways... msg.attr =>undefined method `attr' for [#38390}>]:Array (NoMethodError) msg["attr"] => `[]': can't convert String into Integer (TypeError) msg[:attr] => `[]': Symbol as array index (TypeError) msg[0] => #38415}> A-ha!!! That's the same struct, sans it's enclosing brackets! Am I dealing with a struct in an array? msg[0].attr => {"UID"=>38415} msg[0].attr["UID"] => 38415 Success! Now, in retrospect, the brackets seem obvious, but the fact is they are not - and I had first asked some very bright co-workers who do ruby/rails all-day/every-day and they didn't catch it either. The docs are not clear as to what's returned by the fetch call (apparently docs are the universal complaint... this is the one place where PHP totally destroys ruby) I had also done a .methods call on it as well, but that was too generic looking At any rate, I now know how to deal with it and will move on to doing the interesting part of the script. Thanks for your help! ~P --- Ryan Daigle wrote: > I tried to recreate the FetchData struct and it seems as though > msg.attr["UID"] should work... > > FetchData = Struct.new("FetchData", :attr) > => Struct::FetchData > data = FetchData.new({"UID" => 1231241}) > => #1231241}> > data.attr > => {"UID"=>1231241} > data.attr["UID"] > => 1231241 > > When you try to use msg.attr["UID"] - what is returned? > > > Ryan Daigle __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ryan.daigle at gmail.com Thu Oct 5 20:00:51 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Thu, 5 Oct 2006 20:00:51 -0400 Subject: [raleigh.rb] Net/IMAP - wherein I fail to understand... In-Reply-To: <20061005201448.48210.qmail@web54612.mail.yahoo.com> References: <20061005201448.48210.qmail@web54612.mail.yahoo.com> Message-ID: <3B666795-399B-443E-B60E-82D3E5EF9F76@gmail.com> ah yes ... the brackets. Good one. Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 5, 2006, at 4:14 PM, P.D.S. wrote: Recall that the data per "pp msg" is : [#38390}>] Well, per p628 of pickaxe2 on structs, I tried to access the data in the following ways... msg.attr =>undefined method `attr' for [#38390}>]:Array (NoMethodError) msg["attr"] => `[]': can't convert String into Integer (TypeError) msg[:attr] => `[]': Symbol as array index (TypeError) msg[0] => #38415}> A-ha!!! That's the same struct, sans it's enclosing brackets! Am I dealing with a struct in an array? msg[0].attr => {"UID"=>38415} msg[0].attr["UID"] => 38415 Success! Now, in retrospect, the brackets seem obvious, but the fact is they are not - and I had first asked some very bright co-workers who do ruby/rails all-day/every-day and they didn't catch it either. The docs are not clear as to what's returned by the fetch call (apparently docs are the universal complaint... this is the one place where PHP totally destroys ruby) I had also done a .methods call on it as well, but that was too generic looking At any rate, I now know how to deal with it and will move on to doing the interesting part of the script. Thanks for your help! ~P --- Ryan Daigle wrote: > I tried to recreate the FetchData struct and it seems as though > msg.attr["UID"] should work... > > FetchData = Struct.new("FetchData", :attr) > => Struct::FetchData > data = FetchData.new({"UID" => 1231241}) > => #1231241}> > data.attr > => {"UID"=>1231241} > data.attr["UID"] > => 1231241 > > When you try to use msg.attr["UID"] - what is returned? > > > Ryan Daigle __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061005/ff97ba46/attachment-0001.html From lists-jared at nc.rr.com Thu Oct 5 22:11:42 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Thu, 5 Oct 2006 22:11:42 -0400 Subject: [raleigh.rb] Net/IMAP - wherein I fail to understand... References: <20061005201448.48210.qmail@web54612.mail.yahoo.com> <3B666795-399B-443E-B60E-82D3E5EF9F76@gmail.com> Message-ID: <018201c6e8ec$c4b7e5f0$6402a8c0@Kristel> I spent a ~long~ time working with an Active Record result set that was an Array of an Array.... :( Good catch. ----- Original Message ----- From: Ryan Daigle To: The mailing list of raleigh.rb Sent: Thursday, October 05, 2006 8:00 PM Subject: Re: [raleigh.rb] Net/IMAP - wherein I fail to understand... ah yes ... the brackets. Good one. Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 5, 2006, at 4:14 PM, P.D.S. wrote: Recall that the data per "pp msg" is : [#38390}>] Well, per p628 of pickaxe2 on structs, I tried to access the data in the following ways... msg.attr =>undefined method `attr' for [#38390}>]:Array (NoMethodError) msg["attr"] => `[]': can't convert String into Integer (TypeError) msg[:attr] => `[]': Symbol as array index (TypeError) msg[0] => #38415}> A-ha!!! That's the same struct, sans it's enclosing brackets! Am I dealing with a struct in an array? msg[0].attr => {"UID"=>38415} msg[0].attr["UID"] => 38415 Success! Now, in retrospect, the brackets seem obvious, but the fact is they are not - and I had first asked some very bright co-workers who do ruby/rails all-day/every-day and they didn't catch it either. The docs are not clear as to what's returned by the fetch call (apparently docs are the universal complaint... this is the one place where PHP totally destroys ruby) I had also done a .methods call on it as well, but that was too generic looking At any rate, I now know how to deal with it and will move on to doing the interesting part of the script. Thanks for your help! ~P --- Ryan Daigle wrote: I tried to recreate the FetchData struct and it seems as though msg.attr["UID"] should work... FetchData = Struct.new("FetchData", :attr) => Struct::FetchData data = FetchData.new({"UID" => 1231241}) => #1231241}> data.attr => {"UID"=>1231241} data.attr["UID"] => 1231241 When you try to use msg.attr["UID"] - what is returned? Ryan Daigle __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members ------------------------------------------------------------------------------ _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061005/1196aefc/attachment.html From nathaniel at talbott.ws Fri Oct 6 08:06:02 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Fri, 6 Oct 2006 08:06:02 -0400 Subject: [raleigh.rb] Setting up a Ruby project... In-Reply-To: References: <20061004192934.38013.qmail@web54615.mail.yahoo.com> <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> Message-ID: On Oct 5, 2006, at 12:21 , Jared Richardson wrote: > I saw this post today > >> I was recently asked: How would you structure a (non-Rails) Ruby >> project? >> >> Here's a list of the things I generally do when creating a new >> project: >> >> http://jayfields.blogspot.com/2006/10/ruby-project-tree.html > > And it looked good to me. :) These defaults seem reasonable... > > What does everyone else do? I think he's headed in the right direction, but he seems to have two anti-patterns mixed in there: - all_tests.rb: if you have a Rakefile (and you should), this functionality should live there. No need to clutter up your test directory. - the file to require all files: this seems like a good idea at first, but it's not. Don't do it. Instead, have your top-level file require the few files that are really needed externally, have them require the files they need, etc. By using lib and test, you're set up to become a gem or use setup.rb later - those two directories are very standard. You can learn more about that here: http://i.loveruby.net/en/projects/setup/doc/devel.html Great topic, -- Nathaniel Talbott <:((>< -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2423 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061006/f134858e/attachment.bin From matthew.todd at gmail.com Fri Oct 6 12:20:27 2006 From: matthew.todd at gmail.com (Matthew Todd) Date: Fri, 6 Oct 2006 12:20:27 -0400 Subject: [raleigh.rb] Setting up a Ruby project... In-Reply-To: References: <20061004192934.38013.qmail@web54615.mail.yahoo.com> <84976732-B258-4FB0-A6F7-8CA59BE5899D@gmail.com> Message-ID: <8932dfd40610060920k3b67b643q2cdd017ab1eaf1c0@mail.gmail.com> On 10/5/06, Jared Richardson wrote: > Here's a list of the things I generally do when creating a new project: > http://jayfields.blogspot.com/2006/10/ruby-project-tree.html > > And it looked good to me. :) These defaults seem reasonable... > What does everyone else do? I've not yet used it, but saw "hoe" mentioned recently: http://blog.zenspider.com/archives/2006/09/farmer_ted_uses.html -- Matthew From tj at stank.us Tue Oct 10 23:15:52 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 10 Oct 2006 23:15:52 -0400 Subject: [raleigh.rb] booq bag for sale Message-ID: I was about to put my booq bag on craigslist or ebay, but thought I'd offer it here first, since there are so many Mac users. Booq bags are high-end laptop bags made especially for Macs. I heart my Booq bag, but I need the biggest model they offer now since I'm biking into work. I bought mine in February of this year, and it's in perfect shape. If interested I have the Boa XM System (for 15" Mac laptops) depicted here: http://booqbags.com/s.nl/it.A/id.226/.f Original price $200. I'm asking $100. Contact me off list if interested. -TJ From tj at stank.us Tue Oct 10 23:34:36 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 10 Oct 2006 23:34:36 -0400 Subject: [raleigh.rb] Contract job opening for RoR developer in Raleigh In-Reply-To: <03C49366-2F1B-4C65-B4CB-DF770D153E0D@talbott.ws> References: <03C49366-2F1B-4C65-B4CB-DF770D153E0D@talbott.ws> Message-ID: > Just FYI for everyone on the list, Ruby job postings are *encouraged* > on the list, both "I'm available" and "I need help". So please don't > hesitate to start your search here - one of the great benefits of > having a thriving hobbyist community is that it can enable more of us > to get paid to do what we love. On that note, I just had a project get delayed for a while, so I find myself willling and able to take on Rails work on a contractual, part-time basis (20-30 hrs/wk). If you are looking for a Rails developer, or know of any contract leads, please let me know off-list. Thanks! -TJ From geoff at geoffdavis.net Wed Oct 11 12:19:45 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 11 Oct 2006 12:19:45 -0400 Subject: [raleigh.rb] HTML sanitization Message-ID: <1160583585.4049.15.camel@test> Hi all-- Does anyone have a recommendation for a good HTML sanitizer in Ruby? I'd like to do things like nuking javascript / css / img tags, adding rel="nofollow" to links, etc. The HTML in question may not be well- formed. Thanks! Geoff From kevin.olbrich at gmail.com Wed Oct 11 18:20:46 2006 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Wed, 11 Oct 2006 18:20:46 -0400 Subject: [raleigh.rb] .NET job Message-ID: Well, it's not really ruby related, but I figure at least a few of you know .NET and need some work. I have a contact who mentioned that he is looking for some .NET developers. If you are interested, email me directly and I'll hook you up. -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. From chris at coderhythm.com Wed Oct 11 21:25:08 2006 From: chris at coderhythm.com (Chris O'Meara) Date: Wed, 11 Oct 2006 21:25:08 -0400 Subject: [raleigh.rb] HTML sanitization In-Reply-To: <1160583585.4049.15.camel@test> References: <1160583585.4049.15.camel@test> Message-ID: <20F77C39-F72E-4ACE-B9DE-42C4C7B81702@coderhythm.com> There's a ruby interface to HTML tidy that will get you started. It won't strip things out automatically for you but it will tidy up the dom and give you a document to work with. Have a look at http://mudabone.com/wiki/index.php?title=HTML% 2C_Tidy_and_Parsing. Here's an example from something of my own: require 'net/http' require 'uri' require 'rexml/document' require 'rubygems' require 'tidy' res = Net::HTTP.start('www.biblegateway.com', 80) {|http| http.get('/passage/?search=ps%20145&version=31') } Tidy.path = '/opt/local/lib/libtidy' xhtml = Tidy.open(:show_warnings=>true) { |tidy| tidy.options.output_xml = true xhtml = tidy.clean(res.body) } document = REXML::Document.new(xhtml) elements = document.elements["//div[@class = 'result-text-style- normal']"] # Munge the doc... On Oct 11, 2006, at 12:19 PM, Geoff Davis wrote: > Hi all-- > > Does anyone have a recommendation for a good HTML sanitizer in Ruby? > I'd like to do things like nuking javascript / css / img tags, adding > rel="nofollow" to links, etc. The HTML in question may not be well- > formed. > > Thanks! > > Geoff > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From nospam at tonyspencer.com Thu Oct 12 11:52:11 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 12 Oct 2006 11:52:11 -0400 Subject: [raleigh.rb] Breakpoint never works on my machine Message-ID: Breakpoint always locks up my webbrick and never goes into irb when I add a breakpoint line in any rails app. Its so bad I have to kill the process. I finally found this guy who had the same problem and his workaround solves my issue but I was wondering if anyone else had the problem and knew the cause of it: http://lists.rubyonrails.org/pipermail/rails/2006-February/018534.html So I have to add this line everytime I want to debug: Breakpoint.deactivate_drb Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061012/279c4569/attachment.html From lists-jared at nc.rr.com Thu Oct 12 11:57:45 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Thu, 12 Oct 2006 11:57:45 -0400 Subject: [raleigh.rb] Breakpoint never works on my machine In-Reply-To: References: Message-ID: <8BB9650E-51FC-4FF0-AFAD-55C8CC3B6401@nc.rr.com> Have you tried Mongrel? It's faster than Webrick for me. Jared http://jaredrichardson.net On Oct 12, 2006, at 11:52 AM, Tony Spencer wrote: > Breakpoint always locks up my webbrick and never goes into irb when > I add a breakpoint line in any rails app. Its so bad I have to > kill the process. I finally found this guy who had the same > problem and his workaround solves my issue but I was wondering if > anyone else had the problem and knew the cause of it: > http://lists.rubyonrails.org/pipermail/rails/2006-February/018534.html > > So I have to add this line everytime I want to debug: > Breakpoint.deactivate_drb > > > Tony > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061012/9498605e/attachment.html From nathaniel at talbott.ws Thu Oct 12 12:15:45 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Thu, 12 Oct 2006 12:15:45 -0400 Subject: [raleigh.rb] Breakpoint never works on my machine In-Reply-To: References: Message-ID: On Oct 12, 2006, at 11:52 , Tony Spencer wrote: > Breakpoint always locks up my webbrick and never goes into irb when > I add a breakpoint line in any rails app. Its so bad I have to > kill the process. I finally found this guy who had the same > problem and his workaround solves my issue but I was wondering if > anyone else had the problem and knew the cause of it: > http://lists.rubyonrails.org/pipermail/rails/2006-February/018534.html From this: http://lists.rubyonrails.org/pipermail/rails/2005-February/ 002404.html It appears that issue might be the Access Control List, which tries to restrict access to localhost only. Apparently in some cases your computer may not be identified as localhost by DRb, thus causing it to refuse the connection. > So I have to add this line everytime I want to debug: > Breakpoint.deactivate_drb I think you can put this at the end of config/environments/ development.rb and not worry about it again. HTH, -- Nathaniel Talbott <:((>< From nospam at tonyspencer.com Thu Oct 12 13:07:15 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 12 Oct 2006 13:07:15 -0400 Subject: [raleigh.rb] Breakpoint never works on my machine In-Reply-To: Message-ID: Thanks! That worked. FYI for anyone else with the problem I also had to comment out this line in the same to get it to work: config.breakpoint_server = true Also thanks for the tip Jared. I was using Mongrel but wasn?t aware that breakpointer would work with it. No more webbrick! :) On 10/12/06 12:15 PM, "Nathaniel Talbott" wrote: > On Oct 12, 2006, at 11:52 , Tony Spencer wrote: > >> > Breakpoint always locks up my webbrick and never goes into irb when >> > I add a breakpoint line in any rails app. Its so bad I have to >> > kill the process. I finally found this guy who had the same >> > problem and his workaround solves my issue but I was wondering if >> > anyone else had the problem and knew the cause of it: >> > http://lists.rubyonrails.org/pipermail/rails/2006-February/018534.html > > From this: > > http://lists.rubyonrails.org/pipermail/rails/2005-February/ > 002404.html > > It appears that issue might be the Access Control List, which tries > to restrict access to localhost only. Apparently in some cases your > computer may not be identified as localhost by DRb, thus causing it > to refuse the connection. > > >> > So I have to add this line everytime I want to debug: >> > Breakpoint.deactivate_drb > > I think you can put this at the end of config/environments/ > development.rb and not worry about it again. > > HTH, > > > -- > Nathaniel Talbott > > <:((>< > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061012/e2fac396/attachment.html From atomgiant at gmail.com Thu Oct 12 15:52:48 2006 From: atomgiant at gmail.com (Tom Davies) Date: Thu, 12 Oct 2006 15:52:48 -0400 Subject: [raleigh.rb] HTML sanitization In-Reply-To: <20F77C39-F72E-4ACE-B9DE-42C4C7B81702@coderhythm.com> References: <1160583585.4049.15.camel@test> <20F77C39-F72E-4ACE-B9DE-42C4C7B81702@coderhythm.com> Message-ID: Hi Geoff, I haven't used it, but have you tried the built in sanitize helper?: http://railsmanual.org/module/ActionView::Helpers::TextHelper/sanitize/1.1.2 It seems like it would be a good starting point for you to write your own. You could probably just add your own VERBOTEN_TAGS and use gsub to add the rel="nofollow" for links. Tom On 10/11/06, Chris O'Meara wrote: > There's a ruby interface to HTML tidy that will get you started. It > won't strip things out automatically for you but it will tidy up the > dom and give you a document to work with. > > Have a look at http://mudabone.com/wiki/index.php?title=HTML% > 2C_Tidy_and_Parsing. > > Here's an example from something of my own: > > require 'net/http' > require 'uri' > require 'rexml/document' > require 'rubygems' > require 'tidy' > > res = Net::HTTP.start('www.biblegateway.com', 80) {|http| > http.get('/passage/?search=ps%20145&version=31') > } > > Tidy.path = '/opt/local/lib/libtidy' > > xhtml = Tidy.open(:show_warnings=>true) { |tidy| > tidy.options.output_xml = true > xhtml = tidy.clean(res.body) > } > > document = REXML::Document.new(xhtml) > > elements = document.elements["//div[@class = 'result-text-style- > normal']"] > > # Munge the doc... > > > > On Oct 11, 2006, at 12:19 PM, Geoff Davis wrote: > > > Hi all-- > > > > Does anyone have a recommendation for a good HTML sanitizer in Ruby? > > I'd like to do things like nuking javascript / css / img tags, adding > > rel="nofollow" to links, etc. The HTML in question may not be well- > > formed. > > > > Thanks! > > > > Geoff > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Tom Davies http://atomgiant.com http://gifthat.com From geoff at geoffdavis.net Thu Oct 12 16:27:07 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Thu, 12 Oct 2006 16:27:07 -0400 Subject: [raleigh.rb] HTML sanitization In-Reply-To: References: <1160583585.4049.15.camel@test> <20F77C39-F72E-4ACE-B9DE-42C4C7B81702@coderhythm.com> Message-ID: <1160684827.4051.62.camel@test> Thanks, Tom and Chris. The tidy interface is a bit closer to what I'm looking for than the built-in sanitize. I just discovered the white_list plugin (used by Mephisto), which is quite good, and that plus some gsubbing should probably take care of things for now. Geoff On Thu, 2006-10-12 at 15:52 -0400, Tom Davies wrote: > Hi Geoff, > > I haven't used it, but have you tried the built in sanitize helper?: > > http://railsmanual.org/module/ActionView::Helpers::TextHelper/sanitize/1.1.2 > > It seems like it would be a good starting point for you to write your > own. You could probably just add your own VERBOTEN_TAGS and use gsub > to add the rel="nofollow" for links. > > Tom > > > On 10/11/06, Chris O'Meara wrote: > > There's a ruby interface to HTML tidy that will get you started. It > > won't strip things out automatically for you but it will tidy up the > > dom and give you a document to work with. > > > > Have a look at http://mudabone.com/wiki/index.php?title=HTML% > > 2C_Tidy_and_Parsing. > > > > Here's an example from something of my own: > > > > require 'net/http' > > require 'uri' > > require 'rexml/document' > > require 'rubygems' > > require 'tidy' > > > > res = Net::HTTP.start('www.biblegateway.com', 80) {|http| > > http.get('/passage/?search=ps%20145&version=31') > > } > > > > Tidy.path = '/opt/local/lib/libtidy' > > > > xhtml = Tidy.open(:show_warnings=>true) { |tidy| > > tidy.options.output_xml = true > > xhtml = tidy.clean(res.body) > > } > > > > document = REXML::Document.new(xhtml) > > > > elements = document.elements["//div[@class = 'result-text-style- > > normal']"] > > > > # Munge the doc... > > > > > > > > On Oct 11, 2006, at 12:19 PM, Geoff Davis wrote: > > > > > Hi all-- > > > > > > Does anyone have a recommendation for a good HTML sanitizer in Ruby? > > > I'd like to do things like nuking javascript / css / img tags, adding > > > rel="nofollow" to links, etc. The HTML in question may not be well- > > > formed. > > > > > > Thanks! > > > > > > Geoff > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > From atomgiant at gmail.com Thu Oct 12 17:01:30 2006 From: atomgiant at gmail.com (Tom Davies) Date: Thu, 12 Oct 2006 17:01:30 -0400 Subject: [raleigh.rb] HTML sanitization In-Reply-To: <1160684827.4051.62.camel@test> References: <1160583585.4049.15.camel@test> <20F77C39-F72E-4ACE-B9DE-42C4C7B81702@coderhythm.com> <1160684827.4051.62.camel@test> Message-ID: I hadn't seen the white_list helper. That looks much more flexible then the built-in sanitize. Thanks for pointing that out. Tom On 10/12/06, Geoff Davis wrote: > Thanks, Tom and Chris. The tidy interface is a bit closer to what I'm > looking for than the built-in sanitize. I just discovered the > white_list plugin (used by Mephisto), which is quite good, and that plus > some gsubbing should probably take care of things for now. > > Geoff > > On Thu, 2006-10-12 at 15:52 -0400, Tom Davies wrote: > > Hi Geoff, > > > > I haven't used it, but have you tried the built in sanitize helper?: > > > > http://railsmanual.org/module/ActionView::Helpers::TextHelper/sanitize/1.1.2 > > > > It seems like it would be a good starting point for you to write your > > own. You could probably just add your own VERBOTEN_TAGS and use gsub > > to add the rel="nofollow" for links. > > > > Tom > > > > > > On 10/11/06, Chris O'Meara wrote: > > > There's a ruby interface to HTML tidy that will get you started. It > > > won't strip things out automatically for you but it will tidy up the > > > dom and give you a document to work with. > > > > > > Have a look at http://mudabone.com/wiki/index.php?title=HTML% > > > 2C_Tidy_and_Parsing. > > > > > > Here's an example from something of my own: > > > > > > require 'net/http' > > > require 'uri' > > > require 'rexml/document' > > > require 'rubygems' > > > require 'tidy' > > > > > > res = Net::HTTP.start('www.biblegateway.com', 80) {|http| > > > http.get('/passage/?search=ps%20145&version=31') > > > } > > > > > > Tidy.path = '/opt/local/lib/libtidy' > > > > > > xhtml = Tidy.open(:show_warnings=>true) { |tidy| > > > tidy.options.output_xml = true > > > xhtml = tidy.clean(res.body) > > > } > > > > > > document = REXML::Document.new(xhtml) > > > > > > elements = document.elements["//div[@class = 'result-text-style- > > > normal']"] > > > > > > # Munge the doc... > > > > > > > > > > > > On Oct 11, 2006, at 12:19 PM, Geoff Davis wrote: > > > > > > > Hi all-- > > > > > > > > Does anyone have a recommendation for a good HTML sanitizer in Ruby? > > > > I'd like to do things like nuking javascript / css / img tags, adding > > > > rel="nofollow" to links, etc. The HTML in question may not be well- > > > > formed. > > > > > > > > Thanks! > > > > > > > > Geoff > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Tom Davies http://atomgiant.com http://gifthat.com From lists-jared at nc.rr.com Thu Oct 12 22:43:53 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Thu, 12 Oct 2006 22:43:53 -0400 Subject: [raleigh.rb] Ruby/Rails job board In-Reply-To: References: <1160583585.4049.15.camel@test> <20F77C39-F72E-4ACE-B9DE-42C4C7B81702@coderhythm.com> <1160684827.4051.62.camel@test> Message-ID: Hi all, Mike Clark has started a job board for Pragmatic Studio alums, but he's said I could post it here. It's new, but it's got an RSS feed for new postings. Maybe it'll help some of us. http://pragmaticstudio.com/jobs/ Jared http://jaredrichardson.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061012/299fbb8d/attachment.html From ryan.daigle at gmail.com Fri Oct 13 08:51:39 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Fri, 13 Oct 2006 08:51:39 -0400 Subject: [raleigh.rb] Rails/Mongrel performance Message-ID: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> I'm experiencing some performance issues that I suspect might be 'normal', but I wanted to run them by the group first to see if anybody else had the same issues: I have some Rails apps deployed on various VPSs, all running your standard pound/mongrel setup. Mongrel usually has about 3-5 instances per config, and all machines show that they have plenty of memory available. What happens is that if I have not visited the app in a while (several hours, days etc..), the next time I hit the app it takes a long time to spin up and respond (10-15 seconds) for a sub-second request. No thrashing, no cpu spiking, just a long time to get that first request going. After a few requests everything is humming along nicely. Am I just experiencing the time it takes for the ruby processes to pull everything back into memory after being idle for so long? And if so, is there anyway to avoid this? Thanks. -Ryan From rick.denatale at gmail.com Fri Oct 13 11:45:03 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 13 Oct 2006 11:45:03 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> Message-ID: On 10/13/06, Ryan Daigle wrote: > I'm experiencing some performance issues that I suspect might be > 'normal', but I wanted to run them by the group first to see if > anybody else had the same issues: ... > What happens is that if I have not visited the app in a while > (several hours, days etc..), the next time I hit the app it takes a > long time to spin up and respond (10-15 seconds) for a sub-second > request. No thrashing, no cpu spiking, just a long time to get that > first request going. After a few requests everything is humming > along nicely. Although I haven't measured anything, I'm pretty much seeing the same kind of behavior with my typo implemented blog running on mongrel. I'd love to see an improvement here. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From ryan.daigle at gmail.com Fri Oct 13 12:08:59 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Fri, 13 Oct 2006 12:08:59 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> Message-ID: <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> Is anybody experiencing this on a non-mongrel setup? If not maybe we can blame mongrel for a slow startup time? Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: On 10/13/06, Ryan Daigle wrote: > I'm experiencing some performance issues that I suspect might be > 'normal', but I wanted to run them by the group first to see if > anybody else had the same issues: ... > What happens is that if I have not visited the app in a while > (several hours, days etc..), the next time I hit the app it takes a > long time to spin up and respond (10-15 seconds) for a sub-second > request. No thrashing, no cpu spiking, just a long time to get that > first request going. After a few requests everything is humming > along nicely. Although I haven't measured anything, I'm pretty much seeing the same kind of behavior with my typo implemented blog running on mongrel. I'd love to see an improvement here. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/0240229e/attachment.html From charlesmbowman at gmail.com Fri Oct 13 12:27:23 2006 From: charlesmbowman at gmail.com (Charlie Bowman) Date: Fri, 13 Oct 2006 12:27:23 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> Message-ID: <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> I experience the same issues with fastCGI, so I don't think it's a mongrel only issue On 10/13/06, Ryan Daigle wrote: > > Is anybody experiencing this on a non-mongrel setup? If not maybe we can > blame mongrel for a slow startup time? > > > Ryan Daigle > Lead Engineer, RTP Region > ALTERthought > rdaigle at alterthought.com > O: (919) 424-4413 > M: (919) 260-7179 > > > On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: > > On 10/13/06, Ryan Daigle wrote: > > I'm experiencing some performance issues that I suspect might be > 'normal', but I wanted to run them by the group first to see if > anybody else had the same issues: > > ... > > What happens is that if I have not visited the app in a while > (several hours, days etc..), the next time I hit the app it takes a > long time to spin up and respond (10-15 seconds) for a sub-second > request. No thrashing, no cpu spiking, just a long time to get that > first request going. After a few requests everything is humming > along nicely. > > > Although I haven't measured anything, I'm pretty much seeing the same > kind of behavior with my typo implemented blog running on mongrel. > > I'd love to see an improvement here. > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/5a61a7e4/attachment-0001.html From ryan.daigle at gmail.com Fri Oct 13 12:53:52 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Fri, 13 Oct 2006 12:53:52 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> Message-ID: <9A8A7E61-03E4-4823-8F83-48D51498BFD3@gmail.com> So it appears that the solution is to make your app wildly successful to avoid any prolonged periods of inactivity... On Oct 13, 2006, at 12:27 PM, Charlie Bowman wrote: I experience the same issues with fastCGI, so I don't think it's a mongrel only issue On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com> wrote: Is anybody experiencing this on a non-mongrel setup? If not maybe we can blame mongrel for a slow startup time? Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: On 10/13/06, Ryan Daigle wrote: > I'm experiencing some performance issues that I suspect might be > 'normal', but I wanted to run them by the group first to see if > anybody else had the same issues: ... > What happens is that if I have not visited the app in a while > (several hours, days etc..), the next time I hit the app it takes a > long time to spin up and respond (10-15 seconds) for a sub-second > request. No thrashing, no cpu spiking, just a long time to get that > first request going. After a few requests everything is humming > along nicely. Although I haven't measured anything, I'm pretty much seeing the same kind of behavior with my typo implemented blog running on mongrel. I'd love to see an improvement here. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com / _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/85717eb5/attachment.html From charlesmbowman at gmail.com Fri Oct 13 13:33:25 2006 From: charlesmbowman at gmail.com (Charlie Bowman) Date: Fri, 13 Oct 2006 13:33:25 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <9A8A7E61-03E4-4823-8F83-48D51498BFD3@gmail.com> References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> <9A8A7E61-03E4-4823-8F83-48D51498BFD3@gmail.com> Message-ID: <298c4d2a0610131033m4bf0dfdex718efb388d094286@mail.gmail.com> yes, and as a side note, page caching can also create this problem since rails doesn't start up as often. I've noticed this alot. On 10/13/06, Ryan Daigle wrote: > > So it appears that the solution is to make your app wildly successful to > avoid any prolonged periods of inactivity... > On Oct 13, 2006, at 12:27 PM, Charlie Bowman wrote: > > I experience the same issues with fastCGI, so I don't think it's a mongrel > only issue > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com> wrote: > > > > Is anybody experiencing this on a non-mongrel setup? If not maybe we > > can blame mongrel for a slow startup time? > > > > > > Ryan Daigle > > Lead Engineer, RTP Region > > ALTERthought > > rdaigle at alterthought.com > > O: (919) 424-4413 > > M: (919) 260-7179 > > > > > > On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: > > > > On 10/13/06, Ryan Daigle wrote: > > > > I'm experiencing some performance issues that I suspect might be > > 'normal', but I wanted to run them by the group first to see if > > anybody else had the same issues: > > > > ... > > > > What happens is that if I have not visited the app in a while > > (several hours, days etc..), the next time I hit the app it takes a > > long time to spin up and respond (10-15 seconds) for a sub-second > > request. No thrashing, no cpu spiking, just a long time to get that > > first request going. After a few requests everything is humming > > along nicely. > > > > > > Although I haven't measured anything, I'm pretty much seeing the same > > kind of behavior with my typo implemented blog running on mongrel. > > > > I'd love to see an improvement here. > > -- > > Rick DeNatale > > > > My blog on Ruby > > http://talklikeaduck.denhaven2.com / > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/b3902ea3/attachment.html From adam at thewilliams.ws Fri Oct 13 13:46:31 2006 From: adam at thewilliams.ws (Adam Williams) Date: Fri, 13 Oct 2006 13:46:31 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <298c4d2a0610131033m4bf0dfdex718efb388d094286@mail.gmail.com> References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> <9A8A7E61-03E4-4823-8F83-48D51498BFD3@gmail.com> <298c4d2a0610131033m4bf0dfdex718efb388d094286@mail.gmail.com> Message-ID: I'm almost afraid to suggest it.... Have an external monitor ping a non-caching controller every X minutes. Half-baked thought of the day On Oct 13, 2006, at 1:33 PM, Charlie Bowman wrote: > yes, and as a side note, page caching can also create this problem > since rails doesn't start up as often. I've noticed this alot. > > On 10/13/06, Ryan Daigle wrote: > So it appears that the solution is to make your app wildly > successful to avoid any prolonged periods of inactivity... > > On Oct 13, 2006, at 12:27 PM, Charlie Bowman wrote: > > I experience the same issues with fastCGI, so I don't think it's a > mongrel only issue > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com> wrote: > Is anybody experiencing this on a non-mongrel setup? If not maybe > we can blame mongrel for a slow startup time? > > > Ryan Daigle > Lead Engineer, RTP Region > ALTERthought > rdaigle at alterthought.com > O: (919) 424-4413 > M: (919) 260-7179 > > > On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: > > On 10/13/06, Ryan Daigle wrote: >> I'm experiencing some performance issues that I suspect might be >> 'normal', but I wanted to run them by the group first to see if >> anybody else had the same issues: > ... >> What happens is that if I have not visited the app in a while >> (several hours, days etc..), the next time I hit the app it takes a >> long time to spin up and respond (10-15 seconds) for a sub-second >> request. No thrashing, no cpu spiking, just a long time to get that >> first request going. After a few requests everything is humming >> along nicely. > > Although I haven't measured anything, I'm pretty much seeing the same > kind of behavior with my typo implemented blog running on mongrel. > > I'd love to see an improvement here. > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com / > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/95c9e39d/attachment-0001.html From nospam at tonyspencer.com Fri Oct 13 14:10:14 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Fri, 13 Oct 2006 14:10:14 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> Message-ID: As someone new to rails this is not the news I wanted to hear. Its like going back to the super annoying wait-for-my-JSP-page-to-compile days. On 10/13/06 12:27 PM, "Charlie Bowman" wrote: > I experience the same issues with fastCGI, so I don't think it's a mongrel > only issue > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com > > wrote: >> Is anybody experiencing this on a non-mongrel setup? If not maybe we can >> blame mongrel for a slow startup time? >> >> >> Ryan Daigle >> Lead Engineer, RTP Region >> ALTERthought >> rdaigle at alterthought.com >> O: (919) 424-4413 >> M: (919) 260-7179 >> >> >> >> On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: >> >> On 10/13/06, Ryan Daigle wrote: >> >>> I'm experiencing some performance issues that I suspect might be >>> 'normal', but I wanted to run them by the group first to see if >>> anybody else had the same issues: >>> >> ... >> >>> What happens is that if I have not visited the app in a while >>> (several hours, days etc..), the next time I hit the app it takes a >>> long time to spin up and respond (10-15 seconds) for a sub-second >>> request. No thrashing, no cpu spiking, just a long time to get that >>> first request going. After a few requests everything is humming >>> along nicely. >>> >> >> Although I haven't measured anything, I'm pretty much seeing the same >> kind of behavior with my typo implemented blog running on mongrel. >> >> I'd love to see an improvement here. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/913bc433/attachment.html From ryan.daigle at gmail.com Fri Oct 13 14:35:45 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Fri, 13 Oct 2006 14:35:45 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: References: <62C1CDDC-2248-4DDD-80B7-1EF30BEC2406@gmail.com> <5ECB8183-22D7-499E-A490-226A5EB962FA@gmail.com> <298c4d2a0610130927o12ee9e55v41aa08af8d53bee5@mail.gmail.com> <9A8A7E61-03E4-4823-8F83-48D51498BFD3@gmail.com> <298c4d2a0610131033m4bf0dfdex718efb388d094286@mail.gmail.com> Message-ID: half-baked, but probably the easiest solution... Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 13, 2006, at 1:46 PM, Adam Williams wrote: I'm almost afraid to suggest it.... Have an external monitor ping a non-caching controller every X minutes. Half-baked thought of the day On Oct 13, 2006, at 1:33 PM, Charlie Bowman wrote: > yes, and as a side note, page caching can also create this problem > since rails doesn't start up as often. I've noticed this alot. > > On 10/13/06, Ryan Daigle wrote: > So it appears that the solution is to make your app wildly > successful to avoid any prolonged periods of inactivity... > > On Oct 13, 2006, at 12:27 PM, Charlie Bowman wrote: > > I experience the same issues with fastCGI, so I don't think it's a > mongrel only issue > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com> wrote: > Is anybody experiencing this on a non-mongrel setup? If not maybe > we can blame mongrel for a slow startup time? > > > Ryan Daigle > Lead Engineer, RTP Region > ALTERthought > rdaigle at alterthought.com > O: (919) 424-4413 > M: (919) 260-7179 > > > On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: > > On 10/13/06, Ryan Daigle wrote: >> I'm experiencing some performance issues that I suspect might be >> 'normal', but I wanted to run them by the group first to see if >> anybody else had the same issues: > ... >> What happens is that if I have not visited the app in a while >> (several hours, days etc..), the next time I hit the app it takes a >> long time to spin up and respond (10-15 seconds) for a sub-second >> request. No thrashing, no cpu spiking, just a long time to get that >> first request going. After a few requests everything is humming >> along nicely. > > Although I haven't measured anything, I'm pretty much seeing the same > kind of behavior with my typo implemented blog running on mongrel. > > I'd love to see an improvement here. > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com / > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/1cc5cd7c/attachment.html From ryan.daigle at gmail.com Fri Oct 13 14:42:30 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Fri, 13 Oct 2006 14:42:30 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: References: Message-ID: Is it any solace that when the app is being pounded it runs like a champ? so... When nobody goes to your app and no-one will know it's slow => it's slow When you've been digg'd and everyone is passing judgement => it's all good. :) Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 13, 2006, at 2:10 PM, Tony Spencer wrote: As someone new to rails this is not the news I wanted to hear. Its like going back to the super annoying wait-for-my-JSP-page-to-compile days. On 10/13/06 12:27 PM, "Charlie Bowman" wrote: > I experience the same issues with fastCGI, so I don't think it's a > mongrel only issue > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com > > wrote: >> Is anybody experiencing this on a non-mongrel setup? If not maybe >> we can blame mongrel for a slow startup time? >> >> >> Ryan Daigle >> Lead Engineer, RTP Region >> ALTERthought >> rdaigle at alterthought.com >> O: (919) 424-4413 >> M: (919) 260-7179 >> >> >> >> On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: >> >> On 10/13/06, Ryan Daigle wrote: >> >>> I'm experiencing some performance issues that I suspect might be >>> 'normal', but I wanted to run them by the group first to see if >>> anybody else had the same issues: >>> >> ... >> >>> What happens is that if I have not visited the app in a while >>> (several hours, days etc..), the next time I hit the app it takes a >>> long time to spin up and respond (10-15 seconds) for a sub-second >>> request. No thrashing, no cpu spiking, just a long time to get that >>> first request going. After a few requests everything is humming >>> along nicely. >>> >> >> Although I haven't measured anything, I'm pretty much seeing the same >> kind of behavior with my typo implemented blog running on mongrel. >> >> I'd love to see an improvement here. _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/16c9d2e5/attachment-0001.html From nospam at tonyspencer.com Fri Oct 13 16:20:49 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Fri, 13 Oct 2006 16:20:49 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: Message-ID: That?s not a bad angle. :) I wonder whats going on under the covers to cause this. On 10/13/06 2:42 PM, "Ryan Daigle" wrote: > Is it any solace that when the app is being pounded it runs like a champ? > > so... > > When nobody goes to your app and no-one will know it's slow => it's slow > When you've been digg'd and everyone is passing judgement => it's all good. > > :) > > Ryan Daigle > Lead Engineer, RTP Region > ALTERthought > rdaigle at alterthought.com > O: (919) 424-4413 > M: (919) 260-7179 > > > > On Oct 13, 2006, at 2:10 PM, Tony Spencer wrote: > > As someone new to rails this is not the news I wanted to hear. ?Its like > going back to the super annoying wait-for-my-JSP-page-to-compile days. > > > On 10/13/06 12:27 PM, "Charlie Bowman" wrote: > > >> I experience the same issues with fastCGI, so I don't think it's a mongrel >> only issue >> >> On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com >> > wrote: >> >>> Is anybody experiencing this on a non-mongrel setup? ?If not maybe we can >>> blame mongrel for a slow startup time? >>> ? >>> >>> Ryan Daigle >>> Lead Engineer, RTP Region >>> ALTERthought >>> rdaigle at alterthought.com ? >>> O: (919) 424-4413 >>> M: (919) 260-7179 >>> >>> ? >>> >>> On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: >>> >>> On 10/13/06, Ryan Daigle wrote: >>> ? >>> >>>> I'm experiencing some performance issues that I suspect might be >>>> 'normal', but I wanted to run them by the group first to see if >>>> anybody else had the same issues: >>>> ? >>>> >>> ... >>> ? >>> >>>> What happens is that if I have not visited the app in a while >>>> (several hours, days etc..), the next time I hit the app it takes a >>>> long time to spin up and respond (10-15 seconds) for a sub-second >>>> request. ?No thrashing, no cpu spiking, just a long time to get that >>>> first request going. ?After a few requests everything is humming >>>> along nicely. >>>> ? >>>> >>> >>> Although I haven't measured anything, I'm pretty much seeing the same >>> kind of behavior with my typo implemented blog running on mongrel. >>> >>> I'd love to see an improvement here. >>> > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/5e55ac8b/attachment.html From lists-jared at nc.rr.com Fri Oct 13 16:37:27 2006 From: lists-jared at nc.rr.com (lists-jared at nc.rr.com) Date: Fri, 13 Oct 2006 13:37:27 -0700 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: References: Message-ID: Is there any chance it's just been swapped out to virtual memory by the operating system and it just needs a moment to swap back in? Someone should post this to big ruby mailing list and see if others have found or fixed the issue. Jared http://jaredrichardson.net ----- Original Message ----- From: Ryan Daigle Date: Friday, October 13, 2006 12:15 pm Subject: Re: [raleigh.rb] Rails/Mongrel performance To: "The mailing list of raleigh.rb" > Is it any solace that when the app is being pounded it runs like a > champ? > > so... > > When nobody goes to your app and no-one will know it's slow => it's > slowWhen you've been digg'd and everyone is passing judgement => > it's all > good. > > :) > > Ryan Daigle > Lead Engineer, RTP Region > ALTERthought > rdaigle at alterthought.com > O: (919) 424-4413 > M: (919) 260-7179 > > > On Oct 13, 2006, at 2:10 PM, Tony Spencer wrote: > > As someone new to rails this is not the news I wanted to hear. Its > > like going back to the super annoying wait-for-my-JSP-page-to- > compile > days. > > > On 10/13/06 12:27 PM, "Charlie Bowman" > wrote: > > I experience the same issues with fastCGI, so I don't think it's > a > > mongrel only issue > > > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com > > > wrote: > >> Is anybody experiencing this on a non-mongrel setup? If not > maybe > >> we can blame mongrel for a slow startup time? > >> > >> > >> Ryan Daigle > >> Lead Engineer, RTP Region > >> ALTERthought > >> rdaigle at alterthought.com > >> O: (919) 424-4413 > >> M: (919) 260-7179 > >> > >> > >> > >> On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: > >> > >> On 10/13/06, Ryan Daigle wrote: > >> > >>> I'm experiencing some performance issues that I suspect might be > >>> 'normal', but I wanted to run them by the group first to see if > >>> anybody else had the same issues: > >>> > >> ... > >> > >>> What happens is that if I have not visited the app in a while > >>> (several hours, days etc..), the next time I hit the app it > takes a > >>> long time to spin up and respond (10-15 seconds) for a sub-second > >>> request. No thrashing, no cpu spiking, just a long time to get > that>>> first request going. After a few requests everything is > humming>>> along nicely. > >>> > >> > >> Although I haven't measured anything, I'm pretty much seeing the > same>> kind of behavior with my typo implemented blog running on > mongrel.>> > >> I'd love to see an improvement here. > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > From geoff at geoffdavis.net Fri Oct 13 16:56:27 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Fri, 13 Oct 2006 16:56:27 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: References: Message-ID: <1160772987.4045.87.camel@test> On Fri, 2006-10-13 at 13:37 -0700, lists-jared at nc.rr.com wrote: > Is there any chance it's just been swapped out to virtual memory by the > operating system and it just needs a moment to swap back in? Yeah, that would be my guess for what's going on. Not that I know anything. Seems like it should be easy enough to test: just check whether there is a spike in the number of page faults when you hit a server that's been idle for awhile. From charlesmbowman at gmail.com Fri Oct 13 17:06:31 2006 From: charlesmbowman at gmail.com (Charlie Bowman) Date: Fri, 13 Oct 2006 17:06:31 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: References: Message-ID: <298c4d2a0610131406v27a640dck29ff523ec155358d@mail.gmail.com> I don't think there is a solution to this. It takes a while to load the rails framework and interpreter into memory once it's been lost On 10/13/06, lists-jared at nc.rr.com wrote: > > Is there any chance it's just been swapped out to virtual memory by the > operating system and it just needs a moment to swap back in? > > Someone should post this to big ruby mailing list and see if others have > found or fixed the issue. > > Jared > http://jaredrichardson.net > > > ----- Original Message ----- > From: Ryan Daigle > Date: Friday, October 13, 2006 12:15 pm > Subject: Re: [raleigh.rb] Rails/Mongrel performance > To: "The mailing list of raleigh.rb" > > > Is it any solace that when the app is being pounded it runs like a > > champ? > > > > so... > > > > When nobody goes to your app and no-one will know it's slow => it's > > slowWhen you've been digg'd and everyone is passing judgement => > > it's all > > good. > > > > :) > > > > Ryan Daigle > > Lead Engineer, RTP Region > > ALTERthought > > rdaigle at alterthought.com > > O: (919) 424-4413 > > M: (919) 260-7179 > > > > > > On Oct 13, 2006, at 2:10 PM, Tony Spencer wrote: > > > > As someone new to rails this is not the news I wanted to hear. Its > > > > like going back to the super annoying wait-for-my-JSP-page-to- > > compile > > days. > > > > > > On 10/13/06 12:27 PM, "Charlie Bowman" > > wrote: > > > I experience the same issues with fastCGI, so I don't think it's > > a > > > mongrel only issue > > > > > > On 10/13/06, Ryan Daigle < ryan.daigle at gmail.com > > > > wrote: > > >> Is anybody experiencing this on a non-mongrel setup? If not > > maybe > > >> we can blame mongrel for a slow startup time? > > >> > > >> > > >> Ryan Daigle > > >> Lead Engineer, RTP Region > > >> ALTERthought > > >> rdaigle at alterthought.com > > >> O: (919) 424-4413 > > >> M: (919) 260-7179 > > >> > > >> > > >> > > >> On Oct 13, 2006, at 11:45 AM, Rick DeNatale wrote: > > >> > > >> On 10/13/06, Ryan Daigle wrote: > > >> > > >>> I'm experiencing some performance issues that I suspect might be > > >>> 'normal', but I wanted to run them by the group first to see if > > >>> anybody else had the same issues: > > >>> > > >> ... > > >> > > >>> What happens is that if I have not visited the app in a while > > >>> (several hours, days etc..), the next time I hit the app it > > takes a > > >>> long time to spin up and respond (10-15 seconds) for a sub-second > > >>> request. No thrashing, no cpu spiking, just a long time to get > > that>>> first request going. After a few requests everything is > > humming>>> along nicely. > > >>> > > >> > > >> Although I haven't measured anything, I'm pretty much seeing the > > same>> kind of behavior with my typo implemented blog running on > > mongrel.>> > > >> I'd love to see an improvement here. > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/469550a7/attachment.html From curtis.duhn at gmail.com Fri Oct 13 20:41:37 2006 From: curtis.duhn at gmail.com (Curtis Duhn) Date: Fri, 13 Oct 2006 20:41:37 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <1160772987.4045.87.camel@test> References: <1160772987.4045.87.camel@test> Message-ID: <3e320180610131741s195bb656vbdecab9e0742a920@mail.gmail.com> Assuming Ryan doesn't have many other demanding processes running on his VPS, there's a fair chance that the delay is caused by the entire virtual OS swapping in, not just his app. Something to think about. Curtis On 10/13/06, Geoff Davis wrote: > > On Fri, 2006-10-13 at 13:37 -0700, lists-jared at nc.rr.com wrote: > > Is there any chance it's just been swapped out to virtual memory by the > > operating system and it just needs a moment to swap back in? > > Yeah, that would be my guess for what's going on. Not that I know > anything. Seems like it should be easy enough to test: just check > whether there is a spike in the number of page faults when you hit a > server that's been idle for awhile. > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Curtis Duhn curtis.duhn at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061013/78b3430c/attachment-0001.html From ryan.daigle at gmail.com Sat Oct 14 11:24:28 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Sat, 14 Oct 2006 11:24:28 -0400 Subject: [raleigh.rb] Rails/Mongrel performance In-Reply-To: <3e320180610131741s195bb656vbdecab9e0742a920@mail.gmail.com> References: <1160772987.4045.87.camel@test> <3e320180610131741s195bb656vbdecab9e0742a920@mail.gmail.com> Message-ID: <5E28B033-6E40-4D86-85BD-5E2C67DB62ED@gmail.com> Good angle, Curtis - hadn't thought about that... Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 13, 2006, at 8:41 PM, Curtis Duhn wrote: Assuming Ryan doesn't have many other demanding processes running on his VPS, there's a fair chance that the delay is caused by the entire virtual OS swapping in, not just his app. Something to think about. Curtis On 10/13/06, Geoff Davis wrote: On Fri, 2006-10-13 at 13:37 -0700, lists-jared at nc.rr.com wrote: > Is there any chance it's just been swapped out to virtual memory by the > operating system and it just needs a moment to swap back in? Yeah, that would be my guess for what's going on. Not that I know anything. Seems like it should be easy enough to test: just check whether there is a spike in the number of page faults when you hit a server that's been idle for awhile. _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- Curtis Duhn curtis.duhn at gmail.com _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061014/32806378/attachment.html From nospam at tonyspencer.com Sun Oct 15 19:13:13 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Sun, 15 Oct 2006 19:13:13 -0400 Subject: [raleigh.rb] Rails hosting Message-ID: I bought a year of hosting at A Small Orange for a little project I?m working on and it was a deal but it seems really slow. (Its running fastcgi) I?m certainly going to try some caching where possible but I?m not counting it getting much better as its just super slow compared to my local setup. Can anyone recommend a good host provider they are currently using that is Rails friendly and has ssh support? Thanks! Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061015/fe5cafe8/attachment.html From geoff at geoffdavis.net Sun Oct 15 19:40:18 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Sun, 15 Oct 2006 19:40:18 -0400 Subject: [raleigh.rb] Rails hosting In-Reply-To: References: Message-ID: <2358187A-D1A4-4731-989B-698930C71128@geoffdavis.net> server4you.net is great, and they're cheap. You get a whole box all to yourself starting at about $50/month. I've had one of their higher end packages for a couple of years now and have been very satisfied. Their support people are pretty responsive -- the only trouble I've had is hardware-related (a hard drive failed and and mother board died); both were replaced within an hour of my contacting them. On Oct 15, 2006, at 7:13 PM, Tony Spencer wrote: > I bought a year of hosting at A Small Orange for a little project > I?m working on and it was a deal but it seems really slow. (Its > running fastcgi) I?m certainly going to try some caching where > possible but I?m not counting it getting much better as its just > super slow compared to my local setup. > > Can anyone recommend a good host provider they are currently using > that is Rails friendly and has ssh support? > > > Thanks! > Tony > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061015/641491e0/attachment.html From nospam at tonyspencer.com Sun Oct 15 20:16:31 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Sun, 15 Oct 2006 20:16:31 -0400 Subject: [raleigh.rb] Rails hosting In-Reply-To: <2358187A-D1A4-4731-989B-698930C71128@geoffdavis.net> Message-ID: Wow. I?m paying more than twice that for a baseline Celeron at EV1. Thanks for the tip. I was hoping to find a reasonably price virtual hosting account for the short term until I convert one of my dedicated boxes over to rails. On 10/15/06 7:40 PM, "Geoff Davis" wrote: > server4you.net is great, and they're cheap.? You get a whole box all to > yourself starting at about $50/month.? I've had one of their higher end > packages for a couple of years now and have been very satisfied.? Their > support people are pretty responsive -- the only trouble I've had is > hardware-related (a hard drive failed and and mother board died); both were > replaced within an hour of my contacting them. > > On Oct 15, 2006, at 7:13 PM, Tony Spencer wrote: > >> I bought a year of hosting at A Small Orange for a little project I?m >> working on and it was a deal but it seems really slow. ?(Its running fastcgi) >> ?I?m certainly going to try some caching where possible but I?m not counting >> it getting much better as its just super slow compared to my local setup. ? >> >> Can anyone recommend a good host provider they are currently using that is >> Rails friendly and has ssh support? >> >> >> Thanks! >> Tony >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061015/867f3fae/attachment.html From tj at stank.us Mon Oct 16 18:40:41 2006 From: tj at stank.us (TJ Stankus) Date: Mon, 16 Oct 2006 18:40:41 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports Message-ID: Does anyone know if ruby 1.8.4 is available via darwinports/macports any more? The default install is now 1.8.5 which I understand is not the recommended version to use with rails. I've played with darwinports a bit and have yet to hit on the magical command that will get 1.8.4. I'm somewhat of a darwinports newb so I may be overlooking something. Thanks, -TJ From Keefe.Hayes at sas.com Tue Oct 17 08:36:39 2006 From: Keefe.Hayes at sas.com (Keefe Hayes) Date: Tue, 17 Oct 2006 08:36:39 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: Message-ID: I followed the instructions at Hivelogic. Darwinports install did not seem to work so well. http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger Keefe -----Original Message----- From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of TJ Stankus Sent: Monday, October 16, 2006 6:41 PM To: raleigh-rb-members at rubyforge.org Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports Does anyone know if ruby 1.8.4 is available via darwinports/macports any more? The default install is now 1.8.5 which I understand is not the recommended version to use with rails. I've played with darwinports a bit and have yet to hit on the magical command that will get 1.8.4. I'm somewhat of a darwinports newb so I may be overlooking something. Thanks, -TJ _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members From nathaniel at talbott.ws Tue Oct 17 08:51:49 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 17 Oct 2006 08:51:49 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: Message-ID: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> On Oct 16, 2006, at 18:40 , TJ Stankus wrote: > Does anyone know if ruby 1.8.4 is available via darwinports/macports > any more? The default install is now 1.8.5 which I understand is not > the recommended version to use with rails. I've played with > darwinports a bit and have yet to hit on the magical command that will > get 1.8.4. I'm somewhat of a darwinports newb so I may be overlooking > something. I know 1.8.3 broke Rails, but I looked around, and couldn't find an real proscription against 1.8.5. Can you point me at something specific? -- Nathaniel Talbott <:((>< -- Nathaniel Talbott <:((>< From tj at stank.us Tue Oct 17 09:01:34 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 17 Oct 2006 09:01:34 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> References: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: > I know 1.8.3 broke Rails, but I looked around, and couldn't find an > real proscription against 1.8.5. Can you point me at something specific? Here's a short rails-core discussion on the topic: http://www.ruby-forum.com/topic/80648 There are a couple links there to both the problem and a workaround. The issue is with breakpointer. I've decided to just live with it and move on. I don't think it'll be that big of a problem for me. -TJ From ryan.daigle at gmail.com Tue Oct 17 09:02:08 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Tue, 17 Oct 2006 09:02:08 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> References: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: <6C59D832-9FBE-496F-A7F6-AB6894CA5968@gmail.com> I've been using ruby 1.8.5 on mac w/ Rails 1.1.6 with no problems... yet On Oct 17, 2006, at 8:51 AM, Nathaniel Talbott wrote: On Oct 16, 2006, at 18:40 , TJ Stankus wrote: > Does anyone know if ruby 1.8.4 is available via darwinports/macports > any more? The default install is now 1.8.5 which I understand is not > the recommended version to use with rails. I've played with > darwinports a bit and have yet to hit on the magical command that will > get 1.8.4. I'm somewhat of a darwinports newb so I may be overlooking > something. I know 1.8.3 broke Rails, but I looked around, and couldn't find an real proscription against 1.8.5. Can you point me at something specific? -- Nathaniel Talbott <:((>< -- Nathaniel Talbott <:((>< _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061017/98b50432/attachment.html From nospam at tonyspencer.com Tue Oct 17 09:20:02 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Tue, 17 Oct 2006 09:20:02 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: If I remember correctly 1.8.5 didn?t work with Mongrel so its something to consider. On 10/17/06 8:51 AM, "Nathaniel Talbott" wrote: > On Oct 16, 2006, at 18:40 , TJ Stankus wrote: > >> > Does anyone know if ruby 1.8.4 is available via darwinports/macports >> > any more? The default install is now 1.8.5 which I understand is not >> > the recommended version to use with rails. I've played with >> > darwinports a bit and have yet to hit on the magical command that will >> > get 1.8.4. I'm somewhat of a darwinports newb so I may be overlooking >> > something. > > I know 1.8.3 broke Rails, but I looked around, and couldn't find an > real proscription against 1.8.5. Can you point me at something specific? > > > -- > Nathaniel Talbott > > <:((>< > > -- > Nathaniel Talbott > > <:((>< > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061017/df67b299/attachment.html From tj at stank.us Tue Oct 17 09:33:39 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 17 Oct 2006 09:33:39 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: > If I remember correctly 1.8.5 didn't work with Mongrel so its something to > consider. Okay, _that's_ a concern. Do you recall specifically what the problem was? -TJ From minter at lunenburg.org Tue Oct 17 09:37:32 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Tue, 17 Oct 2006 09:37:32 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: On Oct 17, 2006, at 9:33 AM, TJ Stankus wrote: >> If I remember correctly 1.8.5 didn't work with Mongrel so its >> something to >> consider. > > Okay, _that's_ a concern. Do you recall specifically what the > problem was? I'm using 1.8.5 with Mongrel with no (apparent) issues. The only issue I knew about with 1.8.5 was that it broke the breakpointer. --Wade From nospam at tonyspencer.com Tue Oct 17 09:38:38 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Tue, 17 Oct 2006 09:38:38 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: Message-ID: Keep in mind I have the worst memory in the history of man so I could be wrong :). But I think I recall attempting to install Mongrel and was halted with a message that it required version 1.8.4. I reinstalled ruby with that older version and Mongrel then installed flawlessly. On 10/17/06 9:33 AM, "TJ Stankus" wrote: >> > If I remember correctly 1.8.5 didn't work with Mongrel so its something to >> > consider. > > Okay, _that's_ a concern. Do you recall specifically what the problem was? > > -TJ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061017/fc33afef/attachment.html From tj at stank.us Tue Oct 17 09:43:06 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 17 Oct 2006 09:43:06 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: Message-ID: I see some things here: http://rubyforge.org/pipermail/mongrel-users/2006-August/001253.html I'll keep this in mind as I move forward. If I need to install 1.8.4 from source, it won't be a problem. I was just hoping to do everything with macports. -TJ On 10/17/06, Tony Spencer wrote: > > Keep in mind I have the worst memory in the history of man so I could be > wrong :). But I think I recall attempting to install Mongrel and was halted > with a message that it required version 1.8.4. I reinstalled ruby with that > older version and Mongrel then installed flawlessly. > > > > > On 10/17/06 9:33 AM, "TJ Stankus" wrote: > > > > If I remember correctly 1.8.5 didn't work with Mongrel so its something > to > > consider. > > Okay, _that's_ a concern. Do you recall specifically what the problem was? > > -TJ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > From geoff at geoffdavis.net Tue Oct 17 09:43:21 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Tue, 17 Oct 2006 09:43:21 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: Front and center on the mongrel home page: "You need Ruby 1.8.4 just like the gem says you do." On Oct 17, 2006, at 9:33 AM, TJ Stankus wrote: >> If I remember correctly 1.8.5 didn't work with Mongrel so its >> something to >> consider. > > Okay, _that's_ a concern. Do you recall specifically what the > problem was? > > -TJ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From ryan.daigle at gmail.com Tue Oct 17 09:45:45 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Tue, 17 Oct 2006 09:45:45 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: Message-ID: <1B6D82DA-6ECF-48EE-BD98-5F6D531CA2DB@gmail.com> Hmm, I'm running mongrel w/ 1.8.5 and doing ok... I know mongrel needs at least 1.8.4, but I'm not hitting anything on 1.8.5. Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 17, 2006, at 9:38 AM, Tony Spencer wrote: Keep in mind I have the worst memory in the history of man so I could be wrong :). But I think I recall attempting to install Mongrel and was halted with a message that it required version 1.8.4. I reinstalled ruby with that older version and Mongrel then installed flawlessly. On 10/17/06 9:33 AM, "TJ Stankus" wrote: > > If I remember correctly 1.8.5 didn't work with Mongrel so its > something to > > consider. > > Okay, _that's_ a concern. Do you recall specifically what the > problem was? > > -TJ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061017/513f14b9/attachment.html From tj at stank.us Tue Oct 17 09:54:43 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 17 Oct 2006 09:54:43 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: <8BBCAD16-EEA4-4083-9535-FDEEA3EA27E6@talbott.ws> Message-ID: > Front and center on the mongrel home page: > > "You need Ruby 1.8.4 just like the gem says you do." I'm so in the habit of googling for problems that I overlooked the obvious... I guess that settles it. It's back to a compiled version of 1.8.4. Thanks all, -TJ From nathaniel at talbott.ws Tue Oct 17 09:57:09 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 17 Oct 2006 09:57:09 -0400 Subject: [raleigh.rb] ruby 1.8.4 via macports/darwinports In-Reply-To: References: Message-ID: <319E8FF1-0E61-4D06-B97F-9DFE6404B8D1@talbott.ws> On Oct 17, 2006, at 09:43 , TJ Stankus wrote: > I'll keep this in mind as I move forward. If I need to install 1.8.4 > from source, it won't be a problem. I was just hoping to do everything > with macports. I work with MacPorts checked directly out of subversion, so when I need a different (usually newer) version than what's provided, I just hack the Portfile. In this case you can probably just roll the Porfile back to the last revision that provided 1.8.4. HTH, -- Nathaniel Talbott <:((>< From rick.denatale at gmail.com Tue Oct 17 11:04:05 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 17 Oct 2006 11:04:05 -0400 Subject: [raleigh.rb] Pre-meeting sustenance? Message-ID: Is there going to be the usual pre-meeting get together this evening? Baja Burrito? elsewhere? -- Rick From nathaniel at talbott.ws Tue Oct 17 11:41:03 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 17 Oct 2006 11:41:03 -0400 Subject: [raleigh.rb] Pre-meeting sustenance? In-Reply-To: References: Message-ID: On Oct 17, 2006, at 11:04 , Rick DeNatale wrote: > Is there going to be the usual pre-meeting get together this evening? > > Baja Burrito? elsewhere? Sorry, I've been heads-down working on my talk and haven't sent anything out. I'm definitely planning on showing up at Baja at 5:30 for some chow, and I hope whoever can will join me. See you there, -- Nathaniel Talbott <:((>< From jjeffers at nc.rr.com Tue Oct 17 12:41:06 2006 From: jjeffers at nc.rr.com (James Jeffers) Date: Tue, 17 Oct 2006 12:41:06 -0400 Subject: [raleigh.rb] Pre-meeting sustenance? In-Reply-To: References: Message-ID: <1161103266.5249.8.camel@localhost> Si! On Tue, 2006-10-17 at 11:41 -0400, Nathaniel Talbott wrote: > On Oct 17, 2006, at 11:04 , Rick DeNatale wrote: > > > Is there going to be the usual pre-meeting get together this evening? > > > > Baja Burrito? elsewhere? > > Sorry, I've been heads-down working on my talk and haven't sent > anything out. I'm definitely planning on showing up at Baja at 5:30 > for some chow, and I hope whoever can will join me. > > See you there, > > > -- > Nathaniel Talbott > > <:((>< > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From lists-jared at nc.rr.com Wed Oct 18 14:07:45 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 18 Oct 2006 14:07:45 -0400 Subject: [raleigh.rb] Fwd: Calendar SW? References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: Any suggestions? Jared http://jaredrichardson.net Begin forwarded message: > From: Jordan Dea-Mattson > Date: October 18, 2006 11:06:08 AM EDT > To: Jared Richardson > Subject: Calendar SW? > Reply-To: jordan at dea-mattson.com > > Hi Jared - > > Want to add a "real calendar" to our church web site > . Was wondering if you had any ideas for > software we could easily incorporate? Something in Ruby? > > Yours, > > Jordan > -- > > Jordan Dea-Mattson > jordan at dea-mattson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061018/78734734/attachment.html From tj at stank.us Wed Oct 18 14:22:30 2006 From: tj at stank.us (TJ Stankus) Date: Wed, 18 Oct 2006 14:22:30 -0400 Subject: [raleigh.rb] Fwd: Calendar SW? In-Reply-To: References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: I've read that you can inline a Google calendar into a site, but haven't tried it myself. -TJ On 10/18/06, Jared Richardson wrote: > Any suggestions? > > Jared > http://jaredrichardson.net > > Begin forwarded message: > > From: Jordan Dea-Mattson > Date: October 18, 2006 11:06:08 AM EDT > To: Jared Richardson > Subject: Calendar SW? > Reply-To: jordan at dea-mattson.com > > > Hi Jared - > > Want to add a "real calendar" to our church web site > . Was wondering if you had any ideas for > software we could easily incorporate? Something in Ruby? > > Yours, > > Jordan > -- > > Jordan Dea-Mattson > jordan at dea-mattson.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > From ryan.daigle at gmail.com Wed Oct 18 14:29:36 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 18 Oct 2006 14:29:36 -0400 Subject: [raleigh.rb] Fwd: Calendar SW? In-Reply-To: References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: Google calendar can be embedded... or does it need to be hooked into some existing backed events db? http://www.google.com/intl/en/googlecalendar/event_publisher_guide.html Ryan Daigle Lead Engineer, RTP Region ALTERthought rdaigle at alterthought.com O: (919) 424-4413 M: (919) 260-7179 On Oct 18, 2006, at 2:07 PM, Jared Richardson wrote: Any suggestions? Jared http://jaredrichardson.net Begin forwarded message: > From: Jordan Dea-Mattson > Date: October 18, 2006 11:06:08 AM EDT > To: Jared Richardson > Subject: Calendar SW? > Reply-To: jordan at dea-mattson.com > > Hi Jared - > > Want to add a "real calendar" to our church web site > . Was wondering if you had any ideas for > software we could easily incorporate? Something in Ruby? > > Yours, > > Jordan > -- > > Jordan Dea-Mattson > jordan at dea-mattson.com _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061018/98384b58/attachment-0001.html From z at zworkbench.com Wed Oct 18 14:31:18 2006 From: z at zworkbench.com (Chris Garrett) Date: Wed, 18 Oct 2006 14:31:18 -0400 Subject: [raleigh.rb] Fwd: Calendar SW? In-Reply-To: References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: <82883b650610181131w3fc77232u9d003678b26c5973@mail.gmail.com> http://mychurchevents.com/ (Or use Google calendar) On 10/18/06, Jared Richardson wrote: > > Any suggestions? > Jared > http://jaredrichardson.net > > Begin forwarded message: > > *From: *Jordan Dea-Mattson > *Date: *October 18, 2006 11:06:08 AM EDT > *To: *Jared Richardson > *Subject: **Calendar SW?* > *Reply-To: *jordan at dea-mattson.com > > Hi Jared - > > Want to add a "real calendar" to our church web site > . Was wondering if you had any ideas for > software we could easily incorporate? Something in Ruby? > > Yours, > > Jordan > -- > > Jordan Dea-Mattson > jordan at dea-mattson.com > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061018/2de364eb/attachment.html From minter at lunenburg.org Wed Oct 18 14:31:42 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Wed, 18 Oct 2006 14:31:42 -0400 Subject: [raleigh.rb] Fwd: Calendar SW? In-Reply-To: References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: Maybe the calendar_helper plugin? http://wiki.rubyonrails.org/rails/pages/Calendar+Helper+Plugin/ On Oct 18, 2006, at 2:07 PM, Jared Richardson wrote: > Any suggestions? > > Jared > http://jaredrichardson.net > > Begin forwarded message: > >> From: Jordan Dea-Mattson >> Date: October 18, 2006 11:06:08 AM EDT >> To: Jared Richardson >> Subject: Calendar SW? >> Reply-To: jordan at dea-mattson.com >> >> Hi Jared - >> >> Want to add a "real calendar" to our church web site >> . Was wondering if you had any ideas for >> software we could easily incorporate? Something in Ruby? >> >> Yours, >> >> Jordan >> -- >> >> Jordan Dea-Mattson >> jordan at dea-mattson.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From lists-jared at nc.rr.com Wed Oct 18 16:06:07 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 18 Oct 2006 16:06:07 -0400 Subject: [raleigh.rb] Good article on a production Rails deployment In-Reply-To: References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: <3ED40EC0-6F6E-4D82-8784-6B2BF48B122A@nc.rr.com> A friend forwarded this article to me. It includes bits about load balancing, etc http://errtheblog.com/post/35 Jared http://jaredrichardson.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061018/1199f11d/attachment.html From lists-jared at nc.rr.com Wed Oct 18 15:03:14 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 18 Oct 2006 15:03:14 -0400 Subject: [raleigh.rb] Fwd: Calendar SW? In-Reply-To: References: <1c0ac5de0610180806x3dd5eaf3wc14dffe394870c8f@mail.gmail.com> Message-ID: <245CEF08-126C-43FF-9DCF-9775E0D94C8C@nc.rr.com> True, but then you've got Google ads on your site. They want to avoid that if possible. Jared http://jaredrichardson.net On Oct 18, 2006, at 2:29 PM, Ryan Daigle wrote: > Google calendar can be embedded... or does it need to be hooked > into some existing backed events db? > > http://www.google.com/intl/en/googlecalendar/ > event_publisher_guide.html > > > Ryan Daigle > Lead Engineer, RTP Region > ALTERthought > rdaigle at alterthought.com > O: (919) 424-4413 > M: (919) 260-7179 > > > On Oct 18, 2006, at 2:07 PM, Jared Richardson wrote: > > Any suggestions? > > Jared > http://jaredrichardson.net > > Begin forwarded message: > >> From: Jordan Dea-Mattson >> Date: October 18, 2006 11:06:08 AM EDT >> To: Jared Richardson >> Subject: Calendar SW? >> Reply-To: jordan at dea-mattson.com >> >> Hi Jared - >> >> Want to add a "real calendar" to our church web site >> . Was wondering if you had any ideas for >> software we could easily incorporate? Something in Ruby? >> >> Yours, >> >> Jordan >> -- >> >> Jordan Dea-Mattson >> jordan at dea-mattson.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061018/84532db0/attachment.html From rick.denatale at gmail.com Wed Oct 18 18:32:14 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 18 Oct 2006 18:32:14 -0400 Subject: [raleigh.rb] Apache 2.0x <=> Pound <=> Mongrel, any experience? Message-ID: I'm currently running an Apache 2.0 server which hosts several web apps, some for internal use, and a couple for outside use. The two biggest outside use sites are my talklikeaduck blog, and a mediawiki site that gets fairly high traffic. The blog uses typo and right now, I've got an apache virtual server which proxys to mongrel for that. I'd like to see if a mongrel cluster would help performance, but since I'm not running Apache 2.1 I don't have access to mod-proxy-balancer, and I really don't want to go through the upheaval of a major Apache upgrade. So I was thinking of putting pound between Apache and Mongrel. Stupid idea? Comments? Experiences? -- Rick From geoff at geoffdavis.net Wed Oct 18 20:40:54 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 18 Oct 2006 20:40:54 -0400 Subject: [raleigh.rb] Apache 2.0x <=> Pound <=> Mongrel, any experience? In-Reply-To: References: Message-ID: <4FBC4875-27E1-47D4-BD59-EF03FCE741FD@geoffdavis.net> Just 30 minutes ago I put balance between Apache 2.0 and a mongrel cluster, and it works fine. See http://jonathan.tron.name/articles/2006/07/26/apache-2-0-x-mongrel- mod_proxy-mod_rewrite-configuration On Oct 18, 2006, at 6:32 PM, Rick DeNatale wrote: > I'm currently running an Apache 2.0 server which hosts several web > apps, some for internal use, and a couple for outside use. > > The two biggest outside use sites are my talklikeaduck blog, and a > mediawiki site that gets fairly high traffic. > > The blog uses typo and right now, I've got an apache virtual server > which proxys to mongrel for that. > > I'd like to see if a mongrel cluster would help performance, but since > I'm not running Apache 2.1 I don't have access to mod-proxy-balancer, > and I really don't want to go through the upheaval of a major Apache > upgrade. > > So I was thinking of putting pound between Apache and Mongrel. > > Stupid idea? Comments? Experiences? > > -- > Rick > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From philomousos at gmail.com Wed Oct 18 21:55:43 2006 From: philomousos at gmail.com (Hugh Cayless) Date: Wed, 18 Oct 2006 21:55:43 -0400 Subject: [raleigh.rb] Apache 2.0x <=> Pound <=> Mongrel, any experience? In-Reply-To: References: Message-ID: <230FE8B7-1AAC-4112-93E9-E973E8C1B74A@gmail.com> I've been running Apache 2.0 + pound + Mongrel for about a month now. It seems to work just fine. Setup was fairly straightforward and no ill effects to speak of yet. Hugh On Oct 18, 2006, at 6:32 PM, Rick DeNatale wrote: > I'm currently running an Apache 2.0 server which hosts several web > apps, some for internal use, and a couple for outside use. > > The two biggest outside use sites are my talklikeaduck blog, and a > mediawiki site that gets fairly high traffic. > > The blog uses typo and right now, I've got an apache virtual server > which proxys to mongrel for that. > > I'd like to see if a mongrel cluster would help performance, but since > I'm not running Apache 2.1 I don't have access to mod-proxy-balancer, > and I really don't want to go through the upheaval of a major Apache > upgrade. > > So I was thinking of putting pound between Apache and Mongrel. > > Stupid idea? Comments? Experiences? > > -- > Rick > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From rick.denatale at gmail.com Wed Oct 18 22:31:45 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 18 Oct 2006 22:31:45 -0400 Subject: [raleigh.rb] Apache 2.0x <=> Pound <=> Mongrel, any experience? In-Reply-To: <230FE8B7-1AAC-4112-93E9-E973E8C1B74A@gmail.com> References: <230FE8B7-1AAC-4112-93E9-E973E8C1B74A@gmail.com> Message-ID: Thanks, I guess it goes on the to-do list. On 10/18/06, Hugh Cayless wrote: > I've been running Apache 2.0 + pound + Mongrel for about a month > now. It seems to work just fine. Setup was fairly straightforward > and no ill effects to speak of yet. > > Hugh > > On Oct 18, 2006, at 6:32 PM, Rick DeNatale wrote: > > > I'm currently running an Apache 2.0 server which hosts several web > > apps, some for internal use, and a couple for outside use. > > > > The two biggest outside use sites are my talklikeaduck blog, and a > > mediawiki site that gets fairly high traffic. > > > > The blog uses typo and right now, I've got an apache virtual server > > which proxys to mongrel for that. > > > > I'd like to see if a mongrel cluster would help performance, but since > > I'm not running Apache 2.1 I don't have access to mod-proxy-balancer, > > and I really don't want to go through the upheaval of a major Apache > > upgrade. > > > > So I was thinking of putting pound between Apache and Mongrel. > > > > Stupid idea? Comments? Experiences? > > > > -- > > Rick > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ IPMS/USA Region 12 Coordinator http://ipmsr12.denhaven2.com/ Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/ From curtis.duhn at gmail.com Thu Oct 19 16:51:39 2006 From: curtis.duhn at gmail.com (Curtis Duhn) Date: Thu, 19 Oct 2006 16:51:39 -0400 Subject: [raleigh.rb] Need lawyer / CPA recommendations Message-ID: <3e320180610191351t3a3fdeb6hc0d3335eea31f661@mail.gmail.com> Hi Ruby people, I'm in the process of bootstrapping a consulting practice, and I need to find a small business lawyer and CPA to help me navigate through the logistics of incorporation, contracts, taxes, etc. Have any of you used people that you would recommend? I live in Hillsborough, so professionals on the west side of the Triangle are preferable, but I'm open to other suggestions. -- Curtis Duhn curtis.duhn at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061019/18c7dae3/attachment.html From geoff at geoffdavis.net Thu Oct 19 17:18:43 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Thu, 19 Oct 2006 17:18:43 -0400 Subject: [raleigh.rb] Need lawyer / CPA recommendations In-Reply-To: <3e320180610191351t3a3fdeb6hc0d3335eea31f661@mail.gmail.com> References: <3e320180610191351t3a3fdeb6hc0d3335eea31f661@mail.gmail.com> Message-ID: <1161292724.11504.34.camel@test> I used bizfilings.com for incorporating and have been quite happy with them. Nolo Press has a lot of great DIY legal stuff, too, which should help keep your billable hours down, too. On Thu, 2006-10-19 at 16:51 -0400, Curtis Duhn wrote: > Hi Ruby people, > > I'm in the process of bootstrapping a consulting practice, and I need > to find a small business lawyer and CPA to help me navigate through > the logistics of incorporation, contracts, taxes, etc. Have any of > you used people that you would recommend? > > I live in Hillsborough, so professionals on the west side of the > Triangle are preferable, but I'm open to other suggestions. > > -- > Curtis Duhn > curtis.duhn at gmail.com > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From curtis.duhn at gmail.com Thu Oct 19 20:17:13 2006 From: curtis.duhn at gmail.com (Curtis Duhn) Date: Thu, 19 Oct 2006 20:17:13 -0400 Subject: [raleigh.rb] Need lawyer / CPA recommendations In-Reply-To: <1161292724.11504.34.camel@test> References: <3e320180610191351t3a3fdeb6hc0d3335eea31f661@mail.gmail.com> <1161292724.11504.34.camel@test> Message-ID: <3e320180610191717t4849ae26k4171eeffb8ca94e9@mail.gmail.com> Hi Geoff, Those are some great resources. Thanks for the tip. Curtis On 10/19/06, Geoff Davis wrote: > > I used bizfilings.com for incorporating and have been quite happy with > them. Nolo Press has a lot of great DIY legal stuff, too, which should > help keep your billable hours down, too. > > On Thu, 2006-10-19 at 16:51 -0400, Curtis Duhn wrote: > > Hi Ruby people, > > > > I'm in the process of bootstrapping a consulting practice, and I need > > to find a small business lawyer and CPA to help me navigate through > > the logistics of incorporation, contracts, taxes, etc. Have any of > > you used people that you would recommend? > > > > I live in Hillsborough, so professionals on the west side of the > > Triangle are preferable, but I'm open to other suggestions. > > > > -- > > Curtis Duhn > > curtis.duhn at gmail.com > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Curtis Duhn curtis.duhn at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061019/c299e016/attachment.html From lists-jared at nc.rr.com Mon Oct 23 21:09:54 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Mon, 23 Oct 2006 21:09:54 -0400 Subject: [raleigh.rb] Cookies anyone? Message-ID: Hi all, I'm trying to delete cookies from my Rails app, but instead of going away, the cookies appear to be untouched. In fact, the next time I log in to my app, it makes another cookie. I'd like to have a cookie on the user's box so I can know who they last logged in as. But if they click "Logout", I want to erase the cookie. I'm verifying the presence of the 'stale' cookies using Firefox's cookie viewer. Anyone have any ideas? My cookie creation code looks like this: cookies[:login] = { :value => @params['user_login'], :expires => Time.utc(2025,"jan",1,20,15,1)} and the delete looks like this: cookies.delete(:login) Thanks all! Hopefully I'm missing something simple... Jared http://jaredrichardson.net From lists-jared at nc.rr.com Tue Oct 24 11:58:28 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Tue, 24 Oct 2006 11:58:28 -0400 Subject: [raleigh.rb] Cookies anyone? In-Reply-To: References: Message-ID: FYI, none of the correct cookie methods seemed to work for me, but this does cookies[:login] = nil It wipes the contents of the cookie, effectively erasing it. I'm still fairly certain that I was doing something dumb that messed up the other calls, but this works for now. :) Jared http://jaredrichardson.net On Oct 23, 2006, at 9:09 PM, Jared Richardson wrote: > Hi all, > > I'm trying to delete cookies from my Rails app, but instead of going > away, the cookies appear to be untouched. In fact, the next time I > log in to my app, it makes another cookie. > > I'd like to have a cookie on the user's box so I can know who they > last logged in as. But if they click "Logout", I want to erase the > cookie. I'm verifying the presence of the 'stale' cookies using > Firefox's cookie viewer. > > Anyone have any ideas? > > My cookie creation code looks like this: > > cookies[:login] = { :value => @params['user_login'], :expires => > Time.utc(2025,"jan",1,20,15,1)} > > and the delete looks like this: > > cookies.delete(:login) > > Thanks all! Hopefully I'm missing something simple... > > Jared > http://jaredrichardson.net > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From mark.bennett.mail at gmail.com Tue Oct 24 12:24:41 2006 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Tue, 24 Oct 2006 12:24:41 -0400 Subject: [raleigh.rb] [OT] subversion service Message-ID: I'm trying to set up subversion as a service on windows. The easy way to do this has been to download SVNService from http://dark.clansoft.dk/~mbn/svnservice/ This site has been down a long time and this is the page that everyone in the world seems to be linking to for this. I've also tried the windows resource kit method described here http://support.microsoft.com/kb/q137890/ without much luck. Does anyone know where the SVNService.zip may be hosted or have another sure fire way to get the service running. Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061024/de1a6acb/attachment-0001.html From geoff at geoffdavis.net Tue Oct 24 12:26:11 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Tue, 24 Oct 2006 12:26:11 -0400 Subject: [raleigh.rb] Cookies anyone? In-Reply-To: References: Message-ID: <1161707171.4046.6.camel@test> LiveHTTPHeaders might be useful for seeing what cookies the server is sending to your browser. On Tue, 2006-10-24 at 11:58 -0400, Jared Richardson wrote: > FYI, none of the correct cookie methods seemed to work for me, but > this does > > cookies[:login] = nil > > It wipes the contents of the cookie, effectively erasing it. I'm > still fairly certain that I was doing something dumb that messed up > the other calls, but this works for now. :) > > Jared > http://jaredrichardson.net > > On Oct 23, 2006, at 9:09 PM, Jared Richardson wrote: > > > Hi all, > > > > I'm trying to delete cookies from my Rails app, but instead of going > > away, the cookies appear to be untouched. In fact, the next time I > > log in to my app, it makes another cookie. > > > > I'd like to have a cookie on the user's box so I can know who they > > last logged in as. But if they click "Logout", I want to erase the > > cookie. I'm verifying the presence of the 'stale' cookies using > > Firefox's cookie viewer. > > > > Anyone have any ideas? > > > > My cookie creation code looks like this: > > > > cookies[:login] = { :value => @params['user_login'], :expires => > > Time.utc(2025,"jan",1,20,15,1)} > > > > and the delete looks like this: > > > > cookies.delete(:login) > > > > Thanks all! Hopefully I'm missing something simple... > > > > Jared > > http://jaredrichardson.net > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From kevin.olbrich at gmail.com Tue Oct 24 13:25:58 2006 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Tue, 24 Oct 2006 13:25:58 -0400 Subject: [raleigh.rb] [OT] subversion service In-Reply-To: References: Message-ID: you can run it through Apache if you are using a new enough version... If you just want to run it as a service, take a look for firedaemon. Although most virus checkers will flag it as malware. _Kevin On 10/24/06, Mark Bennett wrote: > I'm trying to set up subversion as a service on windows. The easy way to do > this has been to download SVNService from > http://dark.clansoft.dk/~mbn/svnservice/ This site has > been down a long time and this is the page that everyone in the world seems > to be linking to for this. I've also tried the windows resource kit method > described here http://support.microsoft.com/kb/q137890/ > without much luck. Does anyone know where the SVNService.zip may be hosted > or have another sure fire way to get the service running. Thanks, > > Mark > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. From mark.bennett.mail at gmail.com Tue Oct 24 13:56:12 2006 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Tue, 24 Oct 2006 13:56:12 -0400 Subject: [raleigh.rb] [OT] subversion service In-Reply-To: References: Message-ID: Thanks, I'll look at that. I also finally found this. http://tortoisesvn.tigris.org/files/documents/406/29202/SVNServiceDT.zip But also it seems I was having permission problems. Mark On 10/24/06, Kevin Olbrich wrote: > > you can run it through Apache if you are using a new enough version... > > If you just want to run it as a service, take a look for firedaemon. > Although most virus checkers will flag it as malware. > > _Kevin > > On 10/24/06, Mark Bennett wrote: > > I'm trying to set up subversion as a service on windows. The easy way > to do > > this has been to download SVNService from > > http://dark.clansoft.dk/~mbn/svnservice/ This site has > > been down a long time and this is the page that everyone in the world > seems > > to be linking to for this. I've also tried the windows resource kit > method > > described here http://support.microsoft.com/kb/q137890/ > > without much luck. Does anyone know where the SVNService.zip may be > hosted > > or have another sure fire way to get the service running. Thanks, > > > > Mark > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > -- > Kevin Olbrich > kevin.olbrich at gmail.com > > CONFIDENTIAL > Unless otherwise indicated or obvious from the nature of the following > communication, the information contained herein is a privileged and > confidential information/work product. The communication is intended > for the use of the individual or entity named above. It the reader of > this transmission is not the intended recipient, you are hereby > notified that any dissemination, distribution, or copying of this > communication is strictly prohibited. If you have received this > communication in error or are not sure whether it is privileged, > please immediately notify us by return e-mail and destroy any copies, > electronic, paper, or otherwise, which you may have of this > communication. > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061024/182c8fd2/attachment.html From kevin.olbrich at gmail.com Tue Oct 24 14:59:05 2006 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Tue, 24 Oct 2006 14:59:05 -0400 Subject: [raleigh.rb] [OT] subversion service In-Reply-To: References: Message-ID: Tortoise SVN rocks. I wish there as a mac equivalent. -Kevin On 10/24/06, Mark Bennett wrote: > Thanks, I'll look at that. I also finally found this. > > http://tortoisesvn.tigris.org/files/documents/406/29202/SVNServiceDT.zip > > But also it seems I was having permission problems. > > Mark > > > On 10/24/06, Kevin Olbrich wrote: > > you can run it through Apache if you are using a new enough version... > > > > If you just want to run it as a service, take a look for firedaemon. > > Although most virus checkers will flag it as malware. > > > > _Kevin > > > > On 10/24/06, Mark Bennett < mark.bennett.mail at gmail.com> wrote: > > > I'm trying to set up subversion as a service on windows. The easy way > to do > > > this has been to download SVNService from > > > http://dark.clansoft.dk/~mbn/svnservice/ This site > has > > > been down a long time and this is the page that everyone in the world > seems > > > to be linking to for this. I've also tried the windows resource kit > method > > > described here > http://support.microsoft.com/kb/q137890/ > > > without much luck. Does anyone know where the SVNService.zip may be > hosted > > > or have another sure fire way to get the service running. Thanks, > > > > > > Mark > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > -- > > Kevin Olbrich > > kevin.olbrich at gmail.com > > > > CONFIDENTIAL > > Unless otherwise indicated or obvious from the nature of the following > > communication, the information contained herein is a privileged and > > confidential information/work product. The communication is intended > > for the use of the individual or entity named above. It the reader of > > this transmission is not the intended recipient, you are hereby > > notified that any dissemination, distribution, or copying of this > > communication is strictly prohibited. If you have received this > > communication in error or are not sure whether it is privileged, > > please immediately notify us by return e-mail and destroy any copies, > > electronic, paper, or otherwise, which you may have of this > > communication. > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. From ryan.daigle at gmail.com Tue Oct 24 15:40:42 2006 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Tue, 24 Oct 2006 15:40:42 -0400 Subject: [raleigh.rb] [OT] subversion service In-Reply-To: References: Message-ID: I'll take the command line anyday... On Oct 24, 2006, at 2:59 PM, Kevin Olbrich wrote: Tortoise SVN rocks. I wish there as a mac equivalent. -Kevin On 10/24/06, Mark Bennett wrote: > Thanks, I'll look at that. I also finally found this. > > http://tortoisesvn.tigris.org/files/documents/406/29202/ > SVNServiceDT.zip > > But also it seems I was having permission problems. > > Mark > > > On 10/24/06, Kevin Olbrich wrote: >> you can run it through Apache if you are using a new enough >> version... >> >> If you just want to run it as a service, take a look for firedaemon. >> Although most virus checkers will flag it as malware. >> >> _Kevin >> >> On 10/24/06, Mark Bennett < mark.bennett.mail at gmail.com> wrote: >>> I'm trying to set up subversion as a service on windows. The >>> easy way > to do >>> this has been to download SVNService from >>> http://dark.clansoft.dk/~mbn/svnservice/ This site > has >>> been down a long time and this is the page that everyone in the >>> world > seems >>> to be linking to for this. I've also tried the windows resource kit > method >>> described here > http://support.microsoft.com/kb/q137890/ >>> without much luck. Does anyone know where the SVNService.zip may be > hosted >>> or have another sure fire way to get the service running. Thanks, >>> >>> Mark >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> > http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >>> >> >> >> -- >> Kevin Olbrich >> kevin.olbrich at gmail.com >> >> CONFIDENTIAL >> Unless otherwise indicated or obvious from the nature of the >> following >> communication, the information contained herein is a privileged and >> confidential information/work product. The communication is intended >> for the use of the individual or entity named above. It the reader of >> this transmission is not the intended recipient, you are hereby >> notified that any dissemination, distribution, or copying of this >> communication is strictly prohibited. If you have received this >> communication in error or are not sure whether it is privileged, >> please immediately notify us by return e-mail and destroy any copies, >> electronic, paper, or otherwise, which you may have of this >> communication. >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061024/e8468fb8/attachment-0001.html From rick.denatale at gmail.com Wed Oct 25 11:56:22 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 25 Oct 2006 11:56:22 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? Message-ID: Talk about RubyConf 2006 on ruby-talk has turned to where it should be next year. The Triangle has come up as a candidate. Is this something we want to encourage or discourage, and if so is there a way to do that? ---------- Forwarded message ---------- From: Rick DeNatale Date: Oct 25, 2006 11:30 AM Subject: Re: RubyConf2006 Retrospective To: ruby-talk ML On 10/25/06, Timothy Hunter wrote: > Where is this "RDU" you speak of? Are you suggesting that RubyConf be > held at an airport? RDU is the code for an airport that serves Durham > and Raleigh, NC. Or are you suggesting that RubyConf be held at JFK or ATL? Well we techie types (and others) who live around here tend to call it one of: RTP The Triangle The Research Triangle RTP is actually a little narrow since it stands for Research Triangle Park. The Triangle refers to the general Raleigh-Durham-Chapel Hill area whose three Universities (NC State, Duke and UNC) were the impetus and draw for building RTP some decades back. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From charlesmbowman at gmail.com Wed Oct 25 12:30:51 2006 From: charlesmbowman at gmail.com (Charlie Bowman) Date: Wed, 25 Oct 2006 12:30:51 -0400 Subject: [raleigh.rb] catching SOAP::EmptyResponseErrors Message-ID: <298c4d2a0610250930l1267a855q32436d3dd73b1c89@mail.gmail.com> My SOAP client appears to be working fine, but the soap server I'm connecting to seems flaky. How can I trap any errors and re-run the call to the service? Here's what I'm doing. I get the error about 1 in 10 calls. filterCriteriaArray = Array.new filterCriteriaArray << 'ListName=my_list' members = obj.selectMembers(filterCriteriaArray) members.each do |member| puts "#{member.fullName}" #methods = member.methods - obj.class.ancestors.methods end the error: /usr/lib/ruby/1.8/soap/rpc/proxy.rb:145:in `call': SOAP::EmptyResponseError (SOAP::EmptyResponseError) from /usr/lib/ruby/1.8/soap/rpc/driver.rb:179:in `call' from (eval):6:in `selectMembers' from lmapiClient.rb:324 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/c7da1e38/attachment.html From mark.bennett.mail at gmail.com Wed Oct 25 12:31:08 2006 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Wed, 25 Oct 2006 12:31:08 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: References: Message-ID: Can't imagine you'll hear from any naysayers! Mark On 10/25/06, Rick DeNatale wrote: > > Talk about RubyConf 2006 on ruby-talk has turned to where it should be > next year. > > The Triangle has come up as a candidate. > > Is this something we want to encourage or discourage, and if so is > there a way to do that? > > ---------- Forwarded message ---------- > From: Rick DeNatale > Date: Oct 25, 2006 11:30 AM > Subject: Re: RubyConf2006 Retrospective > To: ruby-talk ML > > > On 10/25/06, Timothy Hunter wrote: > > > Where is this "RDU" you speak of? Are you suggesting that RubyConf be > > held at an airport? RDU is the code for an airport that serves Durham > > and Raleigh, NC. Or are you suggesting that RubyConf be held at JFK or > ATL? > > Well we techie types (and others) who live around here tend to call it one > of: > > RTP > The Triangle > The Research Triangle > > RTP is actually a little narrow since it stands for Research Triangle > Park. The Triangle refers to the general Raleigh-Durham-Chapel Hill > area whose three Universities (NC State, Duke and UNC) were the > impetus and draw for building RTP some decades back. > > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/46dbfb29/attachment.html From blake at near-time.com Wed Oct 25 13:28:42 2006 From: blake at near-time.com (Blake Watters) Date: Wed, 25 Oct 2006 13:28:42 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: References: Message-ID: <189BA227-AEAE-4B01-A0B2-BB1E5A3713A1@near-time.com> We'd all love it. What can we do to help? On Oct 25, 2006, at 12:31 PM, Mark Bennett wrote: > Can't imagine you'll hear from any naysayers! > > Mark > > On 10/25/06, Rick DeNatale wrote: > Talk about RubyConf 2006 on ruby-talk has turned to where it should be > next year. > > The Triangle has come up as a candidate. > > Is this something we want to encourage or discourage, and if so is > there a way to do that? > > ---------- Forwarded message ---------- > From: Rick DeNatale < rick.denatale at gmail.com> > Date: Oct 25, 2006 11:30 AM > Subject: Re: RubyConf2006 Retrospective > To: ruby-talk ML > > > On 10/25/06, Timothy Hunter wrote: > > > Where is this "RDU" you speak of? Are you suggesting that > RubyConf be > > held at an airport? RDU is the code for an airport that serves > Durham > > and Raleigh, NC. Or are you suggesting that RubyConf be held at > JFK or ATL? > > Well we techie types (and others) who live around here tend to call > it one of: > > RTP > The Triangle > The Research Triangle > > RTP is actually a little narrow since it stands for Research Triangle > Park. The Triangle refers to the general Raleigh-Durham-Chapel Hill > area whose three Universities (NC State, Duke and UNC) were the > impetus and draw for building RTP some decades back. > > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/06beab61/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/06beab61/attachment.bin From charlesmbowman at gmail.com Wed Oct 25 13:34:29 2006 From: charlesmbowman at gmail.com (Charlie Bowman) Date: Wed, 25 Oct 2006 13:34:29 -0400 Subject: [raleigh.rb] catching SOAP::EmptyResponseErrors In-Reply-To: <298c4d2a0610250930l1267a855q32436d3dd73b1c89@mail.gmail.com> References: <298c4d2a0610250930l1267a855q32436d3dd73b1c89@mail.gmail.com> Message-ID: <298c4d2a0610251034o528a3157nc51829ffdb4cd55b@mail.gmail.com> it appears the answer is as simple as a resuce and a retry. I tried to make it harder than it was. begin puts 1 filterCriteriaArray = Array.new filterCriteriaArray << 'ListName=my_list' members = obj.selectMembers(filterCriteriaArray) puts 2 members.each do |member| puts "#{member.fullName}" #methods = member.methods - obj.class.ancestors.methods end rescue SOAP::FaultError puts 'FAULT' rescue SOAP::EmptyResponseError => error puts 'CANT CONNECT' retry end On 10/25/06, Charlie Bowman wrote: > > > My SOAP client appears to be working fine, but the soap server I'm > connecting to seems flaky. How can I trap any errors and re-run the call to > the service? Here's what I'm doing. I get the error about 1 in 10 calls. > > filterCriteriaArray = Array.new > filterCriteriaArray << 'ListName=my_list' > members = obj.selectMembers(filterCriteriaArray) > members.each do |member| > puts "#{member.fullName}" > #methods = member.methods - obj.class.ancestors.methods > end > > the error: > /usr/lib/ruby/1.8/soap/rpc/proxy.rb:145:in `call': > SOAP::EmptyResponseError (SOAP::EmptyResponseError) > from /usr/lib/ruby/1.8/soap/rpc/driver.rb:179:in `call' > from (eval):6:in `selectMembers' > from lmapiClient.rb:324 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/0390b4ed/attachment.html From lists-jared at nc.rr.com Wed Oct 25 13:45:21 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 25 Oct 2006 13:45:21 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: References: Message-ID: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> +1 On Oct 25, 2006, at 12:31 PM, Mark Bennett wrote: > Can't imagine you'll hear from any naysayers! > > Mark > > On 10/25/06, Rick DeNatale wrote: > Talk about RubyConf 2006 on ruby-talk has turned to where it should be > next year. > > The Triangle has come up as a candidate. > > Is this something we want to encourage or discourage, and if so is > there a way to do that? > > ---------- Forwarded message ---------- > From: Rick DeNatale < rick.denatale at gmail.com> > Date: Oct 25, 2006 11:30 AM > Subject: Re: RubyConf2006 Retrospective > To: ruby-talk ML > > > On 10/25/06, Timothy Hunter wrote: > > > Where is this "RDU" you speak of? Are you suggesting that > RubyConf be > > held at an airport? RDU is the code for an airport that serves > Durham > > and Raleigh, NC. Or are you suggesting that RubyConf be held at > JFK or ATL? > > Well we techie types (and others) who live around here tend to call > it one of: > > RTP > The Triangle > The Research Triangle > > RTP is actually a little narrow since it stands for Research Triangle > Park. The Triangle refers to the general Raleigh-Durham-Chapel Hill > area whose three Universities (NC State, Duke and UNC) were the > impetus and draw for building RTP some decades back. > > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/b7d87c7b/attachment-0001.html From geoff at geoffdavis.net Wed Oct 25 13:52:34 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 25 Oct 2006 13:52:34 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> References: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> Message-ID: <1161798754.4460.23.camel@test> If we have it here, it would be nice if there were some way for us locals to sign up before it sells out in 4 seconds. Maybe a guaranteed slot would be a good way to get some local volunteers to help out... On Wed, 2006-10-25 at 13:45 -0400, Jared Richardson wrote: > +1 > > > > On Oct 25, 2006, at 12:31 PM, Mark Bennett wrote: > > > Can't imagine you'll hear from any naysayers! > > > > Mark > > > > On 10/25/06, Rick DeNatale wrote: > > Talk about RubyConf 2006 on ruby-talk has turned to where it > > should be > > next year. > > > > The Triangle has come up as a candidate. > > > > Is this something we want to encourage or discourage, and if > > so is > > there a way to do that? > > > > ---------- Forwarded message ---------- > > From: Rick DeNatale < rick.denatale at gmail.com> > > Date: Oct 25, 2006 11:30 AM > > Subject: Re: RubyConf2006 Retrospective > > To: ruby-talk ML > > > > > > On 10/25/06, Timothy Hunter wrote: > > > > > Where is this "RDU" you speak of? Are you suggesting that > > RubyConf be > > > held at an airport? RDU is the code for an airport that > > serves Durham > > > and Raleigh, NC. Or are you suggesting that RubyConf be > > held at JFK or ATL? > > > > Well we techie types (and others) who live around here tend > > to call it one of: > > > > RTP > > The Triangle > > The Research Triangle > > > > RTP is actually a little narrow since it stands for Research > > Triangle > > Park. The Triangle refers to the general Raleigh-Durham- > > Chapel Hill > > area whose three Universities (NC State, Duke and UNC) were > > the > > impetus and draw for building RTP some decades back. > > > > > > -- > > Rick DeNatale > > > > My blog on Ruby > > http://talklikeaduck.denhaven2.com/ > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From adam at thewilliams.ws Wed Oct 25 13:52:15 2006 From: adam at thewilliams.ws (Adam Williams) Date: Wed, 25 Oct 2006 13:52:15 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> References: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> Message-ID: <4DFA4F28-2453-49E2-9123-DAED4F7BA77F@thewilliams.ws> +1 From andy at pragmaticprogrammer.com Wed Oct 25 13:54:40 2006 From: andy at pragmaticprogrammer.com (Andrew Hunt) Date: Wed, 25 Oct 2006 13:54:40 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> References: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> Message-ID: <33CBDE2E-E84A-4DCD-9899-37646924FB3A@pragmaticprogrammer.com> +1 from me too. I'd be happy to do whatever I can to make this happen and/or be a success :-) /\ndy From nathaniel at talbott.ws Wed Oct 25 14:15:38 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Wed, 25 Oct 2006 14:15:38 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <1161798754.4460.23.camel@test> References: <022E7CCE-4D3B-4D2E-B42F-52B2D822A97E@nc.rr.com> <1161798754.4460.23.camel@test> Message-ID: On Oct 25, 2006, at 13:52 , Geoff Davis wrote: > If we have it here, it would be nice if there were some way for us > locals to sign up before it sells out in 4 seconds. Maybe a > guaranteed > slot would be a good way to get some local volunteers to help out... I can't say for sure, but I got the feeling from the organizers that the size of RubyConf 2007 will not be constrained (at least as tightly) as it was this year. -- Nathaniel Talbott <:((>< From nathaniel at talbott.ws Wed Oct 25 14:18:01 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Wed, 25 Oct 2006 14:18:01 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: References: Message-ID: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> On Oct 25, 2006, at 11:56 , Rick DeNatale wrote: > Talk about RubyConf 2006 on ruby-talk has turned to where it should be > next year. > > The Triangle has come up as a candidate. > > Is this something we want to encourage or discourage, and if so is > there a way to do that? I actually mentioned RDU to the organizers at RubyConf, and would love to see it happen here. For now, the best way to encourage things might be for a bunch of us to throw out offers of volunteer help on the ruby-talk thread. -- Nathaniel Talbott <:((>< From kevin.olbrich at gmail.com Wed Oct 25 14:39:36 2006 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Wed, 25 Oct 2006 14:39:36 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> References: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> Message-ID: Done On 10/25/06, Nathaniel Talbott wrote: > On Oct 25, 2006, at 11:56 , Rick DeNatale wrote: > > > Talk about RubyConf 2006 on ruby-talk has turned to where it should be > > next year. > > > > The Triangle has come up as a candidate. > > > > Is this something we want to encourage or discourage, and if so is > > there a way to do that? > > I actually mentioned RDU to the organizers at RubyConf, and would > love to see it happen here. For now, the best way to encourage things > might be for a bunch of us to throw out offers of volunteer help on > the ruby-talk thread. > > > -- > Nathaniel Talbott > > <:((>< > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. From rick.denatale at gmail.com Wed Oct 25 17:12:46 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 25 Oct 2006 17:12:46 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> References: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> Message-ID: On 10/25/06, Nathaniel Talbott wrote: > On Oct 25, 2006, at 11:56 , Rick DeNatale wrote: > > > Talk about RubyConf 2006 on ruby-talk has turned to where it should be > > next year. > > > > The Triangle has come up as a candidate. > > > > Is this something we want to encourage or discourage, and if so is > > there a way to do that? > > I actually mentioned RDU to the organizers at RubyConf, and would > love to see it happen here. For now, the best way to encourage things > might be for a bunch of us to throw out offers of volunteer help on > the ruby-talk thread. Let's do it! -- Rick From nathaniel at talbott.ws Wed Oct 25 17:41:57 2006 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Wed, 25 Oct 2006 17:41:57 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> References: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> Message-ID: <045A534E-4130-4CFD-89FD-EFC0245510FA@talbott.ws> On Oct 25, 2006, at 14:18 , Nathaniel Talbott wrote: > I actually mentioned RDU to the organizers at RubyConf, and would > love to see it happen here. For now, the best way to encourage things > might be for a bunch of us to throw out offers of volunteer help on > the ruby-talk thread. I just re-read this, and want to make sure it's clear that I was referring to *sincere* offers of volunteer help :-) -- Nathaniel Talbott <:((>< From lists-jared at nc.rr.com Wed Oct 25 19:14:15 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 25 Oct 2006 19:14:15 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <045A534E-4130-4CFD-89FD-EFC0245510FA@talbott.ws> References: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> <045A534E-4130-4CFD-89FD-EFC0245510FA@talbott.ws> Message-ID: On Oct 25, 2006, at 5:41 PM, Nathaniel Talbott wrote: >> I actually mentioned RDU to the organizers at RubyConf, and would >> love to see it happen here. For now, the best way to encourage things >> might be for a bunch of us to throw out offers of volunteer help on >> the ruby-talk thread. > > I just re-read this, and want to make sure it's clear that I was > referring to *sincere* offers of volunteer help :-) ~Now~ you want to start qualifying the offers? We already got Andy! (ducking) ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/31954100/attachment.html From rick.denatale at gmail.com Wed Oct 25 19:29:35 2006 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 25 Oct 2006 19:29:35 -0400 Subject: [raleigh.rb] RubyConf in the Triangle? In-Reply-To: <045A534E-4130-4CFD-89FD-EFC0245510FA@talbott.ws> References: <48CA813A-C51D-4979-B3B3-D42AEC00D71F@talbott.ws> <045A534E-4130-4CFD-89FD-EFC0245510FA@talbott.ws> Message-ID: On 10/25/06, Nathaniel Talbott wrote: > On Oct 25, 2006, at 14:18 , Nathaniel Talbott wrote: > > > I actually mentioned RDU to the organizers at RubyConf, and would > > love to see it happen here. For now, the best way to encourage things > > might be for a bunch of us to throw out offers of volunteer help on > > the ruby-talk thread. > > I just re-read this, and want to make sure it's clear that I was > referring to *sincere* offers of volunteer help :-) Hey, I'm ALWAYS sincere, it goes with being naive. Which, at my age, is quite a trick. -- Rick From PKristoff at acm.org Wed Oct 25 20:58:48 2006 From: PKristoff at acm.org (PKristoff at acm.org) Date: Wed, 25 Oct 2006 20:58:48 -0400 Subject: [raleigh.rb] Rake test problem In-Reply-To: Message-ID: <012d01c6f899$e5dc69b0$1702a8c0@Ralph> Hi, I am having a problem running my tests via rake. The problem is when I run my tests via rake: "rake test", I get errors all over the place. I take the same tests and run them from eclipse, everything works fine. Upon further inspections I find that it looks like my fixtures did not get reloaded from the previous test. To be more specific, the previous test adds something to the database and this test sees the addition. I should mention that this problem does not happen on every test case only a couple. Has anyone ever run into this problem? Any help would be much appreciated. Here is my setup: * Ruby 1.8.4 * Running Rails 1.1.4 * mysql 5.0.18-nt * Development environment is Eclipse 3.1.2 * Cygwin (on Windows XP) Thanks, Paul Kristoff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061025/3d2b787d/attachment.html From jared.haworth at gmail.com Thu Oct 26 10:05:27 2006 From: jared.haworth at gmail.com (Jared Haworth) Date: Thu, 26 Oct 2006 10:05:27 -0400 Subject: [raleigh.rb] Set and Service Resources seeks a Rails Programmer Message-ID: Hi Everyone, I just wanted to pass along a job posting on behalf of my employer, we're looking to hire a Rails Developer at Set and Service Resources. Interested candidates should contact us at resume at sasrlink.com --- Rails Programmer --- Set and Service Resources is seeking an exceptional web engineer capable of helping us to build the next set of great collaborative features. The ideal candidate will have experience developing rich web applications (Ruby on Rails, AJAX, XHTML, JavaScript, XML, CSS etc). Passion for delivering high quality software and possess a high degree of creativity and enthusiasm, capable of owning large features. Excellent team work and communication skills are necessary. Links to your work would be most helpful. Needed: - Ruby: Comfortable with Ruby meta-programming and Ruby DSL development. - Rails: Understand substantial portions of Rails source code. Please provide examples. - Web Application development: 4+ years. - MySQL experience - JavaScript, XHTML, CSS. - Experience with scaling web applications. - Familiarity with agile methodologies, such as: test/behavior driven development, refactoring, continuous integration. - Have deployed at least one working Rails application. From lists-jared at nc.rr.com Fri Oct 27 08:53:18 2006 From: lists-jared at nc.rr.com (Jared Richardson) Date: Fri, 27 Oct 2006 08:53:18 -0400 Subject: [raleigh.rb] Fwd: [Boulder-Denver Ruby Group] cgi.rb patch References: <0969AC6B-8C89-40E2-B0C2-4BCF81C0945F@davisworld.org> Message-ID: <8D68BB8A-BE92-4CED-B64F-24F2BE73074A@nc.rr.com> I thought there would be a few people on this list who would need to know this. Begin forwarded message: > From: Scott Davis > Date: October 26, 2006 12:29:24 PM EDT > To: Jared Richardson > Subject: Fwd: [Boulder-Denver Ruby Group] cgi.rb patch > > FYI > > -s > Scott Davis > scott at davisworld.org > > > > Begin forwarded message: > >> From: "Tony Arcieri" >> Date: October 26, 2006 1:26:10 AM MDT >> To: bdrg-members at rubyforge.org >> Subject: [Boulder-Denver Ruby Group] cgi.rb patch >> >> Anyone running Mongrel and using it for file uploads will likely >> want to install this: >> >> http://mongrel.rubyforge.org/releases/cgi_multipart_eof_fix-1.0.0.gem >> >> It's a patch for an as-yet-undisclosed DoS vulnerability in the >> Ruby cgi.rb's multipart POST handling. >> >> We were having our site wedge daily (we handle a LOT of file >> uploads through multipart POSTs) with Mongrel until we got it >> installed. >> >> -- >> Tony Arcieri >> ClickCaster, Inc. >> tony at clickcaster.com >> (970) 232-4208 >> _______________________________________________ >> Bdrg-members mailing list >> Bdrg-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/bdrg-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061027/d7b09552/attachment.html From tj at stank.us Fri Oct 27 09:37:01 2006 From: tj at stank.us (TJ Stankus) Date: Fri, 27 Oct 2006 09:37:01 -0400 Subject: [raleigh.rb] Fwd: [Boulder-Denver Ruby Group] cgi.rb patch In-Reply-To: <8D68BB8A-BE92-4CED-B64F-24F2BE73074A@nc.rr.com> References: <0969AC6B-8C89-40E2-B0C2-4BCF81C0945F@davisworld.org> <8D68BB8A-BE92-4CED-B64F-24F2BE73074A@nc.rr.com> Message-ID: Also helpful to read this info from Zed Shaw: http://rubyforge.org/pipermail/mongrel-users/2006-October/001946.html -TJ On 10/27/06, Jared Richardson wrote: > I thought there would be a few people on this list who would need to know > this. > > Begin forwarded message: > > From: Scott Davis > Date: October 26, 2006 12:29:24 PM EDT > To: Jared Richardson > Subject: Fwd: [Boulder-Denver Ruby Group] cgi.rb patch > > > FYI > > -s > Scott Davis > scott at davisworld.org > > > > Begin forwarded message: > > > From: "Tony Arcieri" > Date: October 26, 2006 1:26:10 AM MDT > To: bdrg-members at rubyforge.org > Subject: [Boulder-Denver Ruby Group] cgi.rb patch > > Anyone running Mongrel and using it for file uploads will likely want to > install this: > > http://mongrel.rubyforge.org/releases/cgi_multipart_eof_fix-1.0.0.gem > > It's a patch for an as-yet-undisclosed DoS vulnerability in the Ruby > cgi.rb's multipart POST handling. > > We were having our site wedge daily (we handle a LOT of file uploads through > multipart POSTs) with Mongrel until we got it installed. > > -- > Tony Arcieri > ClickCaster, Inc. > tony at clickcaster.com > (970) 232-4208 > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > From kevin.olbrich at gmail.com Fri Oct 27 10:34:53 2006 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Fri, 27 Oct 2006 10:34:53 -0400 Subject: [raleigh.rb] Fwd: [Boulder-Denver Ruby Group] cgi.rb patch In-Reply-To: <8D68BB8A-BE92-4CED-B64F-24F2BE73074A@nc.rr.com> References: <0969AC6B-8C89-40E2-B0C2-4BCF81C0945F@davisworld.org> <8D68BB8A-BE92-4CED-B64F-24F2BE73074A@nc.rr.com> Message-ID: Actually Zed Shaw disclosed this the other day on the various mailing lists... http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/80945a9371740c80/a28a426e075d84f5?lnk=st&q=cgi.rb&rnum=2#a28a426e075d84f5 _Kevin On 10/27/06, Jared Richardson wrote: > I thought there would be a few people on this list who would need to know > this. > > Begin forwarded message: > > From: Scott Davis > Date: October 26, 2006 12:29:24 PM EDT > To: Jared Richardson > Subject: Fwd: [Boulder-Denver Ruby Group] cgi.rb patch > > > FYI > > -s > Scott Davis > scott at davisworld.org > > > > Begin forwarded message: > > > From: "Tony Arcieri" > Date: October 26, 2006 1:26:10 AM MDT > To: bdrg-members at rubyforge.org > Subject: [Boulder-Denver Ruby Group] cgi.rb patch > > Anyone running Mongrel and using it for file uploads will likely want to > install this: > > http://mongrel.rubyforge.org/releases/cgi_multipart_eof_fix-1.0.0.gem > > It's a patch for an as-yet-undisclosed DoS vulnerability in the Ruby > cgi.rb's multipart POST handling. > > We were having our site wedge daily (we handle a LOT of file uploads through > multipart POSTs) with Mongrel until we got it installed. > > -- > Tony Arcieri > ClickCaster, Inc. > tony at clickcaster.com > (970) 232-4208 > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- Kevin Olbrich kevin.olbrich at gmail.com CONFIDENTIAL Unless otherwise indicated or obvious from the nature of the following communication, the information contained herein is a privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. It the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies, electronic, paper, or otherwise, which you may have of this communication. From nospam at tonyspencer.com Sat Oct 28 16:58:08 2006 From: nospam at tonyspencer.com (Tony Spencer) Date: Sat, 28 Oct 2006 16:58:08 -0400 Subject: [raleigh.rb] Custom routes and ugly code Message-ID: I wanted to take advantage of Rails named routes and so in my first attempt I?ve attempted to change URL?s for companies from /company/show/1 to /company/1/red-hat So I added this to routes.rb: map.companyshow 'company/:id/:name', :controller => 'company', :action => 'show' And then had to following in my views: Yuck. Is there a better way to do this? Also obviously now my controller redirects won't work with the usual: redirect_to :controller => 'company', :action => 'show', :id => @product.company_id How should I redirect to my named route properly? From geoff at geoffdavis.net Sat Oct 28 18:14:19 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Sat, 28 Oct 2006 18:14:19 -0400 Subject: [raleigh.rb] Custom routes and ugly code In-Reply-To: References: Message-ID: <1162073659.4047.3.camel@test> Named routes are your friend: http://wiki.rubyonrails.org/rails/pages/NamedRoutes On Sat, 2006-10-28 at 16:58 -0400, Tony Spencer wrote: > I wanted to take advantage of Rails named routes and so in my first attempt > I?ve attempted to change URL?s for companies from > > /company/show/1 > > to > > /company/1/red-hat > > So I added this to routes.rb: > > map.companyshow 'company/:id/:name', :controller => 'company', :action => > 'show' > > And then had to following in my views: > > > > Yuck. Is there a better way to do this? Also obviously now my controller > redirects won't work with the usual: > redirect_to :controller => 'company', :action => 'show', :id => > @product.company_id > > How should I redirect to my named route properly? > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From geoff at geoffdavis.net Sun Oct 29 07:45:13 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Sun, 29 Oct 2006 07:45:13 -0500 Subject: [raleigh.rb] Custom routes and ugly code In-Reply-To: <1162073659.4047.3.camel@test> References: <1162073659.4047.3.camel@test> Message-ID: <1162125913.4046.17.camel@test> D'oh. I guess it would have been better to have actually read your email. A couple of simple things you can do: 1) Create a helper method for generating your company urls, e.g. <%= company.name %> If you have a lot of company links, you could add a second helper method, e.g. link_to_company, that would be equivalent to the above: <%= link_to_company company %> 2) redirect_to can take an absolute url as an argument instead of a set of options, so if you make your helper method available to your controllers (use the "helper" method), you can use your url method in your redirects like so: redirect_to company_url(company) On Sat, 2006-10-28 at 18:14 -0400, Geoff Davis wrote: > Named routes are your friend: > http://wiki.rubyonrails.org/rails/pages/NamedRoutes > > On Sat, 2006-10-28 at 16:58 -0400, Tony Spencer wrote: > > I wanted to take advantage of Rails named routes and so in my first attempt > > I?ve attempted to change URL?s for companies from > > > > /company/show/1 > > > > to > > > > /company/1/red-hat > > > > So I added this to routes.rb: > > > > map.companyshow 'company/:id/:name', :controller => 'company', :action => > > 'show' > > > > And then had to following in my views: > > > > > > > > Yuck. Is there a better way to do this? Also obviously now my controller > > redirects won't work with the usual: > > redirect_to :controller => 'company', :action => 'show', :id => > > @product.company_id > > > > How should I redirect to my named route properly? > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From fatcatt316 at yahoo.com Tue Oct 31 13:51:28 2006 From: fatcatt316 at yahoo.com (Joe Peck) Date: Tue, 31 Oct 2006 10:51:28 -0800 (PST) Subject: [raleigh.rb] Finding IP address of a user Message-ID: <20061031185128.59048.qmail@web61221.mail.yahoo.com> Hi everybody, I'm writing an application where users have to register and sign-in. At one point I allow them to enter in a credit card, but when they do this, I'd like to retrieve the IP of the computer they're using to enter in this information (it helps check for fraud). How can I do this in Ruby? It's probably pretty easy, but I've been looking and can't find a way yet. Joe Peck --------------------------------- Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061031/0153c26f/attachment.html From jared.haworth at gmail.com Tue Oct 31 15:23:46 2006 From: jared.haworth at gmail.com (Jared Haworth) Date: Tue, 31 Oct 2006 15:23:46 -0500 Subject: [raleigh.rb] Finding IP address of a user In-Reply-To: <20061031185128.59048.qmail@web61221.mail.yahoo.com> References: <20061031185128.59048.qmail@web61221.mail.yahoo.com> Message-ID: <836EC882-2792-4063-AD27-89B8A89285B4@gmail.com> I save this information on login, I have one line in my login action which reads: user.update_attribute(:last_login_from, request.remote_ip) the 'request.remote_ip' is the part that matters. -Jared On Oct 31, 2006, at 1:51 PM, Joe Peck wrote: > Hi everybody, > > I'm writing an application where users have to register and sign- > in. At one point I allow them to enter in a credit card, but when > they do this, I'd like to retrieve the IP of the computer they're > using to enter in this information (it helps check for fraud). > > How can I do this in Ruby? It's probably pretty easy, but I've > been looking and can't find a way yet. > > Joe Peck > > Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone > call rates. > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061031/77af91aa/attachment.html From tj at stank.us Tue Oct 31 15:24:39 2006 From: tj at stank.us (TJ Stankus) Date: Tue, 31 Oct 2006 15:24:39 -0500 Subject: [raleigh.rb] Finding IP address of a user In-Reply-To: <20061031185128.59048.qmail@web61221.mail.yahoo.com> References: <20061031185128.59048.qmail@web61221.mail.yahoo.com> Message-ID: > I'm writing an application where users have to register and sign-in. At one > point I allow them to enter in a credit card, but when they do this, I'd > like to retrieve the IP of the computer they're using to enter in this > information (it helps check for fraud). Assuming a Rails app, you'll want to look at remote_ip in the request object. -TJ From geoff at geoffdavis.net Tue Oct 31 15:26:09 2006 From: geoff at geoffdavis.net (Geoff Davis) Date: Tue, 31 Oct 2006 15:26:09 -0500 Subject: [raleigh.rb] Finding IP address of a user In-Reply-To: <20061031185128.59048.qmail@web61221.mail.yahoo.com> References: <20061031185128.59048.qmail@web61221.mail.yahoo.com> Message-ID: <1162326370.4041.36.camel@test> In a controller, you can get the visitor's IP address from the request via: request.remote_ip See http://api.rubyonrails.com/classes/ActionController/AbstractRequest.html#M000176 On Tue, 2006-10-31 at 10:51 -0800, Joe Peck wrote: > Hi everybody, > > I'm writing an application where users have to register and sign-in. > At one point I allow them to enter in a credit card, but when they do > this, I'd like to retrieve the IP of the computer they're using to > enter in this information (it helps check for fraud). > > How can I do this in Ruby? It's probably pretty easy, but I've been > looking and can't find a way yet. > > Joe Peck > > > > ______________________________________________________________________ > Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone > call rates. > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From fatcatt316 at yahoo.com Tue Oct 31 16:04:50 2006 From: fatcatt316 at yahoo.com (Joe Peck) Date: Tue, 31 Oct 2006 13:04:50 -0800 (PST) Subject: [raleigh.rb] Finding IP address of a user In-Reply-To: <1162326370.4041.36.camel@test> Message-ID: <20061031210450.56208.qmail@web61220.mail.yahoo.com> Thanks everyone, I found it meself a little while ago. request.remote_ip().to_s Thanks for the quick help too. Joe Geoff Davis wrote: In a controller, you can get the visitor's IP address from the request via: request.remote_ip See http://api.rubyonrails.com/classes/ActionController/AbstractRequest.html#M000176 On Tue, 2006-10-31 at 10:51 -0800, Joe Peck wrote: > Hi everybody, > > I'm writing an application where users have to register and sign-in. > At one point I allow them to enter in a credit card, but when they do > this, I'd like to retrieve the IP of the computer they're using to > enter in this information (it helps check for fraud). > > How can I do this in Ruby? It's probably pretty easy, but I've been > looking and can't find a way yet. > > Joe Peck > > > > ______________________________________________________________________ > Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone > call rates. > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061031/035b69f3/attachment.html From moonshark413 at yahoo.com Tue Oct 31 18:30:24 2006 From: moonshark413 at yahoo.com (P.D.S.) Date: Tue, 31 Oct 2006 15:30:24 -0800 (PST) Subject: [raleigh.rb] Pagination with a generic collection Message-ID: <20061031233024.48569.qmail@web54603.mail.yahoo.com> So, I'm using render partial collection with a simple array of strings (no DB, not Active Record) and it works OK for small sets, but now I need to make it paginate for larger sets. I added a action (found in one of the snippet archives) to my controller like so : def paginate_collection(collection, options = {}) default_options = {:per_page => 12, :page => 1} options = default_options.merge options pages = Paginator.new self, collection.size, options[:per_page], options[:page] first = pages.current.offset last = [first + options[:per_page], collection.size].min slice = collection[first...last] return [pages, slice] end and then call it in the relevant action with : @pages, @items = paginate_collection things, :page => params[:page] NOTE : params[:page] will always be empty since I havent passed it in on the request... yet so - the thing I need now is to build the navigation links, which will populate that empty page param but I can't figure out how to "get at" the data inside the "@pages" object, which would surely know... Per the ActionController::Pagination::Paginator documentation, these methods are there somewhere : * [] * current * current_page * current_page= * each * first * first_page * has_page_number? * last * last_page * length * new * page_count And indeed a @pages.inspect delivers a bunch of gibberish (not really, but a ton to wade through) ending with the following : @ignore_missing_templates=nil, @template=#<#:0x257005c ...>>, @cookies={"_session_id"=>["ca67fa74b9bf12903c84776b9d875ff8"]}>, @current_page=#, @number=1>, @pages={1=>#, @number=1>}, @page_count=6, @items_per_page=12, @current_page_number=1, @item_count=68> but if I put a line like <%= @pages.current_page_number %> I get undefined method `current_page_number' for # Strangely, <%= @pages.page_count %> - works just fine. What voodoo am I missing? From poochio at gmail.com Tue Oct 31 19:37:54 2006 From: poochio at gmail.com (Phil Puccio) Date: Tue, 31 Oct 2006 18:37:54 -0600 Subject: [raleigh.rb] Pagination with a generic collection In-Reply-To: <20061031233024.48569.qmail@web54603.mail.yahoo.com> References: <20061031233024.48569.qmail@web54603.mail.yahoo.com> Message-ID: Is the problem that current_page_number is defined as an instance variable, but there's no accessor method for it? What would @pages. at current_page_number return? How about @pages.current_page or @pages.current ? . . . Phil On 10/31/06, P.D.S. wrote: > > > Per the ActionController::Pagination::Paginator documentation, these > methods are there somewhere : > * [] > * current > * current_page > * current_page= > * each > * first > * first_page > * has_page_number? > * last > * last_page > * length > * new > * page_count > > And indeed a @pages.inspect delivers a bunch of gibberish (not really, but > a ton to wade through) ending with the following : > > @ignore_missing_templates=nil, @template=#<#:0x257005c ...>>, > @cookies={"_session_id"=>["ca67fa74b9bf12903c84776b9d875ff8"]}>, > @current_page=#, @number=1>, @pages={1=>#, @number=1>}, @page_count=6, > @items_per_page=12, @current_page_number=1, @item_count=68> > > but if I put a line like <%= @pages.current_page_number %> I get > undefined method `current_page_number' for > # > > Strangely, <%= @pages.page_count %> - works just fine. > > What voodoo am I missing? > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061031/d9254808/attachment-0001.html From moonshark413 at yahoo.com Tue Oct 31 20:31:27 2006 From: moonshark413 at yahoo.com (P.D.S.) Date: Tue, 31 Oct 2006 17:31:27 -0800 (PST) Subject: [raleigh.rb] Pagination with a generic collection Message-ID: <20061101013127.21919.qmail@web54609.mail.yahoo.com> parse error, unexpected tIVAR ----- Original Message ---- From: Phil Puccio To: The mailing list of raleigh.rb Sent: Tuesday, October 31, 2006 7:37:54 PM Subject: Re: [raleigh.rb] Pagination with a generic collection Is the problem that current_page_number is defined as an instance variable, but there's no accessor method for it? What would @pages. at current_page_number return? How about @pages.current_page or @pages.current ? . . . Phil On 10/31/06, P.D.S. wrote: Per the ActionController::Pagination::Paginator documentation, these methods are there somewhere : * [] * current * current_page * current_page= * each * first * first_page * has_page_number? * last * last_page * length * new * page_count And indeed a @pages.inspect delivers a bunch of gibberish (not really, but a ton to wade through) ending with the following : @ignore_missing_templates=nil, @template=#<#:0x257005c ...>>, @cookies={"_session_id"=>["ca67fa74b9bf12903c84776b9d875ff8"]}>, @current_page=#, @number=1>, @pages={1=>#, @number=1>}, @page_count=6, @items_per_page=12, @current_page_number=1, @item_count=68> but if I put a line like <%= @pages.current_page_number %> I get undefined method `current_page_number' for # Strangely, <%= @pages.page_count %> - works just fine. What voodoo am I missing? _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20061031/aadc18c3/attachment.html From atomgiant at gmail.com Tue Oct 31 23:16:08 2006 From: atomgiant at gmail.com (Tom Davies) Date: Tue, 31 Oct 2006 23:16:08 -0500 Subject: [raleigh.rb] Pagination with a generic collection In-Reply-To: <20061101013127.21919.qmail@web54609.mail.yahoo.com> References: <20061101013127.21919.qmail@web54609.mail.yahoo.com> Message-ID: You may want to use the built-in helper for page links: pagination_links @pages Or, to get at the current page number, you can use: @pages.current.number Tom On 10/31/06, P.D.S. wrote: > > parse error, unexpected tIVAR > > ----- Original Message ---- > From: Phil Puccio > To: The mailing list of raleigh.rb > > Sent: Tuesday, October 31, 2006 7:37:54 PM > Subject: Re: [raleigh.rb] Pagination with a generic collection > > > Is the problem that current_page_number is defined as an instance variable, > but there's no accessor method for it? What would > @pages. at current_page_number return? How about @pages.current_page or > @pages.current ? > > . . . Phil > > On 10/31/06, P.D.S. wrote: > > > > Per the ActionController::Pagination::Paginator > documentation, these methods are there somewhere : > > * [] > > * current > > * current_page > > * current_page= > > * each > > * first > > * first_page > > * has_page_number? > > * last > > * last_page > > * length > > * new > > * page_count > > > > And indeed a @pages.inspect delivers a bunch of gibberish (not really, but > a ton to wade through) ending with the following : > > > > @ignore_missing_templates=nil, @template=#<#:0x257005c ...>>, > @cookies={"_session_id"=>["ca67fa74b9bf12903c84776b9d875ff8"]}>, > @current_page=#, @number=1>, @pages={1=>#, @number=1>}, @page_count=6, > @items_per_page=12, @current_page_number=1, @item_count=68> > > > > but if I put a line like <%= @pages.current_page_number %> I get > undefined method `current_page_number' for > # > > > > Strangely, <%= @pages.page_count %> - works just fine. > > > > What voodoo am I missing? > > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- Tom Davies http://atomgiant.com http://gifthat.com