412274-413403

412029-412545 subjects 412463-413069

How to get the extended module list?
412274 [lists@ru y- ] module A
412275 [shortcutter@] irb(main):015:0> C.singleton_class.ancestors
412277 [lists@ru y- ] Excellent!! Robert.. Does it mean singleton_class contains always
412282 [shortcutter@] Yes.

Ruby Internal
412279 [lists@ru y- ] Hey guys!
+ 412280 [plugatariov@] Iurii Plugatariov
| 412281 [lists@ru y- ] Okay thx for this fast response :)
| 412284 [wbrisett@at ] ...
+ 412283 [fluido@fl id] I remember when I first looked at that myself. It is now several years
+ 412285 [lists@ru y- ] Thx for your answers :)

Arrays [i + 1]?
412286 [lists@ru y- ] math expression in arrays?
412287 [chris.hulan@] looking at the code, you are adding 'X" to the adjacent cells when an 'X'
412313 [rafaelmoraes] I know nothing about tests, I am not able to help you in this matter
412314 [rafaelmoraes] Only correcting myself
412327 [chris.hulan@] Note that Ruby arrays re-size as needed
412333 [rafaelmoraes] @Chris Hulan,
412343 [chris.hulan@] the changes look like they ensure you don't add elements, which i'm
412345 [rafaelmoraes] oh, thanks for the reply
412347 [chris.hulan@] right, sorry, I missread the code

swap new number into existing array
412288 [lists@ru y- ] I've created the attached program but can't get my random number to pass
+ 412290 [lists@ru y- ] The problem is in the "run" method: every time you call the "string"
+ 412291 [lists@ru y- ] string[0] = @new_number
+ 412302 [tamouse.list] pass
  + 412303 [matthew@ke w] time you call the string method. The other problem is your if-elsif struct
  + 412304 [myappleguy@g] Try this, you were close. I would try test driving you application to help you make sure your program is doing what you want it to.
    412305 [myappleguy@g] Here is a slightly better version.
    412306 [lists@ru y- ] Actually, your second one has a zero-index issue, because you can input
    412326 [myappleguy@g] Good catch, it does have an off by one issue. A good test would have caught that. Thank you.

[ANN] autotest-rails 4.2.0 Released
412289 [ryand-ruby@z] autotest-rails version 4.2.0 has been released!

[ANN] Ruby 1.9.3-p484 is released (includes a security fix!)
412292 [usa@ga ba ec] Now Ruby 1.9.3-p484 is released.

To read information from multiple files present in the same folder
412293 [lists@ru y- ] my_text="This is the first sentence and the second sentence doesn't
412294 [lists@ru y- ] I'm guessing you need my_test to be equal to a file's contents. Do you

wrong documentation about erb -P ?
412295 [lists@ru y- ] according to "man erb", the -P options: Evaluates lines starting with %
412311 [justincollin] $ erb --help

Re: Arrays ?
412296 [lists@ru y- ] I fix it, but the result is the same..

method error for rspec
412298 [lists@ru y- ] I'm getting the error below, can someone explain what I need to do?
412299 [rubytalk2dav] It's saying that at line 55 of numbers_spec.rb, you call

Networking an multiple queues
412300 [admin@ta -d ] charset=utf-8
412307 [normalperson] How long is each connection waiting for?  Are you sure it's reused and
412309 [admin@ta -d ] charset=utf-8
412317 [normalperson] Can you share the rest of (or ideally all of) your code?
412320 [admin@ta -d ] charset=us-ascii
+ 412324 [admin@ta -d ] charset=us-ascii
+ 412334 [shortcutter@] I did not find a single class definition in that code.  For my feeble
  412335 [admin@ta -d ] charset=iso-8859-1
  412337 [shortcutter@] y and I am loading them with 'load' method. Is this considered heretical? :=
  412341 [admin@ta -d ] charset=iso-8859-1
  412377 [shortcutter@] Please trim your quotes - that makes it easier for readers to follow
  412419 [admin@ta -d ] charset=iso-8859-1
  412425 [shortcutter@] epended. I've experimented with parallel encoder(encoding done by spawning =
  412431 [admin@ta -d ] charset=iso-8859-1

How to remove blank lines using nokogiri ?
412301 [lists@ru y- ] require 'nokogiri'
412471 [abinoam@gm i] The two xml, the desired (without blanks) and the real one (with
412472 [lists@ru y- ] Yes.. I am :) Thank you very much...

