349463-373498

349256-349615 subjects 349721-350340

Getting version from PE executables
349463 [nandu88@gm i] I'm trying to get file version from EXE or DLL files, writing a ruby

ruby1.9.1 : Override string method
349475 [ Ts@tc re fr] The following script doesn't work...
349477 [b.candler@po] There are loads of sub! calls in date/format.rb, but I have no idea why
349479 [dblack@ru yp] "abc".sub!(/(.)/, "z")
349482 [b.candler@po] So the $~ variables are both thread-local *and* scoped to the enclosing
349485 [ ts@tc re fr] Interesting! I wasn't aware of that.
349488 [headius@he d] It is not possible to make it work. I have written on this previously,

test : nothing interesting here
349476 [ ts@tc re fr] Posted via http://www.ruby-forum.com/.

Ruby 1.8.7 segmentation faults
349478 [leslieviljoe] I am getting segmentation faults in several innocuous looking places
349480 [lucas@lu as ] ...
349483 [leslieviljoe] For anyone else who might run into this....

[ANN] Ruby Manor 2: Manor Harder - Dec 12th, London
349481 [james@la ya ] Just a quick note to let you know that The Guvner has thrown open the

uninitialized  constant LangHelper::GetText (NameError)
349486 [sri.jjhero@g] im have install this gem, then why am i getting this error.

Visit -iPaGe  @ http://techsuman.com
349491 [ipage.home@g] iPaGe @ http://techsuman.com

StringIO and reopen
349503 [rubyhacker@g] I've noticed (via  my friend Taylor Carpenter) that IO#reopen
349505 [headius@he d] StringIO is not actually an IO object; it just mimics one. Unless
349510 [rubyhacker@g] By "Should it?" I mean "in the future" -- I'm not implying there's
349525 [shortcutter@] I don't think so.
+ 349583 [rubyhacker@g] Well, reopen also can take a string, I believe. So it already takes
| 349585 [shortcutter@] The string is interpreted as a file name.  With changing type I meant
| 349593 [rubyhacker@g] Yes - but what I meant was, reopen already checks its argument and
| 349613 [shortcutter@] Oh, that wasn't clear to me from your posting.  I thought you were
| 349662 [rubyhacker@g] Yes, I did not think of the other interpretation at first.
+ 349595 [vikkous@gm i] IO subclasses can already change their type (and even class!) when
  349614 [shortcutter@] Amazing, I wasn't aware of that.  Not sure though whether a change from

[ANN] pik 0.2.5 Released
349506 [gthiesfeld@g] pik version 0.2.5 has been released!

[ANN] JRuby 1.4.0 Released
349509 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.4.0
349608 [zyzygy@te st] Is there a recommended way to deal with gem migration to the new
349610 [headius@he d] Upgrading is certainly an interesting challenge when we don't have an

Re: Hamurabi (#223)
349512 [sven.schott@] Sorry I'm new to the list. Is it ok to post solutions at this point
349513 [james@gr ys ] It sure is.  Post away.
349515 [sven.schott@] Well, here goes. I did it the bad way (no flowcharts or anything) and
349521 [eregontp@gm ] In fact it was interesting how to transform jumps into methods.
+ 349524 [sven.schott@] Cool. Caveat for the non-bleed users: ruby1.9 required (1.8.6 here).
+ 349561 [martindemell] he reused some of the variables for two separate things. the seed

All Gems Down?
349519 [jballanc@gm ] I think I must be the only one using allgems.ruby-forum.com. It seems
+ 349520 [josh.cheek@g] Might have something to do with
| 349522 [jballanc@gm ] Well, as much as I'd like to see allgems.ruby-forum.com functionality
| 349533 [rick.denatal] Rick DeNatale
| + 349536 [jordi@bu st ] ...
| + 349541 [jballanc@gm ] Ah, yes...but they're not using the Hanna RDoc template (http://github.com/mislav/hanna
|   349581 [marnen@ma ne] I believe Gitrdoc uses Hanna, but it doesn't work as well as rdoc.info.
+ 349540 [spox@mo sp x] I'll see if I can get a hold of Roger Pack and see what's currently wrong with
+ 349594 [rogerpack200] Hope to be back up by tomorrow. Sorry for the downtime :)
| 349599 [jballanc@gm ] No worries! Allgems is easily the best free service I've ever used...
| 349746 [rogerpack200] Wow just for that I'll keep it running just for you :)
| 349763 [jballanc@gm ] Hey, awesome! I didn't realize the code was on GitHub... If/when I get
| + 349764 [rogerpack200] Oh wow that would be awesome.  Something like
| | 349767 [djberg96@gm ] On an unrelated note, how did you generate that pretty backtrace
| + 349850 [rogerpack200] Hmm. Where is the slick backtrace again?
|   349859 [jballanc@gm ] I think perhaps he means the spew from Passenger... I have to admit, =
+ 368863 [rogerpack200] Good news.  Looks like rdoc.info finally decided to do all gems.

