227285-320219 subjects 227691-408485

uneval,mtime,hash - Meta programming.
227475 [john.carter@] I often do things that take far too much time.
227478 [ara.t.howard] class Module
227484 [john.carter@] The trouble is the methods get "added" every time the script gets
227486 [sander.land@] Try a search for ParseTree and ruby2ruby.

loops and branching
227477 [ishamid@co o] [progrmming novice]
+ 227482 [christoffer.] (leapi..leapf).select do |x|
| 227504 [ishamid@co o] ================
| 227601 [slamboy@gm i] ...
| 227826 [pete.yandell] (num1..num2).each do |x|
| + 227827 [dblack@wo bl] puts leap_years
| + 228126 [christoffer.] I'm a bit late, but yes, that's how you would use my solution. :)
+ 227695 [ishamid@co o] Actually, that would make you a day early ;-)
| 227701 [wmwilson01@g] You try waking up to someone's hands on your teets and you haven't even
+ 229806 [NigamaX@gm i] I am only as far as this problem in the book, and this was my solution

How to make "generic" YAML calls?
227487 [dale.quigg@a] I have a Test.Yaml file like;
227493 [dale.quigg@a] Found it, sorry to bother.
227575 [ruby@an hr p] } <snip>
228105 [dale.quigg@a] Thank you Greg.