[ANN] Initial implementation of The Update Framework (TUF) for RubyGems
412308 [bascule@gm i] Here at Square we've been doing a Hack Week project to improve the security
412384 [normalperson] (reducing Cc:)
+ 412385 [ganhe0@16 .c] RG8gdSBtZWFuOiBJIGp1c3Qgd2FudCBhIGd1aWRlIGFib3V0ICJob3cgdG8gcHVibGlzaCBnZW1z
+ 412386 [bascule@gm i] Great question! For that we need a deeper dive into how TUF manages
  412387 [normalperson] OK, good :)  Because I don't want people trusting me or my signature.
  412406 [tony.arcieri] If that's all you want, there's this Bundler feature request to keep track

URI.decode_www_form errors on valid x-www-form-urlencoded strings
412310 [lists@ru y- ] URI.decode_www_form("a=1?b=2=")
412316 [justincollin] I assume you meant
412318 [lists@ru y- ] Yes, thanks for the correction.

Occurrence Counter
412312 [lists@ru y- ] a bunch of numbers divided by space and adds those spaces to an array
+ 412315 [botpena@gm i] at this point, num is an array of "stringified" numbers
+ 412332 [shortcutter@] spaces to an array".  Here you are adding things between individual

[ANN] autotest-rails 4.2.1 Released
412319 [ryand-ruby@z] autotest-rails version 4.2.1 has been released!

Rails server start error: Invalid Multibyte char
412321 [specialankur] I am getting this error while starting server. Can someone help me debug
+ 412322 [atma@co va e] ...
+ 412323 [thyagobr@gm ] I thought ruby 2 already dealt with it properly, but, anyways, you can try
  412325 [specialankur] One correction, I think "Encoding.default_external =3D "UTF-8" needs to be

Confusion with local variable assignment in ruby
412328 [lists@ru y- ] I am having some confusions about local variable assignments..
412329 [stefano.croc] Because in the first case, ruby can't know whether x is a method called
412330 [lists@ru y- ] Yes, now I am ok.. Let me some more confusions that I am having  still
412331 [stefano.croc] It's the same issue as before. As soon as ruby sees

Why am I getting - "`force_encoding': can't modify frozen String (RuntimeError)"
412336 [lists@ru y- ] # encoding: ascii-8bit
412338 [stefano.croc] Since Strings are so commonly used as keys and that having mutable
412339 [lists@ru y- ] hsh = {

"if statement" return based on source of script file.
412340 [lists@ru y- ] I'm fairly new to Ruby, so I'm hoping this is a simple issue, but I
412346 [chris.hulan@] value is not defined in the method
412348 [lists@ru y- ] My apologies... I should have clarified;  The code snip above is a very
412352 [abinoam@gm i] Try this and you'll get closer to what you want.
412353 [lists@ru y- ] Yup, "File.expand_path(File.dirname $0)" is exactly what I was looking

Sorting an array based on user input
412342 [lists@ru y- ] Hey, I have just finished the chapter "Ordering your Library" so I want
412344 [peterhickman] The simplest thing to start with would be to feed a list into the function
+ 412357 [shortcutter@] You could even do
| 412375 [abinoam@gm i] Robert, clever!!! :-)
+ 412376 [lists@ru y- ] You probably already know this, but ".each" is redundant.

[ANN] mime-types 1.25.1 Released
412349 [austin@ru yf] mime-types version 1.25.1 has been released!

[ANN] RubyInstaller 1.9.3-p484 released
412350 [luislavena@g] I'm very pleased to announce the release of RubyInstaller packages for Ruby

[ANN] RubyInstaller 2.0.0-p353 released
412351 [luislavena@g] I'm very pleased to announce the release of RubyInstaller packages for Ruby

instance variable access from 1 module to another module
412354 [lists@ru y- ] I have 2 modules,each having 1 class which contains instance variables &
+ 412355 [lists@ru y- ] There's a reason you use methods to access a Class' state. If you tamper
| 412356 [shortcutter@] information hiding and separation of concerns.
+ 412358 [lists@ru y- ] Well, I was assuming he meant without a method defined explicitly within
| 412359 [shortcutter@] nice little example which highlights the important parts of
+ 412361 [lists@ru y- ] If he were a client, I'd have hammered out the link between technical

Override String.to_f method
412360 [lists@ru y- ] class String
412362 [lists@ru y- ] I think the problem here is you still need the original String#to_f

