# Ruby

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

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

---

## [ANN: FlexMock 0.6.0 Released](https://www.ruby-forum.com/t/ann-flexmock-0-6-0-released/92101)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 4:34am UTC](https://www.ruby-forum.com/t/ann-flexmock-0-6-0-released/92101 "2007-04-16T04:34:11Z")

</div>

= FlexMock 0.6.0 Released FlexMock is a flexible mocking library for use in unit testing and behavior specification in Ruby. Version 0.6.0 introduces a number of API enhancements to make testing with mocks even easie…

---

## [Is main an object or a method?](https://www.ruby-forum.com/t/is-main-an-object-or-a-method/92096)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 6\
**Last updated:** [April 16, 2007, 4:04am UTC](https://www.ruby-forum.com/t/is-main-an-object-or-a-method/92096 "2007-04-16T04:04:39Z")

</div>

I was surprised, while reading Satish T.'s ruby tutorial, to discover that main is actually a method – at least, it is according to the Open Classes section of the tutorial: Learn How to Blog and Build Websites for Pr…

---

## [Getting to 100 (#119)](https://www.ruby-forum.com/t/getting-to-100-119/91307)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 56\
**Last updated:** [April 16, 2007, 2:30am UTC](https://www.ruby-forum.com/t/getting-to-100-119/91307 "2007-04-16T02:30:27Z")

</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: …

---

## [PStore bug "Marshal data too short"](https://www.ruby-forum.com/t/pstore-bug-marshal-data-too-short/70176)

<div class="topic-metadata">

**Author:** [@javier\_v](https://www.ruby-forum.com/u/javier_v)\
**Replies:** 5\
**Last updated:** [April 16, 2007, 2:00am UTC](https://www.ruby-forum.com/t/pstore-bug-marshal-data-too-short/70176 "2007-04-16T02:00:25Z")

</div>

Is there any solution to the “Marshal data too short” in pstore? I tried the “a+b” solution, but didn’t work for me. I have version 1.8.3 and tried 1.8.4, nothing happened.

---

## [Ruby Truth Table Generator](https://www.ruby-forum.com/t/ruby-truth-table-generator/92071)

<div class="topic-metadata">

**Author:** [@stephen\_d](https://www.ruby-forum.com/u/stephen_d)\
**Replies:** 3\
**Last updated:** [April 16, 2007, 1:29am UTC](https://www.ruby-forum.com/t/ruby-truth-table-generator/92071 "2007-04-16T01:29:23Z")

</div>

I was working on some code (in Java), which had a somewhat complicated nested pair of if statements. It occurred to me that I could try to do some boolean algebra and see if I could simplify the expression. Since I h…

---

## [Ruby widgets](https://www.ruby-forum.com/t/ruby-widgets/102748)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 1:11am UTC](https://www.ruby-forum.com/t/ruby-widgets/102748 "2007-04-16T01:11:22Z")

</div>

widgets http://teenwag.com/widget

---

## [Assoc method on large array](https://www.ruby-forum.com/t/assoc-method-on-large-array/75979)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 13\
**Last updated:** [April 16, 2007, 12:31am UTC](https://www.ruby-forum.com/t/assoc-method-on-large-array/75979 "2007-04-16T00:31:12Z")

</div>

I am trying to invoke the assoc method on a large array. It seems to return nil, although I can verify the elements I am querying against. If I try the same operation with a smaller recordset the assoc method seems to…

---

## [Rubyscript2exe.rb question](https://www.ruby-forum.com/t/rubyscript2exe-rb-question/88602)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [April 15, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-rb-question/88602 "2007-04-15T23:30:09Z")

</div>

anybody seen this: jib:ahoward \> ruby rubyscript2exe.rb rq q create Tracing rq … Gathering files… Copying files… Stripping… Creating rq\_linux … jib:ahoward \> rq\_linux q list /tmp/eee.rq\_linux.2/bin/ruby: warning:…

---

## [AllInOneRuby 0.2.11](https://www.ruby-forum.com/t/allinoneruby-0-2-11/92087)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/allinoneruby-0-2-11/92087 "2007-04-15T23:28:09Z")

</div>

I’ve released AllInOneRuby 0.2.11. AllInOneRuby creates an Windows or Linux executable that includes both the Ruby interpreter and the runtime libraries. Why? Because it’s sometimes not easy, or allowed to do a compl…

---

## [Mechanize 0.6.8 Released](https://www.ruby-forum.com/t/mechanize-0-6-8-released/92083)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/mechanize-0-6-8-released/92083 "2007-04-15T22:59:07Z")

</div>

mechanize version 0.6.8 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, …

---

## [Idiom wanted (now hiring!)](https://www.ruby-forum.com/t/idiom-wanted-now-hiring/91897)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 28\
**Last updated:** [April 15, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/idiom-wanted-now-hiring/91897 "2007-04-15T21:23:52Z")

</div>

Is there a cool way to do this without calling the function twice?: a = func(b) unless func(b).nil? (AKA) a = func(b) if func(b)

---

## [Editing on the command line](https://www.ruby-forum.com/t/editing-on-the-command-line/92067)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [April 15, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/editing-on-the-command-line/92067 "2007-04-15T20:39:47Z")

</div>

I want to output some text to the the terminal and allow the user to edit it. Like the ability you get when using irb and go back in the history. Basically a readline but the outputted text would be editable instead…

---

## [A good Ruby book and a good Ruby blog](https://www.ruby-forum.com/t/a-good-ruby-book-and-a-good-ruby-blog/92078)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/a-good-ruby-book-and-a-good-ruby-blog/92078 "2007-04-15T20:32:46Z")

</div>

Came across both of these recently. The book is “Enterprise Integration with Ruby” by Maik Schmidt, published by the Pragmatic Bookshelf. I wrote a short review of it here: Incidentally, Steve Vinoski of IONA, a mi…

---

## [Using 'require'](https://www.ruby-forum.com/t/using-require/87474)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 12\
**Last updated:** [April 15, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/using-require/87474 "2007-04-15T18:30:35Z")

</div>

A simple question . . . I wrote a little Ruby script that defines budgetary periods during the course of a year. This is for my company’s budget schedule. There are 13 budget periods during any year. Anyway, I did thi…

---

## [Re: Computer Science Math - For the Uninitiated](https://www.ruby-forum.com/t/re-computer-science-math-for-the-uninitiated/92059)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/re-computer-science-math-for-the-uninitiated/92059 "2007-04-15T16:49:55Z")

</div>

Dear Bryan, maybe you’ll find it helpful to have a look at the algorithms described in Wikipedia, e.g. , \_http://en.wikipedia.org/Bubble\_sort\_ (http://en.wikipedia.org/Bubble\_sort) . You’ll find a description of …

---

## [jEdit as an IDE](https://www.ruby-forum.com/t/jedit-as-an-ide/92050)

<div class="topic-metadata">

**Author:** [@Sean\_McFarland](https://www.ruby-forum.com/u/Sean_McFarland)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/jedit-as-an-ide/92050 "2007-04-15T14:58:22Z")

</div>

Hello, I was just wondering if anyone out there has used jEdit as a Ruby IDE, and if so, what their overall opinion was? Thanks for your time, Sean McFarland

---

## [Setting Rmagick resolution when reading in an image?](https://www.ruby-forum.com/t/setting-rmagick-resolution-when-reading-in-an-image/92057)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/setting-rmagick-resolution-when-reading-in-an-image/92057 "2007-04-15T14:43:21Z")

</div>

Dear all, I am having problems when reading in an image (PS/PDF/TIF): I need to read in images of these formats, cut them in two and export them. Unfortunately, using im=Magick::Image.read(filename).first produces o…

---

## [Ruby Install on VPS Server](https://www.ruby-forum.com/t/ruby-install-on-vps-server/92054)

<div class="topic-metadata">

**Author:** [@Alarustic](https://www.ruby-forum.com/u/Alarustic)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/ruby-install-on-vps-server/92054 "2007-04-15T13:54:17Z")

</div>

I’m wondering if anyone has any tips to help me install Ruby on my Linux VPS Server? The situation is my host does not actually offer support for Ruby but they’ve said since I have SSH access I can install it myself. …

---

## [About finding subclasses](https://www.ruby-forum.com/t/about-finding-subclasses/92048)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 5\
**Last updated:** [April 15, 2007, 10:40am UTC](https://www.ruby-forum.com/t/about-finding-subclasses/92048 "2007-04-15T10:40:45Z")

</div>

for a given class, find all subclasses i found the solution (by pit capitain) at http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/e812c7cef446a96 , it works, but i don’t understand it. require “enum…

---

## [How does Ruby VM works?](https://www.ruby-forum.com/t/how-does-ruby-vm-works/91685)

<div class="topic-metadata">

**Author:** [@visaolive](https://www.ruby-forum.com/u/visaolive)\
**Replies:** 10\
**Last updated:** [April 15, 2007, 9:24am UTC](https://www.ruby-forum.com/t/how-does-ruby-vm-works/91685 "2007-04-15T09:24:39Z")

</div>

I want to read about RVM, how does ruby handle threads, the interface with the OS, and some other stuff, any low level book/paper recommended? Thanks

---

## [Not substitution \\0, etc. in String.sub?](https://www.ruby-forum.com/t/not-substitution-0-etc-in-string-sub/92042)

<div class="topic-metadata">

**Author:** [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Replies:** 1\
**Last updated:** [April 15, 2007, 8:54am UTC](https://www.ruby-forum.com/t/not-substitution-0-etc-in-string-sub/92042 "2007-04-15T08:54:37Z")

</div>

I have a string that happens to contain ‘\\0’, which I need to substitute for a %x flag a la sprintf. Unfortunately, the ‘\\0’ gets substituted for the initial match. So, this: path = ‘C:\\Artist\\Album\\01 Title.mp3’ p…

---

## [Help with call\_stack](https://www.ruby-forum.com/t/help-with-call-stack/92044)

<div class="topic-metadata">

**Author:** [@Benjamin\_Paul\_Kay](https://www.ruby-forum.com/u/Benjamin_Paul_Kay)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 6:20am UTC](https://www.ruby-forum.com/t/help-with-call-stack/92044 "2007-04-15T06:20:23Z")

</div>

Hi! I’m new to the mailing list, and I was hoping to get some help with call\_stack. I’m running Ruby 1.8.5, and I’ve installed the call\_stack-0.1.0.0 gem. Here’s a quick test file, test.rb: require ‘call\_stack’ call…

---

## [Help building Ruby 1.9 on Windows](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 6\
**Last updated:** [April 15, 2007, 3:09am UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243 "2007-04-15T03:09:11Z")

</div>

I am looking for some advice on building Ruby 1.9 on windows. Following the instructions found in this thread http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/184380, I have managed to get pretty far but …

---

## [Counting pairs of newline characters in a string](https://www.ruby-forum.com/t/counting-pairs-of-newline-characters-in-a-string/92036)

<div class="topic-metadata">

**Author:** [@celldee](https://www.ruby-forum.com/u/celldee)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 2:01am UTC](https://www.ruby-forum.com/t/counting-pairs-of-newline-characters-in-a-string/92036 "2007-04-15T02:01:09Z")

</div>

I have a string that is text read in from a file. Within it there are pairs of newline characters and I want to count how many there are. Here is an irb example:- irb(main):001:0\> str = “bob irb(main):002:0” irb(mai…

---

## [Re: What is your favourite IDE?](https://www.ruby-forum.com/t/re-what-is-your-favourite-ide/91798)

<div class="topic-metadata">

**Author:** [@scoundrel](https://www.ruby-forum.com/u/scoundrel)\
**Replies:** 14\
**Last updated:** [April 15, 2007, 1:12am UTC](https://www.ruby-forum.com/t/re-what-is-your-favourite-ide/91798 "2007-04-15T01:12:07Z")

</div>

Komodo (win)

---

## [Nuby question on using C++ with Swig - issues with cout](https://www.ruby-forum.com/t/nuby-question-on-using-c-with-swig-issues-with-cout/91983)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 14, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/nuby-question-on-using-c-with-swig-issues-with-cout/91983 "2007-04-14T21:25:51Z")

</div>

I am looking into using Swig to bring some C++ libraries into Ruby. I’m not extremely C++ proficient, but know the basics. Anyway, I’m having issues with using “cout” within Swig. I’ve put together a small test case…

---

## [More free books from Apress](https://www.ruby-forum.com/t/more-free-books-from-apress/91958)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/more-free-books-from-apress/91958 "2007-04-14T20:50:49Z")

</div>

If you haven’t already seen it, the April blogging contest from Apress and On Ruby is up at: On Ruby: April Bloggin Contest Head on over, and join the fun. The winning blog post wins three free Apress books.

---

## [RCR debug](https://www.ruby-forum.com/t/rcr-debug/91928)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 5\
**Last updated:** [April 14, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/rcr-debug/91928 "2007-04-14T19:41:45Z")

</div>

Hi list this is incredibly simple, but I just wanted to know what you think about it. I really often write the following code puts if $DEBUG I guess you all do that to some extent, James just talked a newbie into …

---

## [Trouble with or](https://www.ruby-forum.com/t/trouble-with-or/92025)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 3\
**Last updated:** [April 14, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/trouble-with-or/92025 "2007-04-14T19:25:43Z")

</div>

hello there, i am having a problem with a simple thing. i have this ( trying to divide up a list into three more or less equal columns ) i += 1 if i == @sites.length / 3.to\_i or i == (@sites.length / 3).to\_i \* 2 i…

---

## [Ruby on Rails & DHTML](https://www.ruby-forum.com/t/ruby-on-rails-dhtml/92016)

<div class="topic-metadata">

**Author:** [@SunRaySon](https://www.ruby-forum.com/u/SunRaySon)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-dhtml/92016 "2007-04-14T18:21:40Z")

</div>

Hi Everyone, I have been playing around with ruby and I am comfortable with it. I had been working with generating some web pages. I had looked at erb, erubis, haml and markaby. I feel comfortable with all of them. My …

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

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