# Ruby

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

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

---

## [Pipes and flush](https://www.ruby-forum.com/t/pipes-and-flush/105100)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 3\
**Last updated:** [May 26, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/pipes-and-flush/105100 "2007-05-26T15:46:06Z")

</div>

So I wrote a little Ruby script using pipes roughly like this – BEGIN SCRIPT ---- #!/usr/bin/ruby -n def process(line) f = IO.popen(‘some\_executable’, ‘w’) f.puts \<\<END\_INPUT some executable commands #{line} some…

---

## [Erubis 2.3.1 released - a serious bug is fixed in rails\_help](https://www.ruby-forum.com/t/erubis-2-3-1-released-a-serious-bug-is-fixed-in-rails-help/105167)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/erubis-2-3-1-released-a-serious-bug-is-fixed-in-rails-help/105167 "2007-05-26T14:30:59Z")

</div>

Erubis 2.3.1 released. This is a bug fix release. If you are Ruby on Rails user, you should update immediately. http://www.kuwata-lab.com/erubis/ Bugfix: \* A serious bug in 'helpers/rails\_helper.rb' is fixed. You …

---

## [Forward references?](https://www.ruby-forum.com/t/forward-references/105164)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [May 26, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/forward-references/105164 "2007-05-26T14:18:58Z")

</div>

I am trying to figure out what the cleanest way is to express a class that has subclasses. Imagine, if you will: class Foo def initialize @bar = Foo::Bar.new(self) end end class Foo::Bar def initialize(foo) @f…

---

## [ANN: Sequel 0.1.5 Released](https://www.ruby-forum.com/t/ann-sequel-0-1-5-released/105157)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 10:51am UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-5-released/105157 "2007-05-26T10:51:41Z")

</div>

Sequel version 0.1.5 has just been released. This release adds support for multiple joins (thanks Farrel L.) and now supports left outer, right outer, full outer and inner joins. Multiple joins Datasets now support m…

---

## [Refactoring](https://www.ruby-forum.com/t/refactoring/105132)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 2\
**Last updated:** [May 26, 2007, 9:24am UTC](https://www.ruby-forum.com/t/refactoring/105132 "2007-05-26T09:24:34Z")

</div>

Although this particular code is part of some goofing around I am doing in with Rails, I have what I think is some specific ruby questions. If I should take this to the rails list, please let me know. Alos, I am ref…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/105150)

<div class="topic-metadata">

