169676-175646 subjects 170218-171390

^ YAML for Ruby: How to turn off the boolean interpretations?
169943 [mikshir gmai] I have YAML documents generated in Perl and Python that I process with
+ 170034 [dooby d10.ka] Hadn't heard about those :-?  Interesting.
| 170037 [dooby d10.ka] ...
+ 170036 [logancapaldo] Well, I was looking at the YAML site, and apparently yes/no on/off
+ 170039 [ara.t.howard] doc = <<-yaml
  170040 [logancapaldo] I believe that the documents are being generated by Python and/or
  171225 [mikshir gmai] Thanks for the followups, gang.

^ different methods for initializing one object?
169944 [kibleur.chri] let's say I've got a class Point2D to write, it must have 2 methods to
+ 169955 [rforum gmail] One way would be to take keyword arguments and figure out which you were
| + 169962 [desmarm gmai] What you've proposed is a fine idea, but I think that it's important to
| | 169966 [rforum gmail] Oop, you're of course correct.  It's more "I can't believe it's not
| + 169976 [mental rydia] If you are always storing cartesian coordinates internally, I'd
|   169996 [kibleur.chri] Thanks for all your answers, in fact, my class was already written with
+ 169973 [transfire gm] class Point2D

^ next, retry, break?
169947 [mental rydia] Okay, I've got a question.
+ 169963 [surrender_it] don't they do it already?
+ 170011 [matz ruby-la] Just do it normally.  You don't have to do nothing for them.
  170028 [mental rydia] Thanks...
  170030 [matz ruby-la] Right, if the term "closest" means what I thought.
  170086 [mental rydia] I think the word I wanted was "innermost"..?
  170103 [matz ruby-la] Then, I think you were wrong.
  170107 [mental rydia] Thank you!  That was the root of my confusion.  I was under the mistaken

^ Unpack problems
169957 [aaron_patter] foo = "\000\000\022\227"
+ 169964 [wilsonb gmai] This looks like an endianness issue.  Check out what happens when you
| 169969 [aaron_patter] Looks like it is an endianness issue.  Thank you for the help!
+ 169989 [drbrain segm] Tiger's Ruby's pack/unpack have reversed endianness.  You'll have to

^ need to run setup.rb after 'gem install facets'
169965 [akonsu gmail] i just installed facets thus: 'gem install facets' and was expecting it
169981 [transfire gm] Hmmm... my guess is the RUBYOPT setting. Make sure you have this
169982 [akonsu gmail] thanks. with rubygems it works. stupid of me.

^ Unspecified Syntax Error
169967 [hmrhouse hot] def MakeBoard
+ 169972 [akonsu gmail] [instr[0],instr[1],instr[2],instr[3],instr[4],instr[5],instr[6],instr[7],intr[8]]
| 169977 [hmrhouse hot] That doesnt appear when i try to execute... there is no \255 character
+ 169974 [james graypr] In my experience, this is almost always the sign of a missing "end".
+ 169980 [desmarm gmai] For starters, you're gonna want to replace "else if" with "elsif".  The
| 169990 [hmrhouse hot] That.. would do it, thanks. Now i just have to figure out my logic
+ 169984 [toddkennethb] elsif num == 0

^ Re: next, [redo], break?
169975 [mental rydia] Sorry, s/retry/redo/.
169988 [lukfugl gmai] Like Gabriele said in the other thread, they seem to already...
169997 [mental rydia] Well, yes and no.  You didn't try anything like my example (which

