363354-381295 subjects 363758-368060

Re: Windows XP can create a Rsum.html file but ruby  cannot.
363527 [dave.hurrell] The following works properly in ruby v1.9.1
363531 [billk@ct .c ] Not even 1.9.1 supports unicode paths on windows very well.

Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP?
363529 [Dave.Hurrell] Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP?
+ 363530 [luislavena@g] On May 31, 2:04=A0am, "Dave.Hurr...@gmail.com" <dave.hurr...@gmail.com>
| 363537 [Dave.Hurrell] The sqlite3-ruby gem was installed and the sqlite3.dll was correctly
| 363551 [luislavena@g] On May 31, 7:34=A0am, "Dave.Hurr...@gmail.com" <dave.hurr...@gmail.com>
| 363552 [vinibaggio@g] I think rails 3 does not support Ruby 1.9.1. You have to use ruby 1.9.2-head
+ 363675 [rogerpack200] works ok for me using the rubyinstaller.

1.9.1-p376 vs. 1.9.1-p378
363540 [onepoint@st ] I just noticed that both http://www.ruby-lang.org/en/ and
+ 363543 [ddefrenne@gm] p376 is the advertised as the stable release, but I've been running p378
| 363545 [shortcutter@] You can search for issues at
| 363550 [ddefrenne@gm] Ah, thanks :).
+ 363547 [james@gr ys ] 378 is preferred.  The page was just out-of-date.  I've updated it.
  363554 [onepoint@st ] Thanks for clearing that up James!  Mind you, it's still a little
  363572 [james@gr ys ] The core team doesn't always write about every point release, I assume =
  363587 [onepoint@st ] No problem with that.  I was really asking for a pony there!

Qt4/ruby 1.9 install on mac os x Snow Leopard ?
363542 [unbewusst.se] this week end i've followed a number of blogs over the net in order to

Do you want the safety of the computer ?
363556 [ronyekr@gm i] Do you want the safety of the computer?

Windows and Linux Tips
363557 [pavel.mba.du] www.windowsandlinuxtips.blogspot.com

[ANN] Ruby 1.9.2-preview3 is out
363558 [yugui@yu ui ] I have just released Ruby 1.9.2-preview3. This is a preview release of
363566 [joelvanderwe] installing binary commands:   /usr/local/bin
363576 [wayneeseguin] Yugi, *awesome* news, thank you and the Ruby team!!!

using GMail to send e-mail causing email
363562 [rhie0004@gm ] I am attempting to setup my development environment to use gmail to send
363563 [hassan.schro] Because as the error message (somewhat obliquely) says, there is

Ruby breakpoint has weird idea of what local_variables are?
363565 [RichardDummy] require 'rubygems'
363567 [shortcutter@] Robert@babelfish ~
363817 [RichardDummy] ractices.com/
363819 [RichardDummy] On Jun 4, 9:53=A0pm, RichardOnRails

change csv file into html table
363573 [myocean135@y] there is csv class showtable() function to change csv file into html
363597 [shortcutter@] Yes.
363602 [myocean135@y] how to do it ?
363609 [shortcutter@] Open a file for writing, use a CSV library to read the CSV file, write
363637 [myocean135@y] for example ,there is a csv file , two rows two coulums
363638 [shortcutter@] You open your favorite text editor or IDE and type in all the commands