**Author:** [@Juan\_PSSoto](https://www.ruby-forum.com/u/Juan_PSSoto)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 8:16am UTC](https://www.ruby-forum.com/t/no-subject/105150 "2007-05-26T08:16:29Z")

</div>

unsubscribe

---

## [Newbie question: variable method call](https://www.ruby-forum.com/t/newbie-question-variable-method-call/105146)

<div class="topic-metadata">

**Author:** [@kal](https://www.ruby-forum.com/u/kal)\
**Replies:** 2\
**Last updated:** [May 26, 2007, 8:07am UTC](https://www.ruby-forum.com/t/newbie-question-variable-method-call/105146 "2007-05-26T08:07:07Z")

</div>

Is there a way to use the value of a variable to call a method of that name? For example, rather than use the following code to determine which method of the ‘pet’ object to call: if action == “feed” pet.feed elsif…

---

## [Re: Newbie question: variable method call](https://www.ruby-forum.com/t/re-newbie-question-variable-method-call/105148)

<div class="topic-metadata">

**Author:** [@Matthieu\_TC](https://www.ruby-forum.com/u/Matthieu_TC)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 8:06am UTC](https://www.ruby-forum.com/t/re-newbie-question-variable-method-call/105148 "2007-05-26T08:06:28Z")

</div>

Assuming your variable contains a string, try this: method\_name = “feed” pet.send(method\_name) -mats ----- Original Message ---- From: Kal S. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_addr…

---

## [Ruby Libraries](https://www.ruby-forum.com/t/ruby-libraries/105115)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 8\
**Last updated:** [May 26, 2007, 3:52am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115 "2007-05-26T03:52:13Z")

</div>

Hey all, I’ve updated my ruby, and header files are where they should be (thanks to all who replied). But now my problem is that of libraries. I have installed pcap and ruby-libnet (at least I hope it installed) by t…

---

## [Libnet4r](https://www.ruby-forum.com/t/libnet4r/105134)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 2:50am UTC](https://www.ruby-forum.com/t/libnet4r/105134 "2007-05-26T02:50:06Z")

</div>

Hmph. Googling libnet4r returns nothing. Anyone know where I can get some documentation for it? ---------------------------------------------------------------| ~Ari “I don’t suffer from insanity. I enjoy every minut…

---

## [Sending mail with attachments](https://www.ruby-forum.com/t/sending-mail-with-attachments/105082)

<div class="topic-metadata">

**Author:** [@benemson](https://www.ruby-forum.com/u/benemson)\
**Replies:** 3\
**Last updated:** [May 26, 2007, 2:18am UTC](https://www.ruby-forum.com/t/sending-mail-with-attachments/105082 "2007-05-26T02:18:04Z")

</div>

Have been googeling on this one for a bit. There are commercial librarys that do this but is there any open source ones? Ben

---

## [RSpec-1.0.3](https://www.ruby-forum.com/t/rspec-1-0-3/105121)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 1\
**Last updated:** [May 26, 2007, 12:50am UTC](https://www.ruby-forum.com/t/rspec-1-0-3/105121 "2007-05-26T00:50:59Z")

</div>

The RSpec Development Team is pleased to announce the release of RSpec-1.0.3. == Changes This is the compatibility release! Compatible with autotest!!! (As of ZenTest 3.6.0 - see below) Compatible with edge rails (a…

---

## [Net::HTTP - POST and GET in the same request](https://www.ruby-forum.com/t/net-http-post-and-get-in-the-same-request/105116)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [May 26, 2007, 12:32am UTC](https://www.ruby-forum.com/t/net-http-post-and-get-in-the-same-request/105116 "2007-05-26T00:32:57Z")

</div>

I have a peculiar problem where I need to submit POST data to a script which has get variables (script.asp?variable=true) But Net:HTTP seems to have gone to great lengths to prevent this. Obviously, its messy and look…

---

## [\[ANN\] Rassmalog 4.2.0](https://www.ruby-forum.com/t/ann-rassmalog-4-2-0/105081)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-4-2-0/105081 "2007-05-25T22:53:54Z")

</div>

Rassmalog is a static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that are user friendly in both graphical and text-only…

---

## [Printing nil objects](https://www.ruby-forum.com/t/printing-nil-objects/105118)

<div class="topic-metadata">

**Author:** [@finer\_recliner](https://www.ruby-forum.com/u/finer_recliner)\
**Replies:** 3\
**Last updated:** [May 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/printing-nil-objects/105118 "2007-05-25T22:51:48Z")

</div>

hey, im pretty new to ruby and im having trouble. this is not my original code (much longer), but i quickly rewrote the part of the data structure that was creating the problem so i could post it here: i have a node c…

---

## [ANN: Sequel 0.1.4 Released - ODBC adapter and more](https://www.ruby-forum.com/t/ann-sequel-0-1-4-released-odbc-adapter-and-more/105098)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-4-released-odbc-adapter-and-more/105098 "2007-05-25T21:46:40Z")

</div>

Sequel version 0.1.4 has just been released. This release adds an ODBC adapter, handling of multi-line SQL statements and improvements to the schema DSL. ODBC adapter Sequel now includes an ODBC adapter which uses th…

---

## [Re: web apps in Ruby](https://www.ruby-forum.com/t/re-web-apps-in-ruby/105111)

<div class="topic-metadata">

**Author:** [@Nic\_D](https://www.ruby-forum.com/u/Nic_D)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/re-web-apps-in-ruby/105111 "2007-05-25T21:37:38Z")

</div>

No you can’t build webapps using Ruby and yes, it’s only for Windows HTH (Not)

---

## [ZenTest 3.6.0 Released](https://www.ruby-forum.com/t/zentest-3-6-0-released/105106)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/zentest-3-6-0-released/105106 "2007-05-25T20:30:30Z")

</div>

ZenTest version 3.6.0 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools and 1 library: zen…

---

## [Problems with Oracle dB oci8 connectivity](https://www.ruby-forum.com/t/problems-with-oracle-db-oci8-connectivity/105104)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/problems-with-oracle-db-oci8-connectivity/105104 "2007-05-25T19:46:25Z")

</div>

Hello, I need to connect from my Windows server over to an Oracle database in Unix land. I finally got the Oracle client loaded on my server, and, I downloaded and installed the oci8 gem from rubyforge. Here’s the to…

---

## [Web apps in Ruby](https://www.ruby-forum.com/t/web-apps-in-ruby/105087)

<div class="topic-metadata">

**Author:** [@oerten](https://www.ruby-forum.com/u/oerten)\
**Replies:** 7\
**Last updated:** [May 25, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/web-apps-in-ruby/105087 "2007-05-25T18:51:36Z")

</div>

Hello, I’m currently a Windows XP based developer. I checked the Ruby’s official web site and I couldn’t find any info on this. Can you build web applications in Ruby? or is it only windows apps? Thanks,

---

## [Array troubles](https://www.ruby-forum.com/t/array-troubles/105079)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 25, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/array-troubles/105079 "2007-05-25T18:22:19Z")

</div>

I’m converting a Java calculator program I wrote into Ruby–which, just so you know, has been unbelievable with how quickly the language can be learned and implemented and how easy it made programming what had taken mo…

---

## [Wikipedia Bot](https://www.ruby-forum.com/t/wikipedia-bot/104703)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 16\
**Last updated:** [May 25, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/wikipedia-bot/104703 "2007-05-25T18:05:16Z")

</div>

I’m planning on writing a simple Wikipedia Bot, but I’m having a little difficulty. The bot needs to be able to log in to Wikipedia, but I’m not sure if this code is working. It returns the Main Page, which does happe…

---

## [Memory leak](https://www.ruby-forum.com/t/memory-leak/105078)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [May 25, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/memory-leak/105078 "2007-05-25T16:50:34Z")

</div>

Hi I am currently learning to use Ruby-DBI and have a really simple script (pasted below). The problem I am having is that the program seems to be leaking memory! When monitoring it in the activity monitor (MacOSX) I …

---

## [Rails: Does the option :host work in link\_to?](https://www.ruby-forum.com/t/rails-does-the-option-host-work-in-link-to/105069)

<div class="topic-metadata">

**Author:** [@shiwei\_zhang](https://www.ruby-forum.com/u/shiwei_zhang)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/rails-does-the-option-host-work-in-link-to/105069 "2007-05-25T15:56:02Z")

</div>

Hi, I used the following code line in a View file on machine http://xx.test.com:7777: \<%= link\_to “GoToAnotherHost”, { :protocol =\> “http”, :host =\> “app1books.test.com:7777”, :controller =\> “admin”, :action =\> “list…

---

## [Can I do windows shell scripting in ruby?](https://www.ruby-forum.com/t/can-i-do-windows-shell-scripting-in-ruby/104878)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [May 25, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/can-i-do-windows-shell-scripting-in-ruby/104878 "2007-05-25T15:52:59Z")

</div>

Hello, I am totally new to ruby and interested in doing a backup job on windows in ruby. Don’t know if it is possible though! I would need to get backups of Trac and Subversion with their respective admin tools like …

---

## [Odd Regexp Issue](https://www.ruby-forum.com/t/odd-regexp-issue/104927)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 7\
**Last updated:** [May 25, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/odd-regexp-issue/104927 "2007-05-25T15:35:19Z")

</div>

I’m writing a web crawler, and in that crawler I want to remove all scripts in the pages I crawl. I should be able to do a simple gsub!(//,"") right? Well, I do that and unfortunately it doesn’t remove some scripts. …

---

## [Ruby programming challenges and riddles?](https://www.ruby-forum.com/t/ruby-programming-challenges-and-riddles/105027)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 16\
**Last updated:** [May 25, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/ruby-programming-challenges-and-riddles/105027 "2007-05-25T14:50:42Z")

</div>

I recently fell in love with programming riddles and was told that they’re the best way to learn a language. I agree with this statement because a good riddle challenges you to think outside the box, and that’s a grea…

---

## [Problem with Net/HTTP](https://www.ruby-forum.com/t/problem-with-net-http/104996)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 5\
**Last updated:** [May 25, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/problem-with-net-http/104996 "2007-05-25T14:00:34Z")

</div>

Hi all, I am running into a serious problem with a custom library I am building in Ruby. Basically I am writing a Ruby interface to a custom web service that we have here at our company. The problem I am running int…

---

## [I think this is a regexp bug](https://www.ruby-forum.com/t/i-think-this-is-a-regexp-bug/105049)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/i-think-this-is-a-regexp-bug/105049 "2007-05-25T13:53:32Z")

</div>

I’d greatly appreciate if anyone could explain what’s up with this: $KCODE=‘u’ "Ã " =~ /Ã /i =\> 0 "Ã " =~ /\[Ã \]/i =\> 0 “Ä” =~ /Ä/i =\> 0 “Ä” =~ /\[Ä\]/i =\> nil That has to be a bug, right? Maybe thi…

---

## [Ruby tax calculation algorithm/program for federal and state](https://www.ruby-forum.com/t/ruby-tax-calculation-algorithm-program-for-federal-and-state/105003)

<div class="topic-metadata">

**Author:** [@rubyman](https://www.ruby-forum.com/u/rubyman)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/ruby-tax-calculation-algorithm-program-for-federal-and-state/105003 "2007-05-25T12:42:23Z")

</div>

Hello, I was wondering if someone could point me in the right direction as regards Federal and State income tax calculation. I would like to be able to do this without storing the entire tax table(s), but rather cal…

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

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