190450-191501

190311-378284 subjects 190616-253562

Fishing in Ruby
190450 [fishing@fi h] sea =<<END_OF_SEA
+ 190451 [dblack@wo bl] But does it scale?
| + 190452 [Alan.Fritz@y] Are you doing this for the halibut? ha!
| | 190453 [warrenbrown@] Stop this before I write a poisson pen letter.
| | + 190454 [jason@pe sa ] ...
| | + 190455 [dblack@wo bl] Don't you want to know who the upstream author is?
| |   + 190456 [Alan.Fritz@y] are you returning all exceptions to Fishman?
| |   + 190467 [jesusrubsyou] I think the net result of this thread will be next to nil...
| |     + 190468 [dblack@wo bl] We'll sea.
| |     + 190469 [jake.mcarthu] I'm getting sick of ex-salmoning these stupid puns.
| |       + 190506 [jesusrubsyou] Perhaps Ruby book publishers believe that popular mailing list threads
| |       + 190523 [gregory.t.br] Yeah, it's a real pain in the bass. ;)
| |       + 190536 [sjc2000_uk@y] For sure, there's no plaice here for them....
| |         + 190537 [danielbaird@] ...
| |         | 190551 [Alan.Fritz@y] Yes, I agree. This is all becoming one big flaming fugu...
| |         | 190554 [syarus@gm il] I'm floundering around, hoping there will be a reel end to this
| |         | 190620 [gilesb@gm il] I think it may be a while before this thread hits its fin ish.
| |         | 190623 [jmg3000@gm i] Nah. This is just a fluke. The bad puns will abait any minute now.
| |         | 190632 [gilesb@gm il] You're right. We've definitely passed the point where anyone else will dive in.
| |         | 190633 [agorilla@gm ] Parsing all these bad puns is giving me a haddock.
| |         | 190634 [vladgalu@gm ] *chime* I subscribed to the list after this thread was started.
| |         | + 190635 [Alan.Fritz@y] It's a loooooong fish story....
| |         | + 190636 [agorilla@gm ] It's been sinking ever since.
| |         | + 190637 [syarus@gm il] Yes, a whale of a tail....
| |         | + 190638 [ruby@cr zy e] Welcome, it's good to see more people getting their feet wet with Ruby!
| |         |   190639 [Alan.Fritz@y] Yes we usually don't see this much carp over one thread but Welcome!
| |         |   190640 [charlie@ca t] ...
| |         |   + 190644 [robert.evans] That post sure hooked a lot of rubyists. Though some of the responses
| |         |   | 190647 [ruby@ph li .] Is there a porpoise to this thread anymore?
| |         |   | + 190648 [matthew.moss] Bass to leave it alone.
| |         |   | + 190649 [gregory.t.br] probably not, but it's sure made quite a splash.
| |         |   |   190661 [jesusrubsyou] Someone please put some actual Ruby cod in a post...
| |         |   |   190677 [znmeb@ce ma ] Could you say that again ... I'm hard of herring
| |         |   |   190678 [billk@ct .c ] Mahi-mahi, the lure of this thread.  Any usenet groupers joined the
| |         |   + 190652 [stuart@fo tw] ...
| |         |   + 190683 [dblack@wo bl] Darn, I *knew* I should have named my book "Ruby for Fly Fishermen Who
| |         |     + 190684 [vjoel@pa h. ] A Ruby Runs Through It on Rails ?
| |         |     + 190697 [dblack@wo bl] s/second/section/.  I plead jet-lag.
| |         |       191326 [jesusrubsyou] And here I thought this thread was dead.
| |         |       191417 [louis.j.scor] ...
| |         |       + 191418 [rubytalk@ea ] ...
| |         |       + 191468 [jesusrubsyou] Oh buoy, here we go again...
| |         |         191473 [kevin.jackso] Is this going to be one of those long-running OT threads that last forever?
| |         |         191491 [simonbarron@] I'm just waiting for the Perl fishers to join in.
| |         |         191501 [syarus@gm il] I'm too Bizet to mess with Perl fishers.
| |         + 190538 [syarus@gm il] Really, I second that flatly.
| + 190465 [jesusrubsyou] Now THAT was a groaner if I ever saw one.  ;)  hehehe
+ 190466 [jesusrubsyou] Just as I thought: Your code doesn't run.  ;)
  190470 [fishing@fi h] IRB can't handle the fish. It runs reel well using regular ruby command.
  + 190473 [Alan.Fritz@y] so your not fishing off the same platform?
  | 190493 [danielbaird@] ...
  | 190501 [phurley@gm i] I believe he was trolling
  + 190507 [jesusrubsyou] Can someone explain what's happening with the line, then?  Is it using

