202356-204889 subjects 202732-345348

dnssd and avahi?
202505 [rasputnik@gm] Has anybody got the dnssd gem to build against avahi?

more newbie help with classes and methods please
202514 [simonharriso] I posted a question a week or so now which I got some great help with.
+ 202616 [danielholloc] My suggestion would be to add that behavior right when you are getting
+ 202622 [wrecklass1@g] First, as Daniel already said, why not put the information right in the
  + 202647 [simonharriso] Thanks for replies. Just to point out, this code is not meant for
  | 202653 [simonharriso] decided to have a go at using the case statement. Why won't this work?
  | + 202657 [dblack@wo bl] What's that for?
  | | 202658 [simonharriso] Thanks David. Great book by the way. Easier for a beginner than
  | | 202661 [simonharriso] I end with gets because I'm on Windows which usually shuts the window
  | | 202665 [simonharriso] case favourite_colour
  | | 202668 [dblack@wo bl] white === favourite_colour
  | + 202671 [m_goldberg@a] There are two forms of case block and you have sort of mixed them up.
  |   202673 [dblack@wo bl] That's a more thorough answer than mine, since I didn't think of the
  |   202675 [m_goldberg@a] I view case without a target as a fancy, more compact, and (IMHO)
  |   + 202676 [dblack@wo bl] I'm not sure about its being more compact, unless you've got multiple
  |   | + 202678 [botp@de mo t] # I'm not sure about its being more compact, unless you've got multiple
  |   | | 202679 [dblack@wo bl] ...
  |   | | 202681 [botp@de mo t] # Here's another interesting usage (with target, but sort of in the
  |   | | 202685 [simonharriso] Very helpful reply Morton. Understand case a lot more now. One thing.
  |   | | 202716 [m_goldberg@a] Glad to be of help.
  |   | | 202801 [logancapaldo] Well Kernel#gets is ARGF#gets. ARGF is (in general) for writing well-
  |   | | 202867 [simonharriso] Very confusing. Surely it would have been easier to keep getc as a
  |   | + 202715 [m_goldberg@a] I try (not always successfully) to avoid deeply nested constructs.
  |   + 202677 [botp@de mo t] # I view case without a target as a fancy, more compact, and (IMHO)
  + 202656 [dblack@wo bl] s/target/target_age/   Also, "until" is a nicer way to do while ! .

Embarrassing question -
202522 [crose1@ag re] Aren't people a little embarrassed that the search facility of these
+ 202525 [a2800276@gm ] Aren't people embarassed when they realize this isn't a forum but a
| 202531 [BreadWithSpa] And gatewayed into a usenet newsgroup.  Which Google gives one
+ 202526 [collinsj@se ] The person to contact is Andreas Schwarz - ruby-forum@andreas-s.net.

super's not so super today
202535 [transfire@gm] Can anyone help me get around this?
202538 [lukfugl@gm i] Looking at this, I don't think there's anything wrong with you're
202540 [transfire@gm] Ah! Of course, Thank you. Unfortuantely NOW I need class local methods!

irb and fxri
202536 [listrecv@gm ] Is there anyway to enable tab completion in fxri's irb?

Article: Ruby for the Java world
202543 [Jamal.Mazrui] Just passing along an article reference that was brought to my
202547 [pat.eyler@gm] If you're interested in Ruby and Jave, I'll risk a bit of self promotion
202549 [headius@he d] ...
202553 [tom@in oe he] Speaking of which, I bet they'd be interested in interviewing somebody
202567 [headius@he d] ...

Ruby SOAP Client Question
202548 [greg.kujawa@] I am attempting to write a small SOAP client script using Ruby 1.8.2
+ 202551 [christopher.] See
| 202554 [greg.kujawa@] Thanks for submitting this. What you have posted appears to deal with a
| 202556 [kenosis@gm i] Would SOAP::HTTPConfigLoader::set_basic_auth(...) be of any help with
+ 202603 [nakahiro@sa ] Unfortunately current soap4r (including development version) does not
  202610 [ksruby@gm il] ...

