405820-412016 subjects 406261-406669

[ANN] fixedpnt 0.0.1: Binary Fixed Point Calculations
406015 [lists@ru y- ] Allows simulating binary fixed point calculations done in hardware.
+ 406030 [ryand-ruby@z] 1) package it as a gem. I'd be happy to help with this.
| 406032 [normalperson] I encourage Axel to choose the license he feels is best.
+ 406031 [joelvanderwe] A random api suggestion... consider using #[]= as an alias for #assign,
+ 406170 [lists@ru y- ] * It's available as gem now: fixedpnt.

Need to change loudness of a mp3 file using ruby script
406039 [lists@ru y- ] I need to change the loudness of a mp3 file using mp3gain.I am toatally
+ 406040 [fluido@fl id] This means that you have to learn how to use Ruby. You should dedicate
| 406056 [lists@ru y- ] Thanks Carlo
| 406059 [fluido@fl id] This has practically nothing to do with Ruby. You should knock at some
| 406079 [lists@ru y- ] Thanks Carlo. BTW I found the solution and have successfully
| 406089 [josh.cheek@g] ...
| 406130 [garthy_lmklt] Thanks- that gave me a good laugh.
+ 406082 [lists@ru y- ] Would you mind sharing the main gist of your solution for future hopeful

Re: fixedpnt 0.0.1: Binary Fixed Point Calculations
406046 [lists@ru y- ] Thank you for your suggestions!
+ 406048 [lists@ru y- ] I see the advantages. Only thing is, I can't remember to have seen this
| 406062 [joelvanderwe] A reasonable concern. I don't think I've seen this construct (#[]= and
| 406063 [lists@ru y- ] I'll implement it as alias. So me (and others?) can try out which feels
+ 406049 [adam@ap es o] One of the concerns people have with the GPL is that it is copyleft,
+ 406050 [kgo@gr nt ol] The MIT and BSD licenses basically ensure that you get attribution for
+ 406107 [ryand-ruby@z] Done. I sent you a pull request a minute ago.

[ANN] nokogiri 1.5.9 Released
406054 [mike.dalessi] nokogiri version 1.5.9 has been released!

Module's superclass?
406058 [lists@ru y- ] ===
406067 [tamouse.list] => [MyC, T1, S1, Object, Kernel, BasicObject]

Gem dependency tool
406061 [lists@ru y- ] Here a little script for detection gem & version used for some

[ANN] flog 3.2.3 Released
406066 [ryand-ruby@z] flog version 3.2.3 has been released!

File.exist? not working when directory contain letters like '' in its name.
406078 [lists@ru y- ] File.exist? in not working with directory name having special
406084 [lists@ru y- ] #encode: utf-8

Differences between Ruby 1.9.2 and 1.9.3
406091 [lists@ru y- ] First of all keep in mind I am completely new to Ruby, plus I am
+ 406092 [shortcutter@] Does that help?
+ 406093 [lists@ru y- ] I checked that text and it is not helping. According that one, it should
| 406094 [shortcutter@] What about posting the concrete error?  That'll likely yield more
+ 406095 [lists@ru y- ] /var/lib/gems/1.9.1/gems/linecache19-0.5.12/lib/tracelines19.rb:12:in
| 406100 [shortcutter@] To elaborate what Hans said: you also need "sudo gem update" (or
+ 406098 [lists@ru y- ] Did you reinstall your gems too?
+ 406101 [lists@ru y- ] Yes, I've done that and still the same. Reading around the internet, it

Exact version of linecache19 used
406097 [lists@ru y- ] gem list linecache19
406111 [echristopher] It looks like one of those Ruby apps has a Gemfile specifying that
406116 [sto.mar@we .] gem install linecache19 -v 0.5.12

Replacement for webdriver-user-agent (use with watir-webdriver)
406106 [tamouse.list] I notice that the gem pointed to in the watir documentation that
406238 [lists@ru y- ] Per the announcement
406242 [tamouse.list] Which doesn't actually address the question I asked. I wasn't

Need to parse a list of checkboxes - ruby mechanize
406110 [lists@ru y- ] I have a ruby mechanize form that has a list of some 45 checkboxes. Now
+ 406112 [lists@ru y- ] Was able to resolve it by spending some more thought on it :)). Did the
| 406113 [tamouse.list] It looks to me like you're trying to set all the checkboxes in a form,
+ 406114 [lists@ru y- ] tamouse's suggestion is probably the best way to do this. As you already

