# Ruby

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

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

---

## [Trouble with Marshal](https://www.ruby-forum.com/t/trouble-with-marshal/73775)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/trouble-with-marshal/73775 "2006-10-26T23:37:00Z")

</div>

I’m trying to use Marshal on Windows to cache some results that take a while to generate, and I’m getting some bad results. Using the following simple code… all = RANGE.map{ |i| p4 describe -s #{i} } File.open( ‘desc…

---

## [Using vim for rails and ruby development](https://www.ruby-forum.com/t/using-vim-for-rails-and-ruby-development/73469)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/using-vim-for-rails-and-ruby-development/73469 "2006-10-26T23:37:00Z")

</div>

Hi. Did you see http://platypope.org/yada/emacs-demo/, a demo of using emacs for rails application development? I’m a heavy vim user and want to do the same thing with plugins and commands available in vim. If any v…

---

## [Reopening Classes](https://www.ruby-forum.com/t/reopening-classes/73582)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [October 26, 2006, 11:24pm UTC](https://www.ruby-forum.com/t/reopening-classes/73582 "2006-10-26T23:24:56Z")

</div>

Can someone offer an explaination as to what I’m encountering here… … This code doesn’t work… class Time def \<=\>(other\_time) self.strftime("%H%M%S%Y%m%d").to\_i \<=\> other\_time.strftime("%H%M%S%Y%m%d").to\_i end end …

---

## [Re: What's the difference between send and instance\_eval?](https://www.ruby-forum.com/t/re-whats-the-difference-between-send-and-instance-eval/73754)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 26, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/re-whats-the-difference-between-send-and-instance-eval/73754 "2006-10-26T23:04:52Z")

</div>

I may not understand it well, but I don’t like it. The two methods are so similar that the only way to figure out the difference is to find cases that will make it hard or impossible to use one of them. It should be …

---

## [Some sort of array](https://www.ruby-forum.com/t/some-sort-of-array/73766)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/some-sort-of-array/73766 "2006-10-26T23:00:51Z")

</div>

Well this is happening in a Rails app but thought I’d try here to find some help or guidance. Basically within my web form, multiple text fields take input for the same method. I’m creating seperate records from e…

---

## [Re: Beginning Ruby](https://www.ruby-forum.com/t/re-beginning-ruby/73769)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 10:46pm UTC](https://www.ruby-forum.com/t/re-beginning-ruby/73769 "2006-10-26T22:46:50Z")

</div>

From: phalcos \[mailto:removed\_email\_address@domain.invalid\] Im quite new to Ruby (unexpected heh?) but is currently planning on building a website community with it just in order to see how powerful it accually can b…

---

## [Threads](https://www.ruby-forum.com/t/threads/73538)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 10\
**Last updated:** [October 26, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/threads/73538 "2006-10-26T22:26:47Z")

</div>

I’m rewriting some old Python scripts in Ruby. Just to learn a bit more. I want to thread this code to check websites concurrently. Could somone offer advice? What are reasonable limits on threads in Ruby? ips.each do…

---

## [Auto\_increment model method wont increment but no error?](https://www.ruby-forum.com/t/auto-increment-model-method-wont-increment-but-no-error/73663)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 6\
**Last updated:** [October 26, 2006, 10:02pm UTC](https://www.ruby-forum.com/t/auto-increment-model-method-wont-increment-but-no-error/73663 "2006-10-26T22:02:45Z")

</div>

Hi, i’m trying to get my ChrissMonster model to pull back the value of “eat” in the chriss\_monster table and increment the value by 1. Here’s my controller function: def feed @chriss\_monster = ChrissMonster.find…

---

## [Rote 0.3.4 out now!](https://www.ruby-forum.com/t/rote-0-3-4-out-now/73761)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/rote-0-3-4-out-now/73761 "2006-10-26T22:00:45Z")

</div>

Rote 0.3.4 is now available on Rubyforge (http://rote.rubyforge.org). Rote is a Rake-based textual templating / documentation system. This release (the first in about nine months) mainly applies community patches and …

---

## [Correction, Vancouver Ruby Brigade, November 14th](https://www.ruby-forum.com/t/correction-vancouver-ruby-brigade-november-14th/73760)

<div class="topic-metadata">

**Author:** [@Zed\_ASShaw](https://www.ruby-forum.com/u/Zed_ASShaw)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/correction-vancouver-ruby-brigade-november-14th/73760 "2006-10-26T21:56:45Z")

</div>

Just getting the word out that we’re actually meeting on the 14th (the REAL second Tuesday) not the 7th. I’m sure all of you were waiting on the edge of your Aeron chairs to find out what happens. We have started a d…

---

## [Re: Ruby fs watcher?](https://www.ruby-forum.com/t/re-ruby-fs-watcher/73753)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/re-ruby-fs-watcher/73753 "2006-10-26T21:32:43Z")

</div>

From: removed\_email\_address@domain.invalid I am wondering if somebody could explain me an elegant notification solution? I bet others have better systems (I see many replies to your message that I’ve not yet read) …

---

## [Ruby fs watcher?](https://www.ruby-forum.com/t/ruby-fs-watcher/73742)

<div class="topic-metadata">

**Author:** [@jetienne](https://www.ruby-forum.com/u/jetienne)\
**Replies:** 11\
**Last updated:** [October 26, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/ruby-fs-watcher/73742 "2006-10-26T21:30:42Z")

</div>

Hi, I wrote a script processing some files in a directory: each time there is a new file in a given directory, I do something. So, my problem here is to know when a new file arrived in the dir. What I do now is to tr…

---

## [Question about strings](https://www.ruby-forum.com/t/question-about-strings/73731)

<div class="topic-metadata">

**Author:** [@aladrin](https://www.ruby-forum.com/u/aladrin)\
**Replies:** 6\
**Last updated:** [October 26, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/question-about-strings/73731 "2006-10-26T21:16:40Z")

</div>

Okay, given the following string: “This is Will’s string!” what I’m trying to do is replace the single-tick “’” character with a backslash/single-tick “’”, so I can use use that string in a sql query. To do this in P…

---

## [What's the difference between send and instance\_eval?](https://www.ruby-forum.com/t/whats-the-difference-between-send-and-instance-eval/73344)

<div class="topic-metadata">

**Author:** [@michele](https://www.ruby-forum.com/u/michele)\
**Replies:** 11\
**Last updated:** [October 26, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-send-and-instance-eval/73344 "2006-10-26T21:06:39Z")

</div>

What’s the difference between send and instance\_eval (except the obvious syntax)? I’ve been trying to figure out why Ruby has them both. It seems you can use them intechangeably, at least in the cases I’ve found and t…

---

## [Ruby Design Principles](https://www.ruby-forum.com/t/ruby-design-principles/73746)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/ruby-design-principles/73746 "2006-10-26T20:30:36Z")

</div>

Matzcast on ITConversations? Yukihiro "Matz" Matsumoto | Ruby Design Principles Later,

---

## [Unit testing questions](https://www.ruby-forum.com/t/unit-testing-questions/73738)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/unit-testing-questions/73738 "2006-10-26T20:20:34Z")

</div>

I have been working on a msg4r wrapper that provides a number of messaging clients (i.e. Websphere MQ, ActiveMQ, Stomp) to ruby all with that same API. I have some simple unit tests in place that require the actual me…

---

## [WMI and WIN32OLE issues](https://www.ruby-forum.com/t/wmi-and-win32ole-issues/73744)

<div class="topic-metadata">

**Author:** [@spike](https://www.ruby-forum.com/u/spike)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 8:12pm UTC](https://www.ruby-forum.com/t/wmi-and-win32ole-issues/73744 "2006-10-26T20:12:33Z")

</div>

Hello, Having difficulty pulling information from a remote system with Ruby and WMI. In the past, I’ve used VB.NET for WMI access. Some code ideas have moved over quickly, but others stymie me. For quick inventory ma…

---

## [Best way to automate web browser tasks?](https://www.ruby-forum.com/t/best-way-to-automate-web-browser-tasks/73536)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 13\
**Last updated:** [October 26, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/best-way-to-automate-web-browser-tasks/73536 "2006-10-26T19:02:22Z")

</div>

I know there’s Watir or something… but I’m not using IE (rather Firefox) and I don’t want to “control the browser” per se… Rather I want to automate some repetitive tasks… like go to a form, fill in a couple of field…

---

## [Re: Chunky Bacon](https://www.ruby-forum.com/t/re-chunky-bacon/73728)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/re-chunky-bacon/73728 "2006-10-26T18:14:18Z")

</div>

Yes I know the song! And now the lyrics! I wasn’t sure if it were a vegemite advert or something that had been shown in the US and Aus… Gem

---

## [Bitwise inversion of Bignum](https://www.ruby-forum.com/t/bitwise-inversion-of-bignum/73411)

<div class="topic-metadata">

**Author:** [@ianroddis](https://www.ruby-forum.com/u/ianroddis)\
**Replies:** 4\
**Last updated:** [October 26, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/bitwise-inversion-of-bignum/73411 "2006-10-26T17:48:15Z")

</div>

A bitwise inversion of a Bignum sometimes yields odd results. As tested in 1.8.5: ./ruby -v ruby 1.8.5 (2006-08-25) \[i686-linux\] ./ruby -e 'a= “7fffff00”.hex ; b= “ffffff00”.hex ; printf “%b =\> %b\\n”, a, ~a ; print…

---

## [Ruby and Continuous Integration](https://www.ruby-forum.com/t/ruby-and-continuous-integration/73712)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 3\
**Last updated:** [October 26, 2006, 5:46pm UTC](https://www.ruby-forum.com/t/ruby-and-continuous-integration/73712 "2006-10-26T17:46:15Z")

</div>

Now I’ve read a couple of old posts about this and the usual response is “use Damage Control” but from the looks of it this hasn’t been supported for quite a while… I’m just curious to see if anyone has used Ruby or R…

---

## [RubyOSA 0.1.0](https://www.ruby-forum.com/t/rubyosa-0-1-0/73702)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 1\
**Last updated:** [October 26, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/rubyosa-0-1-0/73702 "2006-10-26T17:30:14Z")

</div>

Hi, I’m pleased to announce the first public release of RubyOSA. RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure. In big words, it allows you to do in Ruby what you could do in AppleS…

---

## [Re: Ruby and Continuous Integration](https://www.ruby-forum.com/t/re-ruby-and-continuous-integration/73721)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/re-ruby-and-continuous-integration/73721 "2006-10-26T17:30:13Z")

</div>

Rational ClearQuest for bugs! And it’s a microsoft (mainly) shop here, so looking forward to modifying source code or creating new nant tasks developers would be more comfortable with CCNET. Also the publishing and C…

---

## [Potential Brit ruby meeting formally Chunky Bacon](https://www.ruby-forum.com/t/potential-brit-ruby-meeting-formally-chunky-bacon/73569)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 10\
**Last updated:** [October 26, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/potential-brit-ruby-meeting-formally-chunky-bacon/73569 "2006-10-26T17:28:12Z")

</div>

Head count for who’d be up for a meeting and where you currently hang your hat please: Gem - Preston Peter H. - Brighton Spooq - London And any topics to discuss: HP sauce and Chunky Bacon (see previous thread for …

---

## [Re: Ruby and Continuous Integration](https://www.ruby-forum.com/t/re-ruby-and-continuous-integration/73719)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 5:24pm UTC](https://www.ruby-forum.com/t/re-ruby-and-continuous-integration/73719 "2006-10-26T17:24:11Z")

</div>

Thanks for the suggestion. ( : Cerberus looks good but I don’t think it can give me what I need. I’ve used CruiseControl before, but not .NET so I should be familiar with it, it’s also one of the most “mature” and act…

---

## [Online quiz website using Ruby/Rails](https://www.ruby-forum.com/t/online-quiz-website-using-ruby-rails/73718)

<div class="topic-metadata">

**Author:** [@user-x](https://www.ruby-forum.com/u/user-x)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/online-quiz-website-using-ruby-rails/73718 "2006-10-26T17:16:10Z")

</div>

\<\> i want to make simple website where students can take online tests, submit new question, able to search question, do rating/polling etc. Are there already any rubyrails examples available to do such, where i can …

---

## [Net::Telnet Question](https://www.ruby-forum.com/t/net-telnet-question/73677)

<div class="topic-metadata">

**Author:** [@mercan01](https://www.ruby-forum.com/u/mercan01)\
**Replies:** 2\
**Last updated:** [October 26, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/net-telnet-question/73677 "2006-10-26T17:10:09Z")

</div>

So I’ve spent the last couple or so writing a rather trivial little ruby script to automate enabling and disabling an access list, mostly to become more familiar with Net::Telnet. I’ve run into an interesting issue I …

---

## [Re: How can my boss take rails seriously with bugs like this](https://www.ruby-forum.com/t/re-how-can-my-boss-take-rails-seriously-with-bugs-like-this/73714)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/re-how-can-my-boss-take-rails-seriously-with-bugs-like-this/73714 "2006-10-26T16:44:07Z")

</div>

No I don’t feel like I was bashed then. Just thought I’d comment that the reaction was very defensive and had probably led to losing someone from the mailing list. Sometimes a more sympathetic and less aggressive appr…

---

## [1.9 Backport?](https://www.ruby-forum.com/t/1-9-backport/73705)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [October 26, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/1-9-backport/73705 "2006-10-26T16:38:06Z")

</div>

Reading: RubyConf 2006 Recap If Ruby 1.9+ won’t be released for over a year, can we backport a few features? Most noteabley #instance\_exec and the ability of a block to take a &block argument --the lack of these exac…

---

## [Re: Pass block instead of here document?](https://www.ruby-forum.com/t/re-pass-block-instead-of-here-document/73636)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 15\
**Last updated:** [October 26, 2006, 3:39pm UTC](https://www.ruby-forum.com/t/re-pass-block-instead-of-here-document/73636 "2006-10-26T15:39:58Z")

</div>

From: Morton G. \[mailto:removed\_email\_address@domain.invalid\] report eat 'burger', 'fries' drink 'beer' be\_merry end def tell( obj, &to\_do ) obj.instance\_eval( &to\_do ) end class Foo def say\_hi p “Hi!” end …

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

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