[SUMMARY] DictionaryMatcher (#103)
227490 [james@gr yp ] As stated in the quiz, this question comes up quite a bit.  There are a few ways

[ANN] Chilkat Upload for Ruby Released
227491 [support@ch l] Chilkat Upload for Ruby was released today.  The upload class (CkUpload)

newby question determining name of an array at run-time
227494 [rubyeu@ya oo] (Sorry for not finding a better title to my question. I'm not shure if
+ 227500 [nospam@no it] hash = {}
+ 227521 [ruby@mu rm n] Have a look at instance_variable_get in the RDocs - that'll do what you want.
  227566 [rubyeu@ya oo] The method instance_variable_get was exactly what I needed.

What's the current standing of Rant vs. Rake?
227496 [chrispearl@g] Rake seems to be used widely and extensively. Rails uses it pretty
+ 228037 [chrispearl@g] Further Investigation clears up some of the mystery.
| 228041 [djberg96@gm ] That's interesting, considering the Rake tutorial
| + 228052 [chrispearl@g] In another thread, the author (Dr. Russel Winder) mentions the
| + 228420 [Bil.Kleb@NA ] change if dissatisfaction * appeal * plan > cost_of_change
|   228429 [jameskilton@] ...
|   228466 [david@va ln ] Yes, because it is unheard of that open-source projects would stay
+ 228069 [yakumo9275@g] I use rant all time time for building C apps and such and have ran into

floating point problem... floating indeed :(
227502 [teeshift@gm ] suspecting that it was
+ 227506 [wilsonb@gm i] See this writeup for some details on why this happens.
+ 227507 [chrispearl@g] Someone else might wish to give a more concrete explanation, but as a
+ 227511 [nospam@no it] / ...

open-uril ECONNREFUSED problem
227503 [cyrusg@ya oo] I'm working on a simple scraping tool and the open() method has suddenly
+ 227508 [chrispearl@g] WFM.
+ 227516 [drbrain@se m] Are you behind a proxy?

Is RUBY what I'm looking for?
227505 [gcarcass@gm ] I have a question, that I hope someone will answer according to what I
227517 [cyrusg@ya oo] The best person that can give you that answer is yourself. And
228008 [gcarcass@gm ] Thanks a lot !

Ruby advent calendar
227512 [rosco@ro co ] It's that time of year again folks, time to get into the festive spirit.

Re: open-uri ECONNREFUSED problem
227513 [cyrusg@ya oo] I've tried different URLs from different locations. Do you think setting
227515 [cyrusg@ya oo] open("http://www.google.com", "User-Agent" => "Mozilla/4.0")
+ 227519 [nospam@no it] Have you tried rebooting your computer? Has a similar connection attempt
+ 227520 [ara.t.howard] firewall?
  227576 [cyrusg@ya oo] I had no problems with the open() call for almost two days, but then
  227672 [drbrain@se m] So what changed when it stopped working?
  227678 [banshee@ba s] When you're looking at problems like this, make sure you're using fairly
  227680 [cyrusg@ya oo] Thanks James. Actually, I've opened another topic called "Komodo issue"
  227685 [cyrusg@ya oo] I reinstalled Komodo (and made sure to remove all the prefs) and now it

time = ["min", "sec"].collect {|i| {i=> Time.now.send(i).to_i}}
227523 [caldridge@gm] What's the best way to make the first item below yield a hash instead
+ 227530 [caldridge@gm] Sorry --Subject was supposed to be "Need help creating hash from an array"
| 227533 [caldridge@gm] time = Hash[*["min", "sec"].collect { |i| [i, Time.now.send(i)]}.flatten]
+ 227580 [ara.t.howard] now = Time.now
  227720 [caldridge@gm] ah ok. Good point. I'm learning :-)

Ruby equivalent to "exec > $logfile 2>&1" in sh script?
227525 [phil@pr co .] People,
227528 [wmwilson01@g] outfile = File.open("output.txt", "w")
227546 [drbrain@se m] Not really.
227596 [rick.tessner] Adding $stdout.sync = true; $stderr.sync = true should solve the problem

Gateway is malfunctioning
227527 [transfire@gm] Someone recently mentioned missing posts. I just did a comparsion of
+ 227543 [_mwryder@wo ] I think someone mentioned earlier that the missing posts were mostly
| 227561 [damphyr@fr e] Not true. I had some missing posts (a couple misdated and a couple not)
| 227592 [james@gr yp ] Your posts appeared on one side of the Gateway (the Ruby Talk mailing
+ 227581 [ara.t.howard] as far as i can tell it always is - or at least has been for weeks.
| 227590 [james@gr yp ] James Edward Gray II
+ 227589 [james@gr yp ] that is history.  The news-to-email side is already deployed.  My
  + 227597 [ara.t.howard] mine aren't - so ignore for now.
  | 227603 [james@gr yp ] Probably not too meaningfully.  Every Usenet host uses a different
  | 227621 [f@an re s- .] +1
  + 227604 [transfire@gm] Have a look at recent topic: Wisdom of including Rakefile in releases.
    227611 [shortcutter@] I do not see *any* posting of Jason on the news side and only a single
    227625 [james@gr yp ] I have not yet received this message from Trans.  I do find it in the
    227668 [shortcutter@] I cannot see that it is a HTML posting - in fact, I do not see any HTML
    227669 [james@gr yp ] Fred, can you comment on this?  The link above shows pretty much how
    227730 [fred@la av .] I'd like to see the whole raw message, headers included (my email is
    227736 [fred@la av .] Ok, Robert sent me what seemed to be the full message, and it's in fact
    227750 [james@gr yp ] Forgive my weak knowledge of email types here, but if someone sent a
    + 227752 [slamboy@gm i] ...
    + 227754 [rossrt@ro co] I have a feeling this is what is, or at least was, happening - I wasn't
    | 227757 [fred@la av .] That's not systematic.
    + 227755 [fred@la av .] Yes, but it won't be multipart/alternative (which means different
      227759 [james@gr yp ] Am I understanding right Fred that your filters do allow multipart/
      + 227764 [fred@la av .] They should.
      + 227785 [fred@la av .] Okay, it was interpreted as binary (probably the base 64 part).  I've
        + 227791 [rosco@ro co ] Assuming that the base64 encoding was done to cope with UTF8 in the
        | + 227795 [james@gr yp ] No.  The new code does everything the old one did and more.  The main
        | + 227811 [james@gr yp ] "I'm guessing we could get radical and read incoming emails with an
        |   228191 [fred@la av .] This path leads to the Dark Side (tm) : content mangling of a message
        |   228204 [james@gr yp ] James Edward Gray II
        + 227794 [james@gr yp ] We appreciate all your efforts.  Thank you Fred!

how can someone see my webserver if I have a wireless router ?
227534 [wbsurfver@ya] Here is my question. I have a laptop and I run a ruby/rails based web
227558 [boss@ai bl d] Yes, it can be done so don't give up :)
227564 [shortcutter@] Dynamic DNS is much better - you need a domain though.

how can someone see my webserver if I have a wireless router ?
227535 [wbsurfver@ya] Here is my question. I have a laptop and I run a ruby/rails based web
227537 [Jack@di cu s] May be this can Help.

Anomaly in first example of Needles, an Aspect-Oriented Programming tool
227536 [RichardDummy] I intend to use Needle in my future Ruby and RoR development,  so I
227563 [JoeKarma@gm ] You forgot a question mark.
227610 [RichardDummy] Thank you very much!

How to get value of constants in Excel using WIN32OLE
227538 [chen_li3@ya ] I have a script to store all Excel constants in an array. ButI can't
227551 [jan.svitok@g] See programming ruby, especially the chapter on reflection. THe
227584 [chen_li3@ya ] Thanks Jan. I haven't touch this chapter yet but I will take a look at

doc literal with soap4r
227539 [snacktime@gm] Since I'm not a soap expert I thought I would ask.  The following soap
227613 [adam@th re l] There is an option to turn on doc/literal in soap4r.  I forget where

puts, print, Array#to_s relative to ruby 1.8 and 1.9
227540 [gwtmp01@ma .] I find it a bit strange that puts treats array objects differently
227542 [twifkak@co c] a.flatten.join ?
227544 [gwtmp01@ma .] Ah, yes.  I knew there had to be an easier way.  Still I kind of like

Execute/Run the Ruby (.rb) files from browser.
227541 [raju_drg@ho ] I am not new at all for ruby because i have studied for a month about

[OT] Re: how can someone see my webserver if I have a wireless router ?
227552 [shortcutter@] Additionally he needs to set configure his router to either place his

How to create object of class name of which is in text string?
227556 [rtokarev@gm ] I know what this is about Abstract Factory pattern. But in example at
227557 [farrel.lifso] create_something(Kernel.const_get("Foo"))
227562 [rtokarev@gm ] Thanks a lot, Farrel!

why does openstruct not respond to [] and []=?
227567 [martindemell] Took me aback - there seems to be no reason for OpenStruct *not* to
227568 [shortcutter@] OpenStruct also does not inherit Enumerable.  I guess the story is, if
227570 [martindemell] I was trying to collect all the binary options to my app in a hash (as
+ 227572 [matz@ru y- a] Is there any reason that you have to use OpenStruct instead of plain
| 227577 [martindemell] In the rest of the code I'd far rather use opts.option than
+ 227573 [shortcutter@] Hm...  Personally I would prefer the slightly more verbose but less

[QUIZ] Turtle Graphics (#104)
227574 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 227598 [hhausman@gm ] 3 cheers, great quiz!
| + 227606 [james@gr yp ] I tried to use the new pure Ruby PNG library to get anti-aliased line
| | + 227620 [hhausman@gm ] Ha! I did the exact same thing the day they announced that PNG lib.
| | | 227661 [martin@sn wp] To be fair, they don't do the compression in pure ruby - they call
| | | + 227670 [james@gr yp ] Unfortunately, that kept me from trying very hard to fix it.  I also
| | | + 227692 [hhausman@gm ] Thanks for the correction here.
| | |   227703 [matthew.moss] Actually, it's exactly when you want anti-aliasing.  If your pixels
| | + 227815 [benjohn@fy h] In a bout of "why can't graphics be easy like it was on my BBC", I
| + 227708 [m_goldberg@a] Why ironic? I's say you have a head start on solving the quiz. I look
|   227725 [hhausman@gm ] I guess 'coincidentally' would have been a better word. :P
+ 227616 [kurt.hindenb] Does the above work for everyone?
| 227619 [james@gr yp ] Making it work is the quiz.  You need to finish the turtle.rb file so
+ 228039 [matthew.moss] My solution, which does pass your updated test_coord_cmnds, Morton...
  228058 [m_goldberg@a] Yes, and it passes all my other unit tests, too. Well done.
  228156 [m_goldberg@a] You bring up a good point here. Commanding the turtle to face the

Active Record messes with my Logger
227579 [damphyr@fr e] Yes, I know about the hack that AR uses to make the Logger format
240903 [florian.assm] begin
242829 [damphyr@fr e] class MyLogFormatter<Logger::Formatter

[ANN] ruby-services 0.2.0
227583 [djberg96@gm ] The Win32Utils Team is happy to announce the 0.2.0 release of the
227587 [jgbailey@gm ] ...
227618 [djberg96@gm ] Regards,

227595 [semmons99@gm] ...
227612 [tim.pease@gm] The pthreads option when compiling Ruby is there to make it play nice
227628 [semmons99@gm] ...

Curb 0.0.4 hot off the press!
227602 [rossrt@ro co] Curb 0.0.4 is now available from the curb project on Rubyforge

Re: Segmentation fault, proc, eval, long string [Work Around]
227614 [hutch@re ur ] Oh, very interesting. Yes indeed it gets kinda deep there :-) Thanks!
227623 [pit@ca it in] Bob, the whole proc is a closure, so there's a difference between

Ruby/DL binding to CASA: [BUG] Segmentation fault
227622 [nyounger@no ] casa.rb:85: [BUG] Segmentation fault

Combining PDF and XML files into PDF
227626 [bill.walton@] My app reads an XML file into my database, allows editing the content,
227937 [jeremy@hi eg] For PDF Creation take a look at PDF::Writer

Simple iteration in a function problem
227630 [blakeage@ho ] i'm trying to do this, and I'm stuck
+ 227632 [vjoel@pa h. ] @ys.find {|x| x.getUniqueId == id}
+ 227633 [rforum@gm il] Perhaps
| 227635 [blakeage@ho ] I don't know where "detect" comes from (@ys is an array, and it doesn't
| 227638 [blakeage@ho ] Sorry, missed that "Enumerable"
+ 227634 [james@gr yp ] class YHolder
| 227639 [blakeage@ho ] isn't working for me, i also tried y.object_id.equals(id) but I can't
| 227643 [nospam@no it] #!/usr/bin/ruby -w
| 227645 [blakeage@ho ] class Widget
| + 227646 [blakeage@ho ] I think perhaps the problem is how I'm comparing strings.  What is the
| + 227653 [nospam@no it] What? "uniqueId" is string? It cannot be a string, it has to be an ID,
| | 227656 [blakeage@ho ] Why can't it be a string, I can use whatever I want to identify an
| | 227676 [nospam@no it] / ...
| | + 227688 [vjoel@pa h. ] If the ID is coming from outside the program (a file say) or if the ID
| | + 227693 [dblack@wo bl] Paul, could you please stop being so confrontational?  Your standards
| |   227709 [james@gr yp ] Yes, please.
| |   227767 [nospam@no it] James, thanks for pitching into a critical response, a right we all share
| |   227774 [blakeage@ho ] What does [OT] stand for, and is the appropriate tagging to put it in
| |   + 227777 [dblack@wo bl] It means "off-topic", and don't worry; it wasn't added in reference to
| |   + 227778 [david@va ln ] Off-topic, either with respect to the mailing list, or to the thread.
| |   + 227780 [nospam@no it] It actually stands for "Off Topic", but in a case like this it is entirely
| + 227658 [dblack@wo bl] attr_reader :uniqueID
|   227660 [blakeage@ho ] Noted, and changed.  Sorry if I'm dragging this out, I know I left out a
|   227663 [dblack@wo bl] I wish I could help.  I can't spot anything that would cause @obj to
|   + 227665 [blakeage@ho ] David, thanks for the help.  I did create a test.rb file and the code
|   + 227671 [blakeage@ho ] Ah you guys are gonna kill me now.  I feel I must break out the
|     227677 [james@gr yp ] Now the key is to learn a lesson from this, right?  Here's my best
+ 227640 [blakeage@ho ] def getXById(id)
  227651 [nospam@no it] You believe you are solving a specific programming problem, but in fact you

How do I get rake to compile native extension during gem installation?
227655 [v.discharge@] I created a little native extension that I want to package as a gem.

[Announce] Ruby Memory Tracking API
227674 [snail@ob me ] A while back we said we'd write a Ruby Memory Tracking API. We have done

Komodo issue
227679 [cyrusg@ya oo] I'm trying to make an http conenction (to scrape a website) from within
227681 [nospam@no it] I can only see one problem. You have started a new thread for an existing
227683 [cyrusg@ya oo] I introduced a new thread because the old thread somehow implied that
227684 [cyrusg@ya oo] I reinstalled Komodo (and made sure to remove all the prefs) and now it

Re: tk.rb warning in Turtle Graphics (#104)
227682 [efine145-nos] /usr/local/lib/ruby/site_ruby/1.8/tk.rb:1187: warning: instance variable
227713 [m_goldberg@a] I'd look into this, but you aren't giving enough info for me to have
227721 [efine145-nos] Sorry I didn't provide more information earlier; I kind of assumed that
227724 [nagai@ai ky ] Don't worry about those. Those are no problem.
227726 [efine145-nos] Well, I found a bizarre and (to me) totally inexplicable way to get rid
+ 227756 [m_goldberg@a] I'm just as mystified as you area as to why it works, but I'm glad
+ 228007 [nagai@ai ky ] Do you use the method "draw" at the end of callback operation?
  + 228021 [efine145-nos] Here's my solution. It passes all the unit tests, including the new
  | 228114 [pete@no ah t] Ok, a couple of comments.
  | + 228124 [efine145-nos] You're right. That's what I get for working when too tired... :(.
  | + 228130 [efine145-nos] What is the correct behavior if calling toward(pt) and @xy == pt. In
  + 228022 [efine145-nos] Thanks for the explanation. This was driving me nuts :)

mysql source command doesn't work?
227687 [nappin713@ya] I'm trying to use the mysql 'source' command within a ruby script to run
227689 [phasis68@ho ] 'source' is not an SQL command, but an internal command of the mysql command
227733 [david@va ln ] un