162902-163501

162639-163765 subjects 163128-181006

Ruby Quiz for building up Ruby?
162902 [hgs@dm .a .u] I put this suggestion to James Edward Gray II as a means to an
+ 163036 [jqshenker@gm] This might be a really fun way to improve Ruby! Good idea. However, Ithink it should compliment the original RubyQuiz, not replace it...RubyQuizzes in the past have been fun quickies, and this is adifferent, more practical and involved beast...
| 163039 [dbalmain.ml@] ...
| 163040 [dbalmain.ml@] ...
| 163041 [jqshenker@gm] I was talking about these more practical and complicated solutions ingeneral, this particular one might be good as a RubyQuiz (uh, I didn'tread the spec the first time... ;).
+ 163137 [ruby.brian@g] I now you did not ask for an implementation right now, but with the
| + 163143 [dbalmain.ml@] ...
| + 163146 [hgs@dm .a .u] ...
+ 163149 [rascal1182@g] I think it's a good idea.  Quizzes are great for fun and learning, but
  163161 [james@gr yp ] I'm all for quizzes that help build Ruby technologies.  I strongly
  + 163202 [rascal1182@g] It pretty much already was a quiz, without the waiting period.  If
  + 163205 [ruby.brian@g] I think it is a good idea to use quizzes to advance certain libraries.
    163244 [sillewille@g] I agree with this.  I think it would be a great idea to often and

RCR 323 - was: Re: overriding #inspect
162906 [hgs@dm .a .u] Interesting, but what do you mean by "reachable"?  I think the RCR

mod_ruby object persistence
162916 [tsuraan@gm i] How long do objects stick around in mod_ruby?  I have a really simple
162987 [drbrain@se m] A class will stay around as long as its apache process is alive.  Of

[SUMMARY] Ducksay (#52)
162917 [james@gr yp ] __________________
+ 162923 [dave@bu t. d] ...
+ 162924 [dave@bu t. d] Thanks for another great quiz, James.
+ 162933 [nobu.nokada@] Pretty.
+ 162943 [pit@ca it in] I'm not sure about the efficiency. The inject() version builds a new
  162945 [james@gr yp ] I didn't make that very clear.
  + 162960 [dbatml@gm .d] I'm not sure what you mean with "copy the whole array". The Enumerable#map
  | 162965 [james@gr yp ] I meant that you have to create a second Array of equal size.
  + 162966 [flori@ni e. ] ary.max { |a,b| a.size <=> b.size }.size
    162975 [james@gr yp ] Very nice.  I forgot max() can take a block.
    162981 [flori@ni e. ] ary.max_by { |x| x.size }.size

[OT] Okay, it's not chunky bacon, but it's still funny.
162919 [rmagick@gm i] For some reason this made me think of _why...
163052 [jqshenker@gm] That's absolutely great! :p

obj()
162931 [daniel.schie] class Klass
+ 162934 [ruby.brian@g] class Klass
+ 162935 [nobu.nokada@] (obj)("a", "b") # now does work in 1.9
| + 162955 [gwtmp01@ma .] obj.call("a", "b")
| + 162957 [dblack@wo bl] Please tell me that's just "experimental"... :-)
|   163030 [matz@ru y- a] Now it's removed from 1.9
+ 162938 [sean.ohalpin] class Klass
+ 162959 [dblack@wo bl] But they aren't.
  162961 [Daniel.Berge] TOO...MUCH...LISP.
  163234 [surrender_it] I think "TOO...MUCH...SCHEME", common lisp works with lambdas and

Looking at Rails for the first time...
162944 [steve_rubyta] I'm trying to create my first ever rails application.. following as
162989 [drbrain@se m] Rails has its own mailing list filled with people happy to quickly

TMail and GPG/PGP encryption?
162950 [michael@sc u] In a Rails app I'd like to send messages encrypted with a GPG/PGP public

Initializing a Struct from an array
162951 [drjflam@gm i] ...
+ 162952 [cribbsj@oa w] current = Foo.new(*h)
+ 162953 [ruby.brian@g] Foo.new(*h)
  162954 [drjflam@gm i] ...
  163086 [bob.news@gm ] Additional recommendation: don't do "select *" in production code, always

HELP HELP PLEASE HELP
162956 [beth@sq al r] i have written a slighly bastardized version of the class web page
162968 [sean.ohalpin] Have you made sure your text input tags have a name attribute?

append_feathers
162958 [dblack@wo bl] I just accidentally typed "append_feathers" instead of
+ 162969 [sean.ohalpin] Let's just hope this doesn't result in another slew of fowl puns.
+ 162973 [hgs@dm .a .u] That would be the frictionless spherical mallard?
+ 162979 [mrkode@gm il] ...
| 163087 [bob.news@gm ] LOL - thanks for making my day!
+ 163097 [ruby.brian@g] module Kernel
| 163117 [dblack@wo bl] ...
| + 163121 [hgs@dm .a .u] ...
| + 163136 [ruby.brian@g] Oh, thats true. I wanted to escape the problem of undefined constants,
+ 163133 [dooby@d1 .k ] class Fowl

ASCII Isometric Graphics...
162962 [CBlair1986@g] I've just got a bit of a question, here. I suppose my mind's a bit too
+ 162978 [markus@st er] Heh, another Ruby quiz. ;)
| + 162984 [lukfugl@gm i] Heh, we got pretty similar solutions there, Markus. Great minds... ? :)
| + 162992 [dbatml@gm .d] class AsciiCanvas
+ 162983 [lukfugl@gm i] Rather than accomadating 1/0 or true/false, I just did 1/0. Handling

