413113-413713 subjects 413529-413870

[ANN] md2man 2.0.3 - markdown to manpage
413332 [sunaku@gm il] md2man is a Ruby library and command-line program that converts

can't figure this out
413333 [lists@ru y- ] I'm going out of my mind trying to figure this out. I keep getting the
413334 [justincollin] Looks like giffile is nil. How it got to be nil no one can say without
413335 [lists@ru y- ] OK. Well, here's my code. This script is kicked off with a scheduling
413336 [justincollin] Personally, I would check that ARGV[0] is not nil. It's possible your

[ANN] stable_match 0.2.0
413337 [cookrn@gm il] stable_match is a Ruby implementation of the stable matching family of

ruby-forum sucks
413338 [ryand-ruby@z] Thanks for letting me know... or something.

Resolving pipe deadlock
413345 [lists@ru y- ] I am trying to emulate UNIX command line pipes in a Ruby-only solution
+ 413352 [joelvanderwe] #!/usr/bin/env ruby
+ 413368 [lists@ru y- ] If you feed it more than a couple of hundred lines of data the deadlock
| 413369 [shortcutter@] No knowledge of gem "parallels" here either but this phenomenon
+ 413378 [lists@ru y- ] Thanks Robert,
+ 413380 [normalperson] Hey, I'm not familiar with either parallel or msgpack, but can you try
| 413407 [ryand-ruby@z] If I'm allowed to use aalib, I can have one for you in about 10 more =
| 413409 [normalperson] Sure, I'd try it!
+ 413381 [lists@ru y- ] maasha@mao:~/scratch$ strace -cp 18264
| 413382 [normalperson] Just use strace -p, no need for -c unless you're doing performance
+ 413383 [lists@ru y- ] maasha@mao:~/scratch$ strace -p 18272
| + 413384 [normalperson] You'll have to figure that all out and what it means.
| + 413386 [shortcutter@] A lot is missing before that.  To find out what object a file
+ 413388 [lists@ru y- ] OK, the output of strace -o trace -ff -ttt ./pipes.rb produces two
| 413390 [shortcutter@] Thank you!
+ 413396 [lists@ru y- ] Thanks Robert,
| + 413405 [shortcutter@] You're welcome!
| + 413410 [shortcutter@] One more potential source of issues: you open all the pipes from the
|   413427 [shortcutter@] #!/usr/bin/ruby
+ 413420 [lists@ru y- ] @Robert, that is of cause something I need to look into. I did notice
+ 413421 [lists@ru y- ] This Parallel-less version is more of less following the example from
| 413426 [shortcutter@] I have a solution which connects commands but it still suffers from
+ 413437 [lists@ru y- ] Robert, I appreciate your effort. I still have a hard time wrapping my
| 413442 [shortcutter@] Did you look at the code I provided (the gist)? Basically you need to
| 413445 [shortcutter@] My FD closing scheme was broken because the parent process had the FDs
+ 413438 [lists@ru y- ] maasha@mao:~$ cat benchmark.rb
+ 413448 [lists@ru y- ] Robert, this is indeed marvelous. I guess my problem with lambda, proc
| 413450 [shortcutter@] Btw. why do you use msgpack?  Is there any advantage over Marshal?  If
| 413462 [joelvanderwe] Some advantages to be aware of (not necessarily relevant to Martin's
| 413472 [shortcutter@] That's good to know! Thank you, Joel.
+ 413452 [lists@ru y- ] maasha@mel:~$ cat benchmark.rb
| 413453 [shortcutter@] Impressive. Although it does not look as if Marshal was really slow.
+ 413460 [lists@ru y- ] OK, the use of "-" inside the CAT lambda I could perhaps tolerate. But
| 413461 [shortcutter@] Why that?  You could also replace this with something else, e.g. symbol :input.
| 413463 [lists@ru y- ] I favor a minimalistic invocation and the "-" or a symbol appears
| 413469 [ryand-ruby@z] class Pipe
| 413473 [shortcutter@] Thank you for the consideration!
+ 413641 [lists@ru y- ] So after a busy week, I have at last some time to look more into this.
+ 413642 [lists@ru y- ] Got it. Gist updated.
  413648 [shortcutter@] I don't think like 143 will work as IO#write usually returns the
  413663 [lists@ru y- ] Again, I get it working one way and then there is some other superior
  413665 [shortcutter@] Actually I mentioned that already - maybe it was not explicit enough. :-)

Ruby for Web app or Desktop app.
413346 [lists@ru y- ] i am a beginner to ruby as well as to this forum too . i just did some
+ 413347 [lists@ru y- ] If you add ruby to your PATH, you don't need to go to its directory to
| 413348 [lists@ru y- ] " okay i can get it . but as per the sites like wikipedia what they said
+ 413349 [lists@ru y- ] As far as I know, everything in Rails can be done in Ruby, since Rails
  413350 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

