381307-383487

381088-381877 subjects 381567-383274

^ [ANN] minitest 2.1.0 Released
381307 [ryand-ruby z] minitest version 2.1.0 has been released!

^ Re: How to config textmate to use ruby1.9
381323 [vbosch gmail] I think you need to modify the PATH variable inside the preferences =

^ Where can I find full documentation
381325 [fuksito gmai] Good morning everyone,
+ 381339 [shortcutter ] Mahlzeit!
+ 381350 [u.alberton g] You're simply looking at the wrong place - the "core" Ruby classes are

^ fill form when collection_select is changed
381332 [exedzy gmail] Hey there. :)

^ puts box.dup.enlarge(4, 5)  -- unexpected result
381342 [mail ssalews] I wonder why the statement "puts box.dup.enlarge(4, 5)" below gives
381344 [g.diemant gm] A method returns the last evaluated expression. In your case thats @y2 += 5
381346 [mail ssalews] Thanks!

^ Ruby for beginners (was: Re: Hello)
381355 [cmdjackryan ] page
+ 381363 [josh.cheek g] When I was first learning to program I got into Ruby (on Windows at that
+ 381365 [sophrinix gm] This is what TryRuby.org is suppose to be.
| + 381373 [cmdjackryan ] How are the lessons (well, the content, really, as opposed to the
| | 381388 [vmanis telus] OK, so here's another kick at the can.=20
| | + 381396 [stu rubyprog] For what it's worth I have been using interactive_editor gem in irb for a
| | | + 381410 [cmdjackryan ] CLI editors are great -- for advanced users.
| | | | 381458 [code apotheo] ther
| | | | 381600 [stu rubyprog] yup! glad my post caught someones eye =)
| | | + 381456 [code apotheo] er
| | + 381409 [cmdjackryan ] I for one would approve of this.
| | + 381417 [jakekaiden y] i definitely think this would be useful.  ruby is such a 'friendly'
| | + 381420 [josh.cheek g] I think it would be good. New to programming tutorials should be very
| | | 381430 [vmanis telus] already
| | | 381434 [cmdjackryan ] Good thing for open source and Creative Commons licensing.
| | | + 381487 [vmanis telus] part.
| | | | 381495 [code apotheo] That bothers me, too.  We should have an option that does not require
| | | | 381530 [cmdjackryan ] That would depend on how high valued platform independence is.
| | | | + 381535 [jdmaher jdma] To me, it's about Ruby, NOT the editor.
| | | | | 381537 [cmdjackryan ] Same here. However, someone who beings Ruby, let alone programming, is
| | | | + 381536 [ajmxt9 hotma] Posted via http://www.ruby-forum.com/.
| | | | + 381540 [code apotheo] I've deleted any context to which I didn't feel a need to respond; it
| | | |   381543 [cmdjackryan ] misunderstand what you wanted to say.
| | | |   381557 [code apotheo] More to the point, there are more users of Linux-based systems who are
| | | |   381560 [cmdjackryan ] Ah, I see. Well, in such a case a recipe to get up to speed with Ruby
| | | |   381569 [vmanis telus] I've been out of the loop for the last day or so, so I've bundled up my =
| | | |   381572 [cmdjackryan ] nk most of us put together the environments we each like, and this should p=
| | | |   + 381576 [vmanis telus] When I taught people introductory programming, I never covered any more =
| | | |   + 381579 [code apotheo] That's not really a big problem.  The One True Editor is clearly vi.
| | | + 381508 [headius head] I think a DevKit tutorial was posted with JRuby instructions. They
| | + 381662 [terryo.ia gm] by-lang.org, if there's sentiment that this would be a useful thing.
| + 381379 [jakekaiden y] i think that TryRuby is a great start, though i agree that making the
+ 381441 [jdmaher jdma] Ruby for beginners (was: Re: Hello)
  381445 [josh.cheek g] Can Notepad do syntax highlighting? I think their editor / IDE should be
  381460 [code apotheo] It used to be the case that the standard Ruby installer for MS Windows
  381490 [jakekaiden y] another vote for SciTE!  it helped get me motivated to start
  381496 [code apotheo] s/weary/wary/

^ NEW ACCOUNTS OPEN
381362 [magguru.appa] New forex accounts

^ [ANN] JRuby 1.6.1 released
381374 [tom.enebo gm] The JRuby community is pleased to announce the release of JRuby 1.6.1.

^ Building extensions into static libraries
381377 [alex blackke] I am delving into the wonder that is mkmf.rb.  I'm trying to tell
381380 [luislavena g] So you want to statically link against the Ruby library?
381437 [alex blackke] $ gem unpack mongrel
381470 [luislavena g] That that is why I asked what you're targeting/aiming at.
381507 [alex blackke] Ok, some more details: I'm trying to embed a ruby interpreter into a

^ hash of arrays
381384 [david.spragu] dict = Hash.new([])
+ 381387 [roger rogerb] See http://ruby-doc.org/core/classes/Hash.html#M000718.
| 381392 [roger rogerb] Sorry, I meant Hash.new{|hash,key| hash[key] =3D []}
+ 381391 [w3gat nwlaga] Define hash of hashes this way
+ 381394 [jakekaiden y] if you're just trying to group words by their length, i'm not sure why
+ 381395 [botpena gmai] there are many ways.
+ 381749 [w_a_x_man ya] words = IO.read( "data2" ).strip.split( /\s+/ )

^ [ANN] Ruby Cross Reference
381397 [whitequark w] I'm pleased to announce that Ruby Cross Reference has just been rolled
+ 381471 [botpena gmai] t.
+ 381500 [whitequark w] I've just added JRuby and Rubinius (HEAD for both). Have fun.
+ 381686 [echristopher] t.
  + 381687 [echristopher] ut.
  + 381688 [whitequark w] Thanks.
    381689 [whitequark w] .java, of course.

^ problem with swig & ruby
381398 [serialhex gm] ok, so i'm working on a project that requires me to use swig to write some
381448 [serialhex gm] no one has a good (or bad) answer to this?  :-/ crap!
+ 381515 [ralf.mueller] 37 min of waiting is not that long....get yourself a coffee as a pacifier
+ 381516 [ralf.mueller] BTW, there a SWIG mailing list: swig-user@lists.sourceforge.net

^ ssl httpclient savon httpi
381415 [mjdavies gla] If anyone can shed any light on what's going on here I'd be more than
+ 381418 [roland.schmi] try
+ 381419 [mjdavies gla] I've edited it now to use
+ 381421 [roland.schmi] sad to hear. BizTalk uses IIS in the soap adapter, so it is no easy
+ 381422 [mjdavies gla] Thanks Rolle
+ 381426 [roland.schmi] internally httpi uses httpclient for the request as you can see in the
+ 381428 [mjdavies gla] I've got it :-)

^ so, who's writing a dedicated ruby ide?
381423 [martindemell] The recent thread on newbie-friendliness and a "ruby in a box" IDE
+ 381424 [sebastian.ba] RubyMine from JetBrains
| 381438 [sophrinix gm] I will have in released in the next week or so the beginnings of Try Ruby
| + 381446 [josh.cheek g] Looking forward to it ^_^
| + 381447 [martindemell] exciting news :) what ui toolkit are you basing it on?
| + 381489 [vmanis telus] Ruby
|   381497 [code apotheo] Include interactive_editor with a default editor on the system and it
|   381501 [vmanis telus] tied
|   381502 [code apotheo] I think that, if it's set up automatically, it'll be easier for the
+ 381564 [eric.promisl] There's always Komodo, which has been supporting Ruby since 2004.
+ 381601 [rogerpack200] freeride, but probably not active