Re: [QUIZ][SOLUTION] Negative Sleep (#87)
202555 [jake.mcarthu] ...

IO.popen question...
202557 [barinek@gm i] I posted this on the Rails forum but is really just a ruby question...
202581 [collinsj@se ] It would help if you mentioned what isn't working for you. Are you
202628 [barinek@gm i] i need help with the logic and block...

local methods and local instance variables [was super's not so super today]
202564 [transfire@gm] Well, this leads me to ask again about these state of affairs for a
+ 202568 [adam.shelly@] You get the same error even if you don't override method_added first.
| 202570 [transfire@gm] I see. Okay, at least that makes sense. I agree though, I seem more
+ 202606 [sean.ohalpin] Is it a bug? You are undef'ing it after all. remove_method would seem
| 202614 [transfire@gm] Weel, yea sort of. B/c look at what happended to me. I defined my own
| 202625 [sean.ohalpin] Having thought about it a bit more, I'm inclined to agree. There's no
+ 202613 [sean.ohalpin] If we ever get local methods, this seems like a reasonable notation to me.

Calling DLL from Ruby
202569 [Chintakrindi] ...
202597 [sean.ohalpin] On 7/18/06, Chintakrindi Meghanath

Best way to kill a thread started from a TkButton push
202572 [jaytahaney@y] Looking for the best way to kill a thread started from
202767 [johnatl@ma .] I can't help with your problem exactly, but this sounds like it is to do
202953 [jtlist@pa me] Thanks, you got me thinking about the scope and it ended up being just

How to preserve $~ when extending Regexp#match
202576 [ruby-forum@b] Consider the following Regexp/MatchData extension, which pops a copy of
+ 202596 [drbrain@se m] I played around with this for MetaRuby and couldn't find a way to
+ 202600 [ mfp@ac .o g] hmm the only general way I'm aware of does use Binding.of_caller (and
  202711 [ruby-forum@b] Mauricio --
  + 202728 [pit@ca it in] Brendan, can you tell us why you're not allowed to use set_trace_func?
  + 202737 [dbatml@gm .d] Are C extension okay?

Jruby, JDBC
202578 [justin.crawf] Howdy-
202586 [enebo@ac .o ] Mixing -classpath and -jar is not allowed in Java.  I recommend

yaml and Bignum
202590 [pere.noel@la] mappings_file_mtime: !ruby/object:Bignum 1151152397
202642 [yvonthoraval] ...

Match doesn't match
202605 [vcivelek@ya ] arg1 = "(1)a"
+ 202607 [the.mindstor] arg2 should be escaped as () has a meaning in regexps.
| 202645 [benjohn@fy h] Possibly, Volkan Civelek, you simply wanted to see if the two string
+ 202608 [mike@st k. a] That's because parentheses are special in a pattern, and that's what
+ 202609 [m_goldberg@a] Try it with

how to use variable in a regular expression
202611 [junkone@ro e] For ex i want to check for pattern  variable in watir - Ruby and search
202624 [jp@je fp it ] use #{variable_name} inside the regexp

Integer encoding challenge
202617 [dbalmain.ml@] Hey all,
202623 [ysantoso-rub] def encode_integer(num)
202626 [dbalmain.ml@] Nice idea :P
202627 [ysantoso-rub] Same technique, but put them in different namespace.
202639 [dbalmain.ml@] I need to be able to compare positive integers with negative so I

Rails: option_groups_from_collection_for_select sort order
202619 [swartz@in ox] I am a newbie to Rails (and Ruby) so go easy on me.
+ 202636 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
+ 349421 [tyronatsecon] Try

Ruby as an Entry-level language
202629 [satish.talim] ...
+ 202670 [satish.talim] ...
+ 202694 [schapht@gm i] There was a discussion on this list no long ago.  A search on

Finding methods of instance itself
202631 [listrecv@gm ] I use IRB to explore.  Very often I type a.methods.sort, to see what an
+ 202635 [transfire@gm] object.methods(false)
| + 202637 [listrecv@gm ] Thanks!
| + 202644 [pit@ca it in] Me too.
+ 202648 [pbattley@gm ] This isn't exactly the answer to your question, but I've defined a

Objects within objects... ??
202640 [metrix1978@g] I have a thought in my head, but I don't know how to implement it, or
202641 [wesley@yo ed] For your example, is the following what you were thinking about?
202695 [metrix1978@g] Yes it is! but I would like to be able to add and delete objects on the
+ 202702 [bitdoger2@ya] ...brandon...while i'm still a newbie at this....a perfect example is
+ 202704 [wesley@yo ed] I think that the easiest way to achieve something like this is to use a
  202840 [metrix1978@g] Thank you for taking the time to answer my question! that REALLY helped
  202949 [wesley@yo ed] My pleasure.

Pagination question
202649 [lists@na bl ] I can't seem to find the information I need about pagination.
202650 [pbattley@gm ] Presumably you're talking about Ruby on Rails. Have you seen this?
202651 [lists@na bl ] Ah, thanks so much. That I am, sorry about that.

Rails: Saving an object into DB
202654 [eduardo.yane] I asked this in the Rails mailing list but nobody answered me, I think it is a newbie (I am a newbie) error but
+ 202660 [foamdino@gm ] try @player.save
| + 202662 [eduardo.yane] def Player.create_player(team_id)
| + 202663 [sitharus@si ] Why do you think that would work? @player isn't defined.
|   + 202672 [eduardo.yane] After some changes, same error. I don't understand anything, I have a model class Player, a table players and the only
|   | + 202780 [sitharus@si ] Think of ActiveRecord as magic. It constructs the class and all
|   | + 202839 [foamdino@gm ] just try
|   + 202682 [pertl@gm .o ] class Team < ActiveRecord::Base
+ 202803 [interfecus@g] This won't work. Try "self.team_id = team_id" if you want to do this.
+ 202897 [eduardo.yane] Thanks to all for the answers, finally I've got it working fine

Ruby + oracle last row
202667 [stardust99_f] I am new to ruby so any help will be greatly appreciated.
+ 202713 [chris.hulan@] 1) first execute a count(*) cursor to get the number of records,
+ 202857 [dan-ml@da 42] nextrow = cursor.fetch
  202883 [stardust99_f] a count method. Thanks Daniel for your answer, i will try to implement

[RubyAEOSA] RuntimeError: (-1753) OSACompileExecute
202674 [pere.noel@la] method compile_execute
+ 202697 [yvonthoraval] ...
+ 202794 [logancapaldo] Use system("osascript #{file}") instead?
  202865 [yvonthoraval] ...

Net/HTTP is flaky?
202683 [ihatespam@ro] http = Net::HTTP.new("somesite.com")
202693 [logancapaldo] On Jul 19, 2006, at 7:50 AM, Just Another Victim of the Ambient
202778 [ihatespam@ro] Ah, thanks...
202792 [drbrain@se m] On Jul 19, 2006, at 1:20 PM, Just Another Victim of the Ambient
202800 [ihatespam@ro] Okay, so the site doesn't exist where I think it does and I get
+ 202808 [joevandyk@gm] On 7/19/06, Just Another Victim of the Ambient Morality
| 202816 [adam.shelly@] Ok, so Net:HTTP doesn't fail, it just returns pretty low-level
| 202859 [logancapaldo] ...
+ 202811 [drbrain@se m] On Jul 19, 2006, at 2:55 PM, Just Another Victim of the Ambient
  202831 [ihatespam@ro] You know, it would be easier to follow the redirect if I knew that it
  + 202835 [drbrain@se m] On Jul 19, 2006, at 4:55 PM, Just Another Victim of the Ambient
  | 202974 [collinsj@se ] <big snip>
  + 202987 [joevandyk@gm] On 7/19/06, Just Another Victim of the Ambient Morality

Time.parse has never visited Singapore?
202684 [hhausman@gm ] I suspect that Time.parse is just not understanding the "Malay
+ 202689 [pbattley@gm ] That's odd. I get
+ 202690 [robert.dober] ...
| 202692 [hhausman@gm ] I actually am here from the future.
| 202696 [robert.dober] ...
+ 202721 [shuying@gm i] So it's to do with the fact that you've got spaces in your timezone.
| 202844 [adam.shelly@] Not exactly - it's even more picky than that.  It looks like with
| + 202878 [hhausman@gm ] fwiw, I've swtiched to using Time.new.to_yaml and all my problems have
| + 202926 [ysantoso-rub] My local time is EDT (-4:00)
|   202929 [akr@fs j. rg] 1ALPHA means an ALPHA.  So, Z is a zone but 1Z is not.
+ 202790 [chneukirchen] Windows?

do loops and braces
202686 [aidy.rutter@] Is there anyway I can envelop this in braces and not have a loop 'end'?
202688 [m.fellinger@] just do it :)
202708 [nsmith5@um c] I find that slightly annoying as well. When I use brackets, text editors