Ruby definitio
413351 [lists@ru y- ] I'm a total newbie in the coding world and have recently started
+ 413353 [rubytalk2dav] It means Ruby is a really hot, shiny, language that can be used for
+ 413363 [lists@ru y- ] @Carlos, expressiveness and flexibility have surely helped the concept
| 413397 [carlos.agari] It might be useful to remember that Perl is one of the languages that
+ 413376 [lists@ru y- ] I am not a programmer myself, I studied biology and molecular genetics.

[ANN] Rainbows! 4.6.0 - Rack HTTP server for the sleepy
413354 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

Ruby try to allocate memory when forking
413355 [lists@ru y- ] array = []
+ 413356 [cookrn@gm il] What version of Ruby are you using?
+ 413357 [lists@ru y- ] I have tryied 1.9.3, 2.0.0 and 2.1.0.
+ 413358 [normalperson] Ruby 2.0 and later is CoW-friendly.  Even then, using 64-bit on a
+ 413359 [lists@ru y- ] Eric Wong,
| 413360 [normalperson] Wait, that script you posted used 1GB of memory on your system?
+ 413398 [lists@ru y- ] Eric, a different script use 1GB. It is a library calling `identify` at
| 413429 [shortcutter@] pipe_open likely needs memory for file handlers and buffers. If you do
+ 413431 [lists@ru y- ] I don't think it needs more them 112 MB just to open a pipe.
| 413433 [shortcutter@] Very likely so, yes. But there are other reasons why malloc() can fail
+ 413434 [lists@ru y- ] If you are right I will not be able to use backquote at a Virtual Box
+ 413441 [lists@ru y- ] Can I just point out that using (({ puts `...` })) is a bit of an
+ 413457 [lists@ru y- ] Matthew, As I have said to Eric, I am just trying to isolate a situation
+ 413530 [lists@ru y- ] I am investigating a similar "cannot allocate memory issue".
+ 413563 [lists@ru y- ] Adam, I've created an issue at Ruby's redmine.

Re: Ruby definition
413361 [lists@ru y- ] Thanks Dave.  I'm aware that Ruby is a language and rails is the
+ 413362 [carlos.agari] A neuroscientist? That's awesome! :D
+ 413370 [shortcutter@] Choose Ruby over Perl because Perl's syntax makes it hard to read and
+ 413372 [stu@ru yp og] Larissa - Ruby is perfectly suitable for artificial intelligence

Creating a method within a class
413364 [lists@ru y- ] I'm learning about method calling and object oriented programming in
413366 [chris.hulan@] the way bark is defined it is an instance method

Re: [SOLVED]Calling a method from another class
413365 [lists@ru y- ] Figured it out, can't believe I didn't think of it earlier-- I
413377 [lists@ru y- ] Please don't UPCASE all your classes man ... :P

print vs puts handling of $_
413371 [gvimrc@gm il] fh = open './file.txt'
+ 413373 [ryand-ruby@z] 10002 % ri IO.puts
+ 413416 [abinoam@gm i] Dear gvim,

Ruby on USB stick for Windows? And linux :D
413374 [lists@ru y- ] Is it possible to run ruby on an USB stick?
+ 413375 [normalperson] No idea about Windows; but on Linux (and probably any *nix), I bet you
| 413423 [w3gat@nw ag ] I've been running ruby from a flash drive on win 7 without any problem
+ 413394 [quintus@qu n] This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

how to scan a hex string ?
413379 [lists@ru y- ] "\1\2abc\xAA".scan(/\1\2(.*?)\xAA/)[1]
+ 413385 [lists@ru y- ] It if is a hex string, then it is not a string, you are just looking at
| 414035 [lists@ru y- ] one question from out of curiosity - How did you got to know, by looking at the final Array or string, that "616263" is actually "abc" ?
| 414036 [lists@ru y- ] Practice. After a few years of hexdumping and byte scanning, values like
+ 413404 [lists@ru y- ] yes , it is char* , not string .
+ 413424 [lists@ru y- ] s = " sss\1\2abcd\xAA sss "

