297358-298230

297168-379428 subjects 297513-328159

Found errors in The Ruby Programming Language book?
297358 [dflanagan@gm] O'Reilly is going to be reprinting _The Ruby Programming Language_
298230 [dflanagan@gm] Thanks to everyone who helped me by reporting errors for the reprint

Check Image File Size
297363 [nonstickglue] I'm looking for a way that I could insert a URL for an image that is
+ 297366 [phil@s1 6. e] how about
+ 297368 [cmdjackryan@] Have you tried downloading the image? Or at least an HTTP connection?

=?GB2312?B?UnVieaGvcyBub3QgcmVhZHkgLSBhbiBpbmRlcHRoIGVzc2F5?=
297365 [songmash@gm ] ...

=?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
297369 [avdi@av i. r] I promise we'll be as objective as humanly possible
+ 297372 [jeremymcanal] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
+ 297375 [songmash@gm ] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
  297381 [halostatue@g] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
  297383 [jeremymcanal] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
  297417 [rsanheim@gm ] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
  297520 [martindemell] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=
  297545 [songmash@gm ] =?GB2312?B?UmU6IFJ1Ynmhr3Mgbm90IHJlYWR5IC0gYW4gaW5kZXB0aCBlc3NheQ==?=

Re: Ruby's not ready - an indepth essay
297371 [cmdjackryan@] here.
297378 [cmdjackryan@] author,
297382 [cmdjackryan@] I need it. Most of Europe needs it. Not to mention Arabia, Japan, and
+ 297404 [vidar.hoksta] On Apr 8, 5:05=A0am, Phillip Gawlowski <cmdjackr...@googlemail.com>
| 297406 [shevegen@li ] [Unicode]
| 297407 [YQDHXVLMUBXG] That's precisely the ignorant attitude that caused the issues we currently have with differen character sets. I'm pretty sure that if computer systems had been emerged from a non-english speaking country at the beginning we wouldn't need to still fight character set issues (there are still too many applications that even have problems with 8bit character sets)
| + 297408 [transfire@gm] Why is everyone getting so worked up? It's a critique. Biased it may
| | 297464 [halostatue@g] critique |krtik| noun
| + 297410 [billk@ct .c ] "Let me tell you something about You that YOU don't know. . . ." <grin>
| | + 297414 [YQDHXVLMUBXG] But Unicode/UTF8 would at least satisfy a *lot* more people than plain ASCII or 8bit encodings (such as ISO-8859-x)
| | | + 297435 [eeklund@gm i] Would it?
| | | | 297443 [cmdjackryan@] Err, yes. I like the idea of RDoc myself. I like it very much, almost to
| | | + 297465 [halostatue@g] Please read the thread that Bill pointed you to. It explains a lot
| | + 297415 [kyleaschmitt] Ruby itself does not support Unicode, in the way that Intel quad core
| | + 297416 [YQDHXVLMUBXG] puts "".length
| |   297431 [hramrach@ce ] It's completely correct. length in 1.8 means number_of_bytes. You can
| + 297463 [halostatue@g] Unfortunately Marc didn't keep *my* quote which has a lot more
| + 297528 [julian@co et] I thought it did.
+ 297462 [halostatue@g] You didn't read what I said. I said "most people don't need full-on
| 297467 [cmdjackryan@] Without Unicode support, a string operation in a non-English alphabet
| + 297510 [cmdjackryan@] Not really, no. Their interests are different than that of Zend or
| | 297555 [cwdinfo@gm i] Sun (apparently) benefits when the Java runtime is distributed. All
| | 297557 [cmdjackryan@] Sun brought the JRuby project into its fold Java fold after it had
| + 297712 [perfectly.no] n't
+ 297682 [drbrain@se m] I think you'll find disagreement that Japan wants it, or needs it.

Re: =?windows-1252?Q?Ruby=92s_not_ready_-_an_indepth_?= =?windows-1252?Q?essay?=
297376 [justincollin] a tiny bit of insight, probably on things you already know. At least,
297385 [vjoel@pa h. ] Indeed. Just one shallow point that showed up when I scrolled about 2/3
297430 [znmeb@ce ma ] Well ... I guess that depends on which docs you are talking about.
297437 [cmdjackryan@] I shouldn't have to buy a book (like the PickAxe), to get decent
297551 [znmeb@ce ma ] There are partial test suites/specs out there, but probably no single
297596 [znmeb@ce ma ] And KRI, since the syntax and semantics are different from Ruby 1.8. :)

