316073-318942

315896-342611 subjects 316316-316986

ruby_debug bug: breakpoint may break in inappropriate files
316073 [todd@br ws r] A breakpoint will break in any file being executed for which the current

How does Array's each method change its elements ?
316076 [duzuike@gm i] I found Array's each method (block) changes its elements sometimes,
+ 316078 [sepp2k@go gl] It doesn't. You do.
+ 316080 [botp@de mo t] #..
  316161 [duzuike@gm i] I have noticed that Number elements and String elements of an array
  + 316163 [sepp2k@go gl] That's not true. You simply can not change a Numeric object.
  + 316169 [radek.bulat@] T24gU2F0LCBTZXAgMjcsIDIwMDggYXQgOTo1NSBBTSwgdyB3ZyA8ZHV6dWlrZUBnbWFpbC5jb20+
    316170 [sepp2k@go gl] Well, I would assume that if Integers were mutable, << would still not be a
    316251 [rick.denatal] MjAwOC85LzI3IFNlYmFzdGlhbiBIdW5nZXJlY2tlciA8c2VwcDJrQGdvb2dsZW1haWwuY29tPjoK

Re: darkfish-rdoc 1.1.5
316084 [sgwong513@ho] Looks nice.
316147 [transfire@gm] =A0
316148 [aredridel@nb] Pluggable, please!
316150 [drbrain@se m] I would package the old one as a gem.
+ 316186 [tony.strauss] This looks beautiful!  I love how clean the template file organization
+ 316191 [gregory.t.br] Do it!
  316194 [transfire@gm] Why another gem? What's wrong with with having a few choices built-in?
  316196 [drbrain@se m] Choice for users means maintenance burden for maintainers. I would
  316214 [transfire@gm] =A0

start ruby process
316092 [junkone1@gm ] how to start a ruby process that is not dependent on the process
+ 316094 [phasis@gm il] If you are running on Windows, try system('start ruby myCron.rb')
+ 316107 [botpena@gm i] try,
  316112 [junkone1@gm ] what is the difference between  exec("ruby mycron.rb") if fork=3D=3Dnil

