# Ruby

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

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

---

## [Ruby's equivalent of PHP explode](https://www.ruby-forum.com/t/rubys-equivalent-of-php-explode/70048)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 15\
**Last updated:** [October 11, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/rubys-equivalent-of-php-explode/70048 "2006-10-11T20:56:39Z")

</div>

What is ruby’s equivalent of PHPs explode? A routine which can breakdown a string and return the results in an array or a routine that can parse an .ini file and return the key value pairs in an array\[key\]=value. Fr…

---

## [ZenTest/autotest - Problem with controller modules?](https://www.ruby-forum.com/t/zentest-autotest-problem-with-controller-modules/71583)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 6\
**Last updated:** [October 11, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/zentest-autotest-problem-with-controller-modules/71583 "2006-10-11T20:52:34Z")

</div>

Using rake, my tests all passed. And using autotest they all passed, until I implemented this test: def test\_vote count = Item.find(1).vote\_count get :vote, :id=\>1, :vote=\>5 @item = Item.find(1) assert\_equal @item.…

---

## [Rake - How to use separate source and build folders](https://www.ruby-forum.com/t/rake-how-to-use-separate-source-and-build-folders/71722)

<div class="topic-metadata">

**Author:** [@barrysfarm](https://www.ruby-forum.com/u/barrysfarm)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/rake-how-to-use-separate-source-and-build-folders/71722 "2006-10-11T19:46:08Z")

</div>

Hello Rubyists, I am new to rake and attempting to use it to build a small C++ project. I made some changes to one of the example rake files from rake.rubyforge.org and I want to have a separate source and build folde…

---

## [New german-language Ruby newsgroup: de.comp.lang.ruby](https://www.ruby-forum.com/t/new-german-language-ruby-newsgroup-de-comp-lang-ruby/71829)

<div class="topic-metadata">

**Author:** [@chrisjo](https://www.ruby-forum.com/u/chrisjo)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 7:32pm UTC](https://www.ruby-forum.com/t/new-german-language-ruby-newsgroup-de-comp-lang-ruby/71829 "2006-10-11T19:32:01Z")

</div>

Hi! Just for the record: There now is a brand new german-language Ruby newsgroup de.comp.lang.ruby. :slight\_smile: Christian

---

## [Performance: Ruby/LDAP vs. ActiveLDAP vs. Net::LDAP](https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 11, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814 "2006-10-11T19:26:00Z")

</div>

Hi everyone, Currently, in an application I’m working on I’m using Ruby/LDAP and ActiveLDAP - and they both work relatively well. But recently I’ve run into some performance snags. So my question is - is there a large …

---

## [Re: ERB as a macro pre-processor?](https://www.ruby-forum.com/t/re-erb-as-a-macro-pre-processor/71822)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/re-erb-as-a-macro-pre-processor/71822 "2006-10-11T18:55:11Z")

</div>

From: Rich M. \[mailto:removed\_email\_address@domain.invalid\] One possibility that occurred to me is to use ERB as a macro pre-processor. \[snip\] eval template.result(binding) Out of curiosity, would there be any ben…

---

## [ERB as a macro pre-processor?](https://www.ruby-forum.com/t/erb-as-a-macro-pre-processor/71744)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 3\
**Last updated:** [October 11, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/erb-as-a-macro-pre-processor/71744 "2006-10-11T17:54:29Z")

</div>

“The Ruby Way” (pp. 43-45) shows a couple of different ways to generate methods dynamically (using eval). Looking at the examples, I began to wonder about different Ways To Do It. One possibility that occurred to me …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/71637)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/71637 "2006-10-11T17:34:22Z")

</div>

Begin forwarded message:

---

## [Ruby FAQ](https://www.ruby-forum.com/t/ruby-faq/71797)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [October 11, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/ruby-faq/71797 "2006-10-11T17:28:20Z")

</div>

The Ruby FAQ cannot be reached: We link to this from the new Ruby site and are getting complaints. Any suggestions? James Edward G. II

---

## [My First Almost Serious Ruby Program - Critique it](https://www.ruby-forum.com/t/my-first-almost-serious-ruby-program-critique-it/71809)

<div class="topic-metadata">

