184206-186711

184016-185612 subjects 184448-188396

^ Enumerable#find return index
184206 [todmcintyre ] This is quite embarassing because I Don't consider myself a poor
+ 184209 [danielbaird ] try
+ 184229 [rossrt rosco] (The upshot is that in CVS, 1.9 now allows a block to #index to specify
+ 184259 [bob.news gmx] Yeah, but this is just a special case. With a block you can employ
  184271 [todmcintyre ] Once again I knew this would be a simple answer!!  I thank you for your
  184275 [bob.news gmx] Ah, don't bother.  The API of the standard lib has it's humps and bumps
  184279 [dblack wobbl] * given meth and meth!, meth! is the more "dangerous" version
  184283 [bob.news gmx] Although it's certainly the most common use of "!".

^ xcopy doesn't work inside ruby?
184213 [ruby-talk de] irb(main):005:0> r = `xcopy /s a\*.* b\*.*`
184214 [dave burt.id] => "xcopy /s a*.* b*.*"
184230 [axel.friedri] you are on Windows? (me too...)

^ [ADV] Best of Ruby Quiz now available
184215 [dave pragpro] Quizmeister James Edward Gray II selected the best 25 Ruby Quizzes
+ 184216 [leavengood g] Yes, that is great cover.
| 184217 [billk cts.co] Haha, yes!!  Seconded (on all counts)!
+ 185074 [chneukirchen] I just received my free copy (I provided a solution to Quiz #9) and
  185137 [james graypr] There wouldn't be a Ruby Quiz without all the wonderful people who

^ Hash default -- what's going on here?
184222 [pete jwgibbs] I've hit what is either an egregious bug in ruby (1.8.4) or some subtlety
+ 184223 [danielbaird ] I'm guessing it's got something to do with your assignment
| 184234 [pete jwgibbs] Heh -- you can tell I'm new to ruby... (:-))
| + 184237 [simon.kroege] maybe
| + 184262 [bob.news gmx] The question is what exactly are you trying to do?
|   184366 [pete jwgibbs] [Strangely this thread has completely disappeared from our server!
+ 184224 [gerardo.sant] table = Hash.new { |h, k|  h[k] = [0, 0] }

^ Mongrel Web Server 0.3.11 -- Edge Rails and Win32 Compliant
184231 [zedshaw zeds] This is the big release of Mongrel that's been in the works for a while now
184379 [stoyan gmail] Great job Zed,

^ GemPlugin 0.2.1 -- Resources, Configs, Cleaner
184232 [zedshaw zeds] Just a quick announcement for people interested in GemPlugin.  GemPlugin is

^ Patching file class
184236 [daniel voelk] I checked out the ruby cvs tree for me Windows Mobile issue. After I run
+ 184238 [daniel voelk] In addition I saw that the method is implemented in Ruby 1.9. Is the cvs
| 184390 [nobu ruby-la] You have to use ruby_1_8 branch.
+ 184247 [ml.chibbs gm] You can put this anywhere in your own application. Ruby's classes can

^ Ruby Parser ...
184243 [Pierre.Barbi] A few month ago, for the ruby quiz 61, Dennis Ranke proposed a solution

^ Time object problems - 1.8.2
184245 [temp lorrima] I am trying to efficiently get the date part of a Time object.
+ 184250 [elven swordc] irb(main):001:0> t = Time.now; t - t.sec - 60 * t.min - 3600 * t.hour
| 184280 [gthiesfeld s] irb(main):001:0> t = Time.now; Time.local(t.year,t.month,t.day)
+ 184251 [pit capitain] p Time.at(0)
| 184316 [temp lorrima] Unfathomable! What does it mean?!?! I am entirely perplexed by this
| 184323 [pit capitain] GMT). My timezone is GMT + 1, so epoch happened to be at 1 o'clock. I
| 184331 [temp lorrima] Well that is the answer, then. Thankyou very much for that. Perhaps the
+ 184254 [aglarond gma] I've just been playing around with Time and Date a bit.  I have to ask: why?
  184270 [temp lorrima] Unfortunately the Date class is horrifically slow. I'm already being
  184276 [aglarond gma] Indeed.  I just discovered
  184300 [temp lorrima] It makes me think that an effort is needed to convert many of the
  184301 [ara.t.howard] check out the speed gains one can get with FasterCSV and reconsider - and it's
  184317 [temp lorrima] Sounds promising. I particularly like the sound of "Faster", in
  184320 [Daniel.Berge] Yep, it's mainly the algorithm, not the language.  You should be able to

^ No to_d in BigDecimal
184246 [work ashleym] I'm new to the Ruby bandwagon.  To get warmed up I've took on the gentle task
+ 184641 [blargity gma] If you're looking for double, then you're probably looking for to_f (float).
+ 184668 [dave burt.id] Looks to me like it's missing.

^ Installing 1.8.4 on windows
184258 [bttman bigtr] Let me start by saying Yes! I have seaarched this list, I have done
184440 [dave burt.id] The One-Click Installer 1.8.4-preview3 _is_ "the complete ruby". As far as I
184442 [bttman bigtr] Thanks Dave!
184451 [glenn.ruby g] This just isn't as easy as it should be, is it?  I just tried compiling the
184496 [nobu ruby-la] Compiler configuration; you have to tell the compiler where

^ How to compile Ruby on Windows
184260 [idontwantspa] Does anybody have a kind of "step by step" instructions on how to
184264 [glenn.ruby g] I've been down this path but had a few problems and gave up.
184273 [daniel voelk] +1 But I suggest a ruby-dev list in english, as my japanese is very poor
184289 [wilsonb gmai] 1. Visual C++ Toolkit 2003 (free)
+ 184318 [glenn.ruby g] Blimey!
| + 184327 [halostatue g] No. Of the choices, MSYS/MINGW is going to work most like Unix. MSVC6is no longer available for legal download. But...
| | 184330 [greg.kujawa ] This sounds pretty complicated as a DIY solution or a project goal. I
| | 184334 [halostatue g] Did I say "instructions?"
| + 184340 [wilsonb gmai] I know you were kidding, but I felt like sending an e-mail, so..
|   184347 [glenn.ruby g] Yes I should point out that no offence was meant to you with my previous
|   184348 [wilsonb gmai] Yeah, I knew that.. Didn't mean for my response to come out sounding defensive.
|   184352 [glenn.ruby g] I think what would be nice to achieve from all this is that when Matz and
|   + 184356 [wilsonb gmai] Just checking.. do you know about this page?
|   | + 184361 [glenn.ruby g] Yep.  Personally I just need Ruby and Rubygems.  Once I've got those
|   | + 184457 [glenn.ruby g] Just tried the version at http://www.garbagecollect.jp/ruby/mswin32/
|   |   + 184464 [wilsonb gmai] ...
|   |   + 184492 [ml.chibbs gm] Naaa... The One-Click Installer is an open source project, and all of
|   |     184755 [glenn.ruby g] Which trunk is the latest, Curt - installer-win2
|   |     + 184757 [dharple gene] Has anyone tried using Code::Blocks[1] and gcc? I don't use Windows,
|   |     + 184776 [ml.chibbs gm] build scripts for the 1.8.4 release. The "installer-win" directory
|   + 184380 [adam.shelly ] ode
+ 184402 [daniel voelk] *g* Thanks for that, I'll give it a try.

^ Net::Telnet
184266 [ null void.0] I am having problems with the Telnet module.
184272 [ null void.0] Ok, the following works.

^ wsdl2ruby problem
184267 [vshepelev im] But unforunately received message
184329 [vshepelev im] Sorry, here must be

^ [BUG] rb_gc_mark()
184281 [ericrchr gma] I'm getting the following error quite frequently. What additional info
184394 [matz ruby-la] This means an object in your application referring a broken

^ CURL-alike library for ruby
184282 [tswiah innov] Can you please advice me any CURL-alike library for ruby? I've found two
184297 [rossrt rosco] A while ago I had need of this, and made some changes to rbCurl [1] to
184306 [tswiah innov] Patched successfully, but when i tried to compile the extension on Linux
184309 [rossrt rosco] Hmm... I just tried it here with a fresh copy, and it worked straight
184337 [eastcoastcod] +1 that Ruby is in major need of a cURL binding.
184372 [rossrt rosco] I've found updating old extension code to Ruby 1.8 to be a great way to
184441 [tswiah innov] I decided to use http-access2 - it was fairly easy to set up and use.
184445 [aglarond gma] clnt.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE

^ returning p array
184285 [rtilley vt.e] I like the way in which p prints out the contents of an array. It's easy
+ 184287 [Pierre.Barbi] def info
| 184292 [rtilley vt.e] Thank you Pierre and Robert. That is exactly what I wanted to do.
+ 184288 [bob.news gmx] This won't work because p returns nil.  Do this
+ 184291 [rtilley vt.e] x = Array.new
  184405 [bob.news gmx] This can be shortened to

^ Ruby for Java Folks?
184286 [emschwar fc.] I've agreed to give a brief talk on Ruby for the Pikes Peak Java
+ 184294 [billk cts.co] One possibility might be to show them JRuby?  I used to do
+ 184295 [chanezon gma] One topic that I haven't seen covered anywhere and would find useful is a
| 184365 [emschwar fc.] Right.  The problem I have is that I'm, as I said, much more of a
+ 184299 [ruby anthrop] } I've agreed to give a brief talk on Ruby for the Pikes Peak Java
+ 184311 [james.herdma] It's safe to assume that your viewers will have seen this, and perhaps
| 184321 [julian.kamil] And let me add another one: "Coming to Ruby from Java", by Francis
| 184333 [headius head] I agree with what others have said about presenting Ruby, and I'd sure love
+ 184342 [wilsonb gmai] How about working through some of the examples from Refactoring by
| 184364 [emschwar fc.] Most of my good books (like Refactoring) are packed up, alas!  But
| 184410 [null.and.voi] File yourFolder = new File("/home/emschwar");
+ 184434 [jesusrubsyou] Personally, I still think Stephen Waits' "Learn Ruby" slideset [1] is

^ word split with 2 columns
184293 [dan megast.h] outfile = ARGV.shift
184303 [chris.hulan ] start_line = 6 #or 7, or whatever...

^ comp.lang.ruby FAQ
184308 [hal9000 hype] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2005-4-14)

