380157-380543 subjects 380581-381895

^ Do I need to upgrade to the latest version of Ruby
380361 [fs_tigre hot] I have been using the Ruby version that came with Mac OSX  (1.8.?) and
+ 380363 [ian.asaff gm] I think using rvm is the best way to experiment with various versions of ru=
+ 380366 [fs_tigre hot] Thank you for your reply
+ 380367 [shortcutter ] Yes.
| + 380374 [chris.hulan ] open a terminal (found in utilities), type 'which ruby' at the
| + 380441 [josh.cheek g] You might like to get an account at ruby-versions.net, which will give you
+ 380377 [fs_tigre hot] Thank you all for your help!
+ 380392 [code apotheo] I'd say it makes a lot of sense to have Ruby 1.9.x installed locally so
| 380395 [stu rubyprog] use rvm and leave the system ruby alone. rvm is essentially a sandbox
+ 380462 [fs_tigre hot] Thank you all very much!

^ Re: logging 1.5.0
380362 [jon.forums g] Why might one prefer it over log4r?
380378 [tim.pease gm] Logging was created when log4r was abandoned. I tried contacting the =
380390 [jon.forums g] Smoke test with https://gist.github.com/887180 looks good...installing
380397 [klauer gmail] Off-topic, but Ansicon is awesome. :)  It has made my Windows-Ruby life

^ NArray install fail with DevKit on Win
380364 [chris.lervag] I just attempted to install NArray on Ruby 1.9.2 on Win XP with DevKit
380372 [jon.forums g] ruby 1.9.2p180 (2011-02-18 revision 30907) [i386-mingw32]
380540 [chris.lervag] Jon,

^ Dynamic classes
380368 [arjesins gma] So I am working on some metaprograming and have some questions about
+ 380379 [arjesins gma] So I figured it out on my own, but still need some feedback.
+ 380380 [vbosch gmail] ruby-1.9.2-p180 > a =3D "Monkey"
| 380415 [bbxx789_05ss] Because you have to assign the newly created class to a
| 380447 [vbosch gmail] I understand how it works at the moment. Still if you are doing =
| 380455 [shortcutter ] The definition is a definition, the _result of executing it_ is an
| 380457 [vbosch gmail] instance of class Class.
| + 380479 [echristopher] g an instance of any other object e.g. a Car and the car has a name and it =
| | 380482 [vbosch gmail] making an instance of any other object e.g. a Car and the car has a name =
| | 380681 [jgabrielygal] But it allows some very nice things, like having ways of creating
| + 380481 [shortcutter ] OK, now I get your point.  Thanks!  I think Matz just decides that doing
+ 380381 [shortcutter ] var_class = Class.new; p var_class.new.class'
+ 380414 [bbxx789_05ss] Are you sure about that?  'variable' is a class object--not what you

^ mkmf and other core classes and Logger
380383 [iainspeed gm] While nosing around the code to the mkmf library due to another problem =

^ Global Logger
380384 [vbosch gmail] I want to have a global unique Logger object.

^ problem running after upgrade
380387 [russ.amer ne] I have search for the issue I am having and found similar issues and

^ BioRuby & Google Summer of Code 2011
380388 [ilpuccio.feb] Dear All,

^ Mysql2::Error: Can't create database
380391 [rajesh.13kit] database yml------
+ 380396 [chris chrisk] Do you really have no password on the root account for your MySQL install?
+ 380402 [cmdjackryan ] MySQL can't create the database.

^ Gems and Ruby1.9 issues
380399 [p.atmatzidis] I setup ruby1.9 on a FreeBSD server's home directory successfully. Then

^ How to "find" new lines
380401 [damir haakon] I am new to ruby, and was trying to make a small code which would check
+ 380403 [chris chrisk] I assume that txtArray is a String in spite of the name.  If so, then your
+ 380404 [damir haakon] Thanks, that worked.
| 380412 [code apotheo] if string.match("\n")
+ 380413 [bbxx789_05ss] strings = ["hello\n", "\n"]
+ 380427 [bbxx789_05ss] And if you want to replace all the newlines in some text, you can use
| 380433 [chris chrisk] 7stud is right.  I missed the important word "only" in your original email.
| 380499 [b.candler po] Wrong - that doesn't match only strings containing just a newline.
+ 380503 [shortcutter ] irb(main):005:0> s="foo\n"
| 380502 [shortcutter ] For the "only newline" check you could do
| 380510 [fxn hashref.] if str == "\n"
+ 380527 [stu rubyprog] don't know if this will help you but ruby 1.9 has the each_line method.

