# Ruby

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

[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:** 874

---

## [\[Bug #1198\] corrupted iteratoin during "enum\_for :inject"](https://www.ruby-forum.com/t/bug-1198-corrupted-iteratoin-during-enum-for-inject/161200)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 6\
**Last updated:** [March 17, 2009, 9:52am UTC](https://www.ruby-forum.com/t/bug-1198-corrupted-iteratoin-during-enum-for-inject/161200 "2009-03-17T09:52:58Z")

</div>

Bug #1198: corrupted iteratoin during “enum\_for :inject” http://redmine.ruby-lang.org/issues/show/1198 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: ruby 1.9.2d…

---

## [Help to install ROR with MS-SQL](https://www.ruby-forum.com/t/help-to-install-ror-with-ms-sql/196916)

<div class="topic-metadata">

**Author:** [@sankarkumar](https://www.ruby-forum.com/u/sankarkumar)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 8:23am UTC](https://www.ruby-forum.com/t/help-to-install-ror-with-ms-sql/196916 "2009-03-17T08:23:03Z")

</div>

Hi, I have already installed ROR with sqlite & mysql . & now i need to have ROR with MSSQL. Here is my existing ROR details , actionmailer (2.2.2) actionpack (2.2.2) activerecord (2.2.2) activeresource (2.2.2) ac…

---

## [Youtube...urgent, please help](https://www.ruby-forum.com/t/youtube-urgent-please-help/163072)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [March 17, 2009, 7:56am UTC](https://www.ruby-forum.com/t/youtube-urgent-please-help/163072 "2009-03-17T07:56:44Z")

</div>

Hi, I’m new to ruby and my co. has given me an assignment in ruby. It is regarding html extraction. It works fine except for some sites like http://www.youtube.com, http://www.gmail.com where i’ll get errors like ‘40…

---

## [Numeric boolean check](https://www.ruby-forum.com/t/numeric-boolean-check/163073)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 6:01am UTC](https://www.ruby-forum.com/t/numeric-boolean-check/163073 "2009-03-17T06:01:15Z")

</div>

Is there a way to check for numeric in Ruby similar to the way you can in Lisp? (number? 5) =\> #t (number? -0.453) =\> #t (number? 'a) =\> #f returns true for any numeric value and false for everything else. …

---

## [Regex returning less number of groups - where is the error?](https://www.ruby-forum.com/t/regex-returning-less-number-of-groups-where-is-the-error/162950)

<div class="topic-metadata">

**Author:** [@knakahara](https://www.ruby-forum.com/u/knakahara)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 5:56am UTC](https://www.ruby-forum.com/t/regex-returning-less-number-of-groups-where-is-the-error/162950 "2009-03-17T05:56:05Z")

</div>

Hello! I’m trying to build a regex to count the number of modified files by commit. For example, for the following svn log output: r727998 | bentmann | 2008-12-19 21:50:48 +1100 (Fri, 19 Dec 2008) | 4 lines Changed…

---

## [File.open().read.length result incorrect on Windows Server](https://www.ruby-forum.com/t/file-open-read-length-result-incorrect-on-windows-server/163065)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 3\
**Last updated:** [March 17, 2009, 4:52am UTC](https://www.ruby-forum.com/t/file-open-read-length-result-incorrect-on-windows-server/163065 "2009-03-17T04:52:18Z")

</div>

Hi, I need to open and read a 7.6M file on an EC2 Windows Server 2003 machine, and when I try using: File.open(‘bigfile.flv’).read.length the result I get is 22731 (wrong) with the last characters of the file data b…

---

## [JRuby 1.2.0 Released](https://www.ruby-forum.com/t/jruby-1-2-0-released/163041)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 4:12am UTC](https://www.ruby-forum.com/t/jruby-1-2-0-released/163041 "2009-03-17T04:12:58Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.2.0! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.2.0 has fixed many many compatibility issues and continued to i…

---

## [Flay 1.2.1 Released](https://www.ruby-forum.com/t/flay-1-2-1-released/163063)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 3:18am UTC](https://www.ruby-forum.com/t/flay-1-2-1-released/163063 "2009-03-17T03:18:31Z")

</div>

flay version 1.2.1 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flay analyzes code for structural similarities. Differences in literal values, variable, class, method names, whitesp…

---

## [Hoe 1.11.0 Released](https://www.ruby-forum.com/t/hoe-1-11-0-released/163062)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 3:17am UTC](https://www.ruby-forum.com/t/hoe-1-11-0-released/163062 "2009-03-17T03:17:56Z")

</div>

hoe version 1.11.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

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

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 3:02am UTC](https://www.ruby-forum.com/t/flog-2-1-0-released/163061 "2009-03-17T03:02:08Z")

</div>

flog version 2.1.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…

---

## [Windows Media Player - Controlling Playback Speed](https://www.ruby-forum.com/t/windows-media-player-controlling-playback-speed/163060)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 1:31am UTC](https://www.ruby-forum.com/t/windows-media-player-controlling-playback-speed/163060 "2009-03-17T01:31:56Z")

</div>

I’m using WIN32OLE to control Windows Media Player. I want to be able to change the playback rate. My code is: require ‘win32ole’ song = “some\_song.wma” player = WIN32OLE.new(‘WMPlayer.OCX’) player.OpenPlayer(song…

---

## [Review : Zlib::Deflate fix](https://www.ruby-forum.com/t/review-zlib-deflate-fix/163058)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 1:18am UTC](https://www.ruby-forum.com/t/review-zlib-deflate-fix/163058 "2009-03-17T01:18:39Z")

</div>

---

## [Ceding commandline control to child process](https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047)

<div class="topic-metadata">

**Author:** [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 12:21am UTC](https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047 "2009-03-17T00:21:53Z")

</div>

Say I want to launch a child process and allow the user to interact with it until it returns. Is there an easy way to do this? It seems to work just using the back ticks except that the child process’ output is nev…

---

## [Socket hangs when I read after writing!](https://www.ruby-forum.com/t/socket-hangs-when-i-read-after-writing/162956)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 4\
**Last updated:** [March 16, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/socket-hangs-when-i-read-after-writing/162956 "2009-03-16T23:15:38Z")

</div>

I have the following Ruby program: sock = TCPSocket.new(‘host.com’, 12345) sock.write(‘This is a test’) data = sock.read(1024) puts data ...The service this connection connects to just reads the string and write a …

---

## [Jruby-openssl 0.4 released!](https://www.ruby-forum.com/t/jruby-openssl-0-4-released/163044)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [March 16, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/jruby-openssl-0-4-released/163044 "2009-03-16T23:08:36Z")

</div>

I just pushed jruby-openssl 0.4 to RubyForge. Description: JRuby-OpenSSL implements the “openssl” library for JRuby. It does not require OpenSSL to exist on your system, and it only works with JRuby. This version fix…

---

## [\[ANN\] jruby-openssl 0.4 released!](https://www.ruby-forum.com/t/ann-jruby-openssl-0-4-released/163043)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [March 16, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/ann-jruby-openssl-0-4-released/163043 "2009-03-16T23:08:01Z")

</div>

I just pushed jruby-openssl 0.4 to RubyForge. Description: JRuby-OpenSSL implements the “openssl” library for JRuby. It does not require OpenSSL to exist on your system, and it only works with JRuby. This version fix…

---

## [Vlad 1.3.2 Released (rawr!)](https://www.ruby-forum.com/t/vlad-1-3-2-released-rawr/163039)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [March 16, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/vlad-1-3-2-released-rawr/163039 "2009-03-16T23:03:53Z")

</div>

vlad version 1.3.2 has been released! http://rubyhitsquad.com/ http://rubyforge.org/projects/hitsquad/ Vlad the Deployer is pragmatic application deployment automation, without mercy. Much like Capistrano, but with 1…

---

## [Recommendations for (IronRuby) gem packaging?](https://www.ruby-forum.com/t/recommendations-for-ironruby-gem-packaging/161651)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 5\
**Last updated:** [March 16, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/recommendations-for-ironruby-gem-packaging/161651 "2009-03-16T22:26:59Z")

</div>

Hi, I’m thinking about packaging some gems from github. So I’m wondering if it already possible to package a gem so that: 1 - it is marked as compatible only with IronRuby ? 2 - it is marked as compatible also with I…

---

## [Code Review: irtestfix](https://www.ruby-forum.com/t/code-review-irtestfix/163027)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [March 16, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/code-review-irtestfix/163027 "2009-03-16T21:50:31Z")

</div>

tfpt review “/shelveset:irtestfix;REDMOND\\jdeville” Comment : Removes RunRspec Path correction in Dev.bat to point to ruby-1.9.1p0 instead of 1.9.0-0 Fixes irtests.bat to work with new mspec setup Fixes bug/suggesti…

---

## [\`&' interpreted as argument prefix](https://www.ruby-forum.com/t/interpreted-as-argument-prefix/162954)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 9\
**Last updated:** [March 16, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/interpreted-as-argument-prefix/162954 "2009-03-16T21:20:31Z")

</div>

Hi, I’m new to rubi and at present i’m trying to write a sample code for html extraction and store it in the database. The following is the code for that : doc = Hpricot(open(“http://www.google.com/”)) (doc/“a”).eac…

---

## [Ruby 1.8.8dev stable snapshot?](https://www.ruby-forum.com/t/ruby-1-8-8dev-stable-snapshot/162624)

<div class="topic-metadata">

**Author:** [@benr75](https://www.ruby-forum.com/u/benr75)\
**Replies:** 4\
**Last updated:** [March 16, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/ruby-1-8-8dev-stable-snapshot/162624 "2009-03-16T21:16:52Z")

</div>

Hello ~ Went to do a routine ruby install from source, grabbed a stable snapshot, and instead of getting an expected 1.8.7 I got: $ ruby -v ruby 1.8.8dev (2009-03-11) Should this really be the STABLE snapshot? It th…

---

## [How to get just hour and minute?](https://www.ruby-forum.com/t/how-to-get-just-hour-and-minute/163026)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 16, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/how-to-get-just-hour-and-minute/163026 "2009-03-16T20:46:19Z")

</div>

I have a Ruby project with a User object that consists of various fields (attributes). Two of these are preferredStart and preferredEnd and were configured with the “… script/generate scaffold …” command to have type …

---

## [RDoc 1.9 hangs](https://www.ruby-forum.com/t/rdoc-1-9-hangs/162824)

<div class="topic-metadata">

**Author:** [@rick\_2047](https://www.ruby-forum.com/u/rick_2047)\
**Replies:** 1\
**Last updated:** [March 16, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/rdoc-1-9-hangs/162824 "2009-03-16T19:54:01Z")

</div>

I am trying to generate html docs for 1.9 with the rdoc supplied with it. But it just seems to hang when it shows generating html. I waited for like 15 or 20 mins. Will it take more time or is just hanging in a loop o…

---

## [RDoc (Darkfish) not ordering method by name](https://www.ruby-forum.com/t/rdoc-darkfish-not-ordering-method-by-name/162437)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 5\
**Last updated:** [March 16, 2009, 7:51pm UTC](https://www.ruby-forum.com/t/rdoc-darkfish-not-ordering-method-by-name/162437 "2009-03-16T19:51:04Z")

</div>

Hi, when I run “rdoc” Darkfish creates an HTML in which my class methods appear in alphabetic order. Is it possible RDoc not to order the methods by name? I would really prefer it to respect the order in which they a…

---

## [Handling many files inside dir](https://www.ruby-forum.com/t/handling-many-files-inside-dir/163006)

<div class="topic-metadata">

**Author:** [@bary](https://www.ruby-forum.com/u/bary)\
**Replies:** 2\
**Last updated:** [March 16, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/handling-many-files-inside-dir/163006 "2009-03-16T19:31:03Z")

</div>

Hello, im trying to process a directory that contains many text files. I want to read each file, store the text inside file and then move to the next file. I used the following code but at the end i get an error about …

---

## [New improved GlassFish gem 0.9.3](https://www.ruby-forum.com/t/new-improved-glassfish-gem-0-9-3/163021)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 0\
**Last updated:** [March 16, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/new-improved-glassfish-gem-0-9-3/163021 "2009-03-16T19:06:55Z")

</div>

GlassFish gem ver 0.9.3 http://glassfishgem.rubyforge.org/ is out! It has many new features, improvements and bug fixes. Below are highlights. For details, see this announcementhttp://weblogs.java.net/blog/vivekp/arc…

---

## [SSLServer crashes when non-essl telnet connection is made](https://www.ruby-forum.com/t/sslserver-crashes-when-non-essl-telnet-connection-is-made/162897)

<div class="topic-metadata">

**Author:** [@ecrowell](https://www.ruby-forum.com/u/ecrowell)\
**Replies:** 8\
**Last updated:** [March 16, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/sslserver-crashes-when-non-essl-telnet-connection-is-made/162897 "2009-03-16T19:05:44Z")

</div>

I have been working with the SSLServer class in Ruby and have run across a problem that I cannot get my head around: My basic server application accepts and handles SSL connections as it should (or as I think it shoul…

---

## [Gosu "Name error" problem](https://www.ruby-forum.com/t/gosu-name-error-problem/162710)

<div class="topic-metadata">

**Author:** [@kanesoban](https://www.ruby-forum.com/u/kanesoban)\
**Replies:** 3\
**Last updated:** [March 16, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/gosu-name-error-problem/162710 "2009-03-16T17:36:27Z")

</div>

Hello I’m trying to write a program, that hopefully will turn into a simple strategy game sometime. For now, i’ve got to the point, where a new game window shows up. Now i wrote a method that should draw a rectangle …

---

## [JRuby 1.2.0RC2 Released](https://www.ruby-forum.com/t/jruby-1-2-0rc2-released/162223)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 6\
**Last updated:** [March 16, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/jruby-1-2-0rc2-released/162223 "2009-03-16T17:05:58Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.2.0RC2 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.2.0RC2 has fixed many many compatibility issues and continued …

---

## [Regex performace tuning and ABI compatibility](https://www.ruby-forum.com/t/regex-performace-tuning-and-abi-compatibility/161873)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 12\
**Last updated:** [March 16, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/regex-performace-tuning-and-abi-compatibility/161873 "2009-03-16T17:01:52Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B \[ruby-talk:329388\]e$B$Ge(B1.9e$B$Oe(B -KU e$B$r;XDj$9$k$He(B -KN e$B$h$je(B6.5e$BG\\CY$$e(B e$B$H$$$&;XE&$,$"$j$^$7$?!#D4$Y$F$\_$k$H!"e(Bmbclene$B$N7W;;$Ge(B precise\_mbclene$B$r7W;;$7$…

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

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