278625-285666 subjects 279015-296253

reading a column formatted data
278827 [suresh.amrit] I am quite fresh to ruby. I want to read a column formatted data like
+ 278830 [eustaquioran] weight	= {0=>1,1=>2,2=>3}
+ 278854 [bbxx789_05ss] The previous solution doesn't account for that requirement, and the
  + 278855 [bbxx789_05ss] I forgot to add that if your file doesn't use commas as the separator
  + 278861 [bbxx789_05ss] require 'rubygems'
    279071 [suresh.amrit] thanks for the wonderful ideas,

Ruby Libraries (and Leopard)
278828 [peterlaurens] I am wanting to experiment with SVG with Ruby, and although there is no
278983 [pikEISPAMMMs] I am not sure about Leopard. But I used Yuya's SVG lib, it works nice.

rrdtool gem
278833 [haley.thrapp] I am trying to use RRDtool through ruby.  I have installed rrdtool and
+ 278848 [vjoel@pa h. ] The "-lrrd" seems to be missing from your Makefile (and hence from the
| 278852 [haley.thrapp] Thanks, it was the -lrrd that was missing.  I had to move the .so files
+ 278919 [znmeb@ce ma ] I think the most recent version of RRDTool source comes bundled with a

Get file path of script being executed
278836 [villas82@gm ] + communications
278837 [fxn@ha hr f.] Check the __FILE__ variable in each one.
278870 [villas82@gm ] That works great, thanks.
279017 [linkin.dev@g] ...

Why are so many people confused about "Enterprise" software?
278840 [kyleaschmitt] Really, why are so many people confused about "Enterprise" software,
+ 278841 [rogerpack200] Count me in! :)
| 278846 [kyleaschmitt] I'd say optimized yea.
+ 278916 [znmeb@ce ma ] I think there are some of these -- at least for Rails, if not for
| 278959 [shortcutter@] Oh, and I thought the issue was nobody can actually *read* C++ code -
| 278974 [rick.denatal] No it works both ways.
+ 278982 [alexey.verkh] In my books, the defining feature of the Big Corporate IT (aka
| 278989 [znmeb@ce ma ] Actually, as I almost posted in another thread, I think Ruby has two
| 278991 [dblack@ru yp] Before Rails, discussions about what Ruby's sweetest spot might be
+ 278994 [sean@sm .u i] Kyle,

Shadowing bug??
278847 [vascoas@gm i] def f_ok(node)
278862 [mailing.mr@g] I remember someone mentioned that it's possible to do some strange
278885 [micathom@gm ] This is a somewhat similar situation where a variable isn't all that
+ 278972 [vascoas@gm i] Exactly!
| 279145 [shortcutter@] Just let me add that even though this is fixed IMHO it is a bad idea
| 279152 [vascoas@gm i] I don't agreed with you. Shadowing, IMHO, is a very useful (and
| 279277 [shortcutter@] IMHO you are abusing a lambda to get a nested method.  This likely
| 279280 [vascoas@gm i] I think that has to do a lot with your "school".
| 279291 [shortcutter@] This is a melody that drastically increases the likelihood that I do
| 280017 [vascoas@gm i] In "Programing Ruby: The Pragmatic Programmers Guide (2dn Ed.)" Book,
+ 279107 [botp@de mo t] # x =3D 1

Re: Yielding an object and caring about the result: the cous
278858 [rabbitblue@g] *claps* Beautiful. Absolutely beautiful.
278860 [james@gr yp ] Me too!
278863 [rabbitblue@g] No worries there, James. I, too would like to post this somewhere
278865 [james@gr yp ] Ara knows and sees all?  ;)