Soap::RPC::Driver Question
162963 [wshaddix@gm ] ...
163022 [nakahiro@sa ] Set $KCODE = 'UTF8' if you don't have iconv or uconv been installed.
+ 163139 [wshaddix@gm ] What is iconv and uconv? Also $KCODE = 'UTF8' before creating the soap
+ 163154 [wshaddix@gm ] require 'soap/rpc/driver'
  163229 [nakahiro@sa ] There's no easy way to control the namespace names for now.

Re: Ruby readline - completion based on already-entered commands
162964 [mcw@cs ub .c] i'm new to ruby, and having the problem Bill Atkins was having with
162998 [nohmad@gm il] $ cat rlcomp.rb
163001 [nohmad@gm il] Oops, I misread your question. Sorry for noise.
163010 [mcw@cs ub .c] yip

help with fastcgi
162970 [erne@po er a] I'm really frustrated.
163018 [erne@po er a] I figured this out after some serious head scratching.

Argument Passing Syntax
162982 [gwtmp01@ma .] Why are arguments to the '[]' method parsed differently
+ 163024 [dave.burt@gm] I haven't seen that syntax error before. I don't see any reason why
+ 163033 [drbrain@se m] uses call_args (and friends)
+ 163095 [sean.ohalpin] Because () and [] are parsed differently. [] is primarily an array
  + 163120 [gwtmp01@ma .] But *why* are they parsed differently?  Just "because"?
  | 163189 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://segment7.net
  | 163223 [gwtmp01@ma .] I've looked through the parse.y file, so I understand the mechanical
  | 163233 [drbrain@se m] IIRC, #[] and #call doing the same thing is a (relatively) recent
  | 163245 [gwtmp01@ma .] This was my first thought about this also, which is why
  + 163126 [gwtmp01@ma .] Here is a related thought.

[ANN] Instant Rails 1.0 preview3 Released
162986 [curt.hibbs@g] ...

I was sold by Ruby
162988 [ngoc@ya oo c] Something to share with you (ladys and guys). My boss want me to compare
+ 162990 [ruby-talk@wh] Hey, that's great.  May your enjoyment continue.
| + 162993 [ruby.brian@g] Don't worry if this sounds strange. _why is our local weird genious.
| + 162996 [christophe.g] ngoc, don't take it personally, _why is always like that ;) .
|   163004 [    s@xs .d ] read "babel-17", one of matz' favourites, IIRC.
|   + 163021 [Neville.Burn] ROFL
|   | 163029 [lyndon.samso] For Gods sake man, don't encourage him :-)
|   + 163083 [christophe.g] You'd think that as a conlanger I would have already read it ;) . But strangely
+ 163088 [bob.news@gm ] Great stuff!  What about your boss - was he sold, too?

Strange problem with regular expressions and tainted values
162997 [x7@da is h. ] I have a ruby program which fetches some web pages, and for security

===, include?, =~
162999 [gwtmp01@ma .] I started this post after wondering why
163002 [eric_mahurin] This was the main reason that sent me off making Object#duck to

How to merge two files like the following with the XML parser
163000 [karenmiddleo] I have two text files.
+ 163005 [m.fellinger@] charset="iso-8859-1"
+ 163093 [dooby@d1 .k ] a1 = File.read(ARGV[0]).split(/\n/)  # SCREEN, ...