^ construct AoA with REXML XPath?
184312 [christopher.] say I have a document
+ 184351 [gthiesfeld s] You could use Array#zip
| 184362 [christopher.] Yes, but I wonder if there is a rock-solid guarantee that each array
+ 184387 [w_a_x_man ya] class Array; alias atr first; alias txt last  end

^ Rails and J2EE middleware (threading/servers)
184325 [berlin.brown] A lot of applications have a middleware layer.  In some ways,
184328 [zdennis mkte] I take the code I need to run separate from rails and set it up as a system daemon. I put all of these in my lib/standalone/
184354 [berlin.brown] That is interesting.  I like that approach.  How does the ruby client
185640 [zdennis mkte] The client just opens a Socket connection to the server, and sends it instructions. The server takes the instructions, and the

^ HTTPS with ruby 1.8.4 on Windows?
184326 [axel.friedri] does anybody know, what to do to get HTTPS working with ruby 1.8.4 on
+ 184432 [vanek acd.ne] This probably doesn't help you much but your code ran for me
+ 186706 [robert.cowha] I got the same problem, same error, works with 1.8.2 doesn't with 1.8.4
  186711 [axel.friedri] Unfortunately, no.

^ csv nil check and update
184332 [samekh gmail] Greetings!
+ 184338 [james graypr] csv_filldown.rb data.csv
| + 184341 [samekh gmail] That does give me some ideas... thanks!
| | 184345 [samekh gmail] Got it, nevermind!
| + 184375 [samekh gmail] Ok, obiously I'm doing something wrong again. I am new to both
|   + 184383 [james graypr] newFile = CSV.open(...)
|   + 184385 [chris.hulan ] Do you close the file?
|   | 184424 [james graypr] All open files are closed when the Ruby interpreter exits normally.
|   + 184433 [jeff schwabc] Do you need to preserve the redundant quotes in the output?  If not,
|     184449 [samekh gmail] Sweet... that's certainly an improvement, but as you mention I do need
|     184461 [samekh gmail] Also, another thing that this should do eventually is to do this for
+ 184346 [chris.hulan ] You have an answer, but since I spent some time on it, here's mine! 9^)
  184374 [samekh gmail] Thanks, I appreciate it. For some reason the output is the same as the
  184423 [chris.hulan ] It occurred to me this morning (what else am I going to think about on

^ Using const_missing to do automatic require
184335 [eastcoastcod] I'd like to def const_missing to require the appropriate file, without
184350 [transfire gm] It's already built into Ruby. Try 'ri autoload'.
184353 [james graypr] Holy cow, I never knew that.  Thanks for the info!
184783 [eastcoastcod] Sorry - that's something else.

^ Compile Ruby 1.8.4 on HP-UX 11
184363 [CMcDevitt aa] charset="us-ascii"
184421 [vanek acd.ne] try,

^ Large, existing database for RoR
184367 [johntwinn gm] My organisation has a relatively large legacy database that has a java
+ 184369 [julian coret] Yes, you can specify what the id is.
+ 184370 [lukfugl gmai] Yes, this is definitely possible. Check out the API docs on
  184371 [johntwinn gm] that is great Julain and Jacob!! I will have a go and get back if i

^ Question about return and access control
184368 [fegolac gmai] I'm reading PickAxe book and just finished reading chapter 3, which
184391 [gmurray clou] return <value>  and puts  <value> are distinctly different.

^ inet_aton / inet_ntoa
184373 [fbettag qs-h] i have a big problem with ruby + inet_aton.
+ 184377 [ara.t.howard] maybe this will work
+ 184397 [cjeker dieha] require "ipaddr"
  184403 [fbettag qs-h] Thanks to both of you! :)

