299800-340813 subjects 300157-318868

^ "require" with many files
299953 [ibc aliax.ne] SGksIGlzIHRoZXJlIGFueSBwcmVmZXJyZWQgd2F5IHRvIGxvYWQvcmVxdWlyZSBhbGwgdGhlIGZp
+ 300002 [rogerpack200] SSd2ZSBuZXZlciBzZWVuIGFueXRoaW5nIGVsc2UKCk9uIFR1ZSwgQXByIDI5LCAyMDA4IGF0IDI6
+ 300004 [Gennady.Byst] You do use Ruby magic here ;-). The only thing I would suggest is that if y=
| 300050 [ibc aliax.ne] er
+ 300008 [ara.t.howard] glob =3D File.join( File.dirname(__FILE__), 'headers', '*.rb' )
| 300012 [djberg96 gma] I seem to recall proposals for allowing something like "require header/
+ 300535 [matt tidbits] If you say

^ How to debug Ruby Programs
299955 [kittu_mohan2] I'm a newbee to Ruby, can any one you please suggest me ways to debug a
+ 299957 [cmdjackryan ] puts statements sprinkled in the code, coupled with #inspect, or ruby=debug.
| 299964 [kittu_mohan2] Hey i didn't get you...can you give me a small example to use #inspect,
| + 299967 [nospam gmail] command shell
| + 299968 [cmdjackryan ] <http://brian.maybeyoureinsane.net/blog/2007/05/07/ruby-debug-basics-screencast/>
+ 299969 [eeklund gmai] 1. Read code carefully, including refactoring it to be more readable.
  + 299999 [vjoel path.b] You can put debug code (invariant checks, and puts), flush with the left
  | 300000 [micathom gma] This thread is just about to begin to get funny. You could add
  | 300001 [decoux moulo] which version ?
  | 300006 [micathom gma] Thanks for the info, I'll run an update.
  + 300311 [ shot hot.pl] Hey, that=E2=80=99s a very nice trick! Thanks a lot for sharing.

^ Mixins
299963 [m.tyman inte] Is any way to define variables in module which can be further used in
+ 299966 [sandro.pagan] module Mod
| + 299970 [m.tyman inte] Yep, you're my hero ;-) Works well.
| + 299974 [dblack rubyp] You've got two variables called @anyvar in that code, and they have no
|   299981 [sandro.pagan] Well, maybe you can try this way...
+ 300021 [justincollin] I am not sure I quite understand what you are trying to do, but you can

^ How can install Tk8.5 to Ruby1.8.6
299965 [preechatu gm] I am a newbie for Ruby, I d/l one-click of Ruby1.8.6 and install ,then
+ 299984 [dezertir pos] I too have this problem
+ 299992 [nagai ai.kyu] Probably, tcltklib on one-click-ruby is compiled for Tcl/Tk8.4 only.
| 300058 [nagai ai.kyu] I recommend to try Ruby 1.8.7 (or ruby_1_8 on SVN),
+ 300087 [luislavena g] install ActiveTcl *8.4* for tk to work with One-Click.

^ References in Ruby
299973 [m.tyman inte] a = 10
+ 299976 [dblack rubyp] When you assign to a variable, you are reusing the identifer (a, in
+ 299977 [mikael hoilu] That's because you're not changing 50, you're changing a. At the third
+ 299978 [rick.denatal] Well not everything IS a reference in Ruby.  I think you are suffering
| 299979 [dblack rubyp] s/objects\.$/variables./ I think.
| 299980 [rick.denatal] Yes, for the regex challenged that should read,
+ 299986 [Gennady.Byst] [Sorry for the top posting, webmail not quoting properly]
+ 300256 [gmane auxbus] Marcin Tyman said...
  300268 [dblack rubyp] And indeed they are :-)
  300296 [stephen step] a = 10
  300298 [dblack rubyp] Yes, I think you are. 10 and 50 are objects (of class Fixnum). The

^ Help in the excel
299982 [pranjal.jain] I want to  insert the data into the Excel sheet, but I wish  the data to
299983 [david.mullet] $worksheet.Range("c#{b+1}").Font.ColorIndex = 50