Ordered Hash Usefulness
278871 [devi.webmast] I've been wondering what the real usefulness of an ordered hash is.
+ 278882 [transfire@gm] On Nov 13, 3:53 pm, "Devi Web Development" <devi.webmas...@gmail.com>
| 278969 [devi.webmast] An Ordered hash presumably serves the purpose of lookup of a value by
| 278976 [rick.denatal] No, for most people, based on quite a long thread referenced by Bill
| 280172 [shortcutter@] Well, that's just /one/ way to order a Hash.  You could as well order a
| + 280182 [mental@ry ia] I asked matz about that on ruby-core.  The overhead turns out to be very
| | 280274 [shortcutter@] Yeah, clearly.
| + 280355 [daniels@pr n] =20
|   280385 [shortcutter@] Which would still be something different than a Hash that
+ 278903 [Bil.Kleb@NA ] See, for example,
+ 279005 [ara.t.howard] i use mine (gem install alib, alib.orderedhash.new) all the time for
+ 280169 [ralphsiegler] writing one write now to deal with csv text files, like to use "column
  + 280174 [transfire@gm] facets/dictionary, brought to you by jan molic might say you some
  | 280216 [ralphsiegler] thank you for pointing me at the facets project, I've been away from
  | 280264 [transfire@gm] Ah, Thanks for reporting this! Sorry for the inconvenience. I'll have
  | + 280314 [transfire@gm] The gem install should be okay. The docs are not generated
  | + 280700 [ralphsiegler] wow, thanks much for very speedy and surprising response!  It does
  + 280847 [james@gr yp ] FasterCSV does this, if you just want an out-of-the-box solution.
    280860 [ralphsiegler] On Nov 26, 2007 12:49 PM, James Edward Gray II

can't modify literal regexp: why?
278872 [jeremy.steph] I was just curious as to why this is illegal.
+ 278873 [bbxx789_05ss] (/blah/).clone
+ 278931 [nobu@ru y- a] It is to prohibit /blah/.initialize_copy(/foobar/).  You may
  278990 [jeremy.steph] Thanks for the info.  Anyone know _why_ it's prohibited?  Just curious.
  279022 [drbrain@se m] x = /x/.dup

MySQL failed to install due to priveleges
278874 [hawat.thufir] privileges to complete this installation for all users of the
+ 278891 [DPhillips@cy] If you have Access installed on your computer, you could work with
+ 278964 [alex@bl ck e] Have you tried Instant Rails?  As far as I recall it doesn't need
  278973 [dangerwillro] Or try some other alternatives: SQLite, PostGRESql
  279414 [hawat.thufir] Next time I'm at a Windows box I'll try SQLite, it looks interesting and

ML issues?
278875 [ara.t.howard] i haven't personally seen all this thread
+ 278876 [gavin.kistne] a80e312fff
+ 278877 [james@gr yp ] I'm pretty sure I've seen all of them.

