# Ruby

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

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

---

## [Ruby 1.9 and unicode](https://www.ruby-forum.com/t/ruby-1-9-and-unicode/126125)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-unicode/126125 "2008-01-15T21:45:12Z")

</div>

Well i tried to play a little with new unicode features. i wanted to do something like this: def Î£(\*args) args.inject(0){|sum,el| sum+el} end and use it like Î£\[1,2,3,4\] BUT: swistak@sreberko:~$ irb1.9 irb(main)…

---

## [Sqlite regexp support](https://www.ruby-forum.com/t/sqlite-regexp-support/126148)

<div class="topic-metadata">

**Author:** [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/sqlite-regexp-support/126148 "2008-01-15T21:02:17Z")

</div>

What’s the Right Way™ to implement regexp support in sqlite? I’m doing this, but apparently it’s not working: db = SQLite3::Database.new("test.db") db.results\_as\_hash = true db.create\_function('regexp', 2) do |func,…

---

## [Callable class with block](https://www.ruby-forum.com/t/callable-class-with-block/125842)

<div class="topic-metadata">

**Author:** [@blondinet](https://www.ruby-forum.com/u/blondinet)\
**Replies:** 13\
**Last updated:** [January 15, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/callable-class-with-block/125842 "2008-01-15T20:03:41Z")

</div>

Hi everyone, I would like to know why the following code does not work : class A def A. result = self.new( \*args ) if block yield result result.end end return result end def end() puts “end” end end A\[\] do …

---

## [Java custom types in soap calls problem](https://www.ruby-forum.com/t/java-custom-types-in-soap-calls-problem/126140)

<div class="topic-metadata">

**Author:** [@iulianm](https://www.ruby-forum.com/u/iulianm)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/java-custom-types-in-soap-calls-problem/126140 "2008-01-15T19:37:50Z")

</div>

Hi, I am testing a suite of java web services(axis) with rspec1.1 and jruby1.1-RC1. I will describe below my problem giving a short generic example : MyCustomObject - is a custom java object MyService - it’s a java …

---

## [Fwd: 1.9 significantly slower than 1.8 on Mac](https://www.ruby-forum.com/t/fwd-1-9-significantly-slower-than-1-8-on-mac/126121)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/fwd-1-9-significantly-slower-than-1-8-on-mac/126121 "2008-01-15T19:21:11Z")

</div>

Hmm. Simplifying my test script further, I am not sure that Regexp is the problem at all! With the each\_line block, my script take more than TWICE as long in 1.9 vs. 1.8. But without the each\_line block, but keeping …

---

## [Ruby Newbie](https://www.ruby-forum.com/t/ruby-newbie/125898)

<div class="topic-metadata">

**Author:** [@kara](https://www.ruby-forum.com/u/kara)\
**Replies:** 7\
**Last updated:** [January 15, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/ruby-newbie/125898 "2008-01-15T19:14:43Z")

</div>

Hi Everybody, I am en experienced programmer, I have been using VB since I have started programming. I wanted to shift to web programming but I dont know which programming language to start with. Somebody told me tha…

---

## [Rake published rdoc version and arity of Rake::Task#execute - wrong number of arguments (0 for 1)](https://www.ruby-forum.com/t/rake-published-rdoc-version-and-arity-of-rake-task-execute-wrong-number-of-arguments-0-for-1/126136)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/rake-published-rdoc-version-and-arity-of-rake-task-execute-wrong-number-of-arguments-0-for-1/126136 "2008-01-15T18:44:42Z")

</div>

Does anybody know if there is a reason why the rdoc for the rake gem \[1\] is currently at version 0.7.x while the gem itself is at 0.8.1? This caused me a bit of pain today when diagnosing a problem caused by the chang…

---

## [Failure to load "openssl.bundle" (RuntimeError) - need help](https://www.ruby-forum.com/t/failure-to-load-openssl-bundle-runtimeerror-need-help/126134)

<div class="topic-metadata">

**Author:** [@corruptmemory](https://www.ruby-forum.com/u/corruptmemory)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/failure-to-load-openssl-bundle-runtimeerror-need-help/126134 "2008-01-15T18:19:34Z")

</div>

I’m new to Ruby on Rails and am using the stack provided in Leopard. I’m trying to generate scaffolding for a basic app, and I’m receiving the following error message: ember:~ trey$ ruby ~/Sites/cookbook2/script/gener…

---

## [Generic ? regarding Threads](https://www.ruby-forum.com/t/generic-regarding-threads/126106)

<div class="topic-metadata">

**Author:** [@Venks](https://www.ruby-forum.com/u/Venks)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/generic-regarding-threads/126106 "2008-01-15T17:42:12Z")

</div>

Hi, I am planning to use Ruby threading to query 2 different databases running on 2 different machines. I understand how Ruby threads are in process and are NOT native. My requirement is simple. Send the query reques…

---

## [Loop question](https://www.ruby-forum.com/t/loop-question/125765)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 11\
**Last updated:** [January 15, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/loop-question/125765 "2008-01-15T17:18:38Z")

</div>

I’m trying to figure out an easier way to work with loops in ruby. Basically this is what i have now @this\_question.answers.each do |a| missing\_flag = true if (a.answer == row\[cell\]) reply.reply = a.id missing\_flag…

---

## [How to set my homepage?](https://www.ruby-forum.com/t/how-to-set-my-homepage/126122)

<div class="topic-metadata">

**Author:** [@mghohoo](https://www.ruby-forum.com/u/mghohoo)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/how-to-set-my-homepage/126122 "2008-01-15T16:45:45Z")

</div>

hi,everybody.i am a ror beginner i have a problem in how to configure my websites \<VirtualHost :8080\> DocumentRoot C:/ror/ ServerName rails Options Indexes ExecCGI FollowSymLinks RewriteEngine On AliasMatch ^/(\[^/…

---

## [Hashes](https://www.ruby-forum.com/t/hashes/126104)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/hashes/126104 "2008-01-15T16:20:56Z")

</div>

hopefully someone might be able to shed some light on this. I have a ruby test application which I’m fetching data from a database. I want to store the results into a hash based on the following principle; loop thro…

---

## [IO redirection](https://www.ruby-forum.com/t/io-redirection/126105)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 1\
**Last updated:** [January 15, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/io-redirection/126105 "2008-01-15T16:07:55Z")

</div>

Basically, I need to redirect the results of exec. While I can $stdout.reopen(file), and I can redefine $stdout to anything with a write' method, I seem to be unable to send the results of exec to anything within my sc…

---

## [Having trouble with ruby and rubygem versions](https://www.ruby-forum.com/t/having-trouble-with-ruby-and-rubygem-versions/126118)

<div class="topic-metadata">

**Author:** [@sebwin](https://www.ruby-forum.com/u/sebwin)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/having-trouble-with-ruby-and-rubygem-versions/126118 "2008-01-15T16:06:10Z")

</div>

The story goes like this: When I tried to install Thin as a gem, it refused to contend itself with the outdated ruby 1.8.4 installation I still had. So I thought I might as well upgrade to 1.9. I downloaded the sourc…

---

## [Fwd: Attempted solution. :)](https://www.ruby-forum.com/t/fwd-attempted-solution/126062)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/fwd-attempted-solution/126062 "2008-01-15T16:01:29Z")

</div>

Begin forwarded message:

---

## [Float parsing is culture dependent (patch included)](https://www.ruby-forum.com/t/float-parsing-is-culture-dependent-patch-included/125813)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 8\
**Last updated:** [January 15, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/float-parsing-is-culture-dependent-patch-included/125813 "2008-01-15T15:59:43Z")

</div>

Hi, if you type “1.0” then enter under rbx on a french machine (or any machine with something different than dot for the decimal separator), you’ll get an exception. I’ve attached a patch which works for me. – Thiba…

---

## [How to get the method name](https://www.ruby-forum.com/t/how-to-get-the-method-name/126005)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 11:19am UTC](https://www.ruby-forum.com/t/how-to-get-the-method-name/126005 "2008-01-15T11:19:40Z")

</div>

I need to get the method name automatically like we do with the classes: puts self.class.to\_s() I’m trying: self.method.to\_s() or self.class.method.to\_s() but it doesn’t work.

---

## [Error with open-uri (instance\_eval?)](https://www.ruby-forum.com/t/error-with-open-uri-instance-eval/125329)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 9:20am UTC](https://www.ruby-forum.com/t/error-with-open-uri-instance-eval/125329 "2008-01-15T09:20:14Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B$I$&$bC;$$:F8=%1!\<%9$r:n$l$J$$$N$GJs9p$@$1$9$,!"8=:\_$Ne(Btrunke$B$Ge(B e$B0J2\<$N$h$&$J%(%i!\<$,=P$^$9!#e(B % ruby -ropen-uri -ve ‘open(“http://www.ruby-lang.org/”)’ …

---

## [TreeView question](https://www.ruby-forum.com/t/treeview-question/126082)

<div class="topic-metadata">

**Author:** [@cesarstafe](https://www.ruby-forum.com/u/cesarstafe)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 9:11am UTC](https://www.ruby-forum.com/t/treeview-question/126082 "2008-01-15T09:11:25Z")

</div>

I try use a TreeView with libglade2 library … it work fine writing data in this TreeView… but when I don’t know how I drop all rows in this TreeView… Somebody can tell me something about this? I was reading informatio…

---

## [Vlad 1.2.0 Released](https://www.ruby-forum.com/t/vlad-1-2-0-released/126078)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 8:08am UTC](https://www.ruby-forum.com/t/vlad-1-2-0-released/126078 "2008-01-15T08:08:15Z")

</div>

vlad version 1.2.0 has been released! http://rubyhitsquad.com/ http://rubyforge.org/projects/hitsquad/ Vlad the Deployer is pragmatic application deployment automation, without mercy. Much like Capistrano, but with 1…

---

## [Mechanize 0.7.0 Released](https://www.ruby-forum.com/t/mechanize-0-7-0-released/126077)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 8:03am UTC](https://www.ruby-forum.com/t/mechanize-0-7-0-released/126077 "2008-01-15T08:03:34Z")

</div>

mechanize version 0.7.0 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, …

---

## [OptionParser order of arguments](https://www.ruby-forum.com/t/optionparser-order-of-arguments/126074)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [January 15, 2008, 7:26am UTC](https://www.ruby-forum.com/t/optionparser-order-of-arguments/126074 "2008-01-15T07:26:10Z")

</div>

all- i’ve had a lot of success working with OptionParser, but there is one burr in the saddle- order of arguments parsed. sample code: require ‘optparse’ class MyClass def initialize(arguments) @options = {} opts…

---

## [Process.setrlimit question](https://www.ruby-forum.com/t/process-setrlimit-question/126056)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 5\
**Last updated:** [January 15, 2008, 6:26am UTC](https://www.ruby-forum.com/t/process-setrlimit-question/126056 "2008-01-15T06:26:35Z")

</div>

why does this not blow up? cfp:~ \> cat a.rb require ‘yaml’ factor = 100000000000000000 soft, hard = Process.getrlimit Process::RLIMIT\_RSS y ‘soft’ =\> soft, ‘hard’ =\> hard Process.setrlimit Process::RLIMIT\_RSS, soft…

---

## [ZenTest 3.8.0 Released](https://www.ruby-forum.com/t/zentest-3-8-0-released/126069)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 5:59am UTC](https://www.ruby-forum.com/t/zentest-3-8-0-released/126069 "2008-01-15T05:59:43Z")

</div>

ZenTest version 3.8.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…

---

## [ANN: Holidays 0.9.1 released and call for contributors](https://www.ruby-forum.com/t/ann-holidays-0-9-1-released-and-call-for-contributors/126068)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 5:57am UTC](https://www.ruby-forum.com/t/ann-holidays-0-9-1-released-and-call-for-contributors/126068 "2008-01-15T05:57:22Z")

</div>

The Ruby holidays gem has been released and I’m looking for contributors to help create regional holiday definition files. This gem provides a set of functions for looking up public holidays around the world. A quic…

---

## [Us\_ascii.o: No such file or directory](https://www.ruby-forum.com/t/us-ascii-o-no-such-file-or-directory/126061)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 5:29am UTC](https://www.ruby-forum.com/t/us-ascii-o-no-such-file-or-directory/126061 "2008-01-15T05:29:55Z")

</div>

e$B:#D+e(B svn e$B$+$i99?7$7$?$H$3$m$G!"e(Bminiruby e$B$r:n$m$&$H$9$k$H$3$m$G!"e(B us\_ascii.o: No such file or directory e$B$H8@$o$l$^$9!#e(B e$B860x!"BP:v$O$@$l$+$4B8$8$G$7$?$i65$($F$/$@$5$$!#e(B (e$B%7%9%F%\`$Oe(B C…

---

## [Ruby 1.9 Compatibility for TMail](https://www.ruby-forum.com/t/ruby-1-9-compatibility-for-tmail/126055)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 5:11am UTC](https://www.ruby-forum.com/t/ruby-1-9-compatibility-for-tmail/126055 "2008-01-15T05:11:48Z")

</div>

We have now finished getting TMail trunk compatible with Ruby 1.9. Your Tmail should work the same in either environment (or at least, that’s what our tests say). 1.8.6 Ruby Test Suite baci:~/ruby\_programs/tmail/trun…

---

## [Eval question?](https://www.ruby-forum.com/t/eval-question/126058)

<div class="topic-metadata">

**Author:** [@ak756](https://www.ruby-forum.com/u/ak756)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 5:01am UTC](https://www.ruby-forum.com/t/eval-question/126058 "2008-01-15T05:01:48Z")

</div>

Hi I hava a string indicate a hh/mm/ss time and some other strings indicat operations on the string. For example , string “+5” means add 5 second. Here is my code: def modifytime(s1,s2) if s2\[0,1\] == “+” (Time.pars…

---

## [Weird irb behavior osx](https://www.ruby-forum.com/t/weird-irb-behavior-osx/126053)

<div class="topic-metadata">

**Author:** [@WindhamS\_Kristopher](https://www.ruby-forum.com/u/WindhamS_Kristopher)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 3:19am UTC](https://www.ruby-forum.com/t/weird-irb-behavior-osx/126053 "2008-01-15T03:19:34Z")

</div>

Just wanted to point this out. Don’t know if anyone else is experiencing this. occasionally, I will accidentally hit control C to escape out of irb prompt… When doing this in 1.9 the next command I type returns ^C S…

---

## [Splitting up hostname using Regex](https://www.ruby-forum.com/t/splitting-up-hostname-using-regex/126050)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 6\
**Last updated:** [January 15, 2008, 3:18am UTC](https://www.ruby-forum.com/t/splitting-up-hostname-using-regex/126050 "2008-01-15T03:18:58Z")

</div>

Hi! I’m trying to write a regex that splits up a hostname and returns it in a nice array. For example: “eat.chunky.bacon.com” =\> regex =\> \[“eat”,“chunky”,“bacon”,“com”\] Been trying to wrap my head around this, but I m…

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

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