254085-287029 subjects 254565-256702

^ Newbie... help with permissions
254369 [email micahc] Hey ya'll. I'm brand new to Ruby. Just a few hours into "Programming
+ 254373 [  z wzph.com] Hey.
+ 254380 [email micahc] Okay-- that was my bad. I wasn't filtering out '.' and '..'

^ Another beginner question
254372 [email micahc] Sorry if my "newbie" questions are excessive. I promise that if/when I
+ 254374 [alexg kuicr.] I've never used inline C in Ruby, but it is available (it is not
+ 254376 [drbrain segm] There's a gem called RubyInline that does this (and C++ and Fortran).
  254379 [email micahc] Thank you. I appreciate the feedback.

^ URI class bug?
254378 [morgan.cheng] I am using Ruby 1.8.6. I found URI cannot parse URI with "_" is host.
254382 [jan.svitok g] It seems underscores are not allowed in host part of an URI. So it's
254384 [morgan.cheng] In RFC 2396, "_" is taken as "Unreserved Characters".
254391 [jan.svitok g] host          = hostname | IPv4address
254394 [morgan.cheng] Thanks a lot for your help.
+ 254404 [alex blackke] There was mention a few days ago of bringing the URI class up to a more
+ 254405 [jan.svitok g] add the following after line HOSTNAME=... and comment out (prefix with

^ How add "Not-match" logic into Enumerable.grep?
254395 [morgan.cheng] Say, I want to get all files in one folder. Since Dir.entries will
+ 254401 [nobu ruby-la] grep(/\A(?!\.\.?\z)/)
+ 254403 [shortcutter ] Dir.entries(".").reject {|x| /\A\.+\z/ =~ x}

^ saket sidana wants to chat
254396 [sidana.saket] saket sidana wants to stay in better touch using some of Google's coolest new

^ Question about getc
254398 [geniusleonid] If we call gets(), the returned string is copied to a special variable $_
254426 [matz ruby-la] No, implicit global variables are evil.  I'd rather remove $_ in the
+ 254428 [geniusleonid] I use global variables for golfing only.. :) but please don't remove $_!
| + 254429 [geniusleonid] Sorry.. I mean 'implicit' global variables
| + 254430 [james graypr] This is probably a good argument for removing the variable.  ;)
|   254502 [rick.denatal] As both a dedicated Rubyist, and an astronomically high-handicap USGA
+ 254501 [rick.denatal] Oooooh, I love it when matz talks like that!
+ 254512 [lists bertra] I _never_ use $_ in any 'def'ed method but I use it in

^ Re: image_science 1.1.3 Released
254399 [hubertchoi g] Could I get some help setting up image_science in my win32 environment?

^ deploying an application
254402 [christopher.] I wonder if you could some give some advice to a newbie?
+ 254406 [list.push gm] Try this.
+ 254448 [charles.nutt] JRuby doesn't yet compile all code to bytecode, but it doesn't really
  254450 [christopher.] A reply from Mr. JRuby himself - what a forum!
  254547 [charles.nutt] There's no official tutorial or walkthrough (though there should be). Of

^ Net/FTP: failed download creates empty file
254408 [ronald.fisch] require 'net/ftp'

^ Writing method "change!" for String
254410 [michaelst gm] I'm trying to write simple method to change internal value of
+ 254411 [jan.svitok g] use String#replace instead of assignment. Beware of the implications!
+ 254412 [robert.dober] class String
| 254420 [lists bertra] class String
+ 254414 [shortcutter ] You don't.  Just use String#replace.
| 254416 [michaelst gm] I missed that method. Thank you.
+ 254417 [twifkak comc] class Fixnum
+ 254418 [list.push gm] Do not try to change self.
| 254425 [dblack wobbl] I think even the original idea probably wasn't a good !-candidate
| 254427 [lists bertra] As far as I see banged methods are mostly implemented as
+ 254419 [dblack wobbl] ri String#replace

^ How to log user's IP in RoR?
254413 [Pawel Stawic] I want to log users who enter my site and what they are doing.
254457 [irvingld gma] Try

^ Re: Process::GID.change_privilege not changing groups proper
254415 [scott.mcnab ] Thanks Brian that fixed it!

^ Asking for style critics: Collecting the result of a query
254431 [ronald.fisch] May I ask some kind soul to criticize the following piece of code?
+ 254432 [shortcutter ] Your sample seems to be missing something: Where does "fetch_result"
| 254516 [ronald.fisch] Sorry, my fault when condensing the original code to a form better
| 254522 [shortcutter ] Hm, it does not implement to_a properly?  I guess then it does not
+ 254442 [donald.ball ] If the consumer of these data is just going to iterate over the