^ [ANN] stickler 2.1.0 released
380411 [jeremy hineg] stickler version 2.1.0

^ Github resume
380419 [regis.aubare] Useful ?...

^ Github resume
380420 [regis.aubare] <a

^ [Fwd: [Ruby 1.9 - Bug #4530][Open] trunk "make check" gives "cannot load such file -- zlib" and "cannot load such file -- openssl"]
380421 [at1197 tomaz] load such file -- zlib" and "cannot load such file -- openssl"
380460 [at1197 tomaz] I tried to update this issue in Redmine but got "Internal error -An error

^ gem list --remote --details gives "ERROR:  While executing gem ... (NoMethodError)"
380424 [markus fisch] when trying
380423 [markus fisch] I probably should have added the version of gem ...
380471 [markus fisch] I figure the problem
380472 [klauer gmail] I guess we should bring this conversation back around to the heart of the
380473 [markus fisch] indeed .. I didn't realize this, seriously. Whenever I used a ruby
380474 [klauer gmail] Apologies for sounding snarky.  I didn't intend to.  Don't forget that gem

^ Textmate Bundles for Ruby
380425 [fs_tigre hot] Any good Textmate bundles for Ruby?
+ 380426 [bbxx789_05ss] vim
+ 380450 [matt tidbits] It's hard to believe, but I use the Ruby bundle. I know, I'm a wild and
+ 380489 [fs_tigre hot] Thank you for your replies!

^ critique please
380429 [choppen5 yah] Folks, the first ruby I've written that I actually needed (I shortened
+ 380431 [ryand-ruby z] your code looks fine.
+ 380432 [stu rubyprog] If you want to save yourself a step you can use the %w{ }
| 380434 [chris chrisk] Also the split statements you've used will cause the spaces between the
+ 380439 [shortcutter ] require 'set'
+ 380461 [choppen5 yah] Awesome, thanks for the tips.  Actually the white space was I accidently

^ Clearer errors in 1.9's minitest
380430 [spiralofhope] I've been getting back into Ruby, and one of the major changes I've
380458 [ryand-ruby z] You don't actually write your code that way, do you?
380463 [spiralofhope] I'm assuming you're commenting on my general style.  Moved to another

^ Call for Papers: Conference on Domain-Specific Languages (DSL 2011)
380435 [emilie.balla] =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=

^ trying to require nokogiri
380451 [flethuseo gm] I have installed nokogiri for parsing
380453 [hassan.schro] require 'rubygems'
380454 [flethuseo gm] Hmm. Thanks that was easy.. I have never had to do that before

^ Problem with json and yajl-ruby requiring root privileges
380452 [atma convale] I'm trying to run a script on a remote FreeBSD server. I have user =

^ [ANN] net-ldap 0.2.2 Released
380459 [halostatue g] net-ldap version 0.2.2 has been released!

^ Scripting style (was: Clearer errors in 1.9's minitest)
380464 [spiralofhope] More or less.  I'm assuming you're commenting on my general style.
+ 380465 [klauer gmail] That's fine, but then what is the point of this post?  Are you asking for
| 380522 [spiralofhope] It's just to split off a reply to Ryan from an earlier thread.
+ 380466 [rett classic] *Spiral,*

^ ruby shoes problems
380469 [lars_werkman] he iam stuck with ruby shoes
+ 380508 [ashbbb gmail] Thank you for the post about Shoes! :)
+ 380673 [lars_werkman] heey many thanks for your help i will check it as soon as i got home,
+ 380687 [lars_werkman] heey your great it works!!!!
  380752 [ashbbb gmail] If you want to change the text within an editbox every time you click

^ Problems with autotest
380470 [b1368810 lhs] I have Ubuntu 10.10, RVM installed on it, -v 1.5.2 and ruby 1.9.2, gem
380480 [ryand-ruby z] /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/cu=

^ Execute script using RVM
380475 [atma convale] I have a script which I need it to run on a FreeBSD remote server. I =

^ Validation of batch inserts in mongo
380476 [xperts gmail] Performing a batch insert like

^ A greenhand rubyist program -- ask for comments
380477 [wikikie gmai] Dear all,
380521 [spiralofhope] If you're using .shuffle! on the array, then why not change the second

^ Creating a Reach Program
380483 [cherylminor8] The reach method is like the standard each method, except that it
380496 [shortcutter ] Obviously you are on 1.8.*.  Even then I'd consider it a bad idea to

^ Even more 1.9 encoding issues (was: Re: SQLite3/Sinatra not returning results)
380484 [markus fisch] I was just affected by that, Brian, rhanks for analyzing this problem in
380487 [brabuhr gmai] ?"
+ 380488 [brabuhr gmai] Oops, that's unpack('M'), Rack is using unpack('m').
+ 380505 [markus fisch] Thanks, that very informative! Guess proper encoding handling just comes

^ Apache User/Pass - 401 Authorization Required
380490 [kleber anton] I created a ruby script to acess my website and check it's pages (and

^ AutoItX3.Control--Controlsend("enter") doesn't work sometimes\
380491 [jeff_yq yaho] I was trying to simulate keyboard event that press "Enter" everytime

^ [ANN] amalgalite 1.1.1 Released
380492 [jeremy hineg] amalgalite version 1.1.1 has been released.
+ 380493 [jos catnook.] Thanks, Jeremy!
| + 380494 [jeremy hineg] Glad to help out.  I put in an example of how to use SQLite's full text search
| + 380495 [jeremy hineg] And thank you for your patch!
+ 380676 [jgabrielygal] ub issue #10]

^ [ANN] Rumai 4.1.0
380497 [sunaku gmail] Rumai
380538 [sunaku gmail] A few hours ago, I released version 4.1.1 which fixes bugs

^ win32ole outlook run macro
380500 [u.gotzes goo] with ruby and win32ole it is possible to call a user-defined macro in
380552 [david.mullet] If your Outlook macro is in the ThisOutlookSession module, then try
380553 [klauer gmail] Following along these lines, is there any reference for the OLE API for
+ 380557 [cmdjackryan ] Try http://support.microsoft.com/kb/q222101/
+ 380611 [david.mullet] You'll also find many articles on win32ole automation (Excel, Word,

^ Re: Workaround for YAML bug with complex map keys?
380501 [wever axini.] *bump*

^ [ANN] Slop 1.3.0
380504 [lee jarvis.c] Slop

^ defunct process
380507 [a3358940 jnx] I am dettaching process like below in my code however I am still getting
380509 [shortcutter ] I don't think there is a fixed guarantee how fast the reaping occurs.

^ with block in ruby
380511 [tcblues gmai] with thisobject do
+ 380512 [shortcutter ] Depends on what you want to do, probably use #instance_eval e.g
| 380517 [fxn hashref.] Also available in 1.8.7 :).
+ 380513 [mentionuse g] You could use
+ 380514 [hyagni gmail] Do you mean something like this?
+ 380515 [fxn hashref.] def with(obj, &block)
+ 380516 [botpena gmai] try #instance_eval

^ Re: AutoItX3.Control--Controlsend("enter") doesn't work sometimes
380518 [rogerpack200] maybe timing issue?

^ A two-minute Ruby flavoured survey to help shape a new service.
380520 [micpringle g] Please take a few seconds to fill out the following survey ...
+ 380528 [code apotheo] I take it, from the questions, that you're considering an iPhone app but
| + 380531 [stu rubyprog] well this is a forum so why not have the questions entered here since
| | + 380541 [micpringle g] Hey Stu,
| | | 380542 [shortcutter ] Free text is not the only alternative.  For example, the last one
| | | 380548 [micpringle g] I'm not sure I totally agree. Choosing your "it depends" option as an
| | | 380554 [shortcutter ] Publication.
| | + 380556 [code apotheo] Uhh . . . they aren't *my* questions.  I just replied to "Mic", who
| |   380559 [stu rubyprog] Sorry about that. I just realized I miss quoted. =3D)
| + 380539 [micpringle g] Aside from Ruby, the only other language I'm fluent in is Objective-C,
|   380555 [code apotheo] That's a fair answer.  Thanks for responding.
+ 380537 [justincollin] For the record, I only really consider "free" to be a reasonable price ;)