Ruby Drops
190457 [jake.mcarthu] This is the idea I am thinking of proposing for my Google Summer of
+ 190529 [jake.mcarthu] Come on, it can't be that bad of an idea! Is this really going to go
| + 190533 [gregory.t.br] I think that this idea would work better as a social network which
| | + 190535 [vshepelev@im] It is a very good point (I just tried to write something like this).
| | | 190571 [jake.mcarthu] That exactly what I'm going for... something that nobody else really
| | | 190592 [robothor@gm ] Just had a thought...  Something similar _has_ been done before, but
| | | 190596 [tom@in oe he] That is an interesting paper, thanks for the link!  He lists a couple of
| | | 190597 [matthew.moss] plagiarism in programming classes."
| | | 190601 [robothor@gm ] Must keep you busy, checking all those submissions... :-)
| | + 190567 [tom@in oe he] It's got a (very basic) Ruby parser.
| | + 190569 [jake.mcarthu] I do like the idea, but it's a different spirit from what I'm going
| + 190582 [kiaroskuro@g] Jake,
|   + 190586 [kiaroskuro@g] The cleaned-up code (which I call 'prozed') looks like the coloured
|   + 190624 [jake.mcarthu] You're right. It is very similar. We do, however, have slightly
+ 190530 [curi@cu i. s] Your idea sounds good to me. It'd have the additional benefit of
| 190566 [jake.mcarthu] I've already been working on this. Right now, I'm making a simple
| + 190568 [tom@in oe he] CPD uses the Burrows-Wheeler transform to find exact matches.  It has
| | 190572 [jake.mcarthu] Excellent find! Gives me some good algorithms to look up at the
| | 190594 [tom@in oe he] html
| + 190575 [ara.t.howard] it seems down at the moment, but this is close/perfect for your needs
| + 190587 [gene.tani@gm] (my 1st ruby-talk post not from Google groups )
| + 190598 [curi@cu i. s] What if the code functioned exactly the same plus some nasty side
|   190617 [jake.mcarthu] You have a point. This would not be caught. I see only a few
|   190619 [gilesb@gm il] I'm working on something similar also, although it's hardly even
+ 190654 [vshepelev@im] [skip]
  190672 [jake.mcarthu] a) You help others to not repeat themselves (obvious).
  190693 [alex@bl ck e] d) You find not only the bit you've already written, but also the bit

Google SOC Suggestion
190459 [james@gr yp ] A bug tracking mechanism that sucks significantly less than FogBugs!
+ 190460 [wilsonb@gm i] What would you like to see?  I feel pretty much the same way, but
| + 190461 [masukomi@gm ] ...
| + 190471 [james@gr yp ] The *number one* focus, should be on how quickly the developer can
|   190578 [masukomi@gm ] ...
+ 190462 [leavengood@g] Nothing can be as bad as the old version of HEAT we are using at my
  190474 [ray@wa mr om] Many people love FogBugz. It recently won a Jolt award.
  190475 [james_b@ne r] ...>

Google Summer of Code Suggestion
190464 [joshknowles@] ...

is_number function ?
190476 [tgate@my ub ] Is there a function in core ruby to determin if a variable is a number
+ 190477 [dharple@ge e] 1.is_a?(Numeric) # => true
| + 190479 [logancapaldo] Or Numeric === 1
| + 190491 [tgate@my ub ] Thank you.  I thought it was something to that effect.
|   190499 [wilsonb@gm i] Don't forget the question mark.
+ 190478 [james@gr yp ] => false

Possible Ruby Bug?
190480 [rtilley@vt e] require 'open-uri'
190504 [rtilley@vt e] I think using Kernel.open will correct it. Sometimes being more explicit
190555 [rtilley@vt e] Using Kernel.open did not correct this problem. I believe
190580 [phasis68@ho ] There was bug in taskscheduer module and fixed in CVS.
+ 190595 [rtilley@vt e] require 'open-uri'
+ 190850 [rtilley@vt e] How do I get the updated .so file? I got the cvs taskscheduler.c,
  190853 [Daniel.Berge] You'll have to build from source using a C compiler, unless Heesob or

