# Ruby

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

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

---

## [Code Review: Caller1](https://www.ruby-forum.com/t/code-review-caller1/138316)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [May 22, 2008, 12:07am UTC](https://www.ruby-forum.com/t/code-review-caller1/138316 "2008-05-22T00:07:30Z")

</div>

tfpt review /shelveset:Caller1;REDMOND\\tomat Implements Kernel#caller. Tomas

---

## [NKF.nkf("-e", "") segfaults](https://www.ruby-forum.com/t/nkf-nkf-e-segfaults/138239)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/nkf-nkf-e-segfaults/138239 "2008-05-21T23:46:19Z")

</div>

e$B$J$+$@$G$9!#e(B http://homepage1.nifty.com/~tetsu/ruby/diary/0805.html#21 e$B$N$h$&e(B e$B$K!"e(B-ee$B$,e(BSEGVe$B$7$^$9!#860x$O!“e(Bnkf-utf8/nkf.ce$B$Ne(Bnkf\_encoding\_tablee$B$He(B encoding\_name\_to\_id\_tablee$B$Ge(…

---

## [Pagination](https://www.ruby-forum.com/t/pagination/138308)

<div class="topic-metadata">

**Author:** [@aratnam](https://www.ruby-forum.com/u/aratnam)\
**Replies:** 3\
**Last updated:** [May 21, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/pagination/138308 "2008-05-21T23:01:44Z")

</div>

I am trying to paginate a collection on the controller and when I try to access the Paginator from view using \<%= link\_to “Previous page”, {:page =\> @list\_pages.current.previous } if @list\_pages.current.previous %\> \<%…

---

## [Custom serialization problem 2 (marshal\_dump, marshal\_load)](https://www.ruby-forum.com/t/custom-serialization-problem-2-marshal-dump-marshal-load/196687)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 4\
**Last updated:** [May 21, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/custom-serialization-problem-2-marshal-dump-marshal-load/196687 "2008-05-21T22:56:15Z")

</div>

Hi, I have a problem with the marshal\_dump and marshal\_load… I built two classes XXX, YYY and implemented both methods like this: class YYY @data = “string” @version = 1 def marshal\_dump() return \[@version,@data\] …

---

## [Ruby on Rails, Vista, and Segmentation Faults](https://www.ruby-forum.com/t/ruby-on-rails-vista-and-segmentation-faults/138294)

<div class="topic-metadata">

**Author:** [@bobf](https://www.ruby-forum.com/u/bobf)\
**Replies:** 3\
**Last updated:** [May 21, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-vista-and-segmentation-faults/138294 "2008-05-21T22:51:42Z")

</div>

I’ve just switched from Window XP to a new Vista machine and my Rails app is crashing with apparently random segmentation faults – each time seems to be in a different location. Has anyone else had a similar experienc…

---

## [Is there any good source for the logic behind some of the methods?](https://www.ruby-forum.com/t/is-there-any-good-source-for-the-logic-behind-some-of-the-methods/138209)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 10\
**Last updated:** [May 21, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/is-there-any-good-source-for-the-logic-behind-some-of-the-methods/138209 "2008-05-21T21:23:26Z")

</div>

I am trying to figure out why methods that seem to do the same thing behave so differently. For example Integer(“0377”) returns 255 as expected for an octal number but “0377”.to\_i returns 377. Or why Integer(“12e3”)…

---

## [Is Necessary for all rails employee know computer knowledge?](https://www.ruby-forum.com/t/is-necessary-for-all-rails-employee-know-computer-knowledge/138129)

<div class="topic-metadata">

**Author:** [@abcotech](https://www.ruby-forum.com/u/abcotech)\
**Replies:** 14\
**Last updated:** [May 21, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/is-necessary-for-all-rails-employee-know-computer-knowledge/138129 "2008-05-21T20:56:48Z")

</div>

Hi all Is Necessary for all rails employee know computer knowledge? Because for last 2 week i am visiting rails department, there i show some employee dos not know how to open the system, my way of saying is necessary…

---

## [Obfuscated Email](https://www.ruby-forum.com/t/obfuscated-email/137822)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 43\
**Last updated:** [May 21, 2008, 8:54pm UTC](https://www.ruby-forum.com/t/obfuscated-email/137822 "2008-05-21T20:54:28Z")

</div>

If you want to ignore the introduction and just get to the task, skip down to the last paragraph. Ah, yes… I remember the good ol’ days of Usenet, when the signal to noise ratio was high, very high… certainly much h…

---

## [\[ANN\] Mack 0.5.5 Released](https://www.ruby-forum.com/t/ann-mack-0-5-5-released/138299)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/ann-mack-0-5-5-released/138299 "2008-05-21T20:36:49Z")

</div>

Mack 0.5.5 has been released. With a new rendering engine there is now support for Markaby and Haml. http://www.mackframework.com/2008/05/21/release-055/ Changelog: INCOMPATIBILITY NOTICE: Ripped apart the ENTIRE re…

---

## [S3 recordings available online](https://www.ruby-forum.com/t/s3-recordings-available-online/138295)

<div class="topic-metadata">

**Author:** [@Gregor\_Schmidt](https://www.ruby-forum.com/u/Gregor_Schmidt)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/s3-recordings-available-online/138295 "2008-05-21T20:15:24Z")

</div>

Hi all, I’m just forwarding this to the list, since I know, that some of you were actually there. Cheers, Gregor Schmidt Hi – Video recordings of all talks given at the S3 Workshop on Self- sustaining Systems (he…

---

## [Prebuild.xml file for ironruby](https://www.ruby-forum.com/t/prebuild-xml-file-for-ironruby/196686)

<div class="topic-metadata">

**Author:** [@C.JSAdams-Collier](https://www.ruby-forum.com/u/C.JSAdams-Collier)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/prebuild-xml-file-for-ironruby/196686 "2008-05-21T19:38:56Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [How to wrap either forkoff or map depending on a config variable?](https://www.ruby-forum.com/t/how-to-wrap-either-forkoff-or-map-depending-on-a-config-variable/137954)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 5\
**Last updated:** [May 21, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/how-to-wrap-either-forkoff-or-map-depending-on-a-config-variable/137954 "2008-05-21T19:08:58Z")

</div>

Hello, good people of ruby-talk. Iâ€™m trying to write an Enumerable#parallel method that, depending on a config option (retrieved inside it) would end up being an alias for either Enumerable#map or Enumerable#forkoff…

---

## [Code Review: RubySHA](https://www.ruby-forum.com/t/code-review-rubysha/138293)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/code-review-rubysha/138293 "2008-05-21T18:45:20Z")

</div>

tfpt review /shelveset:RubySHA;REDMOND\\curth Enough of Digest::SHA.\* to pass current blockages

---

## [Characters](https://www.ruby-forum.com/t/characters/138286)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/characters/138286 "2008-05-21T17:55:00Z")

</div>

I am wondering how to add characters to a ruby model. I have a ruby code that builds a simple 3D model. Now I want to givea name to a certain room. Those letters can be written on the bottom of the room. Please let me…

---

## [IronRuby r111 is out](https://www.ruby-forum.com/t/ironruby-r111-is-out/138190)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 5\
**Last updated:** [May 21, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/ironruby-r111-is-out/138190 "2008-05-21T16:40:10Z")

</div>

This is a really big change that fixes most of the known issues that are blocking us from running Rails. We’re not there yet, but we’re getting closer. This change incorporates the latest Ruby specs, which you can tes…

---

## [RubyObject from Java to Ruby](https://www.ruby-forum.com/t/rubyobject-from-java-to-ruby/138170)

<div class="topic-metadata">

**Author:** [@Sergio\_Oliveira](https://www.ruby-forum.com/u/Sergio_Oliveira)\
**Replies:** 3\
**Last updated:** [May 21, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/rubyobject-from-java-to-ruby/138170 "2008-05-21T16:33:03Z")

</div>

Hi, I have a RubyObject in Java, but now I want to bring it back to the Ruby side, in other words, I would like to use JRuby’s eval and somehow reference this RubyObject in the ruby side. For example I would like to…

---

## [How to implement this in unit testing](https://www.ruby-forum.com/t/how-to-implement-this-in-unit-testing/138241)

<div class="topic-metadata">

**Author:** [@Muath\_ASKhalaf](https://www.ruby-forum.com/u/Muath_ASKhalaf)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/how-to-implement-this-in-unit-testing/138241 "2008-05-21T15:20:06Z")

</div>

Hi, If I want to implement something like this in Ruby Unit Testing: test\_z\_lessthan\_20 x = choose(1…5) y = choose(0…3) z = x \* y assert(z \< 20) end\_choice end\_choice end The idea here is to run the previous te…

---

## [List animals with average capture\_percent (Josh Susser's example)](https://www.ruby-forum.com/t/list-animals-with-average-capture-percent-josh-sussers-example/138262)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/list-animals-with-average-capture-percent-josh-sussers-example/138262 "2008-05-21T14:31:02Z")

</div>

Hi guys, I implemented self-referential system based on Josh S.'s guidance on http://blog.hasmanythrough.com/2007/10/ … ny-through now I’m unsuccesfully trying to list all animals together with average hunt.capture\_p…

---

## [Undefined method](https://www.ruby-forum.com/t/undefined-method/138251)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/undefined-method/138251 "2008-05-21T12:06:02Z")

</div>

Hi This is more ruby related that is why I am asking here I have controller code as @sd\_activities=ServiceDeskActivity.find\_all\_by\_service\_desk\_ticket\_id(service\_desk\_ticket.id).display\_sd\_activities(params\[:page\]) a…

---

## [Ruby Quick Reference](https://www.ruby-forum.com/t/ruby-quick-reference/138202)

<div class="topic-metadata">

**Author:** [@src1138](https://www.ruby-forum.com/u/src1138)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 10:58am UTC](https://www.ruby-forum.com/t/ruby-quick-reference/138202 "2008-05-21T10:58:57Z")

</div>

Anyone know if there’s a Ruby Quick Reference similar to Python’s PQR (Python page Richard Gruet @ free.fr)? A Google search reveals a few items, but most are incomplete. Thanks

---

## [Newbie: hierarchical object model with RoR](https://www.ruby-forum.com/t/newbie-hierarchical-object-model-with-ror/138246)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 10:21am UTC](https://www.ruby-forum.com/t/newbie-hierarchical-object-model-with-ror/138246 "2008-05-21T10:21:15Z")

</div>

I’ve read all the simple tutorials and decided to have a go at building a slightly more complicated application. Unfortunately I immediately came unstuck. I have three objects, for the sake of argument they are author…

---

## [(1..5).step(SimpleDelegator.new(1.5)) {|x| p x} differ from (1..5).step(1.5) {|x| p x}](https://www.ruby-forum.com/t/1-5-step-simpledelegator-new-1-5-x-p-x-differ-from-1-5-step-1-5-x-p-x/138157)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 10:09am UTC](https://www.ruby-forum.com/t/1-5-step-simpledelegator-new-1-5-x-p-x-differ-from-1-5-step-1-5-x-p-x/138157 "2008-05-21T10:09:26Z")

</div>

e$B0J2\<$N$h$&$Ke(B (1…5).step(1.5) {|x| p x} e$B$He(B (1…5).step(SimpleDelegator.new(1.5)) {|x| p x} e$B$N7k2L$,0\[$Je(B e$B$k$N$OJQ$G$O$J$$$G$7$g$&$+!#e(B % ./ruby -ve ‘(1…5).step(1.5) {|x| p x}’ ruby 1.9.0 (2008-05-…

---

## [Re: BasicObject & OpenStruct in Ruby 1.8.7-preview3](https://www.ruby-forum.com/t/re-basicobject-openstruct-in-ruby-1-8-7-preview3/138243)

<div class="topic-metadata">

**Author:** [@Yoshikane\_Noguchi](https://www.ruby-forum.com/u/Yoshikane_Noguchi)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 10:01am UTC](https://www.ruby-forum.com/t/re-basicobject-openstruct-in-ruby-1-8-7-preview3/138243 "2008-05-21T10:01:10Z")

</div>

e$B\<u?.3NG’%l%\]!\<%He(B e$B7oL\>e(B: Re: BasicObject & OpenStruct in Ruby 1.8.7-preview3 e$B3+Iu\<Te(B: Yoshikane Noguchi/scm e$BF|IUe(B: 2008/05/21 16:53:59

---

## [Download code for application](https://www.ruby-forum.com/t/download-code-for-application/138235)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 9:39am UTC](https://www.ruby-forum.com/t/download-code-for-application/138235 "2008-05-21T09:39:24Z")

</div>

Hi, i want a such code which helps me download a csv file to each client machine when he click on download link, for this i am tried lots thing but it working for IE, but not for mac, Mozilla, safari. i want a optimu…

---

## [\[Fwd: Got questions about NetBeans Ruby/JRuby support?\]](https://www.ruby-forum.com/t/fwd-got-questions-about-netbeans-ruby-jruby-support/138237)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 8:47am UTC](https://www.ruby-forum.com/t/fwd-got-questions-about-netbeans-ruby-jruby-support/138237 "2008-05-21T08:47:08Z")

</div>

Hey, I sent this to ruby-talk, but figured I’d toss it a few more places. If you have any questions about NB Ruby/JRuby support you’d like answered in a public form, eventually published for others to read, send them …

---

## [Gems and Rails use cases](https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 8:45am UTC](https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148 "2008-05-21T08:45:22Z")

</div>

Now that most of the files required by rails are loading successfully, I’m now trying to actually run a number of gems/rails use cases: ir.exe c:\\rubygems-1.1.1\\setup.rb ir.exe c:\\ruby\\bin\\gem -h ir.exe c:\\ruby\\bin\\g…

---

## [Code Review: Accessors](https://www.ruby-forum.com/t/code-review-accessors/138213)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 7:25am UTC](https://www.ruby-forum.com/t/code-review-accessors/138213 "2008-05-21T07:25:03Z")

</div>

tfpt review /shelveset:Accessors;REDMOND\\tomat Fixes bug #20242: send attr\_accessor. Uses rule generators to implement attribute accessors. Previously both used RubyMethodGroupInfo that was hacked to make them work. T…

---

## [Code Review: RubyLibTweaks3](https://www.ruby-forum.com/t/code-review-rubylibtweaks3/138228)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 7:05am UTC](https://www.ruby-forum.com/t/code-review-rubylibtweaks3/138228 "2008-05-21T07:05:43Z")

</div>

tfpt review /shelveset:RubyLibTweaks3;REDMOND\\curth Implemented more minor changes for library support: Fixes for RubyForge #20263, #20252 Implemented File::Stat and all its methods Implemented File.unlink, File.rena…

---

## [Hoe 1.5.2 (and 1.5.3) Released](https://www.ruby-forum.com/t/hoe-1-5-2-and-1-5-3-released/138220)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 6:10am UTC](https://www.ruby-forum.com/t/hoe-1-5-2-and-1-5-3-released/138220 "2008-05-21T06:10:43Z")

</div>

hoe version 1.5.2 has been released! Also, I suck. 1.5.3 has been released. http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubyg…

---

## [Rubyforge 1.0.0 Released](https://www.ruby-forum.com/t/rubyforge-1-0-0-released/138222)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 6:08am UTC](https://www.ruby-forum.com/t/rubyforge-1-0-0-released/138222 "2008-05-21T06:08:58Z")

</div>

rubyforge version 1.0.0 has been released! http://codeforpeople.rubyforge.org/rubyforge/ http://rubyforge.org/projects/codeforpeople/ A script which automates a limited set of rubyforge operations. Run ‘rubyforge he…

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

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