190037-190931

189823-190380 subjects 190330-192029

^ Fwd: Please Forward: Ruby Quiz Submission
190037 [james graypr] ...

^ Blocking Sockets Vulnerability on Ubuntu?
190041 [rubytalk ben] <http://www.ubuntu.com/usn/usn-273-1> I am trying to find background
190138 [rossrt rosco] It looks like the issue was fixed by 1.8.3-preview2.
190149 [rubytalk ben] Thank you! -bdg

^ [ANN] win32-file 0.5.0
190042 [Daniel.Berge] The Win32Utils Team is happy to announce the release of win32-file

^ Re: MS Word files and PDFs
190052 [Jamal.Mazrui] I know of a commercial library (about $100) that can read (as well as
190053 [Jamal.Mazrui] Sorry, I forgot to include the link!

^ [ANN] ParseExcel 0.5.0 released
190060 [hannes.wyss ] ParseExcel now handles Cell-Annotations.

^ [ANN] Beta Ruby bindings for Xapian available
190076 [plegato nks.] Dear Ruby-talk,
190078 [pat.eyler gm] Sounds cool!
190086 [plegato nks.] Hmm.. Actually, I'm hoping to roll the Ruby bindings back into the main
190147 [olly survex.] If you're done with the initial development work, I'm happy to integrate
190152 [plegato nks.] Olly,
190773 [olly survex.] OK, they're now in.  If you're interested in testing, you can find

^ Web Services/Invoke Inconsistencies
190079 [jlevinson ac] Hey all,
190082 [logancapaldo] You'd probably have better luck on the rails mailing list

^ Getting "gcc: `-b' must come at the start of the command line" during make under AIX
190087 [scott.robert] charset="US-ASCII"
190128 [gibbons sppc] On Apr 24, 2006, at 10:52 AM, <scott.roberts@thomson.com>

^ Parsing files and writing about them . . .
190089 [pbailey bna.] A number of you all helped me to get to the point of actually being able
190100 [pbailey bna.] Never mind. I actually figured this out myself. I'm so proud. Thanks,

^ [ANN] id3lib-ruby 0.1.0 (first release)
190099 [robin nibor.] I'm glad to announce the first release of id3lib-ruby. It's a project I
190154 [daniel.schie] Thanks Robin, it looks great!

^ [QUIZ][SOLUTION]
190103 [tom.armitage] I'm a fairly lousy scripter at best, but finally saw a Ruby Quiz I could manage.
190114 [james graypr] But now that you have worked with the problem you can read the

^ [ANN] Libxml-Ruby 0.3.8
190104 [rossrt rosco] After two month's work, Libxml-Ruby 0.3.8 is now available from

^ [QUIZ][SOLUTION] #79 - Text Munger
190105 [runlevel7 gm] Here's my solution.  Finally, something that even a newb like me can

^ Patch for ri to show subclasses
190108 [sven c3d2.de] This is a multi-part message in MIME format.
190111 [drbrain segm] Please post this patch to ruby-core.

^ Format of RUBYOPT
190117 [leavengood g] I'm working on fixing the remaining installer problems in the
+ 190120 [ara.t.howard] if you look in ruby.c you'll see that it's literally parsed as part of the
| 190122 [leavengood g] Hmmm, OK. Then why does setting RUBYOPT to just rubygems work (it has
| + 190123 [ml.chibbs gm] I only recently discovered this myself... with a single option you can omit
| | 190124 [leavengood g] OK, so not only do I need to check for an existing RUBYOPT, but if is
| | 190125 [leavengood g] $old_value = {}
| + 190126 [ara.t.howard] 731     if (rb_safe_level() == 0 && (s = getenv("RUBYOPT"))) {
|   190129 [wilsonb gmai] To summarize, if you're going to alter RUBYOPT by appending something,
|   190131 [ara.t.howard] it looks that way to me.  but caveat emptor.
+ 190121 [leavengood g] $already_defined = {}

^ How to install and test eruby on tiger
190118 [anne wjh.har] I followed the english instructions of

^ Re: Welcome to our (ruby-talk ML)         You are added automatically
190119 [pakista07 ya] post articles	<ruby-talk@ruby-lang.org>

^ [RCR] Hash#getopt
190127 [ara.t.howard] at this point calls of the form
190130 [dblack wobbl] Can you editorialize a little more? :-)  I'm not clear on the
190132 [ara.t.howard] yes, but __only__ for the getopt method.  mainly i'm campaigning for a
+ 190133 [dblack wobbl] Yes.  I'm not sure how I'll vote when it appears on RCRchive :-)  (I'm
| 190258 [ng johnwlong] David, can you elaborate a little more. I'm interested in why you are
+ 190134 [binary42 gma] I think it makes sense, but we need to consider that, as far as 2.0 is
  190135 [ara.t.howard] class ::Hash
  190156 [Daniel.Berge] I'd rather have a class or instance level method that let me define this
  190159 [ara.t.howard] i agreed.  the issue though, is that doing that sort of thing globally for
  190255 [Daniel.Berge] require 'aspectr'

^ Architecture advice for my grand ambition
190136 [Russ psyex.c] . . . o.k., well maybe it's not *that* ambitious.  The plan is to

^ [ANN] DigestR 0.0.2
190137 [rossrt rosco] Quick announcement for the first version of DigestR, a ruby version of

^ Problem with Ruby scoping rules?
190141 [edward.syret] I've been using Log4r with a Rails app for some time, and it was working

^ ruby eventlog monitor for windows
190143 [botp delmont] I am looking for a ruby way/library to monitor windows event log.
190155 [Daniel.Berge] require 'win32/eventlog'
190204 [botp delmont] # require 'win32/eventlog'

^ Rake task dependeny vs. method call
190144 [transfire gm] In Rake, what's the signifficant difference between
+ 190145 [rossrt rosco] For one, dependencies are known (and managed) by rake, while method
| + 190148 [transfire gm] Yep. That does the trick. Knew I was missing a vital concept here: run once.
| + 190202 [transfire gm] I was giving this some more thought and it occured to me that the one-time run
|   190206 [transfire gm] Just for fun I put together this simple demonstration.
|   + 190210 [ara.t.howard] check out tsort.  you need it to work if you have a diamond like
|   | 190222 [vjoel path.b] He (OP) already did the t-sort, implicitly.
|   | + 190223 [vjoel path.b] task :a => :b do puts "a" end
|   | + 190281 [ara.t.howard] not really, what it does is a kind of
|   |   + 190282 [ara.t.howard] i realized as soon as i hit send this error.  the dag run should be looked up
|   |   + 190286 [ara.t.howard] require 'tasklib2'
|   |   + 190291 [vjoel path.b] I'm really confused about the rest of the examples (it looks to me like
|   |     + 190293 [ara.t.howard] yes.  basically what i'm showing is that by implementing the tsort on top of a
|   |     + 190294 [vjoel path.b] I guess, strictly speaking, this isn't the correct behavior for
|   + 190224 [vjoel path.b] This _is_ kind of fun. Your demo suggests that maybe rake and dependency
|     190310 [chneukirchen] Funnily, it's exactly the way I've implemented my experimental Rake
+ 190297 [transfire gm] Thanks Ara and Joel. I see now that I have to take more care use tsort or equiv.
  190363 [benjohn fysh] From the work I've been doing recently, I certainly think that this
  190365 [benjohn fysh] *snip*

^ difference between :: and . in calling methods
190150 [mutedev yaho] newb here.
190151 [dblack wobbl] The :: is never used -- really, I've literally never seen it -- except
190153 [dblack wobbl] receivers.
+ 190212 [mutedev yaho] i understand now. many thanks.
+ 190519 [kjana dm4lab] someone wanted to call a "class method" in that fashion like as in C++

^ String interpretation
190157 [Jamal.Mazrui] First, I'm curious why a string delimited with apostrophe characters is
+ 190158 [dblack wobbl] '\''
+ 190161 [ara.t.howard] irb(main):007:0> s = 'foo\tbar\n'

^ win32ole
190162 [yeungak gmai] regarding the WIN32OLE.  The following sample code is used to launch MS
190163 [Jamal.Mazrui] Unfortunately, I do not think Windows Explorer (the file and folder

^ Re: Safe Mode Lowering
190185 [jake.mcarthu] I have even used that technique before. I'm dumb. So, something like
190195 [pollak gmail] Jake,
190201 [drbrain segm] You implemented Thread#value.
190213 [pollak gmail] Eric,

^ Ruby IDE
190186 [SleepJunk13 ] Is there a standard IDE out there that most people use? I'm looking at
+ 190189 [work ashleym] Try www.radrails.org
+ 190190 [ml.chibbs gm] based on Eclipse *and* the RDT plugin). Finally, there is ActiveState's
+ 190197 [leavengood g] Myself and a lot of other people swear by VIM (www.vim.org) for Ruby
| + 190200 [miken700 yah] I agree vim is very nice. A bit of a ramp up to learn the basics but
| | 190211 [m.fellinger ] Yes there are, but only for VIM7 afaik, which is available for most platforms
| + 190207 [jmg3000 gmai] I've been using vim for light stuff for a while now, but it seems
|   + 190215 [logancapaldo] Can't argue with that
|   | 190269 [jmg3000 gmai] Right. Maybe I just haven't gotten into the habit of glancing down at
|   + 190225 [alexandru gl] <just kidding ;)>
|   | 190247 [r.mark.volkm] Can you share what you put in your .vimrc to configure that?
|   | + 190256 [masukomi gma] jedit is nice. i use it all the time and it's got a few ruby plugins
|   | | 190262 [scharfie gma] I use jEdit all the time, and I've found a number of very useful
|   | + 190257 [alexandru gl] " Only do this part when compiled with support for autocommands,
|   + 190233 [rosejn gmail] I guess there might be a few inconsistencies, but what drew me to vim
|   | 190260 [rhkramer gma] Can you give an example?  The reason I ask is that I'm wondering if that is
|   + 190268 [tsuraan tsur] The Ctrl-[ thing is interesting to me, because I've never heard of
|     + 190273 [jmg3000 gmai] On the Contoured keyboard (see link in my previous post), you hit the
|     + 190274 [mark scottis] I found that I never use the caps lock key, so I remapped it to be another
+ 190205 [wbohl deepda] When discussing Ruby IDEs, nobody has ever mentioned KDE Develop or
| 190209 [hal9000 hype] I don't know what Quanta is. I thought KDE Develop was just
+ 190235 [Mail Jonas-H] Try jEdit with Ruby
| 190244 [SleepJunk13 ] I'll take a look at jEdit later when I get home. I started using a trial
+ 190729 [plegato nks.] Well, there's no right answer to this. Everyone has a different coding

^ Compiling Ruby
190187 [kuppas gmail] I would like to compile Ruby with minimum features like Base Object,
190196 [kuppas gmail] Thanks Joel,
190265 [tsuraan tsur] When building ruby, a program called miniruby is built; it seems to be
190284 [kuppas gmail] Thanks Guest, I think, it should work.  I will try and let you know.

^ Re: File.open not reading full file when repeatedly called.
190188 [tgate mypubl] I completely forgot to put the myFile.close call into the write routine.
190239 [shortcutter ] That's the reason why it's recommended to use the block form of File.open().

^ Re: Module.private like method
190191 [leavengood g] class RulesBased
190198 [polypus yaho] thanks many, you rock. i actually tried method_added but must have been
190931 [polypus yaho] thanks again, i hadn't really considered that for my project, but will

^ A proposal for Parsing Ruby in Ruby
190203 [tewk tewk.co] R3: A Ruby native parsing framework ported from Perl6 Rules.
190559 [chneukirchen] Does that scale given Ruby does not perform tail call optimization?
+ 190603 [logancapaldo] Maybe not, but on the other hand, ruby does have real continuations.
| + 190707 [chneukirchen] He certainly can try, but in my experience, they scale even less. :-P
| | 190732 [logancapaldo] Aha, there's the key point. The OP was proposing making Perl6 style
| + 190725 [eric.mahurin] I agree.  I looked at perl6 rules before starting to write a parser
+ 190898 [drbrain segm] I don't believe I've ever heard of anybody using continuations to

^ Adding time
190218 [name.goes.he] "$submit_time = Time.now
+ 190219 [dharple gene] First, you stop using global variables.
| 190220 [dharple gene] Oops, forgot another * 60 in there... That's what I get for posting
+ 190221 [logancapaldo] one_hour = 60 * 60 # sixty seconds per minute, 60 minutes to an hour
  190254 [name.goes.he] Thanks Logan and Daniel

^ x.times dont work
190226 [dskomski gma] irb(main):027:0> 3.times(puts "Hello!")
+ 190227 [farrel.lifso] 3.times { puts "dsds" }
+ 190228 [Huajian.Luo ] 3.times{ puts "Hello!"}
+ 190229 [one.three gm] And how about this ?
  + 190231 [botp delmont] # irb(main):027:0> 3.times(puts "Hello!")
  | 190287 [name.goes.he] or you can put this,
  + 190240 [dskomski gma] Im thankful you :)
    190288 [name.goes.he] isn't easier just to wright
    + 190290 [james graypr] do ... end is also a block.  Just another way to write it.
    + 190360 [dskomski gma] Yes, i like do..end more than {} blocks, too :)

