380220-387092 subjects 380607-386720

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@gm il] 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@ch is ] 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@ha ko ] I am new to ruby, and was trying to make a small code which would check
+ 380403 [chris@ch is ] I assume that txtArray is a String in spite of the name.  If so, then your
+ 380404 [damir@ha ko ] Thanks, that worked.
| 380412 [code@ap th o] 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@ch is ] 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@ha hr f.] if str == "\n"
+ 380527 [stu@ru yp og] 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@hi eg] 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@to az] load such file -- zlib" and "cannot load such file -- openssl"
380460 [at1197@to az] 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@fi ch] when trying
380423 [markus@fi ch] I probably should have added the version of gem ...
380471 [markus@fi ch] I figure the problem
380472 [klauer@gm il] I guess we should bring this conversation back around to the heart of the
380473 [markus@fi ch] indeed .. I didn't realize this, seriously. Whenever I used a ruby
380474 [klauer@gm il] Apologies for sounding snarky.  I didn't intend to.  Don't forget that gem

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

critique please
380429 [choppen5@ya ] Folks, the first ruby I've written that I actually needed (I shortened
+ 380431 [ryand-ruby@z] your code looks fine.
+ 380432 [stu@ru yp og] If you want to save yourself a step you can use the %w{ }
| 380434 [chris@ch is ] Also the split statements you've used will cause the spaces between the
+ 380439 [shortcutter@] require 'set'
+ 380461 [choppen5@ya ] 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@co va e] 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@gm il] 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@cl ss c] ...

ruby shoes problems
380469 [lars_werkman] he iam stuck with ruby shoes
+ 380508 [ashbbb@gm il] 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@gm il] If you want to change the text within an editbox every time you click

Problems with autotest
380470 [b1368810@lh ] 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@co va e] I have a script which I need it to run on a FreeBSD remote server. I =

Validation of batch inserts in mongo
380476 [xperts@gm il] Performing a batch insert like

A greenhand rubyist program -- ask for comments
380477 [wikikie@gm i] 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@fi ch] I was just affected by that, Brian, rhanks for analyzing this problem in
380487 [brabuhr@gm i] ?"
+ 380488 [brabuhr@gm i] Oops, that's unpack('M'), Rack is using unpack('m').
+ 380505 [markus@fi ch] Thanks, that very informative! Guess proper encoding handling just comes

Apache User/Pass - 401 Authorization Required
380490 [kleber@an on] 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@ya o] I was trying to simulate keyboard event that press "Enter" everytime

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

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

win32ole outlook run macro
380500 [u.gotzes@go ] 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@gm il] 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@ax ni ] *bump*

[ANN] Slop 1.3.0
380504 [lee@ja vi .c] Slop

defunct process
380507 [a3358940@jn ] 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@gm i] with thisobject do
+ 380512 [shortcutter@] Depends on what you want to do, probably use #instance_eval e.g
| 380517 [fxn@ha hr f.] Also available in 1.8.7 :).
+ 380513 [mentionuse@g] You could use
+ 380514 [hyagni@gm il] Do you mean something like this?
+ 380515 [fxn@ha hr f.] def with(obj, &block)
+ 380516 [botpena@gm i] 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@ap th o] I take it, from the questions, that you're considering an iPhone app but
| + 380531 [stu@ru yp og] 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@ap th o] Uhh . . . they aren't *my* questions.  I just replied to "Mic", who
| |   380559 [stu@ru yp og] 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@ap th o] 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@se m] 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@ru y- a] 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@gm il] I m currently using GNU radio 3.2...
380550 [jeremy@bo p.] This list is for discussing the Ruby programming language.  Did you
380551 [chawjk@gm il] Ok...thx for ur info...