using "require" in irb, where did my variables go!?
363578 [timmyrunsfas] I have a somewhat basic question: lets say that in my working directory
+ 363582 [wes@ve ti al] b.rb:3: undefined local variable or method `x' for main:Object (NameError)
+ 363599 [wolskint@o2 ] #in my_vars.rb
+ 363601 [josh.cheek@g] Using globals to allow locals to talk across files seems pretty shaky. Why
+ 363621 [flo@an er gr] directory

Re: Ruby 1.9.2-preview3 is out
363580 [luislavena@g] 1.9.1 is Ruby compatibility version (compare 1.8 used by Ruby 1.8.x)
363596 [rohit.aronde] Yugui, I think the release plan is out of date, because it says that
363600 [diego.viraso] Thank you a ton.

If else condition in ruby not working
363586 [sweetzubair@] i write simple code for button if button pressed than result is passed
+ 363588 [wes@ve ti al] begin
| 363589 [sweetzubair@] It's Working but..........
+ 363590 [josh.cheek@g] You need to give more context. I assume you are using watir and logger, I
  363592 [sweetzubair@] def Readfrom_file(filename,fieldata,log,result)

replacement method for 'mysql_escape_string
363595 [anilrakrails] Can any one suggest, what is the new method for replacement of

Ruby contractors
363603 [jasonjackson] I apologize in advance if its not appropriate to post here.  I found a
363616 [ben@bl yt in] And by "I found" of course you mean "I own and operate".
363633 [ryand-ruby@z] Of course he meant to say "I founded".
+ 363655 [eregontp@gm ] Let's hope so :) (but that seems highly optimistic ...)
+ 363657 [ravenz@o2 ie] Ryan i agree with you, because, standing on WHOIS information about

[Ann] Contribution wanted: test your code with 1.9.2-preview3
363605 [mame@ts .n .] As Yugui announced in [ruby-talk:363558], we released Ruby-1.9.2-

Error with Gem Outdated command
363606 [johnts@ch rt] (realized this should have been posted here, not the Rails group...)
+ 367114 [johnts@ch rt] Not one to bump topics, but I'm still getting this error.. and it's been
+ 376581 [don.park@gm ] I'm getting the same error from gem outdated.
+ 376582 [don.park@gm ] a little more information about the gem outdated problem, by adding a

looping through array elements (noob question)
363614 [n8@ad ll om ] please bear with me on this. i'm blundering my way through learning
363618 [shortcutter@] The line above produces the output of the short names - and then it
363620 [n8@ad ll om ] thanks, robert. i'll give that a shot. the camel case is a holdover from

ANN: Sequel 3.12.0 Released
363617 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

Class extension
363619 [danny.a.step] version of extend. below is the folder structure I have.

Ruby File class
363626 [alumsimporta] am working on a platform that uses ruby but has not all the File class
363630 [jgabrielygal] What platform is that?

Fashion serious in 2010
363627 [ronyekr@gm i] Man Fashion Week: Z Zegna Spring 2010 Collection

363629 [kirkgo@gm il] Where I download de RForum?
363658 [toastkid.wil] Posted via http://www.ruby-forum.com/.
363659 [kp@kp ra il ] Thanks William!

documentation mismatch ?
363631 [orlenko.stas] I'm reading documentation on
+ 363632 [data@qu nt m] I get the results that the documentation shows.  I am using ruby
+ 363636 [colinb2r@go ] This is (I believe) caused by a change in the (implicit) declaration and
+ 363673 [b.candler@po] In ruby 1.9, the |x| block parameter is different to the x variable

Parsing geonames
363639 [rubyforum@we] A Ruby newbie having trouble getting results back from geonames
+ 363640 [sven.schott@] Have you tried just calling the name of the instance var? Sometimes nice
+ 363641 [m.fellinger@] iota ~ % irb
  363642 [rubyforum@we] Thanks. I had tried places.country_name among others. Why the "first"?
  + 363644 [botpena@gm i] try playing w ruby using irb,
  + 363645 [josh.cheek@g] Because places is an array (think a list of geonames). You can tell it is an
    363699 [rubyforum@we] I'm confused. It's an array of one element, but that element has some
    + 363710 [m.fellinger@] Toponym is just trying to make the access easier, you are right that
    | 363741 [rubyforum@we] Michael
    | + 363769 [m.fellinger@] I'm well along, will put the code up on GitHub today.
    | + 363797 [m.fellinger@] Michael Fellinger
    |   + 363801 [rubyforum@we] OK, I'm a relative newbie. How do I use it? Just include the geonames.rb
    |   | 363825 [m.fellinger@] There is an example for every method in the comments, i didn't finish
    |   + 363802 [rubyforum@we] One minor comment. I'm more used to seeing lon than lng.
    |     363826 [m.fellinger@] The API uses lng everywhere, so of course I use it as well.
    + 363763 [botpena@gm i] read about geonames

installation issue with Ruby gems on Ubuntu 8.04
363646 [santoshdvn@g] the following error.
+ 363648 [ddefrenne@gm] That's an old version. The latest one is 1.3.7 and can be downloaded
| 363649 [santoshdvn@g] $wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz
| + 363650 [angushammond] That sounds more like a problem with your Internet connection than
| + 363651 [josh.cheek@g] Ubuntu has a package manager called Synaptic that I think should do this for
|   363652 [ddefrenne@gm] The Rubygems-package for Ubuntu has some problems with it (or used to
|   363653 [santoshdvn@g] i working on Ubuntu 8.04 and UI is not available.. and i am new to
|   363654 [santoshdvn@g] I have installed Curl to the download the file ..
|   + 363656 [santoshdvn@g] I have installed   SYNAPTIC.. but still i am unable to download the
|   + 363663 [hassan.schro] That looks like your DNS lookup is failing; check your nameserver
+ 363691 [edumucelli@g] The link you provide is reachable (even if it is an old version, as
  363707 [santoshdvn@g] Do i need to edit resolv.conf file or anything ..
  363709 [luke.a.chadw] Editing /etc/resolv.conf should get you started.
  363713 [santoshdvn@g] Ma

wsdl basic http authentication
363647 [vetrivel.bks] Hai ,

Ruby TK
363660 [cispas2000@g] I use a Ruby 1.8.7 on Ubuntu, I have made up a Ruby application to
363674 [rogerpack200] might help.

mod_ruby and 1.9
363661 [dennis@co te] It says it is supported experimentally on 1.9.
363688 [rogerpack200] You might be able to get mod_rack (phusion passenger) to work with 1.9

having a class method called only one time ?
363662 [unbewusst.se] I'd like having a class method called only one time ?
+ 363664 [unbewusst.se] Array HOST_IP = [] # the array let me make the constant "mutable"
| 363666 [unbewusst.se] class HFSFile
| 363667 [jgabrielygal] class HFSFile
| 363670 [unbewusst.se] i do agree, it's cleaner and much more rubyish, thanks !
+ 363665 [tony.arcieri] You can "memoize" the result of such an operation in an instance variable b=
| 363669 [unbewusst.se] fine thanks, that's cleaner than my code !
+ 363676 [josh.cheek@g] 2010/6/2 Une B=E9vue <unbewusst.sein@google.com.invalid>
  + 363678 [vikkous@gm i] Module#module_function is probably the best/shortest way to share the
  | 363681 [unbewusst.se] class HFSFile < File
  | 363697 [vikkous@gm i] I was really responding to Josh, regarding having a method be both an
  + 363682 [unbewusst.se] exactly what i wanted.

363668 [alumsimporta] please, is there a way to pre-determine the size (or capacity) of a
+ 363671 [shortcutter@] PLEASE DO NOT SHOUT.
+ 363672 [b.candler@po] Nope, strings are resized dynamically as required. But you could make
  363694 [eregontp@gm ] But you likely do not need that ;)

Simple hack to get $500 to your home.
363679 [uknews00@gm ] Simple hack to get $500 to your home at http://dailyupdatesonly.tk

webserver status, need better approach
363680 [walle.sthlm@] Hey, I need a better way of checking if a webserver  is online and
363684 [hassan.schro] ong result.
363685 [walle.sthlm@] I need the timeout timer for servers that have crashed, running
363686 [hassan.schro] OK, whatever. You originally said you were checking "if a webserver
363687 [walle.sthlm@] Hehe, sometimes the timer kicks in, 10 seconds, even if the webserver is
363696 [hassan.schro] So, I'm confused -- why do you have a 10-second timer if you know

TCPSocket error
363689 [ted_pon@ho m] I am a student learning ruby and I am getting an error that I can't
+ 363692 [Rob@Ag le on] Is there a server listening at port 8888?
+ 363695 [b.candler@po] Like it says, is not a valid destination IP address. Try
| 363702 [joelvanderwe] Dunno why, but ruby on linux seems to let me connect to A
+ 363698 [vikkous@gm i] Apparently, is treated as a loopback address on the mac. Apple
| 363701 [joelvanderwe] IIUC is the default route, not a broadcast addr. If you bind a
| 363715 [shortcutter@] But you just said that it's the default route, which is something used
| 363732 [joelvanderwe] What surprised to me is that you *can* connect to (It's not
| + 363736 [botpena@gm i] that is ok.
| + 363743 [vikkous@gm i] Huh. I find this surprising too.
+ 363704 [botpena@gm i] welcome :)

Re: Contribution wanted: test your code with 1.9.2-preview3
363690 [chauk.mean@g] I don't know if it is expected but the new default compilation flags
363735 [graham.agnew] I've been having reasonable success compiling 1.9.1 on HP-UX since
363757 [jzakiya@gm i] My system: Toshiba Satelite laptop, P4 2.8Ghz, 1GB, PCLOS 2010.1,
363759 [luislavena@g] See what version of Readline you have, if is 6.0, then is not going to

ruby-1.9.1-p378 hangs on make ripper.c
363705 [vansonsamuel] The ruby-1.9.1-p378 compile hangs on make ripper.c.  I am not sure why.

Doubly Link List
363706 [sourav.halda] How  to do Doubly link list in ruby .
363708 [ryand-ruby@z] do your own homework please... "Jack"

[ANN] hoe 2.6.1 Released
363711 [ryand-ruby@z] hoe version 2.6.1 has been released!

[ANN] ZenTest 4.3.2 Released
363712 [ryand-ruby@z] ZenTest version 4.3.2 has been released!

Split text into equal characters but keeping whole words
363714 [johnnybutler] I have text that is petty large.  What i want to do is split it into an
+ 363716 [ian.hobson@n] This is a remarkably subtle problem.
+ 363718 [dblack@ru yp] mytext.scan(/.{1,250}\b/m)
+ 363746 [colinb2r@go ] Using as an example the text below (setting to one side my slight surprise

gsub with wildcard
363717 [ rv@do os be] ...
+ 363719 [dhruva.sagar] This should do - string.gsub(/\d+/, '20')
| 363721 [dblack@ru yp] That's a bit over-eager; it will change any sequence of digits
| 363723 [dhruva.sagar] That's right David, but I was just nudging him in the right direction :).
+ 363720 [dblack@ru yp] You don't actually want a wildcard; you want a character class and a
  363722 [ rv@do os be] Thank you David!

dynamicaly define a method which body can contain yield
363724 [regis.aubare] So i try to define a methode by providing a bloc which can contain a
363728 [robert.dober] This is known as the single biggest PITA of Ruby1.8, well by me.
363734 [regis.aubare] I  try actualy with 1.9, but no solution by the way ...
363739 [robert.dober] ok my bad, you call yield in the "client" block, that cannot work, let
363745 [regis.aubare] class B

watir 1.6.5, ruby 1.8.7 and character encoding problem
363725 [tcblues@gm i] I was updating my tests to work for watir 1.6.5 and ruby 1.8.7 since I
363729 [tcblues@gm i] I think I found the solution on
363730 [tcblues@gm i] Posted via http://www.ruby-forum.com/.
372589 [tcblues@gm i] Now I'm trying the same thing for firefox or watir-wedbriver and the

problem with Net::SSH::Gateway
363726 [matt@te hn r] I am having a problem with Net::SSH::Gateway.  It seems that when a

redirecting stdin for 3. party program
363731 [martin.gerde] Ruby version:
+ 363742 [martin.gerde] One small addendum: I'm not actually interested in reading in something
+ 363747 [vikkous@gm i] I've deliberately forgotten all the awk I ever knew, so I modified
  363749 [martin.gerde] Thank you thank you thank you :-)
  363912 [shortcutter@] Thomas, why do you use IO.pipe and fork instead of IO.popen or Open3.popen3?

Permutations that include sub-arrays in ruby?
363733 [tjacobs-sndr] Ruby has a terrific implementation of single-valued permutations, but it
363738 [botpena@gm i] you assumed that it has *only* sub-arrays

Root Module (code)
363737 [jzakiya@gm i] Module 'Roots' provides two methods 'root' and 'roots'

Roots Module (code)
363740 [jzakiya@gm i] Module 'Roots' provides two methods 'root' and 'roots'  which will

Broken pipe (Errno::EPIPE)
363744 [lakshmi27.u@] but while sending giving error is
363811 [rogerpack200] My guess is that this means sendmail exited early for whatever reason.

geonames DST problem
363748 [rubyforum@we] #!/usr/bin/env ruby

[ANN] Money 3.0.2
363750 [shane.emmons] Money 3.0.2 Released

indows XP SP2, Ruby 1.9.1: unable to install ruby-debug-ide
363751 [techy_bolek@] On my Windows XP SP2 I got Ruby 1.9.1 I downloaded from
363753 [luislavena@g] collect.jp/ruby/mswin32/en/download/release.html.
363754 [techy_bolek@] RubyInstaller rocks. I noticed it came with bundled rubygems. After

[RFC] Ruby Mendicant University
363752 [gregory.t.br] Just letting you know about my latest project idea.   I am looking to
+ 363803 [sophrinix@gm] We should chat off list. A large portion of this aim is what I have in mind
| 364002 [gregory.t.br] nd
+ 363809 [josh.cheek@g] about who this is would be nice)
  364004 [gregory.t.br] Sure, I actually had a good conversation about this with one

comparing objects
363756 [andersonlfl@] How can I compare two objects and get true if some of his atributes are
+ 363762 [wolskint@o2 ] I think you need to define how to compare your objects and their hash.
| 363771 [robert.dober] this seems ok
| 363772 [wolskint@o2 ] What would be the other possible solution to this problem? The example
| + 363776 [robert.dober] Does it not? Seems to work on my box
| + 363780 [shortcutter@] Absolutely agree!
|   363812 [andersonlfl@] Before
|   363833 [shortcutter@] If all objects you are dealing with implement #eql? and #hash in a way
|   363834 [robert.dober] rcin
|   363892 [shortcutter@] Why?  Array#& uses #eql? - as Hash lookup methods do, too.
|   363894 [eregontp@gm ] Just wanting to add my thoughts about this (I made a thread about this a few
|   + 363896 [reinh@re nh ] I agree that using eql? and hash for some methods is surprising. I
|   + 364116 [markizko@gm ] For me it doesn't work anyway.
|     364117 [markizko@gm ] Sorry, guys, didn't notice how I used eql instead of eql?
|     364123 [reinh@re nh ] #hash makes sense for Hash#[] and etc. #eql? makes more sense for
|     + 364125 [wolskint@o2 ] If two objects are set to be eql?, their hash methods must also return
|     | 364126 [markizko@gm ] Well, it doesn't say much in core api :(
|     + 364190 [ shot@ho .p ] Both are necessary because #eql? says whether two objects are surely
|       364198 [shortcutter@] This is not necessarily true.  Any reasonable implementation of #eql?
|       364212 [ shot@ho .p ] heck
+ 363838 [reinh@re nh ] The == operator checks whether two objects are equal (after coercing
| + 363840 [reinh@re nh ] def hash
| + 363842 [robert.dober] I must have made a stupid mistake in my example code, however, this is
|   + 363848 [andersonlfl@] The first solution sent by Marcin Wolski works for normal ruby classes,
|   + 363849 [reinh@re nh ] "Be warned"? "Do not use Array#&"? Enough of this baseless FUD.
|   + 363852 [me@ry nb gg ] Wow. Sorry, I am just stunned by this, so no sugar coating for you
|   | 363877 [robert.dober] Did I say you should not use Array#&??? I do not think so. I said, do
|   | 363893 [me@ry nb gg ] Posted via http://www.ruby-forum.com/.
|   + 363853 [wilsonb@gm i] Implementing this behavior with your own object types is the whole
|     363878 [robert.dober] Really? What do we want to do? We want Array#& work with a tailor made
|     363899 [reinh@re nh ] I think that this is now well outside the scope of the original topic,
|     364114 [wilsonb@gm i] Let me be clear, People of the Future: implement eql?, ===, and hash
|     364115 [robert.dober] Even if
|     364122 [reinh@re nh ] You have been presented with one in this very thread. The OP wants
|     + 364128 [shortcutter@] See also
|     | 364131 [robert.dober] You define #eql? and #hash for your convenience. So good, so bad. My
|     | 364210 [shortcutter@] The advice to implement #eql? and #hash really only makes sense if
|     | 364217 [robert.dober] ass.html
|     | + 364220 [vikkous@gm i] Array#& uses eql? instead of == because internally, it works something
|     | | 364222 [robert.dober] I see, thanx :)
|     | + 364240 [shortcutter@] I don't think we disagree, nor do I argue with you.  I just posted blog
|     |   364242 [robert.dober] s.
|     |   364255 [shortcutter@] No problem.  I think I fueled it by not including a comment in the
|     + 364129 [robert.dober] I guess you really do not know what I was talking about? Or do you
|       364135 [markizko@gm ] That's not true, I think.
|       364167 [robert.dober] Judge for yourself
|       364168 [reinh@re nh ] This breaks Hash? Quite the opposite!
+ 364209 [djberg96@gm ] include Comparable ?