=?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
297377 [julian@co et] Damn!
297379 [julian@co et] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
297412 [eleanor@ga e] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
297441 [dave@pr gp o] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
297444 [jeremymcanal] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
297446 [dave@pr gp o] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
+ 297466 [halostatue@g] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
+ 297472 [jeremymcanal] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
  297479 [cwdinfo@gm i] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
  297490 [jeremymcanal] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
  297504 [jeremymcanal] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
  297506 [cwdinfo@gm i] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=
  297591 [cremes.devli] =?WINDOWS-1252?Q?Re:_Ruby=92s_not_ready_-_an_indepth_essay?=

heavy loop functions slow
297386 [globyy3000@h] Alright so I was playing with my large amounts of data and ran into yet
+ 297388 [ pm@ub t. om] Try further benchmarking what causes the slowness.  Isolate what code is
+ 297398 [jan.svitok@g] set arrayOut to nil if you don't need it any more.
+ 297401 [shortcutter@] Obviously there is a lot of code missing from the piece above.  Can
  297402 [globyy3000@h] Alright heres the breakdown of everything.
  297411 [shortcutter@] Let's see whether I understood correctly: you have a file with
  297503 [globyy3000@h] That would work, but even with marshal dumping the data set is just too
  297562 [shortcutter@] Which data set - the range definitions or the output?  I thought this is
  297616 [globyy3000@h] The dump would be to the pre-defined hash, to hence retrieve the
  + 297639 [shortcutter@] I would not use the term "hash" here because this is an implementation
  + 297655 [ara.t.howard] # use narray for fast ruby numbers
    297669 [julian@co et] Better for whom?
    297673 [ara.t.howard] for my wife - obviously!  ;-)

Problem in calling the script written in other file
297387 [pranjal.jain] Dear ALL
297614 [matt@ti bi s] The test.rb script script as you've shown it here is faulty (too many