Format BigDecimal
163012 [dcorbin@ma h] I poked around, but I could not find a clear answer on how to format a
163019 [dave.burt@gm] You want my_big_decimal.round(2).to_s("F")
+ 163129 [meta@po ox c] I've been working on it.  It's not my code, I'm just one of those people
| 163144 [dave@bu t. d] And, on behalf of the Ruby community, a very big thank you to you and the
| + 163160 [james@gr yp ] Gavin is really the best person to answer this.  He's our fearless
| + 163201 [meta@po ox c] I pick based on things I'm interested in and knowledgeable about, with a
|   + 163203 [james@gr yp ] It goes the other way too.  I've lobbied Gavin to mark REXML as well
|   + 163240 [dave@bu t. d] Ah, you want Rational. Especially after my patch (RCR 320 or so) has been
+ 163376 [dcorbin@ma h] Many thanks.

[ANN] priority-queue 0.1.2
163013 [ruby.brian@g] I finally released a polished up version of my priority queue extension.
163112 [tom@in oe he] Haven't looked at that in a while... but any updates will be posted
163249 [daniel.amela] ...
163277 [ruby.brian@g] I have not looked very deep into rbtree. Maybe it is possible to
163318 [vjoel@pa h. ] but, Brian, your implementation sounds like it is better suited to being