^ Deep Copy
254435 [mlartz gmail] I'm needing to implement a deep copy operation on a couple of objects,
+ 254438 [shortcutter ] irb(main):001:0> require 'singleton'
| 254444 [mlartz gmail] class A
| 254446 [o.renaud lap] To clone an object, you should define the #initialize_copy method in
| 254447 [mlartz gmail] Perfect, exactly what I need.  Thanks!
+ 254443 [list.push gm] I haven't used this and I'm not sure this is what you want but a deep

^ [ANN] London Ruby User Group - 11th June 2007
254439 [murray.steel] The next meeting of the London Ruby User Group is advancing menacingly

^ Re: Who's maintaining log4r?
254445 [robert.dober] Well just in case if the quantity of opinions counts I think that

^ Web Services problem: URI library / address location
254449 [david.alphen] When I use address location in my wsdl without http:// and with a port like
254513 [nakahiro sar] etc. here.  Is there any reason why you can't do that?
254520 [david.alphen] I've just check the W3C documentation for the wsdl syntax (

^ Web Services problem: OpenSSL::X509::StoreError
254451 [david.alphen] I have a Ruby script that invokes web services using SSL. It works.
254510 [nakahiro sar] Can you change above "ca.pem" to fully qualified pathname such as
254525 [david.alphen] So I have changed the path to the ca.pem file. I have an other error. Let me
254549 [nakahiro sar] 1. rt_results run fine without Rails environment, right?
254563 [david.alphen] 1. yes rt_results works fine without Rails environment.
254569 [nakahiro sar] OK.
254571 [david.alphen] Well I knew it was not the same problem, I've tried no argument just like
254693 [nakahiro sar] I updated soap4r gem as 1.5.6-RC3.
254709 [david.alphen] Ok, I have updated soap4r.

^ David Black's book _Ruby for Rails
254452 [finetan hotm] Anyone of you have read the book,  David Black's book _Ruby for Rails?
+ 254458 [peter rubyra] +1
+ 254460 [miloops gmai] I think it's a great book, i would highly recommend it *after* reading
| 254493 [znmeb cesmai] Well ... I think you *can* learn both Ruby and Rails from _Ruby for
| 254574 [logancapaldo] Seconded. I'd recommend Ruby for Rails even if you aren't necessarily
| + 254582 [rdm cfcl.com] +1
| + 254635 [rick.denatal] I'd like to see that too, well unless I beat him to writing one <G>
+ 254486 [rabbitblue g] I've read through the book, and, like those above, loved it.
| 254487 [james graypr] That's a good point.  I learned things from that explanation myself.
+ 254548 [hutch recurs] I'm pretty enthusiastic about the book. Ruby for Rails, in my

^ [ANN] June Phoenix Ruby Users Group Meeting
254454 [james.britt ] See http://www.rubyaz.org/groups/prug/ for details, including maps and

^ DBI question - DBD-ADO query is timing out
254455 [donald.ball ] Hey guys, I have a tiny DBI question. I'm using DBD-ADO to talk to
254461 [donald.ball ] Never mind, I found a solution. If working from an ActiveRecord

^ File.utime returns Invalid argument on Windows (winXP, ruby 1.8.5/1.8.6).
254456 [mattscilipot] I am receiving an "Invalid argument" error from File.utime.
254560 [djberg96 gma] On Jun 5, 11:55 am, "Matt Scilipoti" <mattscilip...@possiamo.com>
254562 [mattscilipot] Nicholas Evans, who suggested that Windows may not accept a date of 0

