From fatcatt316 at yahoo.com Tue May 1 11:57:58 2007 From: fatcatt316 at yahoo.com (Joe Peck) Date: Tue, 1 May 2007 08:57:58 -0700 (PDT) Subject: [raleigh.rb] BackgrounDRb on Windows... In-Reply-To: Message-ID: <370671.99179.qm@web61212.mail.yahoo.com> Hey everyone, I'm developing on Windows and would like to use BackgrounDRb; the bad thing is, the newest version doesn't work with Windows. So I have two questions: 1) Where can I get an older version that works with Windows? 2) Anyone know when the 0.3 version will be out, and will it work with Windows? Joe Tony Spencer wrote: Happy Friday! Has anyone here tried out Substruct for a shopping cart that has an opinion they'd like to share? It would be nice to not have to reinvent the wheel but given the amount of hacking I've had to do in the past on prebuilt ecommerce systems I'm inclined to build my own. http://dev.subimage.com/projects/substruct Tony _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070501/6c43310e/attachment.html From jonathan.johnson at motricity.com Tue May 1 12:19:56 2007 From: jonathan.johnson at motricity.com (Jonathan Johnson) Date: Tue, 1 May 2007 12:19:56 -0400 Subject: [raleigh.rb] BackgrounDRb on Windows... In-Reply-To: <370671.99179.qm@web61212.mail.yahoo.com> Message-ID: <00DF24D6B0149846B3B41565C05EE27D42DD8E@rtpxch01.na.internal.motricity.local> Hey Joe , Just curious why you don't want to use the widows scheduled tasks? ~jonathan -----Original Message----- From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Joe Peck Sent: Tuesday, May 01, 2007 11:58 AM To: The mailing list of raleigh.rb Subject: [raleigh.rb] BackgrounDRb on Windows... Hey everyone, I'm developing on Windows and would like to use BackgrounDRb; the bad thing is, the newest version doesn't work with Windows. So I have two questions: 1) Where can I get an older version that works with Windows? 2) Anyone know when the 0.3 version will be out, and will it work with Windows? Joe Tony Spencer wrote: Happy Friday! Has anyone here tried out Substruct for a shopping cart that has an opinion they'd like to share? It would be nice to not have to reinvent the wheel but given the amount of hacking I've had to do in the past on prebuilt ecommerce systems I'm inclined to build my own. http://dev.subimage.com/projects/substruct Tony _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members ________________________________ Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos. NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of Motricity. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070501/eee80243/attachment.html From fatcatt316 at yahoo.com Tue May 1 13:18:32 2007 From: fatcatt316 at yahoo.com (Joe Peck) Date: Tue, 1 May 2007 10:18:32 -0700 (PDT) Subject: [raleigh.rb] BackgrounDRb on Windows... In-Reply-To: <00DF24D6B0149846B3B41565C05EE27D42DD8E@rtpxch01.na.internal.motricity.local> Message-ID: <967335.22857.qm@web61221.mail.yahoo.com> Haha, I've heard that Hendrix song muchas veces. I'm not going to deploy on a Windows machine... but maybe just for testing I will try the Windows scheduled tasks. I'd like to be able to use the BackgrounDRb plugin since it'll work while developing and after deployment. Joe Jonathan Johnson wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Clean Clean DocumentEmail MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} Hey Joe , Just curious why you don?t want to use the widows scheduled tasks? ~jonathan -----Original Message----- From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Joe Peck Sent: Tuesday, May 01, 2007 11:58 AM To: The mailing list of raleigh.rb Subject: [raleigh.rb] BackgrounDRb on Windows... Hey everyone, I'm developing on Windows and would like to use BackgrounDRb; the bad thing is, the newest version doesn't work with Windows. So I have two questions: 1) Where can I get an older version that works with Windows? 2) Anyone know when the 0.3 version will be out, and will it work with Windows? Joe Tony Spencer wrote: Happy Friday! Has anyone here tried out Substruct for a shopping cart that has an opinion they'd like to share? It would be nice to not have to reinvent the wheel but given the amount of hacking I've had to do in the past on prebuilt ecommerce systems I'm inclined to build my own. http://dev.subimage.com/projects/substruct Tony _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos. NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of Motricity. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070501/60887c90/attachment-0001.html From skmetz at gmail.com Tue May 1 12:42:01 2007 From: skmetz at gmail.com (Sandi Metz) Date: Tue, 01 May 2007 12:42:01 -0400 Subject: [raleigh.rb] BackgrounDRb on Windows... In-Reply-To: <00DF24D6B0149846B3B41565C05EE27D42DD8E@rtpxch01.na.internal.motricity.local> References: <00DF24D6B0149846B3B41565C05EE27D42DD8E@rtpxch01.na.internal.motricity.local> Message-ID: <46376DD9.3060808@gmail.com> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070501/c05e56fd/attachment.html From fatcatt316 at yahoo.com Tue May 1 16:09:18 2007 From: fatcatt316 at yahoo.com (Joe Peck) Date: Tue, 1 May 2007 13:09:18 -0700 (PDT) Subject: [raleigh.rb] BackgrounDRb on Windows... In-Reply-To: <46376DD9.3060808@gmail.com> Message-ID: <121608.54829.qm@web61221.mail.yahoo.com> Sure, send it on over. I did find the old version, too. "The old version that is win compatible is here: svn checkout svn+ssh://developername at rubyforge.org/var/svn/backgroundrb I am not opposed to having 0.3.x work on windows but someone is going to have to step up and make it work as I don't use windows at all. I have tried to make the new version work but windows lack of fork is a dealbreaker. Cheers -- Ezra Zygmuntowicz" Sandi Metz wrote: Jonathon, I've hacked the slave.rb code to run on windows, but just well enough to do windows development (we develop under windows but actually deploy our app on linux). The windows version works well enough for development but occasionally causes a memory fault and kills Ruby :-), so it's definitely not ready for prime time. I've made no effort to fix this problem... it's possible that's it's possible. Want the code? Sandi Jonathan Johnson wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Clean Clean DocumentEmail MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} Hey Joe , Just curious why you don?t want to use the widows scheduled tasks? ~jonathan -----Original Message----- From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Joe Peck Sent: Tuesday, May 01, 2007 11:58 AM To: The mailing list of raleigh.rb Subject: [raleigh.rb] BackgrounDRb on Windows... Hey everyone, I'm developing on Windows and would like to use BackgrounDRb; the bad thing is, the newest version doesn't work with Windows. So I have two questions: 1) Where can I get an older version that works with Windows? 2) Anyone know when the 0.3 version will be out, and will it work with Windows? Joe Tony Spencer wrote: Happy Friday! Has anyone here tried out Substruct for a shopping cart that has an opinion they'd like to share? It would be nice to not have to reinvent the wheel but given the amount of hacking I've had to do in the past on prebuilt ecommerce systems I'm inclined to build my own. http://dev.subimage.com/projects/substruct Tony _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos. NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of Motricity. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. --------------------------------- _______________________________________________ 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 --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070501/cca035f4/attachment.html From lists-jared at nc.rr.com Tue May 1 16:33:10 2007 From: lists-jared at nc.rr.com (Jared Richardson) Date: Tue, 1 May 2007 16:33:10 -0400 Subject: [raleigh.rb] BackgrounDRb on Windows... In-Reply-To: <121608.54829.qm@web61221.mail.yahoo.com> References: <121608.54829.qm@web61221.mail.yahoo.com> Message-ID: <551C0CC0-497D-43E0-8806-805A8BC994E9@nc.rr.com> Just a thought.... Have you considered running VMWare or Parallels on your Windows box? Then you could your favorite Windows IDE but deploy and test in Linux. Jared http://JaredRichardson.net On May 1, 2007, at 4:09 PM |May/1, Joe Peck wrote: > Sure, send it on over. > I did find the old version, too. > > "The old version that is win compatible is here: > > svn checkout svn+ssh://developername at rubyforge.org/var/svn/ > backgroundrb > > I am not opposed to having 0.3.x work on windows but someone is > going to have to step up and make it work as I don't use windows at > all. I have tried to make the new version work but windows lack of > fork is a dealbreaker. > > Cheers > -- Ezra Zygmuntowicz" > Sandi Metz wrote: > Jonathon, > > I've hacked the slave.rb code to run on windows, but just well > enough to do windows development (we develop under windows but > actually deploy our app on linux). > > The windows version works well enough for development but > occasionally causes a memory fault and kills Ruby :-), so it's > definitely not ready for prime time. I've made no effort to fix > this problem... it's possible that's it's possible. > > Want the code? > > Sandi > > Jonathan Johnson wrote: >> Hey Joe , >> >> Just curious why you don?t want to use the widows scheduled tasks? >> >> ~jonathan >> >> -----Original Message----- >> From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb- >> members-bounces at rubyforge.org] On Behalf Of Joe Peck >> Sent: Tuesday, May 01, 2007 11:58 AM >> To: The mailing list of raleigh.rb >> Subject: [raleigh.rb] BackgrounDRb on Windows... >> >> Hey everyone, >> >> I'm developing on Windows and would like to use BackgrounDRb; the >> bad thing is, the newest version doesn't work with Windows. So I >> have two questions: >> >> 1) Where can I get an older version that works with Windows? >> 2) Anyone know when the 0.3 version will be out, and will it work >> with Windows? >> >> Joe >> >> Tony Spencer wrote: >> Happy Friday! >> Has anyone here tried out Substruct for a shopping cart that has an >> opinion they'd like to share? It would be nice to not have to >> reinvent the wheel but given the amount of hacking I've had to do in >> the past on prebuilt ecommerce systems I'm inclined to build my own. >> >> http://dev.subimage.com/projects/substruct >> >> >> Tony >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> Ahhh...imagining that irresistible "new car" smell? >> Check out new cars at Yahoo! Autos. >> NOTICE: This e-mail message is for the sole use of the intended >> recipient(s) and may contain confidential and privileged >> information of Motricity. Any unauthorized review, use, disclosure >> or distribution is prohibited. If you are not the intended >> recipient, please contact the sender by reply e-mail and destroy >> all copies of the original message. >> _______________________________________________ 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 > > > Ahhh...imagining that irresistible "new car" smell? > Check out new cars at Yahoo! Autos. > _______________________________________________ > 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/20070501/6fb3ac98/attachment-0001.html From lists-jared at nc.rr.com Wed May 2 12:34:10 2007 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 2 May 2007 12:34:10 -0400 Subject: [raleigh.rb] RubyConf 2007 in Charlotte In-Reply-To: <551C0CC0-497D-43E0-8806-805A8BC994E9@nc.rr.com> References: <121608.54829.qm@web61221.mail.yahoo.com> <551C0CC0-497D-43E0-8806-805A8BC994E9@nc.rr.com> Message-ID: <8A53BE9E-F401-41C8-B019-9C6440B94FCD@nc.rr.com> Excellent news! Not as good as Raleigh, but closer... :) http://www.chadfowler.com/2007/5/2/rubyconf-2007-the-when-and-the-where Jared http://JaredRichardson.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/ce16bf80/attachment.html From geoff at geoffdavis.net Wed May 2 16:32:25 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 2 May 2007 16:32:25 -0400 Subject: [raleigh.rb] Converting HTML to text Message-ID: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Hi all-- Can anyone recommend a good HTML to text converter for Ruby? A lot of googling hasn't turned up much. Some of the HTML I'll be converting will be gnarly (e.g. generated by Word), so ideally I'm looking for something based around one of the robust HTML parsers (hpricot, rubyful soup) rather than a gigantic regex. Geoff From mikehale at gmail.com Wed May 2 16:39:33 2007 From: mikehale at gmail.com (Michael Hale) Date: Wed, 2 May 2007 16:39:33 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: <5b7455190705021339x20e13120lb09a298de4bfb03a@mail.gmail.com> I found a non-free solution here: http://www.jafsoft.com/detagger/ On 5/2/07, Geoff Davis wrote: > Hi all-- > > Can anyone recommend a good HTML to text converter for Ruby? A lot > of googling hasn't turned up much. > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > Word), so ideally I'm looking for something based around one of the > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > regex. > > Geoff > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From z at zworkbench.com Wed May 2 16:42:44 2007 From: z at zworkbench.com (Chris Garrett) Date: Wed, 2 May 2007 16:42:44 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: <82883b650705021342o251d8833sbf46877042267f47@mail.gmail.com> I've been converting Claris-created HTML to Textile format for a Radiant client. Unfortunately, Claris, like Word, generates horribly malformed HTML so most parsers puke on it or take a long time to figure it out. Plus, most of the HTML is related to scripts or page layout and I don't need to parse it anyway. I ended rolling my own with regular expressions. That's not as painful as it sounds if your HTML follows reasonable patterns, and this is a one-time task. My code is here as a starting point: #!/usr/bin/env ruby require 'open-uri' class String def replace_element element, replacement self.gsub(Regexp.compile('\<' + element + '.*?\>(.*?)\<\/' + element + '\>', Regexp::MULTILINE), replacement) end end data = nil out_dir = File.dirname(__FILE__) pages = ["http://www.biochem.duke.edu/courses/courses3.html", "http://www.biochem.duke.edu/program/program3.html"] url = pages[1] # We'll assume the base is everything up to and including the last slash base = /.*\//.match(url)[0] open(pages[1]) {|f| data = f.read} puts "Retrieved #{data.split.size} lines, #{data.size} bytes." # Parse the body out body = data[/(\)(.*)(\<\/BODY\>)/, 2] # remove scripts body = body.gsub(/\/, "") # site-specific - remove everything that's part of the page layout content = body[/(.*?linevg\.gif.*?\)(.*)(\<\/TD\>)/, 2] # remove the fonts content = content.replace_element("FONT", "") # Remove extra whitespace content = content.gsub(/\s+/, " ") # Replace
or
with double newline content = content.gsub(/\/i, "\n\n") # Replace