Trying to learn ruby through rspec puzzles. Help with this one (class related)?
413399 [lists@ru y- ] So, I am learning ruby outside of my job, which is not programming
+ 413400 [rubytalk2dav] Looks reasonable to me.  (Except that capitalize will only do the
+ 413401 [lists@ru y- ] Well, I ultametely solved the puzzle by playing around with stuff.  This
+ 413402 [lists@ru y- ] Also, something else that confuses me a bit is the need for the @title2.
| 413406 [jgabrielygal] You shouldn't need to use instance variables if you only use them
| 413415 [abinoam@gm i] Dear JD,
+ 413443 [lists@ru y- ] @Jesus Gabriel y Galan:  Sorry, I rain that code again.  It looks like

Nokogiri::XML::Node#dup showing unexpected result.
413408 [lists@ru y- ] require 'nokogiri'
+ 413411 [shortcutter@] #dup and #clone create shallow copies, i.e. all the references are
| 413412 [lists@ru y- ] =====================================================
| 413413 [sadjow@gm il] To make a deep copy, you need to pass 1 as argument.
| 413414 [lists@ru y- ] If you don't pass any argument, by default **deep copy** will be happened.
+ 413418 [lists@ru y- ] require 'nokogiri'

Regexp warning
413417 [lists@ru y- ] I've upgraded to ruby2.1.0 and tried it on my program and I got a
413419 [ammarabuali@] On Jan 20, 2014, at 7:18 PM, Gonzalo Garramuno <lists@ruby-forum.com> =

Build Ruby from Source on Windows Alone?
413422 [lists@ru y- ] I am not allowed to use a Windows install kit at work and must build
+ 414078 [djberg96@gm ] ...
+ 414469 [lists@ru y- ] Thank you for your excellent post on 2/18 Dan, which was quite helpful!

[ANN] beer.db - 1000+ Beers, 1000+ Breweries, 100+ Countries, New Multi-Line Record Format and More
413425 [gerald.bauer] I've updated the plain text beer.db fixtures now including more than

Simple way of communicating with a Qt widget from another thread
413428 [martindemell] I'm writing a tutorial to implement a small Logo interpreter, and it would

Unix command environment for README.win32?
413430 [lists@ru y- ] The build instructions at

Class with Ruby/Shoes. please help!
413435 [lists@ru y- ] Iˇ­m working on a rect wie Ruby/Shoes, the rect should move right, left,
+ 413439 [lists@ru y- ] Objekt or object ? :)
| 413440 [lists@ru y- ] Shoes.app width: 200, height: 200 do
+ 413449 [lists@ru y- ] Thank you.
| 413455 [lists@ru y- ] This don't do anything...
+ 413456 [lists@ru y- ] Thank you for you example. But I donˇ­t understand it. Can you make it with a real circumstance? I donˇ­t also understand what dx means. Andwhy do I need the sort? So can you please give me an example for the left key. Our Window has width: 500 height: 500
  413459 [lists@ru y- ] ? it's work...

getting directory size using ruby
413451 [lists@ru y- ] sys/filesystem gem but I didn't understand from examples how can it
413454 [shortcutter@] Traverse with Find or Pathname and sum individual sizes.

Work With Virtual office job and Make 10-100$ per day from Home
413458 [lists@ru y- ] Virtual office JObs
+ 414627 [lists@ru y- ] Making money has never been this simple. By sending new
+ 414689 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
| 414700 [tamouse.list] We call these pyramid schemes, or just scams.
+ 414709 [lists@ru y- ] And we also call them spam. :(
+ 414771 [lists@ru y- ] or not.

[ANN] omnifocus-github 1.7.1 Released
413464 [ryand-ruby@z] omnifocus-github version 1.7.1 has been released!

[ANN] isolate 3.2.4 Released
413465 [ryand-ruby@z] isolate version 3.2.4 has been released!

[ANN] oedipus_lex 2.1.0 Released
413466 [ryand-ruby@z] oedipus_lex version 2.1.0 has been released!

[ANN] hoe 3.8.1 Released
413467 [ryand-ruby@z] hoe version 3.8.1 has been released!

[ANN] minitest 5.2.2 Released
413468 [ryand-ruby@z] minitest version 5.2.2 has been released!

Kernel#loop calling using Fixnum object not happening?
413471 [lists@ru y- ] irb(main):001:0> 2.class
413474 [shortcutter@] That does not make much sense because loop wants a block.
413476 [lists@ru y- ] I know `#loop` is a private method. And private method can't have an
413479 [shortcutter@] There is. Read your first posting again.
413480 [lists@ru y- ] Ohh!! Sorry thanks.

Move ball with Ruby(/Shoes)
413477 [lists@ru y- ] we need to move a Ball with ruby and Shoes. It should move through the
+ 413482 [lists@ru y- ] Can please someone answer me :/?
+ 413487 [justincollin] Look near the bottom of this page http://shoesrb.com/walkthrough.html
  413523 [ashbbb@gm il] Try out this one? ;-)

What's the diffrence between FileUtils and system?
413478 [lists@ru y- ] I care much about the reliability
413481 [lists@ru y- ] Can't see what you're meaning. #system() is a method call, from Kernel

