# Ruby

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

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

---

## [\[Bug #2584\] $B%/%i%9Dj5ACf$N(B defined? yield $B$,(B "yield" $B$rJV$9(B](https://www.ruby-forum.com/t/bug-2584-b-i-9dj5acf-n-b-defined-yield-b-b-yield-b-rjv-9-b/181328)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 1\
**Last updated:** [January 9, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/bug-2584-b-i-9dj5acf-n-b-defined-yield-b-b-yield-b-rjv-9-b/181328 "2010-01-09T21:40:17Z")

</div>

Bug #2584: e$B%/%i%9Dj5ACf$Ne(B defined? yield e$B$,e(B “yield” e$B$rJV$9e(B http://redmine.ruby-lang.org/issues/show/2584 e$B5/I\<\<Te(B: \_ wanabe e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sas…

---

## [Rspec-cleverbacktrace 0.1 Released](https://www.ruby-forum.com/t/rspec-cleverbacktrace-0-1-released/181301)

<div class="topic-metadata">

**Author:** [@Judson\_L](https://www.ruby-forum.com/u/Judson_L)\
**Replies:** 1\
**Last updated:** [January 9, 2010, 2:02pm UTC](https://www.ruby-forum.com/t/rspec-cleverbacktrace-0-1-released/181301 "2010-01-09T14:02:18Z")

</div>

rspec-cleverbacktrace version 0.1 has been released! The default backtrace handling for rspec is … okay. It would be nice if you could find the source of exceptions during test runs without having to see all the ba…

---

## [Where is the rforum repo?](https://www.ruby-forum.com/t/where-is-the-rforum-repo/181305)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 2\
**Last updated:** [January 9, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/where-is-the-rforum-repo/181305 "2010-01-09T14:00:43Z")

</div>

Greetings, I am under the impression that rforum is an open source program. If this is indeed the case then where is the code? The homepage for rforum appears to be down. By home page I mean http://rforum.andreas-s.n…

---

## [Group in the array](https://www.ruby-forum.com/t/group-in-the-array/181144)

<div class="topic-metadata">

**Author:** [@kolya17](https://www.ruby-forum.com/u/kolya17)\
**Replies:** 14\
**Last updated:** [January 9, 2010, 11:05am UTC](https://www.ruby-forum.com/t/group-in-the-array/181144 "2010-01-09T11:05:15Z")

</div>

Hi! I have a two-dimensional array Farr. Farr.each{ |i| print i} output: \[“200912-829”, 9\] \[“200912-893”, 3\] \[“200912-893”, 5\] \[“200912-829”, 1\] \[“200911-818”, 6\] \[“200911-893”, 1\] \[“200911-827”, 2\] I’m trying…

---

## [File and Dir class problems](https://www.ruby-forum.com/t/file-and-dir-class-problems/181295)

<div class="topic-metadata">

**Author:** [@spencer](https://www.ruby-forum.com/u/spencer)\
**Replies:** 4\
**Last updated:** [January 9, 2010, 8:57am UTC](https://www.ruby-forum.com/t/file-and-dir-class-problems/181295 "2010-01-09T08:57:07Z")

</div>

I’m running into some problems when renaming and deleting files through ruby. Originally I built a function to rename certain directories. However when renaming a directory that has folders, files, and subfolders ins…

---

## [Something changed an instance variable ... and now I'm confused](https://www.ruby-forum.com/t/something-changed-an-instance-variable-and-now-im-confused/181281)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 3\
**Last updated:** [January 9, 2010, 6:44am UTC](https://www.ruby-forum.com/t/something-changed-an-instance-variable-and-now-im-confused/181281 "2010-01-09T06:44:17Z")

</div>

Newbie here. Consider this irb session … F:\\InstantRails-2.0-win\\rails\_apps\>irb irb(main):001:0\> class X irb(main):002:1\> attr\_accessor :x, :y irb(main):003:1\> end =\> nil irb(main):004:0\> irb(main):005:0\* x1 = …

---

## [Is ruby's regex slower?](https://www.ruby-forum.com/t/is-rubys-regex-slower/181037)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 32\
**Last updated:** [January 9, 2010, 1:44am UTC](https://www.ruby-forum.com/t/is-rubys-regex-slower/181037 "2010-01-09T01:44:06Z")

</div>

Hi, I wrote this message without other purpose, just show a result for comparison. :slight\_smile: First I got the page which will be used for analysis (got all domain names from it): wget 科技 - 265上网导航 It will get a…

---

## [Something strange with CLASS and SCOPE](https://www.ruby-forum.com/t/something-strange-with-class-and-scope/181287)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 3\
**Last updated:** [January 8, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/something-strange-with-class-and-scope/181287 "2010-01-08T21:53:32Z")

</div>

There is onething regarding class and scope I felt puzzled for a while. Below is my code. class QQ @strange=Array.new def report puts @strange.class end end q=QQ.new q.report From my understanding, instance var…

---

## [Can you explain code](https://www.ruby-forum.com/t/can-you-explain-code/181279)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 3\
**Last updated:** [January 8, 2010, 8:42pm UTC](https://www.ruby-forum.com/t/can-you-explain-code/181279 "2010-01-08T20:42:22Z")

</div>

\---------------------ruby code-------------------- after running ruby code in below output at first occurrence of “sssssssssssssssssssssss” can anyone explain how “nearValues” is updating $hash2={“value1”=\>\[“value2…

---

## [Setting recursion depth](https://www.ruby-forum.com/t/setting-recursion-depth/181241)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 9\
**Last updated:** [January 8, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/setting-recursion-depth/181241 "2010-01-08T20:02:57Z")

</div>

Hi all, I have done some Googling regarding setting the depth of recursive search in a ruby script and all I have identified is File-Find. Is this all that can help me? Basically I want to be able to specify the dept…

---

## [January Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/181286)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 8, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/181286 "2010-01-08T19:40:03Z")

</div>

January Phoenix Ruby U. Group Meeting When: Monday, January 11, 2010 6:30pm door open. Laptop power and WiFi available. 7:00pm Show time 8:30pm Migrate to Four Peaks Brewery Topic: Nothing planned We'll wing …

---

## [Compiled jruby application\_controller.class can not be found](https://www.ruby-forum.com/t/compiled-jruby-application-controller-class-can-not-be-found/181234)

<div class="topic-metadata">

**Author:** [@liao1k](https://www.ruby-forum.com/u/liao1k)\
**Replies:** 5\
**Last updated:** [January 8, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/compiled-jruby-application-controller-class-can-not-be-found/181234 "2010-01-08T16:57:53Z")

</div>

I am using jruby-1.4.0 to test Ahead-of-Time jruby compiler(jrubyc) to compile one of my application\_controller.rb (in my case the application is widgets) into java bytecodes(widgets\_controller.class) at the current …

---

## [\[Bug:trunk\] cannot call public'ed method via public\_method](https://www.ruby-forum.com/t/bug-trunk-cannot-call-publiced-method-via-public-method/179413)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 3:47pm UTC](https://www.ruby-forum.com/t/bug-trunk-cannot-call-publiced-method-via-public-method/179413 "2010-01-08T15:47:39Z")

</div>

e$B1sF#$G$9!#e(B e$B7Q\>5@h$N%/%i%9$Ge(B public e$B$K$7$?%a%=%C%I$re(B public\_method e$B$G\<h$j=P$7$Fe(B e$B8F$S=P$9$He(B undefined private method e$B$H8@$o$l$F$7$^$$$^$9!#e(B class C def foo; “FOO”; end private :foo …

---

## [HTML parser using Hpricot](https://www.ruby-forum.com/t/html-parser-using-hpricot/181267)

<div class="topic-metadata">

**Author:** [@robert-ruby](https://www.ruby-forum.com/u/robert-ruby)\
**Replies:** 0\
**Last updated:** [January 8, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/html-parser-using-hpricot/181267 "2010-01-08T15:32:34Z")

</div>

Hello folks, I am a newbie to RoR and writing an HTML parser using Hpricot. I can parse a html file with: (1) doc = open( “MyFileToParse.html” ) { |f| Hpricot(f) } (2) elements = (doc.search(“/html/body/table/tr/td/t…

---

## [Stopping String Escaping](https://www.ruby-forum.com/t/stopping-string-escaping/181242)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 13\
**Last updated:** [January 8, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/stopping-string-escaping/181242 "2010-01-08T14:07:00Z")

</div>

Hi, I’m trying to parse code snippets on a website that are submitted by the user. the problem is that when a user tries to shop escaping in there code the escaping actually happens. for instance if you submit \\ ruby…

---

## [\[Feature #2574\] merging net/https](https://www.ruby-forum.com/t/feature-2574-merging-net-https/181245)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 3\
**Last updated:** [January 8, 2010, 1:27pm UTC](https://www.ruby-forum.com/t/feature-2574-merging-net-https/181245 "2010-01-08T13:27:47Z")

</div>

Feature #2574: merging net/https http://redmine.ruby-lang.org/issues/show/2574 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib e$B8=:e(B net/https e$B$O$\[$H$s$IH4$13L$G!"$\[$…

---

## [Ruby constructor return value?](https://www.ruby-forum.com/t/ruby-constructor-return-value/133721)

<div class="topic-metadata">

**Author:** [@brendan6](https://www.ruby-forum.com/u/brendan6)\
**Replies:** 12\
**Last updated:** [January 8, 2010, 12:40pm UTC](https://www.ruby-forum.com/t/ruby-constructor-return-value/133721 "2010-01-08T12:40:58Z")

</div>

How do I alert an error if it occurs in an object’s constructor? Example: Say im creating an object that relies on a give record from the database zipcodes. In php… \<?php class Zip { private $zipcode; function \_…

---

## [Marshal.load $B$GNc30H/@8;~$K(B Segmentation fault $B%(%i!\<(B](https://www.ruby-forum.com/t/marshal-load-b-gnc30h-8-k-b-segmentation-fault-b-i-b/176599)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 8, 2010, 11:45am UTC](https://www.ruby-forum.com/t/marshal-load-b-gnc30h-8-k-b-segmentation-fault-b-i-b/176599 "2010-01-08T11:45:22Z")

</div>

e$B6bEDM-Fs$H?=$7$^$9!#e(B e$B\<!$N%3!\<%I$Ge(B Segmentation fault e$B$,H/@8$7$^$7$?$N$Ge(B e$B$4Js9p$5$;$FD:$-$^$9!#e(B #! /usr/local/bin/ruby GC.stress = true loop do begin f = File.open(“d”) Marshal.load(f) r…

---

## [Question about rails applications](https://www.ruby-forum.com/t/question-about-rails-applications/181255)

<div class="topic-metadata">

**Author:** [@friedrich](https://www.ruby-forum.com/u/friedrich)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 11:09am UTC](https://www.ruby-forum.com/t/question-about-rails-applications/181255 "2010-01-08T11:09:33Z")

</div>

I wonder if one can get an oversight (best some sort of test) about rail application in the following areas: bookkeeping crm If you just know of packages on has to pay for, please do not hesitate to mention them. R…

---

## ["require 'logge'" fails on ruby 1.8.7 from http://github.com/shyouhei/ruby](https://www.ruby-forum.com/t/require-logge-fails-on-ruby-1-8-7-from-http-github-com-shyouhei-ruby/181203)

<div class="topic-metadata">

**Author:** [@MOROHASHI\_Kyosuke](https://www.ruby-forum.com/u/MOROHASHI_Kyosuke)\
**Replies:** 6\
**Last updated:** [January 8, 2010, 9:33am UTC](https://www.ruby-forum.com/t/require-logge-fails-on-ruby-1-8-7-from-http-github-com-shyouhei-ruby/181203 "2010-01-08T09:33:06Z")

</div>

e$B=t66$G$9!#e(B e$B$$$D$b$@$OC$K$J$C$F$$j$^$9!#e(B e$B$+$i\<hF@$7$?e(BRubye$B$Ne(B e$B!"e(Bremotes/origin/ruby\_1\_8\_7 e$B%V%i%s%A$r%S%k%I$7$Fe(B loggere$B$re(B require e$B$9$k$He(BNoMethodErrore$B$,H/@8$7$^$9!#e(B e…

---

## [Unicorn 0.96.0 - Rack 1.1 extras for fast clients](https://www.ruby-forum.com/t/unicorn-0-96-0-rack-1-1-extras-for-fast-clients/181254)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [January 8, 2010, 7:20am UTC](https://www.ruby-forum.com/t/unicorn-0-96-0-rack-1-1-extras-for-fast-clients/181254 "2010-01-08T07:20:16Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [Ruby 1.8.7-p248 released](https://www.ruby-forum.com/t/ruby-1-8-7-p248-released/180662)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 9\
**Last updated:** [January 8, 2010, 4:43am UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p248-released/180662 "2010-01-08T04:43:59Z")

</div>

Hello everyone. We now have a series of patches to fix various bugs against 1.8.7 so I decided to release them. Here they are. ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p248.tar.gz ftp://ftp.ruby-lang.org/pub…

---

## [How to use the same params in respond\_to for some formats?](https://www.ruby-forum.com/t/how-to-use-the-same-params-in-respond-to-for-some-formats/181214)

<div class="topic-metadata">

**Author:** [@camilleroux](https://www.ruby-forum.com/u/camilleroux)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/how-to-use-the-same-params-in-respond-to-for-some-formats/181214 "2010-01-07T22:18:47Z")

</div>

Hello, I want to make an API in XML and JSON (maybe more), and I want most of the time use the same parameters for the to\_xml and the to\_json (same :include, :only, :except, :methods). In your opinion, what is the be…

---

## [Antlr3 1.3.1 ( improved ANTLR v3 for Ruby )](https://www.ruby-forum.com/t/antlr3-1-3-1-improved-antlr-v3-for-ruby/181236)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 0\
**Last updated:** [January 7, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/antlr3-1-3-1-improved-antlr-v3-for-ruby/181236 "2010-01-07T19:40:45Z")

</div>

I haven’t really advertised my project on ruby talk before, so I figured it’s time to give it a go. If you’re not familiar with ANTLR ( ANother Tool for Language Recognition: http://www.antlr.org ), it is a general …

---

## [Encrypt message in html file](https://www.ruby-forum.com/t/encrypt-message-in-html-file/181211)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 4\
**Last updated:** [January 7, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/encrypt-message-in-html-file/181211 "2010-01-07T19:12:01Z")

</div>

Hello. How you can encrypt a message using as a container HTML file, that is, the message must be recorded in the gaps that HTML ignores.

---

## [What does "w+" mean in IO.open?](https://www.ruby-forum.com/t/what-does-w-mean-in-io-open/181224)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/what-does-w-mean-in-io-open/181224 "2010-01-07T19:11:25Z")

</div>

Hi, the rdoc says that “w+” means: “w+”: Read-write, truncates existing file to zero length or creates a new file for reading and writing. however in a post I’ve read: output = open(“my\_pipe”, “w+”) # the w+ means w…

---

## [Script to interact with a database](https://www.ruby-forum.com/t/script-to-interact-with-a-database/181160)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 9\
**Last updated:** [January 7, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/script-to-interact-with-a-database/181160 "2010-01-07T18:47:55Z")

</div>

I have an application in rails in which i am adding a new column in one of the tables. The value for the new column is a bit.ly link and I need to populate this for each record in the table approx. 250 rows will be af…

---

## [Text to speech - OS agnostic](https://www.ruby-forum.com/t/text-to-speech-os-agnostic/181200)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 2\
**Last updated:** [January 7, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/text-to-speech-os-agnostic/181200 "2010-01-07T18:05:57Z")

</div>

Hi folks, I’m interesting in getting some feeling on how best to approach the matter of converting text (words) into speech. I am currently coding on a XP platform in a Linux VM. I’d prefer the solution to work as we…

---

## [\[BUG;trunk\] FileUtils.mkdir\_p with SELinux](https://www.ruby-forum.com/t/bug-trunk-fileutils-mkdir-p-with-selinux/181225)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [January 7, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/bug-trunk-fileutils-mkdir-p-with-selinux/181225 "2010-01-07T15:17:51Z")

</div>

Yuguie$B$G$9!#e(B e$B\<!$N\>l9g!“e(BErrno::EACCESe$B$NH/@8$r4|BT$7$^$7$?$,!”\<B:\]$K$Oe(BErrno::EEXISTe$B$,H/@8$7$^$7$?!#e(B FileUtils.mkdir\_p “/a/b/c” e$B$r\<B9Te(B e$B%G%#%l%/%H%je(B /a/b e$B$O4{$KB8:\_$9$ke(B SELinuxe$B4…

---

## [Nexus Programming Language](https://www.ruby-forum.com/t/nexus-programming-language/181218)

<div class="topic-metadata">

**Author:** [@Avatar](https://www.ruby-forum.com/u/Avatar)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 3:02pm UTC](https://www.ruby-forum.com/t/nexus-programming-language/181218 "2010-01-07T15:02:03Z")

</div>

In the spirit of agile software development practices “release early, release often” pre-beta release 0.3.0 of the Nexus binaries has been made available for download. www.nexuslang.org

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

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