simple program with error message
412363 [lists@ru y- ] My task is to write a full name greeting program (from how to program
+ 412364 [wbrisett@at ] ...
+ 412365 [lists@ru y- ] puts 'Hello there, whats your first name?'
| 412367 [jgabrielygal] There's something missing in there, I think. In the error you showed
+ 412366 [lists@ru y- ] That code, despite spelling mistakes and missing spaces, works. No
+ 412368 [lists@ru y- ] ok this is my fault, the program I posted above was incomplete. The
| + 412369 [jay.kaye31@g] If the code you posted above is correct, then you have to remove the '+'
| + 412370 [jgabrielygal] The last '+' should not be there.
|   412371 [jgabrielygal] puts 'Hello there, whats your first name?'
|   412372 [jay.kaye31@g] Jesus is right. However, I know from having read Chris Pine's book myself
|   412374 [jgabrielygal] Ooops, sorry. Didn't realize that he was following the book and that
+ 412373 [lists@ru y- ] Thanks again Joel, Wayne, Jason and Jesus,

Error while using a Named Route for naivgation
412378 [specialankur] I have *home.html.erb* file which has a link for *course.html.erb *file
412380 [hmaddocks@me] routes.rb file, the name of view should be in single quotes or double =
412388 [mahao_boy@16] UkVNT1ZFIE1FCkF0IDIwMTMtMTEtMjYgMDM6MjE6NTUsIkhlbnJ5IE1hZGRvY2tzIiA8aG1hZGRv

[ANN] Tork 19.4.0 - test with fork
412379 [sunaku@gm il] 1. Absorbs test execution overhead into a master process.

Modules
412381 [marvin-johan] ...
412382 [rubytalk2dav] There are many ways, but the main one I've seen is to "mix" it into
412383 [henryso@pa i] I think using module to effectively namespace the classes, modules,

Chennai Ruby Jan 18 Meet up
412389 [lists@ru y- ] We at Spritle http://spritle.com are arranging a Rubyist meetup in

Leading zeros
412390 [lists@ru y- ] Hey!
+ 412391 [fxn@ha hr f.] Hey!
+ 412392 [lists@ru y- ] That was simple. The best way for my application is to do it with
| + 412394 [mike@st k. a] strings.
| + 412395 [fxn@ha hr f.] That was simple. The best way for my application is to do it with
+ 412393 [lists@ru y- ] If you need the leading zeros then it's not strings you're after.
+ 412396 [lists@ru y- ] I need the leading zeros later when I have plus and minus to one of the
+ 412397 [lists@ru y- ] The reason for why I need the leading zeros is: One of the prizes in the
| 412398 [peterhickman] Isn't that just the same as a
+ 412399 [lists@ru y- ] In that case, wouldn't you want each number set as an array?
| 412400 [lists@ru y- ] I like that idea.
+ 412401 [lists@ru y- ] ___________
+ 412416 [lists@ru y- ] Thank you, Joel!
+ 412420 [lists@ru y- ] The obvious answer would be to append a 6 to each string.
| + 412423 [lists@ru y- ] Gotta take a look a mapping.
| + 412438 [tamouse.list] That might be less obvious to some :)
+ 412444 [lists@ru y- ] what about ?

uestion about ruby continuations.
412402 [gonzih@gm il] port one puzzle from scheme to ruby. But it works in a different way.
412614 [abinoam@gm i] THANKS GOD IT'S FRIDAY !!!
412620 [gonzih@gm il] Now I get it. Great job, thank you!

<terminated> Upon script run
412403 [lists@ru y- ] Stupid question, I know. But, what am I missing here?
+ 412404 [lists@ru y- ] You've defined the method "chrome", but you haven't called it. The
+ 412405 [lists@ru y- ] Thank you, Sir. I shall try this now.

Why not we able to include module in the parent class from child class?
412407 [lists@ru y- ] I am having some confusion with the `include` method in Ruby, to include
412408 [matthew@ke w] Typing order. When ruby sees you including B::M neither B nor B::M have

Confusion over strings and integers
412409 [lists@ru y- ] I'm reading Chris Pines 'How to program' This was the latest concept,
+ 412410 [lists@ru y- ] The result of gets is indeed a String, but the return value from
+ 412411 [shortcutter@] s"
+ 412412 [lists@ru y- ] Thanks guys, I kind of get it.
+ 412413 [lists@ru y- ] Thanks guys, I kind of get it.
| 412417 [shortcutter@] Sorry for that.  The minimal takeaway should then be: use string
+ 412437 [tamouse.list] fingers"

How can I invoke Notepad++ from the command prompt ?
412415 [lists@ru y- ] I have only very recently started learning Ruby.
412421 [lists@ru y- ] The simplest way to achieve this would be to add your Notepad++
412424 [lists@ru y- ] Thank you very much Joel ! That did the trick.

