243712-248322 subjects 244205-248992

^ Binding or executing a command with a TkOptionMenubutton
243984 [alex.decaria] I want my program to execute a command whenever a new selection is made
243997 [nagai ai.kyu] For example,

^ [ANN] HTMLEntities 4.0.0
243985 [pbattley gma] I wrapped up and released a new version of HTMLEntities last night.

^ Splitting A String
243986 [boss airblad] 'a quick "brown fox" jumped "over the lazy" dog'
+ 243988 [frdrch web.d] require 'csv'
| + 243990 [james graypr] Wow, that's mighty clever.  I didn't even think of trying that.  Nice
| + 243994 [boss airblad] Nice!
+ 243989 [satish.talim] Do this -
| + 243991 [james graypr] Not quite the same.  Look again.  ;)
| + 243995 [frdrch web.d] This was also my first idea, but
|   + 243996 [satish.talim] Sorry, I goofed!!
|   + 244007 [kyleaschmitt] OK this was my answer, but it didn't quite work...
+ 243998 [fxn hashref.] str = 'a quick "brown fox" jumped "over the lazy" dog'
| 243999 [fxn hashref.] Heh, reading it I recalled there's a more specific idiom for that
| 244001 [fxn hashref.] Sorry, that regexp was part of a test and got copied by accident. I
| 244002 [shortcutter ] irb(main):010:0> require 'enumerator'
+ 244000 [logancapaldo] #!/usr/bin/env ruby
+ 244003 [brendan.bald] s = 'a quick "brown fox" jumped "over the lazy" dog'
| 244004 [fxn hashref.] Preserving part of the separator is a good trick, but the split
+ 244091 [louis.j.scor] Not a good solution by any means, but somebody might find it
+ 244103 [george.ogata] If you're looking for shell-quoting-like behavior, I actually think
  244302 [boss airblad] Thanks for the pointer -- I didn't know about Shellwords.

^ Ruby 1.8.6 One-Click Installer
244006 [dejan.dimic ] Does somebody know when the Ruby 1.8.6 One-Click Installer will be
244187 [dave dj-soft] I too would like to know this ?
+ 244189 [vjoel path.b] The OCI isn't the only way to go, though it may be worth waiting for.
| 244193 [znmeb cesmai] It's definitely worth waiting for!
+ 244199 [ml.chibbs gm] I just released it a few minutes ago.
  244216 [sigma.kappa ] And it's available here: http://rubyforge.org/projects/rubyinstaller/
  244241 [rubynando ya] I think you need to send an e-mail to webmaster@ruby-lang.org, may be
  244262 [dejan.dimic ] You are my heroes!

^ Capistrano/Rake integration is deprecated
244016 [encapsulin g] I'm trying to include capistrano support into RoR application, as
244018 [Rob AgileCon] It just means that the rake tasks for calling capistrano recipes is
244028 [encapsulin g] On Mar 16, 7:39 pm, Rob Biedenharn <R...@AgileConsultingLLC.com>
244034 [Rob AgileCon] Are you sure you have the subversion repository path correct?  Can

^ Newbie question about ActionController (I suppose) behavior
244021 [paulo flying] I am pretty new at Ruby and, as such, I am full of questions and
244120 [jan.svitok g] search for metaprogramming, or class methods or singleton methods

^ The philosophy of failed pings
244022 [djberg96 gma] I need some advice. I recently received a bug report for
+ 244029 [damnbigman g] 100% loss sounds like an absolute failure to me, at least with a vanilla "Is
+ 244085 [robert.dober] Normally I try to look it up myself, but right now I am a little bit
+ 244086 [gwtmp01 mac.] I'm not sure I understand.  Net::Ping::External#ping(host) was
  244100 [djberg96 gma] Yes. In all of my past experiences when that happened there would be
  244117 [garbagecat10] This is probably silly, but ping isn't that hard. Couldn't you just
  246192 [djberg96 gma] On Mar 17, 6:01 am, "Francis Cianfrocca" <garbageca...@gmail.com>

^ Re: Google Summer of Code (please forward)
244025 [mneumann nte] Is there a place where proposals are collected other than the thread on
244026 [mneumann nte] Is there a place where proposals are collected other than the thread on

^ Need feedback on improving Ruby code
244027 [bcparanj gma] require 'print_receipt'
244030 [frdrch gmail] Beware the assert_* methods expect at first parameter the *expected*

