# Ruby

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

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

---

## [Opening file with non ascii name on window](https://www.ruby-forum.com/t/opening-file-with-non-ascii-name-on-window/131769)

<div class="topic-metadata">

**Author:** [@Ming\_en\_C](https://www.ruby-forum.com/u/Ming_en_C)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/opening-file-with-non-ascii-name-on-window/131769 "2008-03-13T15:58:47Z")

</div>

I had encounter problem opening file with non ascii name. Is there anyway to make ruby open non ascii file?

---

## [Browsing source under VS.NET](https://www.ruby-forum.com/t/browsing-source-under-vs-net/131813)

<div class="topic-metadata">

**Author:** [@Jayme](https://www.ruby-forum.com/u/Jayme)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/browsing-source-under-vs-net/131813 "2008-03-13T15:10:51Z")

</div>

Hey all, I’ve got the latest source from svn as of today and can compile just fine using the Rakefile. However when I open the visual studio projects (in 2005 or 2008) several of the project paths are messed up and …

---

## [Hashes in Sets](https://www.ruby-forum.com/t/hashes-in-sets/131815)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/hashes-in-sets/131815 "2008-03-13T14:54:19Z")

</div>

In Ruby 1.8.6-p111 (the latest version bundled with Mac OS X) and Ruby 1.8.6-p114, the Set class will duplicate any Hash elements it contains: require ‘set’ s = Set.new s \<\< {} =\> #\<Set: {{}}\> s \<\< {} =\> #\<Set: {…

---

## [The Best way to make my game multiplayer](https://www.ruby-forum.com/t/the-best-way-to-make-my-game-multiplayer/131607)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 5\
**Last updated:** [March 13, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/the-best-way-to-make-my-game-multiplayer/131607 "2008-03-13T14:31:53Z")

</div>

Hi guys, i have done a game in ruby using gosu, its a side scrolling game, i want to make it multiplayer, well, i hope make it a mmorpg some day, so, now im caring about the network, need be something safe but consume…

---

## [Hosting... executing function dynamically from C#](https://www.ruby-forum.com/t/hosting-executing-function-dynamically-from-c/131680)

<div class="topic-metadata">

**Author:** [@devtheo](https://www.ruby-forum.com/u/devtheo)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/hosting-executing-function-dynamically-from-c/131680 "2008-03-13T14:23:16Z")

</div>

Ok, I’m trying to do something interesting with the DLR (I emailed John before finding this forum… sorry, John). My project is here → http://www.codeplex.com/dlrscript What I’m doing is hosting the DLR within a Silv…

---

## [Ruby-ldap Error](https://www.ruby-forum.com/t/ruby-ldap-error/131809)

<div class="topic-metadata">

**Author:** [@edmz](https://www.ruby-forum.com/u/edmz)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/ruby-ldap-error/131809 "2008-03-13T14:18:07Z")

</div>

I’m getting the following error when i try to install ruby-ldap-0.9.7 in Windows Vista. extconf.rb:162:in \`\`’: No such file or directory - lib /def:./win/wldap32.def /o ut:./win/wldap32.lib (Errno::ENOENT) from extc…

---

## [Enumerator in ruby 1.9](https://www.ruby-forum.com/t/enumerator-in-ruby-1-9/131803)

<div class="topic-metadata">

**Author:** [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Replies:** 6\
**Last updated:** [March 13, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/enumerator-in-ruby-1-9/131803 "2008-03-13T14:13:22Z")

</div>

One could write module Enumerable def sum inject(0) {|f,x| f+x} end end And we have puts \[1,2,3,4\].sum # =\> 10 But it works only for numbers. I would like to write more general code: module Enumerable def sum eac…

---

## [Including general variables in modules](https://www.ruby-forum.com/t/including-general-variables-in-modules/131701)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 13\
**Last updated:** [March 13, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/including-general-variables-in-modules/131701 "2008-03-13T13:49:02Z")

</div>

I’m trying to create different scenarios so I thought to do something like: file:scenarios.rb module Scenarios module Default $bab=“defaultmodulevalue” end module DefaultHidden $bab=“hiddenmodulevalue” end modul…

---

## [Elsunless: Compiles but does not run. Standard?](https://www.ruby-forum.com/t/elsunless-compiles-but-does-not-run-standard/131695)

<div class="topic-metadata">

**Author:** [@namealreadytaken](https://www.ruby-forum.com/u/namealreadytaken)\
**Replies:** 9\
**Last updated:** [March 13, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/elsunless-compiles-but-does-not-run-standard/131695 "2008-03-13T12:44:53Z")

</div>

In Ruby: ‘if’ can be followed by ‘elsif’. ‘unless’ can NOT be followed by ‘elsif’. It gets a syntax error. ‘unless’ can be followed by ‘elsunless’, but it does not run okay. 3a) ‘if’ can also be followed by ‘elsunles…

---

## [Ruby Finance](https://www.ruby-forum.com/t/ruby-finance/131804)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/ruby-finance/131804 "2008-03-13T12:40:36Z")

</div>

Hi, I am a ruby novice working with financial data. I am developing a portfolio strategy evaluation technique to back-test the performance of our screens; checking how the screened stock would’ve performed over the p…

---

## [Trouble capturing output of spawned process](https://www.ruby-forum.com/t/trouble-capturing-output-of-spawned-process/131764)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 5\
**Last updated:** [March 13, 2008, 11:17am UTC](https://www.ruby-forum.com/t/trouble-capturing-output-of-spawned-process/131764 "2008-03-13T11:17:04Z")

</div>

Hello- I’m using the backtick notation to drive FFmpeg from Ruby. When FFmpeg runs, it outputs a fair amount of informational text to the console. I’m unable to read that data from my script. Here is my code: result …

---

## [Minimal nntp client](https://www.ruby-forum.com/t/minimal-nntp-client/131762)

<div class="topic-metadata">

**Author:** [@gerry\_ford](https://www.ruby-forum.com/u/gerry_ford)\
**Replies:** 4\
**Last updated:** [March 13, 2008, 11:13am UTC](https://www.ruby-forum.com/t/minimal-nntp-client/131762 "2008-03-13T11:13:32Z")

</div>

I’m relatively new to ruby, having had one thread regarding commenting. I’d like to move on to a more authentic task. I would like to write an analogous script in ruby as this perl script: minimal nntp client #!/usr…

---

## [Fetch data from text\_field](https://www.ruby-forum.com/t/fetch-data-from-text-field/131796)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 10:50am UTC](https://www.ruby-forum.com/t/fetch-data-from-text-field/131796 "2008-03-13T10:50:05Z")

</div>

i am new in ruby.in my program i have one .rhtml file and two controller. 1.in search.html.erb,the code is: \<% form\_tag(:action =\> ‘search’) do %\> Book\_Id: \<%= text\_field ‘book’, ‘book\_id’ %\> \<%= submit\_tag “searc…

---

## [Setting Class Methods Using Strings](https://www.ruby-forum.com/t/setting-class-methods-using-strings/131779)

<div class="topic-metadata">

**Author:** [@dsoftware](https://www.ruby-forum.com/u/dsoftware)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 8:15am UTC](https://www.ruby-forum.com/t/setting-class-methods-using-strings/131779 "2008-03-13T08:15:16Z")

</div>

Hello, First question: With the 'print ‘foo\_method called with #{arg}’, is there a way to escape the “#” so that arg will not be evaluated until after the statement is evalled? For example: Let c be “'print ‘foo\_m…

---

## [Webby 0.8.2 (Little Bugger)](https://www.ruby-forum.com/t/webby-0-8-2-little-bugger/131775)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 5:09am UTC](https://www.ruby-forum.com/t/webby-0-8-2-little-bugger/131775 "2008-03-13T05:09:56Z")

</div>

webby version 0.8.2 by Tim P. http://webby.rubyforge.org/ (the “Little Bugger” release) == NOTES Just some bug fixes. Move along if you have more important things to do like … hey look, belly button lint! == DESCR…

---

## [Gem install weirdness](https://www.ruby-forum.com/t/gem-install-weirdness/131774)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 4:24am UTC](https://www.ruby-forum.com/t/gem-install-weirdness/131774 "2008-03-13T04:24:11Z")

</div>

Just curious if anybody else has had this happen to them: I installed ruby from source, then rubygems from source (1.0.1) onto that. Then I would expect gems to install things without any problems–it’s a fresh instal…

---

## [Using gems in a script or irb](https://www.ruby-forum.com/t/using-gems-in-a-script-or-irb/131770)

<div class="topic-metadata">

**Author:** [@dsoftware](https://www.ruby-forum.com/u/dsoftware)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 4:08am UTC](https://www.ruby-forum.com/t/using-gems-in-a-script-or-irb/131770 "2008-03-13T04:08:56Z")

</div>

Hello, I am in the process of trying to setup a ruby development environment (not for Ruby on Rails), and I was wondering how I go about using ruby gems in a script or from irb. I have tried setting the environment…

---

## [Patch of lazy sweep gc](https://www.ruby-forum.com/t/patch-of-lazy-sweep-gc/131575)

<div class="topic-metadata">

**Author:** [@authorNari](https://www.ruby-forum.com/u/authorNari)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 3:13am UTC](https://www.ruby-forum.com/t/patch-of-lazy-sweep-gc/131575 "2008-03-13T03:13:45Z")

</div>

åˆã‚ã¾ã—ã¦ã€ä¸­æ‘ã¨ç”³ã—ã¾ã™ã€‚ RubyGCã«LazySweepã‚’å–ã‚Šè¾¼ã‚“ã ã‚‚ã®ã‚’ä½œã£ã¦ã¿ã¾ã—ãŸã€‚ ãƒ‘ãƒƒãƒã¯æ·»ä»˜ã—ã¦ã„ã¾ã™ã€‚ è©³ç´°ã¯ http://d.hatena.ne.jp/authorNari/20080311/1205242360 ã…

---

## [String method to take subsections](https://www.ruby-forum.com/t/string-method-to-take-subsections/131756)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 2:01am UTC](https://www.ruby-forum.com/t/string-method-to-take-subsections/131756 "2008-03-13T02:01:38Z")

</div>

Hi, I’m looking for a method for the String class that returns an array of strings based on two input strings. For example, if you had the string ‘xxxxxa1byyyyya2bzzzzzzz’ I’d like it to return the smaller strings be…

---

## [Re: How do I stop these emails?](https://www.ruby-forum.com/t/re-how-do-i-stop-these-emails/131735)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 1:59am UTC](https://www.ruby-forum.com/t/re-how-do-i-stop-these-emails/131735 "2008-03-13T01:59:53Z")

</div>

Thanks, Sam. I don’t think I signed up through more than one source, but I’ve done many things much dumber than that in the past, so it’s a distinct possibility. Daniel Keeney had some good suggestions along the sam…

---

## [Sort array by some text](https://www.ruby-forum.com/t/sort-array-by-some-text/131650)

<div class="topic-metadata">

**Author:** [@fryt](https://www.ruby-forum.com/u/fryt)\
**Replies:** 17\
**Last updated:** [March 13, 2008, 1:15am UTC](https://www.ruby-forum.com/t/sort-array-by-some-text/131650 "2008-03-13T01:15:52Z")

</div>

Hi, i have array with file names a = \[‘one.jpg’, ‘two.txt’, ‘three.pdf’\] how can i sort it that always first value will be \*.txt file ? Thanks, fryt

---

## [LISP, and Contigeous Memory in Ruby](https://www.ruby-forum.com/t/lisp-and-contigeous-memory-in-ruby/131742)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 12:01am UTC](https://www.ruby-forum.com/t/lisp-and-contigeous-memory-in-ruby/131742 "2008-03-13T00:01:13Z")

</div>

Is ther a LISP language code in Open Software that I can download for Ruby? Also, how do I best represent contigeous memory locations in Ruby? Is it better to represent that a a multi dimentional arrary? Or, a very, …

---

## [REXML formatting help due to changes from 1.8.4 to 1.8.6](https://www.ruby-forum.com/t/rexml-formatting-help-due-to-changes-from-1-8-4-to-1-8-6/131743)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/rexml-formatting-help-due-to-changes-from-1-8-4-to-1-8-6/131743 "2008-03-12T22:30:34Z")

</div>

Apparently there was an overhaul of REXML formatting between Ruby 1.8.4 and 1.8.6. The new formatting of XML that I’m generating with REXML is not being consumed correctly by the consumer anymore. Elements containing…

---

## [A method that checks if an object is in a range](https://www.ruby-forum.com/t/a-method-that-checks-if-an-object-is-in-a-range/131720)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 12, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/a-method-that-checks-if-an-object-is-in-a-range/131720 "2008-03-12T21:21:06Z")

</div>

Hi, I wonder if there is a built-in method which does just like: range.include?(obj) but for the obj object. I came up with something like: module Comparable def in?(range) range.in?(self) end end 1.in? (1…10) #…

---

## [Rfcgi-spawner 0.0.1 released](https://www.ruby-forum.com/t/rfcgi-spawner-0-0-1-released/131736)

<div class="topic-metadata">

**Author:** [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/rfcgi-spawner-0-0-1-released/131736 "2008-03-12T21:14:00Z")

</div>

Hello all, We’re happy to announce the first public release of rfcgi-spawn, a small utility that might come handy to system administrators. Currently, we’re using it on our production servers running several rails/ru…

---

## [How do I stop these emails?](https://www.ruby-forum.com/t/how-do-i-stop-these-emails/131729)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/how-do-i-stop-these-emails/131729 "2008-03-12T20:22:44Z")

</div>

Hi Guys, When I joined this list, I requested a daily email digest. Instead, I started getting all the individual emails. I went back and changed the email option to no emails, but nothing changed. I wrote the list…

---

## [How do you deploy RubyCocoa application to another Mac?](https://www.ruby-forum.com/t/how-do-you-deploy-rubycocoa-application-to-another-mac/131732)

<div class="topic-metadata">

**Author:** [@praful](https://www.ruby-forum.com/u/praful)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/how-do-you-deploy-rubycocoa-application-to-another-mac/131732 "2008-03-12T20:20:59Z")

</div>

Hi I have written an application using RubyCocoa and would like it to be run on others Macs. I have tried the following, none of which work: Copied the MyApp.app folder. Run standaloneify. This produces a new .ap…

---

## [My project Rgettext](https://www.ruby-forum.com/t/my-project-rgettext/131715)

<div class="topic-metadata">

**Author:** [@wujciol](https://www.ruby-forum.com/u/wujciol)\
**Replies:** 3\
**Last updated:** [March 12, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/my-project-rgettext/131715 "2008-03-12T19:56:41Z")

</div>

Few days ago I wrote Rgetext my first project in Ruby. Could you try it and report me if that’s bugs in it?

---

## [Rutema 0.6.2 Released](https://www.ruby-forum.com/t/rutema-0-6-2-released/131727)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/rutema-0-6-2-released/131727 "2008-03-12T19:27:47Z")

</div>

rutema version 0.6.2 has been released! A small feature and bugfix release. DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, a…

---

## [Recursive method definition -- A Metaprogramming problem?](https://www.ruby-forum.com/t/recursive-method-definition-a-metaprogramming-problem/131724)

<div class="topic-metadata">

**Author:** [@DMisener](https://www.ruby-forum.com/u/DMisener)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/recursive-method-definition-a-metaprogramming-problem/131724 "2008-03-12T19:20:43Z")

</div>

Any hints on how to imbed redefine\_method’s payload as a block instead of a \*nasty" eval string? (see example below) How support payload being a block?? def redefine\_method method,payload # using previous definition o…

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

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