getting the next line with the iterator
190481 [devlists-rub] I would like to know if there is a ruby way to achieve what I want to
+ 190482 [logancapaldo] list = []
+ 190484 [shanko_date@] ...
| 190485 [shanko_date@] ...
+ 190492 [work@as le m] Eric
| 190494 [work@as le m] Oh I forgot to say... anyone know how to avoid the horrible Perlism
| 190509 [devlists-rub] Thanks a lot everybody for all your good answers. Logan, this is exactly
| 190510 [daniels@pr n] I find this the most readable way to do it, though using generator is
| 190543 [simon.kroege] Well, yes. In the general case I would agree.
+ 190496 [agorilla@gm ] Something like this maybe?

Cosmological distances with ruby
190487 [cameron.mcbr] ...
190518 [jmg3000@gm i] Neat. Thanks for the link Cameron.
+ 190520 [ara.t.howard] if anyone is interested in playing with the gsl using the one-click-installer
| 190553 [cameron.mcbr] Very cool, Ara.  I'll remember that link!
+ 190558 [cameron.mcbr] Some might consider that a fair distinction between the two bindings,
  190561 [ara.t.howard] lastly, yoshiki's versions allows one to intermix narray and gsl routines
  190563 [nugend@gm il] Awesome!  This'll show James Gosling that Ruby's perfectly fine for

nil? takes much time
190488 [vshepelev@im] def stored?
190512 [logancapaldo] If you think about it, it's not all that surprising. false and nil
190514 [vshepelev@im] [skip]
190545 [shortcutter@] There might not be an easier answer to that: could be that some

nil? takes much time
190489 [vshepelev@im] def stored?

Ruby Size
190490 [kuppas@gm il] What would be the smallest ruby size?
190513 [eban@os ri .] % ls -sh miniruby
190650 [kuppas@gm il] Thanks for the tip and appreciate your help.
190673 [joevandyk@gm] Assuming you're running Linux...

ANN: Matchable 0.2
190497 [hubrix@gm il] ...

RMagick, win32, installs but won't load
190503 [belorion@gm ] ...
190508 [rmagick@gm i] It looks like something is requiring RMagick twice. What happens when

Implementing publish subscribe in ruby
190534 [bujji2352@ya] ...
190539 [pcdavid@gm i] If what you're looking for is a simple non-distributed observer
190546 [xuwang@mo or] If you want a publish/subscribe framework, I found freebase, which is the core of the freeride ruby IDE, elegant and powerful.
190549 [ml.chibbs@gm] ...
190557 [ml.chibbs@gm] ...