^ Re: [Slightly OT] Case against ".*" regexp
244037 [shortcutter ] Not exactly.  But you should not use ".*" nested in another starred
+ 244039 [frdrch gmail] Did you probably mean this thread?
| 244069 [robert.dober] Hmm I am not sure this one was what OP meant, was there not a problem
| 244104 [timx nospam.] I don't remember seeing anything that explicitly states that you should not use
+ 244062 [B.Candler po] And also eats as much string as it can without causing the regexp to fail -

^ JRuby rails-integration release announcement
244040 [robert cs.au] Recently rails-integration 1.0 for JRuby was released.

^ Issues using array.delete within a loop of the same array
244041 [james.d.mast] This is a simplified example for what I'm trying to do but gets the
+ 244044 [TimHunter nc] Use  #delete_if instead.
| 244057 [james.d.mast] Thanks - I tried that and it also did not work.  Sorry for not posting
| + 244058 [gavin refine] Kindly suggest that you RTFM by typing "ri Array#delete_if" into your
| | + 244064 [robert.dober] This is a nice alias for a.clear ;)
| | + 244076 [james.d.mast] I did RTFM before posting.  The question in my original posting was
| |   244083 [robert.dober] The code I posted was version 1.8.5 p12, and of course I should have
| + 244061 [TimHunter nc] #delete_if itself iterates over the array elements. You don't need to
+ 244045 [mental rydia] a = [] creates a new, empty array; it does not empty the existing array.
| + 244059 [james.d.mast] Yup, good point.
| + 244080 [gwtmp01 mac.] Maybe better to say that the behavior is implementation
+ 244049 [fedor.laboun] Now this is pure speculation on my part and I'm not offering a solution to
| 244066 [robert.dober] Let us see
+ 244063 [gavin refine] a = [1,2,3,4,5]

^ Executing shell commands from Ruby...  again.
244042 [kevin.skrene] I'm not only very new to Ruby, but also to server side programming in
+ 244043 [frdrch gmail] # -- BEGIN OF EXAMPLE
| + 244048 [kevin.skrene] tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
| | 244053 [stefano.croc] Are you sure that the second END_OF_STRING is right at the beginning of the
| | 244075 [kevin.skrene] Well, I didn't have any indenting going on, but the <<- syntax fixed the
| | 244111 [shortcutter ] The output of system goes to stdout.  If you want to capture it the
| + 244051 [shortcutter ] system <<CMD
+ 244046 [alexey.verkh] While trivial on *nix, this task is not as easy as it should be on Windows.

