# Ruby

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

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

---

## [Parallel method return value](https://www.ruby-forum.com/t/parallel-method-return-value/155469)

<div class="topic-metadata">

**Author:** [@Louis-Philippe](https://www.ruby-forum.com/u/Louis-Philippe)\
**Replies:** 16\
**Last updated:** [December 13, 2008, 3:11am UTC](https://www.ruby-forum.com/t/parallel-method-return-value/155469 "2008-12-13T03:11:31Z")

</div>

Hi all, this is assignment behaviour: a,b = 1,2,3 =\> \[1, 2, 3\] a =\> 1 b =\> 2 and with a method: def a\_method return 1, 2, 3 end =\> nil a,b = a\_method =\> \[1, 2, 3\] a =\> 1 b =\> 2 If I w…

---

## [\[Bug #813\] rubygems/source\_info\_cache\_entry.rb document have a little mistake](https://www.ruby-forum.com/t/bug-813-rubygems-source-info-cache-entry-rb-document-have-a-little-mistake/154707)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [December 13, 2008, 1:00am UTC](https://www.ruby-forum.com/t/bug-813-rubygems-source-info-cache-entry-rb-document-have-a-little-mistake/154707 "2008-12-13T01:00:26Z")

</div>

Bug #813: rubygems/source\_info\_cache\_entry.rb document have a little mistake http://redmine.ruby-lang.org/issues/show/813 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 e$B$“…

---

## [Jruby virtual memory size](https://www.ruby-forum.com/t/jruby-virtual-memory-size/155523)

<div class="topic-metadata">

**Author:** [@Nick\_Stielau](https://www.ruby-forum.com/u/Nick_Stielau)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/jruby-virtual-memory-size/155523 "2008-12-12T23:50:11Z")

</div>

Hello, I have a question about memory usage with JRuby. I am trying to get JRuby (1.1.6RC1) to run in my GoDaddy virtual private server (Fedora release 7 (Moonshine), with 256 guaranteed RAM). Its not so much that …

---

## [Trouble using Irb as Ruby Console](https://www.ruby-forum.com/t/trouble-using-irb-as-ruby-console/155522)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/trouble-using-irb-as-ruby-console/155522 "2008-12-12T22:59:45Z")

</div>

Hello all, I’m attempting to convert a command-line driven application into a console application using Irb. However, I’m having some trouble right out of the gate. Here’s what I have so far: module App class Fram…

---

## [Tom E Purl is out of the office](https://www.ruby-forum.com/t/tom-e-purl-is-out-of-the-office/155524)

<div class="topic-metadata">

**Author:** [@Tom\_E\_Purl](https://www.ruby-forum.com/u/Tom_E_Purl)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/tom-e-purl-is-out-of-the-office/155524 "2008-12-12T21:42:19Z")

</div>

I will be out of the office starting December 12, 2008 and will not return until December 15, 2008. For any EDM-related questions, please contact Venkat Srinivasan. If you have a EDM-related question, then please co…

---

## [Load image bitmap into array](https://www.ruby-forum.com/t/load-image-bitmap-into-array/155516)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/load-image-bitmap-into-array/155516 "2008-12-12T20:48:31Z")

</div>

I’m trying to load a grayscale image (some standard format will do, jpeg, png, bmp etc…) into an array, where I can access every pixel by its coohrdinates and where every pixel is described by a single number (0…255 …

---

## [DOS cmd from .rb file](https://www.ruby-forum.com/t/dos-cmd-from-rb-file/155467)

<div class="topic-metadata">

**Author:** [@pietia](https://www.ruby-forum.com/u/pietia)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/dos-cmd-from-rb-file/155467 "2008-12-12T18:18:41Z")

</div>

hi all, i try to invoke some DOS cmd from .rb file but to no avail. Anyway, can i do that?

---

## [User Prompt as a pop up - not IRB/command line?](https://www.ruby-forum.com/t/user-prompt-as-a-pop-up-not-irb-command-line/155426)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 6\
**Last updated:** [December 12, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/user-prompt-as-a-pop-up-not-irb-command-line/155426 "2008-12-12T18:13:59Z")

</div>

Has anyone heard of Ruby containing a popup window prompt for users? I do not want to use IRB command prompt for my users. If you have heard of this or are using it, what is it called/ how are you using this? Thanks. …

---

## [Problem parseing a XML - PullParser](https://www.ruby-forum.com/t/problem-parseing-a-xml-pullparser/155253)

<div class="topic-metadata">

**Author:** [@syepes](https://www.ruby-forum.com/u/syepes)\
**Replies:** 10\
**Last updated:** [December 12, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/problem-parseing-a-xml-pullparser/155253 "2008-12-12T16:25:55Z")

</div>

Hi all, I need to parse a XML file “line by line” because of a application limitation, so i am trying to build a Stream/Pull xml parser with the rexml library, but i can’t get it to work… Anyone knows what can be ca…

---

## [\[Feature:1.9\] Enumerator#inspect](https://www.ruby-forum.com/t/feature-1-9-enumerator-inspect/154644)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 11\
**Last updated:** [December 12, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/feature-1-9-enumerator-inspect/154644 "2008-12-12T16:12:26Z")

</div>

e$B1sF#$G$9!#e(B Enumerator e$B$NCf?H$r$o$+$j$d$9$/I=\<($7$F$/$l$ke(B Enumerator#inspect e$B$re(B e$BDs6!$9$k$HJXMx$@$H;W$$$^$9!#Nc$($P$3$s$J46$8!#e(B $ ruby19 -e ‘g = (1…1000).each; p g’ #\<Enumerator:\[1, 2, 3, …(sni…

---

## [Profile - output](https://www.ruby-forum.com/t/profile-output/155501)

<div class="topic-metadata">

**Author:** [@Jakub\_PavlSSS\_k\_jn](https://www.ruby-forum.com/u/Jakub_PavlSSS_k_jn)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/profile-output/155501 "2008-12-12T15:53:01Z")

</div>

I’m not sure what do all the values printed for every method by ‘profile’ (that from Ruby’s standard library) mean. Could anyone, please, either explain them to me himself or tell me where I could find an explanation? …

---

## [Problem with parameters](https://www.ruby-forum.com/t/problem-with-parameters/155496)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/problem-with-parameters/155496 "2008-12-12T15:17:43Z")

</div>

First at all sorry if my english is not the best. In the view I have this code: \<%= select\_tag “tabla”, options\_for\_select(\[“Famitel”, “Polycom Kirk”, “LG Nortel”, “Dimax Videovigilancia”\]) %\> \<%= text\_field :buscar,…

---

## [Out of range on Dates beyond 2038/01/19](https://www.ruby-forum.com/t/out-of-range-on-dates-beyond-2038-01-19/155400)

<div class="topic-metadata">

**Author:** [@fearx](https://www.ruby-forum.com/u/fearx)\
**Replies:** 9\
**Last updated:** [December 12, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/out-of-range-on-dates-beyond-2038-01-19/155400 "2008-12-12T15:03:05Z")

</div>

Hi people, I’d just found this issue trying to parse a date: Time.local(2038, 1, 19) =\> Tue Jan 19 00:00:00 +0100 2038 Time.local(2038, 1, 20) ArgumentError: time out of range from (irb):33:in \`local’ from (irb)…

---

## [Want to create a file with variable name](https://www.ruby-forum.com/t/want-to-create-a-file-with-variable-name/155495)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/want-to-create-a-file-with-variable-name/155495 "2008-12-12T14:29:26Z")

</div>

hi i want to create a file name, with that variable name… for example… a=10 f=File.open(‘a.txt’,‘a’) created file name is a.txt but i want the file as 10.txt can any one help??

---

## [WPF databinding with ruby objects. Workaround :)](https://www.ruby-forum.com/t/wpf-databinding-with-ruby-objects-workaround/155482)

<div class="topic-metadata">

**Author:** [@Joshua\_Nussbaum](https://www.ruby-forum.com/u/Joshua_Nussbaum)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/wpf-databinding-with-ruby-objects-workaround/155482 "2008-12-12T13:46:11Z")

</div>

Hey yall Seems IronRuby objects do not yet work with WPF databinding. One approach to a workaround is to emit a wrapper type that defines CLR properties. When WPF calls the getter/setter the call is forwarded ot the…

---

## [How do I extract the ID name of a Div and its content?](https://www.ruby-forum.com/t/how-do-i-extract-the-id-name-of-a-div-and-its-content/155490)

<div class="topic-metadata">

**Author:** [@pannda](https://www.ruby-forum.com/u/pannda)\
**Replies:** 4\
**Last updated:** [December 12, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/how-do-i-extract-the-id-name-of-a-div-and-its-content/155490 "2008-12-12T13:43:04Z")

</div>

Hi folks, sorry to bother you with such a mundane question, but I tried for 3hours and don\`t know how :frowning: I need to extract the strings, that means everything between “” or ‘’ that is the Input: Ruby Forum…

---

## [Need help with rubyw](https://www.ruby-forum.com/t/need-help-with-rubyw/155492)

<div class="topic-metadata">

**Author:** [@crumb](https://www.ruby-forum.com/u/crumb)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/need-help-with-rubyw/155492 "2008-12-12T13:06:19Z")

</div>

Hello, I’m planning to run ruby setup script from lots of testclasses (NUnit) so I need to hide the console window. But starting process from C# with rubyw only returns error. Then I try this helloworld-like test: e…

---

## [Keeping NEWS files](https://www.ruby-forum.com/t/keeping-news-files/155493)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/keeping-news-files/155493 "2008-12-12T12:30:35Z")

</div>

ã€€å„ãƒ–ãƒ©ãƒ³ãƒã®NEWS ãƒ•ã‚¡ã‚¤ãƒ«ã‚’å†ç·¨ã—ã¾ã—ãŸã€‚æ—¢å­˜ã®ã‚‚ã®ã‚‚å«ã‚ã€ ãã‚Œãžã‚Œã®å†…å®¹ã¯ä»¥ä¸‹ã®é€šã‚Šã§ã™ã€‚ trunk/NEWS 1.9.1 ã¨ 1.9.2ã¨ãªã‚‹ã‚‚ã® ã®é•ã„ branches/ruby\_1\_9\_1/N…

---

## [How to Count pages in a word document](https://www.ruby-forum.com/t/how-to-count-pages-in-a-word-document/155478)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 5\
**Last updated:** [December 12, 2008, 11:12am UTC](https://www.ruby-forum.com/t/how-to-count-pages-in-a-word-document/155478 "2008-12-12T11:12:25Z")

</div>

Hi, Could you let me know how can I count the no. of pages in a Word document using Ruby? TIA, Talib H.

---

## [Chat Script](https://www.ruby-forum.com/t/chat-script/155488)

<div class="topic-metadata">

**Author:** [@zangsdev](https://www.ruby-forum.com/u/zangsdev)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 10:22am UTC](https://www.ruby-forum.com/t/chat-script/155488 "2008-12-12T10:22:29Z")

</div>

Hello All I need a Chat/Messanger Script which I can integrate in one of my websites. Can anyone help me to provide me a good chat script sources? Thanks in Advance Zangs

---

## [Best technique for detecting charset/character encoding of RSS feeds](https://www.ruby-forum.com/t/best-technique-for-detecting-charset-character-encoding-of-rss-feeds/155480)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 7:45am UTC](https://www.ruby-forum.com/t/best-technique-for-detecting-charset-character-encoding-of-rss-feeds/155480 "2008-12-12T07:45:55Z")

</div>

I have a Ruby application that fetches RSS and Atom feeds. I’ve tried using the chardet gem (UniversalDetector) to figure out what the character encoding of each feed is. But for some strange this library thinks a lo…

---

## [\[BUG:trunk\] r20625 dumps core and many strings associated with wrong encoding](https://www.ruby-forum.com/t/bug-trunk-r20625-dumps-core-and-many-strings-associated-with-wrong-encoding/155406)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 6\
**Last updated:** [December 12, 2008, 6:27am UTC](https://www.ruby-forum.com/t/bug-trunk-r20625-dumps-core-and-many-strings-associated-with-wrong-encoding/155406 "2008-12-12T06:27:31Z")

</div>

Yuguie$B$G$9!#e(B r20625e$B$G!"e(Bdefault\_externale$B$be(Bdefault\_internale$BF1MM$KL$@\_Dj;~$Ke(B (rb\_encoding\_t\*)NULL e$B$rJV$9$h$&$K$J$C$?7k2L!“e(Btrunke$B$Ge(Bruby -e 1e$B$H$9$k$H%3e(B e$B%”$rEG$/$h$&$K$J$j$^$7$?!#…

---

## [Rename to txt file - file not found in list,but in directory](https://www.ruby-forum.com/t/rename-to-txt-file-file-not-found-in-list-but-in-directory/155415)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 4:54am UTC](https://www.ruby-forum.com/t/rename-to-txt-file-file-not-found-in-list-but-in-directory/155415 "2008-12-12T04:54:31Z")

</div>

I am trying to rename a file in my directory. I can see this file in directory. It has an extention of .dep, when I attempt to rename it, nothing gets renamed. When I output all filenames from the directory this parti…

---

## [Regular expressions and long text](https://www.ruby-forum.com/t/regular-expressions-and-long-text/141013)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [December 12, 2008, 4:26am UTC](https://www.ruby-forum.com/t/regular-expressions-and-long-text/141013 "2008-12-12T04:26:25Z")

</div>

Hello guys, I’ve started with Ruby a month ago and I am doing some works with strings and regular expressions. I am trying to take a long text and store the individual sentences in an array. I can split a sentence in…

---

## [How do you add gems to allinoneruby](https://www.ruby-forum.com/t/how-do-you-add-gems-to-allinoneruby/155464)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 3:27am UTC](https://www.ruby-forum.com/t/how-do-you-add-gems-to-allinoneruby/155464 "2008-12-12T03:27:50Z")

</div>

Is there a way to add my gems to an allinoneruby?

---

## [Quiz summary coming later tonight](https://www.ruby-forum.com/t/quiz-summary-coming-later-tonight/151076)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 9\
**Last updated:** [December 11, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/quiz-summary-coming-later-tonight/151076 "2008-12-11T23:03:50Z")

</div>

Quiz summary is a little delayed, but will show up today.

---

## [OSGify jruby-complete.jar?](https://www.ruby-forum.com/t/osgify-jruby-complete-jar/155451)

<div class="topic-metadata">

**Author:** [@Tommy\_MSMcGuire](https://www.ruby-forum.com/u/Tommy_MSMcGuire)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/osgify-jruby-complete-jar/155451 "2008-12-11T23:01:29Z")

</div>

I just noticed the OSGi headers added to lib/jruby.jar in JRUBY-2741 last summer. Would it be possible to do the same for jruby-complete.jar? To that end, I’m attaching a quick, minimalistic patch to build.xml.

---

## [What do you call this part of an object?](https://www.ruby-forum.com/t/what-do-you-call-this-part-of-an-object/155338)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 2\
**Last updated:** [December 11, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/what-do-you-call-this-part-of-an-object/155338 "2008-12-11T22:25:25Z")

</div>

What do you call this part of an object? @action== positions=0,0 elements="\\n","\\n". Thanks in advance. My Object \[#\<Diff::LCS::ContextChange:24251690 @action== positions=0,0 elements="\\n","\\n"\>

---

## [Jruby spawner/spinner scripts](https://www.ruby-forum.com/t/jruby-spawner-spinner-scripts/155452)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/jruby-spawner-spinner-scripts/155452 "2008-12-11T22:00:02Z")

</div>

Has anyone modified the standard rails deployment/launch scripts to use jruby?

---

## [How to open url in firefox](https://www.ruby-forum.com/t/how-to-open-url-in-firefox/155450)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/how-to-open-url-in-firefox/155450 "2008-12-11T21:54:41Z")

</div>

Hi, I was trying to open a url through ruby script in firefox browser. The below code opens the link in the background in Internet Explorer. Is there a way to open it in Firefox and in foreground ? require ‘open-uri’ …

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

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