^ colliding method names
381425 [iainspeed gm] If I'm running irb and I run a method called `foo`, is there a way to =
381427 [josh.cheek g] You can use #method
381431 [iainspeed gm] Thanks, I'll have a play around with that.

^ =?windows-1256?B?x+Hh3tjJIMfhyu0gw8jfyiDH38vRIOPkIDEwIOPh?= =?windows-1256?B?x+3t5CDUztUg3e0g5t7KIObHzc8=?=
381440 [loveram2080 ] x+Hh3tjJIMfhyu0gw8jfyiDH38vRIOPkIDEwIOPhx+3t5CDUztUg3e0g5t7KIObHzc8KCmh0dHA6

^ Tk : non blocking Tk.mainloop
381444 [jujusl free.] I'm new in this forum (but I have been following it for months)
+ 381472 [botpena gmai] fwiw, it should not exit,  mine does not. i think nahi good help you further.
+ 382134 [nagai ai.kyu] I'm very sorry for my late response.
+ 382340 [jujusl free.] Thank you for this answer Hidetoshi.
| 382376 [nagai ai.kyu] First of all, it's a good news that your script worked properly.
+ 382396 [jujusl free.] I understand your need and as I asked for help, I have to help you back
| 382413 [nagai ai.kyu] I'm sorry that I bothered you about it, and thank you for your help.
| 382536 [nagai ai.kyu] Could you try the followiing patch?
+ 382555 [jujusl free.] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
| 382565 [nagai ai.kyu] Thank you for your reply.
| + 382584 [kmandpjlynch] Good morning,
| | 382636 [nagai ai.kyu] I'm not a Mac user. So, I don't have a proper answer.
| + 382718 [jujusl free.] Found some time to come back to my Tk problem.
|   382765 [nagai ai.kyu] I'm very sorry for bothering you.
+ 382657 [akshay.dce g] fyi
+ 382690 [akshay.dce g] compare it
+ 383336 [jujusl free.] First, sorry for the long delay but I was very busy and could not find =
  383487 [nagai ai.kyu] I'm glad to hear that. :-)