Ruby Shipping Gem Help
163014 [lists@la to ] I am trying to use the Ruby shipping gem (http://shipping.rubyforge.org/) to

[ANN] New Haven Ruby Brigade Formed!
163020 [gregory.t.br] The members of the University of New Haven Ruby Brigade have voted and

Escaping Attributes with Builder::XmlMarkup
163025 [daniels@pr n] ...
163090 [daniels@pr n] Further on this, the escaping performed by builder is a bit slack. I

"Reflecting" on my self.n00b
163026 [sillewille@g] I'm admittedly quite a novice with programming.  I'm sort of playing
+ 163031 [gregory.t.br] def sp_set_url(url)
| 163032 [gregory.t.br] irb(main):027:0> class Foo
| + 163034 [sillewille@g] How would I programatically find which instance variables I'm
| | 163035 [sillewille@g] Doh!  Nevermind, I just saw instance_variables() in ri.  I didn't see
| + 163038 [sillewille@g] This seems to work great, thanks!  I swear, this is the first way that
|   163072 [dblack@wo bl] That looks kind of odd.  Instance variables default to nil anyway.  If
|   163076 [daniels@pr n] There's two ways you can go depending on if you want to be able to add
+ 163037 [dave.burt@gm] You can save yourself some RSI by using attr_accessor.
| 163043 [sillewille@g] It seems that if I use attr_accessor, I can't use
| 163047 [dave.burt@gm] No, it's not - attr_accessor defines methods.
+ 163156 [Ara.T.Howard] require 'traits'
  163242 [sillewille@g] Wow, that's really nice.  All of these suggestions are great.  I

difference between the each iterator and the collect iterator?
163046 [vasten@gm il] I am a newbie as far as Ruby is concerned. I was going through the
+ 163049 [dave.burt@gm] [1, 2, 3, 4].collect {|i| puts i } #=> [nil, nil, nil, nil]
+ 163058 [drbrain@se m] $ ri Enumerable#collect
+ 163060 [christophe.g] #collect applies the block on each value of the array, and *returns the
+ 163071 [mow@on in ho] I guess that should read [1, 2, 3, 4].collect{|i| puts i }
  163079 [daniels@pr n] It's the return value of those two methods
  163081 [zdennis@mk e] I think Daniel means

Expression Evaluation Problem
163048 [xrfang@ho ma] I have a program which runs ok for a very long time, today I try to modify
+ 163056 [dooby@d1 .k ] /return/ and /and/ are both keywords
+ 163057 [drbrain@se m] return is higher.
+ 163067 [nobuyoshi.na] The precedence hasn't been changed and it is checked even in

Stuck with modules/classes/inheritance
163054 [kevin.jackso] require 'b'
+ 163061 [drbrain@se m] b = A::B.new
+ 163062 [christophe.g] require "base"
| 163063 [kevin.jackso] require 'base'
| + 163065 [drbrain@se m] require 'lib/base' then
| | 163068 [kevin.jackso] Thanks, this fixes it - but the actual path 'lib/base' is incorrect in
| | 163074 [drbrain@se m] The load path works from Dir.pwd, not the paths of the files you
| + 163066 [kevin.jackso] in fact from test.rb, I can require 'lib/base', but from b.rb I can't
|   163082 [christophe.g] Oops! Of course. "require"'s lookup system bit me again. IIRC it uses
|   163110 [itsme213@ho ] I just added RCR-324.
+ 163070 [dooby@d1 .k ] require 'b' loads /and runs/ b.rb immediately.

[ANN] grandrapids.rb November Meeting and Preparing for December
163064 [zdennis@mk e] Good morning everyone (12:50am constitutes as morning). The grandrapids.rb (aka Grand Rapids Ruby

Re: Ferret 0.1.0 (Port of Java Lucene) released
163084 [peter.r.bail] I have to say that the combination of Ruby, Eclipse, and Ferret have
163089 [dbalmain.ml@] ...

OSDC (Melbourne, Australia) open for registrations
163085 [jarich-spam@] Registrations for Australia?s second Open Source Developers? Conference are now

[ANN] Nitro + Og 0.24.0, Annotations, KirbyBase, SCGI, Og Evolution, Gen, Dynamic CSS...
163091 [george.mosch] Dear devs,
163254 [zedshaw@ze s] Hey George,
163265 [george.mosch] I use a slightly older version of your code. Will update to the latest

[ANN] Nitro Spark 0.6.0
163092 [george.mosch] Dear devs,

PARSER for RUBY
163094 [puellula@gm ] can you help me?
+ 163102 [hgs@dm .a .u] You've not removed all left recursion.
| 163106 [puellula@gm ] // PARSER
| 163108 [hgs@dm .a .u] ...
| 163113 [puellula@gm ] Hugh, thank you very much for your help but I have the same problem! :(
| 163118 [hgs@dm .a .u] Then I'm stuck.  This is what I find: they are difficult to
| 163124 [puellula@gm ] Hugh, thank you for your interest!
+ 163111 [eric_mahurin] Hey, we are doing the same thing!  I'm using my grammar project
  163116 [puellula@gm ] Eric, thank you for your message!
  163127 [eric_mahurin] convert LR LL parser
  163131 [puellula@gm ] Dear Eric,
  163184 [matz@ru y- a] Toughest examination I have ever heard.  Indeed.
  163232 [puellula@gm ] but I have to implement a Ruby Editor with the parser inside. This is
  163262 [puellula@gm ] Mr. Matsumoto,
  + 163351 [puellula@gm ] OK :)
  | 163361 [hgs@dm .a .u] That 'smtp' doesn't look right to me.... What is it?
  | 163373 [puellula@gm ] Hugh,
  | 163491 [eric.mahurin] ...
  | 163501 [puellula@gm ] interesting link :)
  + 163356 [ryand-ruby@z] ST80 grammar. ST80 is much cleaner than ruby in terms of how many
    + 163359 [puellula@gm ] thank you for your help. I had read the document you sent to me. Oh,
    + 163365 [eric_mahurin] Ryan,

failed GDiff attempt was [Re: Ruby Quiz for building up Ruby?]
163099 [kevin.jackso] Well I've got to dash off early today, but here's something I've hacked
163101 [hgs@dm .a .u] Well, I was asking if it would be acceptable as a quiz. I wasn't

newbie html question
163105 [Chris.Newman] ...
+ 163107 [ruby.brian@g] Simple onboard possibilities would be the cgi package (though that
+ 163179 [ezra@ya im h] Hey there-
  163182 [Chris.Newman] Thanks for your input!
  163183 [Chris.Newman] Thanks for your input!

[ANN] rttool-1.0.1
163114 [rubikitch@ru] == Abstract

O'Reilly Goes Ruby
163125 [danieljohnle] I may be a bit slow in finding this out but, O'Reillys CodeZoo have a
+ 163134 [jeff.darklig] ...
| + 163142 [curt.hibbs@g] ...
| + 163148 [a.r.ferreira] Nope, the Ruby section at code zoo debutted at August (together with
+ 163138 [rmagick@gm i] Much as I hate to knock any positive attention paid to Ruby, I have to
  163140 [lyle.johnson] Ditto. I first heard about it a month or so ago, and recommended some
  163141 [halostatue@g] Hopefully it hasn't, but I don't think that they've updated the Ruby
  163151 [curt.hibbs@g] ...
  + 163158 [lyle.johnson] OK, everybody, remember that Curt has the "in" at O'Reilly for us. ;)
  + 163259 [tom@in oe he] So that should help keep things current automagically...
threads.html
top