or

...

with newline content = content.gsub(/\/i, "\n") content = content.gsub(/\<\/P\>/i, "") # Replace   with space content = content.gsub(/ /, " ") # Replace table rows with paragraphs content = content.replace_element("TABLE", '\1') content = content.replace_element("TR", '\1' + "\n") # Remove table cells content = content.replace_element("TD", '\1') # Now for Textile-specific stuff: # Replace ... with *...* content = content.replace_element("B", '*\1*') # Remove empty links - at least one found content = content.gsub(/(\)(\s*?)(\<\/A\>)/, '') # Replace links content = content.gsub(/(\)(.*?)(\<\/A\>)/mi, '"\4":\2 ') # Remove extraneous newlines from the above conversions. Replace them with double newlines. content = content.gsub(/[$]{3,}/, "\n\n") # Download local images, save them and replace references with textile refs content.gsub!(/\/i) do |match| inner_items = (/SRC=\"(.*?)\"/i =~ match).to_a puts "full match = #{inner_items.to_a.to_s}" src = inner_items[1] puts "Image source: #{src}" image_data = nil open(base + src) {|f| image_data = f.read} File.open(src, "w") do |image_file| image_file.write image_data end "image" end puts "Content:" puts content On 5/2/07, Geoff Davis wrote: > > Hi all-- > > Can anyone recommend a good HTML to text converter for Ruby? A lot > of googling hasn't turned up much. > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > Word), so ideally I'm looking for something based around one of the > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > regex. > > Geoff > _______________________________________________ > 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/20070502/2cebedc3/attachment.html From otto.hammersmith at gmail.com Wed May 2 16:55:51 2007 From: otto.hammersmith at gmail.com (Otto Hammersmith) Date: Wed, 2 May 2007 16:55:51 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: Is this good enough? lynx -dump http://www.slashdot.org | less calling that from ruby is left as an exercise for the reader. :) On 5/2/07, Geoff Davis wrote: > > Hi all-- > > Can anyone recommend a good HTML to text converter for Ruby? A lot > of googling hasn't turned up much. > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > Word), so ideally I'm looking for something based around one of the > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > regex. > > Geoff > _______________________________________________ > 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/20070502/3240b2a0/attachment.html From geoff at geoffdavis.net Wed May 2 17:06:49 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 2 May 2007 17:06:49 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: Is lynx thread-safe? On May 2, 2007, at 4:55 PM, Otto Hammersmith wrote: > Is this good enough? > > lynx -dump http://www.slashdot.org | less > > calling that from ruby is left as an exercise for the reader. :) > > On 5/2/07, Geoff Davis wrote: > Hi all-- > > Can anyone recommend a good HTML to text converter for Ruby? A lot > of googling hasn't turned up much. > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > Word), so ideally I'm looking for something based around one of the > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > regex. > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/7c0f5740/attachment.html From geoff at geoffdavis.net Wed May 2 17:09:58 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 2 May 2007 17:09:58 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: <2DC19916-2F53-4C4F-BA28-467D2BD26FDD@geoffdavis.net> Ignore that last question (I know, I know, rails is single-threaded!) On May 2, 2007, at 5:06 PM, Geoff Davis wrote: > Is lynx thread-safe? > > On May 2, 2007, at 4:55 PM, Otto Hammersmith wrote: > >> Is this good enough? >> >> lynx -dump http://www.slashdot.org | less >> >> calling that from ruby is left as an exercise for the reader. :) >> >> On 5/2/07, Geoff Davis wrote: >> Hi all-- >> >> Can anyone recommend a good HTML to text converter for Ruby? A lot >> of googling hasn't turned up much. >> >> Some of the HTML I'll be converting will be gnarly (e.g. generated by >> Word), so ideally I'm looking for something based around one of the >> robust HTML parsers (hpricot, rubyful soup) rather than a gigantic >> regex. >> >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/44f19b65/attachment-0001.html From otto.hammersmith at gmail.com Wed May 2 17:13:19 2007 From: otto.hammersmith at gmail.com (Otto Hammersmith) Date: Wed, 2 May 2007 17:13:19 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: Launching multiple shells is. It's probably not super-performant, but will likely work. On 5/2/07, Geoff Davis wrote: > > Is lynx thread-safe? > On May 2, 2007, at 4:55 PM, Otto Hammersmith wrote: > > Is this good enough? > > lynx -dump http://www.slashdot.org | less > > calling that from ruby is left as an exercise for the reader. :) > > On 5/2/07, Geoff Davis wrote: > > > > Hi all-- > > > > Can anyone recommend a good HTML to text converter for Ruby? A lot > > of googling hasn't turned up much. > > > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > > Word), so ideally I'm looking for something based around one of the > > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > > regex. > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/0c0e3fd7/attachment.html From geoff at geoffdavis.net Wed May 2 20:08:44 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 2 May 2007 20:08:44 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> Message-ID: <1B970190-AEE6-478D-A5DE-65785660E49D@geoffdavis.net> I am pleased to report that Hpricot makes HTML to text conversion pretty straightforward. For any who are interested, the source is below. I ran it on the web pages that Chris Garrett sent out, and it did a reasonably nice job with them. require 'rubygems' require 'hpricot' module HTML2Text InlineTags = ['a','abbr','acronym','address','b','bdo','big','cite','code','del','dfn ','em','font','i','ins','kbd','label', 'noframes','noscript','q','s','samp','small','span','strike','strong','s ub','sup','td','th','tt','u','html','body','table'] BlockTags = ['blockquote','br','center','dd','div','fieldset','form','h1','h2','h3', 'h4','h5','h6','hr','p','pre','tr','var',] ListTags = ['dir','dl','menu','ol','ul'] ListItemTags = ['li','dt'] AsciiEquivalents = {"amp"=>"&","bull"=>"*","copy"=>"(c)","laquo"=>"<<","raquo"=>">>","ge"=> ">=","le"=>"<=", "mdash"=>"-","ndash"=>"-","plusmn"=>"+/-","times"=>"x"} NamedCharRegex = Regexp.new("(& ("+Hpricot::NamedCharacters.keys.join("|")+");)") def self.element_to_text(n) tag = n.etag || n.stag name = tag.name.downcase s = "" is_block = BlockTags.include?(name) is_list = ListTags.include?(name) is_list_item = ListItemTags.include?(name) is_inline = InlineTags.include?(name) if is_block or is_list or is_list_item or is_inline n.each_child do |c| s += node_to_text(c) end if is_block or is_list s += "\n" elsif is_list_item s = "* " + s + "\n" end end s end def self.node_to_text(n) return "" if n.comment? return element_to_text(n) if n.elem? return n.inner_text if n.text? s = "" n.each_child do |c| s += node_to_text(c) end return s end def self.lookup_named_char(s) c = Hpricot::NamedCharacters[s[1...-1]] c.chr if c end def self.html2text(s) doc = Hpricot(s) text = node_to_text(doc) text.gsub!(NamedCharRegex){|s| "#{lookup_named_char(s)}"} # clean up white space text.gsub!("\r"," ") text.squeeze!(" ") text.strip! end end On May 2, 2007, at 4:32 PM, Geoff Davis wrote: > Hi all-- > > Can anyone recommend a good HTML to text converter for Ruby? A lot > of googling hasn't turned up much. > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > Word), so ideally I'm looking for something based around one of the > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > regex. > > Geoff > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From kevin at near-time.com Wed May 2 20:17:14 2007 From: kevin at near-time.com (Kevin Olbrich) Date: Wed, 2 May 2007 20:17:14 -0400 Subject: [raleigh.rb] Converting HTML to text In-Reply-To: <1B970190-AEE6-478D-A5DE-65785660E49D@geoffdavis.net> References: <1FCE4807-C9F3-4532-A114-574E305D493C@geoffdavis.net> <1B970190-AEE6-478D-A5DE-65785660E49D@geoffdavis.net> Message-ID: There is also a gem called Hpricot-scrub that could be used for this purpose. On 5/2/07, Geoff Davis wrote: > > I am pleased to report that Hpricot makes HTML to text conversion > pretty straightforward. For any who are interested, the source is > below. I ran it on the web pages that Chris Garrett sent out, and it > did a reasonably nice job with them. > > require 'rubygems' > require 'hpricot' > > module HTML2Text > InlineTags = > ['a','abbr','acronym','address','b','bdo','big','cite','code','del','dfn > ','em','font','i','ins','kbd','label', > > 'noframes','noscript','q','s','samp','small','span','strike','strong','s > ub','sup','td','th','tt','u','html','body','table'] > BlockTags = > ['blockquote','br','center','dd','div','fieldset','form','h1','h2','h3', > 'h4','h5','h6','hr','p','pre','tr','var',] > ListTags = ['dir','dl','menu','ol','ul'] > ListItemTags = ['li','dt'] > AsciiEquivalents = > {"amp"=>"&","bull"=>"*","copy"=>"(c)","laquo"=>"<<","raquo"=>">>","ge"=> > ">=","le"=>"<=", > "mdash"=>"-","ndash"=>"-","plusmn"=>"+/-","times"=>"x"} > > NamedCharRegex = Regexp.new("(& > ("+Hpricot::NamedCharacters.keys.join("|")+");)") > > def self.element_to_text(n) > tag = n.etag || n.stag > name = tag.name.downcase > s = "" > is_block = BlockTags.include?(name) > is_list = ListTags.include?(name) > is_list_item = ListItemTags.include?(name) > is_inline = InlineTags.include?(name) > if is_block or is_list or is_list_item or is_inline > n.each_child do |c| > s += node_to_text(c) > end > if is_block or is_list > s += "\n" > elsif is_list_item > s = "* " + s + "\n" > end > end > s > end > > def self.node_to_text(n) > return "" if n.comment? > return element_to_text(n) if n.elem? > return n.inner_text if n.text? > > s = "" > n.each_child do |c| > s += node_to_text(c) > end > return s > end > > def self.lookup_named_char(s) > c = Hpricot::NamedCharacters[s[1...-1]] > c.chr if c > end > > def self.html2text(s) > doc = Hpricot(s) > text = node_to_text(doc) > text.gsub!(NamedCharRegex){|s| "#{lookup_named_char(s)}"} > # clean up white space > text.gsub!("\r"," ") > text.squeeze!(" ") > text.strip! > end > end > > > > > On May 2, 2007, at 4:32 PM, Geoff Davis wrote: > > > Hi all-- > > > > Can anyone recommend a good HTML to text converter for Ruby? A lot > > of googling hasn't turned up much. > > > > Some of the HTML I'll be converting will be gnarly (e.g. generated by > > Word), so ideally I'm looking for something based around one of the > > robust HTML parsers (hpricot, rubyful soup) rather than a gigantic > > regex. > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/0377e824/attachment.html From wesleyzhang2005 at gmail.com Wed May 2 22:45:04 2007 From: wesleyzhang2005 at gmail.com (Wesley Zhang) Date: Wed, 2 May 2007 22:45:04 -0400 Subject: [raleigh.rb] connection creation in ActiveRecord::Base Message-ID: Hi All, How does ActiveRecord manage the database connections? I didn't see any code in ActiveRecord::Base class in rails. I found a connection variable is used, but not sure where it comes from. def find_by_sql(sql) connection.select_all(sanitize_sql(sql), "#{name} Load").collect! { |record| instantiate(record) } end Thanks, Wesley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/97271d8b/attachment.html From lists-jared at nc.rr.com Wed May 2 23:09:25 2007 From: lists-jared at nc.rr.com (Jared Richardson) Date: Wed, 2 May 2007 23:09:25 -0400 Subject: [raleigh.rb] connection creation in ActiveRecord::Base In-Reply-To: References: Message-ID: Rails and ActiveRecord manages database connections for you... it all runs transparently in the background. You don't have to do JDBC style connection initialization in Rails. From Ruby you do. (Is that what you're asking?) If you really want to dig in under the covers, then check out the active record gem code... but the MySql driver is one of the more complicated drivers. It's got a lot of C code mixed in... it's fast, but not a good learning project. On my machine, a Mac, the directory is here: /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/connection_adapters Open up the mysql_adapter.rb file in that directory and see if it doesn't get you started. If you want to connect from Ruby, I haven't done that in a while, but this page has an example that looks good. http://www.softiesonrails.com/2006/6/28/activerecord-with-sqlserver- without-rails But the relevant block is here ActiveRecord::Base.establish_connection( :adapter => "sqlserver", :dsn => "instance_name_goes_here", :host => "machine_name\\instance_name", :database => "db_name", :username => "my_username", :password => "my_password" ) You'll notice it looks an awful lot like the config/database.yml file in your Rails app. :) Jared http://JaredRichardson.net On May 2, 2007, at 10:45 PM |May/2, Wesley Zhang wrote: > > Hi All, > > How does ActiveRecord manage the database connections? I didn't see > any code in ActiveRecord::Base class in rails. I found a connection > variable is used, but not sure where it comes from. > > def find_by_sql(sql) > connection.select_all(sanitize_sql(sql), "#{name} > Load").collect! { |record| instantiate(record) } > end > > Thanks, > > Wesley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070502/582d2df5/attachment-0001.html From larry.karnowski at gmail.com Thu May 3 22:03:42 2007 From: larry.karnowski at gmail.com (Larry Karnowski) Date: Thu, 3 May 2007 22:03:42 -0400 Subject: [raleigh.rb] Ruby Hoedown & BarCampRDU -- Same place, same time? Message-ID: <2b27183e0705031903g76f26487if2029d53695ccbcf@mail.gmail.com> I just saw that BarCampRDU will be held at the Red Hat campus on August 11th, but isn't the Ruby Hoedown the 11th and 12th on the Red Hat campus? Is this blog link just wrong? http://barcamprdu.blogspot.com/2007/05/barcamprdu-2007.html Seems like a busy weekend, Larry From tj at stank.us Thu May 3 22:06:12 2007 From: tj at stank.us (TJ Stankus) Date: Thu, 3 May 2007 22:06:12 -0400 Subject: [raleigh.rb] Ruby Hoedown & BarCampRDU -- Same place, same time? In-Reply-To: <2b27183e0705031903g76f26487if2029d53695ccbcf@mail.gmail.com> References: <2b27183e0705031903g76f26487if2029d53695ccbcf@mail.gmail.com> Message-ID: Looks like that blog post got updated to show that there's a conflict and BarCampRDU will be on a different weekend. -TJ On 5/3/07, Larry Karnowski wrote: > I just saw that BarCampRDU will be held at the Red Hat campus on > August 11th, but isn't the Ruby Hoedown the 11th and 12th on the Red > Hat campus? Is this blog link just wrong? > > http://barcamprdu.blogspot.com/2007/05/barcamprdu-2007.html > > Seems like a busy weekend, > Larry > _______________________________________________ > 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 Thu May 3 22:35:47 2007 From: lists-jared at nc.rr.com (Jared Richardson) Date: Thu, 3 May 2007 22:35:47 -0400 Subject: [raleigh.rb] Ruby Hoedown & BarCampRDU -- Same place, same time? In-Reply-To: References: <2b27183e0705031903g76f26487if2029d53695ccbcf@mail.gmail.com> Message-ID: Excellent! I was all set to blog on how great it was to actually have two cool conferences in town on the same weekend! :) It's nice to start having problems like that around here. Jared http://JaredRichardson.net On May 3, 2007, at 10:06 PM |May/3, TJ Stankus wrote: > Looks like that blog post got updated to show that there's a conflict > and BarCampRDU will be on a different weekend. > > -TJ > > On 5/3/07, Larry Karnowski wrote: >> I just saw that BarCampRDU will be held at the Red Hat campus on >> August 11th, but isn't the Ruby Hoedown the 11th and 12th on the Red >> Hat campus? Is this blog link just wrong? >> >> http://barcamprdu.blogspot.com/2007/05/barcamprdu-2007.html >> >> Seems like a busy weekend, >> Larry >> _______________________________________________ >> 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 clake at rimdex.com Fri May 4 10:57:41 2007 From: clake at rimdex.com (clake at rimdex.com) Date: Fri, 04 May 2007 07:57:41 -0700 Subject: [raleigh.rb] Collective Intelligence start-up looking for help Message-ID: <20070504075741.77b47ef778ce3e124cac3372ee4c8903.1d34f27555.wbe@email.secureserver.net> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070504/58793f80/attachment.html From lists-jared at nc.rr.com Fri May 11 15:35:20 2007 From: lists-jared at nc.rr.com (Jared Richardson) Date: Fri, 11 May 2007 15:35:20 -0400 Subject: [raleigh.rb] RubyConf room ping In-Reply-To: <20070504075741.77b47ef778ce3e124cac3372ee4c8903.1d34f27555.wbe@email.secureserver.net> References: <20070504075741.77b47ef778ce3e124cac3372ee4c8903.1d34f27555.wbe@email.secureserver.net> Message-ID: Hey all, I'm flying out to RubyConf a day later than I planned, so I've got a room reservation on the 16th I can't use. Pre-paid and not cancelable of course. :) It's a one day reservation with a double queen at this hotel: http://www.doubletree.com/en/dt/hotels/index.jhtml?ctyhocn=RLLC-DT If anyone local wants to pickup the room and help me offset the loss, let me know. Jared http://JaredRichardson.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070511/c3d6c48e/attachment.html From nathaniel at talbott.ws Tue May 15 14:40:06 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 15 May 2007 14:40:06 -0400 Subject: [raleigh.rb] Pre-Meeting Chow Message-ID: <08727303-8D7E-473A-9DFE-E16B786EF713@talbott.ws> As usual, anyone who's available is invited to join me at 5:30 tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner and some Ruby chatter before heading over to Red Hat for the meeting. While by no means required, a quick RSVP (just reply to this email with "In!" or somesuch) would be great. Looking forward to it, -- Nathaniel Talbott <:((>< From wesleyzhang2005 at gmail.com Wed May 16 23:31:25 2007 From: wesleyzhang2005 at gmail.com (Wesley Zhang) Date: Wed, 16 May 2007 23:31:25 -0400 Subject: [raleigh.rb] Rails based forum application Message-ID: Hi All, Is there any rails based forum web application out there? something link phpBB for PHP. Thanks, Wesley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070516/468edc9e/attachment.html From ben at near-time.com Wed May 16 23:59:52 2007 From: ben at near-time.com (Ben Burdick) Date: Wed, 16 May 2007 23:59:52 -0400 Subject: [raleigh.rb] Rails based forum application In-Reply-To: References: Message-ID: Beast - http://beast.caboo.se On May 16, 2007, at 11:31 PM, Wesley Zhang wrote: > Hi All, > > Is there any rails based forum web application out there? something > link phpBB for PHP. > > Thanks, > > Wesley > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > !DSPAM:9,464bcb07281231756310464! !DSPAM:57,464bd1a0283081725761840! From geoff at geoffdavis.net Thu May 17 11:34:26 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Thu, 17 May 2007 08:34:26 -0700 Subject: [raleigh.rb] Functional test plugin woes Message-ID: I am trying to get some functional tests going for a controller that includes a few plugins. Everything works in development mode, but all functional tests die. As best I can tell, the plugins are not being loaded correctly during the functional tests. The functional test machinery seems to be swallowing whatever exceptions are being thrown during the loading process, so I'm at a bit of a loss as to what's going on. Any suggestions? Geoff From skmetz at gmail.com Thu May 17 11:51:09 2007 From: skmetz at gmail.com (Sandi Metz) Date: Thu, 17 May 2007 11:51:09 -0400 Subject: [raleigh.rb] Functional test plugin woes In-Reply-To: References: Message-ID: <464C79ED.5080909@gmail.com> Geoff, Put this file in your lib directory and run your tests. It'll reveal many sins.... It basically overrides the normal rails version of 'test_help' and actually shows you any errors that get thrown while requiring files. I'm running rails 1.2.3 and this is basically a copy of that version of test_help. YMMV, but if you look at the comments in this file you can probably do the same thing with any other rails version. Sandi Geoff Davis wrote: > I am trying to get some functional tests going for a controller that > includes a few plugins. Everything works in development mode, but > all functional tests die. As best I can tell, the plugins are not > being loaded correctly during the functional tests. The functional > test machinery seems to be swallowing whatever exceptions are being > thrown during the loading process, so I'm at a bit of a loss as to > what's going on. > > Any suggestions? > > Geoff > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_help.rb Url: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070517/f3c748ec/attachment.pl From geoff at geoffdavis.net Thu May 17 12:20:52 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Thu, 17 May 2007 09:20:52 -0700 Subject: [raleigh.rb] Functional test plugin woes In-Reply-To: <464C79ED.5080909@gmail.com> References: <464C79ED.5080909@gmail.com> Message-ID: <4958C03D-8DDF-4A79-9903-3E8A58F6B47B@geoffdavis.net> Thanks, Sandi! That's a big help. On May 17, 2007, at 8:51 AM, Sandi Metz wrote: > Geoff, > > Put this file in your lib directory and run your tests. It'll > reveal many sins.... > > It basically overrides the normal rails version of 'test_help' and > actually shows you any errors that get thrown while requiring files. > > I'm running rails 1.2.3 and this is basically a copy of that > version of test_help. YMMV, but if you look at the comments in > this file you can probably do the same thing with any other rails > version. > > Sandi > > > > Geoff Davis wrote: >> I am trying to get some functional tests going for a controller >> that includes a few plugins. Everything works in development >> mode, but all functional tests die. As best I can tell, the >> plugins are not being loaded correctly during the functional >> tests. The functional test machinery seems to be swallowing >> whatever exceptions are being thrown during the loading process, >> so I'm at a bit of a loss as to what's going on. >> >> Any suggestions? >> >> Geoff >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> > # Override rails\lib\test_help.rb to catch and re-throw > exceptions. Without this, > # if a require fails (probably my fault for some boneheaded thing > in applicaion) > # then it's possible that many of the things needed by > Test::Unit::TestCase > # don't actually get loaded. This often results in tests refusing > to run with the > # error Test::Unit::TestCase#use_transactional_fixtures NoMethodFound > > #the begin/rescue/ends are the only changes > > begin > require_dependency 'application' > rescue Exception => e > puts "\n\n" > raise "FATAL ERROR: the require of application.rb raised # > {e.message}" > end > > # Make double-sure the RAILS_ENV is set to test, > # so fixtures are loaded to the right database > silence_warnings { RAILS_ENV = "test" } > > begin > require 'test/unit' > require 'active_record/fixtures' > require 'action_controller/test_process' > require 'action_controller/integration' > require 'action_web_service/test_invoke' > require 'breakpoint' > rescue Exception => e > puts "\n\n" > raise "FATAL ERROR: something about your rails environment is > wrong, doing the requires needed to set up testing raised # > {e.message}" > end > > Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/" > ActionController::IntegrationTest.fixture_path = > Test::Unit::TestCase.fixture_path > > def create_fixtures(*table_names) > Fixtures.create_fixtures(RAILS_ROOT + "/test/fixtures", table_names) > end_______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From minter at lunenburg.org Thu May 17 13:45:03 2007 From: minter at lunenburg.org (H. Wade Minter) Date: Thu, 17 May 2007 13:45:03 -0400 Subject: [raleigh.rb] New semi-local Rails app - TeamSnap Message-ID: <778559B6-EFAD-4FD9-BF06-C7FC46BC5FA7@lunenburg.org> Greetings from Rolesville, I've been working with some guys out of Portland, OR, on a new Rails app aimed at managing adult and youth rec sports teams. The app is called TeamSnap, and is available in public beta at http:// www.teamsnap.com/ The marketing site (www) is in PHP, but the app itself is in Rails. Check it out - comments welcome! There's a feedback link within the live app itself as well. --Wade From robert.horvick at gmail.com Fri May 18 20:23:12 2007 From: robert.horvick at gmail.com (Robert Horvick) Date: Fri, 18 May 2007 20:23:12 -0400 Subject: [raleigh.rb] New semi-local Rails app - TeamSnap In-Reply-To: <778559B6-EFAD-4FD9-BF06-C7FC46BC5FA7@lunenburg.org> References: <778559B6-EFAD-4FD9-BF06-C7FC46BC5FA7@lunenburg.org> Message-ID: Looks very well done - I'm passing this on to a few local coachs. There is a similar market for scouting activities that I've been wanting to look deeper into at some point (since all four of my kids are scouts of one form or another) - there is a lot of commonality between team sports and scouting. I see you were picked up on TechCrunch this afternoon - congrats. Robert. On 5/17/07, H. Wade Minter wrote: > > Greetings from Rolesville, > > I've been working with some guys out of Portland, OR, on a new Rails > app aimed at managing adult and youth rec sports teams. The app is > called TeamSnap, and is available in public beta at http:// > www.teamsnap.com/ > > The marketing site (www) is in PHP, but the app itself is in Rails. > > Check it out - comments welcome! There's a feedback link within the > live app itself as well. > > --Wade > _______________________________________________ > 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/20070518/4e58dd58/attachment.html From mark.bennett.mail at gmail.com Sat May 19 13:27:27 2007 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Sat, 19 May 2007 13:27:27 -0400 Subject: [raleigh.rb] New semi-local Rails app - TeamSnap In-Reply-To: References: <778559B6-EFAD-4FD9-BF06-C7FC46BC5FA7@lunenburg.org> Message-ID: Yes, the Bill Gates wiffle ball team was a nice touch. You had me at Ozzy. Mark On 5/18/07, Robert Horvick wrote: > > Looks very well done - I'm passing this on to a few local coachs. > > There is a similar market for scouting activities that I've been wanting > to look deeper into at some point (since all four of my kids are scouts of > one form or another) - there is a lot of commonality between team sports and > scouting. > > I see you were picked up on TechCrunch this afternoon - congrats. > > Robert. > > > On 5/17/07, H. Wade Minter wrote: > > > > Greetings from Rolesville, > > > > I've been working with some guys out of Portland, OR, on a new Rails > > app aimed at managing adult and youth rec sports teams. The app is > > called TeamSnap, and is available in public beta at http:// > > www.teamsnap.com/ > > > > The marketing site (www) is in PHP, but the app itself is in Rails. > > > > Check it out - comments welcome! There's a feedback link within the > > live app itself as well. > > > > --Wade > > _______________________________________________ > > 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/20070519/6b330edb/attachment.html From bhansley at gmail.com Sat May 19 17:56:26 2007 From: bhansley at gmail.com (Bill Hansley) Date: Sat, 19 May 2007 17:56:26 -0400 Subject: [raleigh.rb] New semi-local Rails app - TeamSnap In-Reply-To: References: <778559B6-EFAD-4FD9-BF06-C7FC46BC5FA7@lunenburg.org> Message-ID: <51b534310705191456h12fc7eecw5996e02434357236@mail.gmail.com> Wade. Nice job with the app. Looks *great* too! -Bill On 5/19/07, Mark Bennett wrote: > > Yes, the Bill Gates wiffle ball team was a nice touch. You had me at > Ozzy. > > Mark > > On 5/18/07, Robert Horvick < robert.horvick at gmail.com> wrote: > > > > Looks very well done - I'm passing this on to a few local coachs. > > > > There is a similar market for scouting activities that I've been wanting > > to look deeper into at some point (since all four of my kids are scouts of > > one form or another) - there is a lot of commonality between team sports and > > scouting. > > > > I see you were picked up on TechCrunch this afternoon - congrats. > > > > Robert. > > > > > > On 5/17/07, H. Wade Minter wrote: > > > > > > Greetings from Rolesville, > > > > > > I've been working with some guys out of Portland, OR, on a new Rails > > > app aimed at managing adult and youth rec sports teams. The app is > > > called TeamSnap, and is available in public beta at http:// > > > www.teamsnap.com/ > > > > > > The marketing site (www) is in PHP, but the app itself is in Rails. > > > > > > Check it out - comments welcome! There's a feedback link within the > > > live app itself as well. > > > > > > --Wade > > > _______________________________________________ > > > 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 > -- --------------------------------------------- Read Bill's latest ramblings at http://schoolboyheart.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070519/cd1deb0f/attachment.html From minter at lunenburg.org Sat May 19 19:48:43 2007 From: minter at lunenburg.org (H. Wade Minter) Date: Sat, 19 May 2007 19:48:43 -0400 Subject: [raleigh.rb] New semi-local Rails app - TeamSnap In-Reply-To: <51b534310705191456h12fc7eecw5996e02434357236@mail.gmail.com> References: <778559B6-EFAD-4FD9-BF06-C7FC46BC5FA7@lunenburg.org> <51b534310705191456h12fc7eecw5996e02434357236@mail.gmail.com> Message-ID: Thanks! 100% of the beautiful web design was NOT done by me, as anyone who looks at lunenburg.org could tell. :-) But Sparkplug, the web design outfit behind TeamSnap, does amazing work. So be sure to check them out at http://www.sparkplug.com/ if you need web design help. --Wade On May 19, 2007, at 5:56 PM, Bill Hansley wrote: > Wade. Nice job with the app. Looks *great* too! > -Bill > > > On 5/19/07, Mark Bennett wrote:Yes, > the Bill Gates wiffle ball team was a nice touch. You had me at Ozzy. > > Mark > > On 5/18/07, Robert Horvick < robert.horvick at gmail.com> wrote: > Looks very well done - I'm passing this on to a few local coachs. > > There is a similar market for scouting activities that I've been > wanting to look deeper into at some point (since all four of my > kids are scouts of one form or another) - there is a lot of > commonality between team sports and scouting. > > I see you were picked up on TechCrunch this afternoon - congrats. > > Robert. > > > On 5/17/07, H. Wade Minter wrote: Greetings > from Rolesville, > > I've been working with some guys out of Portland, OR, on a new Rails > app aimed at managing adult and youth rec sports teams. The app is > called TeamSnap, and is available in public beta at http:// > www.teamsnap.com/ > > The marketing site (www) is in PHP, but the app itself is in Rails. > > Check it out - comments welcome! There's a feedback link within the > live app itself as well. > > --Wade > _______________________________________________ > 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 > > > > -- > --------------------------------------------- > Read Bill's latest ramblings at http://schoolboyheart.blogspot.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From geoff at geoffdavis.net Wed May 23 17:39:51 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 23 May 2007 14:39:51 -0700 Subject: [raleigh.rb] class from string Message-ID: I've got a symbol representing a rails model class that I'd like to use to get ahold of a class method on the class. I can do eval("# {my_symbol.to_s.classify}.my_class_method"), but that seems evil. Is there a better way? I don't see any methods that look like they'd give me a list of classes or anything in Kernel, Object, or Class. Maybe I'm missing something? From adam at thewilliams.ws Wed May 23 18:19:44 2007 From: adam at thewilliams.ws (Adam Williams) Date: Wed, 23 May 2007 18:19:44 -0400 Subject: [raleigh.rb] class from string In-Reply-To: References: Message-ID: <76ABD8C9-A7E2-4368-8086-1D78202DD7D6@thewilliams.ws> Something like this?: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'active_support' => true irb(main):003:0> "Array".classify.constantize => Array Or, do you mean to actually get the method object, as in page 522 of Programming Ruby 2ed? On May 23, 2007, at 5:39 PM, Geoff Davis wrote: > I've got a symbol representing a rails model class that I'd like to > use to get ahold of a class method on the class. I can do eval("# > {my_symbol.to_s.classify}.my_class_method"), but that seems evil. Is > there a better way? > > I don't see any methods that look like they'd give me a list of > classes or anything in Kernel, Object, or Class. Maybe I'm missing > something? > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From geoff at geoffdavis.net Wed May 23 18:26:22 2007 From: geoff at geoffdavis.net (Geoff Davis) Date: Wed, 23 May 2007 15:26:22 -0700 Subject: [raleigh.rb] class from string In-Reply-To: <76ABD8C9-A7E2-4368-8086-1D78202DD7D6@thewilliams.ws> References: <76ABD8C9-A7E2-4368-8086-1D78202DD7D6@thewilliams.ws> Message-ID: <289810AB-72B8-45B4-A0AA-777B71D3948E@geoffdavis.net> Constantize! Yes! That is what I was looking for. (My apologies for not having dug through the pickaxe book sufficiently - I'm still on the road post-RubyConf) Thanks, Adam! On May 23, 2007, at 3:19 PM, Adam Williams wrote: > Something like this?: > > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require 'active_support' > => true > irb(main):003:0> "Array".classify.constantize > => Array > > Or, do you mean to actually get the method object, as in page 522 of > Programming Ruby 2ed? > > On May 23, 2007, at 5:39 PM, Geoff Davis wrote: > >> I've got a symbol representing a rails model class that I'd like to >> use to get ahold of a class method on the class. I can do eval("# >> {my_symbol.to_s.classify}.my_class_method"), but that seems evil. Is >> there a better way? >> >> I don't see any methods that look like they'd give me a list of >> classes or anything in Kernel, Object, or Class. Maybe I'm missing >> something? >> _______________________________________________ >> 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 nathaniel at talbott.ws Wed May 23 19:23:25 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Wed, 23 May 2007 19:23:25 -0400 Subject: [raleigh.rb] class from string In-Reply-To: <76ABD8C9-A7E2-4368-8086-1D78202DD7D6@thewilliams.ws> References: <76ABD8C9-A7E2-4368-8086-1D78202DD7D6@thewilliams.ws> Message-ID: On May 23, 2007, at 18:19 , Adam Williams wrote: > Something like this?: > > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require 'active_support' > => true > irb(main):003:0> "Array".classify.constantize > => Array > > Or, do you mean to actually get the method object, as in page 522 of > Programming Ruby 2ed? You can also lose the activesupport crutches: >> Object.const_get("Array") => Array The downside is that nested classes have to be handled specially, which constantize does for you. HTH, -- Nathaniel Talbott <:((>< From mark.bennett.mail at gmail.com Thu May 24 10:47:10 2007 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Thu, 24 May 2007 10:47:10 -0400 Subject: [raleigh.rb] hack night Message-ID: Has the hack night gone the way of the dodo? Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070524/3efc56c4/attachment.html From nathaniel at talbott.ws Thu May 24 11:36:23 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Thu, 24 May 2007 11:36:23 -0400 Subject: [raleigh.rb] hack night In-Reply-To: References: Message-ID: <934D8FF5-CF4E-40C4-83F3-6D479F9FA8FB@talbott.ws> On May 24, 2007, at 10:47 , Mark Bennett wrote: > Has the hack night gone the way of the dodo? Nope, I just got distracted by RailsConf and forgot to add it to the calendar. Should be all set now - thanks for the reminder! See ya'll there, -- Nathaniel Talbott <:((>< From veganjenny at gmail.com Thu May 24 12:23:35 2007 From: veganjenny at gmail.com (jenny w) Date: Thu, 24 May 2007 12:23:35 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? Message-ID: I realize this is way off topic but I'm still kind of new to the area and I'm wondering where people around here go to buy computer stuff. I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City or somesuch probably wouldn't carry something like that. I'm in Durham, but am willing to drive other places if needed. Thanks in advance for suggestions! Jen-Mei From tj at stank.us Thu May 24 13:48:07 2007 From: tj at stank.us (TJ Stankus) Date: Thu, 24 May 2007 13:48:07 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? In-Reply-To: References: Message-ID: I usuallly check Intrex (local computer store) first for things like that, but yeah, I do end up buying from Best Buy and the like more often than I'd prefer. HTH, -TJ On 5/24/07, jenny w wrote: > I realize this is way off topic but I'm still kind of new to the area > and I'm wondering where people around here go to buy computer stuff. > I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City > or somesuch probably wouldn't carry something like that. > > I'm in Durham, but am willing to drive other places if needed. > > Thanks in advance for suggestions! > > Jen-Mei > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From ruby at bandkbroom.com Thu May 24 13:52:21 2007 From: ruby at bandkbroom.com (Brian Broom) Date: Thu, 24 May 2007 13:52:21 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? In-Reply-To: References: Message-ID: On 5/24/07, jenny w wrote: > > I realize this is way off topic but I'm still kind of new to the area > and I'm wondering where people around here go to buy computer stuff. > I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City > or somesuch probably wouldn't carry something like that. > > I'm in Durham, but am willing to drive other places if needed. > > Thanks in advance for suggestions! > > Jen-Mei > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > I've gotten components (cpu, motherboard, memory) from Intrex before, and they usually have decent prices. I'd just make sure you call before you run around to places. Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070524/29f7c099/attachment.html From DLanouette at computer.org Thu May 24 14:01:27 2007 From: DLanouette at computer.org (David Lanouette) Date: Thu, 24 May 2007 14:01:27 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? In-Reply-To: References: Message-ID: If you are looking for a big-box store, there's a Tiger Direct "outlet" over on Capitol Blvd in North Raleigh (between 440 and 540). They don't have everything available from their web site, but still a lot of stuff. Their customer support is usually bad due to so many customers So hopefully they have what you want out on the floor, or you go when nobody else is there. ______________________________ - David Lanouette - David.Lanouette at GMail.com Excellence, then, is not an act, but a habit - Aristotle On 5/24/07, jenny w wrote: > I realize this is way off topic but I'm still kind of new to the area > and I'm wondering where people around here go to buy computer stuff. > I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City > or somesuch probably wouldn't carry something like that. > > I'm in Durham, but am willing to drive other places if needed. > > Thanks in advance for suggestions! > > Jen-Mei From ruby at bandkbroom.com Thu May 24 14:10:25 2007 From: ruby at bandkbroom.com (Brian Broom) Date: Thu, 24 May 2007 14:10:25 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? In-Reply-To: References: Message-ID: Tiger Direct isn't a bad place...Its not the neatest store I've ever been in, if that's important to you (its not to me). This is the closest thing I've seen to Frys in California...I miss that place. Sort of a Radio Shack meets WalMart Brian On 5/24/07, David Lanouette wrote: > > If you are looking for a big-box store, there's a Tiger Direct > "outlet" over on Capitol Blvd in North Raleigh (between 440 and 540). > > They don't have everything available from their web site, but still a > lot of stuff. Their customer support is usually bad due to so many > customers So hopefully they have what you want out on the floor, or > you go when nobody else is there. > > ______________________________ > - David Lanouette > - David.Lanouette at GMail.com > > Excellence, then, is not an act, but a habit - Aristotle > > > On 5/24/07, jenny w wrote: > > I realize this is way off topic but I'm still kind of new to the area > > and I'm wondering where people around here go to buy computer stuff. > > I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City > > or somesuch probably wouldn't carry something like that. > > > > I'm in Durham, but am willing to drive other places if needed. > > > > Thanks in advance for suggestions! > > > > Jen-Mei > _______________________________________________ > 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/20070524/807013e6/attachment.html From jonathan.johnson at motricity.com Thu May 24 14:18:37 2007 From: jonathan.johnson at motricity.com (Jonathan Johnson) Date: Thu, 24 May 2007 14:18:37 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computerstore? In-Reply-To: Message-ID: <00DF24D6B0149846B3B41565C05EE27D42DDE6@rtpxch01.na.internal.motricity.local> While we're on the subject... In my home town of Greenville, South Carolina there was a Computer Direct Outlet that had a "customer work area". They provided all the peripherals and you could basically rebuild your box right in the store. Anybody know of a store with a "customer work area"? ~Jonathan -----Original Message----- From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of David Lanouette Sent: Thursday, May 24, 2007 2:01 PM To: The mailing list of raleigh.rb Subject: Re: [raleigh.rb] (offtopic) Any recommendations for local computerstore? If you are looking for a big-box store, there's a Tiger Direct "outlet" over on Capitol Blvd in North Raleigh (between 440 and 540). They don't have everything available from their web site, but still a lot of stuff. Their customer support is usually bad due to so many customers So hopefully they have what you want out on the floor, or you go when nobody else is there. ______________________________ - David Lanouette - David.Lanouette at GMail.com Excellence, then, is not an act, but a habit - Aristotle On 5/24/07, jenny w wrote: > I realize this is way off topic but I'm still kind of new to the area > and I'm wondering where people around here go to buy computer stuff. > I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City > or somesuch probably wouldn't carry something like that. > > I'm in Durham, but am willing to drive other places if needed. > > Thanks in advance for suggestions! > > Jen-Mei _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of Motricity. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. From brenton.leanhardt at gmail.com Thu May 24 14:41:01 2007 From: brenton.leanhardt at gmail.com (brenton leanhardt) Date: Thu, 24 May 2007 14:41:01 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? In-Reply-To: References: Message-ID: <7c0835400705241141v7756fefaub3acf6bce37312d6@mail.gmail.com> I don't remember off the top of my head but Tiger Direct does have a site you can visit that will tell you if the item you are looking for is in stock at a particular outlet. If you call them I'm sure they will know the url. On 5/24/07, David Lanouette wrote: > > If you are looking for a big-box store, there's a Tiger Direct > "outlet" over on Capitol Blvd in North Raleigh (between 440 and 540). > > They don't have everything available from their web site, but still a > lot of stuff. Their customer support is usually bad due to so many > customers So hopefully they have what you want out on the floor, or > you go when nobody else is there. > > ______________________________ > - David Lanouette > - David.Lanouette at GMail.com > > Excellence, then, is not an act, but a habit - Aristotle > > > On 5/24/07, jenny w wrote: > > I realize this is way off topic but I'm still kind of new to the area > > and I'm wondering where people around here go to buy computer stuff. > > I'm looking for an APC Smart-UPS 1500 and I suspect that Circuit City > > or somesuch probably wouldn't carry something like that. > > > > I'm in Durham, but am willing to drive other places if needed. > > > > Thanks in advance for suggestions! > > > > Jen-Mei > _______________________________________________ > 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/20070524/2ab71449/attachment.html From veganjenny at gmail.com Thu May 24 16:31:58 2007 From: veganjenny at gmail.com (jenny w) Date: Thu, 24 May 2007 16:31:58 -0400 Subject: [raleigh.rb] (offtopic) Any recommendations for local computer store? In-Reply-To: <7c0835400705241141v7756fefaub3acf6bce37312d6@mail.gmail.com> References: <7c0835400705241141v7756fefaub3acf6bce37312d6@mail.gmail.com> Message-ID: Thanks for the suggestions! Yes, I'm missing Fry's, too (I'm from CA), but also Central Computer (a good local computer store in SF). I'll check out Intrex and Tiger Direct. Jen-Mei From lists-jared at nc.rr.com Tue May 29 10:03:53 2007 From: lists-jared at nc.rr.com (Jared Richardson) Date: Tue, 29 May 2007 10:03:53 -0400 Subject: [raleigh.rb] Mountain West videos online Message-ID: <9260B96F-147D-4E0F-973B-49923C4F66CE@nc.rr.com> I haven't watched any yet, but it looks like a good resource. I wonder if Hoedown will do anything similar? http://www.jamesbritt.com/2007/5/29/moutainwest-rubyconf-2007-videos Jared http://AgileArtisans.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070529/e42ebfed/attachment.html From phi+ruby at vitalsource.com Tue May 29 11:18:21 2007 From: phi+ruby at vitalsource.com (Phi Sanders) Date: Tue, 29 May 2007 11:18:21 -0400 Subject: [raleigh.rb] Lone Star Ruby Conference Message-ID: <46837154-F08E-4997-8EB6-4560406E03E0@vitalsource.com> If you pre-registered for the Lone Star Ruby Conference in Austin, Tx, you should be able to register today... "http://lonestarrubyconf.com/" I've been looking for flights and rooms, and I recommend the Homestead Suites about 5 minutes from the Norris center, and (according to my Austin colleagues) adjacent to restaurants and shopping. $69/Night and up "http://www.homesteadhotels.com/minisite/accommodations/main.asp? HotelID=17" I look forward to seeing a nice Raleigh.RB turnout !!! ~Phi -- Phi Sanders, Business Systems Analyst, Vital Source Technologies, Ingram Digital Group From mark.bennett.mail at gmail.com Thu May 31 10:54:26 2007 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Thu, 31 May 2007 10:54:26 -0400 Subject: [raleigh.rb] ruby inside Message-ID: Hey Matthew, saw your article on the front page of Ruby Inside. Way to go! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20070531/63bb38a1/attachment.html From tj at stank.us Thu May 31 11:16:06 2007 From: tj at stank.us (TJ Stankus) Date: Thu, 31 May 2007 11:16:06 -0400 Subject: [raleigh.rb] ruby inside In-Reply-To: References: Message-ID: Way to go Matt! -TJ On 5/31/07, Mark Bennett wrote: > Hey Matthew, saw your article on the front page of Ruby Inside. Way to go! > > Mark > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From adam at thewilliams.ws Thu May 31 12:17:42 2007 From: adam at thewilliams.ws (Adam Williams) Date: Thu, 31 May 2007 12:17:42 -0400 Subject: [raleigh.rb] ruby inside In-Reply-To: References: Message-ID: <459BCC75-888B-4CFB-BA32-E7557438B04F@thewilliams.ws> Man, my friends are famous ;) On May 31, 2007, at 11:16 AM, TJ Stankus wrote: > Way to go Matt! > > -TJ > > On 5/31/07, Mark Bennett wrote: >> Hey Matthew, saw your article on the front page of Ruby Inside. >> Way to go! >> >> Mark >> >> _______________________________________________ >> 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 pelargir at gmail.com Thu May 31 13:07:55 2007 From: pelargir at gmail.com (Matthew) Date: Thu, 31 May 2007 13:07:55 -0400 Subject: [raleigh.rb] ruby inside In-Reply-To: <459BCC75-888B-4CFB-BA32-E7557438B04F@thewilliams.ws> References: <459BCC75-888B-4CFB-BA32-E7557438B04F@thewilliams.ws> Message-ID: Hey, I didn't realize they had picked it up! I've been sitting on it for a year so it's good to see it out there finally. Thanks for the support, guys, and for posting about it Mark. Matthew On 5/31/07, Adam Williams wrote: > Man, my friends are famous ;) > > On May 31, 2007, at 11:16 AM, TJ Stankus wrote: > > > Way to go Matt! > > > > -TJ > > > > On 5/31/07, Mark Bennett wrote: > >> Hey Matthew, saw your article on the front page of Ruby Inside. > >> Way to go! > >> > >> Mark > >> > >> _______________________________________________ > >> 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 phi+ruby at vitalsource.com Thu May 31 18:44:07 2007 From: phi+ruby at vitalsource.com (Phi Sanders) Date: Thu, 31 May 2007 18:44:07 -0400 Subject: [raleigh.rb] posting form data to https server Message-ID: I'm trying to integrate a legacy unix production system to a legacy web service, and though it can be done by having ruby kick off a shell script (which is about my speed...) I thought I'd try to strengthen my ruby-fu by doing it that way (with the expected benefit that it would be more modular and maintainable) Below is a generalized version of my script, which posts data OK but never works, when the given curl form does... As you can see, I added a user-agent, because some tidbit I read suggested it solved their problem posting a form. I sincerely doubt the service is hard- coded to specific user agents since it takes the curl command OK (see ua* below) Can anyone suggest what I might not be doing correctly?? #======BEGIN require 'net/http' require 'net/https' # trying to code the equivalent of... # curl -d "body of post" https://server.host.tld/java/function/ resource?user_id=abc123 user_id = "abc123" resource = "x-kvm-01234" site_url = "https://server.host.tld/java/function/" + resource + "? user_id=" + user_id raw_data = "any old random string - usually from a small text file" url = URI.parse(site_url) p "URL : " + site_url p "Path : " + url.path p "port : " + url.port.to_s # some web-apps won't work if you don't specify a user-agent... my_headers = { 'Content-Type' => 'application/x-www-form-urlencoded', 'User-Agent' => "mozilla/5.0 (macintosh; u; intel mac os x; en) ruby 1.8.5 (script, like curl, not safari, khtml or gecko)" } client = Net::HTTP.new(url.host,url.port) client.use_ssl = true # make false to test against non-secure server client.start {|conn| resp = conn.post(url.path, raw_data, my_headers) p "BODY : " + resp.body } #======END * curl user-agent : "curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/ 7.13.1 openssl/0.9.7l zlib/1.2.3" ~Phi -- Phi Sanders, Business Systems Analyst, Vital Source Technologies, Ingram Digital Group