# Ruby

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

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

---

## [Win32-service 0.5.2](https://www.ruby-forum.com/t/win32-service-0-5-2/77258)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [November 25, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/win32-service-0-5-2/77258 "2006-11-25T19:11:29Z")

</div>

Hi all, The Win32Utils Team is happy to announce the release of win32-service 0.5.2. Normally I don’t announce minor releases, but this one contains a fix for the dreaded thread blocking issue (you know, where you wo…

---

## [\[ANN\] Poisson 0.1](https://www.ruby-forum.com/t/ann-poisson-0-1/77257)

<div class="topic-metadata">

**Author:** [@turnip](https://www.ruby-forum.com/u/turnip)\
**Replies:** 0\
**Last updated:** [November 25, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/ann-poisson-0-1/77257 "2006-11-25T19:07:42Z")

</div>

Hi All, I have written a small library for the Poisson distribution. To install: gem install poisson Documentation is available at http://poisson.rubyforge.org/. I did this primarily as a small project with which I c…

---

## [Ruby with regular expression](https://www.ruby-forum.com/t/ruby-with-regular-expression/77157)

<div class="topic-metadata">

**Author:** [@peppermonkey](https://www.ruby-forum.com/u/peppermonkey)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/ruby-with-regular-expression/77157 "2006-11-25T18:53:27Z")

</div>

Hi, I’m new to Ruby (and Regular expressions in general) and as such, this is rather a newbie question but I’m trying to write a script in Ruby to open a file and do some string manipulation. Basically I’m getting hu…

---

## [Question about partials and logic in rails](https://www.ruby-forum.com/t/question-about-partials-and-logic-in-rails/77255)

<div class="topic-metadata">

**Author:** [@shawn\_bright](https://www.ruby-forum.com/u/shawn_bright)\
**Replies:** 0\
**Last updated:** [November 25, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/question-about-partials-and-logic-in-rails/77255 "2006-11-25T18:31:25Z")

</div>

lo there, i have a partial i want to display that will contain a graph, but i don’t want to do all the data pulls from the rhtml, so if i do, say, a render partial \_chart.rhtml, will it respond to a controller functi…

---

## [Old RCRs now available for reading](https://www.ruby-forum.com/t/old-rcrs-now-available-for-reading/77244)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/old-rcrs-now-available-for-reading/77244 "2006-11-25T17:41:22Z")

</div>

Hi – I’ve made the old RCRs available for browsing at: http://oldrcrs.rubypal.com. David

---

## [Newbie question regarding threads and system commands](https://www.ruby-forum.com/t/newbie-question-regarding-threads-and-system-commands/77188)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/newbie-question-regarding-threads-and-system-commands/77188 "2006-11-25T16:01:12Z")

</div>

Sorry if I’m bothering you all again… This is my first program that runs a) threads and b) system commands, so I apologize for being a newbie. What I’m trying to do is ping multiple parts of a site to help an tech s…

---

## [Regexp working with mixed lines endings](https://www.ruby-forum.com/t/regexp-working-with-mixed-lines-endings/77223)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [November 25, 2006, 1:40pm UTC](https://www.ruby-forum.com/t/regexp-working-with-mixed-lines-endings/77223 "2006-11-25T13:40:59Z")

</div>

Hey all, i’ve an audio file (wav) containing some xml metadatas at start or ending of the ausio datas. my regexp works fine with unix lines endings. however some recorder puts mixed line ending where my regexp isn’t …

---

## [RDoc - run cpp first?](https://www.ruby-forum.com/t/rdoc-run-cpp-first/77126)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 11:48am UTC](https://www.ruby-forum.com/t/rdoc-run-cpp-first/77126 "2006-11-25T11:48:48Z")

</div>

Hi, Just wondering if there’s a way to get Rdoc to run the C preprocessor over .c files it’s documenting? I like to use macros to define method functions and so on, but I often run up against limitations of Rdoc wrt. …

---

## [Hpricot/Rubyful Soup comparison](https://www.ruby-forum.com/t/hpricot-rubyful-soup-comparison/76877)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 18\
**Last updated:** [November 25, 2006, 11:30am UTC](https://www.ruby-forum.com/t/hpricot-rubyful-soup-comparison/76877 "2006-11-25T11:30:45Z")

</div>

Has anyone done a head to head comparison of Hpricot and Rubyful Soup (both HTML parsers)? If so, would you be willing to comment on which one a) is faster for an average sized HTML page and b) preserves the original …

---

## [How to get a list of Gems?](https://www.ruby-forum.com/t/how-to-get-a-list-of-gems/77239)

<div class="topic-metadata">

**Author:** [@tesla](https://www.ruby-forum.com/u/tesla)\
**Replies:** 2\
**Last updated:** [November 25, 2006, 11:10am UTC](https://www.ruby-forum.com/t/how-to-get-a-list-of-gems/77239 "2006-11-25T11:10:42Z")

</div>

Hi, I need help in gettng a list of gems. When I use gem list --remote it works but in windows prompt the list is truncated. Increasing the buffer does not help. I tried to do a dump to a file but it only reads the …

---

## [Rubyish inst.var initializations](https://www.ruby-forum.com/t/rubyish-inst-var-initializations/76984)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 11\
**Last updated:** [November 25, 2006, 8:38am UTC](https://www.ruby-forum.com/t/rubyish-inst-var-initializations/76984 "2006-11-25T08:38:29Z")

</div>

Hi all. I have some huge class with aspects of functionality spreaded in several source files. And in some of those aspects there is the same picture: class MyClass def push\_something(obj) @something\_list ||= \[\] @s…

---

## [Setting environment variables](https://www.ruby-forum.com/t/setting-environment-variables/77176)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [November 25, 2006, 7:50am UTC](https://www.ruby-forum.com/t/setting-environment-variables/77176 "2006-11-25T07:50:25Z")

</div>

hi - i have a ruby command line script, and i want to set/export an environment variable thats available to other various shell scripts that are called by this ruby… can someone tell me how to do this? i thot this m…

---

## [FastCGI unlimited spawning](https://www.ruby-forum.com/t/fastcgi-unlimited-spawning/77220)

<div class="topic-metadata">

**Author:** [@sombrero](https://www.ruby-forum.com/u/sombrero)\
**Replies:** 0\
**Last updated:** [November 25, 2006, 7:46am UTC](https://www.ruby-forum.com/t/fastcgi-unlimited-spawning/77220 "2006-11-25T07:46:13Z")

</div>

Hi, We’re having an issue with lighttpd / ruby / fastcgi and don’t know where to start to troubleshoot but we’re having a major issue. Fastcgi seem to be spawning and spawning and not closing bringing the system to a…

---

## [Generic way to test for expected SystemCallError](https://www.ruby-forum.com/t/generic-way-to-test-for-expected-systemcallerror/77162)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 7:09am UTC](https://www.ruby-forum.com/t/generic-way-to-test-for-expected-systemcallerror/77162 "2006-11-25T07:09:38Z")

</div>

Hi all, Ruby 1.8.x I’ve got a few tests where I’m looking for expected errors. These are various system call errors. The problem is that the exact Errno is different from platform to platform, so I end up writing s…

---

## [Simple ruby proxy](https://www.ruby-forum.com/t/simple-ruby-proxy/77204)

<div class="topic-metadata">

**Author:** [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 6:40am UTC](https://www.ruby-forum.com/t/simple-ruby-proxy/77204 "2006-11-25T06:40:22Z")

</div>

Hello, I’m trying to use a ruby program to grab html outside of my domain and alter it for use in another page in my domain. This is a proxy, right? I thought I wouldn’t have a problem with this but… I do. \<% requi…

---

## [Rmagick install problem](https://www.ruby-forum.com/t/rmagick-install-problem/76865)

<div class="topic-metadata">

**Author:** [@friofool](https://www.ruby-forum.com/u/friofool)\
**Replies:** 2\
**Last updated:** [November 25, 2006, 6:18am UTC](https://www.ruby-forum.com/t/rmagick-install-problem/76865 "2006-11-25T06:18:20Z")

</div>

hi, i got the following message when i try to install rmagick : /usr/bin/ruby -I /home/user/appli/tmp/RMagick-1.14.1/./lib -I /home/user/appli/tmp/RMagick-1.14.1/./ext/RMagick OrigCoordSys.rb /home/user/appli/tmp/RMa…

---

## [Webrick and String#each](https://www.ruby-forum.com/t/webrick-and-string-each/77076)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 5\
**Last updated:** [November 25, 2006, 3:34am UTC](https://www.ruby-forum.com/t/webrick-and-string-each/77076 "2006-11-25T03:34:03Z")

</div>

e$B@.@%$G$9!#e(B 1.9 e$B$K$Fe(B webrick e$B$Ke(B String#each e$B:o=|$N1F6A$,$G$F$$$^$9!#e(B raw e$B$Ke(B Array e$B$,Mh$F$7$^$C$?$j!“e(Bio e$B$Ke(B String e$B$,Mh$F$7$^$&%1!\<%9$,e(B e$B$”$k$3$H\<+BN$,$=$b$=$b$NLdBj$J5…

---

## [Frustrated with rails has\_many problem](https://www.ruby-forum.com/t/frustrated-with-rails-has-many-problem/77193)

<div class="topic-metadata">

**Author:** [@shawn\_bright](https://www.ruby-forum.com/u/shawn_bright)\
**Replies:** 5\
**Last updated:** [November 25, 2006, 3:24am UTC](https://www.ruby-forum.com/t/frustrated-with-rails-has-many-problem/77193 "2006-11-25T03:24:01Z")

</div>

hello there all, i am writing a website in rails, i love it, but i am banging my head here . ok, i have a table called sites ( means customer sites ) each site has\_many :site\_notes so, site\_note belongs\_to :site i …

---

## [Problems installing ruby](https://www.ruby-forum.com/t/problems-installing-ruby/77195)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 2:57am UTC](https://www.ruby-forum.com/t/problems-installing-ruby/77195 "2006-11-25T02:57:59Z")

</div>

Hello, I followed this tutorial and installed ruby successfully on my windows XP machine: http://mpcon.org/apacheguide/ruby.php Then I tried to install the mysql module for ruby and read a forum post which suggested…

---

## [VimMate 0.6.1](https://www.ruby-forum.com/t/vimmate-0-6-1/77205)

<div class="topic-metadata">

**Author:** [@Guillaume\_Benny](https://www.ruby-forum.com/u/Guillaume_Benny)\
**Replies:** 0\
**Last updated:** [November 25, 2006, 2:27am UTC](https://www.ruby-forum.com/t/vimmate-0-6-1/77205 "2006-11-25T02:27:55Z")

</div>

Hi, A new version of VimMate is now available: Version 0.6.1. VimMate is a graphical add-on to Vim with IDE-like features: it does more than the plain Vim while still being lightweight. Even with the additional fea…

---

## [WEBrick GET/POST problem](https://www.ruby-forum.com/t/webrick-get-post-problem/77203)

<div class="topic-metadata">

**Author:** [@T\_E](https://www.ruby-forum.com/u/T_E)\
**Replies:** 0\
**Last updated:** [November 25, 2006, 1:31am UTC](https://www.ruby-forum.com/t/webrick-get-post-problem/77203 "2006-11-25T01:31:49Z")

</div>

I need to write a servlet that will handle both GET and POST stuff, for example of you were to have something like … but I can’t figure out a way to do this. It would be nice if they would all go into the request obje…

---

## [Gateway Reality Check](https://www.ruby-forum.com/t/gateway-reality-check/77189)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 12:33am UTC](https://www.ruby-forum.com/t/gateway-reality-check/77189 "2006-11-25T00:33:40Z")

</div>

Please ignore. James Edward G. II

---

## [Builtin singleton & instance\_methods](https://www.ruby-forum.com/t/builtin-singleton-instance-methods/77183)

<div class="topic-metadata">

**Author:** [@lopex](https://www.ruby-forum.com/u/lopex)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:51pm UTC](https://www.ruby-forum.com/t/builtin-singleton-instance-methods/77183 "2006-11-24T23:51:31Z")

</div>

Hi, given: s=“some string” def s.some\_meth end class \<\< s p self.instance\_methods(false) end why instance\_methods doesn’t return only the name of a method defined for singletons class ? I’ve found that this is a…

---

## [Shortening this expression?](https://www.ruby-forum.com/t/shortening-this-expression/77179)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:33pm UTC](https://www.ruby-forum.com/t/shortening-this-expression/77179 "2006-11-24T23:33:30Z")

</div>

Hello, I don’t like the verbosity of these two lines years = Array.new 2003.step(Time.now.year) { |a| years \<\< a } I would like to populate the year array on one statement but I don’t know how Thanks in advance

---

## [Job: ruby engineer $BEl5~(B](https://www.ruby-forum.com/t/job-ruby-engineer-bel5-b/77180)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/job-ruby-engineer-bel5-b/77180 "2006-11-24T23:31:30Z")

</div>

Konichiwa! e$BF|K\\8lHG$O2\<5-$G$9!\*e(B we are a tokyo-based mobile content developer creating a social network for mobile phones. The service is built in ruby and we are looking for some developers to work together to…

---

## [What is \*self?](https://www.ruby-forum.com/t/what-is-self/77167)

<div class="topic-metadata">

**Author:** [@josefK](https://www.ruby-forum.com/u/josefK)\
**Replies:** 3\
**Last updated:** [November 24, 2006, 10:35pm UTC](https://www.ruby-forum.com/t/what-is-self/77167 "2006-11-24T22:35:23Z")

</div>

I encountered this added method to Array (I don’t recall the author - sorry ,) It converts an Array to a Hash by providing a block to compute the values given the array elements as keys: class Array def to\_h(&block) …

---

## [Question](https://www.ruby-forum.com/t/question/77133)

<div class="topic-metadata">

**Author:** [@businessnews](https://www.ruby-forum.com/u/businessnews)\
**Replies:** 2\
**Last updated:** [November 24, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/question/77133 "2006-11-24T22:27:19Z")

</div>

I don’t have much experince in using any web based framework. I have a few questions. I understand that ruby on rails is an open source web application framework written in Ruby that closely follows the Model-View-Con…

---

## [Rubycookbook 15.1 problem](https://www.ruby-forum.com/t/rubycookbook-15-1-problem/77172)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/rubycookbook-15-1-problem/77172 "2006-11-24T22:25:18Z")

</div>

I was following along Lucas’s rubycookbook receipe 15.1 for creating a ROR application for displaying the o/p of dir command on a windows machine onoto a browser. my application is named “check” instead of “status” a…

---

## [Unexpected kEND, expecting $](https://www.ruby-forum.com/t/unexpected-kend-expecting/77065)

<div class="topic-metadata">

**Author:** [@comforteagle](https://www.ruby-forum.com/u/comforteagle)\
**Replies:** 3\
**Last updated:** [November 24, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/unexpected-kend-expecting/77065 "2006-11-24T22:09:14Z")

</div>

a = IO.readlines(‘testparsed’) a.each do |groupname| filename = groupname.chomp File.open filename puts data end end Why does this give me: “parse error, unexpected kEND, expecting $” for the line with the last ‘…

---

## [Bug in ruby?](https://www.ruby-forum.com/t/bug-in-ruby/76785)

<div class="topic-metadata">

**Author:** [@aliasxneo](https://www.ruby-forum.com/u/aliasxneo)\
**Replies:** 31\
**Last updated:** [November 24, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/bug-in-ruby/76785 "2006-11-24T22:09:13Z")

</div>

Well, I’ve spent the last hour or so debugging one of the stupidest errors I have encountered with Ruby. Let’s see my code first: def parse(string, starting, ending) istart = string.index(starting) + starting.…

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

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