Why can a floating point number be used as an array index?
380558 [s450r1@gm il] 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@ap th o] I don't know about why, exactly, or about use cases (though I suppose it
| 380565 [me@km hi e. ] It may do integer truncation, but we need to think of what an Array
| + 380566 [fxn@ha hr f.] Well, alternatively you could get an error.
| | 380570 [josh.cheek@g] # almost one
| | 380572 [code@ap th o] Okay . . .
| + 380589 [shortcutter@] Yes, of course.  That's why Array#[] uses #to_int to determine whether
+ 380563 [sduncan@we a] How about statistical bucketing. Imagine your indexes 1, 2, and 3 are Gb
  380564 [adgar@ca bo ] 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@gm i] *** REMOTE GEMS ***
+ 380601 [sathish.sale] thx dude.
  380680 [vbosch@gm il] ...

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@te de ] ZOMG HAPPY TUESDAY (UTC-7)!!!  <3<3<3<3<3

[ANN] net-http-pipeline 1.0
380571 [drbrain@se m] net-http-pipeline version 1.0 has been released!

Encoding issues when parsing HTML in 1.9
380573 [ctdev421@gm ] in 1.9.
380574 [brabuhr@gm i] What is the encoding of your input HTML file?
+ 380597 [ctdev421@gm ] 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@gm i] That doesn't detect the true file encoding (indeed, the file is either
+ 380600 [ctdev421@gm ] s.encode("UTF-8", :invalid => :replace, :undef =>:replace, :replace
  380605 [brabuhr@gm i] Could that be an optimization in encode: since the string is already
  380608 [ctdev421@gm ] Not sure, it isn't obvious (to me) looking at encode()'s source.
  380619 [brabuhr@gm i] Okay, try specifying that encoding when you parse it with Nokogiri?
  + 380620 [ctdev421@gm ] I resolved this problem by opening and rewriting the original files
  | 380624 [brabuhr@gm i] Cool; thanks :-)
  + 380621 [ctdev421@gm ] 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@gm il] x is not defined here.
+ 380577 [steve@st ve ] if(x.respond_to?(:each))
+ 380578 [cherylminor8] multiple values for the block paramater(0 for 1)
  380579 [hyagni@gm il] You cannot set an argument for x.reach.
  380596 [shortcutter@] The approach is broken because the block is not carried through the
  380598 [hyagni@gm il] Robert, thank you for the reply.
  380604 [shortcutter@] This is only needed in 1.8.* btw.
  380606 [hyagni@gm il] No problem at all.

Zip a file int multiple files in Ruby?
380580 [thomas@da la] Dear community,

date format
380581 [unbewusst.se] I'm building a sitemap.xml using ruby, one input "lastmod" is expected
380582 [nobuoka@r- e] Yes. There are several formats to represent time.
380583 [unbewusst.se] ok, fine, cristal clear, thanks a lot !

[ANN] test-unit-must 0.0.1
380584 [sunaku@gm il] test-unit-must - Selfish "must" assertions for Test::Unit
+ 380948 [sunaku@gm il] * Define missing negative versions of positive assertion
+ 381580 [sunaku@gm il] Vim syntax highlighting is now available for

Trying to create an array of hashes
380585 [purvez@ne ar] I'm parsing an XML document and trying to create an array of hashes
+ 380587 [hyagni@gm il] You should renew rmcategory every time.
+ 380595 [purvez@ne ar] Haruka a million thanks.  So simple.... when you know how.

[OT] functional paradigm taking over
380586 [shortcutter@] just notice there seems to be a trend in industry to include
380634 [martindemell] I think the same thing is happening with closures, but we haven't
380639 [code@ap th o] I think thirty years is unrealistic.  We're probably looking at something

380590 [sbstn26@ya o] This example demonstrates the use of 'private'
+ 380594 [g.diemant@gm] In your example: in the initialize method you call the private method
+ 380615 [code@ap th o] The initialize method calls the set_name method.  Both of these are
+ 380658 [bbxx789_05ss] One of the key aspects of a private method is: a private method cannot
  380659 [bbxx789_05ss] Whoops.  That's not RULE #1.

