# Ruby

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

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

---

## [Ruby shell?](https://www.ruby-forum.com/t/ruby-shell/112783)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 25\
**Last updated:** [August 29, 2007, 11:16am UTC](https://www.ruby-forum.com/t/ruby-shell/112783 "2007-08-29T11:16:48Z")

</div>

what about a shell based on ruby? would such a thing be useful/powerful? (aliasing Dir\[/“usr/bin/\*”\] to ls returns an array, can then specify ranges, etc) rash to replace/include bash? :slight\_smile: I’m pretty new to…

---

## [Sending URL](https://www.ruby-forum.com/t/sending-url/113164)

<div class="topic-metadata">

**Author:** [@Aby\_azid\_A](https://www.ruby-forum.com/u/Aby_azid_A)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 11:08am UTC](https://www.ruby-forum.com/t/sending-url/113164 "2007-08-29T11:08:31Z")

</div>

Hello, I need to send a URL to a server, example “http://sms1.eskyglobal.com:8080/servlet/com.pcs.emood.http.emoodRequest?username=xxxx&password=xxxx&sendto=6012XXXXXXX&text=This+is+a+test+message&tpoa=PCS” Question, …

---

## [Howto decode encoded mail subjects?](https://www.ruby-forum.com/t/howto-decode-encoded-mail-subjects/113103)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 10:15am UTC](https://www.ruby-forum.com/t/howto-decode-encoded-mail-subjects/113103 "2007-08-29T10:15:44Z")

</div>

Hi, i need to parse mails. Some of the Mails in question use some ending scheme to support sepcial characters which are not ASCII-7. encoded chars look like this: =?UTF-8?Q?=20some text…?UTF-?Q?.. Is there a way to d…

---

## [{|(a)|} assigns outer local variable](https://www.ruby-forum.com/t/a-assigns-outer-local-variable/112456)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 8:29am UTC](https://www.ruby-forum.com/t/a-assigns-outer-local-variable/112456 "2007-08-29T08:29:33Z")

</div>

e$B0J2\<$N$h$&$K!"%V%m%C%/%Q%i%a!\<%?$NJQ?t$X$NB+G{$,0JA0$N$h$&$Ke(B e$B30It$N%m!\<%+%kJQ?t$X$NBeF~$K$J$k$3$H$,$"$j$^$9!#e(B % ./ruby -ve ’ def m() yield 2 end a = 1 p a m {|(a)| p a } p a ’ ruby 1.9.0 (2007-08-19 …

---

## [Ruby/Informix 0.6.0](https://www.ruby-forum.com/t/ruby-informix-0-6-0/113245)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 6:39am UTC](https://www.ruby-forum.com/t/ruby-informix-0-6-0/113245 "2007-08-29T06:39:21Z")

</div>

Ruby/Informix is a Ruby extension for connecting to IBM Informix Dynamic Server, written in ESQL/C. It runs on Solaris, Linux, Windows XP and HP-UX. It has been tested with Informix 7, 9, 10 and 11. Read the release n…

---

## [Ruport 1.2 Released](https://www.ruby-forum.com/t/ruport-1-2-released/113241)

<div class="topic-metadata">

**Author:** [@mikem836](https://www.ruby-forum.com/u/mikem836)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 6:01am UTC](https://www.ruby-forum.com/t/ruport-1-2-released/113241 "2007-08-29T06:01:20Z")

</div>

Ruport version 1.2 has been released. This update contains significant enhancements to Ruport’s functionality. The full release notes can be found at http://rubyreports.org/release\_notes-1.2.html , but a summary of t…

---

## [\-K$B%\*%W%7%g%s$H(Bparser-\>enc$B$N4X78(B](https://www.ruby-forum.com/t/k-b-w-7-g-s-h-bparser-enc-b-n4x78-b/113233)

<div class="topic-metadata">

**Author:** [@akira\_yamada\_S\_SSB](https://www.ruby-forum.com/u/akira_yamada_S_SSB)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 3:16am UTC](https://www.ruby-forum.com/t/k-b-w-7-g-s-h-bparser-enc-b-n4x78-b/113233 "2007-08-29T03:16:10Z")

</div>

e$B0J2\<$N$h$&$K!"e(B-Kue$B$J$I$r;XDj$7$F$be(B e$BJ8;zNs$Ne(Bencodinge$B$Oe(BUS-ASCIIe$B$K$J$j$^$9!#e(B $ ./ruby -Ku -e ‘p $KCODE; a="e$B$“e(B”; p a.encoding; p a’ “UTF8” “US-ASCII” “\\343\\201\\202” e$B$=$&$$$&;EMM$K$…

---

## [''Macro'' operator](https://www.ruby-forum.com/t/macro-operator/113172)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 7\
**Last updated:** [August 29, 2007, 2:56am UTC](https://www.ruby-forum.com/t/macro-operator/113172 "2007-08-29T02:56:09Z")

</div>

It is probably called different in ruby, but what I want to achive is: a1=10 r= ?(‘a’ + ‘1’) # ? is whatever, r should have value 10 by TheR

---

## [IRB module with non-blocking asynchronous gets](https://www.ruby-forum.com/t/irb-module-with-non-blocking-asynchronous-gets/112979)

<div class="topic-metadata">

**Author:** [@sjml](https://www.ruby-forum.com/u/sjml)\
**Replies:** 6\
**Last updated:** [August 29, 2007, 12:57am UTC](https://www.ruby-forum.com/t/irb-module-with-non-blocking-asynchronous-gets/112979 "2007-08-29T00:57:01Z")

</div>

Is there a way to use the IRB module so that it evaluates code on-demand only instead of running in a constant loop? I don’t need to use readline and have IRB wait for input – I can trigger its need to evaluate from e…

---

## [More convenient #p?](https://www.ruby-forum.com/t/more-convenient-p/113102)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 10\
**Last updated:** [August 28, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/more-convenient-p/113102 "2007-08-28T22:32:20Z")

</div>

Has anyone else every wished #p would passthru it’s argument? Ie. Work like this: def p(x) puts x.inspect x end Is there any good reason that it shouldn’t? I noticed this was in Ruby’s source code TODO list once, …

---

## [Openssl buffer.rb EOFError](https://www.ruby-forum.com/t/openssl-buffer-rb-eoferror/113215)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/openssl-buffer-rb-eoferror/113215 "2007-08-28T22:28:45Z")

</div>

Has anyone seen an error like this: Exception \`EOFError’ at /usr/lib/ruby/1.8/openssl/buffering.rb:35 - end of file reached I am running ruby 1.8.5 on linux. I have a xmpp bot that gets this after about 10 to 12 minu…

---

## [Existing postgres database](https://www.ruby-forum.com/t/existing-postgres-database/113205)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/existing-postgres-database/113205 "2007-08-28T22:20:41Z")

</div>

Quick simple question I am walking through some rails tutorials and would like to test it with our corporate database, I am not very familiar with the platform but I am learning. Are there any guides,tutorials or advi…

---

## [Socket 10s hangs](https://www.ruby-forum.com/t/socket-10s-hangs/113130)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [August 28, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/socket-10s-hangs/113130 "2007-08-28T21:59:37Z")

</div>

Question: anybody ever had the situation of a socket create or send that freezes all thread for multiples of 10s? (i.e. 10 or 20 or 30–exactly?) Odd, isn’t it? Thanks! \[note this is tcp sockets to IP addresses, not…

---

## [Ruby Gems Help](https://www.ruby-forum.com/t/ruby-gems-help/113062)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 4\
**Last updated:** [August 28, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/ruby-gems-help/113062 "2007-08-28T21:58:37Z")

</div>

Hello again, I’ve run into trouble installing RubyGems. I’ve read the readme and several other tutorials and they tell me to run “ruby setup.rb”. Somehow this confuses me and for some reason I think it must be the e…

---

## [Transfer (own)ruby object over SOAP](https://www.ruby-forum.com/t/transfer-own-ruby-object-over-soap/113174)

<div class="topic-metadata">

**Author:** [@Philipp](https://www.ruby-forum.com/u/Philipp)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/transfer-own-ruby-object-over-soap/113174 "2007-08-28T21:50:36Z")

</div>

Hello everyone, after 2 days searching the web for a solution i get stuck. I have a rails APP with a SOAP interface and a simply ruby client e.g I have a object CAR that has a name and 4 DOORS CAR \<-1:N-\> DOOR //st…

---

## [Array#slice!](https://www.ruby-forum.com/t/array-slice/113211)

<div class="topic-metadata">

**Author:** [@Satoshi\_N](https://www.ruby-forum.com/u/Satoshi_N)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/array-slice/113211 "2007-08-28T20:59:29Z")

</div>

ä¸­å·ã¨ã„ã„ã¾ã™ã€‚ Array#slice! ã«ã€é…åˆ—ã®ã‚µã‚¤ã‚ºã‚’è¶…ãˆã‚‹è² ã®å€¤ã‚’æ¸¡ã—ãŸã¨ãã® æŒ™å‹•ãŒãŠã‹ã—ã„ã¨æ€ã„ã¾ã™ã€‚ trunk ã¨ 1.8 ã®æœ€æ–°ç‰ˆã§å†ç¾ã—ã¾ã—ãŸã€‚ $ ./ruby -v ruby 1.…

---

## [Select](https://www.ruby-forum.com/t/select/113136)

<div class="topic-metadata">

**Author:** [@eder](https://www.ruby-forum.com/u/eder)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/select/113136 "2007-08-28T20:01:24Z")

</div>

Hi, I’m working with sockets and I want to know when I’m able to send and receive data, this is what I Have: def receive select(nil, \[@socket\], nil, 0) end def send select(\[@socket\], nil, nil, 0) end Anyone knows…

---

## [Can this be more succinct?](https://www.ruby-forum.com/t/can-this-be-more-succinct/113190)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 6\
**Last updated:** [August 28, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/can-this-be-more-succinct/113190 "2007-08-28T18:44:54Z")

</div>

How can this be more succinct? Can I somehow put the nil check inline with the each? unless(params\[:categories\].nil?) params\[:categories\].each do |id| @subscriber.subscriptions.create :category\_id =\> id, :timestamp\_…

---

## [Problem with mod\_ruby and mod\_auth\_mysql](https://www.ruby-forum.com/t/problem-with-mod-ruby-and-mod-auth-mysql/113202)

<div class="topic-metadata">

**Author:** [@Lokean\_Darken](https://www.ruby-forum.com/u/Lokean_Darken)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/problem-with-mod-ruby-and-mod-auth-mysql/113202 "2007-08-28T18:07:44Z")

</div>

Hi, I have a following problem. On one apache server we run two applications. Application one is using mod\_auth\_mysql and application two use RubyAuthHandler from mod\_ruby. This auth handler also authorize user from …

---

## [Non-blocking socket in Ruby 1.8.4?](https://www.ruby-forum.com/t/non-blocking-socket-in-ruby-1-8-4/113148)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/non-blocking-socket-in-ruby-1-8-4/113148 "2007-08-28T17:41:40Z")

</div>

I’m using Ruby 1.8.4 on Linux and I’m having trouble with non-blocking sockets. Socket#accept\_nonblock doesn’t exist and using fcntl to set O\_NONBLOCK before calling accept doesn’t seem to work. I’ve tried with TCPSer…

---

## [Functional Programming](https://www.ruby-forum.com/t/functional-programming/112841)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 26\
**Last updated:** [August 28, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/functional-programming/112841 "2007-08-28T16:39:32Z")

</div>

I’m interested in functional programming. I’d really like to read a good book on it. It would have practical stuff in it, but also cover lots of the neat ideas (through practical examples), and perhaps areas of open r…

---

## [Https with ruby](https://www.ruby-forum.com/t/https-with-ruby/113187)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/https-with-ruby/113187 "2007-08-28T15:29:19Z")

</div>

This task has come to my desk last hour and I wonder if it could be done with ruby: I would need to send XML file to some url with “HTTP POST request”. That shouldn’t be a problem (mechanize comes to mind). Problem is…

---

## [Only one form\_helper per rhtml in rails?](https://www.ruby-forum.com/t/only-one-form-helper-per-rhtml-in-rails/113182)

<div class="topic-metadata">

**Author:** [@red](https://www.ruby-forum.com/u/red)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/only-one-form-helper-per-rhtml-in-rails/113182 "2007-08-28T14:48:12Z")

</div>

hi, i’m writing an short rails-app for some friends of mine and now i came over an strange error?!?! i wrote an rhtml with 2 forms (both with form helpers), the only difference of them is that they use call different…

---

## [Webistrano - A Web UI for managing Capistrano deployments](https://www.ruby-forum.com/t/webistrano-a-web-ui-for-managing-capistrano-deployments/113178)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/webistrano-a-web-ui-for-managing-capistrano-deployments/113178 "2007-08-28T12:52:58Z")

</div>

I’m happy to announce the release of Webistrano - a Web UI for managing Capistrano deployments. Webistrano is an internal application that I developed at Peritor for the easy handling of Capistrano deployments. I oft…

---

## [Substitution within system quoted string](https://www.ruby-forum.com/t/substitution-within-system-quoted-string/113129)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 10\
**Last updated:** [August 28, 2007, 11:35am UTC](https://www.ruby-forum.com/t/substitution-within-system-quoted-string/113129 "2007-08-28T11:35:42Z")

</div>

Team, I would like to enter a value at execution time within the system key world environment. However, I am having difficulties entering a value within a quoted string. For example, I can hard code the following an…

---

## [How to convert test's to test\\'s](https://www.ruby-forum.com/t/how-to-convert-tests-to-test-s/113169)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 10:57am UTC](https://www.ruby-forum.com/t/how-to-convert-tests-to-test-s/113169 "2007-08-28T10:57:29Z")

</div>

Hi friends I want to replace every occurrence of ' to \\' in a string . how to do it . I know i have to use sub method of string . i don’t know how to use it .

---

## [String#slice!](https://www.ruby-forum.com/t/string-slice/113122)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 9:13am UTC](https://www.ruby-forum.com/t/string-slice/113122 "2007-08-28T09:13:17Z")

</div>

e$BEOJUE/Li$G$9!#e(B String#slice! e$B$NLaCM$J$N$G$9$,!"$\*$+$7$$$h$&$G$9!#e(B ruby 1.9 trunk 13289 ------------------------------ e$B:F8=%3!\<%Ie(B l = “1234\\n234\\n34\\n4\\n” while j = l.slice!(/\\A.\*\\n/) p j end ----…

---

## [Advice on bulding a web service](https://www.ruby-forum.com/t/advice-on-bulding-a-web-service/112899)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 5\
**Last updated:** [August 28, 2007, 9:08am UTC](https://www.ruby-forum.com/t/advice-on-bulding-a-web-service/112899 "2007-08-28T09:08:04Z")

</div>

Hallo. I need to build a web server (it’ll be RESTful & everything), but am not sure about the best way to proceed. It will be a single instance app, that needs to strictly control concurrency, ie only one instance o…

---

## [IndexError in rindex](https://www.ruby-forum.com/t/indexerror-in-rindex/113158)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 8:51am UTC](https://www.ruby-forum.com/t/indexerror-in-rindex/113158 "2007-08-28T08:51:15Z")

</div>

e$B$J$+$@$G$9!#e(B test/ruby/test\_string.rbe$B$Ne(Btest\_rindexe$B$,e(BIndexErrore$B$G\<:GT$9$k$N$Ge(B e$B$9$,!"$3$N!Ve(Badjust for Oniguruma 5.xe$B!W$H$$$&$N$O$J$s$N$?$a$N$b$Ne(B e$B$G$7$g$&$+!#e(B Index: string.c — …

---

## [Handling Strange Superclass Mismatch](https://www.ruby-forum.com/t/handling-strange-superclass-mismatch/113151)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 6:17am UTC](https://www.ruby-forum.com/t/handling-strange-superclass-mismatch/113151 "2007-08-28T06:17:32Z")

</div>

I’m having a weird issue with Superclass Mismatches. I’m using ActiveRecord in a project. The strange thing is that i’m getting superclass mismatches the first time I even load a model. I’ve tried to handle it gracefu…

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

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