^ Documentation Patch: Preventing XPath Injection attacks
299985 [kbloom gmail] Here's a patch to rexml/xpath.rb which documents the variables parameter
300005 [rogerpack200] may want to send that to ruby-core :)
300098 [kbloom gmail] Could somebody else do that for me? (Maybe Matz will notice the patch
300099 [cmdjackryan ] Try to subscribe with @googlemail.com, instead of @gmail.com.
+ 300164 [kbloom gmail] Ok. I didn't know I needed to be subscribed, and gmail ate the bounce
+ 300165 [kbloom gmail] I don't need to be subscribed to post to ruby-talk. I didn't know I

^ Unsubscribe
299988 [philip.clark] Unsubscribe

^ Logging stdout/stderr/stdin of an spawn process (Open4::spawn)
299989 [ehames gmail] I apologize for reposting this message, but I'm not sure if the
300830 [ehames gmail] =3D>

^ Re: determining what os is running
299994 [stephen.bann] In some of my work I'm writing code that works with different host OS
300189 [daniel.schoe] I'm running Gentoo/Linux on AMD Athlon X2 CPU (32-bit).

^ Converting HTML input data to pre-format XML data
300007 [eodumosu gma] I am really new to Ruby and here is my dilemma. I need to write a
300018 [rogerpack200] google for rexml, and maybe look around for some XML posts that look

^ ANN: Sequel 1.5.0 Released
300009 [code jeremye] Sequel is a lightweight database access toolkit for Ruby.

^ How to convert "ソー" into "\343\202\275\343\203\274"?
300010 [rollingwoods] Want to covert "Rubyソースコード完全解説" into
+ 300013 [AEtzold gmx.] maybe you can use the Uconv module from  http://www.yoshidam.net/Ruby.html
+ 300083 [list.push gm] Is this what you want to do?
+ 300109 [d_rems yahoo] This is how I do it. I guess it

^ [ANN] Monkeybars has moved to Gitorious
300014 [james.britt ] Project tracking is now on Google Code

^ debugging with Test::Unit
300015 [eric.mahurin] I'd like to use a debugger ('debug', 'ruby-debug', or even irb) with

^ FastRI stopped seeing core/stdlib classes
300020 [ shot hot.pl] My setup: Ruby 1.8.6.p114 hand-compiled to ~/opt/ruby-1.8.6-p114.
302671 [psyonic gmai] Did you ever figure out what was going on here?  I have the same
+ 302675 [apeiros gmx.] Same here.
+ 303833 [ shot hot.pl] =80=99t

^ leak stuff
300022 [roger doachr] Has anything being done on these?
+ 300024 [rogerpack200] To answer my own question.
| 300040 [vjoel path.b] Not a leak. Symbols are not collectable.
| 300061 [mental rydia] It depends on the Ruby implementation.
| 300073 [vjoel path.b] Is that changing in MRI?
+ 300092 [rogerpack200] This leaks too.  Not sure if it's related or not.
  300199 [rogerpack200] Appears that it was the same bug.

^ rails is a mess!
300023 [netcam gmail] I have to say that rails is such a mess right now.  Notta working and it
+ 300025 [damnbigman g] Then try a different framework maybe?
| 300036 [james.britt ] Exactly.
| 300187 [mneumann nte] ... Wee :) :)
+ 300026 [jeremymcanal] Did you actually install the oniguruma C library?  That's probably
| 300030 [netcam gmail] No I have a bunch of things to setup and just can't get any of it to work.
| + 300034 [jameskilton ] Lets try taking a deep breath and describing what's actually going
| + 300035 [shevegen lin] Why don't you just do it? And besides, if I would not like something,
| + 300037 [netcam gmail] Ok enough of my rant.  I had to clean and clean.
|   + 300044 [jeremy bitsw] I'm glad you got things working.
|   + 300051 [ryand-ruby z] Seems to be working for the rest of us... but since you refuse to
|   + 300055 [ snk gna.org] Correct, and the way you can *easily* know this fact is by looking at
|   + 300217 [drbrain segm] Why would you expect a 1.x release to be fully backwards compatible
+ 300027 [tim.pease gm] It appears that you have updated many many things all at the same
+ 300049 [jeremy bitsw] jOhn, you mention a few issues with Ruby, the standard library, and gems.

