235449-236907 subjects 235886-250783

passing XML string in Hash
235642 [henning.jans] I use a hash to pass a group of arguments around. One of the args (the

option parser: decrease distance between arg and explanation
235649 [rubyforum@co] I use option parser and I would like to decrease a distance in the
235664 [jan.svitok@g] +   opts.summary_width = 10

tar2rubyscript: getting the path of the original executable
235657 [rubyforum@co] I try using tar2rubyscript and I need to get the path to the original
235698 [erikveen@gm ] $ cat application/init.rb

Multiplying array
235665 [wai-kee.chun] Does anyone know of a function that multiplies the contents of an array.
+ 235671 [shortcutter@] Why do you cast to float?  You can multiply integers directly.
+ 235675 [ara.t.howard] require 'narray'
+ 235687 [gavin@re in ] module Enumerable
| 235688 [Rob@Ag le on] module Enumerable
| 235693 [gavin@re in ] Man, I swear that every time I use #inject I get it backwards, and
| + 235695 [wai-kee.chun] How can the inject function work on 2 arrays?
| | 235700 [gavin@re in ] It can't; I only read the first line of your post (which described a
| + 235696 [rubyforum@co] [inject confusion]
|   235748 [lists@be tr ] I'm trying to help myself with the order invariance in
+ 235769 [w_a_x_man@ya] [1,2,3].zip([2,3,4]).map{|a,b| a*b}

Re: option parser: decrease distance between arg and explana
235666 [rubyforum@co] thanks for the answer, it is more verbose then the file I had on my

matching arrays within arrays
235669 [nickblack1@g] [[foo, bar, ru, by], [ru], [bar, foo], [foo, bar, ru, by]]
+ 235670 [alex@bl ck e] irb(main):007:0> [['foo', 'bar', 'ru', 'by'], ['ru'], ['bar', 'foo'],
+ 235672 [kabigon@gm i] uniq will work. It doesn't matter what type of object the members of the
  235676 [nickblack1@g] Cheers!

Deploying (and updating) a ruby client application on a Windows LAN
235678 [philippe.lan] I'm about to deploy a ruby client-server application on multiple
235745 [wilsonb@gm i] My (weird, but solid) approach was to make an installer using

[help] install sqlite3-ruby
235679 [     Riot@ct] Why if I write, #sudo gem install sqlite3-ruby , returned this error?
235717 [msoulier@di ] Do you have an rdoc executable installed with your ruby install?
235865 [     Riot@ct] Thank you, this is the problem.

Convert Python sample code to Ruby
235689 [wnjayantha@y] Can some one conver the following sample code to RUBY please?

Re: tar2rubyscript: getting the path of the original executa
235702 [rubyforum@co] Thanks Erik, but obviously I wasn't clear. I need the path to the old
235714 [erikveen@gm ] Sorry, I misunderstood your question...
236209 [rubyforum@co] 1) create an environment variable that points to the RBA

Using Regular Expressions in Arrays
235705 [jtkimbell@ya] Hey everyone,
+ 235709 [Rob@Ag le on] Take a look at Array#grep (which is really Enumerable#grep)
+ 235710 [stefano.croc] Your code doesn't work because the array contains Strings, and regular
+ 235711 [sastph@sa .c] x.include? tests to see if the regular expression /dog/ is an element of
+ 235712 [lparravi@gm ] Array.include? checks if the array contains the object you passed as argument.
  235719 [jtkimbell@ya] Thanks everyone, that makes sense and I'll try those out.

New Singleton Class Word-of-the-Month ;-)
235713 [transfire@gm] quin?tes?sence
+ 235720 [gavin@re in ] a) LOL @ your topic :)
| 235856 [pesterhazy@g] quiddity
| + 235936 [transfire@gm] Awsome words, dude! I espcailly like the haecceity.
| + 235963 [vjoel@pa h. ] Not bad. It probably doesn't run the risk of conflicting with any prior
|   236001 [transfire@gm] Would you believe...
|   236018 [vjoel@pa h. ] Which can be deduced from the fact that we quack alike ;)
|   236058 [transfire@gm] 0.02% + 0.02% = 0.04%.
+ 236056 [daniel.schie] Perhaps a bit too long, although it's more concise than `class << self;
  236060 [transfire@gm] On Jan 25, 7:48 am, Daniel Schierbeck <daniel.schierb...@gmail.com>

Re: install sqlite3-ruby
235716 [ryan.raaum@g] What you have here is not a failure to install sqlite3-ruby

