# Ruby

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

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

---

## [PDFWriter and Page Breaks](https://www.ruby-forum.com/t/pdfwriter-and-page-breaks/166326)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 6:55am UTC](https://www.ruby-forum.com/t/pdfwriter-and-page-breaks/166326 "2009-04-30T06:55:10Z")

</div>

I’m sure this is something that someone here has done. More probably, I’m missing the obvious. In order to produce a report, I need to know when the text I’m printing (or about to print - I’m not picky) is going to do…

---

## [Rspec-rails 1.2.5 Released](https://www.ruby-forum.com/t/rspec-rails-1-2-5-released/166849)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 5:56am UTC](https://www.ruby-forum.com/t/rspec-rails-1-2-5-released/166849 "2009-04-30T05:56:08Z")

</div>

rspec-rails version 1.2.5 has been released! http://rspec.info http://rubyforge.org/projects/rspec http://github.com/dchelimsky/rspec-rails http://wiki.github.com/dchelimsky/rspec/rails removed\_email\_address@domain.inv…

---

## [Composite gif files with RMagick](https://www.ruby-forum.com/t/composite-gif-files-with-rmagick/166677)

<div class="topic-metadata">

**Author:** [@phoenix520](https://www.ruby-forum.com/u/phoenix520)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 3:42am UTC](https://www.ruby-forum.com/t/composite-gif-files-with-rmagick/166677 "2009-04-30T03:42:45Z")

</div>

I have two gif files,and I want to composite them,there is my ruby code: require ‘rmagick’ include Magick gif1=ImageList.new(‘one.gif’) gif2=ImageList.new(‘two.gif’) dest=ImageList.new 0.upto(gif1.size-1){|i| dest…

---

## [Bj and rails 2.1 - can't get bj to run jobs](https://www.ruby-forum.com/t/bj-and-rails-2-1-cant-get-bj-to-run-jobs/143713)

<div class="topic-metadata">

**Author:** [@dusty](https://www.ruby-forum.com/u/dusty)\
**Replies:** 12\
**Last updated:** [April 30, 2009, 3:15am UTC](https://www.ruby-forum.com/t/bj-and-rails-2-1-cant-get-bj-to-run-jobs/143713 "2009-04-30T03:15:43Z")

</div>

I have been trying to setup bj with rails 2.1.0 and am having some problems, was wondering if anyone could help. Here is what I’ve done so far. Basic rails install $ rails tester Install bj $ cd tester $ ./sc…

---

## [Repost : Trouble with Error: "..undefined method \`write'.."](https://www.ruby-forum.com/t/repost-trouble-with-error-undefined-method-write/166843)

<div class="topic-metadata">

**Author:** [@roger](https://www.ruby-forum.com/u/roger)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 3:12am UTC](https://www.ruby-forum.com/t/repost-trouble-with-error-undefined-method-write/166843 "2009-04-30T03:12:40Z")

</div>

The Complete line from error inside SciTE : test.rb:12: undefined method \`write’ for #String:0x3a36d64 (NoMethodError) Error results from this line : google\_data.to\_xml.write($stdout, 1) … trying to use this Scruby…

---

## [Weird performance issue](https://www.ruby-forum.com/t/weird-performance-issue/165751)

<div class="topic-metadata">

**Author:** [@court3nay](https://www.ruby-forum.com/u/court3nay)\
**Replies:** 9\
**Last updated:** [April 30, 2009, 1:22am UTC](https://www.ruby-forum.com/t/weird-performance-issue/165751 "2009-04-30T01:22:16Z")

</div>

Hey, I’m debugging a weird performance issue. I have two VMs on the same server running the same OS (arch linux) and the same version of “enterprise” Ruby (ruby 1.8.6 (2008-08-08 patchlevel 286) \[x86\_64- linux\]). On …

---

## [Net::SCP download recursive](https://www.ruby-forum.com/t/net-scp-download-recursive/166837)

<div class="topic-metadata">

**Author:** [@pdenize](https://www.ruby-forum.com/u/pdenize)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 12:15am UTC](https://www.ruby-forum.com/t/net-scp-download-recursive/166837 "2009-04-30T00:15:36Z")

</div>

The recursive documentation suggests that :recursive - the remote parameter refers to a remote directory, which should be downloaded to a new directory named local on the local machine. So I copied “/pub/temp” to “C:…

---

## [WxRuby "source code"](https://www.ruby-forum.com/t/wxruby-source-code/166816)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 12:10am UTC](https://www.ruby-forum.com/t/wxruby-source-code/166816 "2009-04-30T00:10:54Z")

</div>

I was trying to figure out what the correct parameters are for ScrolledWindow.new. In the doc I saw some detrails (http://wxruby.rubyforge.org/doc/scrolledwindow.html#ScrolledWindow\_new) but I still couldnt see what …

---

## [Ar\_mailer 1.3.2 Released](https://www.ruby-forum.com/t/ar-mailer-1-3-2-released/166825)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/ar-mailer-1-3-2-released/166825 "2009-04-29T23:09:24Z")

</div>

ar\_mailer version 1.3.2 has been released! http://seattlerb.rubyforge.org/ar\_mailer http://rubyforge.org/tracker/?func=add&group\_id=1513&atid=5921 ar\_mailer is a two-phase delivery agent for ActionMailer. Even deliv…

---

## [(mandriva,eclipse) ruby debug gem installation fails](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781 "2009-04-29T23:04:37Z")

</div>

hello, I have a problem while installing a gem for the debugging with eclipse. I’m on mandriva 2009, here is the error message: \[root@localhost lolveley\]# gem install ruby-debug Bulk updating Gem source index for: h…

---

## [Re: mspec error undefined method \`filtered' for	MSpecScript:Class](https://www.ruby-forum.com/t/re-mspec-error-undefined-method-filtered-for-mspecscript-class/166814)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 5\
**Last updated:** [April 29, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/re-mspec-error-undefined-method-filtered-for-mspecscript-class/166814 "2009-04-29T21:30:11Z")

</div>

The gem won’t work for now. Make sure that the mspec that runs is the Mspec in Merlin/External.LCA\_RESTRICTED. JD

---

## [Trouble with OSA and Excel](https://www.ruby-forum.com/t/trouble-with-osa-and-excel/166622)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 8:31pm UTC](https://www.ruby-forum.com/t/trouble-with-osa-and-excel/166622 "2009-04-29T20:31:13Z")

</div>

Hello all, This week’s agony is with rdoc-osa and Excel 2008. I’m trying to create the documentation files, but the program hangs. I suspect a faulty AE dictionary. Here’s the setup: travelers-macbook-pro-17:~ tra…

---

## [Mspec error undefined method \`filtered' for MSpecScript:Class](https://www.ruby-forum.com/t/mspec-error-undefined-method-filtered-for-mspecscript-class/166811)

<div class="topic-metadata">

**Author:** [@jirapong](https://www.ruby-forum.com/u/jirapong)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/mspec-error-undefined-method-filtered-for-mspecscript-class/166811 "2009-04-29T20:12:31Z")

</div>

Have any one got this error? and to fix it :slight\_smile: c:\\ironruby\\Merlin\\External.LCA\_RESTRICTED\\Languages\\IronRuby\\mspec \\default.mspec:12: undefined method filtered' for MSpecScript:Class (NoMethodError) from C:/…

---

## [Opposite of initialize](https://www.ruby-forum.com/t/opposite-of-initialize/166705)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [April 29, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/opposite-of-initialize/166705 "2009-04-29T19:13:57Z")

</div>

Hi, I’m looking for the opposite function of initialize() as I need to call something before an object is “destroyed”. Thanks Peter

---

## [Detecting -0.0](https://www.ruby-forum.com/t/detecting-0-0/166718)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 18\
**Last updated:** [April 29, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/detecting-0-0/166718 "2009-04-29T19:05:54Z")

</div>

Hello. I have a simple question - how to detect if a variable contains a Float of value -0.0? Is there any special method for this, or any comparison that distinguishes negative zero from a the regular zero? Thanks i…

---

## [Itinerary for a Traveling Salesman (#142)](https://www.ruby-forum.com/t/itinerary-for-a-traveling-salesman-142/116439)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 19\
**Last updated:** [April 29, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/itinerary-for-a-traveling-salesman-142/116439 "2009-04-29T19:02:10Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Can't seem to source .bashrc when using net-ssh](https://www.ruby-forum.com/t/cant-seem-to-source-bashrc-when-using-net-ssh/166804)

<div class="topic-metadata">

**Author:** [@sdizier](https://www.ruby-forum.com/u/sdizier)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/cant-seem-to-source-bashrc-when-using-net-ssh/166804 "2009-04-29T18:50:04Z")

</div>

Hey Guys, I have a script which executes commands via rubys net-ssh version 2.x and I need access to environment variables that I have created in my servers .bashrc. The problem I seem to be having is that my .bashrc …

---

## [State machines in Ruby](https://www.ruby-forum.com/t/state-machines-in-ruby/166800)

<div class="topic-metadata">

**Author:** [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 6:47pm UTC](https://www.ruby-forum.com/t/state-machines-in-ruby/166800 "2009-04-29T18:47:30Z")

</div>

What’s the best way to represent a state machine in Ruby? I’m not concerned with performance, just simplicity.

---

## [Why does attr\_accessor in module require 'self.'?](https://www.ruby-forum.com/t/why-does-attr-accessor-in-module-require-self/166628)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 13\
**Last updated:** [April 29, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/why-does-attr-accessor-in-module-require-self/166628 "2009-04-29T17:44:11Z")

</div>

Hi there, When a class mixes in a module containing ‘attr\_accessor :foo’, it must then use ‘self.foo = …’ instead of simply ‘foo = …’. While I prefer ‘self.foo’ for clarity’s sake, I am stumped as to why this is req…

---

## [Lone Star Twitter/Ruby Conference 2009](https://www.ruby-forum.com/t/lone-star-twitter-ruby-conference-2009/166802)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/lone-star-twitter-ruby-conference-2009/166802 "2009-04-29T17:42:25Z")

</div>

Greetings After much feedback about the Lone Star Twitter Conference, it looks like the LSTC will NOT be replacing the Lone Star Ruby Conference after all. Half of the speakers complained that 140 characters was not…

---

## [Implementing get\_Item in Ruby for access in .NET](https://www.ruby-forum.com/t/implementing-get-item-in-ruby-for-access-in-net/166780)

<div class="topic-metadata">

**Author:** [@xerxesb](https://www.ruby-forum.com/u/xerxesb)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/implementing-get-item-in-ruby-for-access-in-net/166780 "2009-04-29T17:39:29Z")

</div>

Hi there. We’re trying to access a ruby implementation of a Hash from .NET but having trouble getting the following snip to work require ‘Dependencies.dll’ class ParameterList include Namespace::IParameterList @…

---

## [How to eliminate hash tag when to\_xml is used](https://www.ruby-forum.com/t/how-to-eliminate-hash-tag-when-to-xml-is-used/166734)

<div class="topic-metadata">

**Author:** [@Song\_C](https://www.ruby-forum.com/u/Song_C)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/how-to-eliminate-hash-tag-when-to-xml-is-used/166734 "2009-04-29T17:30:42Z")

</div>

help Hi, everyone, I have a hash obj and when converted to xml using to\_xml the tag appears like the following \<?xml version="1.0" encoding="UTF-8"?\> ... I want to get rid of that so that it is just \<?xml vers…

---

## [Download progress](https://www.ruby-forum.com/t/download-progress/166749)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 4\
**Last updated:** [April 29, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/download-progress/166749 "2009-04-29T17:07:34Z")

</div>

Let’s consider we’re getting a long file through HTTP: How to get a progress (percentage of done) of the download process? I didn’t find such API in Net::HTTP

---

## [Help on copy file](https://www.ruby-forum.com/t/help-on-copy-file/166651)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/help-on-copy-file/166651 "2009-04-29T17:03:06Z")

</div>

Hi… is it possible to copy a file which is newer than the existing one. how can i check that? Any Ideas. Thanks

---

## [Issue with regexp pattern matcher withing String#gsub](https://www.ruby-forum.com/t/issue-with-regexp-pattern-matcher-withing-string-gsub/166741)

<div class="topic-metadata">

**Author:** [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Replies:** 9\
**Last updated:** [April 29, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/issue-with-regexp-pattern-matcher-withing-string-gsub/166741 "2009-04-29T16:57:14Z")

</div>

I’m having a strange issue I can’t wrap my head around. I’ve posted the full details as a gist here: gsub.rb · GitHub but I will also paste the same contents here for everyones benefit. The pattern matcher in both t…

---

## [Lib-xml + multiple schema validation](https://www.ruby-forum.com/t/lib-xml-multiple-schema-validation/166790)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/lib-xml-multiple-schema-validation/166790 "2009-04-29T16:38:44Z")

</div>

Hi, I have a xml file which contains multiple xsd files in the xsi:location and I want to validate the xml content with all schemas together, basically few of the tags may belong to schema 1 and few others to schema …

---

## [Bluecloth 2.0.1](https://www.ruby-forum.com/t/bluecloth-2-0-1/166783)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/bluecloth-2-0-1/166783 "2009-04-29T15:19:36Z")

</div>

Version 2.0.1 of BlueCloth has been released. BlueCloth is a Ruby implementation of \[Markdown\]\[1\], a text-to-HTML conversion tool for web writers. To quote from the project page: Markdown allows you to write using an …

---

## [JRuby constructor issue or just me?](https://www.ruby-forum.com/t/jruby-constructor-issue-or-just-me/166532)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 7\
**Last updated:** [April 29, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/jruby-constructor-issue-or-just-me/166532 "2009-04-29T13:34:31Z")

</div>

Hi, I can’t figure out why this doesn’t work. I need to do this because I’m initializing the button elements separately within the constructor, but I want to ensure that the button is actually created first. I do th…

---

## [Thread safety and active\_record\_store sessions](https://www.ruby-forum.com/t/thread-safety-and-active-record-store-sessions/166761)

<div class="topic-metadata">

**Author:** [@Andres\_K](https://www.ruby-forum.com/u/Andres_K)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/thread-safety-and-active-record-store-sessions/166761 "2009-04-29T12:38:09Z")

</div>

Hello, I’m having problems using config.threadsafe! and sessions. On the page two flash charts are initialized, both request data from the server using a different action (eg chart\_part1 and chart\_part2). In both of …

---

## [Permaculture again](https://www.ruby-forum.com/t/permaculture-again/166776)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/permaculture-again/166776 "2009-04-29T12:35:48Z")

</div>

Hi list I just stumbled about this Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.\[1\] I guess I cannot hide from anybody …

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

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