^ [SOLUTION] Constraint Processing (#70)
184376 [email55555 g] Just finish my solution, I run out of time to provide an example ...

^ Printing ruby code
184381 [z4k4ri4 gmai] What is the best way/tools to printing ruby code to a piece of paper
+ 184382 [wilsonb gmai] I've had good luck with a2ps.
+ 184386 [vjoel path.b] I don't know how this compares with the a2ps version, but here's
+ 184388 [lists kalama] This is just off the top of my head, so it may not suit your needs
| 184389 [ken metaskil] That's kind of what I was going to recommend. I use a Drupal blog
+ 184395 [james.herdma] I can't quite help you with your question directly (I just print from
+ 184429 [gk cutcopy.c] Take a closer look, i find it useful!
+ 184616 [phurley gmai] scite -p <fname>

^ Chess engine in ruby?
184384 [devlists-rub] I'm a beginning chess player and a beginning Ruby developer :-)  I was
184392 [hal9000 hype] I don't know of one, but the idea is interesting.
+ 184393 [m.fellinger ] Hey Jeff,
| 184452 [cohen.jeff g] Thanks for the links.  Unfortunately the ruby quizzes were for
| 184459 [james graypr] I for one would be very interested to see what you could come up with.
+ 184436 [ghalsey yaho] calculations per second(speed) is a major factor in creating a powerful

^ add to words syntaxes
184396 [dan megast.h] Still have a question: I have a txt file with words, seperated with
+ 184398 [Nuralanur ao] datafile="kest_kft.txt"  # insert correct name here
| 184399 [Nuralanur ao] Actually, you may have problems with the tab searching,
+ 184400 [rossrt rosco] Perhaps it's me not being awake properly, but it doesn't seem very clear
  184404 [dan megast.h] Thanks, for the answers, but didnt worked. I try to clear my problem,
  184406 [angus quovad] Well, before you start to loop to fill the "mezo" tags, extract the
  184409 [dan megast.h] outfile = ARGV.shift
  184411 [angus quovad] Why the quotes here? The string is everything between the line following
  184419 [dan megast.h] Thanks for ALL your support, especially for Carlos. now it works fine!
  + 184438 [dan megast.h] Thanks for ALL your support, especially for Carlos. now it works fine!
  + 184439 [angus quovad] # Set the "input record delimiter" to "paragraph". This is
    184543 [dan megast.h] charset="iso-8859-1"
    184564 [rossrt rosco] If I had to do this quickly (and without too much thought) I'd do

^ RubyCocoa crash
184401 [dt015a1979 m] I am trying to implement a delegate method of NSSpeechSynthesizer as
184412 [jp-www dcs.g] Please report it as a bug on the sourceforge tracker for RubyCocoa. Also,

^ Re: Constraint Processing (#70)
184407 [chrisgparker] Here is my CSP language.  I have actually been doing this for a class,
+ 184420 [jim weirichh] I've been having a lot of fun with this quiz.  Pit Capitain sent me a
| 184428 [james graypr] Oh sure, you would do that after I summarized the trickier version.  ;)
| 184435 [jim weirichh] ;)
+ 184430 [james graypr] This is a great glimpse at a more robust solution.  Thanks for