How to distribute my ruby script
406117 [lists@ru y- ] I am new to Ruby. I have created a new script that requires couple of
+ 406121 [matma.rex@gm] So have you actually tried Ocra? It'll package the gems as well.
+ 406125 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

Writing a game, trying to make dynamic loops
406118 [lists@ru y- ] Hey there,
+ 406119 [calvin.bornh] it is, indeed, quite simple. gets returns the input as a string. Since
| 406120 [lists@ru y- ] Hmm...okay, that makes sense.  I'm reading through the Book of Ruby, but
+ 406122 [lists@ru y- ] I figured out how to handle what I'm trying to accomplish by making an
+ 406123 [danielfergus] Would you be happy accessing players by an array index?=20
| 406124 [sto.mar@we .] The assignment to `e' doesn't have any effect.
+ 406133 [lists@ru y- ] how about this?
  406135 [shortcutter@] players = Integer(gets).times.map do |i|

RUBY Example for Converting Locally Stored Files to Other File Formats
406132 [lists@ru y- ] Saaspose development team is pleased to announce documents conversion to

Unexpected hash's behavior
406136 [lists@ru y- ] I'm newbie.
+ 406137 [lists@ru y- ] It sounds like you're not incrementing whatever number you're using
+ 406139 [lists@ru y- ] Thank you for the quick response.

Confusion with Array#map
406141 [lists@ru y- ] output?
+ 406142 [lists@ru y- ] map iterates through the given array and collects the results with the a
| 406143 [lists@ru y- ] How `proc` object is getting called by `call` to produce the output? Who
| 406144 [tamouse.list] The operator "&" is the block operator, which is turning the symbol
| 406149 [shortcutter@] The crucial bit here is that Symbol#to_proc exists.  Actually anything
+ 406147 [lists@ru y- ] The below code giving empty array.
  406148 [wishdev@gm i] [start, size]

Choice of methods/implementation (was: Writing a game, trying to make dynamic loops)
406146 [tamouse.list] Could you say why, Robert? Obviously there's more than one way to do
406150 [shortcutter@] I just notice, there is a typo in the name prompt.  Should have been
+ 406151 [hmaddocks@me] ...
| 406154 [tamouse.list] I do probably overuse #reduce, as I find those things elegant. But I
| 406162 [shortcutter@] A while ago I went through that phase as well... :-)
+ 406153 [tamouse.list] That is interesting -- I will probably try that more often.

Need help on Kernel#eval
406155 [lists@ru y- ] From the link -> http://www.ruby-doc.org/core-2.0/Binding.html
+ 406156 [me@da id wd ] ...
| 406158 [lists@ru y- ] I have tried the below to understand the relationship between `eval` and
| 406168 [tamouse.list] Take the time to read through the excellent "Metaprogramming Ruby" by
+ 406176 [joelvanderwe] Here's an example of getting the iterator block from the binding, but
  406183 [joelvanderwe] Oops. That was my mistake. The last line should be

Add Text Replacements in PDF Files Using Java, .NET, Ruby & PHP
406157 [lists@ru y- ] Saaspose.PDF makes it easy for the developers to replace text on a
406161 [me@da id wd ] ...

Ruby in HTA?
406165 [lists@ru y- ] I've just discovered the existence of HTA (HTML Applications), and
+ 406166 [tamouse.list] Sorry, I was all "Huh? I write these every day..." until I looked it
+ 406180 [echristopher] I hadn't heard of this either. I'm guessing you'd have to use some
+ 406196 [lists@ru y- ] Thanks for the link, I'll have a look and see if I can find something
+ 406374 [sean.ohalpin] You could try ActiveScriptRuby from
+ 406380 [lists@ru y- ] Thanks, that looks useful :)

[ANN] pg 0.15.0 Released
406174 [ged@Fa ri MU] pg version 0.15.0 has been released!

[ANN] marked-rails version Released
406175 [beholdthepan] Marked <https://github.com/chjj/marked> is an awesome, fast Markdown parser

pry with spork does not block
406177 [lists@ru y- ] I'm trying to use Pry with spork and it doesn't work for me. The issue
+ 408934 [lists@ru y- ] Constantin, did you ever find a solution to this issue? I'm experiencing
+ 408940 [lists@ru y- ] Yes I was able to make some progress, but I not fully resolved the

Strange unicode regex behavior with Ruby 2.0
406178 [lists@ru y- ] the following code behaves strangely in ruby 2.0, and different from
+ 406181 [carlos.agari] Hey Andreas,
+ 406190 [fluido@fl id] $ ruby -v
+ 406222 [lists@ru y- ] Thanks! Guess I will use a workaround for now and wait for 2.1.

Why does ARGF#binmode removed/suppressed the fitst element from ARGV?
406179 [lists@ru y- ] I have been introduced to the class `ARGF` today. I was trying each of

build failure of ruby-2.0.0-p0.tar.gz under Mac OS X 10.8.3
406182 [lists@ru y- ] I'm getting an abort trap (stack consistency error) compiling

Nokogiri help parsing HTML
406184 [lists@ru y- ] I'm relatively new to Ruby (and therefore Nokogiri) and am trying to
+ 406185 [jgabrielygal] OK, so you want every tag that is a sibling of address and pre and is
| 406191 [shortcutter@] ]")
+ 406212 [lists@ru y- ] Thanks to all for the help.  The following seems to do most of what I
+ 406213 [lists@ru y- ] Isn't that as simple as "p n.text"?
+ 406214 [lists@ru y- ] I should probably include the whole revised program for context.  The
+ 406216 [lists@ru y- ] How about this?
+ 406218 [lists@ru y- ] Just out of curiosity I had a go at writing this myself, with the
+ 406219 [lists@ru y- ] require "nokogiri"
+ 406233 [lists@ru y- ] You still have @my_text and @date_string there, which leads me to
| 406241 [lists@ru y- ] #!/usr/bin/env ruby
+ 406290 [lists@ru y- ] Since you're using Nokogiri anyway, you'd be better off using that for
| 406305 [lists@ru y- ] I completely missed that in your earlier post!  It definitely makes
+ 406320 [lists@ru y- ] That makes quite a difference!  Here's what I have after ripping out the
+ 406325 [lists@ru y- ] Looks good, Ruby's pretty amazing when it comes to finding simple ways
+ 406327 [lists@ru y- ] It really helped to run the code in IRB to see what Nokogiri was doing.
+ 406344 [lists@ru y- ] I do have a follow-up question, if you don't mind.  I can see how the
+ 406345 [lists@ru y- ] I'm not sure what you mean by stripping the tags. Firstly, the xpath is

406186 [colewashere@] unsubscribe
406187 [lists@ru y- ] Why do people keep telling me to unsubscribe?  I'm not _that_ toxic to
406188 [cliff.rosson] lolol

Need help on ARGF#skip
406192 [lists@ru y- ] from the doc: http://www.ruby-doc.org/core-2.0/ARGF.html#method-i-skip
+ 406194 [tamouse.list] honestly, ARGF is just one of those things I don't get.
+ 406199 [shortcutter@] I suggest you report a bug.
  + 406200 [lists@ru y- ] I don't know how to do that?
  + 406201 [lists@ru y- ] Thanks for your feedback and support. I have raised the bug ticket.

Why don't TrueClass and FalseClass share a common Boolean ancestor
406203 [lists@ru y- ] Both TrueClass and FalseClass inherit directly from the Object class.
+ 406208 [fxn@ha hr f.] This can only be properly answered by a language designer, so here goes an
+ 406209 [matz@ru y. r] There's nothing true and false commonly share, thus no Boolean class.
+ 406210 [adam@ap es o] I'd be curious to know what exactly you're testing, and why you need
+ 406215 [lists@ru y- ] Thank you for the responses.

Confusion with ARGF#readpartial
406205 [lists@ru y- ] readpartial is designed for streams such as pipes, sockets, and ttys. It
406287 [akr@fs j. rg] It seems the document is just copied from IO#readpartial and doesn't

Arbitrary end of a string by using Nullbyte's symbol (Ruby 1.9.3p194)
406217 [lists@ru y- ] A couple of days ago I was doing a dummy app using RoR 3.2.12 and ruby
406220 [shortcutter@] Maybe because there are no null bytes in your example?
406221 [lists@ru y- ] thanks about the note.. try it with "\0"
406236 [shortcutter@] p194 is not the newest one.  Maybe that version has a bug?

Installing Watir
406223 [matt@te hn r] I just spent a couple of hours installing Watir and thought I would pass
406299 [lists@ru y- ] You can use RubyShell, a packaged Ruby installer with commonly used Gems

[ANN] rdoc 4.0.1 Released
406224 [drbrain@se m] * home: https://github.com/rdoc/rdoc

undefined local variable or method 'math'
406225 [lists@ru y- ] I am learning Ruby.
+ 406226 [amalrik.maia] 1.9.3p362 :007 > Math.sqrt(9)
+ 406246 [rubytalk2dav] To clarify Amalrik's answer: the names of modules and classes and such
| 406248 [shortcutter@] <nitpick>
| 406249 [rubytalk2dav] Well, yeah, but I was trying to present the common/general case, so as
+ 406277 [w3gat@nw ag ] Just include

99 Bottle of Beer program
406227 [lists@ru y- ] See attached for the source code.  This program works fine, just except
406228 [rob@ag le on] On Mar 28, 2013, at 12:12 AM, Vincent Stowbunenko <lists@ruby-forum.com> wro=

Convert Presentations to Many File Formats Like Images, Worksheets & PDF
406229 [lists@ru y- ] Saaspose.Slides is a leading REST API that allows developers to create,

Work with/Edit with MP4 files from Sony DSC-H200 in Avid MC natively
406230 [lists@ru y- ] Work with/Edit with MP4 files from Sony DSC-H200 in Avid MC natively

Re: Not able to open multiple windows in a form
406239 [lists@ru y- ] The infromation you provided is not enough.Provide more infromation -
406240 [lists@ru y- ] mozilla firefox-12.0

Euruko 2013 CfP
406243 [eldestdamphy] Euruko 2013 is taking place in Athens, Greece!
406341 [shortcutter@] Is there a specific reason why neither your post nor the title page of the
406462 [shortcutter@] Ooops, my fault: it's on http://euruko2013.org/ but I only followed the

Monkeypatch imap class: Escape quotes and braces in envelope Subject
406244 [henne.gwath@] I have a broken IMAP-Server which violates the imap protocol. I want to

dnsruby and OPT records
406247 [lists@ru y- ] I'm new to ruby and I'm trying to update a domain with OPT record using

This program not working?
406250 [lists@ru y- ] ...rb:42: syntax error, unexpected '.', expecting '|'
406265 [echristopher] You can't use a method call within the vertical bars (pipes); it has

Windows ruby.exe association with .rb
406251 [lists@ru y- ] Installing ruby 2.0.0 on winfdows, I got mismatch
+ 406253 [Carey.Nation] It's because .rb is associated with that binary.  It's in the registry.  Run explorer, right click on a .rb file, and choose open with.  At the bottom of the context menu will be "choose default program..."  use that to point it at 2.x
| 406256 [lists@ru y- ] .rb=RubyFile
+ 406288 [lists@ru y- ] As Carey said you simply change the file association in windows.  If

Ruby 2.0 bytecode export / import
406252 [lists@ru y- ] I'm looking for a solution to be able to deploy a Ruby script of mine on
406281 [julian@co et] Why don't you use jRuby and set the warbler to compile?
406289 [lists@ru y- ] Thanks for the tip. Unfortunately I can't seem to find a good
406306 [julian@co et] Especially the parts about compiled :P
406317 [lists@ru y- ] "This uses jrubyc to precompile all .rb files in your application to

Find usb properties/details using ruby-dbus and udisk
406254 [lists@ru y- ] I am doing project in which i need to detect all available usb drives
+ 406271 [sto.mar@we .] It means that `rb_udisk_iface' is nil and you are trying to call
| 406293 [lists@ru y- ] Ok.Following code works with "EnumerateDevices"
+ 406298 [lists@ru y- ] Ok. I am very much close to it.