Find functions not working in Ruby 2.0
297389 [lessthaneloq] inbox = user.messages.find(:all, :conditions=>{:outbox => false}, :order
+ 297392 [flo@an er gr] the
+ 297395 [julian@co et] ...

testing a singleton method....
297390 [pood.forums@] Trying to pass a unit test;
+ 297394 [ pm@ub t. om] def test_singleton_method
+ 297396 [julian@co et] Could you post more context?

test
297391 [rajeskannan@] test
297439 [tim.pease@gm] Finished in 3.14159 seconds.

Planet Vancouver.rb News - Get Your Ruby/Rails Blog Stories Included
297393 [geraldbauer2] The Planet Vancouver.rb (planet.vanrb.com) publishes Ruby/Rails

Fwd: Possible bug with Socket write
297403 [gethemant@gm] #server code
297849 [larsch@be un] I can't explain why Ruby or the socket API does not throw an error in

installing rjb in centos
297405 [sameera207@h] need a quick and urgent help

call console command and return as string...problem
297413 [marc.hoeppne] I am trying to use the following line of code in a rails application,
+ 297427 [jan.svitok@g] The command seems fine. Parameter -o seem suspicious since it is
+ 297529 [julian@co et] That kind of depends on the executable you're running.

simple, simple array question
297418 [pbailey@bn .] I need to cap-and-lowercase words in strings of XML data. Why is this
+ 297419 [kanden123@go] ...
| 297422 [kanden123@go] ...
+ 297420 [celtic@sa ry] ...
| 297421 [celtic@sa ry] ...
+ 297423 [rmagick@gm i] capitalize! returns nil when the string is already capitalized. Use
+ 297424 [peter@se an ] This is because you are using collect where, I suspect, you want to use
  297426 [pbailey@bn .] Thanks all you guys. Yeh, I feel kinda' dumb. That first word was

outlook and win32 service
297425 [rajib.chakra] i detail out an issue i am facing while trying to read messages from
+ 297429 [jan.svitok@g] quick hint without reading your code: do you have permissions to read
+ 297480 [Carey.Nation] Who is the service running as?  It's going to need to run as the owner
  297583 [rajib.chakra] Thanks for your inputs
  297589 [jftucker@gm ] I don't remember what your original task was, but have you considered
  297592 [cmdjackryan@] Control Panel -> Administrative Tools -> Services.
  297599 [jftucker@gm ] That will not help with accessing user mode mounted devices (such as

Re: Ruby„¶URO(tm)s not ready - an indepth essay
297428 [Diego.Viraso] Ok, don't kill me for this, and I do disagree with most of the article
+ 297432 [cmdjackryan@] Learning Ruby as my first language, I can emphasize with this issue.
+ 297433 [ttmrichter@g] You answered your own question here.  It makes writing code a joy.  And,
  + 297440 [Diego.Viraso] Most definitly. In my office we is it constantly. There's only one
  | + 297505 [igouy2@ya oo] Once upon a time, you made a specific complaint that the execution
  | | 297534 [halostatue@g] I haven't gone back to the Alioth shootout web site in a long time,
  | + 297539 [znmeb@ce ma ] Right around the time I stopped writing Fortran (not by choice -- I got
  |   297585 [halostatue@g] I wasn't wrong, in that case. Your text was still taking itself far
  |   297588 [dave@pr gp o] /me is tempted to invoke Godwin at this point...
  |   297681 [guoxianghao@] I have read most of the comments in this forum. Most of them are
  |   + 297749 [cmdjackryan@] So, instead of examining solutions and deployment of applications
  |   + 297751 [khaines@en g] True, but there is some important contextual information that is missing.
  |   + 297776 [halostatue@g] The answer to that is both "yes" and "no". I didn't address it in any
  + 297531 [julian@co et] ...

programmatically associate a file extension
297434 [kumar.anul@g] How can we programmatically associate a file extension to my program
+ 297436 [jan.svitok@g] if you are on windows, use ftype and assoc commands.
| 297448 [kumar.anul@g] Thanks a lot
| + 297451 [cmdjackryan@] - --
| + 297476 [rmagick@gm i] Linux does not use a "file extension" to associate a program with a
+ 297532 [julian@co et] In which operating system?

How to modify the param value  in block
297445 [infinitblue@] def test
+ 297447 [lojicdotcom@] brian@airstream:~$ irb
| 297449 [infinitblue@] how can I force x pass by ref ? then I can change the value of x in the
+ 297452 [flo@an er gr] actually, something like this code would work if you would use a
  297542 [infinitblue@] Got it. Thanks for your great inside explanation!

Ruby multiline regex problem
297450 [gregg@yo s. ] "<td align="left" ><div style="width: 165px; height: 175px;"><a
+ 297470 [caduceass@gm] <CODE>
+ 297590 [shortcutter@] irb(main):004:0> s=%q{<td align="left" ><div style="width: 165px;
  297679 [gregg@yo s. ] Thanks folks for all your help...turns out that I was using the regex
  297686 [shortcutter@] Why look so far?  IRB serves the same purpose.
  297714 [gregg@yo s. ] I'm a newb with Ruby and IRB. I did test the regex in IRB, but did not

Remove first and last items from array
297453 [seo@mk yn mi] I need to remove the first and last items in an array (which may have 1,
+ 297455 [flo@an er gr] "pop"ing the first element of an Array is called "shift" ("unshift"
+ 297457 [fxn@ha hr f.] Hehe.
| 297460 [kyleaschmitt] In fact there _is_ slice :)
| 297492 [shortcutter@] irb(main):004:0> a=(1..5).to_a
+ 297458 [donn@cm cm .] a.shift
| 297459 [seo@mk yn mi] Thanks, can't believe I didn't think of the 'shift' operation! Oh well,
+ 297461 [shawn42@gm i] ...

Is it time for setup.rb to kick the can?
297454 [transfire@gm] One upon a time setup.rb was THE way to install ruby packages. But
297543 [coder68@ya o] Thank you so very much for finally addressing this which has caused me

Revert back to rubygems 0.9 from 1.0.1
297456 [donn@cm cm .] My debugger is having a problem with rubygems v1.0.1.  I would like to
297468 [luislavena@g] gem update --system -v '0.9.x'
297469 [donn@cm cm .] Thanks.  Unfortunately, that's not it.  I don't see a specific version
297474 [luislavena@g] Unzip and run 'ruby setup.rb install'
297604 [donn@cm cm .] The IDE debugger I am using is ArachnoRuby.  I switched my development
297769 [drbrain@se m] 0.9.0 and earlier have an installation exploit that allow gems to

capitalizing words
297471 [pbailey@bn .] I need to capitalize the words in a string I find in XML files.
+ 297477 [caduceass@gm] I don't know what the original text looks like in test1.txt, but this
| 297586 [pbailey@bn .] Thanks, Todd.
+ 297508 [Rob@Ag le on] Dir.chdir("C:/users/pb4072/documents") do |d|
  297587 [pbailey@bn .] Thanks, Rob. This works beautifully, except that I need that last
  297598 [Rob@Ag le on] <row><entry><text><emph face="b">THE QUICK BROWN FOX JUMPED OVER THE
  297617 [pbailey@bn .] Rob,
  + 297620 [jens.wille@u] because it's reset when you're doing that gsub on $2. the capture
  | 297630 [Rob@Ag le on] Ah yes!  Good catch, Jens.
  | 297642 [jens.wille@u] now here's a quick implementation that passes the MatchData object
  + 297623 [Rob@Ag le on] 1. surround with the regexp literal bits
  + 297664 [jens.wille@u] '(?<=^<row><entry><text><emph face="b">).+(?=</emph>)', 'm'
    297711 [pbailey@bn .] Sorry, Jens, but, I have no idea what you're referring to here. I
    297715 [jens.wille@u] sure. but you really don't need it to solve your task at hand.
    297725 [pbailey@bn .] Thanks. But, again, do I need to do a "require" for oniguruma at the
    297737 [jens.wille@u] if you want to use oniguruma, then yes, you have to require it first.
    297740 [pbailey@bn .] OK. Thanks!

System commands with streaming output
297473 [rubyonrails@] I have a long running system command that I want to print the output
297475 [rmagick@gm i] ri IO::popen
297481 [rubyonrails@] IO.popen './mycommand foo' do |f|
297483 [rmagick@gm i] Possibly the command is writing to stderr instead of stdout. What
297485 [rubyonrails@] pretty sure thats not it.  Running that gives me no output at all.
+ 297486 [TimHunter@nc] It seems possible that there is some buffering going on. Perhaps
| 297489 [ezmobius@gm ] $stdout.sync = true
| 297515 [rubyonrails@] Thanks guys.  You all rock.
+ 297488 [jens.wille@u] i'm sorry, i didn't follow the whole thread, but you probably want

rubywmq
297478 [linux@pi rd ] Has anyone any kind of experience with rubywmq so far?

Net::HTTP timeouts not respected depending on how it's used?
297482 [xavi.caballe] In my Mac with Leopard, this doesn't respect the 2 seconds timeout
297487 [fxn@ha hr f.] Ei Xavi!

Re: Ruby°«s not ready - an indepth essay
297484 [kyleaschmitt] Php's docs are good, really good.  But I always felt that it's because
+ 297493 [kyleaschmitt] Complete with the monk robes, pizza and 1 liter of dark beer per hour?
| 297494 [cmdjackryan@] If it doesn't produce documentation, the beer will at least produce
| 297497 [vjoel@pa h. ] That, or a pissing match. Which is what discussions of why ruby docs
+ 297498 [marcelo.maga] If PHP's docs are good, then Perl documentation must be qualified as
+ 297499 [TimHunter@nc] The PHP community? Professionals? What was their incentive? What was
  297595 [kyleaschmitt] I suppose I'm using they as the amorphous PHP

Re: =?windows-1252?q?Ruby=92s_not_ready_-_an_indepth?= essay
297502 [ibc@al ax ne] Very good example ;)

Re: Ruby Debugger
297509 [cmdjackryan@] While not technically a debugger, you could run autotest in that spot.
297511 [kanden123@go] ...
297645 [tomcloyd@co ] I think you really also ought to look hard at ruby-debug. It's extremely
297752 [kanden123@go] ...
297753 [cmdjackryan@] You should use TDD from the start. It is a good habit to get into, and
+ 297802 [moolao@gm il] up
+ 297960 [tomcloyd@co ] I appreciate your point of view, Phillip. I was excited to work with

output of a method to file?
297512 [dark_sgtphoe] Can anybody tell me how to take the output of a method and save it to a
297516 [cmdjackryan@] irb(main):003:0> to_file = [1,2,3,4,5]
297518 [dark_sgtphoe] Maybe it would help if I posted the code, I'm not sure I understand...
297522 [cmdjackryan@] If it is allowed, I'll add some Ruby idioms (you'll find these often,
297526 [dark_sgtphoe] hm, let me re-phrase... I only have 9 items in that array, right?  How
+ 297527 [cmdjackryan@] irb(main):001:0> array = [1,2,3,4,5]
| 297533 [dark_sgtphoe] I think I understand what you're saying, but I'm not quite sure how to
| 297538 [cmdjackryan@] irb(main):001:0> array = ["a","b","c","d","e"]
| 297548 [dark_sgtphoe] hmm, I see what you're doing there...
| 297549 [cmdjackryan@] Are you explicitly calling the #write method? puts doesn't work (I fall
| 297563 [dark_sgtphoe] def cityList
| 297565 [cmdjackryan@] Ruby, like other programming languages, uses the backslash "\" as an
| 297570 [dark_sgtphoe] Alright, I fixed the problem with the backslashes, but it's still
| 297575 [botp@de mo t] # What am I doing wrong?? :-(
| 297579 [dark_sgtphoe] Ahh, I got it now... thank you! :-)
+ 297535 [botp@de mo t] [mailto:list-bounce@example.com] On Behalf Of Zoe Phoenix
threads.html
top