# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=984

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 985

---

## [Code Review: RandomRubyFixes05](https://www.ruby-forum.com/t/code-review-randomrubyfixes05/151704)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/code-review-randomrubyfixes05/151704 "2008-10-24T19:26:45Z")

</div>

tfpt review “/shelveset:RandomRubyFixes05;REDMOND\\curth” Comment : Factored class IOWrapper.cs out of Marshal and into the Ruby core so it can be accessed from multiple places Factored object creation out of Marshal…

---

## [Bound macro in ruby](https://www.ruby-forum.com/t/bound-macro-in-ruby/151683)

<div class="topic-metadata">

**Author:** [@melmoth](https://www.ruby-forum.com/u/melmoth)\
**Replies:** 8\
**Last updated:** [October 24, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/bound-macro-in-ruby/151683 "2008-10-24T18:05:34Z")

</div>

Hi all, I think it’s a simple question but I couldn’t find in docs. Is there a macro already defined in ruby for returning the “bound” of a value: ex: BOUND(1, 5, 10) =\> 5 BOUND(10, 5, 100) =\> 5 BOUND(1, 50, 10) =\>…

---

## [\[ANN\] rspec 1.1.9 Released](https://www.ruby-forum.com/t/ann-rspec-1-1-9-released/151413)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/ann-rspec-1-1-9-released/151413 "2008-10-24T17:43:49Z")

</div>

rspec version 1.1.9 has been released! http://rspec.info/ Behaviour Driven Development for Ruby. Changes: Version 1.1.9 / 2008-10-20 WARNING: This release removes implicit inclusion of modules in example groups. …

---

## [Errors while file uploading thr 'net/http' or 'rest-open-uri' client](https://www.ruby-forum.com/t/errors-while-file-uploading-thr-net-http-or-rest-open-uri-client/151677)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/errors-while-file-uploading-thr-net-http-or-rest-open-uri-client/151677 "2008-10-24T17:23:16Z")

</div>

I am trying to upload a file to API thr the ‘net/http’ or ‘rest-open-uri’ client, the code I have done is require ‘rest-open-uri’ require ‘uri’ require ‘cgi’ require ‘net/http’ require ‘net/https’ require ‘mime/…

---

## [\[Bug #631\] ripper does not follow change of parse.y](https://www.ruby-forum.com/t/bug-631-ripper-does-not-follow-change-of-parse-y/150600)

<div class="topic-metadata">

**Author:** [@Koichi\_Kimura](https://www.ruby-forum.com/u/Koichi_Kimura)\
**Replies:** 1\
**Last updated:** [October 24, 2008, 11:17am UTC](https://www.ruby-forum.com/t/bug-631-ripper-does-not-follow-change-of-parse-y/150600 "2008-10-24T11:17:32Z")

</div>

Bug #631: ripper does not follow change of parse.y http://redmine.ruby-lang.org/issues/show/631 e$B5/I\<\<Te(B: Koichi Kimura e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext, Target version: 1.9.x → …

---

## [Problem with using active support core extensions in my own ruby programs](https://www.ruby-forum.com/t/problem-with-using-active-support-core-extensions-in-my-own-ruby-programs/151676)

<div class="topic-metadata">

**Author:** [@jgeggatt](https://www.ruby-forum.com/u/jgeggatt)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 10:55am UTC](https://www.ruby-forum.com/t/problem-with-using-active-support-core-extensions-in-my-own-ruby-programs/151676 "2008-10-24T10:55:51Z")

</div>

This code used to perform correctly with activesupport 2.0.2: #!/usr/bin/ruby require ‘rubygems’ require ‘time’ require ‘active\_support’ class Time include ActiveSupport::CoreExtensions::Time::Calculations end nx…

---

## [RCov for Jruby is complete](https://www.ruby-forum.com/t/rcov-for-jruby-is-complete/147337)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 5\
**Last updated:** [October 24, 2008, 10:45am UTC](https://www.ruby-forum.com/t/rcov-for-jruby-is-complete/147337 "2008-10-24T10:45:15Z")

</div>

As of JRuby 1.1.4, the Java extension for RCov is complete, and all the tests pass, and it works faster than before (thanks to Charles, Thomas, and all the JRuby core team). We have fixed the last couple of bugs, and …

---

## [Iterating through a database result](https://www.ruby-forum.com/t/iterating-through-a-database-result/151635)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 3\
**Last updated:** [October 24, 2008, 10:20am UTC](https://www.ruby-forum.com/t/iterating-through-a-database-result/151635 "2008-10-24T10:20:43Z")

</div>

Hi all, I’ve stumbled again. I’m currently trying to iterate though a result output from PostgreSQL. Here’s the database; I’ve been able to query that I am getting all 5 records, however I don’t seem to be able to it…

---

## [Big endian convention in Ruby](https://www.ruby-forum.com/t/big-endian-convention-in-ruby/151048)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 17\
**Last updated:** [October 24, 2008, 10:00am UTC](https://www.ruby-forum.com/t/big-endian-convention-in-ruby/151048 "2008-10-24T10:00:11Z")

</div>

Hello, I would like to convert an input (like a file, or a password) into binary format. After reading my Ruby in a nutshell book, I belive I can use this method: unpack(‘C\*’) So according the documentation, this i…

---

## [Memory concerns wrt garbage collection etc](https://www.ruby-forum.com/t/memory-concerns-wrt-garbage-collection-etc/138882)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 9:37am UTC](https://www.ruby-forum.com/t/memory-concerns-wrt-garbage-collection-etc/138882 "2008-10-24T09:37:19Z")

</div>

Hello, I have a script which basically launches several threads, each of them parsing a web page from a different link using Hpricot. I am not sure how many threads get spawned, could be in the hundreds. The question …

---

## [\[Bug #667\] yaml $B$,(B Complex$B!"(BRational $B$r$&$^$/$"$D$+$($F$$$J$$(B](https://www.ruby-forum.com/t/bug-667-yaml-b-b-complex-b-brational-b-r-d-f-j-b/151668)

<div class="topic-metadata">

**Author:** [@Hiroshi\_M](https://www.ruby-forum.com/u/Hiroshi_M)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 7:29am UTC](https://www.ruby-forum.com/t/bug-667-yaml-b-b-complex-b-brational-b-r-d-f-j-b/151668 "2008-10-24T07:29:38Z")

</div>

e$B%A%1%C%He(B #667 e$B$,99?7$5$l$^$7$?!#e(B (by Hiroshi M.) e$B%U%!%$%ke(B yaml-fix-suport-for-ratoinal-and-complex.diff e$BDI2Ce(B Quoted from URL:http://redmine.ruby-lang.org/issues/show/667: #=\> (0/1) e$B$3$N%Q%…

---

## [Is there a method\_eval or similar thing?](https://www.ruby-forum.com/t/is-there-a-method-eval-or-similar-thing/151519)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 12\
**Last updated:** [October 24, 2008, 6:56am UTC](https://www.ruby-forum.com/t/is-there-a-method-eval-or-similar-thing/151519 "2008-10-24T06:56:17Z")

</div>

I have a method called askyesno which takes a string and returns whether the user pressed y or n. However, I now want the user to be able to pass a block in with blocks for what to do for YES and NO. However, in this …

---

## [Looking for an archive of pre 2000 ruby-talk](https://www.ruby-forum.com/t/looking-for-an-archive-of-pre-2000-ruby-talk/151662)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 6:28am UTC](https://www.ruby-forum.com/t/looking-for-an-archive-of-pre-2000-ruby-talk/151662 "2008-10-24T06:28:14Z")

</div>

Mark-Logic goes back to 2002, and Google G. to mid 2000. blade seems to start in 2005. Is there an archive of the older list anywhere?

---

## [Make test-all TESTS=io / test\_flush](https://www.ruby-forum.com/t/make-test-all-tests-io-test-flush/151661)

<div class="topic-metadata">

**Author:** [@TAKANO\_Mitsuhiro](https://www.ruby-forum.com/u/TAKANO_Mitsuhiro)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 4:36am UTC](https://www.ruby-forum.com/t/make-test-all-tests-io-test-flush/151661 "2008-10-24T04:36:37Z")

</div>

e$B9bLn$G$9!#e(B TESTS=io e$B$r7+$jJV$7$F$$$k$HFsEY$K0lEY$/$i$$2\<5-$N$h$&$J%(%i!\<$,$G$^$7$?!#e(B e$B$4Js9p$^$G!#e(B $ ./ruby -v ruby 1.9.0 (2008-10-24 revision 19797) \[x86\_64-linux\] $ make test-all TESTS=‘io’ ./mi…

---

## [Test\_process.rb](https://www.ruby-forum.com/t/test-process-rb/150393)

<div class="topic-metadata">

**Author:** [@TAKANO\_Mitsuhiro](https://www.ruby-forum.com/u/TAKANO_Mitsuhiro)\
**Replies:** 12\
**Last updated:** [October 24, 2008, 4:00am UTC](https://www.ruby-forum.com/t/test-process-rb/150393 "2008-10-24T04:00:58Z")

</div>

é«˜é‡Žã§ã™ã€‚ ãƒ†ã‚¹ãƒˆã®æ„å›³ãŒã‚ã‹ã‚‰ãªã‹ã£ãŸã®ã§ã™ãŒã€ã“ã‚Œã¯ãƒã‚°ã‹ã—ã‚‰ã€‚ Index: test/ruby/test\_process.rb — test/ruby/test\_process.rb (revision 19709) +++ test/ruby/test\_process.rb (working…

---

## [Offline dev-meeting](https://www.ruby-forum.com/t/offline-dev-meeting/150594)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 2:17am UTC](https://www.ruby-forum.com/t/offline-dev-meeting/150594 "2008-10-24T02:17:26Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(B10/16 10:00 e$B$N8aA0$KEl5~$O=)MU86$G!$$^$D$b$H$5$s$r8r$($F%\*%U%i%$%se(B e$B3+H/%\_!\<%F%#%s%0$r3+:E$9$k$3$H$K$J$j$^$7$?!%5DBj$Oe(B 1.9.1 spec freeze e$B$G$9!%e(B http://redmine.ruby-lang…

---

## [IronRuby Compiles Broken?](https://www.ruby-forum.com/t/ironruby-compiles-broken/151640)

<div class="topic-metadata">

**Author:** [@tmilker](https://www.ruby-forum.com/u/tmilker)\
**Replies:** 3\
**Last updated:** [October 23, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/ironruby-compiles-broken/151640 "2008-10-23T23:34:13Z")

</div>

Is the IronRuby tree currently broken for compiles? I have tried everything I can think of to get it to build and I just get: Setting environment for using Microsoft Visual Studio 2008 x86 tools. c:\\Users\\ted\\Desktop…

---

## [Gemtacular?](https://www.ruby-forum.com/t/gemtacular/151648)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/gemtacular/151648 "2008-10-23T22:16:49Z")

</div>

Hi, Anyone know what happened to gemtacular.com? Is it down for good? Thanks, Dan

---

## [Hartford.rb October meeting: 10/27](https://www.ruby-forum.com/t/hartford-rb-october-meeting-10-27/151643)

<div class="topic-metadata">

**Author:** [@Dan\_Bernier](https://www.ruby-forum.com/u/Dan_Bernier)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/hartford-rb-october-meeting-10-27/151643 "2008-10-23T22:00:10Z")

</div>

The Hartford Ruby Group is meeting this Monday, 10/27, at 6:00 PM. We’ll be tackling a Ruby Q. problem, pairing up newcomers with veterans. We’ll be raffling off a copy of Design Patterns in Ruby, by Russ Olsen GeeZ…

---

## [Abort in rescue](https://www.ruby-forum.com/t/abort-in-rescue/150789)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 4\
**Last updated:** [October 23, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/abort-in-rescue/150789 "2008-10-23T22:00:08Z")

</div>

e$B1sF#$G$9!#e(B 1.8 e$B$G$Oe(B rescue e$B$NCf$Ge(B abort e$B$9$k$H%9%?%C%/%H%l!\<%9$r=P$9$h$&$G$9$,!"e(B 1.9 e$B$G$O2?$bI=\<($5$l$J$/$J$C$F$$$^$9!#e(B $ ruby18 -e ‘begin; raise; rescue; abort; end’ -e:1: unhandled ex…

---

## [Trollop 1.10 released](https://www.ruby-forum.com/t/trollop-1-10-released/151488)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 11\
**Last updated:** [October 23, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/trollop-1-10-released/151488 "2008-10-23T21:57:22Z")

</div>

Trollop version 1.10 has been released! http://trollop.rubyforge.org DESCRIPTION Trollop is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. …

---

## [Flog 1.2.0 Released](https://www.ruby-forum.com/t/flog-1-2-0-released/151583)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [October 23, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/flog-1-2-0-released/151583 "2008-10-23T21:01:48Z")

</div>

flog version 1.2.0 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is i…

---

## [Performance under glassfish-any tuning suggestions?](https://www.ruby-forum.com/t/performance-under-glassfish-any-tuning-suggestions/151641)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/performance-under-glassfish-any-tuning-suggestions/151641 "2008-10-23T20:27:42Z")

</div>

Hi All- I’ve converted one of the applications from mri to jruby, and used warbler to deploy it under glassfish v2. Everything works, but performance under glassfish is just awful compared to mri/mongrel or jruby/m…

---

## [Main-2.8.3](https://www.ruby-forum.com/t/main-2-8-3/151576)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 2\
**Last updated:** [October 23, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/main-2-8-3/151576 "2008-10-23T17:52:06Z")

</div>

NAME main.rb SYNOPSIS a class factory and dsl for generating command line programs real quick URI http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.rubyforge.org…

---

## [Are you looking for excitement?](https://www.ruby-forum.com/t/are-you-looking-for-excitement/151630)

<div class="topic-metadata">

**Author:** [@jstotz](https://www.ruby-forum.com/u/jstotz)\
**Replies:** 1\
**Last updated:** [October 23, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/are-you-looking-for-excitement/151630 "2008-10-23T17:04:41Z")

</div>

Are you currently bored? Looking for excitement? Hate you boss, company, mundane way of earning the bread and butter? Anything you would change if you could? If the answer to any of the above questions is a yes, pl…

---

## [Ruby library for audio/video mixing?](https://www.ruby-forum.com/t/ruby-library-for-audio-video-mixing/151555)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [October 23, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/ruby-library-for-audio-video-mixing/151555 "2008-10-23T16:26:38Z")

</div>

Just a shot in the dark here, but i might help on a project where they have audio files that they need overdubbed onto existing video files (.mov or .avi, whatever). I found a lot of Ruby libs from doing mp3 tagging a…

---

## [Validating characters before libxml processing](https://www.ruby-forum.com/t/validating-characters-before-libxml-processing/151622)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/validating-characters-before-libxml-processing/151622 "2008-10-23T15:35:49Z")

</div>

I have a Ruby/Rails script which receives data passed into it as a param in xml format. This data is packaged up “remotely” and I don’t have any control over what it can contain other than that the contents of the el…

---

## [How can I disabled the text\_field element?](https://www.ruby-forum.com/t/how-can-i-disabled-the-text-field-element/151618)

<div class="topic-metadata">

**Author:** [@asafdasa](https://www.ruby-forum.com/u/asafdasa)\
**Replies:** 1\
**Last updated:** [October 23, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/how-can-i-disabled-the-text-field-element/151618 "2008-10-23T15:31:17Z")

</div>

Hi all, I saw in many places that I can disabled the text\_field easily, although I am still unable to do it. it will help me a lot … tnx Asaf

---

## [Processing postgres table](https://www.ruby-forum.com/t/processing-postgres-table/151537)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [October 23, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/processing-postgres-table/151537 "2008-10-23T14:06:29Z")

</div>

I’m using the ruby-postgres gem as ruby-pg isn’t installing & as there no longer seems to be any tutorials or how-tos I thought I’d ask here. Basically I’m trying to iterate through each row of data and assign the val…

---

## [I need to represent data as percentages](https://www.ruby-forum.com/t/i-need-to-represent-data-as-percentages/151569)

<div class="topic-metadata">

**Author:** [@silentd3at4](https://www.ruby-forum.com/u/silentd3at4)\
**Replies:** 3\
**Last updated:** [October 23, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/i-need-to-represent-data-as-percentages/151569 "2008-10-23T14:04:44Z")

</div>

basically i go through a document count up the total number of times the status codes appeared. eg 200 = 96 201 =8 300 = 12 etc etc. I have counted up the total number of codes in the whole file and now must divide …

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=983)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=985)