^ Date-building regexes
190236 [work ashleym] Does anyone know of a regular expression for *building* a date?  That is one
+ 190238 [shortcutter ] Not 100% sure but it might be more efficient to just implement the
| 190658 [cjkim jcnow.] mydate = '2/4/2006'
+ 190266 [ara.t.howard] not regexes - but this may solve your problem.
+ 190302 [collinsj sea] I'm not sure exactly what you mean by 'building' a date, but have you

^ How i can to parse string
190241 [iiskakov iss] store[name]=Ilyas store,store[phone]= 4999-233-2923, store[fax]=
+ 190242 [james graypr] What have you tried?  Where are you stuck?
+ 190245 [iiskakov iss] That is my version for problem solving.
  190246 [james graypr] Does this help?
  190248 [cameron.mcbr] => {"name"=>"Ilyas store", "description"=>"lkjklsdaj", "phone"=>"4999-233-2923"}
  + 190249 [dblack wobbl] But... but... neither of you guys's version gives the same result as
  | 190251 [james graypr] We decided he didn't really want those spaces.  We're always forcing
  | 190252 [simon.kroege] or
  | 190285 [dblack wobbl] Oh, right -- or that :-)  Another demonstration of the principle that
  + 190250 [james graypr] I was going to do that too, until I realized that it lost