Ruby Inline over two times slower under 1.9 than under 1.8?
349527 [ shot@ho .p ] I=E2=80=99m starting to dip my toes in non-Ruby coding (for performance rea=
349564 [ryand-ruby@z] actually
350186 [ shot@ho .p ] xample=C2=B9
350196 [rogerpack200] Shameless plug: Also checkout http://github.com/rdp/crystalizer
350228 [ shot@ho .p ] =E2=80=A6and who can=E2=80=99t, for some reason, get the canonical example
350255 [rogerpack200] here's a working example (well worked once upon a time).
+ 350278 [vikkous@gm i] Yet? Are you planning to release a 1.9-compatible version of
| 350282 [rogerpack200] It's actually pretty high on the "to do" list, though who knows if I'll
+ 350390 [ shot@ho .p ] First, thanks a lot to you and Ryan Davis for all your great help!
  + 350471 [rogerpack200] Hmm. Maybe a bug in ruby parser?
  | 350497 [ shot@ho .p ] Argh, sorry, I mis-pasted. The problem is with RubyToRubyC#process.
  + 350625 [headius@he d] We've never said that 1.9 support is done, largely because it's hard
    350664 [ shot@ho .p ] ce/if I end

[ANN] New Ohm mailing list
349537 [damian.janow] As more people start to use Ohm (a Ruby object mapper for Redis), we

URGENT
349542 [ksa.908@gm i] Subject Distinguished brotherhood is large and dangerous

Re: PDF::Writer - measure size of a section before rendering
349546 [marnen@ma ne] I didn't know there was a Flying Saucer plugin.  I'll have to look at it
349552 [gregory.t.br] Yeah, if you want easy HTML to PDF, Flying Saucer is definitely the way to =

ruby script with flag
349549 [jillyh0@gm i] I am trying to write a ruby script which accepts a flag. That is, I
+ 349547 [rob@fl wo .i] Command line options are stored in the ARGV array.
+ 349548 [sutniuq@gm .] Every command-line argument that you pass into a Ruby script is
+ 349619 [shortcutter@] You would use one of the option parsing libraries around.  The

unsubscribe
349550 [kamlesh.expe] Thanks and Regards

best way to download an antire site with ruby
349551 [mehdi.adda@g] What is the best way to download all Web Site resources (html, images,
+ 349543 [christianbra] I'd say Hpricot + Net::HTTP
+ 349569 [b.candler@po] system("wget -p -np -r http://www.lua.org/manual/5.1/")

Color in Mac OS X's Terminal for RI
349554 [eregontp@gm ] I'm wondering why I can't have colors for `ri` in my Terminal.app
349566 [matt_neuburg] Or alternatively export RI as '-T -f ansi'.

Can not put @ when debuging with Windows XP Home Edition
349555 [albert.catal] Edition
349571 [luislavena@g] The issue you're facing is related to extended escape codes/sequences
349575 [albert.catal] can't create a file without name (.inputrc) so I created "inputrc" and
349576 [paul@po ly n] Yes you can.  You can't do it with (Right Click)->New but you can open
349578 [albert.catal] OK, this is done, but I can't write "@", and i have followed all
+ 349579 [albert.catal] thanks to all
+ 349580 [albert.catal] ¡¡¡ FINALLY I could. in that file changing M for e, and HOME variable is

ANN: Sequel 3.6.0 Released
349558 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

Gem install mysql goes wrong
349560 [brgsousa@gm ] Everyone,
349570 [aldric@tr vo] Not sure if this'll help you, but ..
349597 [spox@mo sp x] Yes, you are missing a package.

[ANN] ERBook 9.1.0
349568 [sunaku@gm il] ERBook 9.1.0

RCAP - Common Alerting Protocl for Ruby
349573 [farrel.lifso] OVERVIEW
349574 [farrel.lifso] Apologies for the bad code formatting. The RCAP project page -

ruby-191-p243 or ruby-192-preview Compile error with openssl
349577 [plucas@te hn] Fails to compile openssl extension for ruby-187 latest, ruby-191-p243
351437 [peter.havens] I'm also having this problem. I'm trying to use gcc 4.2.2 to compile
351439 [peter.havens] I should note that I've attempted to replace "STACK" with "_STACK" (a
373498 [rajeevsharma] rvm package install openssl

xml file formatting from entire file in single string
349586 [david@vi io ] Anyone have or can point me to a snippet that will convert an entire xml file
+ 349589 [jordi@bu st ] ...
+ 349592 [sven.schott@] I know it's hardly a snippet but, tidy?
+ 349604 [phrogz@ma .c] file

[ANN] November Phoenix Ruby User Group Meeting
349596 [james.britt@] November Phoenix Ruby User Group Meeting
349673 [badlands_200] ...

invalid date error when installing syntax gem
349602 [vjoel@pa h. ] Anyone else getting this error? I didn't find any recent mention of it.
+ 349605 [vjoel@pa h. ] Forgot to say: this is the only gem with this problem. I set up a new
| + 351513 [marcin.doman] I was getting the same error when installing cucumber (it depends on
| + 351516 [luislavena@g] The problem is related to gcc 4.4 and some issue with date parsing.
|   351549 [vjoel@pa h. ] Thanks!
|   351935 [bluestar007@] Any news on this? I'm having the same issue and I guess I'll have to
|   351937 [vjoel@pa h. ] Victor,
+ 353684 [sholomyansky] I use Ruby Enterprise Edition.  I got around the problem by installing

Why do I keep getting "nil"?
349609 [chngth3wrld@] I had a homework assignment where I had to create a number guessing game
349612 [josh.cheek@g] def num_eval(guess, number)
349631 [rick.denatal] ts

Merging mp3 files in Ruby
349616 [thinkinstein] Suppose I have the following files to group and merge, according to
+ 349626 [aldric@tr vo] Open first file for write and binary, then put the cursor at the end of
+ 349628 [lists@be tr ] ruby -pe '' file1.mp3 file2.mp3 >file.mp3
  349634 [thinkinstein] How to iterate the mp3 files according to their names, so that files
  349686 [sven.schott@] How about a hash or something like that?

How would you accomplish this?
349620 [george.githi] Given an array of arrays for example
+ 349622 [shortcutter@] The approach using set size seems reasonable to reduce the number of
+ 349623 [jgabrielygal] irb(main):025:0> a =3D [["A", "B"], ["A", "B", "D", "C"], ["B", "D"],
| 349624 [shortcutter@] Done. :-)
+ 349706 [greg5000@ea ] arr = [["A", "B"], ["A", "B", "D", "C"], ["B", "D"], ["B", "C", "F",
| 349711 [marnen@ma ne] Well, this will just yield the discrete strings -- not what the OP
+ 349717 [martindemell] require 'set'

[ANN] Rote is back! 0.3.6 now available
349629 [rosco.rbtalk] Rote 0.3.6 is now available on Rubyforge (http://rote.rubyforge.org). Rote

Ruby 101 Series
349630 [allenlooplee] 1. Ruby 101: Classes and Objects -

Ruby 1.9.1 Regexp Encoding Warnings
349632 [raasdnil@gm ] In the Mail gem I am doing Regexp's on various strings that arrive,
349710 [raasdnil@gm ] Found the problem.  Was a second regexp inside the first that was not

super w/ implicit arguments in Ruby 1.9
349639 [transfire@gm] by define_method() is not supported. Specify all arguments
349646 [Rob@Ag le on] defined?(super) ? (super).__send__((op),(obj)) : (obj).dup
349652 [transfire@gm] On Nov 4, 11:13=A0am, Rob Biedenharn <R...@AgileConsultingLLC.com>
349680 [transfire@gm] =A0

Odd : a = Hash.new(Hash.new)
349640 [aldric@tr vo] irb(main):086:0> a = Hash.new(Hash.new)
+ 349641 [aldric@tr vo] # Reminder : a = Hash.new(Hash.new)
| 349642 [martindemell] The default argument to a hash gets *returned* when the key is not
| 349644 [martindemell] martin
| 349647 [shortcutter@] h = Hash.new {|h,k| h[k] = Hash.new(&h.default_proc)}
| 349653 [aldric@tr vo] Robert - I agree. I like this one better. Feels a little more ruby-ish.
| + 349655 [jgabrielygal] irb(main):001:0> a = Proc.new {|h,k| h[k] = Hash.new(&h.default_proc)}
| | 349657 [aldric@tr vo] Have a +1 ! I'm not forgetting THAT lesson.
| + 349719 [shortcutter@] The block *is* saved and reused when creating nested Hashes!
|   349724 [jgabrielygal] e,
|   349726 [shortcutter@] nd
|   349736 [aldric@tr vo] Oh sure - be lazier than me. I see how it is. :-)
+ 349645 [ymendel@po o] =3D> {}

Hash#count
349648 [transfire@gm] I want to suggest Hash#count be defined such that it counts hash
+ 349649 [paul@po ly n] {:a=3D>1,:b=3D2,:c=3D>1}.count{|x| x[1]=3D=3D1}      #=3D> 2
| + 349723 [shortcutter@] I opt against because that would make Hash's #count behave differently
| + 349744 [transfire@gm] Sure. And there other ways to do it too. My point is not that there is
+ 349952 [matz@ru y- a] That is based on viewpoint to see hashes are collections of values
  350099 [transfire@gm] Okay. I only point out, if Hash is a collection key-value pairs, I
  350101 [matz@ru y- a] Hash#include? checks keys only (not pairs) according to most common

Rdoc with readable hashes
349663 [unexist@do f] ...
349749 [rogerpack200] You could duplicate the descriptions in the RDOC comment, or you try and
349876 [flo@an er gr] class Test

Binding#eval __LINE__ and __FILE__ in Ruby 1.9.1
349674 [transfire@gm] Ok. One last question in today's debugging for 1.9 session.

Re: Help (was Re: [ANN] November Phoenix Ruby User Group Meeting)
349679 [james.britt@] First, as a matter of etiquette, please do not reply to a post to start
349694 [flo@an er gr] I would recommend The Ruby Programming Language only if you are an

Create HTML files using RUBY
349685 [skrithikaa@g] How do you create HTML files using RUBY. I have a requirement where I
+ 349690 [marnen@ma ne] Use a module such as Haml or ERb.  If you need a full Web application,
| 349691 [skrithikaa@g] Thanks for your suggestion. I purely have to use only RUBY. Does cgi
| 349692 [marnen@ma ne] Everything I mentioned is only Ruby.  Use it -- otherwise you'll be
| 349695 [skrithikaa@g] I am sorry I was not clear in my previous reply. I am told not to use
| + 349701 [marnen@ma ne] So don't use a Web framework.  Haml and ERb can both work on their own.
| | + 349702 [gregory.t.br] As a clarifying point for the OP, ERb is part of standard Ruby.  It is
| | | 349714 [kbloom@gm il] Umm only if you're allowed to use a framework that supports
| | | + 349716 [ehsanul_g3@h] ...
| | | + 349718 [gregory.t.br] All it means is packaging someone elses source with yours and adding
| | |   349760 [acts.as.davi] I don't think the OP said he couldn't use frameworks. I think he can't
| | + 349703 [shevegen@li ] A html file is nothing else than a long string.
| |   349704 [williamkmani] I challenge that statement
| |   349705 [gregory.t.br] Brainfuck is Turing complete, so it can do anything Ruby can do.  As
| + 349712 [justincollin] What you are trying to do is still unclear to me, but the CGI library
|   350118 [skrithikaa@g] I am told to create static HTML page and asked to write something like
|   350120 [marnen@ma ne] Why are you asking?  In the time it took you to type that, you could
|   350126 [skrithikaa@g] I cant try it for next few days, there is some issue with my computer.
|   350128 [b.candler@po] Posted via http://www.ruby-forum.com/.
+ 349708 [greg5000@ea ] def h1
  + 349709 [marnen@ma ne] Good point.  This is the approach that Builder and Markaby take.  In Web
  | 349713 [williamkmani] You've gotta remember all of the attributes and stuff to properly support
  + 349715 [ehsanul_g3@h] ...

Who is God ??
349687 [imanway.222@] Concept of God in islam
349697 [masonkelsey@] I have two copies of the Koran and no where in them can I find any
349698 [david@vi io ] I think therefore I am.

redirection Windows shell out to variable
349699 [psixxx@bk ru] i want to execute Windows shell commands in my script so that the result
+ 349700 [sven.schott@] You can use the backtick (or backquote) operator ` which is ASCII character
+ 349754 [gthiesfeld@g] Run it with rubyw.exe, instead of ruby.exe.

Executing one of several ruby objects
349720 [dhf0820@gm i] I am trying to write a program that will load a series of DSLs (ruby
+ 349722 [shortcutter@] res =3D nil
| 349761 [dhf0820@gm i] ractices.com/
| 349762 [aldric@tr vo] a = Dir.glob '*'
| + 349768 [dhf0820@gm i] stpractices.com/
| | 349794 [vjoel@pa h. ] This may help...
| + 349769 [dhf0820@gm i] stpractices.com/
|   349776 [shortcutter@] I typically find it easier to use a registration process, e.g.
|   349820 [ninja@sl ph ] I usually like to do that implicitly. For example, all these files probably
|   349827 [shortcutter@] Of course, the process can be improved.  Thanks for the suggestions.  My
+ 349840 [james.britt@] James Britt
threads.html
top