^ Rails & MySQL login problem (#42000Access denied for user)
169979 [nospam yahoo] I'm running Ruby on Rails and MySQL on a Fedora Core 4 server. When I
169992 [vanek acd.ne] It looks like you or your host have upgraded to the latest Rails gems.
169994 [jeremy bitsw] Because AR bundles the latest version of the pure-Ruby mysql driver
170003 [yanfali best] sudo gem install mysql -- --with-mysql-lib=/location/of/your/mysqllibs
170043 [nospam yahoo] Thanks for your help, but I still didn't get it working.
+ 170048 [vanek acd.ne] When you look at field mysql.`user`.password do you see strings that are
| 170097 [nospam yahoo] Ok thanks to all who answered, this OLD_PASSWORD thing seems to have
+ 170082 [yanfali best] Have you tried running mysql client from the command line with the same

^ LyX chapter lister
169993 [slitt earthl] The script under my sig is a filter that takes a LyX file from stdin and spits
170083 [chneukirchen] lines = STDIN.readlines
170089 [slitt earthl] Thanks, I was looking for something like that.

^ Ruby SOAP client communication with Microsoft .NET webservice
170004 [keyshawn gma] I am trying to interface a SOAP client written in Ruby with a .NET
170042 [kero chello.] How would the call to stopGenerate know that '1' is a request id?
170081 [keyshawn gma] Thanks a lot. That worked out. Would you know how to pass an array of
+ 170100 [tsumeruby ts] When using SOAP4R with .NET web services, you must use the ASPDotNetHander.
+ 170214 [kero chello.] I have something like
  171962 [keyshawn gma] Thanks for getting back to me. I got it to work after reading through

^ [ANN] langhelp-0.9.2
170006 [rubikitch ru] == Abstract

^ Customizing erb's recognized tags
170007 [ljw1001 gmai] Does anyone know if it's possible to change the tags that erb
+ 170010 [james graypr] You mean normal String interpolation?
| 170012 [ljw1001 gmai] I need to read in a template file and apply replacements in two steps
| 170014 [james graypr] I just showed how to use delayed String interpolation on any String.
| 170015 [ljw1001 gmai] i want to do a series of replacements on a file in two passes - one at
| 170020 [james graypr] <body>
+ 170017 [james_b neur] checks the file extension;  if it's an erb template, it replaces <? ?>
  170021 [ljw1001 gmai] that might be a good solution.  i'll give it a try. thanks.

^ Semi-OT: Red Crystal - Ruby is taking off everywhere
170009 [phurley gmai] The Red Crystal flag is the new politically neutral emblem approved by

^ Phoenix.rb : Phoenix Ruby Users Group
170031 [james_b neur] The recent Refresh Phoenix[0] meeting earlier this month went extremely

^ Re: is this a good way to find anagrams?
170032 [wrong socal.] i goofed up my thread by using the word "anagram" incorrectly, or too loosely...
170208 [martindemell] One interesting way to do subset finding in words is to hook up a fast

^ rb_str_replace not public?
170038 [djberg96 gma] I wanted to use rb_str_replace for a destructive method in a C
170044 [trashcan hot] VALUE str1;     // string to replace
170062 [djberg96 gma] In my case I need to replace 'self' within a subclass of String, so I

^ :-) Sharing a Shower Moment :-)
170051 [transfire gm] What did the Rubyist say to the duck?
+ 170080 [billk cts.co] To quack or not to quack, that is the question.
| 170084 [julesjacobs ] Would fit in Why's Guide to Ruby.
+ 170091 [djberg96 gma] Why did the duck cross the road?
  + 170095 [trashcan hot] There was an instance of road, an instance of duck and an instance of
  + 170096 [cyclists nc.] Q. How many ducks does it take to change a lightbulb?
  + 170098 [sgentle gmai] Because road.is_a? Crossable returned true.
  + 170099 [ezra yakima-] If a duck quacks in the woods... Does anyone.respond_to? his calls?
    + 170133 [luc honk-hon] In ObjectSpace, nobody can hear you quack.
    + 170159 [john.carter ] You guys are Quacking me up. This is riDuckulous!
      170161 [pertl gmx.or] public final class Duck extends AbstractAnimal implements MayQuack, CanSwim
      170164 [kevin.olbric] "What's in a Type? That which we call a Duck

^ Gem problem behind proxy with authorization
170058 [anatol.pomoz] I am trying again to pick up question about Gem behind proxy with

^ [ANN] rctool-1.1.1
170059 [rubikitch ru] == Abstract

^ [ANN] el4r-1.0.2 - EmacsLisp for Ruby
170060 [rubikitch ru] El4r enables you to write Emacs programs in Ruby as well as in EmacsLisp.

^ [ANN] langhelp-0.9.3
170061 [rubikitch ru] == Abstract

^ Fwd: [XpWdc] Overview for Ruby On Rails - Tuesday, December 13th
170063 [jeffwaltzer ] The top for the next meeting of the Washington DC XP Users Group meeting is

