# Ruby

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

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

---

## [Access contents of the output windows](https://www.ruby-forum.com/t/access-contents-of-the-output-windows/124072)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/access-contents-of-the-output-windows/124072 "2007-12-24T13:01:08Z")

</div>

hello I am running this as a separate thread. system(“start E:\\TradingTools\\IBController \\IBControllerStart\_customised.bat”) how can i access the stdout of this tread- basically capturing all the data streaming out …

---

## [Ruby multimedia player](https://www.ruby-forum.com/t/ruby-multimedia-player/124031)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/ruby-multimedia-player/124031 "2007-12-24T12:55:42Z")

</div>

Hello, I hope this is the right place to put this–if it’s not, could someone please tell me a better place. Thanks. I’m new to ruby, but I really like it. I’m trying to make a multimedia program, and plan to use Phon…

---

## [What happened when i invoke Thread.current.stop](https://www.ruby-forum.com/t/what-happened-when-i-invoke-thread-current-stop/124073)

<div class="topic-metadata">

**Author:** [@Jason\_Y](https://www.ruby-forum.com/u/Jason_Y)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/what-happened-when-i-invoke-thread-current-stop/124073 "2007-12-24T12:35:47Z")

</div>

th1 = Thread.new { Thread.current.stop # it should be Thread.stop puts “i am running” } th1.run # some error I know it should be Thread.stop, bu t anyone can tell me why? thanks for the help!

---

## [Unable to run the code](https://www.ruby-forum.com/t/unable-to-run-the-code/124062)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 7\
**Last updated:** [December 24, 2007, 11:32am UTC](https://www.ruby-forum.com/t/unable-to-run-the-code/124062 "2007-12-24T11:32:35Z")

</div>

Hi I am trying to get a webpage using this code require ‘net/http’ Net::HTTP.start(‘www.rubyinside.com’) do |http| req = Net::HTTP::Get.new(‘/test.txt’) puts http.request(req).body end but it is giving erro…

---

## [Faster csv locking file](https://www.ruby-forum.com/t/faster-csv-locking-file/124050)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 11:01am UTC](https://www.ruby-forum.com/t/faster-csv-locking-file/124050 "2007-12-24T11:01:34Z")

</div>

I run this in a loop and the fastercsv locks up the file. how do i release it after processing the file so that the next export statement can use the same file. analysis.export(“c:\\temp\\report.txt”) hasresults=false …

---

## [Unable to connect to http](https://www.ruby-forum.com/t/unable-to-connect-to-http/124070)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 10:14am UTC](https://www.ruby-forum.com/t/unable-to-connect-to-http/124070 "2007-12-24T10:14:21Z")

</div>

Hi I am trying to get a webpage using this code require ‘net/http’ Net::HTTP.start(‘www.rubyinside.com’) do |http| req = Net::HTTP::Get.new(‘/test.txt’) puts http.request(req).body end I am using ruby1.8.4 …

---

## [Fwd: RDoc: \[FATAL\] failed to allocate memory](https://www.ruby-forum.com/t/fwd-rdoc-fatal-failed-to-allocate-memory/124068)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 9:56am UTC](https://www.ruby-forum.com/t/fwd-rdoc-fatal-failed-to-allocate-memory/124068 "2007-12-24T09:56:37Z")

</div>

e$B$3$l$Oe(B RDoc e$B$NLdBj$@$1$G$O$J$$$G$9!#e(B e$BB\>$G$be(B ruby e$B$r\<B9T$7$h$&$H$7$?$i$9$0e(B \[FATAL\] failed to allocate memory e$B$H$J$j$^$9!#e(B e$B59$7$/$\*4j$$$7$^$9!#e(B Martin. Generating RDoc documenta…

---

## [Still cannot connect to http](https://www.ruby-forum.com/t/still-cannot-connect-to-http/124066)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 9:39am UTC](https://www.ruby-forum.com/t/still-cannot-connect-to-http/124066 "2007-12-24T09:39:53Z")

</div>

I m still getting the error . I am new to ruby . I am using ruby 1.8.4 on windows XP platform . please tell me in detail how to make http connection .I am getting error like : c:/apps/ruby/lib/ruby/1.8/net/http.rb:560…

---

## [Stty: stdin isn't a terminal](https://www.ruby-forum.com/t/stty-stdin-isnt-a-terminal/124055)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 7:00am UTC](https://www.ruby-forum.com/t/stty-stdin-isnt-a-terminal/124055 "2007-12-24T07:00:37Z")

</div>

Hey I’m in the middle of writing shell as a part of Rubyunix, I am using HighLine::SystemExtensions to get each character (so that I may check to see if it is a reserved keystroke). Basically, here’s my error: http:…

---

## [1.9.1 issues left (as of 12/15)](https://www.ruby-forum.com/t/1-9-1-issues-left-as-of-12-15/123263)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 13\
**Last updated:** [December 24, 2007, 6:58am UTC](https://www.ruby-forum.com/t/1-9-1-issues-left-as-of-12-15/123263 "2007-12-24T06:58:17Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B8=;~E@$Ge(B(e$B%P%0%U%#%C%/%90J30$Ke(B)e$B9M$($J$/$A$c$$$1$J$$E@$O0J2\<$Ne(B e$B$b$N$@$HG’\<1$7$F$^$9!#B-$j$J$$$3$H$K5$$,$D$$$?$iDI2C$7$F$/$@e(B e$B$5$$!#e(B assignment by named ca…

---

## [Cygwin $B\>e$G(B r14576 $B8=:\_$N(B test $B$N\<:GT(B](https://www.ruby-forum.com/t/cygwin-b-e-g-b-r14576-b8-n-b-test-b-n-gt-b/124059)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 6:53am UTC](https://www.ruby-forum.com/t/cygwin-b-e-g-b-r14576-b8-n-b-test-b-n-gt-b/124059 "2007-12-24T06:53:02Z")

</div>

e$B0JA0$K$b$?$^$KJs9p$7$^$7$?$,M\>$jH?1~$,$J$+$C$?$H;W$$$^$9!#e(B e$B$3$3$Ge(B cygwin e$B$r;H$$$^$9$,!“e(Bmake test e$B$O40Av$7$?$3$H$O$”$j$^$;$s!#e(B e$B8=:\_2\<5-$N$h$&$K\<:GT$7$^$9!#e(B e$B59$7$/$\*4j$$$7$^$9!#e(B M…

---

## [Strange issue iwth sending smtp with gmail](https://www.ruby-forum.com/t/strange-issue-iwth-sending-smtp-with-gmail/124024)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 6:34am UTC](https://www.ruby-forum.com/t/strange-issue-iwth-sending-smtp-with-gmail/124024 "2007-12-24T06:34:20Z")

</div>

Hello When i use this class and execute it, it works fine. i am able to send email thro gmail. however it does not work if i call this method from another class. i get a smtp error. dunno what the reasons are. i am a…

---

## [RubyWget / "Axel"](https://www.ruby-forum.com/t/rubywget-axel/124054)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 4:50am UTC](https://www.ruby-forum.com/t/rubywget-axel/124054 "2007-12-24T04:50:21Z")

</div>

“Axel does the same thing any other accelerator does: it opens more than one HTTP/FTP connection per download and each connection transfers its own, separate, part of the file.” Basically I am wondering (as I want to …

---

## [\[ANN\] Join us for Vancouver's 1st (Iron)RubyCamp @ WorkSpace on January 26th, 2008](https://www.ruby-forum.com/t/ann-join-us-for-vancouvers-1st-iron-rubycamp-workspace-on-january-26th-2008/124053)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 3:59am UTC](https://www.ruby-forum.com/t/ann-join-us-for-vancouvers-1st-iron-rubycamp-workspace-on-january-26th-2008/124053 "2007-12-24T03:59:29Z")

</div>

Hello IronRubyists, You are invited to (Iron)RubyCamp 2008 in Vancouver on Saturday, January 26th. RubyCamp is an one-day gathering for (Iron)Rubyists and Railers. When and Where: WorkSpace in downtown Vancouver, B.…

---

## [Regexp to extra a all numbers](https://www.ruby-forum.com/t/regexp-to-extra-a-all-numbers/124046)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 2:31am UTC](https://www.ruby-forum.com/t/regexp-to-extra-a-all-numbers/124046 "2007-12-24T02:31:26Z")

</div>

I’m trying to get an array of every number in a string that is grouped together. This is the code I thought might do it, but does not: irb(main):064:0\> “923 a 222”.match(/\\d+/).to\_a =\> \[“923”\] I’m sure there’s a simp…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/124048)

<div class="topic-metadata">

**Author:** [@malugu\_satyajit](https://www.ruby-forum.com/u/malugu_satyajit)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 2:09am UTC](https://www.ruby-forum.com/t/unsubscribe/124048 "2007-12-24T02:09:32Z")

</div>

unsubscribe

---

## [String#== is not transitive](https://www.ruby-forum.com/t/string-is-not-transitive/124045)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 1:59am UTC](https://www.ruby-forum.com/t/string-is-not-transitive/124045 "2007-12-24T01:59:01Z")

</div>

String#== e$B$,?d0\\N’$rK~$?$7$F$$$J$$e(B (e$B$D$^$jF1CM4X78$G$J$$e(B) e$B$Ne(B e$B$O$h$m$7$/$J$$$s$8$c$J$$$G$7$g$&$+!#e(B % ./ruby -ve ’ u = “\\xe0\\xa0\\xa1”.force\_encoding(“utf-8”) e = “\\xe0\\xa0\\xa1”.force\_encoding(“…

---

## [Eval a file](https://www.ruby-forum.com/t/eval-a-file/124035)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/eval-a-file/124035 "2007-12-23T22:43:01Z")

</div>

Basically, I was wondering if it is possible in Ruby to eval a file without loading the whole thing in memory. I’m trying to avoid eval(File.new(location).read), but at the same time, I don’t want the file to contain …

---

## [More 1.9 warning fixes](https://www.ruby-forum.com/t/more-1-9-warning-fixes/123999)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/more-1-9-warning-fixes/123999 "2007-12-23T22:06:37Z")

</div>

May I apply these patches? @sspi\_enable is not initialized in lib/net/http.rb pos is shadowed in IRB::OutputFormat#foo, but I don’t see where foo is called at all, so I removed the method. If #foo is actually used, …

---

## [System function respond](https://www.ruby-forum.com/t/system-function-respond/123985)

<div class="topic-metadata">

**Author:** [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Replies:** 6\
**Last updated:** [December 23, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/system-function-respond/123985 "2007-12-23T21:17:35Z")

</div>

i understand that using system returns a boolean. but how can i get the actual output from the system command?

---

## [Fairly elementary UNIX question](https://www.ruby-forum.com/t/fairly-elementary-unix-question/123996)

<div class="topic-metadata">

**Author:** [@StecklyS\_Ron](https://www.ruby-forum.com/u/StecklyS_Ron)\
**Replies:** 5\
**Last updated:** [December 23, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/fairly-elementary-unix-question/123996 "2007-12-23T21:08:34Z")

</div>

Hi, I’ve been learning a lot about the .NET architecture and scripting to it using Visual Basic and C#. I’m trying to write a program right now in UNIX and I’m a little perplexed. How do I tap into events in UNIX? …

---

## [Why only inject() accepts :symbols as if it's a Proc in Enumerable?](https://www.ruby-forum.com/t/why-only-inject-accepts-symbols-as-if-its-a-proc-in-enumerable/124026)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/why-only-inject-accepts-symbols-as-if-its-a-proc-in-enumerable/124026 "2007-12-23T20:03:27Z")

</div>

e$B:XF#$H?=$7$^$9!#;38}$5$s$N%a!\<%k$G;W$$=P$7$^$7$?!#e(B e$B0JA0$?$7$+e(BMatze$BF|5-$+$I$3$+$@$C$?$H;W$&$N$G$9$,!"e(B e$B!Ve(B1.9e$B$G$O!Xe(B(1…10).inject(:+)e$B!Y$Ge(B1e$B!Ae(B10e$B$^$G$NOB$,7W;;$G$-$k$h!We(B e$B$H$$…

---

## [Std out message from threads](https://www.ruby-forum.com/t/std-out-message-from-threads/124029)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/std-out-message-from-threads/124029 "2007-12-23T19:20:40Z")

</div>

hello i am running multiple theads like this thread1=Thread.new do puts "Thread 1 started " system(“start E:\\TradingTools\\IBController \\IBControllerStart\_customised.bat”) end #end thread2=Thread.new do puts "Thre…

---

## [Scoped Proxy 1.0](https://www.ruby-forum.com/t/scoped-proxy-1-0/124027)

<div class="topic-metadata">

**Author:** [@kaspar](https://www.ruby-forum.com/u/kaspar)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/scoped-proxy-1-0/124027 "2007-12-23T19:00:42Z")

</div>

== What? class User \< ActiveRecord::Base scoped\_proxy :role do |role| { :find =\> { :conditions =\> \[‘role = ?’, role\] } } end scoped\_proxy :deleted, :find =\> { :conditions =\> ‘deleted\_at is not null’ } end admi…

---

## [Test/webrick/test\_server.rb hang](https://www.ruby-forum.com/t/test-webrick-test-server-rb-hang/123997)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/test-webrick-test-server-rb-hang/123997 "2007-12-23T18:47:13Z")

</div>

test/webrick/test\_server.rb e$B$,=\*$o$i$J$$$h$&$G$9!#e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk/log/20071223T134903.txt.gz test/webrick/test\_server.rb e$B$@$1\<B9T$9$k$H!"0J2\<$N$h$&$K$J$j$^$9!#e(B …

---

## [Problem building Ruby addon with Vista](https://www.ruby-forum.com/t/problem-building-ruby-addon-with-vista/124014)

<div class="topic-metadata">

**Author:** [@Julian\_Harnath](https://www.ruby-forum.com/u/Julian_Harnath)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/problem-building-ruby-addon-with-vista/124014 "2007-12-23T18:15:36Z")

</div>

Hello! I’m currently looking into developing Ruby addons. I’d like to use Windows Vista with VC++ 2005 as development platform. But I have a problem which seems to be related to some DLL incompatibility. My addon is…

---

## [Is Ruby suitable to develop a large dynamic web site with a heavy database usage?](https://www.ruby-forum.com/t/is-ruby-suitable-to-develop-a-large-dynamic-web-site-with-a-heavy-database-usage/123484)

<div class="topic-metadata">

**Author:** [@tenxian](https://www.ruby-forum.com/u/tenxian)\
**Replies:** 4\
**Last updated:** [December 23, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/is-ruby-suitable-to-develop-a-large-dynamic-web-site-with-a-heavy-database-usage/123484 "2007-12-23T17:46:21Z")

</div>

How about its running speed?

---

## [C Extension: mirco RUBY\_VM](https://www.ruby-forum.com/t/c-extension-mirco-ruby-vm/123513)

<div class="topic-metadata">

**Author:** [@lianliming](https://www.ruby-forum.com/u/lianliming)\
**Replies:** 5\
**Last updated:** [December 23, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/c-extension-mirco-ruby-vm/123513 "2007-12-23T14:56:56Z")

</div>

Hi all, I am hacking some existing Ruby c extension, and found code like following: #ifdef RUBY\_VM … #endif I want to know the meaning of micro RUBY\_VM. I have read some documents about Ruby C extension like the …

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/124013)

<div class="topic-metadata">

**Author:** [@Marwa\_Mohamed](https://www.ruby-forum.com/u/Marwa_Mohamed)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/unsubscribe/124013 "2007-12-23T14:13:33Z")

</div>

unsubscribe plz

---

## [Enum\_inject $B$N@bL@J8(B](https://www.ruby-forum.com/t/enum-inject-b-n-bl-j8-b/124006)

<div class="topic-metadata">

**Author:** [@Keita\_Y](https://www.ruby-forum.com/u/Keita_Y)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 10:38am UTC](https://www.ruby-forum.com/t/enum-inject-b-n-bl-j8-b/124006 "2007-12-23T10:38:13Z")

</div>

e$B;38}$H?=$7$^$9!#e(B e$B%j%j!\<%9D\>A0$N$K;$7$$;~4|$KBgJQ:Y$+$$OC$G62=L$J$N$G$9$,!"e(Benum.c e$B$Ne(B enum\_inject e$B$K$$1$k@bL@J8$K8m$j$,$"$k$h$&$G$9!#e(B \[1,2,3\].inject(0, :+) #=\> 6 \[1,2,3\].inject(:+, 0) =\> in \`i…

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

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