rubygems.org plot stats
413483 [lists@ru y- ] it's seem that rubygems.org has desactivate statistics curves.
413484 [sadjow@gm il] Great Regis!
413485 [lists@ru y- ] z is the number of commmit for periode,

Repurpose old items when you redecorate for a fun, personalized feel
413486 [lists@ru y- ] Decorating on a budget is one of my most favorite things to write about.
413496 [tamouse.list] This brings new meaning to refactoring...

Help- Converting String to a Method Call
413488 [lists@ru y- ] I am new to Ruby. I'm trying to convert a string to a method call in
+ 413489 [stefano.croc] The problem lies in the fact that send needs the name of the method as first
+ 413494 [lists@ru y- ] Thank you for the response Stefano,
| 413495 [jgabrielygal] You could read all columns until you get to an empty one, place them
+ 413499 [lists@ru y- ] I too am facing the same issue. Could you please explain a sample
| 413501 [jgabrielygal] What API are you using to read from an excel? As I don't know I'll
+ 413502 [lists@ru y- ] Thank you for replying promptly for my query.This is my code,
| 413504 [jgabrielygal] Looking a little bit at the spreadsheet gem, it seems that the Row
+ 413503 [lists@ru y- ] csv=<<EEND
+ 413505 [lists@ru y- ] i tried using *row, but i get an error saying wrong number of

count the continues letters from a word
413490 [lists@ru y- ] continues and how long this?
413491 [shortcutter@] regular expression with some repetition operator indicating minimum #

How to do string sort by number in specified lines?
413492 [lists@ru y- ] ==========================================
413493 [ryand-ruby@z] I can't really read this blob, so I'm not sure at to it's point.
413507 [lists@ru y- ] Dear Ryan,
413508 [shortcutter@] irb(main):035:0> require 'time'
413509 [lists@ru y- ] Wow, really good solution, thank you so much.
413510 [lists@ru y- ] This is one of the (many) uses of String#[]
413590 [lists@ru y- ] Dear Mattel,

Merging (add) two yaml objects into one
413497 [lists@ru y- ] o1 = YAML.load_file('file1.yml')
413498 [lists@ru y- ] There's no such thing as "yaml objects" the way you're saying it.  What
413500 [lists@ru y- ] p o1.class # => Hash

file open with default application
413506 [lists@ru y- ] sys call but I don't want to use sys call. Can I do this using any gem?

Check the count of continues letter from a string.
413511 [lists@ru y- ] Can you show me exact code using Regex to take number of continues
413519 [lists@ru y- ] 'oogoooglogic'.scan(/o+/).max.length #=> 3

Rational Number
413512 [lists@ru y- ] Guide me to use the Rational number in Ruby.
+ 413517 [lists@ru y- ] 3/4 #=> 0    Integer Math as it should be
| 413520 [fxn@ha hr f.] Using mathn in a program is normally not a good idea because it changes
+ 413522 [rubytalk2dav] Do you have a more specific question?
+ 413543 [lists@ru y- ] That's fine, I trying Ruby code to store the rational number into
| 413544 [fxn@ha hr f.] That's fine, I trying Ruby code to store the rational number into
+ 413658 [lists@ru y- ] thank for information

Array's methods and operators in Ruby
413513 [lists@ru y- ] What's the method/operator between the two arrays for purpose like,
+ 413515 [lists@ru y- ] p arr1 - arr2
+ 413539 [lists@ru y- ] say method to do that.
+ 413541 [lists@ru y- ] The method is subtracting one array from another. I know it seems too

inject and reduce method
413514 [lists@ru y- ] Anybody say more about in inject and reduce methods in Array as well as
413518 [lists@ru y- ] inject & reduce are the same method defined in Enumerable Module,

Script on hash sort - is it possible simplifiedˇ©
413516 [lists@ru y- ] possible to simplify?
+ 413521 [botpena@gm i] your code reads fine. and besides, programmers always tend to feel not *good : )
| 413526 [lists@ru y- ] Dear botp,
+ 413538 [jgabrielygal] 2.0.0p195 :018 > sample = "    name1 machin1 NoXDisplay (v2012.12)
  413591 [lists@ru y- ] Dear Jesus,

Why don't we use File.empty? rather than File.zero?
413524 [chendihao@xi] DQpJIGZvdW5kIHRoZSBGaWxlIEFQSSBzYWlkIHRoYXQ6DQoNCkZpbmQgaWYgYSBmaWxlIGlzIGVt

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

Getopt-Declare 1.31 released as a gem
413527 [lists@ru y- ] Getopt-Declare, the popular argument parsing library (port from a

syntax error from CSV operation - need help
413528 [lists@ru y- ] hash = { 'A' => [ 'v', 'x', 'y' , 'z' ] , 'B' => [ 'm', 'n' , 'o' ]  } #
413634 [tamouse.list] missing "do" here?