363578-367114

363409-365032 subjects 363758-368060

^ 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 vertical] 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 andersgr] 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 vertical] 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 bleythin] 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 gma] 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 tsg.ne.] As Yugui announced in [ruby-talk:363558], we released Ruby-1.9.2-

^ Error with Gem Outdated command
363606 [johnts chart] (realized this should have been posted here, not the Rails group...)
367114 [johnts chart] Not one to bump topics, but I'm still getting this error.. and it's been

^ looping through array elements (noob question)
363614 [n8 adullmome] 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 adullmome] thanks, robert. i'll give that a shot. the camel case is a holdover from

^ ANN: Sequel 3.12.0 Released
363617 [code jeremye] 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 gmai] Man Fashion Week: Z Zegna Spring 2010 Collection

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

^ documentation mismatch ?
363631 [orlenko.stas] I'm reading documentation on
+ 363632 [data quantum] I get the results that the documentation shows.  I am using ruby
+ 363636 [colinb2r goo] 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 gmai] 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 gmai] 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] =C2=A0=C2=A0 =C2=A0Editing /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 corte] 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 gmai] Module#module_function is probably the best/shortest way to share the
  | 363681 [unbewusst.se] class HFSFile < File
  | 363697 [vikkous gmai] I was really responding to Josh, regarding having a method be both an
  + 363682 [unbewusst.se] exactly what i wanted.

^ PRE DETERMINE THE SIZE OF A STRING
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 gma] But you likely do not need that ;)

^ Simple hack to get $500 to your home.
363679 [uknews00 gma] 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 hotm] I am a student learning ruby and I am getting an error that I can't
+ 363692 [Rob AgileCon] Is there a server listening at port 8888?
+ 363695 [b.candler po] Like it says, 0.0.0.0 is not a valid destination IP address. Try
| 363702 [joelvanderwe] Dunno why, but ruby on linux seems to let me connect to 0.0.0.0. A
+ 363698 [vikkous gmai] Apparently, 0.0.0.0 is treated as a loopback address on the mac. Apple
| 363701 [joelvanderwe] IIUC 0.0.0.0 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 0.0.0.0. (It's not
| + 363736 [botpena gmai] that is ok.
| + 363743 [vikkous gmai] Huh. I find this surprising too.
+ 363704 [botpena gmai] 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 gmai] 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

^ Re: assert_raise question
363693 [r alum.mit.e] +1 also.
363727 [robert.dober] There is no way you are wrong, thus you are both right :P.
363795 [b.candler po] foo { ... }  is parsed as a method call with a block.

^ 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 rubyp] mytext.scan(/.{1,250}\b/m)
+ 363746 [colinb2r goo] Using as an example the text below (setting to one side my slight surprise

^ gsub with wildcard
363717 [ rv domos.be] charset="us-ascii"
+ 363719 [dhruva.sagar] This should do - string.gsub(/\d+/, '20')
| 363721 [dblack rubyp] 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 rubyp] You don't actually want a wildcard; you want a character class and a
  363722 [ rv domos.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 gmai] I was updating my tests to work for watir 1.6.5 and ruby 1.8.7 since I
363729 [tcblues gmai] I think I found the solution on
363730 [tcblues gmai] Posted via http://www.ruby-forum.com/.

^ problem with Net::SSH::Gateway
363726 [matt technor] 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: 1.8.7.72-3lenny1
+ 363742 [martin.gerde] One small addendum: I'm not actually interested in reading in something
+ 363747 [vikkous gmai] 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 gmai] you assumed that it has *only* sub-arrays

^ Root Module (code)
363737 [jzakiya gmai] Module 'Roots' provides two methods 'root' and 'roots'

^ Roots Module (code)
363740 [jzakiya gmai] 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

^ Re: find whole words in excel
363755 [saumya_negi ] With reference to http://rubyonwindows.blogspot.com/search/label/excel

^ 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 gma] Just wanting to add my thoughts about this (I made a thread about this a few
|   + 363896 [reinh reinh.] I agree that using eql? and hash for some methods is surprising. I
|   + 364116 [markizko gma] For me it doesn't work anyway.
|     364117 [markizko gma] Sorry, guys, didn't notice how I used eql instead of eql?
|     364123 [reinh reinh.] #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 gma] Well, it doesn't say much in core api :(
|     + 364190 [ shot hot.pl] 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 hot.pl] heck
+ 363838 [reinh reinh.] The == operator checks whether two objects are equal (after coercing
| + 363840 [reinh reinh.] 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 reinh.] "Be warned"? "Do not use Array#&"? Enough of this baseless FUD.
|   + 363852 [me ryanbigg.] 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 ryanbigg.] Posted via http://www.ruby-forum.com/.
|   + 363853 [wilsonb gmai] 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 reinh.] I think that this is now well outside the scope of the original topic,
|     364114 [wilsonb gmai] Let me be clear, People of the Future: implement eql?, ===, and hash
|     364115 [robert.dober] Even if
|     364122 [reinh reinh.] 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 gmai] 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 gma] That's not true, I think.
|       364167 [robert.dober] Judge for yourself
|       364168 [reinh reinh.] This breaks Hash? Quite the opposite!
+ 364209 [djberg96 gma] include Comparable ?
threads.html
top