180281-248069 subjects 180688-181596

Why does drb.rb depend on its filename?
180505 [ news@ja .f ] I was creating my first DRb server, and ran into a trouble with ACLs.  I
180507 [drbrain@se m] It would be easier to tell you with an example.
180565 [ news@ja .f ] $ cp /usr/local/lib/ruby/1.8/drb/drb.rb jrb.rb
180631 [drbrain@se m] drb is more than one file so you need to fix your requires.

[ANN] lazy.rb 0.9.5 -- transparent futures!
180506 [mental@ry ia] I'd like to announce a new version of lazy.rb -- this one offering
+ 180632 [james@gr yp ] Wow, that is just super studly!
| 180743 [mental@ry ia] Oh, mainly it was an aesthetic thing.  It _worked_ fine.
| 180843 [nugend@gm il] Hah!  Awesome mental, I was going to be implementing something like
| 180944 [mental@ry ia] Hmm, if it doesn't already do that, it's a bug.
| 180955 [nugend@gm il] I must've misread the code (or misunderstood something)....
| 181001 [mental@ry ia] Hmm.  Could you give me some examples of the behavior you have in mind?
| 181007 [nugend@gm il] Actually, now I'm not so sure that I read that part either....
| 181012 [mental@ry ia] s/Future/Promise/, and you've got it.
| 181016 [nugend@gm il] Right, then there's no purpouse to being able to put the lock down.  I
+ 180853 [ajohnson@cp ] When I toyed with a proof-of-concept of Io's asynchronous messages in Ruby
| 180945 [mental@ry ia] b)
| 180947 [james@gr yp ] Oh, I don't think so.  It would cut off some users, like me.  ;)
| + 180961 [ajohnson@cp ] At one point I was going to try to extract a minimum subset of evil
| + 181004 [surrender_it] maybe just making it optional.. you could even make great use of
+ 181156 [shanko_date@] ...
  + 181162 [daniels@pr n] ...
  | 181173 [nugend@gm il] table_name = "CUSTOMERS"
  | + 181189 [shanko_date@] ...
  | | 181192 [nugend@gm il] Unlikely.  The variables passed into the promise would still have
  | | 181196 [mental@ry ia] Here are a couple trivial examples...
  | + 181195 [mental@ry ia] Actually, no.  String#dup wouldn't get called until the promise was
  + 181166 [mental@ry ia] =20

DRb hanging/blocking on access to /proc filesystem
180508 [david.felste] The following code causes ruby to hang on Linux CentOS 4 (tested on
180515 [akr@m1 n. rg] It seems like the problem before Linux 2.6.13.

OpenGL Patch
180510 [spam2@no ea ] I've created a patch that adds KeyboardUpFunc and SpecialUpFunc bindings

typo questions
180511 [ptkwt@ar cn ] The typo websites seem to be in transtion right now so I can't look at the
180516 [alchen@vt ed] - -----BEGIN PGP SIGNED MESSAGE-----

[ADV]   Shameless Hype for Ruby Stuff Goodness
180512 [james_b@ne r] RubyStuf.com, the premiere place for Ruby stuff, has some new, um, stuff.
180514 [jperkins@sn ] I'm still holding out for the reworked poster of (most of) the core
180614 [hal9000@hy e] Hmmm. I *do* need to revisit that project. It's not on my Top 10 list
180642 [jperkins@sn ] I'd be all for that, but it would probably generate a harassment

installing Tk for Ruby on OS X
180518 [petermichaux] I tried to run the one line script tk.rb
+ 180519 [petermichaux] I found this site
| + 180521 [tsumeruby@ts] I've not used TclTkAqua, but doesn't the Tk interface just wrap the
| + 180524 [petermichaux] I'm having trouble using even this apparently easy to use tk aqua
|   180527 [logancapaldo] The catch is that the magic Aqua Tk works very well with the Apple
+ 180567 [gbulmer@gm i] Obviously Ruby's Tk wrapper isn't finding the library.

Ruby & djgpp
180525 [slobin@sk ys] I have just download a djgpp version of ruby 1.8.4. On my systems

[ANN] SwitchTower 1.0.0
180529 [jamis@37 ig ] SwitchTower is a utility that can execute commands in parallel on
181331 [steven@lu os] What is the prefered place for reports/requests?

Closed source ruby script?
180531 [petermichaux] How to I make a ruby script closed source so no one can see the script
180532 [gene.tani@gm] There's been a lot of threads, here's some search terms: "Obfuscate

Ruby Method Lookup Flow
180535 [gavin@re in ] I sat down to diagram Ruby's object model in something better than
+ 180542 [ mfp@ac .o g] The unimaginable happens.
| 180562 [gavin@re in ] Excellent points, all. Updated. Reload. :)
| 180628 [groups@gr nd] It looks very meaningful. :) Alas, I'm confused. When I get to (for
+ 180680 [gavin@re in ] Not to bump my own thread, but I've updated the diagram again - was
  180683 [gavin@re in ] Oh, and: I added a PDF version of the diagram also, for those

