256660-262622

256428-257157 subjects 256859-261010

Error installing gem
256660 [cypher.dp@gm] I just tried to install the "neuro"-gem. But the install process fails
256668 [AEtzold@gm .] the error you get is due to the fact that the
256808 [cypher.dp@gm] Thanks for the answer.

Error using Tk
256663 [cypher.dp@gm] When I try to use the Tk extension I get an error that the "tk84.dll"
256666 [akbarhome@gm] Install tk first.
256671 [cypher.dp@gm] Thanks a lot !
262570 [joviyach@gm ] I am having similar problems with Ruby and Tk, I installed Tcl (which
262622 [joviyach@gm ] This is now working.

Regexp to split name?
256675 [maccman@gm i] Does anyone have an example of splitting a name into first and last
256676 [bulliver@ba ] I'd say a regexp is overkill here.
+ 256678 [dblack@wo bl] And also last names with spaces in them (von Trapp, Vaughn Williams,
| 256879 [alex@bl ck e] And titles with spaces in them (The Honourable, His Excellency, etc...).
| 256884 [m.fellinger@] And international names (though the US seems to have a broad
| 256885 [alex@bl ck e] Can open.  Worms everywhere.  :-)
+ 256899 [dan.stevens.] name = "Mr John Joe Peter Smith"
  256903 [dblack@wo bl] Have mercy on us Yanks and allow for a period :-)
  256906 [alex@bl ck e] name = "The Honourable Lord Andrew, the Baron Lloyd-Webber of
  256927 [dan.stevens.] Agreed. My example makes very simple assumptions that I'd imagine
  256940 [aledonne.lis] I worked at an institution that was forced to rewrite a bunch of
  + 256962 [vjoel@pa h. ] Not to mention the assumption that each name consists of symbols that
  + 257200 [rick.denatal] Reminds me of an old SF story "The Man Whose Name Wouldn't Fit."  IIRC
    + 257204 [dblack@wo bl] I sometimes wonder whether the DECtapes in my attic would still be
    + 257206 [_mwryder@wo ] I assume you meant that his name was one character too long, not that

Beginner's question on methods
256680 [bostonantifa] I'm new to Ruby, having worked with Perl the past couple of years.  I'm
256681 [TimHunter@nc] You never initialize the 'counter' variable so it's default value is
256697 [bostonantifa] Tim,

Viewing some links!
256683 [feduz81@ho m] ididnt know which is the right place to do so the other post is on RoR
256684 [feduz81@ho m] I just tried it with a simple if else statment inside the view and it

IRC Transcripts in Instiki and Markdown
256685 [levander404@] I haven't found a way to easily markup IRC transcripts in Markdown on
256696 [rking@pa op ] You definitely need to escape them one way or another.
256728 [levander404@] Thanks rking.  Indenting every line 4 space in the IRC transcript did
256737 [rking@pa op ] Not to plug my own war3z, but it was exactly things like that that

eruby and mod_ruby
256687 [maildelivery] Can someone explain to me what the (performance) difference between
256864 [maildelivery] Anyone? :(

Can't include a module in Enumerable?
256690 [transfire@gm] irb(main):002:1> module Z
+ 256707 [rick.denatal] It's not the instance, it's the class Array, and that existed (and
+ 256708 [gregory.t.br] ?>   def each
+ 256762 [pit.capitain] class Module
| 256771 [transfire@gm] Pit Smack Down! You go and solve the Double Inclusion Problem just
| 256777 [pit.capitain] Tom, thanks for the kind words, but it's really not so hard to find
| 256791 [transfire@gm] Okay, I'm being a bit hyperbolic. But you deserve it anyway. I was
+ 256769 [robert.dober] Just reinclude Enumerable, well that seems to be the simplest way to

Land use
256693 [caduceass@gm] Okay, I was going to make the subject "Trepidus use of Ruby, again"

Trouble with scrolling on a TK frame
256698 [the_supernov] a few days in this group.
256739 [m_goldberg@a] Perhaps this example will help. It's pretty rough, but I think it
256779 [the_supernov] Thanks a lot!
256784 [m_goldberg@a] I suggest you also change

html -> redcloth
256710 [mike.cahill@] ...
256712 [gregory.t.br] I think that it's still under development, but you might try ClothRed

Named/positional method args
256713 [bulliver@ba ] I have a method here that takes two arguments. Both are optional, with
+ 256715 [TimHunter@nc] The standard technique for doing this is to use a hash with symbols for
+ 256716 [dblack@wo bl] You're performing a local variable assignment.  Try this and you'll
+ 256717 [gregory.t.br] No, that just becomes write_picture(1)
| 256719 [gregory.t.br] { foo : 2, bar : 10 }
| 257084 [rick.denatal] Yep, a little more syntactic sugar, or maybe saccharine, since it
+ 256721 [bulliver@ba ] Thanks guys!
  256723 [bulliver@ba ] # Writes embedded images to a file
  256733 [transfire@gm] Bingo.
  256735 [gregory.t.br] Yuck.
  257098 [transfire@gm] Is the "formalist" in you disturbed by this?
  + 257100 [gregory.t.br] No.  What disturbs me about it is that it doesn't fit well with Ruby
  + 257102 [robert.dober] Not so fast Tom, not my generation, we have come from Assembler or
  + 257112 [dblack@wo bl] Nothing that abstract or sweeping is at stake.  (I don't think
    257143 [transfire@gm] Is it limiting? Rubyists (myself included) love to wax grand about the
    257150 [robert.dober] I do not know Tom, one application springs into mind, I am generating
    257188 [transfire@gm] That's a pretty good example. It's easy to effect because it's based
    257197 [rick.denatal] Note the subtle shift here, the TYPE consists of a set of expected
    257210 [robert.dober] That one hurts all my apologies. c.f. my new signature BLUSH

Secondary user groups
256714 [GGarramuno@a] require 'etc'
256720 [GGarramuno@a] Never mind.  Found how to do it.
256732 [gregory.t.br] Well how did you do it? ;)
256861 [djberg96@gm ] groups = []

Non-blocking IO & Maxima
256724 [jesse.d.merr] Ok, here's something that seems wierd. While writing some code to call Maxima
256736 [akr@fs j. rg] I think it is caused by that maxima is slower than ls.
256780 [jesse.d.merr] Ah, thats it, thanks. I wasn't thinking about the delay between typing lines

Ruby 1.9 : What is the use for Proc#yield
256725 [gregory.t.br] I'm reading through Mauricio's list of changes[0] to Ruby 1.9 and
+ 256726 [gregory.t.br] whoops, forgot to link.
+ 256786 [matz@ru y- a] It's mere alias to call, just to describe the intention to invoke it
  256789 [gregory.t.br] Thanks for clarifying this.

regexp questions
256727 [mikejaystein] ...
256765 [dan@fl en ra] Could you give an example of where it isn't working in the first case?
256797 [wyatt@dr gg ] I like to be very strict with things like quotes (and underscores in this c=
256809 [grzm@se sp t] From a strictness point of view, what's the difference between /(.+?)
256854 [mikejaystein] ...

Re: Web Ruby w/o Rails
256729 [mike.cahill@] Emil -  what are you using as a web server?  Platform?  Configured to recognize and run ruby files?  You said you can't get it to work, but what does that mean?  What happens on the browser?  What appears in the logs?
+ 256734 [mark.gallop@] It has instructions for serving your app with lighttpd and apache.
| 256738 [james.britt@] Take a look at Nitro.
+ 256796 [hermann.mart] Add an HTTP background and you will be fine.  :-)
+ 261060 [eleanor@ga e] If you want some examples of how to do this stuff from scratch, my

Signal handling problem in ruby
256740 [rubylearner@] ...
256790 [florian.assm] Make sure you trap the signal in the thread you put your main sleep,

Newbie Question Passing variables to methods
256741 [starke1120@h] Im trying to set up a method and pass a varible to it then out put the
+ 256743 [gregory.t.br] #---
+ 256752 [m_goldberg@a] A simple approach is to add one line of code at the end of your
+ 256766 [shortcutter@] No.  You pass the value of "var1" in, i.e. the object which "var1"
+ 256800 [hermann.mart] What you want to do is a "call by reference".

Changing enum_obj
256745 [transfire@gm] Anyway to change an Enumerator's enum_obj in place? Enumerator doesn't
256747 [james@gr yp ] Knowing that an object is Enumerable doesn't tell you anything about
256750 [transfire@gm] On Jun 24, 12:26 am, James Edward Gray II <j...@grayproductions.net>
256774 [transfire@gm] Wait. Yes, the #collect! method isn't going to fly, but if I could

[QUIZ] LSRC Name Picker (#129)
256748 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 256749 [james@gr yp ] Sorry the quiz was late this week.
| + 256759 [robert.dober] puts "Robert Dober"
| | 256785 [dangerwillro] My suggestion to everyone: the Takahashi Method...
| + 257065 [florian.assm] I refactored my code a little, so the e-mail I sent directly to the ml
+ 256753 [znmeb@ce ma ] 1. Does it *have* to run on a Macintosh? I don't have one to test on!
| + 256755 [m_goldberg@a] I don't see any mention of a Macintosh in the quiz description. What
| | 256757 [znmeb@ce ma ] What moves me to ask this is that every Ruby conference I've been to so
| | 256788 [caduceass@gm] Here's diabolical for you.  Well, maybe not diabolical, but sinister
| | 256802 [caduceass@gm] I have to apologize a little bit for saying that.  The post comes
| | 256804 [james@gr yp ] I don't find this one two related to the problem.  Whatever is in the
| + 256792 [james@gr yp ] I would think it's always an advantage to have your program run on as
+ 256787 [dangerwillro] How is the list stored/ input? CSV? Or is it undetermined
| 256793 [james@gr yp ] You can determine a suitable input format.  Just make it easy to
+ 256806 [m_goldberg@a] 1. The app has a Pick button and a new winner is selected each time
| + 256828 [james@gr yp ] I meant each time your application is started (#2).  I can see where
| | 256830 [znmeb@ce ma ] Yeah ... and typically from the two Ruby conferences I've been to, it
| + 256829 [robert.dober] Honestly I am rude Morton, because I am jealous ;). I have read your
|   256832 [m_goldberg@a] I just thought that they might award all the prizes in one session
|   256868 [robert.dober] Psst, already implemented -- well with certain Plugins :)
+ 257036 [showaltb@gm ] * What can I do in an hour?
+ 257542 [m_goldberg@a] I tried to submit my solution but the mailing list rejected it as too
  257551 [james@gr yp ] You may send it to me off-list.  I will host it from the Ruby Quiz site.
  257552 [m_goldberg@a] Thanks, James. I'll do that. Do you think it might be a good idea to
  257600 [james@gr yp ] I think just providing a link to get the application is sufficient
  257604 [m_goldberg@a] ...
  257724 [caifara.subs] ...

Enumerator for elementwise too? [was: Changing enum_obj]
256754 [transfire@gm] Well, I might as well bring up the reason I asked about enum_obj...
256760 [robert.dober] Apart the magic dot notation that is *exactly* what I am doing in Labrador.
256770 [transfire@gm] Ah, so you overloaded #map with this functionality. That's similar to
256772 [robert.dober] Facets is great but Labrador is mine, what does that mean: I have the
+ 256773 [transfire@gm] I think that's right, * takes precedence. So you're getting the result
| 256781 [robert.dober] Oops , thx Tom.
+ 256778 [transfire@gm] Yes, but #each is taken too ;) I though about #each? though.

Re: [QUIZ] - Off topic
256756 [phillipsds@y] James,
256795 [james@gr yp ] Thanks.  That's very kind of you to say.

Parameterizing REXML::XPath expressions
256763 [brianthomson] I'm struggling a bit with what I think should be straightforward.

Parameterizing REXML::XPath expressions
256764 [brianthomson] I'm struggling a bit with what I think should be straightforward.

[ANN] LRUG Nights - Episode #1 "Pursuit" - Tuesday 26th June
256775 [murray.steel] ...

Ruby Quiz Problems  (was Re: [QUIZ] LSRC Name Picker (#129))
256794 [james@gr yp ] Those of you following along closely have probably noticed that Ruby
+ 256799 [robert.dober] Forgive me to be astonished and overly curios, was there any
| 256803 [james@gr yp ] Well, I upgraded from Ruby 1.8.5 because of a bug I ran into there.
| 256805 [cdcarter@gm ] Maybe the next RubyQuiz is write the software to run RubyQuiz! :)
+ 256801 [m_goldberg@a] It's not an inconvenience. I'm glad. I was going to pass on this one
+ 256849 [ruby@an hr p] So, er, when does the spoiler moratorium period end this time? Next Sunday?
  256862 [james@gr yp ] 48 hours from the time on the quiz message, just like always.

Helper to create multi-dimensional arrays
256811 [pi@pi os .u ] I came up with this method really quick to create x*y arrays in Ruby. It
+ 256814 [gregory.t.br] I'm far too lazy.
| + 256815 [gregory.t.br] Arg. don't do that. it makes the same array for each. :-/
| + 256902 [lloyd@2l ve ] But that does not quite allow the free use of method calls.  e.g. dice
|   256904 [gregory.t.br] I posted again saying you shouldn't use the approach I mentioned
+ 256839 [dan-ml@da 42] What about making it more general than just x*y arrays?
  + 256848 [pi@pi os .u ] you all
  + 257365 [adi.mahajan@] This is great. Finally a sensible way to create multi-dimensional

Re: ri broken? (newbie, hopelessly confused)
256812 [ncfocus2003@] My ri is broken too, and I *need* it since without it I do not know WTF
257007 [ml.chibbs@gm] If you are using Instant Rails you should use fxri which is a

html to plain text
256813 [bladenut@gm ] Okay, I have played with Hpricot and I am a convert. Amazing stuff.
+ 256817 [florian.assm] require 'rubygems'
| 256822 [caduceass@gm] This code (above) doesn't work on my system.
| 256823 [caduceass@gm] Another "jump too soon moment".
+ 256818 [cmshea@gm il] It looks like you're looking for the inner_text method.

Ruby Debugger
256816 [   ds@ia .n ] Ruby nuby here.
+ 256819 [vinson.lists] What I tend to do is load the debugger, then set a breakpoint at the line in
| 256831 [   ds@ia .n ] Thanks Jason, that definitely helps.
| 256840 [bladenut@gm ] Does anyone know of a gui ruby debugger for OS X?
| + 256846 [znmeb@ce ma ] Not sure this is strictly a "GUI Debugger" but Komodo does run on OS X
| | 256851 [bladenut@gm ] Wow. $300. This must be a kickass debugger. I'll take a look, thanks.
| + 256882 [martin.kraus] Don't know how much of them run on OSx. I know that at least NetBeans
| | 256896 [znmeb@ce ma ] Does NetBeans run with the standard Ruby, or only with jRuby?
| | + 256948 [charles.nutt] It runs with either. JRuby is set up by default, but there's a
| | + 256950 [martin.kraus] Yes. Actually until jruby-debug (Fast Debugger for JRuby) is available
| |   256952 [alexey.verkh] 1. gem install ruby-debug
| + 256889 [david@vi io ] Have you tried using eclipse and the ruby IDE built on it?
+ 256820 [vinson.lists] Btw, you are most likely seeing this b/c you have "-rubygems" in your

New gem for instantiating nested objects
256827 [craig@me or ] ...
+ 256869 [twifkak@co c] There looks to be overlap with Mocha
+ 256942 [craig@me or ] ...

variables to call methods in ruby...
256835 [harnishb@am ] This is Harnish.  I was just wondering if I could call methods using
+ 256836 [adam.boz@gm ] ...
+ 256837 [TimHunter@nc] var = "func"
  256843 [yermej@gm il] var = "func"
  256844 [peter@pe er ] You can, but in case you're wondering the whys and wherefores of all
  256852 [adam.boz@gm ] ...
  256853 [dblack@wo bl] It's really more for cases where 'send' is used for something totally
  + 256856 [adam.boz@gm ] ...
  + 256857 [peter@pe er ] David illustrates it better than I did, but the basic "rule" I tend to

Command in backticks hangs? (OS X, 1.8.6-p36)
256841 [TimHunter@nc] I'm running ruby 1.8.6 (2007-06-07 patchlevel 36) [powerpc-darwin8.9.0]
+ 257116 [TimHunter@nc] Following up to myself: I uninstalled 1.8.6 patchlevel 36 and replaced
| 257165 [james@gr yp ] If anyone has a minimal script that shows this error, please share
| 257217 [TimHunter@nc] Oh, great. I re-installed 1.8.6-p36 and the script runs normally now.
| 257219 [james@gr yp ] I'm pretty sure the issue is related to threading.  It would always
| 257231 [james@gr yp ] Yes, both myself and an Apple employee were trying to follow that
+ 257125 [james@gr yp ] That's the second time I have run into the bug too, unfortunately.
  257127 [TimHunter@nc] Thanks! I just hope it's not broken in the version that will ship with
  257142 [james@gr yp ] Yeah, I fear that myself.  It would hurt the use of Ruby as a

insert marshall'd data into mysql
256845 [beingthexemp] Hey all.. what methods can I use to safely insert Ruby marshall'd data
256847 [peter@pe er ] Use a BLOB column. MySQL treats BLOB columns as 8 bit binary data.
256850 [beingthexemp] someObj= {:one => 'two', :three => 'four'}
256855 [peter@pe er ] Use parameter binding. Not sure what library you're using, but with
256858 [beingthexemp] I'm using the mysql library for Ruby. Not sure about the paramter
threads.html
top