^ Convert from UseMod to Soks wiki
190243 [Bil.Kleb nas] I have an existing UseMod wiki that I'd like to

^ Problem with URI.parse
190271 [apatheticagn] Alright, I think I may have stumbled upon a bug, correct me if I'm
+ 190280 [dharple gene] You really shouldn't be trying to parse html with regular
+ 190296 [drbrain segm] A URI has a protocol scheme.

^ How to make compiler independent extension library on Windows?
190272 [phasis68 hot] I know there are some issues with various compiler versions of

^ rubygem required?
190283 [joevandyk gm] - opinion (which includes Rails)
+ 190289 [wilsonb gmai] To my knowledge, gem_plugin is the only thing on that list that
+ 190345 [zedshaw zeds] Joe,

^ Stumped:  How do I iterate over regular expression matches?
190295 [xeno eskimo.] I looked for an iterator, and there may be something, but I don't recognize it.
+ 190298 [james graypr] You are looking for String#scan.  Hope that helps.
+ 190299 [leavengood g] Have you looked at String#scan?
+ 190300 [johnatl mac.] irb
  190358 [xeno eskimo.] Thank you all for the answers.  I should have guessed to look at the
  190359 [logancapaldo] Just a random thought, but doesn't it seem like this question belongs

^ randomizing a simple array of strings
190304 [michael.gors] OK, this is pretty bad for a CS grad to ask, but my brain is worn out today.
190306 [khaines enig] @array.sort_by {rand}
190307 [michael.gors] Holy crap.  That is beautiful.
190314 [matthew.moss] +1.