Why I can not call super in define_method with overloading method?
412422 [lists@ru y- ] When I run code below it raise error:  implicit argument passing of
+ 412426 [mike@st k. a] mem[args] =3D super
+ 412680 [rafaelmoraes] super() "With parenthesis"

How to escape " in windows ruby
412427 [lists@ru y- ] I'm learning to program and I want to insert the user response to a
+ 412429 [mike@st k. a] keep
+ 412430 [lists@ru y- ] If you want to add double quote characters, you have a lot of options.
+ 412432 [lists@ru y- ] Oops, that last one should be
+ 412445 [lists@ru y- ] If you are not embedding code inside any string just don't use double
+ 412446 [lists@ru y- ] Thanks guys, this info worked a treat!

How to pass a hash with a redirect_to
412428 [lists@ru y- ] Can anyone assist me with the following?

I need to convert this code written in Ruby to other language
412433 [lists@ru y- ] I m actually a PHP, C# programmer and thinking of getting my hands to
412434 [jgabrielygal] I don't know C#, but I can try to explain what this does, so maybe you

How and where to publish my project?
412435 [lists@ru y- ] I have a simple project, [Sbire](https://github.com/GCorbel/sbire),

Greasemonkey script for rubyforum
412436 [lists@ru y- ] For Rubyst which read the forum by web, here a little user-script

Watir question
412439 [lists@ru y- ] How would I check whether the field is editable or not ?
+ 412440 [lists@ru y- ] rescue Watir::Exception::ObjectDisabledException
+ 412441 [lists@ru y- ] is not mine, mine is Watir::Exception::ObjectReadOnlyException
+ 412442 [lists@ru y- ] Not far off, given the vague nature of the question :)
+ 412443 [lists@ru y- ] Ok, thank you.

META: Is Ruby a good language to choose as your first one to learn?
412447 [lists@ru y- ] I'm a complete beginner to coding and I was wondering if there are
+ 412448 [matt@te hn r] I suppose he wants you to start with Mix...
| 412449 [atma@co va e] Then jump to x86 asm, then C, then maybe Java, before jumping to ruby. Knuth would be proud.
+ 412451 [lists@ru y- ] Ok, so far the answer is: 'no, don't worry about it' from these two
| + 412452 [blartefaxen@] ...
| + 412453 [adam.shelly@] The question to ask is do you want to know how computers work, or how to
| | 412459 [thyagobr@gm ] It's quite hard to pinpoint exactly where you should start. I've started
| + 412454 [hmaddocks@me] It depends on what sort of personality you have and what your computer =
+ 412455 [lists@ru y- ] One more point to consider is that no computer (that I'm aware of)
+ 412456 [lists@ru y- ] That's a great breakdown from Adam, Henry and Matthew! Just the kind of
+ 412457 [lists@ru y- ] Ruby is easy to learn, is fun to write, and has a great support forum ;)
| 412484 [shortcutter@] Absolutely agree!
+ 412458 [lists@ru y- ] Awesome reply as usual Joel :) and certainly food for thought. I'm
+ 412460 [lists@ru y- ] Long time ago, in 1985 I started with BASIC for APPLE ][. The I learned
+ 412461 [stu@ru yp og] Sounds like your father wants you to understand computation and not just
+ 412467 [lists@ru y- ] Ruby can be a bit complex.
+ 413389 [lists@ru y- ] I say - for the start - forget low level languages like C or ASM. Either
| 413392 [shortcutter@] university to use Pascal as language to learn programming. And I share
+ 413391 [lists@ru y- ] I tend to agree with your Dad. I'm a firm believer that if you're
  413393 [shortcutter@] Not trying to intimidate Johusa's dad here but this statement sounds
  + 413395 [tamouse.list] I'm somewhat intrigued by the source of this sort of question, and about
  + 413403 [lists@ru y- ] No, it's not Robert. It's analogous to someone saying "I want to learn

Help with Ruby XMPP4R
412450 [lists@ru y- ] A complete newbie here, I have been left some Ruby code by a contractor

Does anyone need help with documentation?
412462 [lists@ru y- ] I'm a budding rails developer who used to work as a writer and editor,
+ 412468 [lists@ru y- ] "if anyone needs any help with writing documentation, I'm more than
+ 412474 [lists@ru y- ] Thank you for your answer, Marc! I'll have a look at some projects and
| 412624 [justincollin] Please check out these links if you are planning to contribute
+ 412654 [lists@ru y- ] Thanks a lot for your advice, Justin; I really appreciate Ruby vets
threads.html
top