If statement and if modifier not equivalent?
180549 [mrj@bi po d.] I was under the impression that the if modifier and the
+ 180551 [sylvain.joye] That's because of the way Ruby decides wether a local variable exists or
| 180553 [mrj@bi po d.] OK, thanks Sylvain.  But I would have thought that any examination of
| 180557 [david@va ln ] Personally, I'd be surprised if the parser paid any attention to much of the
| 180564 [matz@ru y- a] Agreed with you.  But there's a vague possibility that this issue will
+ 180665 [drosihn@gm i] ...
  180670 [gregory.t.br] yes. I imagine so.
  180710 [matt.smillie] Which makes the assignment a side-effect of the conditional, and
  180802 [david@va ln ] Ow.

simple strings... %q this_is_shown_in_pickaxe_but_dont_work;
180552 [info@ja eo a] The title says it all. Going through chapter 22 of pickaxe (p320).
180561 [david@va ln ] You changed the code and didn't put a single space after the statement? Could

RedCloth development?
180558 [ news@ja .f ] It's been a few months since RedCloth got moved off to SVN, and it looks
180838 [hjwjunk@ea t] I was able to solve the trouble that 3.0.4 was giving me by using the

[/QUIZ] metakoans.rb (#67)
180569 [luke@bl ns a] ...
+ 180571 [lerno@dr go ] This was not my first solution. It wasn't until Timothy Goddard
+ 180574 [sylvain.joye] ...
+ 180575 [g_ogata@op u] class Module
| + 180582 [sander.land@] what about send(arg) == false ?
| | 180719 [g_ogata@op u] Good point!  The koans didn't question that, though.
| | 180731 [phurley@gm i] The problem with defined? is that it will only work in an eval
| | 180829 [g_ogata@op u] Well nothing's perfect... :-)
| + 180588 [jimfreeze@gm] % ruby bm1.rb
| | 180592 [chneukirchen] %-)
| + 180643 [aurelianocal] I have the longest solution shown. 50 LINES!
+ 180593 [meadori@gm i] This is definitely a great quiz. I had a ton of fun working and and

[QUIZ] Solution: metakoans.rb
180570 [wilsonb@gm i] Great quiz. Thanks for writing it.  Sorry to post this after exactly

