# Ruby

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

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

---

## [Zed Shaw - Ruby has dodged a bullet](https://www.ruby-forum.com/t/zed-shaw-ruby-has-dodged-a-bullet/124687)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 111\
**Last updated:** [January 6, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/zed-shaw-ruby-has-dodged-a-bullet/124687 "2008-01-06T15:54:51Z")

</div>

Much like watching a car accident in slow motion, I could scarcely believe my eyes when reading Zed S.'s screed on Ruby & Rails on his blog \[1\]. I know I shouldn’t give an attention whore that which he so desperately…

---

## [Cygwin + rubygem $B$G(B install $B%3%^%s%I$,JV$C$F$3$J$$(B](https://www.ruby-forum.com/t/cygwin-rubygem-b-g-b-install-b-3-s-i-jv-c-f-3-j-b/124635)

<div class="topic-metadata">

**Author:** [@SSSBSSSDSdSSB](https://www.ruby-forum.com/u/SSSBSSSDSdSSB)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/cygwin-rubygem-b-g-b-install-b-3-s-i-jv-c-f-3-j-b/124635 "2008-01-06T14:33:04Z")

</div>

e$B=i$a$^$7$F!"$7$\_$:e(B e$B$H?=$7$^$9!#e(B cygwin e$B$Ge(B Ruby 1.9 e$B$r;HMQ$7$F$$$k$N$G$9$,e(B gem install mechanize e$B$H%3%^%s%IBG$C$F$b!"$3$N$^$^1~Ez$,JV$C$F$3$:!“e(BCtrl + C e$B$G;\_$a$k$7$+$”$j$^$;$s!#e(B e$B…

---

## [Regexp for matching UTF-8 characters without close tag](https://www.ruby-forum.com/t/regexp-for-matching-utf-8-characters-without-close-tag/125093)

<div class="topic-metadata">

**Author:** [@jesseproudman](https://www.ruby-forum.com/u/jesseproudman)\
**Replies:** 4\
**Last updated:** [January 6, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/regexp-for-matching-utf-8-characters-without-close-tag/125093 "2008-01-06T14:30:42Z")

</div>

Hi all, Im trying to solve this problem: string = “\\302” TEXT\_PATTERN = /\\A(\[^\<\]\*)/um text\_data = string.match(TEXT\_PATTERN).to\_s =\> “\\302” As you can see, the regular expression incorrectly captures not only the …

---

## [Pushing things Arrays](https://www.ruby-forum.com/t/pushing-things-arrays/125141)

<div class="topic-metadata">

**Author:** [@Wally\_Terrible](https://www.ruby-forum.com/u/Wally_Terrible)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/pushing-things-arrays/125141 "2008-01-06T14:28:55Z")

</div>

I’ve been learning Ruby and have done a couple of the quizes on the rubyquiz.com web site and written a couple of my own. Recently, I was surfing and stumbled on Graham King’s credit card generator \< http://www.darkc…

---

## [Port of JvYAML](https://www.ruby-forum.com/t/port-of-jvyaml/125071)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/port-of-jvyaml/125071 "2008-01-06T14:18:57Z")

</div>

I thought of a perfect name for a .NET port of JvYAML for IronRuby: IronY. Charlie

---

## [About rb2js converter](https://www.ruby-forum.com/t/about-rb2js-converter/125139)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 4\
**Last updated:** [January 6, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/about-rb2js-converter/125139 "2008-01-06T12:43:34Z")

</div>

Hi all, I would like to use rb2js converter but when I enter the command: $ ruby /Users/cyril/Downloads/Ruby2JS/test.rb I’ve got this error: /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in gem\_original\_requi…

---

## [How to lock a ruby definition?](https://www.ruby-forum.com/t/how-to-lock-a-ruby-definition/124970)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 6:42am UTC](https://www.ruby-forum.com/t/how-to-lock-a-ruby-definition/124970 "2008-01-06T06:42:46Z")

</div>

def self.def1 end how to lock a ruby definition to use it one instance at a time?

---

## [Connection Refused~~Please help](https://www.ruby-forum.com/t/connection-refused-please-help/125096)

<div class="topic-metadata">

**Author:** [@sim9739](https://www.ruby-forum.com/u/sim9739)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 6:37am UTC](https://www.ruby-forum.com/t/connection-refused-please-help/125096 "2008-01-06T06:37:30Z")

</div>

Hi all, I am new to ruby. i have a problem when i type rake in terminal. It shows: rake aborted! Connection refused - connect(2) i found that the error is from net/http.rb - TCPconnection I guess the error occur d…

---

## [How to get CPU usage](https://www.ruby-forum.com/t/how-to-get-cpu-usage/125030)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 15\
**Last updated:** [January 6, 2008, 5:50am UTC](https://www.ruby-forum.com/t/how-to-get-cpu-usage/125030 "2008-01-06T05:50:46Z")

</div>

Hi All For the (RAILS) application I’m writing I need to know what the CPU usage is, any modules in Ruby that can do this (for a linux server)? In my case, the server has to deal with many AJAX calls all the time. So …

---

## [Broken gems uninitialized constant Gem::CommandManager (Nam](https://www.ruby-forum.com/t/broken-gems-uninitialized-constant-gem-commandmanager-nam/125061)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 5:31am UTC](https://www.ruby-forum.com/t/broken-gems-uninitialized-constant-gem-commandmanager-nam/125061 "2008-01-06T05:31:55Z")

</div>

I am a ruby newbie. Somehow (I suspect with a gem update command) I have broken gems on my mac (running leopard). Now if I use any gem command I get the same error Macintosh:~ dtilley$ gem query --remote /usr/lib/ru…

---

## [Chain, Chain, Chain (was Re: zed shaw zed shaw zed shaw)](https://www.ruby-forum.com/t/chain-chain-chain-was-re-zed-shaw-zed-shaw-zed-shaw/125129)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 11\
**Last updated:** [January 6, 2008, 4:07am UTC](https://www.ruby-forum.com/t/chain-chain-chain-was-re-zed-shaw-zed-shaw-zed-shaw/125129 "2008-01-06T04:07:22Z")

</div>

Okay, I’ve been playing with doing this programatically. I’m not yet convinced that it’s bug free, but I’ve found some rather long movie title chains using the non-imdb list posted earlier: 10 ITEMS OR THAN FOR AND …

---

## [Newbie Books](https://www.ruby-forum.com/t/newbie-books/125134)

<div class="topic-metadata">

**Author:** [@McKenzie\_Cutshall](https://www.ruby-forum.com/u/McKenzie_Cutshall)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 3:41am UTC](https://www.ruby-forum.com/t/newbie-books/125134 "2008-01-06T03:41:37Z")

</div>

Greetings all, This is my first ML ever so forgive me if I do something I shouldn’t. I have tried getting a list of past articles using # index as the help file specifies but I get nothing in return. I was hoping t…

---

## [Html parser with regex, how to solve?](https://www.ruby-forum.com/t/html-parser-with-regex-how-to-solve/125137)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 4\
**Last updated:** [January 6, 2008, 3:33am UTC](https://www.ruby-forum.com/t/html-parser-with-regex-how-to-solve/125137 "2008-01-06T03:33:25Z")

</div>

Yeah, I\`m trying to develop a simple application using ruby (when this works i will pass to rails). I need get the source code from a URL, and find for this string: $299.99 wow, but i need search for not only 149.00,…

---

## [Ruby/IRB not seeing installed Gems, thoughts?](https://www.ruby-forum.com/t/ruby-irb-not-seeing-installed-gems-thoughts/125138)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 2:01am UTC](https://www.ruby-forum.com/t/ruby-irb-not-seeing-installed-gems-thoughts/125138 "2008-01-06T02:01:08Z")

</div>

Using “gem query --local” I’m returned a list of installed gems, one of which is called “relax”. However, within the IRB I cannot require this gem. Setting up a simple Ruby script I cannot do an include on it either …

---

## [Iterating over array of variables - can't change t hem?](https://www.ruby-forum.com/t/iterating-over-array-of-variables-cant-change-t-hem/125021)

<div class="topic-metadata">

**Author:** [@ajs](https://www.ruby-forum.com/u/ajs)\
**Replies:** 9\
**Last updated:** [January 6, 2008, 1:41am UTC](https://www.ruby-forum.com/t/iterating-over-array-of-variables-cant-change-t-hem/125021 "2008-01-06T01:41:02Z")

</div>

title=“Title” subtitle=“Subtitle” body=“Body” \[title,subtitle,body\].each {|item| item.downcase!} This successfully sets the original variables to “title”, “subtitle”, “body” BUT \[title,subtitle,body\].each {|item| …

---

## [The great Ruby web framework multi-app challenge](https://www.ruby-forum.com/t/the-great-ruby-web-framework-multi-app-challenge/124960)

<div class="topic-metadata">

**Author:** [@ducktyped](https://www.ruby-forum.com/u/ducktyped)\
**Replies:** 5\
**Last updated:** [January 6, 2008, 1:19am UTC](https://www.ruby-forum.com/t/the-great-ruby-web-framework-multi-app-challenge/124960 "2008-01-06T01:19:38Z")

</div>

I’ve been thinking a lot about multi-app web projects, and how none of the Ruby web application frameworks I know offers a clean solution to build a site that conveniently integrates multiple apps (e.g. a core site an…

---

## [Invalid char errors](https://www.ruby-forum.com/t/invalid-char-errors/125084)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 1:01am UTC](https://www.ruby-forum.com/t/invalid-char-errors/125084 "2008-01-06T01:01:18Z")

</div>

Yeah! Im learning to program in ruby but i cant understand what i\`m getting char erros! My code: #!/usr/bin/ruby class Teste def initialize(nome, sobrenome, idade) @nome = nome @sobrenome = sobrenome @idade = ida…

---

## [Fwd: parse tree redux](https://www.ruby-forum.com/t/fwd-parse-tree-redux/125066)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 5\
**Last updated:** [January 6, 2008, 12:34am UTC](https://www.ruby-forum.com/t/fwd-parse-tree-redux/125066 "2008-01-06T00:34:54Z")

</div>

somehow missent ---------- Forwarded message ---------- More issues with this. Context in forwarded msg. Here’s a (probably very naive) implementation of the discussed code. It takes code blocks, turns them into indi…

---

## [RubyKaigi 2008 in Tsukuba, Japan and CFP](https://www.ruby-forum.com/t/rubykaigi-2008-in-tsukuba-japan-and-cfp/125103)

<div class="topic-metadata">

**Author:** [@Leonard\_C](https://www.ruby-forum.com/u/Leonard_C)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/rubykaigi-2008-in-tsukuba-japan-and-cfp/125103 "2008-01-05T22:52:17Z")

</div>

RubyKaigi 2008, the 3rd annual Japanese Ruby Conference, is scheduled to be held from Friday, 20th June to Sunday, 22nd June, 2008, at the Tsukuba International Congress Center in Tsukuba City, Ibaraki, just outside o…

---

## [Parsing a csv using ; =\> ruby doesn't split the row](https://www.ruby-forum.com/t/parsing-a-csv-using-ruby-doesnt-split-the-row/125097)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 4\
**Last updated:** [January 5, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/parsing-a-csv-using-ruby-doesnt-split-the-row/125097 "2008-01-05T22:40:24Z")

</div>

Hello, I’m importing CSV files without problems, now, I have some of them that use the semi-colon instead of the comma as a field separator, I’m trying to adapt my Ruby code for that, but Ruby puts all the columns in …

---

## [Rubygame on Mac OSX](https://www.ruby-forum.com/t/rubygame-on-mac-osx/125126)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 1\
**Last updated:** [January 5, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/rubygame-on-mac-osx/125126 "2008-01-05T22:24:41Z")

</div>

Hello, I am having some serious trouble installing Rubygame on Mac OS 10.4.11 I have currently installed: libsdl {macports} libsdl-framework {macports} libsdl\_mixer {macports} libpng {…

---

## [Fixnums can have instance variables? Cool](https://www.ruby-forum.com/t/fixnums-can-have-instance-variables-cool/82430)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [January 5, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/fixnums-can-have-instance-variables-cool/82430 "2008-01-05T21:56:00Z")

</div>

This really surprises me: 3.instance\_variable\_set("@unbelievable", “believe it!”) puts 3.instance\_variable\_get("@unbelievable") # -\> “believe it!” which led me to: class Fixnum attr\_accessor :note end 13.note = “…

---

## [Common variable in a more than one process?](https://www.ruby-forum.com/t/common-variable-in-a-more-than-one-process/125095)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/common-variable-in-a-more-than-one-process/125095 "2008-01-05T20:32:52Z")

</div>

is there any way to access a common variable in more than one processes which are created in ruby ? or can we access a global variable or class variable into more than one processes…

---

## [Convert bignum to numeric and formatting](https://www.ruby-forum.com/t/convert-bignum-to-numeric-and-formatting/125112)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 10\
**Last updated:** [January 5, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/convert-bignum-to-numeric-and-formatting/125112 "2008-01-05T20:19:47Z")

</div>

Hi you all, I’m trying to format a Bignum such as 1012345556 into 1.012.345.556 (separating the thousands). I’ve seen the extension of Numeric \[1\] can do that but, how can I convert my Bignum to a Numeric? Thanks. \[…

---

## [REXML::Document could not parse UTF-8 "\<name\>\\302\</name\>"](https://www.ruby-forum.com/t/rexml-document-could-not-parse-utf-8-name-302-name/125035)

<div class="topic-metadata">

**Author:** [@jesseproudman](https://www.ruby-forum.com/u/jesseproudman)\
**Replies:** 4\
**Last updated:** [January 5, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/rexml-document-could-not-parse-utf-8-name-302-name/125035 "2008-01-05T20:02:24Z")

</div>

Hi all, Im working with some UTF-8 data and basically if I run this: require ‘rexml/document’ data = “\\302” doc = REXML::Document.new(data) I get an error that says I did not close the tag: REXML::ParseException: …

---

## [A file's creation date](https://www.ruby-forum.com/t/a-files-creation-date/125100)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 3\
**Last updated:** [January 5, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/a-files-creation-date/125100 "2008-01-05T19:10:48Z")

</div>

Hello anyone, I have written a script that organizes my ten thousand+ photos into a year/month file structure using ‘exifr’ while eliminating duplicates. Unfortunately some of the dates in the ‘EXIF’ block are bad or…

---

## [Extend Tempfile](https://www.ruby-forum.com/t/extend-tempfile/125113)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [January 5, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/extend-tempfile/125113 "2008-01-05T18:09:09Z")

</div>

e$B0J2\<$N$h$&$Ke(B Tempfile e$B$N%$%s%9%?%s%9$Ke(B extend e$B$9$k$H!"$=$N$3e(B e$B$H$re(B === e$B$G8!=P$G$-$^$;$s!#e(B % ./ruby -v -rtempfile -e ’ o = Tempfile.new(“foo”) module M end p M === o o.extend M p M ==…

---

## [SEGV by regexp match in while loop](https://www.ruby-forum.com/t/segv-by-regexp-match-in-while-loop/125040)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [January 5, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/segv-by-regexp-match-in-while-loop/125040 "2008-01-05T13:53:52Z")

</div>

Debian GNU/Linux (sarge) e$B$Ne(B gcc-3.4 e$B$r;H$C$F%S%k%I$7$?e(B ruby e$B$G!"0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby … % autoconf % ./configure --prefix=/t…

---

## [Schedule jobs with ruby](https://www.ruby-forum.com/t/schedule-jobs-with-ruby/125046)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 7\
**Last updated:** [January 5, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/schedule-jobs-with-ruby/125046 "2008-01-05T12:02:36Z")

</div>

are there any tools to schedule jobs with ruby in xp. i dont want to use the windows scheduled jobs as i am having issue with it.

---

## [Gems gone after upgrading RubyGems](https://www.ruby-forum.com/t/gems-gone-after-upgrading-rubygems/124748)

<div class="topic-metadata">

**Author:** [@lobo](https://www.ruby-forum.com/u/lobo)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 10:00am UTC](https://www.ruby-forum.com/t/gems-gone-after-upgrading-rubygems/124748 "2008-01-05T10:00:56Z")

</div>

Hello guys, I’m new to Ruby and Linux, I was happily doing some examples and exploring this wonderful language, when I decided to upgrade to RubyGems 1.0.1. After that (and I think it was after that, not really sure)…

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

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