Lambda Shambda
380593 [rubfor@re it] Although a Ruby fan, I must say I'm spending all my time looking at
380612 [code@ap th o] Wait, I'm confused . . .
380617 [shortcutter@] That's usually where the intellectual fun begins. :-)
+ 380622 [rubfor@re it] Unfortunately most people think the words 'Excel' and 'programming' must
| 380640 [code@ap th o] I know that one can use other languages to manipulate data in Excel, but
+ 380641 [code@ap th o] Option 2, then.
  + 380653 [bbxx789_05ss] I don't know if you've seen the Pragmatic Programmer's book "Seven
  | 380668 [code@ap th o] Actually, I have it.  In fact, I had it on pre-order for an awfully long
  + 380664 [cmdjackryan@] Not a Turing-complete language, anyway.
    380669 [code@ap th o] I don't think it really qualifies as a language at all.  It's more like
    + 380683 [rubfor@re it] You may be interested in this
    | + 380706 [code@ap th o] You could also manage your home budgeting in Brainfuck, but that doesn't
    | + 380812 [josh.cheek@g] Coding everything in Excel might be an interesting paradigm to play with. It
    | | 380825 [rubfor@re it] Excel is somewhat incidental to this discussion. It is not like
    | | + 380831 [cmdjackryan@] As Carl Sagan once said: Extraordinary claims require extraordinary evidence.
    | | | + 380836 [shortcutter@] I am not sure I fully agree to this observation.  First, I believe
    | | | | 380838 [cmdjackryan@] uages
    | | | | 380851 [josh.cheek@g] I'm not particularly familiar with its history, but I don't think Common
    | | | | 380856 [spoon@ki le ] There are some fun looking Excel games
    | | | | 380867 [josh.cheek@g] Yeah, I don't have Excel, either :/
    | | | | 380880 [code@ap th o] I didn't quite make the statement that "programming" in Excel necessarily
    | | | + 380839 [rett@cl ss c] ...
    | | | | 380840 [cmdjackryan@] Which you are doing at the moment, it appears. It's a straw man,
    | | | | 380896 [rett@cl ss c] ...
    | | | | + 380899 [cmdjackryan@] Strawman, again.
    | | | | | 380906 [shortcutter@] I'm not sure how you want to prove that given that the number of
    | | | | | 380920 [code@ap th o] Yes.
    | | | | + 380918 [code@ap th o] Programming is about automation.  The most important things about
    | | | + 380841 [martindemell] No less a person than Simon Peyton Jones has called Excel "the world's
    | | | | 380879 [code@ap th o] Oscar Wilde said "Everything popular is wrong."  Abraham Lincoln said
    | | | | 380888 [cmdjackryan@] Though, Microsoft Research is a different beast than MS proper (as
    | | | | 380919 [code@ap th o] This is true, of course -- but there is still an influence there where
    | | | | 380923 [cmdjackryan@] There's more to the bottom line than, well, the bottom line. That can
    | | | | + 380930 [code@ap th o] I never said otherwise.  What does this (dis)prove?
    | | | | + 380931 [code@ap th o] Oops.  There was a transition from one person telling me Jones is right
    | | | + 380942 [iainspeed@gm] difficult
    | | |   380945 [code@ap th o] On the other hand, I've met some physicists in my time who are complete
    | | + 380852 [code@ap th o] I'm also not sure that Excel would be any more accessible to the "newbie"
    | |   380857 [cmdjackryan@] to
    | |   380882 [code@ap th o] I was referring to programming language design in general, and not
    | + 380837 [spoon@ki le ] Gee if only you had strong typing you wouldn't get those errors.  And
    + 380705 [cmdjackryan@] The opposite. Definitely the opposite!
      380707 [code@ap th o] Okay, thanks for clarifying.  You had me worried for a moment there.