[SOLUTION] metakoans.rb (#67)
180572 [florgro@gm i] ...
+ 180590 [chneukirchen] Here's my solution, done in two tries too.  Took about 15 minutes, I
| 180720 [michael.ulm@] This demonstrates a problem I have with many solutions -- taking
| + 180721 [michael.ulm@] s/Florian/Christian/
| | 180735 [chneukirchen] #   o.a?      # query  - true if @a
| + 180722 [james@gr yp ] I believe you are making the mistake that you expect attr_meth?() to
|   180723 [michael.ulm@] #   o.a?      # query  - true if @a
+ 180594 [james@gr yp ] Here's what I coded up, back when Ara sent me the quiz.  Everyone
| 180619 [leavengood@g] Here is mine. Nothing too extraordinary or different than other
| 180621 [ilmari.heikk] [lambda{
| + 180626 [adam.shelly@] My solution follows - I think it's pretty straightforward. 16 lines
| | 180943 [adam.shelly@] Ok, after looking at some of the other solutions, I've refined my solution.
| | 180951 [rossrt@ro co] Well, you're extending Object with a method that relies on methods
| | 180984 [adam.shelly@] aha.
| + 180652 [james@gr yp ] [snip - powerful meditation solving code]
+ 180844 [jeremy@hi eg] Great quiz Ara, and here's my solution.  For some reason I wasn't using

ActiveRecord or OG?
180576 [henning.jans] ActiveRecord (without Rails...)  or ObjectGraph ?   I have no real
+ 180578 [james_b@ne r] Well, you probably do.  They are both pretty straightforward to use.
+ 180579 [wilsonb@gm i] One way to decide is by choosing which of these two statements seems
  180617 [hal9000@hy e] An apt metaphor. Og is on my radar as something to try. I'm more of

Newbie class question
180577 [tmatsumoto@g] I've been trying to get my head around the rules for making classes. One
180583 [matt.smillie] An initialised class (if I guess your meaning correctly) is called an

Some error for Tk.
180580 [zusocfc@gm i] When I was running my program, and click the button, it will show the
+ 180584 [david@va ln ] You botched something or the API changed a bit since the samples were made.
+ 180587 [david@va ln ] Follow up after skimming the code a few times, by lucky coincidence, I
  180686 [nagai@ai ky ] A block is available for #command method on current Ruby/Tk.
  183063 [zusocfc@gm i] Thanks a lot. :D

Classes and OO design - help
180585 [merc@mo il .] First of all, thank you so much for participating to this list and
+ 180600 [lists@tu ni ] I know it doesn't answer your question, but wouldn't it be way, WAY
| 180651 [merc@mo il .] Short answer: yes :-)
+ 180603 [david@va ln ] Meh. So am I, and I do it full-time ;) (For given values of full.)
  180684 [merc@mo il .] I am not entirely sure about the list's etiquette. I hope it's OK to
  + 180749 [ruby-talk@de] * Design Patterns: Elements of Reusable Object-Oriented Software (aka
  | 180756 [gene.tani@gm] i prefer Head 1st Design patterns (Oreilly) and Shalloway/Trott DP
  + 180818 [david@va ln ] Not particularly, although not really necessary. I'm enough of an attention
    180854 [merc@mo il .] OK.
    180986 [david@va ln ] In this case? I'd do that to make the code horribly confusing while still
    181026 [merc@mo il .] I am not sure if this is considered off-topic, but...

Finding out if a Mysql database contains a certain table
180589 [nicholas_wie] I need to find out if a MySQL db contains a certain table, if not I have
+ 180596 [caleb@ae -t ] A show tables command just returns a query of table names, 1 per row.
| 180607 [david@va ln ] data will be migrated to another DB.
+ 180657 [gregory.t.br] Using Ruport as it is in the svn trunk (should be released today, i'd

Fwd: [SOLUTION] Quiz #67 metakoans.rb
180591 [james@gr yp ] ...
180640 [gfunk911@gm ] The only interesting thing I have to say here that hasn't been said is

meta_parse: my first metaprogram
180598 [ehames@gm il] ...
180605 [google@er kv] I usually try to avoid those inline strings. I don't like them.
+ 180608 [david@va ln ] Seconded, metaprogramming code like that will get a major performance hit if
+ 180624 [chneukirchen] I'd just return a block for this case, though.

Pandora Early Beta Program
180601 [julian.kamil] I am happy to announce the Pandora Early Beta Program which will allow
+ 180610 [bob.news@gm ] Um, this is only faintly related: there is a website out there that shares
| 180612 [julian.kamil] Thanks for pointing that out, Robert.  Someone else mentioned this to
+ 180629 [ruby-talk@de] I saw this a couple weeks back, and have the same question now. What
  + 180638 [julian.kamil] ;-)  Belly dancing is exactly what I'd like people to think of when
  | 180655 [surrender_it] I wonder: did you run into issues subclassing RedCloth?
  | 180672 [julian.kamil] Actually, I haven't run into any issues yet, but it is probably because
  | 180783 [surrender_it] Well, I had a tiny issue with the mismatch beetween [[page|title]] and
  + 180650 [hal9000@hy e] I'm also curious.

Excel file modification without win32ole
180602 [pimeys@ko ai] Greetings,
+ 180677 [djberg96@gm ] See http://raa.ruby-lang.org/project/spreadsheet/ if you don't mind
| 180679 [pimeys@gm il] That's the module I've been trying to use in my program instead of
+ 181044 [dsisnero@gm ] ...

First Munich.rb meet up
180604 [urban@be to ] Hej,

[SOLUTION] metakoans.rb (#67)
180609 [mental@ry ia] I've got two.
+ 180625 [ruby-talk@le] Here's my solution: Took me about 15 minutes to solve the koans. I agree
| 180732 [ruby-talk@le] As with everyone, it seems, some more twiddling and playing with this
| 180737 [jgbailey@gm ] ...
| 180757 [tristan.allw] Ah, yeah...just found another post explaining this. :(
+ 180882 [GENIE@pr di ] ...

180611 [Meino.Cramer] with Google I found a Quiz about a Sodoku-solver, but I didn't find a
+ 180623 [znmeb@ce ma ] generateSudoku            package:sudoku            R Documentation
| 180627 [Meino.Cramer] Thank you for your fast reply ! :O)
+ 180633 [ jupp@gm .d ] I understand that you rather seek for a program but ... hand-made
  + 180667 [steve@wa ts ] This is slightly OT, so I'll only offer this one contribution..
  | 180703 [chneukirchen] They could, but of course you can't tell if they do...
  + 180678 [Meino.Cramer] One could see the implementation of a sudoku-generator in ruby as a
    180962 [ jupp@gm .d ] It was taken from "Sudoku - Das original japanische Zahlenr?tsel" by

Facets units not working
180618 [david@va ln ] I tried to give Units a try to find out the date difference between two days,
180645 [transfire@gm] Thanks for reporting this.  I will look at tonight and get back to you.
180646 [transfire@gm] Well, I have to recommend that Facets be installed via the tar.bz2

Re: lazy.rb 0.9.5 -- transparent futures!
180634 [itsme213@ho ] Nice.
180644 [matt.smillie] irb(main):001:0> require 'lazy'
180669 [mental@ry ia] It's worth noting that this only works so well because of the very

Segmentation fault with OneClickInstaller 1.8.4
180635 [anatol.pomoz] ...
180636 [anatol.pomoz] ...
180726 [vanek@ac .n ] this may explain it,

GC Bug? Ruby 1.8.4 core dumps on a very small extension
180639 [danie.roux@a] ...
180641 [rossrt@ro co] @@ -8,7 +8,7 @@
180921 [danie.roux@a] Ross,
180963 [cmills@fr es] Assuming you're using a 32bit machine.  100 % 4 == 0, so Ruby thinks

[BUG] Unexpected syntax error
180648 [dharple@ge e] $ ruby -v
180658 [phasis68@ho ] It reminds me an old thread

Re: Unexpected syntax error
180649 [ruby-forum-r] This is quite bizarre. The parentheses on foo3 cause
180751 [drbrain@se m] Ruby thinks those are argument parentheses.  This may not be a bug.
180793 [matz@ru y- a] This is a bug, and I fixed it last night(JST).

How to pass a group of arguments?
180659 [anne@wj .h r] I want to use a function which expects three arguments
+ 180660 [gregory.t.br] some_method( *some_ary )
+ 180661 [dharple@ge e] Use the splat operator, "*".
  180727 [anne@wj .h r] Thank you for your responses. The error does go away. I can't find a
  + 180728 [rmagick@gm i] See page 332, "Method Arguments" and the following section "Invoking a
  + 180729 [novakps@gm i] It is 'splained on p.80, "Variable-Length Argument Lists."
    180736 [anne@wj .h r] Thank you for your responses.
    + 180760 [gregory.t.br] sandal@harmonix:~$ irb
    + 180763 [novakps@gm i] This is covered on p. 83 "Expanding Arrays in Method Calls."
      180785 [anne@wj .h r] Thank you for finding me the page. So it is just a bit of ruby grammar

Memo to self.
180663 [john.carter@] Never under estimate what you can achieve with
+ 180664 [hal9000@hy e] Well, as your self.memo included the rest of us, how about
| 181174 [john.carter@] Ok. Just quickly. I had a file of the format...
+ 180696 [w_a_x_man@ya] # Read and parse the first file on the command line.

Login script
180666 [jeisma@pi es] on windows 2003. id like to use ruby to process my login script.
180674 [james_b@ne r] require 'win32ole'

[OT] Re: Sodoku-Generator
180668 [hal9000@hy e] I think I'm the last person in the world to "get" this phenomenon.

\n on windows?
180671 [alex.combas@] improper output:irb(main):034:0> YAML::dump m=> "--- !ruby/object:MailTruck \ndriver: Harold\nroute: \n- 12 Corrigan Way\n- 23 Antler Ave\n"irb(main):034:0>
180673 [gregory.t.br] neither.  irb was showing you the return value of your function call
+ 180675 [alex.combas@] poof!I love it when bugs just evaporate.
+ 180826 [david@va ln ] # ryan:: You know how Kernel.p is a really convenient way to dump ruby

[OT] Re: Pandora Early Beta Program
180676 [hal9000@hy e] Really? Why not??
180754 [damphyr@fr e] Because silk was invented by the chinese and there were no silkworms in

Ruby Object Graph visualizer
180681 [eastcoastcod] Any pointers to a tool to generate some type of object (dependency)
180682 [gregory.t.br] ...

can not access constants from Time module
180687 [akbarhome@gm] CommonYearMonthDays and LeapYearMonthDays constants do what I need. But
180690 [bob.news@gm ] Probably a documentation bug
+ 180695 [akbarhome@gm] So why does the documentation about Time module list the other
+ 180704 [matz@ru y- a] They are constants defined in metaclass of Time.