^ Ruby for command line applications
190311 [nospam hotma] I am a Linux administrator and I use Perl for scripting.
+ 190312 [jake.mcarthu] Of course, you can expect a bias on this mailing list, but I will
| + 190316 [khaines enig] I would argue that point.  Back in 2002, when I was first learning Ruby, I was
| | + 190318 [jake.mcarthu] Perl => quick hacks; Ruby => engineered solutions. Yes, if you
| | | 190412 [deanwampler ] I find that if I have non-trivial structured data to manage, I've
| | | 190417 [charlie cast] I agree completely, I began converting a small time keeper comand
| | + 190319 [stuart footw] It could just be me, but I feel that the biggest difference is more
| |   190324 [khaines enig] But that's not what I am talking about.   It had nothing at all to do with a
| + 190317 [james graypr] Could you given a small example program in Perl that is lengthier in
|   + 190320 [pat.eyler gm] I don't have any of my early Perl to Ruby conversions anymore (and
|   | 190325 [mapsetah2000] Great!
|   | + 190337 [mguterl gmai] You're probably seeing a lot of Ruby on Rails tutorials, if you were unawar=
|   | | 190343 [jake.mcarthu] You know, this Rails craze is scaring me. I love Rails, but Ruby is
|   | | 190346 [leavengood g] I agree.
|   | + 190339 [wilsonb gmai] #/usr/bin/env ruby
|   + 190323 [dblack wobbl] s/// stuff is shorter than sub(//,'') stuff.
|     + 190327 [james graypr] I don't lose too much sleep over a couple of characters.  I was
|     + 190328 [ara.t.howard] plus
|       190329 [jake.mcarthu] ... This discussion is over.
+ 190313 [wilsonb gmai] Ruby is incredibly well-suited to this.
+ 190315 [pat.eyler gm] This is exactly the space I came to Ruby from (and still spend most of my time
+ 190321 [rtilley vt.e] I use both. I like them both. IMO, Ruby is more flexible than Python.
+ 190424 [jmg3000 gmai] They're both good choices. I'm fairly new to Ruby, but here's my 2 cents.
| 190427 [jmg3000 gmai] By the way, there are, of course, other plusses for Ruby that are
| 190746 [Eric.Armstro] I think the consistency comes down to how many
| 190767 [chneukirchen] .oO(And that's probably the only thing Ruby and Forth have in common.. }:-))
+ 190472 [m4 polite.se] I'm new to ruby but have years of experience with perl and python. I
+ 190754 [drosihn gmai] I started to use perl for scripting maybe 10 to 12 years ago, when I
+ 190816 [znmeb cesmai] Well, I don't know anything about Python and not a whole heck of a lot
threads.html
top