^ Re: Please install a newer version of Ruby, like using
380523 [shilpigca gm] Luis
380525 [shilpigca gm] The post at http://help.rubygems.org/discussions/problems/111-problem-with-ruby-gems on Aug 28th seemed to help.

^ Logger for class method from an included module
380524 [iainspeed gm] I want to log what's happening when a class method is called, using a =
380530 [tim.pease gm] Logger instance. The code resembles this:=20
380699 [iainspeed gm] a global variable might be useful?

^ NoMethodError: undefined method `traverse' for nil:NilClass
380526 [mrbillhaxor ] I'm using nokogiri to extract content from web pages and every now and
+ 380533 [bbxx789_05ss] def my_method(arr)
+ 380591 [gerard.cahil] You're invoking a method on a nil object causing a runtime error
+ 380592 [gerard.cahil] You're invoking a method on a nil object causing a runtime error (i.e the n=
+ 380613 [mrbillhaxor ] Thank you both very much. This helps immensely.

^ [ANN] pasteboard 1.0 Released
380532 [drbrain segm] pasteboard version 1.0 has been released!

^ HttpClienbt SSL Errors - OS Specific (RHEL 4 versus CentOS 5.4)
380535 [bodarotech g] Red Hat Enterprise Linux ES release 4 (Nahant Update 4) OR Cent OS 5.4
380546 [b.candler po] This means it can't find a root certificate with which to verify the

^ YARV bytecode switch loop
380536 [cartercheng ] I am somewhat new at this and a bit of a neophyte. I am wondering
380544 [shortcutter ] You should be able to find it from main.c when looking at the source.
+ 380545 [matz ruby-la] You can check vm_exec.c then vm.inc or insns.def.
| 380602 [cartercheng ] Thanks Matz.
+ 380609 [cartercheng ] Thanks Robert.

^ Updata to gnu radio version 3.3
380549 [chawjk gmail] I m currently using GNU radio 3.2...
380550 [jeremy bopp.] This list is for discussing the Ruby programming language.  Did you
380551 [chawjk gmail] Ok...thx for ur info...

^ Why can a floating point number be used as an array index?
380558 [s450r1 gmail] Why can a floating point number be used as an array index?  Anybody
+ 380561 [sathish.sale] arr = [1,2,3,4....]
| 380588 [shortcutter ] No, it's using #to_int
+ 380562 [code apotheo] I don't know about why, exactly, or about use cases (though I suppose it
| 380565 [me kmwhite.n] It may do integer truncation, but we need to think of what an Array
| + 380566 [fxn hashref.] Well, alternatively you could get an error.
| | 380570 [josh.cheek g] # almost one
| | 380572 [code apotheo] Okay . . .
| + 380589 [shortcutter ] Yes, of course.  That's why Array#[] uses #to_int to determine whether
+ 380563 [sduncan weta] How about statistical bucketing. Imagine your indexes 1, 2, and 3 are Gb
  380564 [adgar carbon] Keep in mind that arrays use the implicit integer conversion protocol, =

^ NLP/WordNet in Ruby
380560 [sathish.sale] Is there any ruby gem/lib for parsing english sentence into individual
+ 380569 [brabuhr gmai] *** REMOTE GEMS ***
+ 380601 [sathish.sale] thx dude.
  380680 [vbosch gmail] charset=iso-8859-1

^ Is there a better way of running this dynamically generated dependency?
380567 [ssscripting ] I asked this in stackoverflow too, but I didn't receive any answers, so

^ [ANN] Rails 3.0.6.rc1
380568 [aaron tender] ZOMG HAPPY TUESDAY (UTC-7)!!!  <3<3<3<3<3

^ [ANN] net-http-pipeline 1.0
380571 [drbrain segm] net-http-pipeline version 1.0 has been released!

^ Encoding issues when parsing HTML in 1.9
380573 [ctdev421 gma] in 1.9.
380574 [brabuhr gmai] What is the encoding of your input HTML file?
+ 380597 [ctdev421 gma] Opening one of the files in IRB and checking external_encoding.name
| + 380599 [shortcutter ] That was not the question.  He wanted to know the encoding of the
| + 380603 [brabuhr gmai] That doesn't detect the true file encoding (indeed, the file is either
+ 380600 [ctdev421 gma] s.encode("UTF-8", :invalid => :replace, :undef =>:replace, :replace
  380605 [brabuhr gmai] Could that be an optimization in encode: since the string is already
  380608 [ctdev421 gma] Not sure, it isn't obvious (to me) looking at encode()'s source.
  380619 [brabuhr gmai] Okay, try specifying that encoding when you parse it with Nokogiri?
  + 380620 [ctdev421 gma] I resolved this problem by opening and rewriting the original files
  | 380624 [brabuhr gmai] Cool; thanks :-)
  + 380621 [ctdev421 gma] And you're right, I'll have to see if/how that translates to Nokogiri

^ Getting an Error with local variable
380575 [cherylminor8] class String
+ 380576 [hyagni gmail] x is not defined here.
+ 380577 [steve stevek] if(x.respond_to?(:each))
+ 380578 [cherylminor8] multiple values for the block paramater(0 for 1)
  380579 [hyagni gmail] You cannot set an argument for x.reach.
  380596 [shortcutter ] The approach is broken because the block is not carried through the
  380598 [hyagni gmail] Robert, thank you for the reply.
  380604 [shortcutter ] This is only needed in 1.8.* btw.
  380606 [hyagni gmail] No problem at all.

^ Zip a file int multiple files in Ruby?
380580 [thomas dalla] Dear community,