Upgrade from Ruby 1.8.2 to 1.8.3 in Windows
202698 [tuka@yo n. e] Unfortunately search is not available - so I have the following
202699 [technel@gm i] Hey there.
202700 [technel@gm i] Sorry, one more thing. Ruby-forums actually is just a front-end for
202743 [tuka@yo n. e] Thanks for the heads up. That saved me another install.

Where to place local version of gem file for win32 install?
202701 [tuka@yo n. e] I have downloaded a version of mongrel gem files and I would like to
+ 202821 [collinsj@se ] Try running gem install mongrel in the directory where you saved the gem.
+ 202823 [the.mindstor] gem install <path_to_local_gem> should do it.

unsubscribe me
202703 [sujeetkr@gm ] ...
202705 [schapht@gm i] You'll have to unsubscribe yourself using the link above.  You can
202709 [benjohn@fy h] Hey, that's handy. I imagine that most mail reader will, as mine has,

[ANN] Mocha - new stubbing and mocking library released
202706 [jamesmead44@] Mocha is a Ruby mocking library with a syntax like that of JMock and

Newbie question
202710 [ricardo.oroz] text editor.  I need to write a class that parses a file but I don't
202744 [schapht@gm i] If you write your test as a unit test (Test::Unit::TestCase) you can

[ANN] Mongoose 0.1.0
202717 [jcribbs@ne p] Mongoose is a database management system written in Ruby.  It has an
+ 202719 [ezmobius@gm ] Jamey-
| 202838 [jcribbs@ne p] Thank *you* for ez_where!  I have to admit that, even though I looked at
+ 202727 [james@gr yp ] This really interesting stuff Jamey.  Thanks for sharing!
+ 202738 [blaumag@gm i] Great job!