^ SOAP4R: problems in wsdl2ruby generator
184408 [vshepelev im] ignored element: {http://www.w3.org/2001/XMLSchema}list

^ RecordNotFound
184413 [fbettag qs-h] uhm how to fetch out a RecordNotFound?
184414 [michael.gors] begin
+ 184415 [fbettag qs-h] aaah! Thanks a lot!
+ 184425 [james graypr] rescue ActiveRecord::RecordNotFound

^ Variant types
184416 [styrmis goog] My languages lecturer is a fan of a feature called 'variant' in a model
+ 184418 [dblack wobbl] You're right to call your variable classes, rather than types.  In
+ 184422 [jim weirichh] If I understand correctly, it sounds very much like a static lanugage
  184437 [styrmis goog] Can't a little restriction be healthy? In the lecture last week I could
  184444 [dblack wobbl] That's a bit like asking whether having strings is a weakness because

^ TupleSpace#read_all blocks ?
184417 [lapitsky gma] Have anyone encountered blocking behaviour of read_all method in

^ [SUMMARY] Constraint Processing (#70)
184426 [james graypr] Constraint processing is a form of declarative programming which, in the words

^ Re: RubyCorner a meeting place for the Ruby blogging communi
184431 [jesusrubsyou] As I mentioned in a comment on the RubyCorner blog, some sort of
184505 [anibalrojas ] Yes Pistos we saw your comment at RubyCorner's blog, and we are
threads.html
top