^ [SOLUTION][QUIZ] FizzBuzz (#126) [solution #1]
254459 [mental rydia] for n in 1..100

^ Problems with IO.popen in ruby 1.8.2?
254463 [tjacobs-sndr] sleep 0.3
254469 [ara.t.howard] read carefully - you've given the block to readlines - not popen.

^ Ruby Newbie question about app making
254464 [lloyd 2live4] I have been enjoying the Ruby language for a little bit now and even
254466 [sonoflilit g] First of all, have you heard of http://RubyMentor.rubyforge.org?

^ [ANN] Rassmalog 5.0.1
254465 [ snk gna.org] Rassmalog is a static blog engine based on YAML, eRuby, and

^ Gecode/R - Request for syntax feedback
254467 [ruby-talk lo] constraint programming in Ruby. I'm currently trying to set some
+ 254470 [ara.t.howard] would you mind posting something about this on sciruby?
| + 254471 [james graypr] Perhaps that would be a better idea after the Google SoC project is a
| + 254474 [ruby-talk lo] I can, when the project is something beyond mere plans (i.e. when it can
+ 254477 [james graypr] RSpec works a lot like this.  It has you define expectations with
  254526 [ruby-talk lo] That would be a nice solution. The best word I can think of for
  + 254542 [ruby-talk lo] Not necessarily. It could also be written as
  | 254546 [james graypr] constrain ...
  + 254544 [james graypr] Yuck.  And I mean that in the nicest possible way.  ;)
    + 254561 [ruby-talk lo] Yes, that could work. I was probably locking myself in a bit too much
    | 254583 [ruby-talk lo] If I understood the suggestion of the syntax correctly then constraints
    | 254615 [james graypr] I'm liking this direction, for what it's worth. I'm worried about the
    | 254659 [ruby-talk lo] True, I have switched to sorted.
    | 254662 [ruby-talk lo] I have assumed that it's in this case okay to shadow methods such as
    | 254684 [james graypr] That page talks about how we loose some convenience in that we need
    | 254690 [ruby-talk lo] Your conclusion is correct. But my intent with the text is that we have
    | 254694 [james graypr] Oh yes, I misread.  Sorry.
    | 254708 [ruby-talk lo] Yes, wrapping was to use
    | 254715 [james graypr] I agree that it lacks the sex appeal of the RSpec approach.  However,
    | 254803 [ruby-talk lo] I'm not really sure that the cost compared to the others is that much
    | 254828 [james graypr] You are probably right.
    + 254695 [ruby-talk lo] I think that must/must_not would make a fairly interesting syntax in the
      254696 [james graypr] I like how this reads in the early examples and worry about that
      254698 [ruby-talk lo] Unless the enumerables are wrapped before use as in the other example

^ Using Rake to build C++
254476 [magnus.falk ] I'm making myself a build environment and found this Rake thingy that
+ 254482 [magnus.falk ] Oh, another thing while I'm at it. Is there any way to "export"
+ 255122 [leslieviljoe] Any luck on your own yet?

^ [ANN] ar_mailer 1.2.0 Released
254483 [drbrain segm] ar_mailer version 1.2.0 has been released!

^ Re: [SOLUTION][QUIZ] FizzBuzz (#126) [solution #2]
254488 [mental rydia] And, here's my second one, written in a subset of Ruby which corresponds
+ 254498 [vjoel path.b] Ok, you're hired. Your first project is to write a web server in Malbolge.
+ 254500 [mental rydia] Incidentally, this second solution could probably be made to run in a
+ 254503 [james graypr] That is wild.
+ 254579 [phelan tttec] I thought it was randomly generated joke code jibberish till I copied
  + 254643 [mental rydia] Sure!
  + 254649 [mental rydia] If it helps, what a lot of the math stuff does is create lists of the
    + 254663 [robert.dober] must work nicely for n>m ;)
    | 254734 [mental rydia] Church numerals correspond to the natural numbers, so negative results aren't possible.  For n>m, I could either let the computation diverge or return ZERO -- I opted to return ZERO.
    + 254681 [bradphelan x] Thanks for the pointers. I don't have too much time today to think about
      + 254742 [mental rydia] Lists are linked lists made of pairs, as in Lisp.  Since we chose to represent true and false as two-argument functions which return their first or second argument, respectively, we can take advantage of this to describe a pair as a function which takes true or false as an argument to select an element of the pair.
      + 254747 [mental rydia] ZERO = LAMBDA2 { |f,x| x }

^ cannot load installed gems
254491 [gsofhon gmai] Well, I've installed hpricot using gem, and it works well in windows.
+ 254492 [gsofhon gmai] I've searched the forum and found one solution.
| 254832 [caduceass gm] When you installed under windows, most likely you selected the option
| 254924 [gsofhon gmai] Well, that's great! Thanks a lot!
+ 254511 [drbrain segm] ri Hpricot
  254514 [gsofhon gmai] Oh! I see, ri Hpricot works.
  254578 [drbrain segm] Then you probably forgot to require 'rubygems' before require 'hpricot'.

^ [ANN] ParseTree 1.7.1 Released
254494 [ryand-ruby z] ParseTree version 1.7.1 has been released!

^ [ANN] ruby2ruby 1.1.6 Released
254496 [ryand-ruby z] ruby2ruby version 1.1.6 has been released!
254568 [meinrad.rech] Ryan,
254613 [ryand-ruby z] awesome. I hope it works well for you. enjoy.

^ [ANN] heckle 1.4.1 Released
254497 [ryand-ruby z] heckle version 1.4.1 has been released!

^ Help repost to Ruby Dev -- 2 improvements to Ruby Magic
254499 [sunny cityma] This is a proposed solution to simplify magic in Ruby.
254517 [alex blackke] <snip on_ and has_ proposal>

^ Example on rpdf2text ?
254505 [conta001 mai] I am trying to use the rpdf2text library, does anyone have any example
254515 [hannes.wyss ] this is taken from bin/rpdf2txt (comments added for your benefit;)

^ Re: [SOLUTION][QUIZ] FizzBuzz (#126)
254506 [jwmerrill gm] If I wanted to show them how eXtreme I was, I would start by writing

^ Finding entries in Windows Registry matching a RE
254507 [RichardDummy] I'd like to be able to search a named hive for keys whose names match
254524 [shortcutter ] Why do you think this should disallow the syntax above?  It's perfectly
+ 254658 [RichardDummy] Thanks for your response.  I'm studying the issue and will respond
| 254679 [hramrach cen] I believe that 'key' in registry is that thing that would correspond
+ 254967 [RichardDummy] Thanks for your responses.
  254985 [sonoflilit g] In Ruby, "constant" means that it's value should not change (that's
  255562 [RichardDummy] Of course! You've eased my brain-cramp :-) Thanks.

^ 有在rails境下ldap的朋友交流下。
254508 [guxing203 gm] 我在的景是:ubuntu + rails + openldap + ruby/ldap + activeldap目前的工作是将原有的数据方案改后移到个新的境中。有似的朋友交流一下。
254509 [guxing203 gm] 我的gtalk:guxing203@gmail.com

^ Net::FTP : How to check whether chdir succeeded?
254519 [ronald.fisch] Does anyone know a reliable way to detect, whether Net::FTP#chdir was
+ 254559 [djberg96 gma] That's odd. I tried running this snippet, connecting from a Windows XP
+ 254573 [cmshea gmail] You should be able to check with Net::FTP#pwd.  You can check out the
  255279 [ronald.fisch] I think this does not work when the directory chdir'ed to is

^ concept of self (was: Re: David Black's book _Ruby for Rails)
254523 [shortcutter ] You make it sound as if there was something complex about "self".  Makes
254529 [dblack wobbl] Only the fact that in practice, grasping self is a stumbling-block for
+ 254536 [james graypr] And David's description of the singleton class is another terrific
| 254584 [frioux gmail] I am now convinced.  I am putting this on my to read list after I read
| 254608 [dangerwillro] It all really depends on what you want to learn. But I'd say that you
+ 254537 [shortcutter ] This reminds me of the headaches I had when confronted with OOP the

^ test, please ignore
254527 [msapariya gm] ...

^ efficient regex scanning
254528 [yatiohi ideo] file = ARGV[0]
+ 254531 [dan fluentra] Does just using a block with scan do what you need?
+ 254532 [dblack wobbl] You could do something like this (untested, and reversing your logic
| 254539 [shortcutter ] You're not closing the IO.  I know it's not an issue for a small script
| 254540 [dblack wobbl] It's not a complete script; I was only showing one line.  At the very
+ 254534 [yatiohi ideo] Thanks a lot!
+ 254586 [vjoel path.b] Here's a thought. Note that it doesn't handle //m regexen. Like David's

^ write COM clients in Ruby
254533 [msapariya gm] I searched the list and did not find anything rubyCOM. However I did not
254535 [jan.svitok g] and ruby-talk: 238065

^ Ruby operator precedence
254538 [christianthe] I've been toying a bit with Ruby based DSL in which I use some standard Ruby
254541 [helgeg helge] ...

^ [ANN] Ruby In Steel 1.1 Now Available!
254545 [huw DELTHISB] June 6th, 2007

^ not sure what is wrong here.
254550 [junkone1 gma] i am not sure what is wrong here
254554 [james graypr] I'm happy to help debug this, but it would be much easier if I had
254580 [junkone1 gma] On Jun 6, 9:50 am, James Edward Gray II <j...@grayproductions.net>

^ mysql transactions via ruby
254551 [pippo paperi] I'm trying to use transactions via "ruby mysql module" but there is no

^ Re: [OT] [QUIZ] FizzBuzz (#126)
254552 [m_goldberg a] After completing my Ruby Quiz submission, I decided to implement

^ Re: SOAP performance and unmarshalling/parsing speed
254553 [nakahiro sar] Sorry for the late response.

^ Re: soap4r attributes vs elements
254555 [nakahiro sar] Sorry for the late response.
262938 [roy.britten ] Many thanks. That'll make life easier.

^ Re: SOAP Request Problem
254556 [nakahiro sar] Sorry for the late response.

^ Re: SOAP responses
254557 [nakahiro sar] Sorry for the late response.

^ Re: VMWare WSDL Client?
254558 [nakahiro sar] Sorry for the late response.

^ #<Object:0x2c1c8f0> <--- why is the displayed number == object_id*2
254564 [meinrad.rech] irb(main):001:0> VERSION
+ 254566 [kovaltaras g] I agree
+ 254567 [seebs seebs.] Maybe it would.  That said, Object.object_id works as expected, so this
| 254745 [james.d.mast] When I came across this behavior, this was also my best guess as the
+ 254570 [shortcutter ] The output of #inspect is not meant to give you any means to get at the
  254720 [meinrad.rech] Robert,
  254724 [shortcutter ] Well, but that won't work for all cases.
  254736 [rick.denatal] Nor for all versions of ruby.  The relationship between object_id and