^ Getting array index for non-zero elements
300028 [victor.reyes] Team,
+ 300038 [Rob AgileCon] => true
| 300041 [s.korteling ] It works without the 'require' here.(VERSION=1.8.6). I like the
| 300043 [dblack rubyp] If all you need is side-effects, like printing, then you can used
| 300134 [victor.reyes] First, thank you for all your replies. I truly appreciate each and everyone
+ 300039 [stefano.croc] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#

^ Re: determing what os is running
300033 [denis.defrey] ...

^ How can I suppress popups on Windows during File.exists?
300042 [LandonJCox g] I apologize if this is a double post - I subscribed through the ruby-
300094 [phasis gmail] require 'win32ole'
300288 [LandonJCox g] Thanks for the info, Park. One of my requirements is that the solution
300324 [gthiesfeld g] What versions of Windows and Ruby are you using.  I don't get this

^ Managing a fork pool to handle tasks
300045 [abdulrahman ] Hey guys,
+ 300047 [rogerpack200] google ruby forkoff [?]
| 300052 [abdulrahman ] I don't have a fixed queue (I use memcache to fill it and use other
| 300053 [abdulrahman ] Sorry, I didn't know that calling fork makes the thread become a child
+ 300056 [john.carter ] Try my nifty MultiThread class. Creates a pool of N worker threads (no
  300064 [abdulrahman ] Your multithread class doesn't catch failures...
  300074 [john.carter ] Contrariwise.

^ Re: forkoff - parallel processing for ruby enumerables
300046 [abdulrahman ] Check out the code for spawn, the guys have fixed this
300048 [abdulrahman ] Checking out the source I only see pid = fork (this is a call to
300059 [abdulrahman ] Sorry, just figured out calling fork makes the thread a child process...
300066 [ara.t.howard] require 'timeout'
300188 [jeremy hineg] That'll kill the thread, but not the child process that was forked, at least

^ Small tweak to ruby lexing to create optimal aspects / DbC /  debugtraces.
300054 [john.carter ] Hokay, now that's an idea! But lets generalize it a little....

^ Help with the ".times" command in ruby
300063 [ghynson hotm] Hey guys,
300065 [cdemyanovich] 5000.times do
300071 [ghynson hotm] Thanks Craig,

^ Where and how is defined "attr_accessor"?
300067 [ibc aliax.ne] =20
300069 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
300070 [ibc aliax.ne] module FieldAccessor
300259 [kbloom gmail] Metakoans, which involved creating an attr_accessor like method.

^ Levenshtein_distance and recreate the string
300077 [rgowka1 gmai] A general computer science question-
+ 300079 [cmdjackryan ] I see no reason why it shouldn't.
| 300084 [dblack rubyp] But isn't it the same for RUBY -> RUBE and RUBA -> RUBE ? In which
| 300085 [cmdjackryan ] Good point. I don't know if the L. distance is unique for each
| + 300089 [dblack rubyp] Me too. I leapt on this thread partly to give myself an excuse to get
| | 300121 [AEtzold gmx.] Dear all,
| + 300260 [kbloom gmail] It's not unique. Any single deletion has edit distance 1, any single
+ 300082 [rick.denatal] Hmmm, smells like a homework assignment.
+ 300086 [markonlinux ] would S1 be BOAT (BRUT, BRAT, BOAT), GRAN (BRAY, GRAY, GRAN), GOUT
+ 300128 [eleanor game] Simple answer: no.
+ 300137 [vidar.hoksta] Several people have given great answers as to why this isn't possible,
  300139 [rick.denatal] Another thing to consider is why it's called a distance rather than,

^ What are the weaknesses in Ruby?
300078 [hi.steven.tu] What are the disadvantages of Ruby?
+ 300081 [john.d.perki] It's not the fastest.
| 300090 [john.d.perki] I mean like processing speed. A C program will probably outrun a ruby
| + 300097 [cmdjackryan ] Not that this matters in non-embedded environments, and given how
| | 300202 [huw darkneon] Regarding GUI/user interfaces. There are many ways in which Ruby can be
| | + 300226 [cmdjackryan ] Adding to this: Monkeybars makes it a breeze to grab the Swing UI from
| | + 300376 [hramrach cen] Flash is *NOT* cross-platform. Where is the player for, *BSD, PPC
| + 300297 [ara.t.howard] don't forget - ruby *is* a c program.  thus, if you are leveraging
+ 300091 [znmeb cesmai] Relative to what and for what purposes?
+ 300102 [michael.broo] I came to Ruby from Delphi (and to a lesser extend C/C++, Visual Basic,
  300150 [damnbigman g] Delphi really forces static compilation all the time?  That sucks.
  300182 [shevegen lin] That too many people still use perl. Especially old, but smart C
  + 300183 [shevegen lin] I dont so much agree or disagree with you about your note above :) but
  | + 300190 [cmdjackryan ] And is yet so uniquely unsuited to, say, data entry. Try to do
  | | 300191 [eleanor game] Much of the problem is that a Web Browser is not suited to being an
  | | 300195 [hramrach cen] I have written a data entry application in PHP (+JS)(because it is the
  | + 300372 [mo_mail ongh] Marc, although I haven't looked at it closely, this looks like the kind
  + 300219 [znmeb cesmai] I managed to bypass C and went straight from Fortran to Awk and then

^ I broke the autotest :(
300080 [john.d.perki] loading autotest/rails_rspec

^ Question on Procs
300101 [bparanj gmai] list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
+ 300125 [benjohn fysh] *snip*
+ 300212 [rubytraining] =46rom the short example you provide, there really is no advantage to

^ What is attr_accessor?
300103 [hi.steven.tu] I even don't know what attr_accessor is.
+ 300104 [christopher.] #attr_accessor is a method of Module.
+ 300106 [cmdjackryan ] There is this wonderful thing called 'search engine', which helps in
+ 300108 [bbxx789_05ss] class Dog
| 300186 [shevegen lin] class Dog
+ 300129 [fox nscl.msu] ...

^ Installing RMagick with Gmagick on xp64!
300110 [gunncb idont] With Ruby -186-26
300114 [cmdjackryan ] Probably by installing an ImageMagick fork. From a superficial
300130 [gunncb idont] I largely followed this, except I went the Gmagick way.
300133 [cmdjackryan ] Probably not necessary. Though, unless something else depends on it, it
300225 [gunncb idont] I didn't unintall Gmagic, installed Imagic, and it's much happier!

^ RubyOnRails Plugin: Auto Tags
300111 [sur.max gmai] <a href="http://expressica.com/auto_tags">AutoTags</a>, an open source

^ Dynamic class instantiation by iteration
300112 [frisco apple] I'm curious as to why the following does not create three instances of
300113 [stefano.croc] Your code does create three instances of Cat, but they're thrown away
300131 [dblack rubyp] Make that Cat.new(n) :-)
+ 300170 [stefano.croc] Of course
+ 300174 [cmdjackryan ] Hm. Shouldn't that be Cat.mew(n)? :P

^ Help regarding using winsystem command
300115 [pranjal.jain] I am trying to invoke the system commands by means of Ruby.
300180 [rogerpack200] just use system, not winsystem

^ I have installed Ruby-186-26, why is there no usr/local/bin/ruby  directory?
300116 [hi.steven.tu] When I installed it, I just changed the path to e:\ruby.  I often meet
300118 [robert.dober] It seems that you have installed Ruby on Windows. Your expectation of
300120 [hi.steven.tu] yea, my computer is Windows.
+ 300127 [cmdjackryan ] Cygwin or Ruby One-Click? That your OS is Windows could be inferred from
+ 300154 [znmeb cesmai] You can't really expect a mix of the Cygwin and One-Click Ruby paths and
  300184 [shevegen lin] I installed ruby under c: on windows and it works nicely, including

^ Re: ruby-oci8 proxy-authentication?
300119 [yizhih gmail] You can refer to [ruby-oci8-devel] Ruby OCI8 proxy

^ Watir : Working in same session of IE
300122 [anukul.singh] Actually am stuck in a problem.
+ 300123 [botp delmont] RnJvbTogbGlzdC1ib3VuY2VAZXhhbXBsZS5jb20gDQojIEFjdHVhbGx5IGFtIHN0dWNrIGluIGEg
| 300124 [anukul.singh] Are you trying this out in Scite or is their something else that you are
| 300126 [botp delmont] RnJvbTogQW51a3VsIFNpbmdoYWwgW21haWx0bzphbnVrdWwuc2luZ2hhbEBnbWFpbC5jb21dIA0K
+ 300136 [aidy.lewis g] command in the existing browser only.

^ n00b string replace
300132 [theistian gm] irb(main):002:0> st = "un ' monton ' de ' apostrofes '"
+ 300143 [evans.jon gm] =3D> "un ' monton ' de ' apostrofes '"
+ 300534 [matt tidbits] You can really confuse the heck out of yourself this way. There are two

^ How to create "def method(item)= (value)" ?
300135 [ibc aliax.ne] SGksIGlzIGl0IG5vdCBwb3NzaWJsZSB0byBjcmVhdGUgYSBtZXRob2QgdG8gdXNlIGluIHRoaXMg
+ 300140 [cmdjackryan ] def param key, value
| + 300141 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
| | + 300144 [cmdjackryan ] *facepalm* Right. String interpolation. Too clever for my own good, is
| | | + 300148 [ibc aliax.ne] MjAwOC80LzMwLCBQaGlsbGlwIEdhd2xvd3NraSA8Y21kamFja3J5YW5AZ29vZ2xlbWFpbC5jb20+
| | | | 300149 [cmdjackryan ] Sort of. As a singleton method, you get the syntax error. But not if you
| | | | + 300152 [ibc aliax.ne] MjAwOC80LzMwLCBQaGlsbGlwIEdhd2xvd3NraSA8Y21kamFja3J5YW5AZ29vZ2xlbWFpbC5jb20+
| | | | + 300156 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
| | | |   300158 [cmdjackryan ] Though, it should (might?) be possible to implemetn something like
| | | |   300161 [dblack rubyp] def object.[](index)
| | | + 300155 [dblack rubyp] Sorry -- it's wrong. I think I've remembered what I meant to write.
| | |   300159 [ibc aliax.ne] MjAwOC80LzMwLCBEYXZpZCBBLiBCbGFjayA8ZGJsYWNrQHJ1YnlwYWwuY29tPjoKCj4gIG9iamVj
| | |   + 300162 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
| | |   | 300169 [ibc aliax.ne] MjAwOC80LzMwLCBEYXZpZCBBLiBCbGFjayA8ZGJsYWNrQHJ1YnlwYWwuY29tPjoKCj4gPiBXaGF0
| | |   + 300166 [cmdjackryan ] it's the class keyword to define classes.
| | + 300145 [ibc aliax.ne] MjAwOC80LzMwLCBEYXZpZCBBLiBCbGFjayA8ZGJsYWNrQHJ1YnlwYWwuY29tPjoKCj4gIFlvdSBj
| |   300153 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
| + 300142 [ibc aliax.ne] MjAwOC80LzMwLCBQaGlsbGlwIEdhd2xvd3NraSA8Y21kamFja3J5YW5AZ29vZ2xlbWFpbC5jb20+
|   + 300146 [cmdjackryan ] Not commenting on the Java part (the naming in Java is usually rather
|   + 300147 [chris.hulan ] Why not just access param?
|     300151 [ibc aliax.ne] MjAwOC80LzMwLCBDaHJpcyBIdWxhbiA8Y2hyaXMuaHVsYW5AZ21haWwuY29tPjoKPiBXaHkgbm90
|     + 300160 [decoux moulo] There is always the stupid way
|     + 300168 [chris.hulan ] Create your own Hash subclass?
|       300176 [ibc aliax.ne] MjAwOC80LzMwLCBDaHJpcyBIdWxhbiA8Y2hyaXMuaHVsYW5AZ21haWwuY29tPjoKPiAgQ3JlYXRl
+ 300178 [kbloom gmail] def initialize
  300179 [ibc aliax.ne] MjAwOC80LzMwLCBLZW4gQmxvb20gPGtibG9vbUBnbWFpbC5jb20+Ogo+IGRlZiBpbml0aWFsaXpl
  300232 [kbloom gmail] a proxy that edits the params array in only the ways you want.
  300261 [ibc aliax.ne] Thanks a lot. Very useful information :)