^ yield
244060 [0011 hush.co] def printer()
+ 244065 [B.Candler po] It can. Your second function 'printer' takes one argument plus one block.
| 244073 [0011 hush.co] oh ok, my understanding for some reason was that the method was going to
| + 244077 [perrin apoth] I'm just guessing here, but . . .
| | + 244078 [0011 hush.co] its not that i am looking to get any specific result its that i am
| | + 244079 [0011 hush.co] When i do printer("ball") i am putting the string ball in the arg
| |   + 244084 [gwtmp01 mac.] Forget the block for a moment.  Your question pertains to method
| |   + 244087 [perrin apoth] Methods are not persistent things -- they are actions taken by objects.
| + 244098 [dblack wobbl] The two calls to printer are unrelated to each other. Each of them
+ 244068 [matthew.moss] Good.
+ 244102 [lists bertra] How did you get this working? Both `printer' calls will
  244109 [dangerwillro] Bertram, some code is not supposed to work.

^ Beginner learning Object in Ruby
244089 [changtianema] I am new to object-oriented programming and Ruby. Although I learn some
244090 [cmdjackryan ] Two good resources that helped me a lot, are Chris Pine's Learn to
244093 [changtianema] Wow, Thanks for the prompt reply from whoever he/she is.
+ 244113 [huw DELTHISB] You may also try my Little Book Of Ruby which is a PDF download.
+ 244115 [shortcutter ] I think Why's guide does not work very well in printing because of the
  244290 [changtianema] I have found the link to download the online book :-
  + 244291 [hhausman gma] hth,
  | 244292 [gavin refine] See also: http://www.google.com/search?q=define:UML
  + 244343 [michael.bevi] An absolutely massive modeling language for describing and designing object

^ OCR in ruby
244094 [ben.wyrosdic] does anyone know of an OCR library in ruby or one that can be called
244105 [timx nospam.] I don't know of a specific ruby library to do this. However, there is a GNU OCR
244167 [ben.wyrosdic] that worked beautifully ... I use imagemagick to convert the image to

^ Netbeans Ruby IDE
244106 [brewin gmail] I've been intrigued by Ruby for a while and recently decided to learn
244131 [perrin apoth] Have you had a look at FreeRIDE?  I'm not much of an IDE guy myself -- I
244175 [znmeb cesmai] I think Curt removed FreeRide from the most recent one-click, although I
244178 [matthieu.rio] Cheers,

^ Problems with gmailer
244112 [planetthough] I'm a newcomer to Ruby in general and to the Gmailer (version 0.1.5)
244169 [jan.svitok g] sure ;-)
244180 [planetthough] Okay, looking at protocol.rb, on line 52 appears the following

^ [ANN] RSS Parser 0.1.7
244116 [kou cozmixng] * Atom support

^ Variable confusion for newbies
244118 [rick.denatal] I've noticed a quite a few postings here of late by ruby newbies

^ IRB as test interface to existing object
244119 [B.Candler po] I have some object classes to which I want to add an interactive
244139 [vjoel path.b] The following drops into (or _back_ into) an irb session. (Customizing
244143 [B.Candler po] This works perfectly, thank you (great to get command history!)

^ attr_accessor
244125 [0011 hush.co] wow this attr_accessor thing is really great i can see this saving ALOT
+ 244129 [dangerwillro] Indeed!
| + 244133 [dblack wobbl] I agree with your assessment of David's work but he can't be given
| | 244142 [dangerwillro] Oh, I don't mean to give him credit for that, but for recognizing
| | 244149 [dblack wobbl] Yes, definitely.  The use of standard Ruby idioms as the basis for
| | 244150 [0011 hush.co] I have no idea what you guys are talking about but whatever it is i'm
| + 244338 [coder68 yaho] I am getting the same feelings reading this as experiencing Leo
+ 244202 [no.spam plea] If you want to check that assigned values are valid at the
  244232 [dblack wobbl] Wouldn't it be better to call that checked_attr?  I'm just thinking
  244281 [no.spam plea] You have the choice of using class checking or block-based checking,
  244284 [dblack wobbl] It does indeed sound quite versatile.  That, too, puts me in mind of
  244300 [no spam.plea] My bad. I was using throw when I thought I was using raise.

^ attr_accessor question
244126 [0011 hush.co] how come this doesnt worh though?
+ 244127 [rick.denatal] You don't say HOW it's not working.
+ 244128 [stefano.croc] Animal.new creates an instance of class Animal and calls its initialize
+ 244130 [mguterl gmai] Your Animal.new is expecting you to pass in color and size.
  + 244132 [0011 hush.co] ah ok i understand that i am just learning all this OO stuff i just
  | + 244135 [stefano.croc] Whenever you call the new method of a class, it calls the initialize method of
  | | 244137 [0011 hush.co] So i have to use the age accessor in an initialize method? i dont
  | | 244138 [stefano.croc] puts "Now the size of the animal is #{animal.size)"
  | | 244141 [rick.denatal] Actually the setter should be
  | | 244151 [stefano.croc] Do you mean I should put value into brackets? If so, why? To me, it seems that
  | | + 244158 [rick.denatal] I guess it's a matter of style.
  | | | 244163 [gwtmp01 mac.] You know how the coding style found in "The C Programming Language"
  | | + 244165 [dblack wobbl] It looks a bit unusual, not having parentheses or at least a space.
  | + 244172 [gavin refine] Ruby also has a nice class named Struct for easily creating classes
  + 244134 [0011 hush.co] now why when i add this new attribute attr_accessor :age i get the error
    244136 [stefano.croc] error.
    244140 [0011 hush.co] ah ok man just a simple parentheses i hate when that happens,
    244157 [sepp2k googl] Some editors offer a feature where opening or closing parantheses, brackets or

^ inheritance question
244145 [0011 hush.co] I am trying to figure out how inheritance works using the super method.
+ 244146 [rick.denatal] super(color,age)
| + 244147 [0011 hush.co] i Know but i initialized all of them in this statement though I
| + 244148 [0011 hush.co] oh you just use 1 super method for all the args in the super class's
+ 244152 [o.renaud lap] I have read the questions you posted the last few days, and I would like to
  244159 [0011 hush.co] Alright thanks for the information. I knew what the error message meant
  244162 [gwtmp01 mac.] Your thought to look at 'ri super' makes sense.  Unfortunately, 'super'
  244181 [0011 hush.co] oh ok thanks i didnt know that either, i am learning alot of stuff today

^ Strange Ruby Issue in SciTE - Won't Parse First Input
244153 [me michaelbo] very dead there so here I am.
+ 244154 [michael.bout] bye_response = 0
+ 244155 [ dak gnu.org] No, you have to press enter once for the while loop to start, and
  244156 [michael.bout] Ah, that makes sense. Thanks a lot for your help David :)

^ Mixin Classes
244164 [hsolter gmai] Although I am a seasoned C/C++ programmer(+10 years), I am

^ mixin classes (continuning from the last post)
244166 [hsolter gmai] Although I am a seasoned C/C++ programmer(+10 years), I am relatively
244168 [gwtmp01 mac.] Just a guess but I suspect your problem is that you've effectively
+ 244170 [shortcutter ] While this is true, at least @dependencies should be properly
+ 244171 [hsolter gmai] On the contrary, it's the original version that executes not mine.
  244174 [gwtmp01 mac.] It looks like REXML already provides the two
  244179 [hsolter gmai] well my sorting criteria something different from that.Consider this;
  244184 [gwtmp01 mac.] Then you are going to have to implement Tsort over a different type

^ gets() makes my Ruby hang...?
244173 [pythonusr gm] I'm using Ruby 1.8.5, with SciTE as my IDE.
+ 244176 [its.sec gmx.] I don't think that is what you want, more likely you want something
| 244228 [pythonusr gm] No. It doesn't take anything in. It just hangs there, until I exit the
| 244304 [griffin.kev ] I had this same problem, run it from the command line and it will be
+ 244177 [cmshea gmail] There's a well-discussed issue with Windows, Scite, and stdin.  It's
| 244579 [eric.jacobon] $stdin.sync = true
+ 244399 [stefan mahli] print "What is your name? "

^ using tcp port via socket on windows 2000 server
244186 [seannakasone] Here's a very simple ruby app that will listen to tcp port 9990.  It
244212 [B.Candler po] I don't have a Windows 2000 machine, but I think in any case you'll need to

^ Re: Splitting a String
244195 [renard nc.rr] From a newbie
244213 [B.Candler po] However that splits into individual words. If you look carefully at the

^ Golfing the Farey Sequence
244196 [gavin refine] A Farey Sequence is all the fractions between 0 and 1 (inclusive) with
+ 244419 [john.carter ] Here's a cheap shot :-P
| 244422 [gavin refine] I don't think there are any cheap shots in golf...except those that
| 244428 [john.carter ] Drat! You're right. I didn't notice N went into the front of the sequence.
| 244432 [john.carter ] Low as in the ethical sense, not the byte count.
| 244434 [rakrok gmail] N=7
+ 245441 [ bob msu.edu] Longer, but builds numerator/denominator arrays based on direct
  245459 [ bob msu.edu] Here's a minor improvement on size (Still keeping N as parameter).

^ accessing methods from the blocks caller
244197 [noname nonam] Sorry if this has been asked many times before, but I'm having a hard time
+ 244208 [noname nonam] Taking a better look at my pickaxe book, it seems as though this is simply a
| 244211 [eden.li gmai] $ irb
+ 244209 [eden.li gmai] In the three cases I could think of, "method1" was always available to
| 244256 [noname nonam] I'm experiencing the issue using Rails.  I wanted to leave mention of Rails
| 244258 [B.Candler po] This is a rails issue. The *controller* and the *view* are two separate
| 244260 [B.Candler po] accessed from within the view by using the 'controller' accessor. e.g.
+ 244214 [B.Candler po] As people have said, this *should* work. Post a complete example where it

^ [ANN] One-Click Ruby Installer 1.8.6-25 released!
244198 [ml.chibbs gm] This release of the One-Click Ruby Installer for Windows upgrades Ruby to

^ Ruby and Mobile
244200 [sunrayson gm] Are there any ruby applications that are written for mobile devices
+ 244206 [guido sohne.] I've written some Ruby applications that use Rails to deliver SMS
+ 244207 [collinsj sea] There is the WinCE version of Ruby, which some people have gotten
+ 244233 [user domain.] ...
| 244341 [sunrayson gm] This is very encouraging. I am looking at something like this for a
+ 244234 [o.renaud lap] Le dimanche 18 mars 2007 07:26, SunRaySon a ˝─rit

^ [ANN] daapclient 0.2.3 Released
244201 [aaron tender] I haven't had internet at home in a while, so this announcement is

^ const_missing - why is it necessary to hook it at Module?
244203 [no.spam plea] Why doesn't the following code work?
244226 [dblack wobbl] All that instance_eval does is set self and execute the block.
244280 [no.spam plea] Ok, thanks David, I figured it was something like that.
244460 [no.spam plea] David, I got your response. Perhaps you didn't see mine?