^ HTTP request, with headers, post data and SSL :(
381454 [stuffe.dk gm] I am new to ruby and have been struggeling with this http api thing. I
+ 381473 [oscar.americ] You can try Mechanize, it works for me like a charm.
+ 381477 [bbxx789_05ss] 1) In that code get_string is undefined.
+ 381519 [stuffe.dk gm] @7stud, I copied the code out of a function and tried to simplify it for
  381550 [bbxx789_05ss] resp = http.post(url.path, data, headers)

^ Help on hashing multiple keys and values
381474 [adam_sateria] I'm trying to create a hash with multiple values per key from a tab
+ 381475 [no spam.plea] (name_hash[key] ||= []) << value
+ 381479 [jakekaiden y] i do what clifford does, but since i'm thick-headed i do it a bit more
+ 381482 [adam_sateria] There must be something I'm missing, when I run
| 381485 [no spam.plea] You shouldn't print the data until you finish processing the file.
| 381492 [jakekaiden y] haha, i scabbed this together from something else! there's a lot of
+ 381488 [jakekaiden y] hey adam -
+ 381493 [adam_sateria] Jake and Clifford,
+ 381748 [w_a_x_man ya] name_hash = {}

^ removing nodes from Nokogiri::XML::NodeSet
381480 [flethuseo gm] I am having trouble removing a node from a Nokogiri::XML::NodeSet, not
+ 381494 [mike.dalessi] Greetings,
| 381528 [flethuseo gm] It doesn't remove it though. I also don't want specifically to remove
| 381531 [shortcutter ] irb(main):006:0> doc =
+ 381546 [bbxx789_05ss] str = "hello \n world"

^ Noob question re:returning nil
381499 [nmcdorman gm] going through a tutorial book and trying to create some programs. The
+ 381503 [vmanis telus] just
+ 381504 [code apotheo] Evaluating `puts` returns `nil`.  If you want to have a `puts` in the
+ 381509 [nmcdorman gm] Noob question re:returning nil
  381513 [code apotheo] I'm glad we were able to help.

^ problems using ruby-ldap to connect with windows AD
381511 [cooker_bj ho] I am using ruby-ldap to connect with windows AD. but when I bind,it
381533 [cooker_bj ho] I have figured out the problem. MY windows AD is listening on 389, not
381553 [klauer gmail] Is 636 a standard for OpenLDAP?  I'm so used to AD that I didn't think that
381555 [cmdjackryan ] that

^ [ANN] Cashrb 1.2.0
381523 [semmons99 gm] maintainer to provide an alternative that is easier to use and doesn't come

^ Exclusive float range, Range#step result in counterintuitive result
381525 [yimutang gma] if
+ 381526 [yimutang gma] p (1...9.3).max # cannot exclude non Integer end value (TypeError)
+ 381527 [shortcutter ] Hmmm...  Float and Range generally don't mix very well.  Considering
+ 381544 [bbxx789_05ss] By definition, floats cannot be used in ranges.
| 381584 [matz ruby-la] By definition, floats cannot be used in ranges, when you want to
| 381598 [yimutang gma] But it seems that floats can be used in a range which can be iterated.
+ 381551 [zhangsu live] This looks like a bug to me.

