# Ruby

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

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

---

## [Trouble with threads](https://www.ruby-forum.com/t/trouble-with-threads/129724)

<div class="topic-metadata">

**Author:** [@gmoniey](https://www.ruby-forum.com/u/gmoniey)\
**Replies:** 5\
**Last updated:** [February 21, 2008, 3:55am UTC](https://www.ruby-forum.com/t/trouble-with-threads/129724 "2008-02-21T03:55:39Z")

</div>

I am trying to expand my web crawler to use multiple threads (with mechanize), and I ma having some trouble. It seems that each thread is not creating a local variable, but rather they are sharing the “index” variable…

---

## [Strange Windows warning with IO.popen: The process tried to write to a nonexistent pipe](https://www.ruby-forum.com/t/strange-windows-warning-with-io-popen-the-process-tried-to-write-to-a-nonexistent-pipe/129592)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [February 21, 2008, 3:45am UTC](https://www.ruby-forum.com/t/strange-windows-warning-with-io-popen-the-process-tried-to-write-to-a-nonexistent-pipe/129592 "2008-02-21T03:45:32Z")

</div>

Hi all, Ruby 1.8.6 Windows XP Pro I tried this standalone snippet: io = IO.popen(‘date /t’) Running that with -w I get this warning: The process tried to write to a nonexistent pipe However, if I add a simple “io.…

---

## [Chronic parse problem?](https://www.ruby-forum.com/t/chronic-parse-problem/196598)

<div class="topic-metadata">

**Author:** [@cal](https://www.ruby-forum.com/u/cal)\
**Replies:** 1\
**Last updated:** [February 21, 2008, 2:58am UTC](https://www.ruby-forum.com/t/chronic-parse-problem/196598 "2008-02-21T02:58:00Z")

</div>

Hi all, Using the Chronic.parse method, I see some weird behavior. Perhaps someone can set me straight or confirm that it is indeed weird. Note that the date changes to one day earlier in the last example below. Si…

---

## [Logging 0.7.0 (Quixotic Starfish)](https://www.ruby-forum.com/t/logging-0-7-0-quixotic-starfish/128968)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 4\
**Last updated:** [February 21, 2008, 1:11am UTC](https://www.ruby-forum.com/t/logging-0-7-0-quixotic-starfish/128968 "2008-02-21T01:11:54Z")

</div>

== Logging by Tim P. http://logging.rubyforge.org (the “Quixotic Starfish” release) == Description Logging is a flexible logging library for use in Ruby programs based on the design of Java’s log4j library. It fea…

---

## [Is there any object-oriented File class in ruby?](https://www.ruby-forum.com/t/is-there-any-object-oriented-file-class-in-ruby/129596)

<div class="topic-metadata">

**Author:** [@tom\_33](https://www.ruby-forum.com/u/tom_33)\
**Replies:** 21\
**Last updated:** [February 21, 2008, 1:10am UTC](https://www.ruby-forum.com/t/is-there-any-object-oriented-file-class-in-ruby/129596 "2008-02-21T01:10:09Z")

</div>

I am very new to Ruby and my question is about trying to understand why Ruby is often described as a “pure object-oriented language”, when the core library seems to be quite procedural. For example, the class File see…

---

## [Towards gems - obscure scoping bug](https://www.ruby-forum.com/t/towards-gems-obscure-scoping-bug/129669)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 1\
**Last updated:** [February 21, 2008, 1:07am UTC](https://www.ruby-forum.com/t/towards-gems-obscure-scoping-bug/129669 "2008-02-21T01:07:47Z")

</div>

module A Default = 42 def A::foo end def A::meth1(param = Default) foo {} puts ‘OK’ end def A::meth2(param = Default) puts ‘not OK’ foo { foo {} } end A::meth1() A::meth2() end The first method executes O…

---

## [Permission denied when running Ruby script](https://www.ruby-forum.com/t/permission-denied-when-running-ruby-script/129716)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 2\
**Last updated:** [February 21, 2008, 1:01am UTC](https://www.ruby-forum.com/t/permission-denied-when-running-ruby-script/129716 "2008-02-21T01:01:55Z")

</div>

I think that this question might be due to me lacking some fundamental linux knowledge but please can someone explain to me what is going on here. I have a ruby script that I would like to call via a cron job. I hav…

---

## [Embedding ruby 1.9 using native threads](https://www.ruby-forum.com/t/embedding-ruby-1-9-using-native-threads/128443)

<div class="topic-metadata">

**Author:** [@deb123](https://www.ruby-forum.com/u/deb123)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/embedding-ruby-1-9-using-native-threads/128443 "2008-02-20T23:15:49Z")

</div>

Hi All, I’ve heard that the new ruby interpreter v1.9 is able to handle native OS threads. However, i’ve tried a few different ways of running multiple interpreters in separate threads (on XP), and it doesn’t seem t…

---

## [Ruby 1.9, threads and FreeBSD 5](https://www.ruby-forum.com/t/ruby-1-9-threads-and-freebsd-5/129662)

<div class="topic-metadata">

**Author:** [@cowboy\_x](https://www.ruby-forum.com/u/cowboy_x)\
**Replies:** 7\
**Last updated:** [February 20, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/ruby-1-9-threads-and-freebsd-5/129662 "2008-02-20T22:51:24Z")

</div>

Hi, Considering the following theory code: require “thread” ping = ConditionVariable.new pong = ConditionVariable.new mutex = Mutex.new 1.upto(10) do # 10 threads pong Thread.new do mutex.synchronize do p…

---

## [Regex question](https://www.ruby-forum.com/t/regex-question/129705)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 4\
**Last updated:** [February 20, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/regex-question/129705 "2008-02-20T21:50:15Z")

</div>

So I am scanning through chat logs looking for messages where I mentioned “points”. My current regex is: text.scan /^(.)(\[-+\]?\[0-9\]+\\s+points?)(.)$/i So I’d like each match in 3 groups: The message up until the part…

---

## [Get active selection from tk iwidgets radiobox](https://www.ruby-forum.com/t/get-active-selection-from-tk-iwidgets-radiobox/128905)

<div class="topic-metadata">

**Author:** [@unwen](https://www.ruby-forum.com/u/unwen)\
**Replies:** 8\
**Last updated:** [February 20, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/get-active-selection-from-tk-iwidgets-radiobox/128905 "2008-02-20T19:20:22Z")

</div>

Hi there, I have created a radiobox with various entries and want to read the currently selected entry. For some reason I can’t get it to work. From what I see “get” would be the appropriate method but it expects an…

---

## [Mssql image field: ado returns an array](https://www.ruby-forum.com/t/mssql-image-field-ado-returns-an-array/128140)

<div class="topic-metadata">

**Author:** [@davox](https://www.ruby-forum.com/u/davox)\
**Replies:** 3\
**Last updated:** [February 20, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/mssql-image-field-ado-returns-an-array/128140 "2008-02-20T18:54:23Z")

</div>

Hi, Im trying to get an image out a mssql image type datafield thru DBI:ADO. The problem is that the result returned is an array and not a binary string and thus the image is garbage when i write it to a file. Is ther…

---

## [Ruby 1.9, threads and FreeBSD 5](https://www.ruby-forum.com/t/ruby-1-9-threads-and-freebsd-5/129671)

<div class="topic-metadata">

**Author:** [@cowboy\_x](https://www.ruby-forum.com/u/cowboy_x)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/ruby-1-9-threads-and-freebsd-5/129671 "2008-02-20T18:40:45Z")

</div>

Hi, Considering the following theory code: require “thread” ping = ConditionVariable.new pong = ConditionVariable.new mutex = Mutex.new 1.upto(10) do # 10 threads pong Thread.new do mutex.synchronize do p…

---

## [Ultraviolet 0.10.2 Released](https://www.ruby-forum.com/t/ultraviolet-0-10-2-released/129656)

<div class="topic-metadata">

**Author:** [@Dizan\_V](https://www.ruby-forum.com/u/Dizan_V)\
**Replies:** 4\
**Last updated:** [February 20, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/ultraviolet-0-10-2-released/129656 "2008-02-20T18:17:07Z")

</div>

ultraviolet version 0.10.2 has been released! http://ultraviolet.rubyforge.org Ultraviolet is a syntax highlighting library and engine. It uses TextMate\[http://macromates.com/\] syntax files and parses them using the…

---

## [How to parse a soap xmp result of amazon?](https://www.ruby-forum.com/t/how-to-parse-a-soap-xmp-result-of-amazon/129676)

<div class="topic-metadata">

**Author:** [@jacques](https://www.ruby-forum.com/u/jacques)\
**Replies:** 4\
**Last updated:** [February 20, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-parse-a-soap-xmp-result-of-amazon/129676 "2008-02-20T17:43:31Z")

</div>

hello everybody i’m really new to ruby and i have to step in a existing ruby projects. i want to know what is the best way to access to xml elements. how could i retrieve all BrowseNodeId’s from the following result? …

---

## [Typelib: a C/C++ type/value manipulation library, and dynamic function calls](https://www.ruby-forum.com/t/typelib-a-c-c-type-value-manipulation-library-and-dynamic-function-calls/129641)

<div class="topic-metadata">

**Author:** [@Sylvain\_J](https://www.ruby-forum.com/u/Sylvain_J)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/typelib-a-c-c-type-value-manipulation-library-and-dynamic-function-calls/129641 "2008-02-20T16:39:52Z")

</div>

Typelib 1.0rc1 is out ! Author: Sylvain J. removed\_email\_address@domain.invalid Project page: typelib download | SourceForge.net Documentation: C++ library: typeLib: Typelib: a C++ type and value introspection libr…

---

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

<div class="topic-metadata">

**Author:** [@Margarita\_T](https://www.ruby-forum.com/u/Margarita_T)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/unsubscribe/129665 "2008-02-20T16:30:16Z")

</div>

Please, unsubscribe my. Thanks. M.Tomova

---

## [Is there a clash between gets and ARGV?](https://www.ruby-forum.com/t/is-there-a-clash-between-gets-and-argv/129640)

<div class="topic-metadata">

**Author:** [@ycsunil](https://www.ruby-forum.com/u/ycsunil)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/is-there-a-clash-between-gets-and-argv/129640 "2008-02-20T14:16:02Z")

</div>

Hello all, Here is my small ruby program: if (ARGV\[0\] == ‘add’) puts ‘input something’ gt = gets puts gt else puts ‘fail’ end If I try to execute above program am getting below error: C:\\Documents and Settings\\…

---

## [Instance\_eval problem](https://www.ruby-forum.com/t/instance-eval-problem/129643)

<div class="topic-metadata">

**Author:** [@bitmox](https://www.ruby-forum.com/u/bitmox)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/instance-eval-problem/129643 "2008-02-20T14:10:43Z")

</div>

Hi, I’ ve got problem with instance\_eval. I tried the following with irb: obj = “3” =\> “3” obj.instance\_eval “def a ; puts ‘x’; end” =\> nil obj.a x =\> nil obj = 3 =\> 3 obj.instance\_eval “def a ; put…

---

## [Spec of Rational](https://www.ruby-forum.com/t/spec-of-rational/129388)

<div class="topic-metadata">

**Author:** [@Shin-ichiro\_HARA](https://www.ruby-forum.com/u/Shin-ichiro_HARA)\
**Replies:** 6\
**Last updated:** [February 20, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/spec-of-rational/129388 "2008-02-20T13:52:13Z")

</div>

e$B86$G$9!#e(B nurat-0.0.3 e$B$r85$K;O$a$?$$$H;W$$$^$9!#e(B e$B$$$/$D$+;EMM$K$D$$$F$40U8+$r;G$$$?$$$N$G$9$,!"$^$:e(B Rational(1, 1).integer? e$B$Oe(B true e$B$+e(B false e$B$+!)e(Bfalse e$B$@$H$9$k$H!“J,Jl$,e(B 1 e$…

---

## [Need Help With OptionParser](https://www.ruby-forum.com/t/need-help-with-optionparser/129613)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 10\
**Last updated:** [February 20, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/need-help-with-optionparser/129613 "2008-02-20T13:35:49Z")

</div>

Hello all, I’m wrapping a bunch of scripts with an command-line program, and I’m wanting to use OptionParser to grab some of the options for the wrapper application. Can anyone tell me if it’s possible to rescue all …

---

## [\[ComboBox\] Populate from db table](https://www.ruby-forum.com/t/combobox-populate-from-db-table/129639)

<div class="topic-metadata">

**Author:** [@adaron](https://www.ruby-forum.com/u/adaron)\
**Replies:** 5\
**Last updated:** [February 20, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/combobox-populate-from-db-table/129639 "2008-02-20T12:11:09Z")

</div>

Hy everybody, I’ve just started learning a bit of this amazing language but I’ve encountered some problems. I have a sqlite3 database wich contains a table and I want to populate a Gtk::ComboBox with the data on it. …

---

## [Subject: textpow 0.10.1 Released](https://www.ruby-forum.com/t/subject-textpow-0-10-1-released/129647)

<div class="topic-metadata">

**Author:** [@Dizan\_V](https://www.ruby-forum.com/u/Dizan_V)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 11:40am UTC](https://www.ruby-forum.com/t/subject-textpow-0-10-1-released/129647 "2008-02-20T11:40:42Z")

</div>

textpow version 0.10.1 has been released! http://textpow.rubyforge.org A library for parsing TextMate\[http://macromates.com/\] bundles. Changes: 0.10.1 / 2008-02-20 FIX: Endless loop in method\_missing when @proxy\_v…

---

## [Multidatabase transactions](https://www.ruby-forum.com/t/multidatabase-transactions/129637)

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 5\
**Last updated:** [February 20, 2008, 10:03am UTC](https://www.ruby-forum.com/t/multidatabase-transactions/129637 "2008-02-20T10:03:49Z")

</div>

Hi guys, I build a application with SQL server and Oracle. At the beginning, there is no requirement to operate data between two database. But now I must access both database at the same time. I chose the ActiveRecor…

---

## [Split string](https://www.ruby-forum.com/t/split-string/129634)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 8\
**Last updated:** [February 20, 2008, 9:45am UTC](https://www.ruby-forum.com/t/split-string/129634 "2008-02-20T09:45:36Z")

</div>

Hi I have @selected\_ciid\_and\_asso\_types ( its content is 3:43,2:65,3:50, ) How can i split it like 3 43 2 65 3 50 These are actually two columns of a table…If i get it like above I can directly save it to …

---

## [Ruby and DSL](https://www.ruby-forum.com/t/ruby-and-dsl/129626)

<div class="topic-metadata">

**Author:** [@P\_Rajmohan\_BSA1719](https://www.ruby-forum.com/u/P_Rajmohan_BSA1719)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 8:38am UTC](https://www.ruby-forum.com/t/ruby-and-dsl/129626 "2008-02-20T08:38:18Z")

</div>

Hi, Are there any ruby book(s) that explains more in detail about DSL(Domain Specific Language) implementation in ruby? Any pointers to online tutorials will also be of help. Thanks Rajmohan

---

## [Newbie eRuby site design question](https://www.ruby-forum.com/t/newbie-eruby-site-design-question/129579)

<div class="topic-metadata">

**Author:** [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Replies:** 4\
**Last updated:** [February 20, 2008, 6:43am UTC](https://www.ruby-forum.com/t/newbie-eruby-site-design-question/129579 "2008-02-20T06:43:41Z")

</div>

Hi list I’m designing a dynamic site using eruby/mod\_ruby and so far its coming together pretty well but I’m stuck on something and could use some help. I have a config file (out of the web root) that I’m using to set…

---

## [Optparse: parse v. parse!?](https://www.ruby-forum.com/t/optparse-parse-v-parse/129617)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 3\
**Last updated:** [February 20, 2008, 6:20am UTC](https://www.ruby-forum.com/t/optparse-parse-v-parse/129617 "2008-02-20T06:20:49Z")

</div>

Here’s a simple example that looks for two options–one with a required value and one with an optional value: require ‘optparse’ opts = OptionParser.new do |opts| puts ‘hello’ #option where value is required: opts.o…

---

## [In the .rhtml or in the controller](https://www.ruby-forum.com/t/in-the-rhtml-or-in-the-controller/129362)

<div class="topic-metadata">

**Author:** [@macaco](https://www.ruby-forum.com/u/macaco)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 3:57am UTC](https://www.ruby-forum.com/t/in-the-rhtml-or-in-the-controller/129362 "2008-02-20T03:57:45Z")

</div>

Hi list I’v been wondering how to make an ‘each’ or a loop or something so I don’t have to write this code N times: Imagen 0\<%= link\_to\_remote image\_tag("/generate/imagen/0"), :url =\> {:action=\> "generate", :id =\>…

---

## [HELP: Need to continue the loop after the exception](https://www.ruby-forum.com/t/help-need-to-continue-the-loop-after-the-exception/129598)

<div class="topic-metadata">

**Author:** [@mirth](https://www.ruby-forum.com/u/mirth)\
**Replies:** 11\
**Last updated:** [February 20, 2008, 3:17am UTC](https://www.ruby-forum.com/t/help-need-to-continue-the-loop-after-the-exception/129598 "2008-02-20T03:17:16Z")

</div>

hi guys, I’m a ruby newbie. I have a question about how to continuethe loop after the exception. If anyone here could help me, I really appreciate that. example: I have two methods: def looptest “do sth” rescue …

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

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