197635-334449 subjects 198158-202191

Looking for Mechanize code for login
197978 [jimfreeze@gm] I am trying to automate collecting balances from my bank using
197993 [alex@bl ck e] If that's all you ever get back, I'd say to first do the login to get
198021 [znmeb@ce ma ] There's a much easier way ... buy Quicken :). Or reverse-engineer

[ANN] rubyFreenet 0.1
197984 [sitharus@si ] rubyFreenet is a Ruby interface to Freenet Client Protocol 2.0. It's

Numeric roadmap?
197991 [dmitry.sever] ...
+ 197992 [a2800276@gm ] Not a good idea to joke about language design, see Parrot.
| 198022 [znmeb@ce ma ] Parrot? This parrot is dead, right?
| 198089 [pbattley@gm ] Careful - that's a Python joke!
| 198119 [znmeb@ce ma ] "If all the young ladies were diamonds and rubies,
+ 198014 [tsuraan@ts r] You will support quaternions and octonions, right?  It had also better
  198023 [znmeb@ce ma ] Why not do what R did --- define "scalars" as vectors of length 1 and
  198041 [syarus@gm il] Then you have a conformability problem.  How do you multiply a vector
  198117 [znmeb@ce ma ] Ah, but R, like S, uses something called the recycling rule. Vector A of

Is it more convenient to have a random_each in ruby stdlib?
197994 [uncutstone@s] I found it may be a common case that we need randomly enumerate elements
+ 197996 [simon.kroege] I think it's a little bit to simple to be put in the standard lib.
| 198000 [alex@bl ck e] For large collections, it'd be much nicer not to have to either
| 198003 [transfire@gm] Perhaps...
| 198006 [transfire@gm] On second though, that still sorts an array of the same size. Hmm...
| 198026 [M.B.Smillie@] But it turns out to not be that simple.  This can give a biased sort
| + 198028 [alex@bl ck e] I was thinking of them more in terms of a random walk across a finite
| + 198029 [alex@bl ck e] The problem with this argument is that people might not know when they
| | 198045 [M.B.Smillie@] No, you're right.  The catch, as usual, comes down to something being
| + 198046 [daniel.schie] I like these implementations, though I have some comments and
| | 198058 [M.B.Smillie@] I agree with you about 'arr.shuffle.each' being better semantically,
| | + 198060 [daniel.schie] Yup, Enumerable's the place it should be.
| | | 198072 [M.B.Smillie@] I agree with you there, but it's not quite what I meant.  More
| | | 198077 [daniel.schie] I can see what you mean -- you'd rather have #shuffle! depend on
| | + 198063 [daniel.schie] All of a sudden I'm beginning to get major performance problems when
| |   198065 [daniel.schie] Never mind, it seemed to go away when I moved the code into its own
| + 198124 [martin@sn wp] <<SNIP>>
|   198144 [M.B.Smillie@] You don't provide anything to back up this assertion.  What makes
|   198218 [martin@sn wp] I'm sorry; I thought it would be obvious to anyone who had read the Haskell
+ 198170 [pbattley@gm ] Paul.

Re: Is it more convenient to have a random_each in ruby stdl
197998 [uncutstone@s] It is nice to see you make it so simple!
198012 [leslieviljoe] Surely this would break some sort algorithms, since the same element
198025 [alex@bl ck e] sort_by generates the block value once for each collection element then
198061 [uncutstone@s] Yes, since array just stores object references, (0...size).to_a is as

Installing RubyGems on arm architecture
197999 [sy1234@gm il] I try a manual installation of RubyGems (ruby setup.rb), and I get a
198033 [jmg3000@gm i] Well, that looks like a shared library that's part of OpenSSL. On my
198035 [jmg3000@gm i] Sorry -- I was talking about libcrypto.so.
198055 [sy1234@gm il] There is no change after having installed libssl.  I can confirm that
198068 [sy1234@gm il] I found a packager who has been working on this very same problem.

best way to deal with command line options
198010 [thomas.coopm] I'm verry new to ruby, just use it for some days now and I have question about the best implementation of how to deal with command line options.
+ 198031 [M.B.Smillie@] Hard to say without a little more knowledge of the program and the
| 198039 [thomas.coopm] That's a good idea, I will look into that or else write my own simple logger class
| + 198050 [M.B.Smillie@] To be honest, I'm not 100% sure what you mean by 'main'.  I'm
| | 198057 [thomas.coopm] Thanks for your answers!
| + 198084 [jim@fr ez .o] ...
+ 198059 [transfire@gm] These kind of options are often best implemented via global vars. eg.