How do I tell extconf.rb/mkmf NOT to try and use cl.exe
235727 [weyus@at .n ] I'm trying to compile an extension on Windows using ruby extconf.rb.
+ 235729 [drbrain@se m] Rebuild ruby with cygwin/mingw.  You can't necessarily link cygwin/
+ 235730 [djberg96@gm ] Within your extconf.rb file, "$CC = gcc" should work
  235734 [weyus@at .n ] Neither of those seems to work, although I thought that they would.
  235737 [ara.t.howard] you can do it.  follow these steps

wrapping class method
235733 [donald.ball@] Hey guys, I'm having trouble figuring out how to wrap a class method. I
+ 235750 [erikveen@gm ] Wrapping methods? That good old story? Have a look at [1]... ;]
+ 235751 [gethemant@gm] module ActiveRecord
  235756 [donald.ball@] Yes, that's exactly it. And it even clarifies the class << self idiom

Ruby Symbol
235744 [kamipride102] I have been looking into what exactly a Ruby symbol is and have gotten
235752 [gethemant@gm] AFAIK you are passing a string and a Hash as an argument to the above

Re: Does Ruby's FTP lib have a ghostly bug?
235754 [srobertjames] Yes!  Sorry for not stating that.  This is a pure ruby issue - ftp in
+ 235759 [ara.t.howard] bummer.  that would have been the easy answer ;-(
+ 235760 [ara.t.howard] forgot to mention, try running your script with
  235762 [srobertjames] I just added FTP conneciton caching, which seems to have removed the
  + 235763 [srobertjames] PS - Who do I speak to about this?
  | 235788 [drbrain@se m] I'm pretty sure its exactly an EOFError.  (You have run out of data
  | 235790 [srobertjames] It's being called from an attempt to connect to an FTP site.  So, it's
  | 235795 [jcribbs@ne p] I have 50+ ftp scripts that run daily.  I only get this error on one of
  | 235797 [srobertjames] It sounds like this is a bug in ftp.rb.  Can you confirm that the ftp
  | 235808 [martin@sn wp] Looking at that, and at other messages in this thread, I tried this
  | 235822 [drbrain@se m] $ cat test.rb
  | 235896 [martin@sn wp] Fair enough.  I wasn't able to replicate this on my system with this
  | + 235927 [srobertjames] Wow! Top notch debugging.
  | + 235947 [drbrain@se m] Can you propose a patch on the Ruby tracker?  You may need to
  + 235775 [ara.t.howard] right on.  you can thank my friend tom lauren.  we used to debug together and

BUG: ruby-mode.el  /Today's Comic/
235758 [hugows@gm il] This regexp seems to break ruby-mode parser or something like that (I'm
+ 235767 [jameskilton@] ...
+ 235831 [jeremy@ch os] What's the actual problem?  I don't see anything wrong - at least
+ 235840 [matz@ru y- a] Could you try the following patch for ruby-mode.el?
  235842 [vincent.four] It does work for me (Emacs 21.4.1, debian).

Real time vector graphics
235768 [sonoflilit@g] ...
236473 [daniel.amela] Some Lisp dialect + OpenVG would be an...interesting choice for the
236524 [sonoflilit@g] ...
+ 236566 [sonoflilit@g] ...
| 236594 [daniel.amela] regular Carbon/Cocoa applications). You just have to figure out how to
+ 236590 [daniel.amela] Depends on what you're doing with it, which backend you're using and

Displaying HTML with OLE
235772 [RichardDummy] I'm running WinXP/SP2 and Ruby 1.8.2. I tried the sample below from The
+ 235781 [nlloyds@gm i] ...
+ 235786 [david.mullet] On Jan 23, 4:51 pm, "Richard"
  235803 [RichardDummy] Your technique worked perfectly.  I was disappointed by my system's
  236005 [david.mullet] On Jan 23, 10:50 pm, "Richard"
  236194 [RichardDummy] That sped it up a lot.  Of course, a couple of test runs doesn't prove

Create Exchange Mailbox via Ruby
235774 [charlesleeds] Has anyone successfully created an Exchange mailbox using Ruby?  I am
235784 [nlloyds@gm i] ...

inotify subdirectories
235791 [j2f@ma li at] i have been able to successfully use the inotify
235823 [martindemell] You need to maintain a hash of inotify watch descriptors to actual paths. e.g.
235867 [j2f@ma li at] undefined method `wd' for <Inotify::Event:0xDEADBEEF name=FIXME
235873 [martindemell] martin
235876 [j2f@ma li at] aha... ok. thanks for pointing me to correct source.

ruby openssl bindings.
235792 [satish.mumma] Here is the error which I get when i try a code with line require

mysql problem after upgrade to 5.0
235796 [bulbousbuy@g] I'm posting this as an FYI -- for other people who might encounter the

Ruby Reports (Ruport) tutorials and other resources
235802 [gregory.t.br] One of the biggest complaints in the past about Ruport is we didn't

Getting rid of tmp files
235805 [timasmith@ho] I have ruby running its little web server, ruby script/server
235819 [drbrain@se m] script/server is a railsism, so I'm presuming this is a Rails-related

FireWatir 1.0.1 released
235818 [angrez@gm il] We have released FireWatir version 1.0.1
+ 235821 [tanushree.bh] ...
+ 235828 [unbewusst.se] I'd like testing it under Mac OS X the latest, any advice on how to
  235838 [angrez@gm il] FireWatir installer is a gem so you can use ruby gems to
  235847 [unbewusst.se] OK fine, thanks !
  236021 [tanushree.bh] ...
  236033 [peter@ru yr ] This was exactly my problem a few months ago when I wanted to give
  236037 [angrez@gm il] You can visit http://code.google.com/p/firewatir and read the wiki
  + 236039 [peter@ru yr ] Cool! I have been missing exactly this information. Thanks a lot!
  + 236047 [unbewusst.se] Is it the same for Mac OS X ? because i didn't see something specific to
    + 236195 [ezmobius@gm ] I was able to install the gem on osx even though it's name has win32
    | 236674 [angrez@gm il] Could you please send me the issues/problems etc that you faced while
    | 236995 [tanushree.bh] ...
    + 236673 [angrez@gm il] We haven't tested FireWatir on MAC machine so haven't released any gem

How to install or update mysql and postgres gems
235824 [threeeyedfis] Good day!

Accessing ARGV[n] under SciTE fails; no problem under Command Window
235825 [RichardDummy] sAppDir = ARGV[0]
235870 [mforal.news@] command.go.$(file.patterns.rb)=ruby $(FileNameExt) $(1) $(2) $(3) $(4)
+ 235961 [RichardDummy] Thank you very much.  I'm sure I did that in my 1.59 version, which
+ 236123 [RichardDummy] For the benefit of other users who may view this thread, here's what I
+ 236125 [RichardDummy] For the benefit of other users who may view this thread, here's what I

ssl xml rpc
235826 [dweldon@gm i] I need to make remote procedure calls to a server that has a
235893 [brabuhr@gm i] In situations like this I often find a network protocol analyzer like Wireshark
235999 [dweldon@gm i] Ok I think I discovered the problem. I need to send my XML directly
236014 [james.britt@] I think that, by definition, a POST has POST headers.
236020 [dweldon@gm i] Haha, yeah I agree.
236076 [brabuhr@gm i] request_len=strlen(request);
236077 [brabuhr@gm i] s = TCPSocket.new(...)
236146 [dweldon@gm i] Fantastic! That worked just great. Thanks for the replies everyone!

Clean URLs with Camping and Apache
235827 [maxcantor@gm] I've set Camping up to run with FastCGI, MySQL and Apache.  I've set
235928 [why@ru y- an] Camping doesn't work like Rails, so you shouldn't have to use
235943 [maxcantor@gm] Thanks _why!  I got it working.  However... this is all well and good

235829 [robinstephen] Trying to muck around with serial ports under Linux using ruby-termios.

search in array
235830 [josh@pi ae .] is there in ruby a method like in_array() php function?
+ 235832 [stefano.croc] I don't know php, so I don't know what in_array() exactly does. At any rate,
+ 235833 [martindemell] array.include? string
  235834 [josh@pi ae .] thank you very mutch ;-)

RubyOnRails: Twin sites of planetrubyonrails
235841 [stephane.wir] I would like to know why is there two sites "planetrubyonrails" ?
235843 [robby.lists@] No, it doesn't appear so.
235911 [dan@fl en ra] Posted via http://www.ruby-forum.com/.

REPL driven programming
235844 [sonoflilit@g] ...
+ 236057 [logancapaldo] Emacs also has ruby-inferior mode which you can use to give you a very
| 236062 [sonoflilit@g] ...
+ 236613 [stefano.croc] This isn't true. From the KDevelop FAQ
  236619 [sonoflilit@g] ...
  236620 [benjohn@fy h] Something I liked about old school BASICs was the line numbering.
  237073 [chneukirchen] APL had that too, and you could even use floating point numbers to
  + 237148 [mike@st k. a] J? http://en.wikipedia.org/wiki/J_programming_language
  | 237431 [chneukirchen] I hear K is used in lots of banks etc.
  + 237918 [jwkenne@at g] VisiCalc.
    238095 [jwkenne@at g] It's been ages since I used VisiCalc, so I really have no idea. But as a

a Hash and a Set (sitting in a tree)
235845 [ shot@ho .p ] (For those keeping track at home of my Ruby vs. Ruby/C vs. C++
235853 [shortcutter@] Initially I would defer considerations of performance.  I'd start with
235859 [ shot@ho .p ] Thanks a lot for your reply, Robert!
235864 [shortcutter@] And how do you access or find blocks (and blankets)?
236434 [ shot@ho .p ] The catch was, I considered even just a 10% overhead to be worth
236437 [shortcutter@] irb(main):001:0> Array.new(5) { rand 8 }

Can Ruby do the Objective-C/Cocoa style alloc/init pattern?
235846 [greg.hurrell] In Objective-C/Cocoa objects normally come to life in the following
+ 235932 [stefano.croc] I'm not an experienced rubyst, but I think you need to overload new, not
+ 235950 [drbrain@se m] class Object
  235956 [gwtmp01@ma .] A less drastic approach than overriding new in the class is to simply
  236109 [greg.hurrell] Thankyou to everybody who participated in this thread. I think you've

Array and instance variable problem?
235851 [maxime@ek he] Look at the code below, I got strange results, I know that there is a
+ 235855 [shortcutter@] Your problem is aliasing: you're reusing the same @indexes over and over
+ 235858 [wonado@do ne] Use "@indexes.dup" istead of "@indexes" as the last Statement,...
  235862 [maxime@ek he] Thanks a lot for your answers, I got it :)
  235872 [wonado@do ne] Take a look to the following example.
  236011 [maxime@ek he] Wolfgang, Thanks a lot for your detailed answer.
  236050 [wonado@do ne] In the code
  236069 [maxime@ek he] Thanks a lot Wolfgang, I completely understood!

library to rurn money into nominal value?
235854 [peter@ru yr ] I wonder if there is something like $subj so that I don't reinvent the
235868 [thomas@ha ne] Attention to locales! At least these variants for 1234567.89 exist in

IO.popen without console
235861 [felipenavas@] I'm opening a IO.popen for passing commands to a DOS program while the

[ANN] test/spec 0.3, a BDD interface for Test::Unit
235863 [chneukirchen] today I'm releasing test/spec 0.3, a library to do BDD with Test::Unit.
235971 [vjoel@pa h. ] The test-spec gem does seem to depend on both FlexMock and Mocha. Not
236094 [chneukirchen] That (optional) dependency will be removed in the next release.

campfire api
235871 [mcyi2mr3@go ] does anyone here no where the campfire api can be downloaded?
+ 235899 [adambair@gm ] *a
| 235997 [cdcarter@gm ] Adam, Campfire, not Camping :)
+ 235900 [adambair@gm ] *a
+ 235901 [adambair@gm ] *a
+ 235903 [adambair@gm ] *a
+ 235904 [adambair@gm ] *a
+ 235907 [brabuhr@gm i] I've been using an old version of marshmallow.rb and a simple
+ 235908 [jeremy@bi sw] The unofficial API is a Ruby wrapper called Marshmallow. court3nay

problem with pam_ruby + postgres-pr (stack level too deep)
235874 [v.konrad@ls ] (code attached at the end)

Trickery in the ancestors chain
235880 [paolo.nusco.] module M
+ 235889 [robert.dober] ...
| 235905 [binary42@gm ] Are you sure you entered the entire thing _in_order_? I had the same
+ 235909 [ara.t.howard] why do you say that?  you first tell D to include M, which ruby does.  then
  + 235923 [gavin@re in ] module M; end
  | + 235926 [pit@ca it in] But it works as documented. Why do you want to change it?
  | | 235934 [gavin@re in ] 1) OK, you're right: if it's documented that way, it's probably not a
  | | + 235953 [paolo.nusco.] Yes, it's a feature - I found the C implementation in file class.c,
  | | | 236035 [pit@ca it in] On 24 Jan., 20:17, "Paolo Nusco Perrotta"
  | | + 236032 [pit@ca it in] Absolutely. That's why I asked for reasons to change it.
  | + 235931 [technodolt@g] Yeah, but isn't this a dangerous road to go down?  You will end up with people including a module to get some functionality and re-over-writing inherited methods that were over-writing instance methods in the original module.  I guess we should be allowed to do that, but it's probably going to cause more headaches to do it that way than it's going to solve... if you really need to use the original definition of a module's instance method that's been over-written already by a superclass, you have to question why you're using that superclass at all... if you don't want its functionality, but the functionality of something that it's inheriting, maybe you should consider some other sort of object hierarchy?
  + 235964 [robert.dober] ...

RubyForge Subversion charts
235882 [tom@in oe he] I posted an entry with links to the newly available StatSVN charts and