FastCGI, shebang line options, and library path question
202718 [cgansen@gm i] ...
202724 [aredridel@nb] $:.unshift("/path/to/library")

Ideas needed & help needed!
202720 [gwazy@zi g. ] Ok im attempting to make a ruby fan/help/disscussion website.
202768 [jmg3000@gm i] What are your goals for the site? What do you want it to be like when
202776 [gwazy@zi g. ] I picked a name - rFusion.us .

[ANN] sandbox 0.0.11 -- taking the i out of eval
202723 [ruby-talk@wh] Oh rapture!  Oh, delicious zesty snacks!  Oh, steamed uncles in a cabbage
+ 202725 [Daniel.Berge] Very cool.  By any chance have you ever looked at Perl's Safe.pm?  I'm
| 202753 [ruby-talk@wh] I'm not saavy enough with Perl's opcodes and its scope rules to say.  It looks
+ 202740 [jgbailey@gm ] ...
| 202756 [ruby-talk@wh] I'll have binaries for Hpricot and Sandbox both out in August.  They still lack
| 202804 [ mfp@ac .o g] Could you have a look at http://eigenclass.org/misc/hpricot-0.3.0-mswin32.gem ?
| 202820 [ruby-talk@wh] Oh blam!  That was really unexpected, thankyou, how sweet of you, Mauricio!
| 202847 [logancapaldo] This is completely off topic, but I just figured out who _why reminds
| 202909 [ruby@an hr p] }
+ 202757 [matthew.moss] This is pretty freaking cool.
+ 202864 [matz@ru y- a] I'd like to have it in the standard distribution once it become
  202936 [ruby-talk@wh] To be stable, I might need to enhance Thread.  For now is there a way to prevent
  202940 [joshua@re er] I don't want to diss your work, since it is obviously a significant
  + 202941 [ mfp@ac .o g] This is exactly what was done in Sydney.  I know know of any plan to bring
  | 202943 [ mfp@ac .o g] After a quick glance at the code, it seems to be using a global VM lock
  + 202954 [ruby-talk@wh] You are welcome to diss it, I would encourage it and I hope to (fingers crossed)