Re: Text Munger (#76)
190542 [robert.dober] My appologies to James and the list,

[Q] Object browser, Smalltalk like Ruby environment
190544 [xuwang@mo or] Does anybody know is there a Smalltalk like Ruby environment, providing
190547 [rosejn@gm il] Mike Austin has built a nice prototype environment, using ruby and
190548 [botp@de mo t] # Mike Austin has built a nice prototype environment, using ruby and

unsubscription
190550 [sarnaam123@y] kindly unsubscribe me from this group
190629 [jmg3000@gm i] ...

$SAFE question
190560 [simon.kroege] basically I just want to know if the code below is safe.
190792 [drbrain@se m] Yes and no.  While in C code Ruby's threads won't switch, so

ruby lib for debtags and dpkg
190562 [m4@po it .s ] Are there any efforts to write a ruby library for the debian packaging

time.parse fails for year values > 2037 (time out of range) in ruby 1.8.4
190564 [peter.krantz] I am trying to parse dates that take place in the future. When event
+ 190565 [farrel.lifso] Looks like the Unix time limitation. Unix based OS, like darin,  uses
+ 190680 [morris@wo fm] If you don't need the time and just the date, then Date seems to have a much wider range
| 190688 [peter.krantz] I specifically need both date and time. I find it strange that a
| + 190691 [rossrt@ro co] Depending on what you're doing, couldn't you maybe use two Times, one as
| + 190708 [chneukirchen] This is not a limitation of Ruby, but of your operating system.  If
|   190727 [peter.krantz] I don't agree. Other laguages typically implement this type of core
|   + 190731 [ray@wa mr om] No.
|   + 190735 [chneukirchen] Python however provides a native DateTime implementation since 2.3.
|   + 190745 [khaines@en g] irb(main):001:0> require 'date'
+ 190900 [drbrain@se m] $ ruby -rtime -ve 'p Time.parse("3000-01-01")'
  190954 [djberg96@gm ] Yes, but, BUT, you are limited to the year 2,147,485,547 on Solaris due

class returns value without method or attribute
190570 [krisleech@in] If I have a class how do I get it to return a value without specifying a
+ 190577 [farrel.lifso] You could overload the  methods you require.  For instance if you want
| 190583 [one.three@gm] $ cat money.rb
+ 190581 [gthiesfeld@s] class Money
| 190694 [krisleech@in] I like the idea of using inspect, will this also allow me to assign
| 190696 [shortcutter@] No, inspect will only affect output with p (or in IRB).
+ 190585 [rossrt@ro co] require 'delegate'

Rake tasks with parameters
190574 [one.three@gm] I have some Rake tasks (actually these are Rails tasks to load db

Ruby is the stuff Gems are made of
190576 [ xyz@ab .c m] Ruby is productive fun.
190579 [johnwilger@g] Just in case we needed another reason why the forum / mailing listgateway should go away?
+ 190584 [tanner.burso] ...
| 190621 [steve@wa ts ] I'm getting close myself.  But I would like to see the NNTP gateway un-die.
| 190659 [jesusrubsyou] -1
| 190662 [logancapaldo] 1) Don't allow anonymous posts
+ 190709 [chneukirchen] For telling the truth? }}:-)

[QUIZ] cat2rafb (#77)
190588 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 190591 [novakps@gm i] And we should submit our solutions to rafb (after the spoiler period),
| 190593 [james@gr yp ] As long as they make it here, I'm happy.  :)
+ 190778 [taschini.mli] #!/usr/bin/env ruby
+ 190781 [rossrt@ro co] ...
+ 190818 [wilsonb@gm i] I decided I didn't like rafb's Ruby highlighting, so I set up an
  190837 [leavengood@g] Wow, now talk about an interesting way of solving this quiz. You

Intra-module method calls
190589 [weyus@at .n ] I have a module named X
190590 [weyus@at .n ] Sorry, I wasn't clear enough - my question is why does the call to
190600 [zdennis@mk e] Is the following what you are doing ?
190602 [weyus@at .n ] I just want to have some utility methods for use by my app.
190606 [decoux@mo lo] Be carefull, ruby will not do what you think
190608 [weyus@at .n ] So, in normal language, does that mean that "private" is not meaningful

Ruby unable to parse my wsdl
190599 [simon@wi gi ] I'm trying to make Ruby talk to a webservice I'm working on, by having

regex loop yields single element array for multiple finds
190604 [xeno@es im .] markup.scan(/@@@/) do |ats|
+ 190605 [ara.t.howard] str.scan(pattern)                         => array
+ 190610 [dharple@ge e] "@@@asdfasdf@@@  @@@ lk;lk@@@".scan(/@@@/) do |ats|
+ 190614 [curi@cu i. s] irb(main):090:0* markup = "@@@asdfasdf@@@  @@@ lk;lk@@@"

how to create Class object with name determined at runtime
190607 [bill.roberts] I hope someone can help with this - I am a Ruby newbie.
+ 190611 [james@gr yp ] => nil
+ 190642 [johnatl@ma .] irb(main):001:0> a='String'
+ 190834 [benjohn@fy h] It (may be) worth noting that because classes are "first class

Counting words
190609 [Jamal.Mazrui] I've research this but am still having trouble getting it right ....
+ 190612 [marcel@ve ni] class String
| 190710 [chneukirchen] class String
+ 190613 [u.alberton@g] I'm a bit of a nuby, and this is my first post to the list, but I
| 190615 [u.alberton@g] number_of_words = string.split(/\s+/).length
| 190646 [collinsj@se ] Just plain string.split.length will work as well, and should handle line
+ 190627 [shortcutter@] s.scan(/\w+/).size
+ 190645 [johnatl@ma .] irb(main):020:0> a="This is a test."
threads.html
top