DATA and $.
198011 [wybo@se va y] Is it correct that the first line read from DATA has not $. == 1 ?
198016 [ mfp@ac .o g] batsman@tux-chan:~/mess/current$ cat data.rb

Achieve pure object oriented design in Ruby
198017 [nayakk@gm il] ...
+ 198183 [schapht@gm i] I'm a little bummed no-one's tried to answer this.  I have no idea
| 198220 [robert.dober] ...
+ 198224 [lukfugl@gm i] # This is still very abstract. For instance, you'll need to program some
+ 198290 [cohen.jeff@g] I haven't had time to think through it completely, but what if you
  198294 [robert.dober] ...
  + 198297 [robert.dober] ...
  + 198298 [toalett@gm i] I don't think it's possible without redefining instance_eval and
  + 198299 [lukfugl@gm i] One way would be to make B.new protected/private (similar to the way
  | 198301 [robert.dober] ...
  | 198310 [lukfugl@gm i] Exactly. With a language like Ruby, it's *really* hard to not let
  | 198341 [strobel@se u] In no language private/protected (or final) is a fool proof security
  | 198349 [robert.dober] ...
  | 198595 [strobel@se u] Disassemblers/source extractors. Debuggers. Special kernel
  | 198634 [robert.dober] ...
  + 198355 [gwtmp01@ma .] class A
    198396 [robert.dober] ...
    198427 [gwtmp01@ma .] Yeah, I shouldn't have written it as creating a new class for each
    + 198429 [pertl@gm .o ] I agree...
    + 198431 [vjoel@pa h. ] You can hide it a bit better using a closure, and then attr_accessor
      198432 [lukfugl@gm i] class A
      198434 [vjoel@pa h. ] class A

InstantRails using existing installed pieces
198020 [the.mindstor] I've been looking for this information on InstantRails mail archieves
198120 [ml.chibbs@gm] ...

Ruby to visualize information?
198032 [kyrreny@br a] I am an architect studying the future of information.
198036 [farrel.lifso] There are bindings available for  OpenGL and Cairo. Not sure about verse.

Ruby versus the world
198034 [kyrreny@br a] I might have missed past discussions, but where may I find comparisons
+ 198056 [schapht@gm i] "10 Things Every Java Programmer Should Know About Ruby" comes to
| + 198070 [jmg3000@gm i] PLEAC
| | 198071 [james@gr yp ] suited to language comparison.  This is just my opinion.
| + 198121 [znmeb@ce ma ] But what if Ruby *is* your second-favorite programming language?
|   198122 [matt@te hn r] I will admit that I really miss programming in Forth.  I also miss doing
|   198123 [znmeb@ce ma ] Well, if the vmgen-based Ruby virtual machine ever gets off the ground,
|   + 198125 [matt@te hn r] Quite a bit of Koichi's design reminded me of Forth virtual machines.  The
|   | 198131 [znmeb@ce ma ] Ah, but the Forth folks are very religious about there being exactly two
|   | 198143 [alex@bl ck e] "Then shalt thou count to three, no more, no less. Three shall be the
|   + 198128 [rubyfan@gm i] Phil
+ 198067 [jmg3000@gm i] We'll, there's some content going up on the new ruby site that might
| + 198073 [schapht@gm i] You guys are always one step ahead of me.... :(
| + 198074 [schapht@gm i] After looking at this a bit more, it makes me think that user
+ 198126 [curi@cu i. s] ...
+ 198127 [rubyfan@gm i] It compares a fractal program written in several languages.

Failing with Dir.glob results
198037 [pbailey@bn .] My script is failing at the following move command, right after the
+ 198048 [M.B.Smillie@] What's the nature of the failure?  Do you get any sort of error message?
| 198176 [pbailey@bn .] Yes, absolutely. I have no problems when I have far fewer glob choices.
+ 198054 [nobu@ru y- a] This globs aacmc7*.pdf, acm059*.pdf, ... and *.pdf.  So
+ 198087 [jmg3000@gm i] Did you mean to have that last comma at the end of all those prefixes?
  198177 [pbailey@bn .] You???re right. I did see that, and, I deleted it. It didn't change my

TurboVision port ?
198042 [ mig@19 4. z] has anyone ported TurboVision into Ruby? (project tvision seems to be
+ 199699 [hal9000@hy e] Wow... I had forgot about TurboVision. I used to use
+ 199733 [asbradbury@t] Alex

Simple grid stuff?
198043 [phil@pr co .] People,
198044 [cdc@cy he s.] iD8DBQFElr9xpXfXwRYlDA0RAh0JAJ9NUsYmxLXqUbhWJEEtn9+IGXzFAwCfUI4D

How to do this debugging?
198066 [phil@pr co .] People,
+ 198080 [bulliver@ba ] charset="iso-8859-6"
+ 198082 [dale.martens] If you redefine $stdin, you can get this to work. Enter the debugger
  198153 [phil@pr co .] Dale, Darren,
  198207 [dale.martens] I don't know. I am not sure what your program is doing. Is there anyway
  198257 [phil@pr co .] Dale,
  + 198415 [logancapaldo] You know, if you use ARGF instead of $stdin your program will work for
  | 198487 [phil@pr co .] Logan,
  | 198836 [logancapaldo] It doesn't apparently, I only mention it as a useful idiom for when
  + 198426 [dale.martens] What version of ruby are you using? I happened to be using 1.8.2 (not
    198488 [phil@pr co .] Dale,

[ANN] GeoCoding API updates
198079 [drbrain@se m] $ sudo gem install metacarta-geoparser

associative array naming indirection
198081 [dan@om iv re] I have an array of names in string form as an instance var. The class
+ 198085 [schapht@gm i] It's hard to know without the error, but adddata() doesn't look great
+ 198086 [collinsj@se ] What error? When?
+ 198088 [GENIE@pr di ] uh ......... what's the error
+ 198092 [daniel.schie] def add_data(data)
+ 198095 [M.B.Smillie@] It's the typos, I'm afraid.  First, you've got an unterminated string
  198098 [dan@om iv re] Ah yes.
  + 198101 [Daniel.Berge] The above works great if you're limited to the standard library.
  | 198152 [daniel.schie] I agree, and I'm using it myself. I just usually try to limit myself to
  + 198102 [M.B.Smillie@] That depends.  If having 'nil' values in your hash is OK, you could

How to get the response from a UDP socket.
198090 [hrasoulian@n] ...
+ 198103 [garbagecat10] ...
+ 198105 [vjoel@pa h. ] You aren't seeing the error because it's raised in a thread. There are
  198114 [garbagecat10] ...
  198237 [vjoel@pa h. ] Look again at OPs code (below). Both sockets, "server" and "sock" are
  198254 [garbagecat10] ...
  198264 [vjoel@pa h. ] Just my guess...
  198267 [garbagecat10] ...
  198314 [ben@ia u. et] What makes you say that? I'm using this code in something, and it works
  198316 [garbagecat10] ...

A new home for RubyForge
198093 [tom@in oe he] Thanks to the nice folks at Ruby Central, RubyForge is getting new
+ 198099 [james@gr yp ] I just want to thank you, and all else involved, for all you do
| + 198100 [tom@in oe he] Thanks for your kind words!  May RubyForge's next three years be as
| + 198107 [chris@oc op ] Seconded!
| + 198111 [agorilla@gm ] +1
+ 198195 [rich@in oe h] This is in progress...
| 198225 [ezmobius@gm ] Rich & Tom-
+ 198515 [tom@in oe he] By the way, a few folks have gotten a message to the effect of "POSSIBLE

[ANN] mongrel_cluster 0.2.0 -- Mongrel 0.3.13 Compliant
198094 [zedshaw@ze s] Bradley couldn't make it so I'm filling in for him.
198097 [james.britt@] You mean "update every one single one of your gems with 'gem update'."

Module include matters ?
198104 [zimba.tm@gm ] I was playing with various modules and found something I can't
+ 198133 [rubyzbibd@ub] [Snip example]
+ 198157 [transfire@gm] This is called the "Dyanmic Module Inclusion Problem". And Pit is
  198185 [zimba.tm@gm ] Thanks both of you for your insight. I've created a small hack to fix that issue
  198219 [transfire@gm] Hmm... Doesn't seem to do anything.  Notice even without the above one
  198233 [zimba.tm@gm ] Hmm right, let me correct that
  198242 [zimba.tm@gm ] doh' I would need to find the children and not the ancestors [C] of

Where's the backtrace?
198106 [lists@ka am ] I'm probably misunderstanding the way things are supposed to work.
+ 198108 [collinsj@se ] begin
+ 198109 [M.B.Smillie@] The culprit is that you're rescuing the exception, and simply
  198113 [lists@ka am ] That's what I was missing, thanks!

Ruby servers under daemontools (svc)
198112 [banshee@ba s] I'm using ruby processes run under daemontools (on linux), and I'm not sure
198315 [jos@ca no k.] What does your run file look like? And what does readproctitle show, if

[ANN] vim 7 ruby omni-complete 0.6
198118 [segfault@ha ] It's been a while, but I'm back again with a new version.

exec() not returning to ruby
198132 [craigbeck@lu] sources = File.new 'file_list.txt'
+ 198135 [gwtmp01@ma .] I'm not a windows guy so I don't know exactly how exec is interpreted
| 198458 [craigbeck@lu] Great!
+ 198137 [nonocast@ho ] you should be use 'system' instead of 'exec'.
  198138 [nonocast@ho ] because 'exec' will replace the current process by running the given

Announcing Beta Release of GP Ruby.NET Compiler
198134 [w.kelly@qu .] We are pleased to announce the preliminary Beta release of the Gardens Point
+ 198149 [buppcpp@ya o] WOW!!
| + 198168 [mtrier@gm il] Nice work.  I wish you all the best.
| + 198317 [w.kelly@qu .] ...
|   198336 [huw@da kn on] That is correct. Though I should clarify that our current development is
+ 198211 [me@ja on li ] The download page gives an ASP error message.
| 198318 [w.kelly@qu .] ...
| 198345 [toalett@gm i] That's *superclasses*, not subclasses, right?
| 198442 [w.kelly@qu .] ...
+ 198221 [jgbailey@gm ] ...
  + 198229 [snowzone5@ho] i don't see a problem with that...maybe ruby 0.5.0 could be changed to
  | + 198251 [jgbailey@gm ] ...
  | + 198253 [nohmad@gm il] It seems to be a sort of quoting args problem on windows CLI.
  | | + 198258 [james.britt@] Microsoft Windows XP [Version 5.1.2600]
  | | + 198360 [snowzone5@ho] 4nt makes it a wee bit better.
  | + 198320 [w.kelly@qu .] ...
  + 198319 [w.kelly@qu .] ...
    198330 [tdjordan@gm ] Unfortunately this would limit the usefulness to me.
    198441 [w.kelly@qu .] ...

Installing irb in Ubuntu
198139 [minkoo.seo@g] ...
+ 198140 [foamdino@gm ] I used ubuntu recently and I recall that ruby was split into many
| 198141 [botp@de mo t] # is there any way to fix such a non-intuitive installation procedure?
+ 198142 [peter@ru yr ] I have been blogging more times about ubuntu and Ruby/Rails installation
| 198146 [botp@de mo t] # you can not even dream about 'sudo apt-get install rails'. Also, there
| 198148 [peter@ru yr ] Theoretically this sounds good, but i did not manage to install rails
+ 198155 [zoso@fo on e] Probably irb _depends_ on irb1.8 already, so you (probably) can just
+ 198159 [pgquiles@el ] charset="utf-8"
  198160 [snowblink@gm] IIRC that is was just poor naming on the meta packages.
  198161 [pgquiles@el ] charset="iso-8859-1"
  198163 [snowblink@gm] The data in the meta package is wrong.
  198239 [pgquiles@el ] charset="iso-8859-1"
  198467 [minkoo.seo@g] ...
  198472 [kijmail@gm i] to the official version, yes.    ruby1.9 should be there to.

Re: [QUIZ] [Solution (Quiz #83)]
198150 [gdey@ma .c m] My entry is simple, and not very complicated. At first I was thinking

bug in $. ?
198156 [wybo@se va y] def out; print "#$. "; end # print $. plus a space
198172 [rforum@gm il] * DATA.lineno is 7 (6 lines of code + the __END__ line), so the initial