# Ruby

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

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

---

## [Using of module and "Is not missing constant" error](https://www.ruby-forum.com/t/using-of-module-and-is-not-missing-constant-error/186000)

<div class="topic-metadata">

**Author:** [@sorokyn](https://www.ruby-forum.com/u/sorokyn)\
**Replies:** 7\
**Last updated:** [March 30, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/using-of-module-and-is-not-missing-constant-error/186000 "2010-03-30T16:44:03Z")

</div>

Hi, I have some trouble using module. I’m working on a rails project, but I think it’s concerning Ruby in general. I get this kind of error ‘Module is not missing constant Klass!’ I have folders looking like this : …

---

## [Install fcgi 0.8.8 on Ruby-1.8](https://www.ruby-forum.com/t/install-fcgi-0-8-8-on-ruby-1-8/185936)

<div class="topic-metadata">

**Author:** [@gorkimaximum](https://www.ruby-forum.com/u/gorkimaximum)\
**Replies:** 3\
**Last updated:** [March 30, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/install-fcgi-0-8-8-on-ruby-1-8/185936 "2010-03-30T16:39:25Z")

</div>

Hello, I have tried to install the gem fcgi-0.8.8 for Ruby on Windows-Xp. I have installed Fastcgi Development Kit on C:\\fcgi directory and i have compiled the source. The source for fcgi is in “C:\\fcgi\\include” dire…

---

## [\[Bug #3055\] NEWS: URI Obsoleted methods](https://www.ruby-forum.com/t/bug-3055-news-uri-obsoleted-methods/186019)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [March 30, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/bug-3055-news-uri-obsoleted-methods/186019 "2010-03-30T15:17:26Z")

</div>

Bug #3055: NEWS: URI Obsoleted methods http://redmine.ruby-lang.org/issues/show/3055 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: DOC, Target version: 1.9.2 ruby -v: …

---

## [Programming Language Comparison](https://www.ruby-forum.com/t/programming-language-comparison/185952)

<div class="topic-metadata">

**Author:** [@Space\_Ship\_T](https://www.ruby-forum.com/u/Space_Ship_T)\
**Replies:** 9\
**Last updated:** [March 30, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/programming-language-comparison/185952 "2010-03-30T15:05:44Z")

</div>

Dear Friends, I’m working on some resources for teaching Ruby. As part of this, I’m studying what already exists, and whether or not it is conducive to learning to program. I have put together a list of several progr…

---

## [Process.daemon() returns -1 on failure ifndef HAVE\_DAEMON](https://www.ruby-forum.com/t/process-daemon-returns-1-on-failure-ifndef-have-daemon/185934)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 5\
**Last updated:** [March 30, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/process-daemon-returns-1-on-failure-ifndef-have-daemon/185934 "2010-03-30T13:58:28Z")

</div>

ã€€Process.daemon() å¤±æ•—æ™‚ã®æŒ™å‹•ãŒã€ HAVE\_DAEMON å®šç¾©æ™‚ã¨éžå®šç¾©æ™‚ ã¨ã§ç•°ãªã£ã¦ã„ã¾ã™ã€‚å¾Œè€…ã®å ´åˆã‚‚ã€ -1 ã‚’è¿”ã™ã®ã§ã¯ãªã errno ã« åŸºã¥ã„ãŸä¾‹å¤–ã‚’ä¸Šã’ã‚‹ã¹ãã ã¨æ€ã…

---

## [How to use string variables in output files?](https://www.ruby-forum.com/t/how-to-use-string-variables-in-output-files/185979)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 2\
**Last updated:** [March 30, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-use-string-variables-in-output-files/185979 "2010-03-30T13:16:33Z")

</div>

hi,i want to prase the web ‘行情中心\_网易财经’ there are 27 tables in the web, i made a for loop to get every table in the web, /home/pt/test/table0 is the output of tables\[0\], /home/pt/test/table1 is the output of tables\[1…

---

## [Its a bird, its a plane, no ummm, its a Ruide](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-no-ummm-its-a-ruide/186011)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 1\
**Last updated:** [March 30, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-no-ummm-its-a-ruide/186011 "2010-03-30T13:15:46Z")

</div>

Well, maybe. I did a partial braindump into: http://wiki.github.com/gkoller/Ruides-/ just now. I’m too impatient to get back to work to learn Textile right now, and couldn’t figure out how to turn it off. sheeez. …

---

## [Ruby web service](https://www.ruby-forum.com/t/ruby-web-service/185998)

<div class="topic-metadata">

**Author:** [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Replies:** 1\
**Last updated:** [March 30, 2010, 12:52pm UTC](https://www.ruby-forum.com/t/ruby-web-service/185998 "2010-03-30T12:52:10Z")

</div>

Hi all, I’m looking to make a web service probably with Sinatra. I’m a little confused about the best way to structure parameter passing for POST / PUT. I’d like to use XML formats for the data. I’ve found the ‘activ…

---

## [Hash to\_xml from\_xml](https://www.ruby-forum.com/t/hash-to-xml-from-xml/186003)

<div class="topic-metadata">

**Author:** [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Replies:** 1\
**Last updated:** [March 30, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/hash-to-xml-from-xml/186003 "2010-03-30T12:49:06Z")

</div>

Am I missing something require 'active\_record' require 'active\_support' require 'pp' v = Hash.from\_xml %{ \<hash\> \<users type="array"\> \<user type="integer"\>1\</user\> \<user type="integer"\>2\</user\> \<use…

---

## [Non-blocking calls to external APIs](https://www.ruby-forum.com/t/non-blocking-calls-to-external-apis/185880)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 8\
**Last updated:** [March 30, 2010, 12:40pm UTC](https://www.ruby-forum.com/t/non-blocking-calls-to-external-apis/185880 "2010-03-30T12:40:33Z")

</div>

hi - sure this is becoming a more common issue for many people - from within a web-app how to interact with other systems in a non-blocking way. ie i dont need to wait for a response from the other system in the cycle…

---

## [Fastest Array Search?](https://www.ruby-forum.com/t/fastest-array-search/185996)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 8\
**Last updated:** [March 30, 2010, 11:34am UTC](https://www.ruby-forum.com/t/fastest-array-search/185996 "2010-03-30T11:34:19Z")

</div>

Hello, everyone! What would be the quickest/best way to check elements of an array, which themselves are arrays of hashes? Quick example: mov1 = {“title”=\>“Batman Returns”, “genre”=\>“Action”} mov2 = {“title”=\>“Batman”…

---

## [Are you struggling to understand Business Concepts?](https://www.ruby-forum.com/t/are-you-struggling-to-understand-business-concepts/186005)

<div class="topic-metadata">

**Author:** [@Learn\_Business\_Conc](https://www.ruby-forum.com/u/Learn_Business_Conc)\
**Replies:** 0\
**Last updated:** [March 30, 2010, 10:50am UTC](https://www.ruby-forum.com/t/are-you-struggling-to-understand-business-concepts/186005 "2010-03-30T10:50:45Z")

</div>

We have developed a highly interactive short online course for you. Try this new statistics package at http://www.simple-abc.com , which will help you to learn even faster. Experience our cutting edge technological in…

---

## [Ruby cannot find the file in the directory - Error Enoent](https://www.ruby-forum.com/t/ruby-cannot-find-the-file-in-the-directory-error-enoent/185973)

<div class="topic-metadata">

**Author:** [@kayote](https://www.ruby-forum.com/u/kayote)\
**Replies:** 4\
**Last updated:** [March 30, 2010, 7:29am UTC](https://www.ruby-forum.com/t/ruby-cannot-find-the-file-in-the-directory-error-enoent/185973 "2010-03-30T07:29:39Z")

</div>

All, Just started Ruby and using Notepad++ for writing code but for some reason, upon execution of the \*.rb file, the command prompt give me the attached error (please see the image attached). The file is just a text…

---

## [Help me plan my Ruby app :)](https://www.ruby-forum.com/t/help-me-plan-my-ruby-app/185575)

<div class="topic-metadata">

**Author:** [@trib4lmaniac](https://www.ruby-forum.com/u/trib4lmaniac)\
**Replies:** 10\
**Last updated:** [March 30, 2010, 6:27am UTC](https://www.ruby-forum.com/t/help-me-plan-my-ruby-app/185575 "2010-03-30T06:27:55Z")

</div>

So I am interested in writing a program to read a file I write, with different reminder info in it, and then have it send emails to my account with the proper message on the proper days as reminders for me. Ruby’s one…

---

## [\[Feature #3018\] UNINITIALIZED\_VAR() $B%^%/%m$NF3F~(B](https://www.ruby-forum.com/t/feature-3018-uninitialized-var-b-m-nf3f-b/185809)

<div class="topic-metadata">

**Author:** [@Motohiro\_KOSAKI](https://www.ruby-forum.com/u/Motohiro_KOSAKI)\
**Replies:** 11\
**Last updated:** [March 30, 2010, 5:24am UTC](https://www.ruby-forum.com/t/feature-3018-uninitialized-var-b-m-nf3f-b/185809 "2010-03-30T05:24:44Z")

</div>

Feature #3018: UNINITIALIZED\_VAR() e$B%^%/%m$NF3F~e(B http://redmine.ruby-lang.org/issues/show/3018 e$B5/I\<\<Te(B: Motohiro KOSAKI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: core, Target version: 1.9.x …

---

## [Arrays](https://www.ruby-forum.com/t/arrays/185725)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 6\
**Last updated:** [March 30, 2010, 4:30am UTC](https://www.ruby-forum.com/t/arrays/185725 "2010-03-30T04:30:17Z")

</div>

Hi all, i have an array contains no of elements. i want to concatinate 91 before every elemnt of array. example i have A= \[234,456,raju\] like this i want the out put arry tobe A=\[91234,91456,91raju\] like thissss i …

---

## [Socket.connect not defined?](https://www.ruby-forum.com/t/socket-connect-not-defined/185975)

<div class="topic-metadata">

**Author:** [@Luc\_T](https://www.ruby-forum.com/u/Luc_T)\
**Replies:** 2\
**Last updated:** [March 29, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/socket-connect-not-defined/185975 "2010-03-29T23:31:49Z")

</div>

Hi all, Here is a dump from a jirb session on Windows 7 (64): irb(main):001:0\> require ‘socket’ =\> true irb(main):002:0\> include Socket::Constants =\> Object irb(main):003:0\> socket = Socket.new(AF\_INET, SOCK\_STREAM…

---

## [Question: Dynamic code execution](https://www.ruby-forum.com/t/question-dynamic-code-execution/185940)

<div class="topic-metadata">

**Author:** [@Thorsten\_H](https://www.ruby-forum.com/u/Thorsten_H)\
**Replies:** 4\
**Last updated:** [March 29, 2010, 9:57pm UTC](https://www.ruby-forum.com/t/question-dynamic-code-execution/185940 "2010-03-29T21:57:35Z")

</div>

Hi I’m currently writing a small game application in ruby. The problem is, not all of the rules are static, meaning some of the actions in the game are allowed to change them. My question is, what is the best and saf…

---

## [Easy task, Sum array element... Why doesn't it work?](https://www.ruby-forum.com/t/easy-task-sum-array-element-why-doesnt-it-work/185930)

<div class="topic-metadata">

**Author:** [@walle](https://www.ruby-forum.com/u/walle)\
**Replies:** 6\
**Last updated:** [March 29, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/easy-task-sum-array-element-why-doesnt-it-work/185930 "2010-03-29T21:28:20Z")

</div>

I have done it many times before, but this time I can’t get it too work. I’m starting to get a bit frustrating. So, I’m trying to sum all elements from the second element in a Array using inject. The problem is that i…

---

## [Bad file descriptor, but not on 2/3 computers](https://www.ruby-forum.com/t/bad-file-descriptor-but-not-on-2-3-computers/185905)

<div class="topic-metadata">

**Author:** [@kingtag1445](https://www.ruby-forum.com/u/kingtag1445)\
**Replies:** 6\
**Last updated:** [March 29, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/bad-file-descriptor-but-not-on-2-3-computers/185905 "2010-03-29T20:19:14Z")

</div>

I am running a Ruby program that takes files from the command line and then edits them based on user input. This part works perfectly fine. The issue I am having is that when I pass an input file I am getting an error…

---

## [Showing pictures in GTK::IconView](https://www.ruby-forum.com/t/showing-pictures-in-gtk-iconview/185963)

<div class="topic-metadata">

**Author:** [@Andreas\_Drop](https://www.ruby-forum.com/u/Andreas_Drop)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 8:09pm UTC](https://www.ruby-forum.com/t/showing-pictures-in-gtk-iconview/185963 "2010-03-29T20:09:18Z")

</div>

Hi, I am working on a program which has to show all the pictures in a directory as an icon in a GTK::IconView Widget. Reading a picture an scaling it down do an iconsize pixbuf takes about a second or two. In a direc…

---

## [Minitest\_tu\_shim 1.3.2 Released](https://www.ruby-forum.com/t/minitest-tu-shim-1-3-2-released/185875)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [March 29, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/minitest-tu-shim-1-3-2-released/185875 "2010-03-29T18:58:40Z")

</div>

minitest\_tu\_shim version 1.3.2 has been released! http://rubyforge.org/projects/bfts minitest\_tu\_shim bridges the gap between the small and fast minitest and ruby’s huge and slow test/unit. Changes: 1.3.2 / 2010-0…

---

## [Another noob question](https://www.ruby-forum.com/t/another-noob-question/185949)

<div class="topic-metadata">

**Author:** [@mehektet](https://www.ruby-forum.com/u/mehektet)\
**Replies:** 1\
**Last updated:** [March 29, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/another-noob-question/185949 "2010-03-29T17:27:09Z")

</div>

Thanks to everyone that helped me a few days ago. This time I am trying to write a program that incorporates everything that I have learned in the last week but I am more than sure that I am making mistakes somewhere…

---

## [Why teach Ruby in the classroom?](https://www.ruby-forum.com/t/why-teach-ruby-in-the-classroom/185146)

<div class="topic-metadata">

**Author:** [@Space\_Ship\_T](https://www.ruby-forum.com/u/Space_Ship_T)\
**Replies:** 10\
**Last updated:** [March 29, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/why-teach-ruby-in-the-classroom/185146 "2010-03-29T15:52:19Z")

</div>

Hello Everyone, I’m working on an educational project. Part of this has involved writing a report about why Ruby is (would be) a good language in an educational context. I’m currently developing this report, and am l…

---

## [Ruby and user documentation](https://www.ruby-forum.com/t/ruby-and-user-documentation/185795)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 19\
**Last updated:** [March 29, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/ruby-and-user-documentation/185795 "2010-03-29T15:07:14Z")

</div>

Hi all, I just finished a quite large business project (in 1.9, pure ruby, not Rails, with GUIs in FXRuby). I want to write a documentation for users (not the code doc, I use Yard for it). Of course I can produce doc …

---

## [\[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/185926)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 11:21am 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/185926 "2010-03-29T11:21:52Z")

</div>

Bug #3037: testrb e$B$NF0:n$,e(B1.8.7 e$B$Ne(B testrb e$B$H0c$$$9$.$ke(B http://redmine.ruby-lang.org/issues/show/3037 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib, Target ve…

---

## [Read & Write data on a site](https://www.ruby-forum.com/t/read-write-data-on-a-site/185844)

<div class="topic-metadata">

**Author:** [@omegas7](https://www.ruby-forum.com/u/omegas7)\
**Replies:** 4\
**Last updated:** [March 29, 2010, 10:27am UTC](https://www.ruby-forum.com/t/read-write-data-on-a-site/185844 "2010-03-29T10:27:42Z")

</div>

Hello. I got my own website and I would like it to have something like a database. I want my application to be able to read, create or edit variables on the database. Basically, how do I connect to a website and crea…

---

## [Using Mechanize To Submit Forms](https://www.ruby-forum.com/t/using-mechanize-to-submit-forms/185903)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 3\
**Last updated:** [March 29, 2010, 9:45am UTC](https://www.ruby-forum.com/t/using-mechanize-to-submit-forms/185903 "2010-03-29T09:45:18Z")

</div>

Hi guys, I’m trying to use Mechanize with Ruby to scrape data from this site (http://www.tse.or.jp/tseHpFront/HPLCDS0101E.do). The first part of my task is trying to automate an initial search form, I can do this fine …

---

## [\[Feature #3036\] String#encode(to, from, opt) $B$N(B opt\[:replace\] $B$K(B Hash](https://www.ruby-forum.com/t/feature-3036-string-encode-to-from-opt-b-n-b-opt-replace-b-k-b-hash/185915)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 9:11am UTC](https://www.ruby-forum.com/t/feature-3036-string-encode-to-from-opt-b-n-b-opt-replace-b-k-b-hash/185915 "2010-03-29T09:11:56Z")

</div>

Feature #3036: String#encode(to, from, opt) e$B$Ne(B opt\[:replace\] e$B$Ke(B Hash http://redmine.ruby-lang.org/issues/show/3036 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: …

---

## [Free public beta of memprof.com the ruby memory analyzer](https://www.ruby-forum.com/t/free-public-beta-of-memprof-com-the-ruby-memory-analyzer/185911)

<div class="topic-metadata">

**Author:** [@Joe\_Damato](https://www.ruby-forum.com/u/Joe_Damato)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 7:20am UTC](https://www.ruby-forum.com/t/free-public-beta-of-memprof-com-the-ruby-memory-analyzer/185911 "2010-03-29T07:20:08Z")

</div>

Hi - The free public beta for memprof.com is now live. You can sign up and use it here: http://memprof.com/signup The gem is free and open source, available on github: GitHub - ice799/memprof: A Ruby gem for memory …

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

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