^ Array#slice's boundary special case...why?
381534 [semmons99 gm] arr = %w(0 1 2 3 4)
381542 [adam apresco] This comes up periodically.

^ Re: Array#slice's boundary special case.why?
381541 [bbxx789_05ss] You're in luck, the particulars of that phenomenon were discussed last

^ Running Ruby script in emacs
381547 [sidney.reill] Hey ...
+ 381556 [ryand-ruby z] ruby-
| 381565 [sidney.reill] OK!
+ 381575 [invalid inva] Have you looked into ruby-compilation.el?  The version on emacswiki.org is
  381620 [sidney.reill] is
  381665 [invalid inva] There are a number of other good packages for Ruby in ELPA as well.  I think
  381697 [sidney.reill] think
  381719 [invalid inva] You might find the following will make your life easier.
  + 381729 [ryand-ruby z] in
  | 381737 [invalid inva] Yes, that's definitely better than my crude hack.
  + 381740 [sidney.reill] ruby-compilation.el) in
  + 381795 [sidney.reill] ruby-compilation.el) in
    381800 [invalid inva] It sounds like return is still bound to compile-goto-error.  Did you restart
    381863 [sidney.reill] start

^ [ANN] To Yield or Not to Yield: An Inferable Question
381548 [adgar carbon] charset=us-ascii
381772 [shortcutter ] I only get 404 for that link (even with ".html" appended).  Is this
381773 [adgar carbon] It is the correct link, we had some unscheduled downtime. My apologies. =
381776 [shortcutter ] Now I see it.  Thanks!  This looks interesting and I think this is
381778 [adgar carbon] Robert,

^ Take a look it this online interpreter
381549 [fs_tigre hot] I was looking for an online interpreter and I found this, I think its
+ 381563 [bbxx789_05ss] The online iterpreter at ideone.com uses ruby 1.9.2.
+ 381588 [fs_tigre hot] I didn't know something like this existed. Thats awesome because I can
  381589 [vmanis telus] I just the other day downloaded the Scripting Layer for Android, which =
  + 381592 [serialhex gm] i just checked out http://ideone.com/ and it's the only thing like this i've
  | 381654 [bbxx789_05ss] lol.  I never saw that.  And once you check syntax highlight, a toolbar
  + 381633 [b.candler po] Or you could just install Rubuto from the marketplace.
    381639 [code apotheo] Try the SL4A scripting environment for your Android device

^ Using underscors or camel case for variables and functions (def)
381552 [fs_tigre hot] I thought you couldn't use camel words in Ruby instead you should use
+ 381554 [cmdjackryan ] It's a style convention, not something Ruby's parser would enforce.
+ 381558 [fs_tigre hot] I probably misunderstood this and honestly I don't remember where I read
+ 381559 [code apotheo] *Should* is the operative word -- not *must*.
+ 381561 [bbxx789_05ss] class MyClass  #camel case for constants
+ 381586 [fs_tigre hot] Thank you all very much!

^ What do you do when you need to attach data to an object instance?
381562 [astounding g] What do you do when you see a need to be able to attach some data to
+ 381566 [kevin.mahler] You probably wouldn't want OpenStructModule even if it did exist because
| 381573 [astounding g] Nice.  Thank you!
| 381582 [astounding g] def extend_accessor(obj, name)
| + 381590 [bbxx789_05ss] module Mod
| + 381596 [kevin.mahler] Or more compactly,
|   + 381609 [astounding g] Thanks 7stud for the food for thought.  And thanks again, Kevin, for
|   | 381614 [shortcutter ] I'd still like to muse a bit about the wisdom of doing this.  The main
|   | 381661 [bbxx789_05ss] Robert K.,
|   | 381666 [shortcutter ] No.  I wasn't even aware of the fact. :-)
|   + 381676 [bbxx789_05ss] Hey, now.  obj.singleton_class is a class so how about using the synonym
|     381702 [kevin.mahler] A class is a module, but a module is not a class.
|     381707 [bbxx789_05ss] Yes, of course.
|     381708 [kevin.mahler] 7stud
|     381777 [adam apresco] I think the point is that classes and modules, while related in the way
+ 381578 [bbxx789_05ss] How about a decorator pattern?
+ 381583 [bbxx789_05ss] 1) Note that you don't need to use send() there -- but maybe that's your
threads.html
top