# Ruby

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

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

---

## [CFP : First Ruby and Rails devroom at Fosdem 2008](https://www.ruby-forum.com/t/cfp-first-ruby-and-rails-devroom-at-fosdem-2008/123243)

<div class="topic-metadata">

**Author:** [@Calamitas](https://www.ruby-forum.com/u/Calamitas)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 11:42am UTC](https://www.ruby-forum.com/t/cfp-first-ruby-and-rails-devroom-at-fosdem-2008/123243 "2007-12-15T11:42:49Z")

</div>

Hi folks, The Belgian Ruby U. Group is happy to announce the first Ruby and Rails devroom at Fosdem 2008. Fosdem is a gathering of Free and Open Source Software developers and the ideal occasion to meet fellow Ruby a…

---

## [Simple way to turn "foo and bar" to "+foo +bar"](https://www.ruby-forum.com/t/simple-way-to-turn-foo-and-bar-to-foo-bar/123183)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 10\
**Last updated:** [December 15, 2007, 10:02am UTC](https://www.ruby-forum.com/t/simple-way-to-turn-foo-and-bar-to-foo-bar/123183 "2007-12-15T10:02:51Z")

</div>

I want to add a slightly hacky feature into my boolean mysql search which lets users write ‘foo and bar’, which is then translated into ‘+foo +bar’ (ie both ‘foo’ and ‘bar’ must be present) before being passed to the …

---

## [ANN: Sequel 0.4.3 Released](https://www.ruby-forum.com/t/ann-sequel-0-4-3-released/123236)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 8:30am UTC](https://www.ruby-forum.com/t/ann-sequel-0-4-3-released/123236 "2007-12-15T08:30:41Z")

</div>

Sequel version 0.4.3 has just been released. This release includes numerous improvements and bug fixes. Here’s a list of the changes: === Database-related Added Database#add\_index method, letting you add indexes wit…

---

## [Pros and cons on dynamic method generation](https://www.ruby-forum.com/t/pros-and-cons-on-dynamic-method-generation/123232)

<div class="topic-metadata">

**Author:** [@Judson\_L](https://www.ruby-forum.com/u/Judson_L)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 7:09am UTC](https://www.ruby-forum.com/t/pros-and-cons-on-dynamic-method-generation/123232 "2007-12-15T07:09:28Z")

</div>

So, I know two ways to do something like the following: class Contrived @@examples = {} def self.create\_example\_accessor(name) class\_eval \<\<-EOM def #{name}() return @@examples\[#{name}\] end EOM end def self.rel…

---

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

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 6:54am UTC](https://www.ruby-forum.com/t/encoding-loading/225980 "2007-12-15T06:54:51Z")

</div>

e$B$J$+$@$G$9!#e(B encodinge$B$r\<+F0E\*$K%m!\<%I$9$k$h$&$K$9$k%Q%C%A$G$9!#e(B e$B$H$j$"$($:e(B enc/ENCODING e$B$H$$$&%i%$%V%i%j$re(Brequiree$B$9$k$h$&$K$J$Ce(B e$B$F$$$^$9!#e(Bwin32e$B7O$OL$BP1~$G$9$,!#e(B Index: conf…

---

## [Parsing problems using https and redirects](https://www.ruby-forum.com/t/parsing-problems-using-https-and-redirects/123216)

<div class="topic-metadata">

**Author:** [@Ramiro\_Diaz\_Trepat](https://www.ruby-forum.com/u/Ramiro_Diaz_Trepat)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 6:49am UTC](https://www.ruby-forum.com/t/parsing-problems-using-https-and-redirects/123216 "2007-12-15T06:49:00Z")

</div>

Hello list, I have to develop a simple script to parse some parts of a web site and I thought it could be a good opportunity to start trying Ruby. I found that there are two network libraries that I could supposedly …

---

## [String splitting problem](https://www.ruby-forum.com/t/string-splitting-problem/123160)

<div class="topic-metadata">

**Author:** [@saladinmundi](https://www.ruby-forum.com/u/saladinmundi)\
**Replies:** 4\
**Last updated:** [December 15, 2007, 5:55am UTC](https://www.ruby-forum.com/t/string-splitting-problem/123160 "2007-12-15T05:55:52Z")

</div>

hey guys I’m trying to split an string (which contains various method calls). The result of the splitting of the string should be an array (or something like that) which contains a sequence which an interpreter would…

---

## [2 ruby apps sharing info](https://www.ruby-forum.com/t/2-ruby-apps-sharing-info/123229)

<div class="topic-metadata">

**Author:** [@two55309](https://www.ruby-forum.com/u/two55309)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 5:40am UTC](https://www.ruby-forum.com/t/2-ruby-apps-sharing-info/123229 "2007-12-15T05:40:04Z")

</div>

Anyone have any ideas on having two ruby apps share information from two seperate computers? Basically I have a program that runs on a “server” that I want to send it commands to run on that computer from another. An…

---

## [How to maintain a single network connection? (newbie)](https://www.ruby-forum.com/t/how-to-maintain-a-single-network-connection-newbie/123217)

<div class="topic-metadata">

**Author:** [@curious\_george](https://www.ruby-forum.com/u/curious_george)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 4:31am UTC](https://www.ruby-forum.com/t/how-to-maintain-a-single-network-connection-newbie/123217 "2007-12-15T04:31:12Z")

</div>

Hi, I am a beginner to Ruby, having come over from the Java side of things. I am writing a simple script to familiarize myself with the Net-SSH and Net-SFTP libraries. I want to split my script into several different …

---

## [Browser Compatibility Chart](https://www.ruby-forum.com/t/browser-compatibility-chart/123185)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 4:24am UTC](https://www.ruby-forum.com/t/browser-compatibility-chart/123185 "2007-12-15T04:24:44Z")

</div>

Hi ya. Does anybody have a nice browser compatibility chart? What works in a what browser? That you use in your ruby project? Or a link to a site that has one? Could have a list of html or css things, and how they …

---

## [Combinatorial testing](https://www.ruby-forum.com/t/combinatorial-testing/123228)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 3:54am UTC](https://www.ruby-forum.com/t/combinatorial-testing/123228 "2007-12-15T03:54:53Z")

</div>

I ran across an interesting article today on so-called “combinatorial” testing. Enjoy! http://www.nist.gov/public\_affairs/techbeat/tb2007\_1212.htm#bugs

---

## [Help with timeout and IO.popen (newb)](https://www.ruby-forum.com/t/help-with-timeout-and-io-popen-newb/123227)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 3:53am UTC](https://www.ruby-forum.com/t/help-with-timeout-and-io-popen-newb/123227 "2007-12-15T03:53:07Z")

</div>

Hello Folks. I’m running ruby 1.8.6 on Solaris 10 i86pc. I have a script where I use IO.popen to execute some system commands. I want to timeout the execution of the system commands if they take too long to execute…

---

## [Is the gems-repository down at the moment?](https://www.ruby-forum.com/t/is-the-gems-repository-down-at-the-moment/123138)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 3:49am UTC](https://www.ruby-forum.com/t/is-the-gems-repository-down-at-the-moment/123138 "2007-12-15T03:49:37Z")

</div>

Hi, I tried installing the rails-gem today: \[10:21:55\]bash:~$ sudo gem install rails -y Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (OpenURI::HTTPError) 404 Not Found …

---

## [How to display an oracle trigger programatically](https://www.ruby-forum.com/t/how-to-display-an-oracle-trigger-programatically/123225)

<div class="topic-metadata">

**Author:** [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 2:56am UTC](https://www.ruby-forum.com/t/how-to-display-an-oracle-trigger-programatically/123225 "2007-12-15T02:56:22Z")

</div>

Is there a way to display an Oracle trigger programatically? The only way I know how to display a trigger is to use toad’s gui, but i want to loop through all triggers and dump trigger contents to a file using a batc…

---

## [Each with previous?](https://www.ruby-forum.com/t/each-with-previous/123168)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 6\
**Last updated:** [December 15, 2007, 12:59am UTC](https://www.ruby-forum.com/t/each-with-previous/123168 "2007-12-15T00:59:26Z")

</div>

I’m going through lots of data where the result of the current is affected by the previous element. So what I would need is an “each\_with\_previous {|current, prev|}” …to make it a bit more readable. Is there any built…

---

## [Encrypt using ruby depcrypt using VB](https://www.ruby-forum.com/t/encrypt-using-ruby-depcrypt-using-vb/122891)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 12:58am UTC](https://www.ruby-forum.com/t/encrypt-using-ruby-depcrypt-using-vb/122891 "2007-12-15T00:58:16Z")

</div>

Anyone ever try and encrypt something using and decrypt it using VB.NET? I have been trying this for the better part of a week now with no luck. Anyone ever done this and been successful? -T

---

## [Play a Music File](https://www.ruby-forum.com/t/play-a-music-file/119556)

<div class="topic-metadata">

**Author:** [@superfly](https://www.ruby-forum.com/u/superfly)\
**Replies:** 4\
**Last updated:** [December 14, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/play-a-music-file/119556 "2007-12-14T23:51:17Z")

</div>

:smiley: Hello, I was wondering if there was a code that would play a file of music, when called upon? Thanks.

---

## [Test::Unit bug?](https://www.ruby-forum.com/t/test-unit-bug/123195)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/test-unit-bug/123195 "2007-12-14T23:39:48Z")

</div>

Hello, Not sure if anyone’s noticed this before, but there’s bug in Test::Unit’s unit.rb : at\_exit do unless $! || Test::Unit.run? exit Test::Unit::AutoRunner.run end end Can you spot the bug? You have to do Tes…

---

## [Fwd: Programmer Ping-Pong (#150)](https://www.ruby-forum.com/t/fwd-programmer-ping-pong-150/123210)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/fwd-programmer-ping-pong-150/123210 "2007-12-14T23:29:50Z")

</div>

(forwarding to Ruby T. so all can benefit from this code) Begin forwarded message:

---

## [/(?\<foo\>...)/ =~ str assigns foo](https://www.ruby-forum.com/t/foo-str-assigns-foo/123104)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 6\
**Last updated:** [December 14, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/foo-str-assigns-foo/123104 "2007-12-14T22:56:57Z")

</div>

e$B0J2\<$N$h$&$Ke(B named capture e$B$N7k2L$r\<+F0E\*$KJQ?t$KBeF~$5$;$?e(B e$B$$$N$G$9$,$I$&$G$7$g$&$+!#e(B % ./ruby -e ’ /(?\\w+)/ =~ " foo " p word ’ “foo” e$BBeF~$,5/$3$k\>r7o$O!"e(Bnamed capture e$B$r4^$\_!“e(B#{…

---

## [YAML Problem YAML::Object](https://www.ruby-forum.com/t/yaml-problem-yaml-object/123182)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/yaml-problem-yaml-object/123182 "2007-12-14T22:17:10Z")

</div>

This was already saved in my database : c.lawsuit.customer\_service\_location =\> “— !ruby/object:Address \\nattributes: \\n created\_on: 2006-02-24 12:30:19 \\n city: Alex City\\n line1: 441 Saint Bernard Drive\\n zip: “3508…

---

## [Stack overflow by GC in a thread](https://www.ruby-forum.com/t/stack-overflow-by-gc-in-a-thread/123203)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/stack-overflow-by-gc-in-a-thread/123203 "2007-12-14T22:10:01Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % ./ruby -v -rstringio -e ‘s = “a” 10000.times { s = “a”.instance\_eval { @a = StringIO.new(s); self } } Thread.new { GC.start }.join’ ruby 1.9.0 (2007-12-15 patchlevel 0…

---

## [Persistent tuplespace](https://www.ruby-forum.com/t/persistent-tuplespace/123061)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 5\
**Last updated:** [December 14, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/persistent-tuplespace/123061 "2007-12-14T21:19:32Z")

</div>

hi, just trawling google a bit i’ve found a few references to people hacking stuff together to make a persistent rinda, but nothing really conclusive or very solid looking. just wondering if anyone has done any more …

---

## [Comma separated lists syntax error](https://www.ruby-forum.com/t/comma-separated-lists-syntax-error/122962)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/comma-separated-lists-syntax-error/122962 "2007-12-14T20:10:56Z")

</div>

I’m very disappointed that I cannot format my hashes like this { :a =\> 1 , :b =\> 2 , :c =\> 3 } The technique is popular in the haskell community; it has some obvious benefits over the traditional { :a =\> 1, :b =\> …

---

## [Pdf-writer -- Images in simple table](https://www.ruby-forum.com/t/pdf-writer-images-in-simple-table/123188)

<div class="topic-metadata">

**Author:** [@RoR007](https://www.ruby-forum.com/u/RoR007)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/pdf-writer-images-in-simple-table/123188 "2007-12-14T19:31:02Z")

</div>

When using pdf-writer using ruby programming language, simple table always gives option of using text in the rows. I did not have an option to use images inside simple table. Check this link for sample code http://jm…

---

## [Printing result of class method](https://www.ruby-forum.com/t/printing-result-of-class-method/123177)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/printing-result-of-class-method/123177 "2007-12-14T18:41:11Z")

</div>

class Business def some\_method end def some\_other end def self.search\_by\_keyword(businesses, searched\_keyword) businesses.select do |b| b.my\_keywords.include?(searched\_keyword) end return end end Can you plea…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/123179)

<div class="topic-metadata">

**Author:** [@jjames](https://www.ruby-forum.com/u/jjames)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/unsubscribe/123179 "2007-12-14T18:14:13Z")

</div>

unsubscribe Jo James Isothermal Community College 828.286.3636 ext 291 E-mail correspondence to and from this sender may be subject to the North Carolina Public Records law and may be disclosed to third parties. Ì§…

---

## [How to pass values to form action](https://www.ruby-forum.com/t/how-to-pass-values-to-form-action/123122)

<div class="topic-metadata">

**Author:** [@malugu\_satyajit](https://www.ruby-forum.com/u/malugu_satyajit)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/how-to-pass-values-to-form-action/123122 "2007-12-14T16:51:24Z")

</div>

I have some ERB which has two lists like this I have JavaScript that enables one to push one object from one list to the other. So, now I want get all of the selected objects in the second list in my params array.…

---

## [C extension: can rb\_ivar\_set be used to set class variable?](https://www.ruby-forum.com/t/c-extension-can-rb-ivar-set-be-used-to-set-class-variable/123118)

<div class="topic-metadata">

**Author:** [@lianliming](https://www.ruby-forum.com/u/lianliming)\
**Replies:** 5\
**Last updated:** [December 14, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/c-extension-can-rb-ivar-set-be-used-to-set-class-variable/123118 "2007-12-14T16:38:59Z")

</div>

Hi all, This is a question on Ruby C extension. I have been hacking some existed ruby c extension, and found following code: VALUE klass = rb\_define\_class(name, pClass); rb\_ivar\_set(klass, id\_some\_var, someValue); F…

---

## [Method use?](https://www.ruby-forum.com/t/method-use/123167)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/method-use/123167 "2007-12-14T16:34:47Z")

</div>

I have this class method which takes 2 parameter and how can I use it to print the input. def self.search\_by\_keyword(businesses, searched\_keyword) businesses.select do |b| b.my\_keywords.include?(searched\_keyword) e…

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

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