# Ruby

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

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

---

## [Re: Anyone interested in implementing Etc module	for Mono?](https://www.ruby-forum.com/t/re-anyone-interested-in-implementing-etc-module-for-mono/186291)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 18\
**Last updated:** [April 5, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/re-anyone-interested-in-implementing-etc-module-for-mono/186291 "2010-04-05T17:33:42Z")

</div>

No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr\_ext in merlin/main/languages/ruby/samples. Inside that file is a to\_clr\_array method JD From: Ryan R. removed\_em…

---

## [New Ruby blog: RubyPlanet.net](https://www.ruby-forum.com/t/new-ruby-blog-rubyplanet-net/186281)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 4\
**Last updated:** [April 5, 2010, 2:51pm UTC](https://www.ruby-forum.com/t/new-ruby-blog-rubyplanet-net/186281 "2010-04-05T14:51:08Z")

</div>

I am the author of one Ruby book (for Apress) and I use Ruby a lot in my work. I decided to create a separate blog just for my new writing on Ruby. Hopefully you will enjoy it :slight\_smile:

---

## [Undefined method \`stringify\_keys!' for #\<Post:0xab67154\>](https://www.ruby-forum.com/t/undefined-method-stringify-keys-for-post-0xab67154/186339)

<div class="topic-metadata">

**Author:** [@Benedikt\_MSSS\_ller](https://www.ruby-forum.com/u/Benedikt_MSSS_ller)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 10:47am UTC](https://www.ruby-forum.com/t/undefined-method-stringify-keys-for-post-0xab67154/186339 "2010-04-05T10:47:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I’m learning rails by creating a blog. my models: http://paste.xssn.at/i and the create method of the posts controller(the rest is just scaffolded and unchanged): ht…

---

## [Fill a table in ruby](https://www.ruby-forum.com/t/fill-a-table-in-ruby/186225)

<div class="topic-metadata">

**Author:** [@brknl](https://www.ruby-forum.com/u/brknl)\
**Replies:** 3\
**Last updated:** [April 5, 2010, 9:08am UTC](https://www.ruby-forum.com/t/fill-a-table-in-ruby/186225 "2010-04-05T09:08:38Z")

</div>

Hi, I want to read the datas from a file and fill a table with them. All lines will be a new row for table. And the columns are for the variables of the class. I want to create an array as an object of a class for th…

---

## [Error occurred during initialization of VM, Could not reserve enough space for object heap](https://www.ruby-forum.com/t/error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for-object-heap/186268)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 3\
**Last updated:** [April 5, 2010, 7:40am UTC](https://www.ruby-forum.com/t/error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for-object-heap/186268 "2010-04-05T07:40:51Z")

</div>

$ jgem install rack-mount -v=0.6 Error occurred during initialization of VM Could not reserve enough space for object heap While trying to intall Rails dependent gems… Looks like something has taken up huge memory. …

---

## [Different errors regarding unit tests](https://www.ruby-forum.com/t/different-errors-regarding-unit-tests/186027)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 3\
**Last updated:** [April 5, 2010, 7:39am UTC](https://www.ruby-forum.com/t/different-errors-regarding-unit-tests/186027 "2010-04-05T07:39:06Z")

</div>

I’m currently using jruby 1.4 and rails 2.3.5. After migrating to a windows system and rails 2.3.5 rake fails (in C:/Users/roger/Documents/NetBeansProjects/trunk) “C:/Program Files/jruby-1.4.0/bin/jruby.exe” -I"lib;te…

---

## [Jruby -S bundle install tries to install native mysql gem](https://www.ruby-forum.com/t/jruby-s-bundle-install-tries-to-install-native-mysql-gem/186272)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 7:37am UTC](https://www.ruby-forum.com/t/jruby-s-bundle-install-tries-to-install-native-mysql-gem/186272 "2010-04-05T07:37:20Z")

</div>

$ jruby -S bundle install Fetching source index from http://gemcutter.org/ Using rake (0.8.7) from bundler gems Using abstract (1.0.0) from bundler gems Using builder (2.1.2) from bundler gems Using i18n (0.3.6) fro…

---

## [String to YAML to Hash](https://www.ruby-forum.com/t/string-to-yaml-to-hash/186329)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 7:03am UTC](https://www.ruby-forum.com/t/string-to-yaml-to-hash/186329 "2010-04-05T07:03:58Z")

</div>

Hi all, I have a database “text” column with YAML-formatted content. section: first\_item: this is the first item second\_item: this is the second item I need to be able to convert all that into a hash. Something tel…

---

## [1.9.2 spec has been frozen](https://www.ruby-forum.com/t/1-9-2-spec-has-been-frozen/186326)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [April 5, 2010, 3:15am UTC](https://www.ruby-forum.com/t/1-9-2-spec-has-been-frozen/186326 "2010-04-05T03:15:44Z")

</div>

e$B@\>;3OB9-$G$9!#e(B e$B1sF#$5$s$N:n@.$7$?0lMw$K=\>$C$Fe(B Feature e$B%A%1%C%H$N$&$A9g0U$Ke(B e$BC#$7$F$$$J$$$b$N$Oe(B Target version e$B$re(B 1.9.x e$B$K@\_Dj$7$^$7$?!#e(B e$B!Ve(BRubye$B!W%W%m%8%‘%/%H$K$"$C$?$b$N$O!V…

---

## [April Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/april-phoenix-ruby-user-group-meeting/186322)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 5, 2010, 1:04am UTC](https://www.ruby-forum.com/t/april-phoenix-ruby-user-group-meeting/186322 "2010-04-05T01:04:04Z")

</div>

April Phoenix Ruby U. Group Meeting When: Monday, April 12, 2010 6:30pm door open. Laptop power and WiFi available. 7:00pm Show time 8:30pm Migrate to Four Peaks Brewery Topic: Lightnin’ Talks Come for a set …

---

## [Change in number of leading spaces](https://www.ruby-forum.com/t/change-in-number-of-leading-spaces/186143)

<div class="topic-metadata">

**Author:** [@xtremebain](https://www.ruby-forum.com/u/xtremebain)\
**Replies:** 3\
**Last updated:** [April 4, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/change-in-number-of-leading-spaces/186143 "2010-04-04T23:37:40Z")

</div>

Sorry about re-post due to typo. I am looping through a file and using a script that detects leading spaces (based on a previous post to this forum) What I want to do is to detect changes in number of leading spaces, …

---

## [Combined ranges](https://www.ruby-forum.com/t/combined-ranges/186246)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 25\
**Last updated:** [April 4, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/combined-ranges/186246 "2010-04-04T21:21:41Z")

</div>

Anybody know if there’s an easy way to accomplish the equivalent of this: \[1…20, 30…46\].each{|n| n = 1,2,3,4,5…30, 31, 32 } ? Thanks! -rp

---

## [Re: Anyone interested in	implementing	Etc	module	for Mono?](https://www.ruby-forum.com/t/re-anyone-interested-in-implementing-etc-module-for-mono/186323)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/re-anyone-interested-in-implementing-etc-module-for-mono/186323 "2010-04-04T20:35:27Z")

</div>

Most of the libraries are still poorly specced. I actually wrote most of the current etc ones in order to get them passing. If you look around though, you can find places in the lib specs that are empty files …

---

## [Scope question](https://www.ruby-forum.com/t/scope-question/186213)

<div class="topic-metadata">

**Author:** [@duffbeer](https://www.ruby-forum.com/u/duffbeer)\
**Replies:** 9\
**Last updated:** [April 4, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/scope-question/186213 "2010-04-04T19:35:45Z")

</div>

Maybe I’m missing something obvious here, but… Does this result surprise anyone else or just me? I was expecting a\_hash and an\_arr to be local to the method. Did I just do something stupid? def scope\_q(a\_hash,an\_arr,…

---

## [Status and future of glassfish gem](https://www.ruby-forum.com/t/status-and-future-of-glassfish-gem/186312)

<div class="topic-metadata">

**Author:** [@gdj](https://www.ruby-forum.com/u/gdj)\
**Replies:** 4\
**Last updated:** [April 4, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/status-and-future-of-glassfish-gem/186312 "2010-04-04T17:41:05Z")

</div>

I was looking for a hint on my problem with using the glassfish gem and came across some worrying information: http://www.ruby-forum.com/topic/207003#new It seems the developers of gfgem has abandoned ship. Any though…

---

## [Autocalculate field in a form](https://www.ruby-forum.com/t/autocalculate-field-in-a-form/186207)

<div class="topic-metadata">

**Author:** [@nmathes](https://www.ruby-forum.com/u/nmathes)\
**Replies:** 3\
**Last updated:** [April 4, 2010, 9:48am UTC](https://www.ruby-forum.com/t/autocalculate-field-in-a-form/186207 "2010-04-04T09:48:32Z")

</div>

Hi, I have a form with the following fields status - x,y,z rating-1,2,3 When customer selects the status and rating,the next filled automatically displays the correct likelihood according to the first two filed sel…

---

## [\[Bug #3064\] TypedData$B$K$D$$$F$N%I%-%e%a%s%H$,$J$$(B](https://www.ruby-forum.com/t/bug-3064-typeddata-b-k-d-f-n-i-e-a-s-h-j-b/186103)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 2\
**Last updated:** [April 4, 2010, 6:05am UTC](https://www.ruby-forum.com/t/bug-3064-typeddata-b-k-d-f-n-i-e-a-s-h-j-b/186103 "2010-04-04T06:05:18Z")

</div>

Bug #3064: TypedDatae$B$K$D$$$F$N%I%-%e%a%s%H$,$J$$e(B http://redmine.ruby-lang.org/issues/show/3064 e$B5/I\<\<Te(B: Tadashi S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ruby -v: ruby 1.9.2dev…

---

## [Mocking file downloads](https://www.ruby-forum.com/t/mocking-file-downloads/186301)

<div class="topic-metadata">

**Author:** [@Andrew\_Theaker](https://www.ruby-forum.com/u/Andrew_Theaker)\
**Replies:** 1\
**Last updated:** [April 4, 2010, 5:21am UTC](https://www.ruby-forum.com/t/mocking-file-downloads/186301 "2010-04-04T05:21:24Z")

</div>

I’m developing a data loading for work and I’m using RSpec as my testing framework. One feature of the tool is that it downloads any required data files that are missing from the local filesystem from a website. I ha…

---

## [Helping with IronRuby](https://www.ruby-forum.com/t/helping-with-ironruby/186242)

<div class="topic-metadata">

**Author:** [@Zac\_Brown](https://www.ruby-forum.com/u/Zac_Brown)\
**Replies:** 3\
**Last updated:** [April 4, 2010, 4:38am UTC](https://www.ruby-forum.com/t/helping-with-ironruby/186242 "2010-04-04T04:38:41Z")

</div>

Hi all, I’m looking to get involved with some IronRuby development. Are there some simple janitorial tasks that I get can my feet with? Thanks, Zac Brown (zbrown), SDET Microsoft - Windows - REX Client (86/1601)

---

## [\[Bug #1582\] IO.new Raises Other Errors between 1.8 and 1.9](https://www.ruby-forum.com/t/bug-1582-io-new-raises-other-errors-between-1-8-and-1-9/169617)

<div class="topic-metadata">

**Author:** [@ujihisa\_S](https://www.ruby-forum.com/u/ujihisa_S)\
**Replies:** 14\
**Last updated:** [April 4, 2010, 12:57am UTC](https://www.ruby-forum.com/t/bug-1582-io-new-raises-other-errors-between-1-8-and-1-9/169617 "2010-04-04T00:57:20Z")

</div>

Bug #1582: IO.new Raises Other Errors between 1.8 and 1.9 http://redmine.ruby-lang.org/issues/show/1582 e$B5/I\<\<Te(B: ujihisa . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ruby -v: ruby 1.9.2d…

---

## [\[ANN\] Ember 0.1.0](https://www.ruby-forum.com/t/ann-ember-0-1-0/186299)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/ann-ember-0-1-0/186299 "2010-04-03T23:31:57Z")

</div>

Ember eRuby template processor http://snk.tuxfamily.org/lib/ember/ Ember (EMBEdded Ruby) is an \[1\]eRuby template processor that enables debugging, reduces marku…

---

## [Undefined method \`attributes\_with\_quotes' for class \`ActiveRecord::Base](https://www.ruby-forum.com/t/undefined-method-attributes-with-quotes-for-class-activerecord-base/186269)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 6\
**Last updated:** [April 3, 2010, 9:24pm UTC](https://www.ruby-forum.com/t/undefined-method-attributes-with-quotes-for-class-activerecord-base/186269 "2010-04-03T21:24:25Z")

</div>

Hi, I am getting following error when I try to run db:migrate I am using jdbcsqlite3 adapter, I have necessary gems installed. $ jruby -S rake db:migrate --trace (in /home/anil/public\_html/planetrails.digitalcodes.or…

---

## [Music Theory (#229)](https://www.ruby-forum.com/t/music-theory-229/184209)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 28\
**Last updated:** [April 3, 2010, 7:30pm UTC](https://www.ruby-forum.com/t/music-theory-229/184209 "2010-04-03T19:30:12Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Puts - not putting 'all' content on display console](https://www.ruby-forum.com/t/puts-not-putting-all-content-on-display-console/186228)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 3\
**Last updated:** [April 3, 2010, 7:00pm UTC](https://www.ruby-forum.com/t/puts-not-putting-all-content-on-display-console/186228 "2010-04-03T19:00:04Z")

</div>

I am using Ruby 1.86 to process a 7,000+ record file and using Regular Expressions to select and process content. To ensure that the Regexp are working correctly, I have been using â€œputsâ€ to direct selected recor…

---

## [Iseq\_s\_load $B$,(B filepath $B$N;XDj$N$J$$(B ISeq $B$G(B TypeError $BH/@8(B](https://www.ruby-forum.com/t/iseq-s-load-b-b-filepath-b-n-xdj-n-j-b-iseq-b-g-b-typeerror-bh-8-b/186283)

<div class="topic-metadata">

**Author:** [@nagachika](https://www.ruby-forum.com/u/nagachika)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/iseq-s-load-b-b-filepath-b-n-xdj-n-j-b-iseq-b-g-b-typeerror-bh-8-b/186283 "2010-04-03T18:07:40Z")

</div>

nagachika e$B$H?=$7$^$9!#e(B ISeq e$B$GHs8x3+$Ne(B iseq\_s\_load e$B$r;H$C$FM7$s$G$$$F5$$,$D$$$?$N$G$9$,!"e(B trunk e$B$GJ8;zNs$+$ie(B compile e$B$7$?e(B ISeq e$B$r%m!\<%I$5$;$h$&$H$9$k$He(B e$B0J2\<$N$h$&$Ke(B TypeErro…

---

## [Gem update error](https://www.ruby-forum.com/t/gem-update-error/186280)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 6\
**Last updated:** [April 3, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/gem-update-error/186280 "2010-04-03T17:32:32Z")

</div>

dunno what to do. i have a ruby installed on my new machine and cannot add fastercsv. E:\\Documents and Settings\\TTS\>gem install fastercsv WARNING: RubyGems 1.2+ index not found for: http://gems.rubyforge.org/ RubyG…

---

## [Hash key with multiple values](https://www.ruby-forum.com/t/hash-key-with-multiple-values/186263)

<div class="topic-metadata">

**Author:** [@lucky1234](https://www.ruby-forum.com/u/lucky1234)\
**Replies:** 7\
**Last updated:** [April 3, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/hash-key-with-multiple-values/186263 "2010-04-03T17:10:07Z")

</div>

Hi , i have the hash result is puts @results \[{x=\>"i8"}, {y=\>"i58"}, {y=\>"i6"}, {y=\>"v5"}, {z=\>"ci5"}, {z=\>"i63"}, {w=\>"cie201"}\] from this @results hash ,i want to get new hash like below puts @conver\_results \[{x=\>"…

---

## [Where to store SQL Queries in Ruby Console App](https://www.ruby-forum.com/t/where-to-store-sql-queries-in-ruby-console-app/186097)

<div class="topic-metadata">

**Author:** [@joemanfoo](https://www.ruby-forum.com/u/joemanfoo)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/where-to-store-sql-queries-in-ruby-console-app/186097 "2010-04-03T17:01:09Z")

</div>

Hi I’m building out a windows console app that talks to SQL Server 2005. I’m coming from an Access world, where the queries are nicely included in the front end. So I’m wondering: what are best practices for storing …

---

## [RQ proposal](https://www.ruby-forum.com/t/rq-proposal/186275)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 4:49pm UTC](https://www.ruby-forum.com/t/rq-proposal/186275 "2010-04-03T16:49:49Z")

</div>

I just thought this might be a nice Ruby Q.: Write a ruby program that produces thruz (whatwassaname? :wink: like posts. Cheers Robert

---

## [Return number of spaces at the beginning of a line](https://www.ruby-forum.com/t/return-number-of-spaces-at-the-beginning-of-a-line/185985)

<div class="topic-metadata">

**Author:** [@xtremebain](https://www.ruby-forum.com/u/xtremebain)\
**Replies:** 27\
**Last updated:** [April 3, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/return-number-of-spaces-at-the-beginning-of-a-line/185985 "2010-04-03T16:31:40Z")

</div>

How would I find the number of spaces at the beginning of a line before the occurrance of the first non-space character? Would the best method be to use a regular expression that covers all non-space characters and ge…

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

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