^ Logic...
170069 [hmrhouse hot] def MakeBoard
+ 170070 [lopexx autog] It is supposed not to print anything since nothing is called here...
+ 170071 [m.fellinger ] charset="utf-8"
| 170074 [hmrhouse hot] The idea is to take a string of 9 characters, and transform them into an
| 170075 [hmrhouse hot] Obviously i meant 9 strings of 9 characters.
| + 170076 [gregory.t.br] On 12/10/05, StarLion <hmrhouse@hotmail.com> <hmrhouse@hotmail.
| + 170077 [m.fellinger ] charset="utf-8"
|   + 170079 [gregory.t.br] if you use a range, you don't need to worry about extraneous input
|   + 170092 [hmrhouse hot] This code returns a 10 element array, with 0 in index 9.
|     170093 [hmrhouse hot] Nevermind... I just cant count how many characters i put on one line.
|     170094 [james graypr] input =~ /^\d{9}$/
+ 170072 [daniel.schie] I think it's because when you write `puts board[rcount]', `rcount' is 1
+ 170073 [gregory.t.br] make_board returns a board split by spaces.

^ Ncurses - how do you get mousemask working?
170088 [lymans gmail] I've tried... and I've looked around.
170334 [pabs pablotr] They couldn't
170340 [pabs pablotr] diff -ur ncurses-ruby-0.9.2/ncurses_wrap.c ncurses-ruby-0.9.2-mousemask_fix=
170533 [lymans gmail] Thanks for the reply, but I think I'm going to move away from
170622 [dickey saltm] That's a terminal-dependent feature.  If the terminal supports it,

^ How to preserve line endings in strings with YAML?
170105 [ruby tompayn] Normally I would expect that
170109 [billk cts.co] On my system, ruby 1.8.2 (2004-12-25) [i386-mswin32], the first two

^ inserting raw xml into a rexml document
170115 [ara.t.howard] [ahoward@localhost xhtml-0.0.0]$ irb -r rexml/document
170122 [ruby-ml magi] Are you actually trying to create new elements in the doc? (If not, then
170123 [ara.t.howard] that's just what i did!  thanks!

^ [ANN] lazy.rb 0.2
170121 [mental rydia] Now that I'm done asking stupid questions about iterators, it's time for
170124 [ezra yakima-] Mental-

^ ruby's Logger conflict with Log4r's Logger
170126 [capitain gma] Both of them has a class named "Logger"
+ 170128 [langstefan g] I know it doesn't help now: As a general suggestion: Never
| 170141 [capitain gma] thanks for your help , I prefer the second way :)
+ 170145 [james graypr] # ...

^ erb and scope
170127 [wybo servaly] require 'erb'
+ 170129 [langstefan g] puts ERB.new(FOO).result(binding)
| 170132 [wybo servaly] That helps (although I don't understand it yet, but I'll find out),
| 170148 [james graypr] ERb templates are resolved in the scope of some "binding".  They have
+ 170131 [malte__ gmx-] [erb]
  170134 [fxn hashref.] [Other poster suggests passing binding.]
  170150 [james graypr] I imagine the reason is because ERb uses eval() under the hood and

^ Houston ruby and / or rails user group?
170152 [klancaster19] Jut left full time employment to do a start-up with Rails as our

^ RubyGems - trouble with .gemrc gempath setting
170155 [rix advalvas] I'm having a strange error with RubyGems when specifying a repository in a

^ About open-uri and ENV["HTTP_PROXY"]
170156 [anatol.pomoz] I am investigating problem with Gems and proxy authorization and I have
170186 [akr m17n.org] Environment variables are not appropriate place to store

^ Ruby: A New Danger
170157 [hcatlin gmai] This is my attempt at humor. I was having fun with The Movies and
+ 170158 [hcatlin gmai] One last note.
+ 170204 [mrkode gmail] kinda funny. not too shabby voice acting either, tbh.
+ 170207 [tsumeruby ts] hcatlin, Good work

^ [ANN] Ruby SNMP 0.6.0 Released
170165 [davehal42 gm] Release 0.6.0 of Ruby SNMP is now available.  I got tons of user

^ The end of Gem vs Proxy war
170166 [anatol.pomoz] I am again about "Gem behind proxy" topic. I hope it is the last message
170176 [lyndon.samso] I haven't tried your patch, but good work!

^ creating a <=> method
170167 [hawkman.gelo] i've created a class, and want it to be comparable with itself, but i don't
+ 170168 [james graypr] Like this?
| 170170 [hawkman.gelo] it works, thanks! :D
+ 170169 [surrender_it] yuu should return 1 if self > b, 0 if self == b and -1 otherwise.
+ 170171 [ruby-forum-r] # The spaceship operator needs to return either

^ Calculating single-digit summands
170174 [boyang.xia g] I have tried to make an algorithm that finds all possible combinations
+ 170178 [ronjeffries ] I don't understand the rules of the game from your writeup.
+ 170187 [james graypr] One thing that your code could really use is better names.  Variables
  170191 [dandiebolt y] Don't you need enum. ?
  170192 [james graypr] Oops.  Yes.  Thank you.

^ Calculating single-digit summands
170175 [boyang.xia g] I have tried to make an algorithm that finds all possible combinations
+ 170179 [janchrister.] Calculating single-digit summands
| 170180 [janchrister.] Calculating single-digit summands
+ 170271 [boyang.xia g] This is a newer algorithm which works much more faster.
  + 170270 [boyang.xia g] # examples
  + 170276 [dblack wobbl] Array#reverse gives you a new array, so you don't need to clone it.
  | 170308 [janchrister.] draq,
  | 170515 [boyang.xia g] I don't see the problem. The list of arr(2) seems to be right. The
  | 170519 [janchrister.] draq,
  + 170295 [james graypr] You don't think so?  Let's ask Ruby...
  | 170501 [boyang.xia g] I see, there is much to learn. ;-))
  + 170303 [pine29 myfas] Since only single digit summands are under consideration, I don't think

^ [ANN] ruby queue : rq-2.3.1
170177 [ara.t.howard] - added 'stage' option to submit mode, which allows submission in a 'holding'

^ Watir Javascript popup handler: works with popups from links, not from buttons
170181 [jeffz_2002 y] (long post!)

^ Embedded Ruby into C
170182 [joevandyk gm] Anyone got any good resources on embedding C into Ruby?  The ones I
+ 170188 [jonsmirl gma] Chapter 21 in Programming Ruby, Second Edition covers it for Ruby 1.8.
+ 170189 [joevandyk gm] I created a Ruby extension in C called 'functions.so'.  My ruby script
  + 170190 [jonsmirl gma] The examples from "Extending Ruby" may help.
  + 170193 [joevandyk gm] Aha, calling ruby_init_loadpath() did the trick.
    + 170194 [joevandyk gm] int main()
    + 170200 [joevandyk gm] Anyone know how I can avoid the following compile errors?
      170202 [joevandyk gm] Can I embed a Ruby extension into a C executable, run a Ruby script
      170213 [joevandyk gm] Whew, figured it all out.

^ Ruby + yaml = warnings???
170183 [ml kurt.hind] % ruby --version
170240 [hutch recurs] FYI, no warnings in 1.8.2
170241 [edder tkwspi] I played around with yaml on 1.8.3 and found out it is completely broken
170248 [edder tkwspi] yaml seems to be broken on 1.8.4_pre2 too, so I suggest downgrading to

^ Problems with missing collection method in has_many relationship.
170184 [sean.swolfe ] I have a layered one to many relationship situation that is having some

^ Catching Errno::ETIMEDOUT
170185 [hsanson moeg] This is a little method I use to download webpages. It works ok until I
170314 [ruby-forum-r] Try to rescue SystemCallError (all off the Errno

^ [QUIZ][SOLUTION] Kalah (#58)
170196 [dbalmain.ml ] Hey guys,
+ 170216 [rob mars.org] [QUIZ][SOLUTION] Kalah (#58)
| 170232 [dbalmain.ml ] To you only.
| + 170235 [dbalmain.ml ] Whoops, that was supposed to be to Rob only. :P
| | 170297 [james graypr] No worries, you didn't offend me.  ;)
| | + 170329 [perrin apoth] If you have to rewrite something three times to get it down to two lines
| | + 170401 [dbalmain.ml ] Cool. And this is the way it should be. That's the reason I read your
| |   170612 [adam.shelly ] Dave scored 1057 points in 409.138 seconds
| + 170245 [steve waits.] Dave,
|   170259 [dbalmain.ml ] Great :-)
+ 170317 [adam.shelly ] Here are my Kalah Players.
  170347 [adam.shelly ] That will teach me to skip unit tests...
  + 170354 [adam.shelly ] Not strictly quiz related, but why do my emails to the list get have
  | 170360 [mental rydia] As far as I can see, it's because the archive software doesn't
  + 170388 [slitt earthl] Could you please tell me more about the use of test units?
  | 170402 [james graypr] If you are curious about Ruby's Unit Test library, it is documented
  | 170466 [slitt earthl] Ahhhh, I've always called those things "test jigs". Thanks.
  | 170474 [james graypr] There are many examples on the Ruby Quiz site.
  + 170405 [dbalmain.ml ] Just ran a tournament with your players. In case you or anyone else is
    170430 [adam.shelly ] Cool.
    170435 [dbalmain.ml ] It's just a simple hack. I've attached the code. I changed your

^ Strange bahaviour of "Set"
170210 [th-dev onlin] I already mentioned this in another thread, but I think this is of
170281 [collinsj sea] I believe include? checks for the specific Object ID for the set, not

^ ruby-gnome2: catching middle clicks on tabs
170217 [ces.fci gmai] What I am trying to do is capture the button-press-event when a person
170239 [mutoh highwa] "tab_label" is not "child" of Gtk::Notebook.
+ 170254 [slitt earthl] Where does one get the gtk2 module?
| 170275 [ces.fci gmai] Clayton
+ 170272 [ces.fci gmai] puts nb==widget.parent # true
  170359 [mutoh highwa] Strictly speaking, both of vbox and tab_label_box are
  170368 [ces.fci gmai] No need to be sorry.  I greatly appreciate the help.