# Ruby

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

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

---

## [Ruby Newcomer](https://www.ruby-forum.com/t/ruby-newcomer/182022)

<div class="topic-metadata">

**Author:** [@gtr32x](https://www.ruby-forum.com/u/gtr32x)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/ruby-newcomer/182022 "2010-01-21T19:21:15Z")

</div>

Just recently installed Ruby for the purpose of developing extensions for SpiceWorks. However, this is my first ever experience with Ruby since its update to its new form (last time touched was at least 3 years ago wh…

---

## [Code Review: alive](https://www.ruby-forum.com/t/code-review-alive/182027)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/code-review-alive/182027 "2010-01-21T19:09:21Z")

</div>

FYI Review tfpt review “/shelveset:alive;REDMOND\\jdeville” Comment : marks “Thread#alive? reports aborting on a killed thread” as unstable

---

## [FYI review - Updating to Rails 2.3.5](https://www.ruby-forum.com/t/fyi-review-updating-to-rails-2-3-5/182026)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/fyi-review-updating-to-rails-2-3-5/182026 "2010-01-21T19:05:15Z")

</div>

tfpt review /shelveset:rails;sborde Replaces the gems, and adjusts the tests to work with 2.3.5.

---

## [Help Please!](https://www.ruby-forum.com/t/help-please/181966)

<div class="topic-metadata">

**Author:** [@winkel](https://www.ruby-forum.com/u/winkel)\
**Replies:** 5\
**Last updated:** [January 21, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/help-please/181966 "2010-01-21T16:20:50Z")

</div>

Hi everyone, I asking for some help here If you could take a look of this code, I can’t find the problem 'cause it’s not working I’m using Netbeans 6.7, and I copied it from a example: Product Type \<%= select 'prod…

---

## [Unexpected Hash#first return under Ruby1.9](https://www.ruby-forum.com/t/unexpected-hash-first-return-under-ruby1-9/182010)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 11\
**Last updated:** [January 21, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/unexpected-hash-first-return-under-ruby1-9/182010 "2010-01-21T16:08:28Z")

</div>

Hi, Ruby 1.9 implements “first” method for Hash (as Hash are ordered now). However the return value if a bit annoying for me. A real example: irb\> h = {“aaa”=\>“AAA”, “bbb”=\>“BBB”} irb\> h.first \[“aaa”, “AAA”\] I want…

---

## [Sending form data to a text file](https://www.ruby-forum.com/t/sending-form-data-to-a-text-file/181958)

<div class="topic-metadata">

**Author:** [@4ltr](https://www.ruby-forum.com/u/4ltr)\
**Replies:** 4\
**Last updated:** [January 21, 2010, 2:36pm UTC](https://www.ruby-forum.com/t/sending-form-data-to-a-text-file/181958 "2010-01-21T14:36:34Z")

</div>

Hi, I am having problems trying to get input from a html form and write the form data to a text file called visitor\_log. Here’s the code I have been working on: login.rb: #!/usr/local/ruby/bin/ruby require “cgi” c…

---

## [New version 2.0.0 of IBM\_DB- The Rails Adapter/Ruby driver for DB2 and Informix now available](https://www.ruby-forum.com/t/new-version-2-0-0-of-ibm-db-the-rails-adapter-ruby-driver-for-db2-and-informix-now-available/182011)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/new-version-2-0-0-of-ibm-db-the-rails-adapter-ruby-driver-for-db2-and-informix-now-available/182011 "2010-01-21T14:35:59Z")

</div>

Hi All, New version 2.0.0 of the IBM\_DB gem is been released. This release of the gem adds support for ActiveRecord to use parameterized SQL Queries with DB2. With this support you can now reap more performance benefi…

---

## [Multi-threaded DBI causing segfault](https://www.ruby-forum.com/t/multi-threaded-dbi-causing-segfault/181953)

<div class="topic-metadata">

**Author:** [@Xavier\_NoSSSSlle](https://www.ruby-forum.com/u/Xavier_NoSSSSlle)\
**Replies:** 3\
**Last updated:** [January 21, 2010, 11:02am UTC](https://www.ruby-forum.com/t/multi-threaded-dbi-causing-segfault/181953 "2010-01-21T11:02:56Z")

</div>

Hello, I’m new to this mailing list, so do not hesitate to tell me if everything’s ok with my post. I’m using DBI to connect to a MySQL database. I tried to reduce my code as much as possible, knowing that: constan…

---

## [Follow TCP Stream in Ruby](https://www.ruby-forum.com/t/follow-tcp-stream-in-ruby/181990)

<div class="topic-metadata">

**Author:** [@THAKUR\_PRASHANT\_SIN](https://www.ruby-forum.com/u/THAKUR_PRASHANT_SIN)\
**Replies:** 4\
**Last updated:** [January 21, 2010, 11:01am UTC](https://www.ruby-forum.com/t/follow-tcp-stream-in-ruby/181990 "2010-01-21T11:01:46Z")

</div>

Hi, I am looking for implementing “Follow TCP stream” functionality of Wireshark in Ruby. Any idea are welcome ? Thanks & Regards, Prashant

---

## [About variable name and method name](https://www.ruby-forum.com/t/about-variable-name-and-method-name/181978)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 9:43am UTC](https://www.ruby-forum.com/t/about-variable-name-and-method-name/181978 "2010-01-21T09:43:54Z")

</div>

class Array def atoh hash = Hash.new if size % 2 != 0 raise “size must be odd” end 0.step(size-1,2) do |c| hash\[self\[c\]\] = self\[c+1\] end hash end end For “size” in the code above, we know it’s a self.size meth…

---

## [Capture output in real time](https://www.ruby-forum.com/t/capture-output-in-real-time/137208)

<div class="topic-metadata">

**Author:** [@pozza](https://www.ruby-forum.com/u/pozza)\
**Replies:** 9\
**Last updated:** [January 21, 2010, 9:27am UTC](https://www.ruby-forum.com/t/capture-output-in-real-time/137208 "2010-01-21T09:27:31Z")

</div>

I’m wondering how to capture data written to stdout (or stderr) in real time using popen3. The problem occurs with the following sample scripts: sleep.rb puts “before sleep” sleep 3 puts “after sleep” capture.rb r…

---

## [What does the followed\_by construct mean?](https://www.ruby-forum.com/t/what-does-the-followed-by-construct-mean/181910)

<div class="topic-metadata">

**Author:** [@palidanx](https://www.ruby-forum.com/u/palidanx)\
**Replies:** 3\
**Last updated:** [January 21, 2010, 7:33am UTC](https://www.ruby-forum.com/t/what-does-the-followed-by-construct-mean/181910 "2010-01-21T07:33:23Z")

</div>

I’m reading some code and it states… #this can only occur on the person who was invited def make\_friends(invited, inviter) transaction do if user.followed\_by? target what does user.followed\_by mean? thanks! -dan

---

## [Code Review: crit\_argf](https://www.ruby-forum.com/t/code-review-crit-argf/181975)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 6:38am UTC](https://www.ruby-forum.com/t/code-review-crit-argf/181975 "2010-01-21T06:38:57Z")

</div>

tfpt review “/shelveset:crit\_argf;REDMOND\\jdeville” Comment : cleans up a few critical tags: re-patches mock.rb with the patch to remove respond\_to last implements a basic implementation of ARGF, there are many hole…

---

## [Code Review: open](https://www.ruby-forum.com/t/code-review-open/181973)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 2:44am UTC](https://www.ruby-forum.com/t/code-review-open/181973 "2010-01-21T02:44:17Z")

</div>

tfpt review “/shelveset:open;REDMOND\\sborde” Comment : open("|shell\_command") Removes other tags for Kernel.open

---

## [Extending ruby: ruby\_init() instacloses process](https://www.ruby-forum.com/t/extending-ruby-ruby-init-instacloses-process/181976)

<div class="topic-metadata">

**Author:** [@Nilbert\_N](https://www.ruby-forum.com/u/Nilbert_N)\
**Replies:** 6\
**Last updated:** [January 21, 2010, 2:40am UTC](https://www.ruby-forum.com/t/extending-ruby-ruby-init-instacloses-process/181976 "2010-01-21T02:40:12Z")

</div>

Hey guys, I am extending ruby in a C++ program. I have all the headers set up and stuff so it compiles without error, but I do get one warning (MSVC Express 2008): c:\\visual studio 2008\\projects\\remoteexec\\remoteexec\\…

---

## [Write a Ruby or Python web-app and win cash!](https://www.ruby-forum.com/t/write-a-ruby-or-python-web-app-and-win-cash/181977)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 2:17am UTC](https://www.ruby-forum.com/t/write-a-ruby-or-python-web-app-and-win-cash/181977 "2010-01-21T02:17:23Z")

</div>

MIX 10K Smart Coding Challenge: http://mix10k.visitmix.com 9 days left, an counting, to enter your minimalist creation into the MIX 10K Smart Coding Challenge. I can be anything you want, it just has to be less than 1…

---

## [Looking for object.inherits?(Classname)](https://www.ruby-forum.com/t/looking-for-object-inherits-classname/181908)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 12\
**Last updated:** [January 21, 2010, 1:16am UTC](https://www.ruby-forum.com/t/looking-for-object-inherits-classname/181908 "2010-01-21T01:16:31Z")

</div>

I’m looking for a way to make sure an object being passed is in some class family, or to say it otherwise, inherits some specific class, but not necessarily directly. In fact, it could be a great-great-grandparent c…

---

## [Google wave group](https://www.ruby-forum.com/t/google-wave-group/181969)

<div class="topic-metadata">

**Author:** [@angel](https://www.ruby-forum.com/u/angel)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 12:16am UTC](https://www.ruby-forum.com/t/google-wave-group/181969 "2010-01-21T00:16:40Z")

</div>

hi everybody… I don’t know if this is the better place for post it…but I’ve created a wave for everybody wanna learn ruby…yes…google wave…that piece of ---- than anybody know how take advantage…I think it could be a g…

---

## [AutoSpec exits after executing](https://www.ruby-forum.com/t/autospec-exits-after-executing/181837)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/autospec-exits-after-executing/181837 "2010-01-20T22:54:15Z")

</div>

Hello, I’ve been trying to get AutoSpec to work again. I execute it using the following command: pretty:Kona Ben$ ir autospec However, it just exits. Any ideas why? Thanks Ben

---

## [WxRuby and DialogBlocks Questions](https://www.ruby-forum.com/t/wxruby-and-dialogblocks-questions/181951)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [January 20, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/wxruby-and-dialogblocks-questions/181951 "2010-01-20T21:56:15Z")

</div>

Hi everyone, I’m using DialogBlocks as my GUI designer for creating XRC files that I will use with WxRuby and wx\_sugar to create my UI ruby file with. I’ve gone through several tutorials to understand how Ruby and WX…

---

## [Encoding problems](https://www.ruby-forum.com/t/encoding-problems/181959)

<div class="topic-metadata">

**Author:** [@nax](https://www.ruby-forum.com/u/nax)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/encoding-problems/181959 "2010-01-20T21:30:54Z")

</div>

Hi all. I have a database (sqlite) with Ansi - LatÃ­n I codepage. With a Select statement in Ruby, the data returned are in UTF-8. E. g.: Database: ocupaciÃ³n Ruby : ocupaci\\xC3\\xB3n How can I display the correct…

---

## [Application Development Manager-Chicago](https://www.ruby-forum.com/t/application-development-manager-chicago/181957)

<div class="topic-metadata">

**Author:** [@chiheadhunter](https://www.ruby-forum.com/u/chiheadhunter)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/application-development-manager-chicago/181957 "2010-01-20T20:12:01Z")

</div>

All, I am working with a financial client in the Chicago loop whom is looking to fill a strategic position on their team. They are looking for a Sr. Software Engineer/Manager to be groomed into the role of Applicatio…

---

## [SNMP in rails](https://www.ruby-forum.com/t/snmp-in-rails/181802)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 5\
**Last updated:** [January 20, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/snmp-in-rails/181802 "2010-01-20T18:54:26Z")

</div>

Hello, Can any one please help me in converting this php code into ruby on rails? $oid = ‘1.3.6.1.4.1.318.1.1.12.3.3.1.1.4’; $row\[‘address’\] = xx.xx.xx.xx //contains an IP address. $row\[‘snmp\_community\_str’\]…

---

## [Working with SNMP](https://www.ruby-forum.com/t/working-with-snmp/181879)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 7\
**Last updated:** [January 20, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/working-with-snmp/181879 "2010-01-20T18:47:58Z")

</div>

Hello, I am working with SNMP in ruby, I have installed the SNMP library and written these two functions for Set and Get request but when i rub this I am getting SNMP::RequestTimeout: host xx.xx.xx.xx.xx not respondi…

---

## [Its' a general problem](https://www.ruby-forum.com/t/its-a-general-problem/181931)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 11\
**Last updated:** [January 20, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/its-a-general-problem/181931 "2010-01-20T15:09:32Z")

</div>

After update of rack, will\_paginate and rspec rake sys: Missing the Rails 2.3.5 gem. Please gem install -v=2.3.5 rails, update your RAILS\_GEM\_VERSION setting in config/environment.rb for the Rails version you do have …

---

## [Problem with tmm1's amqp and mechanize](https://www.ruby-forum.com/t/problem-with-tmm1s-amqp-and-mechanize/181885)

<div class="topic-metadata">

**Author:** [@Yuri\_Lapitsky](https://www.ruby-forum.com/u/Yuri_Lapitsky)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/problem-with-tmm1s-amqp-and-mechanize/181885 "2010-01-20T12:48:28Z")

</div>

Hello, I have standalone Ruby application that subscribes for messages AMQP queue (RabbitMQ). It’s supposed to visit some site when message is received. Everything works ok with Ruby’s standard http client. However w…

---

## [Help on a script](https://www.ruby-forum.com/t/help-on-a-script/181920)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 5\
**Last updated:** [January 20, 2010, 12:47pm UTC](https://www.ruby-forum.com/t/help-on-a-script/181920 "2010-01-20T12:47:18Z")

</div>

Hi, I just wrote a small script to find the files in current directory and its child directories which include the word “ruby”. But it can’t work, please help point out my error, thanks. def myfind(path=".") Dir.for…

---

## [Which repository](https://www.ruby-forum.com/t/which-repository/181925)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 10:29am UTC](https://www.ruby-forum.com/t/which-repository/181925 "2010-01-20T10:29:44Z")

</div>

…I have to use, rubyforge or gemcutter? To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [Re: Updated Rails instructions](https://www.ruby-forum.com/t/re-updated-rails-instructions/181924)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 10:21am UTC](https://www.ruby-forum.com/t/re-updated-rails-instructions/181924 "2010-01-20T10:21:32Z")

</div>

I believe console 2 defaults to shift + click and drag to select, and auto-copy on release. I do agree with the request for a better console in windows, though. From: Ivan Porto C. removed\_email\_address@domain.invali…

---

## [Re: InternalsVisibleTo](https://www.ruby-forum.com/t/re-internalsvisibleto/181705)

<div class="topic-metadata">

**Author:** [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 9:57am UTC](https://www.ruby-forum.com/t/re-internalsvisibleto/181705 "2010-01-20T09:57:32Z")

</div>

Jimmy, So I decided to debug this out a bit for myself. Before I go too far, here is how my require headers are setup: require ‘System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ r…

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

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