Problem with rake and dependencies
316093 [brock.ryceng] I am new to rake, and I am stuck on a problem with incremental building.
316111 [wpdster@gm i] I am not yet a rake enthusiast -- but just this morning I decided,
316120 [wpdster@gm i] Look for the post from Jim Weirich.
316126 [brock.ryceng] Actually, I am very familiar with that thread. Been studying that all
316129 [wpdster@gm i] If you look at rake/loaders/makefile.rb (which, on my Windoze system
316143 [brock.ryceng] You da man!

Short question on regex in Ruby
316095 [kylejc@gm .n] string1 = "He is the 20th."
+ 316098 [mark@th ma z] Because the .* is greedy and will get all it can, which is all but the
| 316114 [patrick.he@g] ...
| 316155 [sentinel.200] If you need to get multiple numbers out you could try scan().
+ 316101 [tpreal@gm il] here. It's better to simply find the matching part using match and
  316103 [shortcutter@] Agree.
  316104 [tpreal@gm il] Yes, I forgot about this one. +1

[QUIZ] Cookie Monster (#178)
316106 [matthew.moss] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 316253 [jgabrielygal] It starts from the last square moving backwards (same row, east to west,
+ 316260 [brabuhr@gm i] Since Cookie Monster can only make one of 2 moves at any given time, I
+ 316273 [chneukirchen] # A simple recursive solution, not very efficient.
+ 316308 [hmack.gm@go ] ...
+ 316369 [hramrach@ce ] ...
| 316383 [bulliver@ba ] -d
+ 316381 [james@gr yp ] #!/usr/bin/env ruby -wKU
+ 316408 [list.push@gm] Here is my solution.

Ncurses.init_pair no longer seems to exist in the 'ncurses' package.
316109 [kenneth.m.mc] Just wondering if this is true, or if something has gone wrong with my
316154 [sentinel.200] Works fine on mine. Check ncurses_wrap.c.

[ANN] rcairo 1.8.0
316110 [kou@co mi ng] I released rcairo(*1) 1.8.0 that supports cairo(*2) 1.8.0

Delphi and Ruby
316115 [anuradha_rag] I am very new to Ruby. We have a Delphi (Borland Delphi version 5)
316189 [lloyd@2l ve ] I do Delphi too.  You do not give much in the way of specifics but you
316252 [anuradha_rag] Thanks Lloyd. Appreciate your response. How hard is it to work with

How to iterate of the attributes of an object?
316116 [sturim@ho ma] I need to build a string of all populated attributes of a given object.
+ 316122 [chen_li3@ya ] irb(main):001:0> foo = {:bar => 'baz', :bar2 => 'baz2', :bar3 => 'baz3'}
+ 316131 [sepp2k@go gl] Define "attribute". You can print a list of instance variables and their
+ 316132 [gaspard@te i] If you are trying to serialize, deserialize an object, you might be

popen3 mysteriously hangs
316117 [jdinkel@gm i] I'm having a problem with a popen3 inexplicably hanging.  I'm trying to
316124 [ara.t.howard] you are clogging the buffer with stdout and so the child process goes
+ 316133 [jdinkel@gm i] I don't need realtime output, I just need the output when it's all done.
| 316134 [ara.t.howard] cool.  my example was wrong too
+ 316135 [jdinkel@gm i] Some quick irb testing looks like systemu is going to work great.  Just

help tracking memory leaks
316123 [ittay.dror@g] I have a ruby script that uses a lot of memory, dumping ObjectSpace
317147 [rogerpack200] old but about the only thing out there for MRI. You could also try

Programm automation using Ruby? (was: Re: Delphi and Ruby)
316127 [dv@vo lk rt ] recommend Autohotkey[1] for the job. We use it to automate an third
316157 [anuradha_rag] Programm automation using Ruby? (was: Re: Delphi and Ruby)

Merge XML documents with Ruby
316130 [harmaarts@gm] Dear group,
316136 [mark@th ma z] You didn't give us much to go on. What objects does the some_hash
316137 [dejan.dimic@] Have you try the hpricot (http://code.whytheluckystiff.net/hpricot/) ?

net::openssh - how to get process exit status?
316142 [ryangrow@gm ] I am using net-ssh 2.0.1. I have not been able to figure out how to get
316358 [youngh@ca da] If you want the process exit status, you have to forgo the ssh.exec!()

[ANN] RubyGems 1.3.0
316144 [drbrain@se m] Note!  Some versions of RubyGems have a bug that will prevent
316185 [damphyr@fr e] Yep. Doing sudo gem update on a MacOS X 10.5.5/Ruby 1.8.6/Gem 1.2.0

save http response file attachment
316146 [todd@my oo s] I'm looking for some samples on saving off an attached file from a

Trying to use gsub using variables
316152 [contact@th r] I need to be able to match and substitute text in a string and I'm
316153 [sentinel.200] the x is fine, your text inside the /../ would be wrong.
316167 [shortcutter@] How do you know?  OP has neither posted what's in "acl" nor what he
316171 [contact@th r] thanks guys...I'm making progress but what I have been slowly leading up
316172 [TimHunter@nc] /#{x}/
+ 316173 [maestroiut-r] you meant, didn't you?
+ 316218 [contact@th r] thanks...I got that to work...now for my last question...I am trying to
  316236 [shortcutter@] It seems you are doing this too complicated and making your life harder
  316239 [shortcutter@] be more robust.  In your case you may want to do
  316241 [contact@th r] Thanks alot Robert....I'm not familiar with ARGF so I'm having a bit of
  316305 [shortcutter@] What did you find out so far?

Mapping Signal.list to keyboard
316160 [sentinel.200] I've done a lot of searching but can't figure out which signals

Does array's each-block destroies outer objects ?
316164 [duzuike@gm i] => 2840
+ 316166 [sepp2k@go gl] Yes, if you do {|foo|...} and you have a local variable foo outside the block,
| 316174 [shortcutter@] There is no object destroyed.  The variable x is made to point to
+ 316168 [tpreal@gm il] about the same problem.

parsing xml (xmpp) with ruby
316192 [rakaur@ma ki] I am writing an XMPP (Jabber) server in Ruby. XMPP uses XML for its
+ 316198 [dejan.dimic@] Every problem can have multiple solutions.
+ 316204 [shortcutter@] Well, this is not true.  You can have multiple classes cooperating in
  316206 [rakaur@ma ki] This is how I'd implement it. I just don't wanna.

h() or html_escape() not escape the single quote... risky?
316193 [summercoolne] so h() is an alias for html_escape() and they convert the following 4
+ 316195 [x-ruby-forum] This is a Rails question. Please ask Rails questions in a Rails forum,
+ 316197 [nobu@ru y- a] I guess that is because the character entity reference of

Help, Ruby 1.8.6-p287 broke my "use"  library and I don't know why
316199 [djberg96@gm ] I need help!
+ 316200 [nobu@ru y- a] module X
+ 316201 [dblack@ru yp] Do you have a non-Windows example where it does this?
  316207 [djberg96@gm ] es in
  316217 [dblack@ru yp] ...
  316219 [djberg96@gm ] Thanks for that David. I was wondering what the underlying issue was.

Hello boys!
316205 [milenko.stoj] Bosnia and Herzegovina, also known as Cvrcko
316209 [To-Email-Use] Now you know why I blanket kill-file googlegroups.
+ 316211 [presence@MU ] So you and everybody can talk about them nonstop?
| + 316223 [To-Email-Use] You're gone also ;-)
| + 316271 [presence@MU ] Now you know why I blanket kill-file googlegroups.
+ 316212 [gregory.t.br] Are you really so bored that you need  to respond to spam messages?
+ 316215 [transfire@gm] On Sep 27, 6:59=A0pm, Jim Thompson <To-Email-Use-The-Envelope-I...@My-

Variable name to string
316208 [hjast89@gm i] ...
+ 316210 [apeiros@gm .] No.
+ 316213 [cmshea@gm il] is
| 316235 [etaern@ya oo] but if you write
+ 316311 [b.candler@po] varname = "foo"

Hey, Matz has a Galaxy
316216 [transfire@gm] ...
316256 [pit.capitain] Nice!

[working directory to be changed (in terminal) by the Ruby ]
316220 [max.devel@gm] I have a little problem...
+ 316313 [AEtzold@gm .] Dear Max,
+ 316320 [shortcutter@] You do not explicitly state this but from what you write I assume you
+ 316353 [ara.t.howard] Dir.chdir '/tmp'

Rubot looks sketchy
316222 [transfire@gm] Anyone know about this project?
318936 [konstantin.m] using it for this bot: http://ardapedia.herr-der-ringe-film.de/index.php/Be=
318942 [djberg96@gm ] On Oct 30, 4:24=A0am, RKH <konstantin.mailingli...@googlemail.com>

Parsing a time span
316228 [emarthinsen@] I'm trying to find the best way to turn a string like "3 days" or "72
+ 316229 [emarthinsen@] Oh, and it looks like Duration doesn't parse the way I want to, so any
| 316231 [jmettraux@op] require 'rubygems'
| 316232 [emarthinsen@] Thanks. I'll check it out.
+ 316234 [ara.t.howard] very liberal, but useful

what does the 'it' do?
316233 [timrandg@gm ] I came across the following code (see below). As President Clinton
316237 [shortcutter@] "it" is a method which apparently does what your RI doc says.  Most
316243 [coreyhaines@] ...
316245 [coreyhaines@] ...

Fwd: [ruby-core:18872] [RIP] Guy Decoux.
316238 [shortcutter@] It took me a while to discover this sad news in the pile of messages.

Merging hashes and having trouble with variable scope!
316242 [mypipeline@b] In the following I am aiming to peer into two tab-separated files with
+ 316244 [mypipeline@b] 'veggies' hash is here, not writing it to a separate file yet..
+ 316247 [dblack@ru yp] Back at ya :-) Try this. I've changed key names just to fit things on
+ 316257 [caduceass@gm] For scope, you must establish for the interpreter that these variables
  + 316259 [caduceass@gm] The h's should be veggies', so...
  + 316283 [caduceass@gm] Another typo of mine.  The a[1] ||= [0] should be a[1] ||= a[0].
    316468 [mypipeline@b] I'd just like to say thank you to both of you. Will have a go amending

Unable to install old gems
316246 [mitko.kostov] Today I preinstalled Mac OS X and want to get rid of the old rails gems,
316633 [drbrain@se m] What version of RubyGems?
316673 [mitko.kostov] I found a solution, really silly though.

Avoiding spam from Usenet (was Hello boys!)
316249 [rhkramer@gm ] On Saturday 27 September 2008 05:59 pm, Milenko Stojadinovic Cvrcko
316250 [james@gr yp ] Yes, it is a two-way gateway.
316263 [rhkramer@gm ] James,

******GOD OF GIFTS 4 U*********
316255 [enteringheav] GOD OF GIFTS Free Animations + Wallpapers

screen capture to display it or to save it to a file possible?
316261 [liketofindou] i would like do screen capture and then to display it in that app's
316262 [liketofindou] On Sep 28, 11:29=A0am, liketofindoutwhy <liketofindout...@gmail.com>
316266 [TimHunter@nc] RMagick can do it on systems that have X Window. In other words, not MS
316391 [liketofindou] hm... so can you install x-window capabilities on XP or Vista... will
316404 [phasis@gm il] There is screen_capture method in watir. But it is unstable.

MEET YOUR DREAM LOVE
316268 [andlaty4real] I found a cool free dating site while surfing the web: Singles Mansion

Using Perl modules
316269 [jluehr@gm .n] since there are a lot of perl modules out there, I wonder if someone has
+ 316295 [drbrain@se m] Last we tried this (with an early 1.8, IIRC) it worked out of the
| 316338 [jluehr@gm .n] Well, last release was in 2001 and it's requiring perl 5.6 while I'm using
+ 316312 [shortcutter@] My impression is that generally Ruby folks rather tend to rewrite Perl
+ 316314 [ryand-ruby@z] maybe you should try it before you declare it outdated and "nothing
| 316337 [jluehr@gm .n] Maybe nothing serious is a bit harsh - sorry about that.
| 316410 [ryand-ruby@z] again... I don't mean to sound like a broken record... but DID YOU TRY
+ 316340 [mark@th ma z] Do you have one in mind? Many of the most useful perl modules are
  316351 [jluehr@gm .n] I thought of using smbldap-tools as a high-level api for account management.
  + 316360 [mark@th ma z] as
  + 316361 [martindemell] I've done this quite happily by calling the various smbldap

irb: 1 & 1 => 1, not true    huh?  I thought 1 & 1 => true
316270 [form@aw ba o] puts 1 & 1
+ 316272 [charles.nutt] a && b returns the first false element or the last true element.
+ 316274 [w_a_x_man@ya] You say thanks when nobody has replied, so
+ 316297 [nobu@ru y- a] No.  If it were, bit AND operation would be unavailable.

Counting Tabs and splitting by that number
316275 [bornemann1@n] Basically i have a document which I am opening and then i am reading
+ 316278 [s.korteling@] str = 'beep+xml\t\t\t atom'
+ 316279 [brabuhr@gm i] Your tabs are consecutive and you don't actually care how many there are?
  316280 [bornemann1@n] incorrect if i do it that way then if i have 5 tabs in between the two
  316281 [billk@ct .c ] Huh?
  316282 [bornemann1@n] it wouldnt give me the two, i so wish it did but i found a way around it
  316342 [mark@th ma z] IMO, the regex solution is better

multiline regexp and newlines
316277 [mbj@se ni .n] Im trying to reject any newline in a string using regexp.
316300 [dan-ml@da 42] The multiline flag only changes the meaning of "." to include the \n
316307 [mbj@se ni .n] Thx, it works now!

.getc.chr doesn't work
316286 [proc.procek@] I'm trying to read a file using ruby. Firsty I use readline twice,
+ 316298 [caduceass@gm] I'm not sure exactly what you are trying to do, but I have a guess.  I
+ 316301 [nobu@ru y- a] This is an inifinite loop.

string#sub all instances of pattern???
316287 [bornemann1@n] newStr = str.sub(" ", ", ")
+ 316288 [dblack@ru yp] Check out String#gsub, and also Array#join.
| 316290 [bornemann1@n] perfect thanks
+ 316289 [jcribbs@ne p] try gsub instead of sub.
+ 316291 [mike@st k. a] You want to use str.gsub rather than str.sub.  Compare the
+ 316292 [TimHunter@nc] gsub

[ANN] RSpec-1.1.5 has been released
316293 [dchelimsky@g] RSpec-1.1.5 has been released

wsdl2ruby request invalid while soapui's is correct
316294 [nabble@le gr] ...
316336 [mark@th ma z] Version 1.5.5 is broken. Please install version 1.5.8 and try again.
+ 316349 [nabble@le gr] I'm confused by what seems to be a conflict in JRuby. If I'm reading things
| 316368 [nabble@le gr] ...
+ 316865 [nabble@le gr] POST /accountservice/account.asmx/GetOxSessionWithSource HTTP/1.1

[ANN] icanhasaudio 0.1.2 Released
316299 [aaron@te de ] icanhasaudio version 0.1.2 has been released!

[ANN] amalgalite 0.4.1 Released
316302 [jeremy@hi eg] amalgalite version 0.4.1 has been released.
316379 [kbloom@gm il] Some of the links on the website are broken now that you switched to
316550 [jeremy@hi eg] Yup, I know about it and already reported it Michael.  He's working on it.

Problem start Skynet
316303 [marcelo.mach] I`m (trying) to use Skynet, I having problems running 'skynet start',

[ANN] hitimes 0.2.1 Released
316304 [jeremy@hi eg] gem install hitimes

Meet Your Dream Partner
316306 [andlaty4real] I found a cool free dating site while surfing the web: Singles Mansion

Re: irb: 1 & 1 => 1, not true    huh?  I thought 1 & 1 => tr
316310 [b.candler@po] That's basically right - you can factor this out into your own method if

future ruby books?
316315 [etaern@ya oo] Could you guys give me a list of books that should come out soon ? Ruby
+ 316318 [erik@ru y- a] Posted via http://www.ruby-forum.com/.
| 316327 [dave@pr gp o] + the Third Edition PickAxe, which Amazon can't list while the second
+ 316332 [dblack@ru yp] David
+ 316689 [pedrolito@la] Why wait for the future? The Ruby Programming language at OReilly's is
threads.html
top