Beyond threads? Better concurrency methods?
202731 [anmus@an us ] The recent IEEE Computer society magazine 'Computer' May 2006 has a
+ 202852 [matz@ru y- a] Interesting.  But I don't have IEEE Computer magazine at hand.  Could
| + 202854 [znmeb@ce ma ] It's on line ... try the IEEE "Computer" web site. I saw a link go by on
| | 202856 [dan-ml@da 42] It sounds really interesting and I'd love to read it, but there's no way I'm
| | 202860 [znmeb@ce ma ] Ah ... maybe it was free only when first published. :(
| + 202868 [pit@ca it in] Matz, you can find it online from
| | 202871 [matz@ru y- a] Thank you, unfortunately I have to buy the article for $19.00, which
| | + 202873 [srinivas.j@s] Could you try this URL --
| | | 202874 [matz@ru y- a] Good, good.  Thank you.  I will examine the article later.
| | + 202875 [pit@ca it in] Wierd. I didn't have to pay for it. I've seen that Srinivas has already
| |   202888 [dan-ml@da 42] Yeah it's really weird. If you go to the main page, the article is there
| + 203139 [anmus@an us ] Coordination models and languages
+ 202853 [znmeb@ce ma ] I read the article and somewhat vaguely remember what the author
  + 202862 [rubyfan@gm i] I've got an SMP kernel.
  + 202879 [Alex.Dalitz@] I spent some great years programming the Transputer in OCCAM commercially.
  | + 202887 [phelan@tt ec] Perhapps have a look at Fortress from Sun Micro
  | + 202918 [znmeb@ce ma ] And I spent four terrible years at a company called Floating Point
  |   202950 [rmeenaks@ol ] You should take a look at Occam-PI
  |   + 202956 [bobgus@rc .c] I'm glad you mentioned Occam. I was going to suggest a look at the link;
  |   + 203034 [znmeb@ce ma ] Yes, I should take a look at that. Although ... CSP (Occam/Hoare) and
  + 202942 [martin@sn wp] Well, the Scala language is hosted on the JVM, so has as its
  | + 202972 [rm_rails@ch ] A couple other notable projects built with Erlang are
  | | 202982 [igouy@ya oo ] -snip-
  | + 203010 [csaba@Ma lT ] I read somewhere about Erlang that the next release of the VM will
  |   + 203020 [igouy@ya oo ] -snip-
  |   + 203115 [csaba@ma l- ] * As I heard, you are not prohibited to play dirty tricks with the
  + 203155 [dido.sevilla] There's the Limbo programming language, invented by Rob Pike, Phil
    203159 [ara.t.howard] fortytwo :~ > cat a.rb
    203227 [csaba@ma l- ] AFAICS slave.rb's operation is based on fork(2).
    203250 [ara.t.howard] true all.  nevetheless it's an alternative to threads.