# Ruby

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

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

---

## [Uninitialized constant error... trying to create a TCPsocket in a module](https://www.ruby-forum.com/t/uninitialized-constant-error-trying-to-create-a-tcpsocket-in-a-module/189382)

<div class="topic-metadata">

**Author:** [@denno](https://www.ruby-forum.com/u/denno)\
**Replies:** 5\
**Last updated:** [May 31, 2010, 7:24pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-error-trying-to-create-a-tcpsocket-in-a-module/189382 "2010-05-31T19:24:28Z")

</div>

Okay, forget about the editor thing… (; Trying to convert the BBS to 1.9. I’ve run into a weird problem with some code I didn’t write… basically, I’m getting an error trying to create a TCPsocket… /home/mark/qbbs2/c…

---

## [Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP?](https://www.ruby-forum.com/t/does-rails-3-0-0-beta3-work-with-ruby-1-9-1-on-windows-xp/189393)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 5\
**Last updated:** [May 31, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/does-rails-3-0-0-beta3-work-with-ruby-1-9-1-on-windows-xp/189393 "2010-05-31T18:16:33Z")

</div>

Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP? It does not work for me, the sample program crashes with no error message.

---

## [Optimizing compiler](https://www.ruby-forum.com/t/optimizing-compiler/189339)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [May 31, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/optimizing-compiler/189339 "2010-05-31T17:40:16Z")

</div>

Does jruby already do something like what this fellow did for groovy? http://chanwit.blogspot.com/2009/12/groovy-performance-update-long-running.html Thanks. -rp

---

## [Qt4/ruby 1.9 install on mac os x Snow Leopard?](https://www.ruby-forum.com/t/qt4-ruby-1-9-install-on-mac-os-x-snow-leopard/189412)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 0\
**Last updated:** [May 31, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/qt4-ruby-1-9-install-on-mac-os-x-snow-leopard/189412 "2010-05-31T15:35:34Z")

</div>

this week end i’ve followed a number of blogs over the net in order to install Qt4 with ruby 1.9. my ruby 1.9 is a MacPort one, i’m using Mac OS X SL. I’ve tried those cmake options : cmake -DENABLE\_QTWEBKIT\_SMOKE=of…

---

## [Graphical programming with Qt](https://www.ruby-forum.com/t/graphical-programming-with-qt/189385)

<div class="topic-metadata">

**Author:** [@amoo3](https://www.ruby-forum.com/u/amoo3)\
**Replies:** 2\
**Last updated:** [May 31, 2010, 3:25pm UTC](https://www.ruby-forum.com/t/graphical-programming-with-qt/189385 "2010-05-31T15:25:37Z")

</div>

Hi every one How are you my friends? I will finally kill my self. :frowning: I want to write a graphical program with ruby and qt but i can’t. I installed qtruby4(2.1.0) gem and qt-win-opensource-4.3.4-mingw (70.6 …

---

## [\[bug:trunk\] Re: \[ruby-cvs:35269\] Ruby:r28058 (trunk): \* lib/resolv.rb (Resolv::DNS::Requester#reques](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-35269-ruby-r28058-trunk-lib-resolv-rb-resolv-requester-reques/189387)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 2\
**Last updated:** [May 31, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-35269-ruby-r28058-trunk-lib-resolv-rb-resolv-requester-reques/189387 "2010-05-31T14:57:31Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B In message “\[ruby-cvs:35269\] Ruby:r28058 (trunk): \* lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED.” on May.29,2010 09:06:19, removed\_email\_address…

---

## [Trunk/1.9.2 $B$G(B test\_io.rb $B$,(B test\_print\_separators $B$G8G$^$k(B](https://www.ruby-forum.com/t/trunk-1-9-2-b-g-b-test-io-rb-b-b-test-print-separators-b-g8g-k-b/189188)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 1\
**Last updated:** [May 31, 2010, 1:35pm UTC](https://www.ruby-forum.com/t/trunk-1-9-2-b-g-b-test-io-rb-b-b-test-print-separators-b-g8g-k-b/189188 "2010-05-31T13:35:34Z")

</div>

e$B6a1J$H?=$7$^$9!#e(B Bug e$B$J$N$+4D6-$,0-$$$N$+C1$Ke(B test e$B$NLdBj$J$N$+H=CG$,$D$+$J$$$N$Ge(B ML e$B$GJs9p$5$;$FD:$-$^$9!#e(B ruby\_1\_9\_2 e$B%V%i%s%A$He(B trunk e$B$G!"e(Bmake test-all e$B$,0J2\<$N$h$&$K8G$^$C$F?…

---

## [Validation for feed links using by 'rss'](https://www.ruby-forum.com/t/validation-for-feed-links-using-by-rss/188991)

<div class="topic-metadata">

**Author:** [@12345](https://www.ruby-forum.com/u/12345)\
**Replies:** 3\
**Last updated:** [May 31, 2010, 11:25am UTC](https://www.ruby-forum.com/t/validation-for-feed-links-using-by-rss/188991 "2010-05-31T11:25:38Z")

</div>

Hi all, I used require ‘rss’. got the feeds in links what i gave in the link field. but i want to validate the link is corect url/uri or not. Please reply to me

---

## [Ruby Metaprogramming](https://www.ruby-forum.com/t/ruby-metaprogramming/189401)

<div class="topic-metadata">

**Author:** [@souravhaldar](https://www.ruby-forum.com/u/souravhaldar)\
**Replies:** 0\
**Last updated:** [May 31, 2010, 11:05am UTC](https://www.ruby-forum.com/t/ruby-metaprogramming/189401 "2010-05-31T11:05:18Z")

</div>

Hi I am totally a new learner in ruby . Would you please suggests me some links which would be useful for understanding Ruby metaprogramming . How to build good concepts on Ruby.

---

## [Windows XP can create a RÃ©sumÃ©.html file but ruby cannot](https://www.ruby-forum.com/t/windows-xp-can-create-a-ra-suma-html-file-but-ruby-cannot/197045)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 31, 2010, 9:19am UTC](https://www.ruby-forum.com/t/windows-xp-can-create-a-ra-suma-html-file-but-ruby-cannot/197045 "2010-05-31T09:19:12Z")

</div>

Windows XP can create a Résumé.html file but ruby cannot. Why? The following code created the wrong filename File.open(“Résumé.html”,“w”) { |file| file.write(‘xxx’); } Also, this code does not work str = “Résumé.ht…

---

## [\[bug:trunk\] Re: \[ruby-cvs:32360\] Ruby:r25142 (trunk): \* encoding.c (rb\_enc\_unicode\_p): defined](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-32360-ruby-r25142-trunk-encoding-c-rb-enc-unicode-p-defined/189391)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 1\
**Last updated:** [May 31, 2010, 7:47am UTC](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-32360-ruby-r25142-trunk-encoding-c-rb-enc-unicode-p-defined/189391 "2010-05-31T07:47:19Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B In message “\[ruby-cvs:32360\] Ruby:r25142 (trunk): \* encoding.c (rb\_enc\_unicode\_p): defined.” on Sep.29,2009 09:34:02, removed\_email\_address@domain.invalid wrote: Modi…

---

## [How to load code converters?](https://www.ruby-forum.com/t/how-to-load-code-converters/189377)

<div class="topic-metadata">

**Author:** [@o01eg](https://www.ruby-forum.com/u/o01eg)\
**Replies:** 5\
**Last updated:** [May 30, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/how-to-load-code-converters/189377 "2010-05-30T19:33:06Z")

</div>

When I try to encode string in program I got Encoding::ConverterNotFoundError error “code converter not found (UTF-8 to KOI8-R)” (and other charsets) When I run script with encoding in ruby interpreter it work. What …

---

## [\`require': no such file to load on Windows](https://www.ruby-forum.com/t/require-no-such-file-to-load-on-windows/189375)

<div class="topic-metadata">

**Author:** [@f3tus](https://www.ruby-forum.com/u/f3tus)\
**Replies:** 3\
**Last updated:** [May 30, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-on-windows/189375 "2010-05-30T18:39:33Z")

</div>

Hello, I’m new to Ruby and came across this error when trying to run: spec “C:\\Ruby19\\wwwjdic2db\\spec\\p4\_importer\_spec.rb” The output is as follows: C:\\Ruby19\\bin\>spec “C:\\Ruby19\\project4\\spec\\p4\_importer\_spec.rb” C:…

---

## [Inject Loop Syntax](https://www.ruby-forum.com/t/inject-loop-syntax/189367)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [May 30, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/inject-loop-syntax/189367 "2010-05-30T15:32:52Z")

</div>

I wonder if any other languages have any sort of “multiplicative operation” operator. I was thinking about this today b/c sometimes one has to use a block where it would read better if it could be avoided. For example…

---

## ["uninitialized constant Encoding::UTF\_8" in rb\_require](https://www.ruby-forum.com/t/uninitialized-constant-encoding-utf-8-in-rb-require/189365)

<div class="topic-metadata">

**Author:** [@o01eg](https://www.ruby-forum.com/u/o01eg)\
**Replies:** 2\
**Last updated:** [May 30, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-encoding-utf-8-in-rb-require/189365 "2010-05-30T12:28:47Z")

</div>

When load script with rb\_require I got error about Encoding constants. Ruby 1.9.2

---

## [Date.today problem on linux with Ruby 1.8.6](https://www.ruby-forum.com/t/date-today-problem-on-linux-with-ruby-1-8-6/189359)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 9\
**Last updated:** [May 30, 2010, 11:31am UTC](https://www.ruby-forum.com/t/date-today-problem-on-linux-with-ruby-1-8-6/189359 "2010-05-30T11:31:08Z")

</div>

Hello. I just installed Ruby 1.8.6 from source and then stumbled upon the following problem. Any ideas what might be causing this incorrect behaviour? jarmo@jarmo-laptop:~$ uname -a Linux jarmo-laptop 2.6.32-22-gene…

---

## [Windows XP can create a RÃ©sumÃ©.html file but ruby cannot](https://www.ruby-forum.com/t/windows-xp-can-create-a-ra-suma-html-file-but-ruby-cannot/189369)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 30, 2010, 2:01am UTC](https://www.ruby-forum.com/t/windows-xp-can-create-a-ra-suma-html-file-but-ruby-cannot/189369 "2010-05-30T02:01:48Z")

</div>

Windows XP can create a Résumé.html file but ruby cannot. Why? The following code created the wrong filename File.open(“Résumé.html”,“w”) { |file| file.write(‘xxx’); } Also, this code does not work str = “Résumé.ht…

---

## [Reporting a bug how to?](https://www.ruby-forum.com/t/reporting-a-bug-how-to/189360)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 10:53pm UTC](https://www.ruby-forum.com/t/reporting-a-bug-how-to/189360 "2010-05-29T22:53:57Z")

</div>

I got a “Segmentation fault” with open4.rb:65 (ruby 1.9.1p378 (2010-01-10 revision 26273) \[i386-darwin10\]) the page given in the final note (after backtrace): \[NOTE\] You may encounter a bug of Ruby interpreter. Bug r…

---

## [Square Root](https://www.ruby-forum.com/t/square-root/189368)

<div class="topic-metadata">

**Author:** [@Angus\_H](https://www.ruby-forum.com/u/Angus_H)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/square-root/189368 "2010-05-29T22:34:03Z")

</div>

Is there a way to get an accurate square root? This means that a negative number should return the appropriate complex number. I have been having some trouble with this in a program that solves quadratic equations rec…

---

## [Non blocking IO during an AJAX request](https://www.ruby-forum.com/t/non-blocking-io-during-an-ajax-request/189363)

<div class="topic-metadata">

**Author:** [@Zundra\_D](https://www.ruby-forum.com/u/Zundra_D)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/non-blocking-io-during-an-ajax-request/189363 "2010-05-29T21:38:26Z")

</div>

I realize this is a Ruby mailing list but I have a Ruby/Rails question that seems to fall more on the Ruby side of the fence. I have a library file that creates a named pipe and writes the results of ping to the pipe…

---

## [\[Bug #3360\] rdoc fails when including BOM](https://www.ruby-forum.com/t/bug-3360-rdoc-fails-when-including-bom/189325)

<div class="topic-metadata">

**Author:** [@white\_leaf](https://www.ruby-forum.com/u/white_leaf)\
**Replies:** 7\
**Last updated:** [May 29, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/bug-3360-rdoc-fails-when-including-bom/189325 "2010-05-29T19:43:43Z")

</div>

Bug #3360: rdoc fails when including BOM http://redmine.ruby-lang.org/issues/show/3360 e$B5/I\<\<Te(B: white leaf e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.3dev (2010-05-28 trunk 28052) \[i386-cygwi…

---

## [\[Bug #3037\] testrb $B$NF0:n$,(B1.8.7 $B$N(B testrb $B$H0c$$$9$.$k(B](https://www.ruby-forum.com/t/bug-3037-testrb-b-nf0-n-b1-8-7-b-n-b-testrb-b-h0c-9-k-b/188855)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 7\
**Last updated:** [May 29, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/bug-3037-testrb-b-nf0-n-b1-8-7-b-n-b-testrb-b-h0c-9-k-b/188855 "2010-05-29T18:44:00Z")

</div>

e$B%A%1%C%He(B #3037 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) Target version 1.9.2e$B$+$ie(B1.9.xe$B$KJQ99e(B e$B1sF#$G$9!#e(B 2010e$BG/e(B3e$B7ne(B29e$BF|e(B18:21 okkez \_ removed\_email\_address@domain.invalid: Finish…

---

## [Compile .rb into .class and include in war](https://www.ruby-forum.com/t/compile-rb-into-class-and-include-in-war/189260)

<div class="topic-metadata">

**Author:** [@sakhi](https://www.ruby-forum.com/u/sakhi)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 11:29am UTC](https://www.ruby-forum.com/t/compile-rb-into-class-and-include-in-war/189260 "2010-05-29T11:29:44Z")

</div>

I have one rails application, It is working on tomcat after deploying the war created by warbler. But my requirement is that i dont want to give my code to client in any form even in war file. so to achive this i trie…

---

## [Source Code for puts(..)](https://www.ruby-forum.com/t/source-code-for-puts/189345)

<div class="topic-metadata">

**Author:** [@dlucci](https://www.ruby-forum.com/u/dlucci)\
**Replies:** 1\
**Last updated:** [May 29, 2010, 11:18am UTC](https://www.ruby-forum.com/t/source-code-for-puts/189345 "2010-05-29T11:18:02Z")

</div>

Dear all, I am writing a program that for some reason one of the options takes 20 seconds to run while the other two combined take 12 seconds. I have the problem narrowed down to one line of code that is always run. …

---

## [Rainbows! 0.93.0 - MOAR!1](https://www.ruby-forum.com/t/rainbows-0-93-0-moar-1/189346)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [May 29, 2010, 9:00am UTC](https://www.ruby-forum.com/t/rainbows-0-93-0-moar-1/189346 "2010-05-29T09:00:29Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily b…

---

## [Insecure operation - chdir](https://www.ruby-forum.com/t/insecure-operation-chdir/189294)

<div class="topic-metadata">

**Author:** [@Yang\_Z](https://www.ruby-forum.com/u/Yang_Z)\
**Replies:** 4\
**Last updated:** [May 29, 2010, 8:14am UTC](https://www.ruby-forum.com/t/insecure-operation-chdir/189294 "2010-05-29T08:14:16Z")

</div>

When running rake from a suid binary: #include \<stdlib.h\> int main() { return system(“rake -f /usr/share/redmine/Rakefile redmine:fetch\_changesets RAILS\_ENV=production”); } I’m getting “Insecure operation - chdir”: …

---

## [Spree or substruct?](https://www.ruby-forum.com/t/spree-or-substruct/185247)

<div class="topic-metadata">

**Author:** [@Wesley\_Brown](https://www.ruby-forum.com/u/Wesley_Brown)\
**Replies:** 1\
**Last updated:** [May 29, 2010, 7:19am UTC](https://www.ruby-forum.com/t/spree-or-substruct/185247 "2010-05-29T07:19:44Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Installing plugin for Facebooker using git](https://www.ruby-forum.com/t/installing-plugin-for-facebooker-using-git/189282)

<div class="topic-metadata">

**Author:** [@Rajiv\_N](https://www.ruby-forum.com/u/Rajiv_N)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 4:27am UTC](https://www.ruby-forum.com/t/installing-plugin-for-facebooker-using-git/189282 "2010-05-29T04:27:12Z")

</div>

I am trying the following tutorial for facebook using Jruby on Rails http://www.nolanconsul.com/articles/facebooker-tutorial/ One of the steps is rails mygreatapp cd mygreatapp script/plugin install git://github.c…

---

## [Suggestion to design specific network client](https://www.ruby-forum.com/t/suggestion-to-design-specific-network-client/189337)

<div class="topic-metadata">

**Author:** [@pollopoop92](https://www.ruby-forum.com/u/pollopoop92)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 4:19am UTC](https://www.ruby-forum.com/t/suggestion-to-design-specific-network-client/189337 "2010-05-29T04:19:36Z")

</div>

Hi, as in the object i need to realize a simple IPv6 multicast client. And I already do it with some troubles but solved. Now, i’ve to make something that every N seconds, i.e. 10s , store the data sampled until that…

---

## [Simple GUI framework - nothing fancy](https://www.ruby-forum.com/t/simple-gui-framework-nothing-fancy/189333)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 1\
**Last updated:** [May 29, 2010, 1:18am UTC](https://www.ruby-forum.com/t/simple-gui-framework-nothing-fancy/189333 "2010-05-29T01:18:12Z")

</div>

I’m looking for a very basic GUI framework that would be useful for beginners in the world of GUIs but not beginners to programming necessarily. Something that would be very easy and clean for setting up basic windows…

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

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