**Author:** [@voipfc](https://www.ruby-forum.com/u/voipfc)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 5:00pm UTC](https://www.ruby-forum.com/t/my-first-almost-serious-ruby-program-critique-it/71809 "2006-10-11T17:00:01Z")

</div>

This is a follow up on what I this posting http://groups.google.co.uk/group/ruby-talk-google/browse\_frm/thread/b58ab3c4876da743/d70309f2a864ed85?lnk=st&q=voipfc&rnum=9&hl=en#d70309f2a864ed85 It is based on info from he…

---

## [Ron 0.1.0 Released](https://www.ruby-forum.com/t/ron-0-1-0-released/71677)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 6\
**Last updated:** [October 11, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/ron-0-1-0-released/71677 "2006-10-11T15:26:03Z")

</div>

Ron version 0.1.0 has been released! http://rubyforge.org/projects/ron Well, who needed another serialization format? Not me, but that’s what I’ve made. Ruby Object Notation (Ron) is a textual format for the represen…

---

## [Singleton classes and Singleton pattern](https://www.ruby-forum.com/t/singleton-classes-and-singleton-pattern/71796)

<div class="topic-metadata">

**Author:** [@wilhelm](https://www.ruby-forum.com/u/wilhelm)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/singleton-classes-and-singleton-pattern/71796 "2006-10-11T15:09:38Z")

</div>

I just happened upon singleton classes, and was wondering two things: There’s no difference between these two codes, right? Is there an advantage or disadvantage over either? Does Ruby put bar() into the same virtu…

---

## [Re: scanning strings, backward?](https://www.ruby-forum.com/t/re-scanning-strings-backward/71794)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/re-scanning-strings-backward/71794 "2006-10-11T15:01:27Z")

</div>

I think Bil just wants to remove part of the line rather than all of it: Remove /dt/i i.e. line.gsub!(//dt/i/, ‘’) Using String::gsub as suggested by Vidar Gem

---

## [Ruva: Pure-ruby toy (J)VM](https://www.ruby-forum.com/t/ruva-pure-ruby-toy-j-vm/71509)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 26\
**Last updated:** [October 11, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/ruva-pure-ruby-toy-j-vm/71509 "2006-10-11T14:57:24Z")

</div>

Hi, For anyone who’s interested in this kind of stuff, I just uploaded my pure-ruby toy JVM to Rubyforge. It’s obviously very slow, but can be useful for seeing how things work or debugging generated classes that won…

---

## [Re: scanning strings, backward?](https://www.ruby-forum.com/t/re-scanning-strings-backward/71792)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/re-scanning-strings-backward/71792 "2006-10-11T14:49:16Z")

</div>

Just to clarify I mean using regular expressions i.e. if line =~ /$\\W/i\\Wdt/ Gem

---

## [Extending Watir::Checkbox class](https://www.ruby-forum.com/t/extending-watir-checkbox-class/71119)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 4\
**Last updated:** [October 11, 2006, 2:38pm UTC](https://www.ruby-forum.com/t/extending-watir-checkbox-class/71119 "2006-10-11T14:38:18Z")

</div>

I have a script which contains class extensions. The Checkbox.test() is obviously just a stub right now, but I’m trying to get my head around the concept. #-- contained in classExtensions.rb module Watir class Check…

---

## [Script to fetch Wikipedia text](https://www.ruby-forum.com/t/script-to-fetch-wikipedia-text/71779)

<div class="topic-metadata">

**Author:** [@Kyrre\_SSiso-8859-1](https://www.ruby-forum.com/u/Kyrre_SSiso-8859-1)\
**Replies:** 4\
**Last updated:** [October 11, 2006, 2:38pm UTC](https://www.ruby-forum.com/t/script-to-fetch-wikipedia-text/71779 "2006-10-11T14:38:02Z")

</div>

Hey! I'm involved in a few research projects, and like to keep my information well organized. I usually get most of it from Wikipedia, however, I hate printing HTML articles to PDF. I’d rather want them in pure, well…

---

## [Re: scanning strings, backward?](https://www.ruby-forum.com/t/re-scanning-strings-backward/71788)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 2:11pm UTC](https://www.ruby-forum.com/t/re-scanning-strings-backward/71788 "2006-10-11T14:11:42Z")

</div>

Or use /$/ to look for what a line ends in? Gem

---

## [TheRubyMine - Cultura Rubyista in Italian](https://www.ruby-forum.com/t/therubymine-cultura-rubyista-in-italian/71783)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 1:21pm UTC](https://www.ruby-forum.com/t/therubymine-cultura-rubyista-in-italian/71783 "2006-10-11T13:21:36Z")

</div>

The Ruby Mine is online at http://therubymine.com The Ruby Mine is a comunity-driven editorial devoted to bringing rubyist culture to Italy. Leave your mark in the new world of Ruby Italia. TheRubyMine | therubymine.…

---

## [Tar.gz and ruby?](https://www.ruby-forum.com/t/tar-gz-and-ruby/71697)

<div class="topic-metadata">

**Author:** [@virgin](https://www.ruby-forum.com/u/virgin)\
**Replies:** 3\
**Last updated:** [October 11, 2006, 12:19pm UTC](https://www.ruby-forum.com/t/tar-gz-and-ruby/71697 "2006-10-11T12:19:48Z")

</div>

hi I’ve started using ruby.How can I read “tar.gz” file without extracting?

---

## [Tk & TkTreeCtrl extension docs](https://www.ruby-forum.com/t/tk-tktreectrl-extension-docs/71714)

<div class="topic-metadata">

**Author:** [@Nigel\_W](https://www.ruby-forum.com/u/Nigel_W)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 11:00am UTC](https://www.ruby-forum.com/t/tk-tktreectrl-extension-docs/71714 "2006-10-11T11:00:17Z")

</div>

Hi folks, can anyone point me at some documentation on how to use the TkTreeCtrl extension. Cheers Nigel

---

## [Typo not going well with memcache](https://www.ruby-forum.com/t/typo-not-going-well-with-memcache/71760)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 10:48am UTC](https://www.ruby-forum.com/t/typo-not-going-well-with-memcache/71760 "2006-10-11T10:48:14Z")

</div>

I was trying to use memcache for session storage in Typo. And i got following error, when user logs into the system. Session ID: Cookie set: is\_admin=yes; path=/ Redirected to http://foobar.com:8002/admin/content Co…

---

## [Re: Question: Ruby application packaging](https://www.ruby-forum.com/t/re-question-ruby-application-packaging/71758)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 10:46am UTC](https://www.ruby-forum.com/t/re-question-ruby-application-packaging/71758 "2006-10-11T10:46:13Z")

</div>

Try rubysript2exe. It’s extremely easy to use in my opinion. ( : Just what I wanted/needed, maybe it could be for you too…? http://www.erikveen.dds.nl/rubyscript2exe/index.html In case you’re getting too bogged down t…

---

## [Mechanize: save and cancel doesn't work in JSPWiki](https://www.ruby-forum.com/t/mechanize-save-and-cancel-doesnt-work-in-jspwiki/71631)

<div class="topic-metadata">

**Author:** [@michele](https://www.ruby-forum.com/u/michele)\
**Replies:** 2\
**Last updated:** [October 11, 2006, 10:22am UTC](https://www.ruby-forum.com/t/mechanize-save-and-cancel-doesnt-work-in-jspwiki/71631 "2006-10-11T10:22:08Z")

</div>

I’m trying to submit data in JSPWiki (edit page). I can read the data in the form, but nothings get saved when I submit the page. Cancel doesn’t work either. I don’t get any errors. There is no JavaScript used to subm…

---

## [Is Rinn (CORBA) working?](https://www.ruby-forum.com/t/is-rinn-corba-working/71749)

<div class="topic-metadata">

**Author:** [@max-lapshin](https://www.ruby-forum.com/u/max-lapshin)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 8:29am UTC](https://www.ruby-forum.com/t/is-rinn-corba-working/71749 "2006-10-11T08:29:54Z")

</div>

Is the package Rinn still supported? I want to communicate with TAO CORBA server, but Rinn seems not to be working now with Ruby 1.8.4. Rinn seems to be the only CORBA binding for ruby, so I have to stay with it. M…

---

## [Mechanize - 0.6.2 (Bridget)](https://www.ruby-forum.com/t/mechanize-0-6-2-bridget/71747)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 8:19am UTC](https://www.ruby-forum.com/t/mechanize-0-6-2-bridget/71747 "2006-10-11T08:19:53Z")

</div>

Mechanize version 0.6.2 (Bridget) is now available. = Description The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follo…

---

## [Question: Ruby application packaging](https://www.ruby-forum.com/t/question-ruby-application-packaging/71743)

<div class="topic-metadata">

**Author:** [@tadatoshi](https://www.ruby-forum.com/u/tadatoshi)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 7:31am UTC](https://www.ruby-forum.com/t/question-ruby-application-packaging/71743 "2006-10-11T07:31:03Z")

</div>

I have a trivial question. I would like to package a Ruby application and run it. What is the convention in Ruby to do so? I tried Gem. I could generate Gem and successfully install it locally. But I don’t know how …

---

## [Milwaukee Ruby Meeting tonight starting between 5:30 and 6:0](https://www.ruby-forum.com/t/milwaukee-ruby-meeting-tonight-starting-between-5-30-and-6-0/71740)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [October 11, 2006, 7:13am UTC](https://www.ruby-forum.com/t/milwaukee-ruby-meeting-tonight-starting-between-5-30-and-6-0/71740 "2006-10-11T07:13:46Z")

</div>

We are going to have a presentation about RailsConf Europe from Dale Busse. For more information see here: http://www.mkerb.org/index.php/Meeting\_10/11/2006 – Tom. – “Nothing will ever be attempted, if all possibl…

---

## [Recovering from errors in net:smtp](https://www.ruby-forum.com/t/recovering-from-errors-in-net-smtp/71724)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 2\
**Last updated:** [October 11, 2006, 6:49am UTC](https://www.ruby-forum.com/t/recovering-from-errors-in-net-smtp/71724 "2006-10-11T06:49:45Z")

</div>

Hi, I’ve got a script that sends reports by email using Net::SMTP. Occassionally I get errors from the mail server (normally rejected addresses) which causes an exception which I catch with rescue. This is in a clas…

---

## [Evaluation in boolean context](https://www.ruby-forum.com/t/evaluation-in-boolean-context/71635)

<div class="topic-metadata">

**Author:** [@jens\_wille](https://www.ruby-forum.com/u/jens_wille)\
**Replies:** 6\
**Last updated:** [October 11, 2006, 5:21am UTC](https://www.ruby-forum.com/t/evaluation-in-boolean-context/71635 "2006-10-11T05:21:36Z")

</div>

hi there! would it be possible to modify how an object gets evaluated in boolean context? i know that by default only nil and false are evaluated as false, all others are true. however, i’d like to change that behavi…

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

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