Confusion with setter method
406255 [lists@ru y- ] DL is deprecated, please use Fiddle
+ 406257 [lists@ru y- ] Because [1,2] is one argument, and (1,2) is two arguments.
| 406282 [julian@co et] That's not the reason.
| 406285 [me@da id wd ] I'd suggest you explain that, because that IS the reason, based on the
+ 406283 [julian@co et] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  406286 [lists@ru y- ] Nice explanation,I understood. :)

Translation Project
406258 [lists@ru y- ] ago and have a personal project I would like to do, so I was wondering
+ 406260 [lists@ru y- ] $h={
+ 406262 [lists@ru y- ] Thank you very much for your quick reply, however, I'm confused. This
| 406263 [lists@ru y- ] print "Word ? "
| 406266 [lists@ru y- ] $h={
+ 406268 [lists@ru y- ] What are you running this in? Because I can't get it to run with it
| 406273 [lists@ru y- ] ==========================================================
+ 406278 [justincollin] Welcome to Ruby!
+ 406284 [julian@co et] On 29/03/2013, at 7:00 AM, Jeremy Henderson <lists@ruby-forum.com> =
+ 406308 [lists@ru y- ] Thank you very much Regis, Justin, and Julian! I am grateful that you
| + 406318 [julian@co et] On 30/03/2013, at 2:48 AM, Jeremy Henderson <lists@ruby-forum.com> =
+ 406323 [lists@ru y- ] Yes, I love how compressed it is. Like Regis' though, it can't handle
| + 406352 [julian@co et] On 30/03/2013, at 3:42 AM, Jeremy Henderson <lists@ruby-forum.com> =
| + 406353 [julian@co et] On 30/03/2013, at 3:42 AM, Jeremy Henderson <lists@ruby-forum.com> =
|   406356 [sto.mar@we .] I don't have the previous messages around anymore, so I'm not sure
|   + 406358 [julian@co et] handle
|   | 406359 [julian@co et] class String
|   + 406361 [julian@co et] handle
|     406362 [lists@ru y- ] class String
|     406363 [lists@ru y- ] ============================================================
+ 406364 [lists@ru y- ] break if (str=gets.chomp).empty?

Chris Pine Leap Year
406259 [lists@ru y- ] This one is stumping me because of all the variables needed. Only thing
+ 406264 [wishdev@gm i] The rest doesn't work at all because if you put something like 2096-2104
| 406274 [sto.mar@we .] (1..12).each {|year| puts year + year % 4 }
| 406275 [wishdev@gm i] Absolutely correct - stupid line by me
+ 406270 [lists@ru y- ] I'm a bit depressed that worked so easily :(