recursion with blocks
278878 [mperham@gm i] I have a tree structure where I want to walk the structure and find a
+ 278879 [jameskilton@] ...
+ 278881 [james@gr yp ] Does this give you some ideas?
  + 278890 [mperham@gm i] Sort of.  I'm still unclear how the actual node is propagated back up as
  | 278892 [james@gr yp ] We'll get there=85
  | 278896 [mperham@gm i] Ok, that I understand.  You aren't actually recursing inside the block,
  | 278897 [james@gr yp ] Yeah, I was just using the block inside a recursive method.  You are
  | 278898 [pergesu@gm i] I think he means something like this?
  | 278921 [doug@ds if r] ...
  | 278965 [alex@bl ck e] Another example I coincidentally came up with for another thread,
  + 278915 [raulparolari] I played with this Tree for a while (amazed by its simplicity and
    278917 [james@gr yp ] Yeah, that's much better.  I actually used a structure close to this,
    278920 [james@gr yp ] def each(&block)

the dragon has-a traits object
278880 [hawat.thufir] Is this the "correct" way to change the dragon's traits?

Windows Event Logging
278883 [cuiguy@ne wo] Anyone know a way to read Window eventlogs remotely and add them to a
+ 278887 [fred@la av .] Microsoft gives away a tool called logparser [1], which exports an
+ 278888 [damnbigman@g] You should be able to do it with WMI.  Without doing some research I'm
+ 278889 [djberg96@gm ] You want win32-eventlog. As per the docs, you specify the remote host
+ 279105 [botp@de mo t] # Anyone know a way to read Window eventlogs remotely and add=20

rubygems: why "Bulk updating Gem source index..."
278899 [bbxx789_05ss] gem query -rn someGem
278932 [phrogz@ma .c] What version of gems are you using?
278951 [bbxx789_05ss] 0.9.4
278953 [drbrain@se m] Try the beta.  This problem has been marked as fixed in the tracker.

278900 [fxn@ha hr f.] According to my trials nor Module#constants neither Module#const_get
278978 [fxn@ha hr f.] I gues that C is somehow in scope, but there are other examples that
279010 [ara.t.howard] for the same reason that File and Object are.  imagine if C were not,
279038 [fxn@ha hr f.] module M
279048 [fxn@ha hr f.] Nah, that didn't add information. When the code is interpreted and we

creating a framework to wrap a gem
278902 [sal.scotto@g] Anyone know of a good way to wrap a rubygem into a framework for
278911 [laurent.sans] You could add a new build phase in your framework project that copies

Can't run cgi script with Apache 2.2 with Windows XP
278905 [lynchnco@pa ] I'm trying to get Ruby up and running using a CGI script in a Windows

[SOLUTION] Vehicle Counters (#146)
278907 [phrogz@ma .c] Attached is my solution (in progress). Before I get onto the analysis

Read file into array
278909 [cuiguy@ne wo] What are examples of reading a csv file (Comma) into an Array
278927 [phrogz@ma .c] On the Internet.
278941 [anilbhat21@g] def member_data

efficiency of recursion (stack level too deep)
278925 [chet.nichols] ...
+ 278997 [shortcutter@] You'll find it in the archives. This issue comes up frequently.
| 279012 [rick.denatal] Actually this is a problem with ruby, the implementation, rather than
+ 279039 [rubytraining] Your wording seems to imply that you believe that each object has its

rails incredibly slow?
278926 [ronjeffries@] Chet and I installed Instant Rails on our laptops. My laptop is faster
278946 [jeremy@bi sw] Hey Ron, I'm not too familiar with Rails on Windows but have heard

rails incredibly slow (update)
278928 [ronjeffries@] After 24 minutes of waiting, the Welcome Aboard window came up in my
+ 278936 [ronjeffries@] I'm on XP. I don't think McAfee is that aggressive but I will check.
| 278942 [james.britt@] I've run Ruby apps, including Rails apps, on an XP laptop with little
| + 278968 [ronjeffries@] Windows seems generally fine. Only rails has any particular slowness
| + 278988 [znmeb@ce ma ] My experience on Windows laptops (even more anecdotal than yours) is
|   278996 [ronjeffries@] The system runs quite well EXCEPT for rails, which takes upwards of 30
|   + 279002 [tanner.burso] Does it happen running irb, or other normal ruby scripts, or is it
|   + 279003 [tom@in oe he] I may have missed this in an earlier post, but what does running "ruby -v"
+ 278979 [gamontbr@gm ] Recently, I used this free tool to check some performance problems in my
| + 279235 [ronjeffries@] Well, software luminaries, whatever those are, can be just as ignorant
| + 279236 [ronjeffries@] Didn't get it, sorry ...
|   + 279239 [billk@ct .c ] I'm assuming you invoke some particular .rb file to start your whole
|   + 279317 [znmeb@ce ma ] Hmmm ... maybe we should get an IRC channel up for hunting this down.
|     279330 [rick.denatal] I'd suggest finding an analog to strace for windows. I'm pretty sure
|     279341 [jan.svitok@g] - PerfMon - will show you bytes/s read/written from/to memory, the
|     279525 [ news@ja .f ] Also Filemon (or its someday replacement, Process Monitor) from
+ 279591 [noone@he e. ] This is probably unhelpful, but since you seem stuck..
  279592 [mo_mail@on h] I think there was another Portable version of Rails but I can't remember

My hashe is only storing 1 set of values....
278933 [pood.forums@] Dir.foreach(directory) do |f|
+ 278934 [pood.forums@] OMG, sorry i just figured out what I did wrong.
+ 278938 [konrad@ty er] charset="utf-8"

writing web services using Ruby
278935 [thilinamb@gm] i want to write a web service using Ruby. This is not the client, but
+ 278940 [james.britt@] Well, you'll have to define "service".
| 278957 [thilinamb@gm] thanks James.
+ 278980 [james@gr yp ] It's very easy to write XML-RPC services using Ruby's standard
  279070 [thilinamb@gm] i followed a article at the following URL.

"once" meta-method without "module_eval" (Pickaxe)
278943 [greg.weeks@a] My impression is that Ruby meta-programming used to lean heavily on
+ 278966 [transfire@gm] instance_variable_get/set
+ 278975 [dan-ml@da 42] I have just one question: why is that good? Is it just that avoiding
| 279011 [ara.t.howard] not to mention it doesn't create a closure/leak...
| 279014 [transfire@gm] another good point! and i still think there should be a way to shut
| 279029 [greg.weeks@a] First, thanks (you all) for the info I asked for.
+ 279031 [phrogz@ma .c] My first dynamically-typed, runtime-interpreted scripting language was

[ANN] RubyGems Beta
278947 [drbrain@se m] RubyGems is a beta release for the upcoming 0.9.5 which adds

win32ole: Pass by Reference
278971 [david.zxem@g] All,
278993 [jan.svitok@g] Look at 1.9 WIN32OLE documentation. The last paragraph discusses the
279006 [david.zxem@g] I went through all the existing threads before I posted this one
279013 [jan.svitok@g] Can you specify the problem in more detail? Is it that
279089 [david.zxem@g] Great thanks for your help.
279100 [david.zxem@g] I raised a bug related to win32ole.c weeks ago. Could anyone who is
279424 [masaki.suket] Sorry, I have not noticed this topic.

Scientific Ruby (was Re: enterprise ruby)
278986 [znmeb@ce ma ] Well ...
279828 [cameron.mcbr] sure.  But I'm not clear about the point you're trying to make.   What

278998 [charleno@gm ] ...
279331 [bubbabrennan] me too did anybody tell you how?
+ 279332 [lavigne.eric] Send an email to
+ 279333 [m_goldberg@a] Send your unsubscribe message not to this list, but to <ruby-talk-

Put a argument into a Ruby script
279004 [z4n9ief@gm i] I would like to send a value in a script by using a argument. For
279007 [jeremymcanal] I believe the ARGV array is what you're looking for. :)
279009 [z4n9ief@gm i] It's perfect! xD

ruby incredibly slow (update 2)
279008 [ronjeffries@] Ruby -v (print the version) is a bit slower on my machine than Chet's.
+ 279016 [billk@ct .c ] This may be like 'slaking a thirst with a firehose', but...
| 279062 [ronjeffries@] If all else fails, I'll dig into this one. Thanks,
+ 279025 [drbrain@se m] This is making me think that your DNS is confused.  I don't know if
| 279061 [ronjeffries@] It's a solid 8 seconds on my machine. But ordinary web page access is
| + 279064 [ronjeffries@] I flushed dns cache (windows xp), same result. changed from system
| | 279067 [billk@ct .c ] Weird.  Not sure this would make any difference, but, might
| | 279096 [ronjeffries@] "My program" is rails, so I'm not sure I could do that.
| + 279087 [drbrain@se m] Do you get the same result for the IP address (last field)?
|   279097 [ronjeffries@] I don't understand the question.
|   + 279099 [alex@bl ck e] ["localhost", ["test"], 2, "\177\000\000\001"]
|   | 279119 [ronjeffries@] Still don't understand. Same as what?
|   | + 279130 [alex@bl ck e] Ah, I see.  I believe Eric was originally asking you to enter only this
|   | + 279256 [botp@de mo t] #=20
|   |   + 279293 [hutch@re ur ] I second this.
|   |   | 279418 [ronjeffries@] Interesting. I'm hoping to get some time tomorrow to play with this,
|   |   | 279710 [hutch@re ur ] Did you get a chance to try this? If not you might want to. It has a
|   |   | 279931 [ronjeffries@] Rather than follow any of the radical solutions like new computers or
|   |   | + 279951 [billk@ct .c ] Wow - weird!  :D
|   |   | | 280031 [znmeb@ce ma ] Not really -- sounds like a fragmented drive. By the way, Windows XP
|   |   | | 280036 [billk@ct .c ] I was assuming *all* the different odd slowdowns discussed on
|   |   | + 279957 [rick.denatal] Egads!!!!
|   |   | | 280362 [ronjeffries@] Yes, it is unsatisfying. But at least cheaper than converting to Mac
|   |   | + 279962 [wruyahoo05@c] Its good that you have it resolved. Do you know what the tools did?
|   |   | | 280363 [ronjeffries@] Mostly the tools cleaned the registry and did some mumbo-jumbo about
|   |   | | 280390 [jari.william] An over-full temp folder can cause an application to slow down to
|   |   | | 280513 [ronjeffries@] The disk cache you mean? I suppose that could be the difference.
|   |   | | 282221 [majid_nabil@] Ron,
|   |   | + 279996 [john.carter@] Well... you're not sure what the proximate cause is. Probably virus /
|   |   | | + 280030 [znmeb@ce ma ] Of course you can! But I'll see your Ubuntu and raise you a Gentoo!
|   |   | | + 280364 [ronjeffries@] Honestly, John, I see no way that moving from Windows to Linux is a
|   |   | |   280514 [ronjeffries@] Yes, I suspect that's very true ...
|   |   | + 310347 [clemens.wyss] which of their tools did you run?
|   |   + 279417 [ronjeffries@] I think I reported earlier but may not have. Simiple ruby programs
|   + 279144 [rick.denatal] Just a SWAG, but. time ruby -rsocket -e 'p Socket.gethostbyname("")'
|     + 279153 [caleb@ae -t ] At least on Linux, when I've had big slowdowns like this, throwing in
|     + 279234 [ronjeffries@] Tried it. No effect. This is so confusing ...
+ 279587 [ronjeffries@] I changed RUBYOPT to be empty, as someone suggested, with no change in
  + 279588 [ronjeffries@] As a side note perhaps of interest, this command
  | 279589 [marick@vi ib] Like all the xUnits, the times are misleading because they don't
  + 279593 [ news@ja .f ] ruby.exe.
  | + 279595 [ronjeffries@] It may come to that but not clear it is file I/O. Yet. Would love to
  | | + 279600 [marick@vi ib] Again, perhaps I'm missing context, but something like this doesn't
  | | | 279669 [ronjeffries@] Hmm. I read the help, which says
  | | + 279602 [doug@ds if r] ...
  | | + 279618 [ news@ja .f ] Yep.  RSpec has a --format progress (and a per-spec timeout as well which
  | |   279668 [ronjeffries@] Well, this is in the range of hoo boy, 15x slower than Chet's laptop,
  | |   279696 [ news@ja .f ] Yeah, you've definitely got a degenerate-case condition (or maybe a few)
  | + 279628 [ronjeffries@] Well, yes and no ... this chunk of code takes some 15 seconds, which I
  |   + 279630 [billk@ct .c ] Appears to be shelling out to another ruby process which will take
  |   | 279667 [ronjeffries@] Yes, thanks. I think it's 5 lines and that it is taking 15 seconds to
  |   + 279637 [john.carter@] Back tick ` means run the following command and return whatever goes to stdout as a string.
  |     279666 [ronjeffries@] Way more cryptic than I needed. Thanks.
  |     279811 [john.carter@] Always a pleasure to render a persons day more surreal. May the force
  |     279842 [ronjeffries@] McAfee doesn't agree. They could be wrong, I suppose. I'm running all
  + 279610 [billk@ct .c ] I'm not sure if you might have missed some of my posts, or if