# Ruby

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

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

---

## [El4r-1.0.3 - EmacsLisp for Ruby](https://www.ruby-forum.com/t/el4r-1-0-3-emacslisp-for-ruby/80031)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 12, 2006, 4:16am UTC](https://www.ruby-forum.com/t/el4r-1-0-3-emacslisp-for-ruby/80031 "2006-03-12T04:16:12Z")

</div>

Hi, El4r enables you to write Emacs programs in Ruby as well as in EmacsLisp. I call the Ruby language to manipulate Emacs \`EmacsRuby’. El4r and Test::Unit enables you to unit-test EmacsLisp/EmacsRuby programs autom…

---

## [Unexpected behavior of range.each (Newbie extreme)](https://www.ruby-forum.com/t/unexpected-behavior-of-range-each-newbie-extreme/79995)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 5\
**Last updated:** [March 12, 2006, 1:35am UTC](https://www.ruby-forum.com/t/unexpected-behavior-of-range-each-newbie-extreme/79995 "2006-03-12T01:35:03Z")

</div>

with r=(5…9), r.each{|num| print num,"\\n"} behaves as expected. However if i set r=(9…5) the same method does not behave as though it were taking “each” element of the range. It just terminates. Not only that but r.…

---

## [Strange behaviour](https://www.ruby-forum.com/t/strange-behaviour/79994)

<div class="topic-metadata">

**Author:** [@javier\_v](https://www.ruby-forum.com/u/javier_v)\
**Replies:** 4\
**Last updated:** [March 12, 2006, 1:13am UTC](https://www.ruby-forum.com/t/strange-behaviour/79994 "2006-03-12T01:13:52Z")

</div>

Look this: tigre@enigma tigre $ irb irb(main):001:0\> events = {} =\> {} irb(main):002:0\> events.default = \[\] =\> \[\] irb(main):003:0\> events\[“trying”\] \<\< “hello” =\> \[“hello”\] irb(main):004:0\> events =\> {} irb(main…

---

## [Optimizing Programs And Code them with Ruby way](https://www.ruby-forum.com/t/optimizing-programs-and-code-them-with-ruby-way/79828)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 12, 2006, 1:10am UTC](https://www.ruby-forum.com/t/optimizing-programs-and-code-them-with-ruby-way/79828 "2006-03-12T01:10:49Z")

</div>

Hi, I am a newbie in Ruby. I wrote 2 small programs. Both are running with no errors. For the first program it simulates a service queue in the variables musteri means customer and memur means worker of the bank. I w…

---

## [Textmate Bundles for form\_remote\_tag shortcut](https://www.ruby-forum.com/t/textmate-bundles-for-form-remote-tag-shortcut/79933)

<div class="topic-metadata">

**Author:** [@Soren\_Burkhart](https://www.ruby-forum.com/u/Soren_Burkhart)\
**Replies:** 3\
**Last updated:** [March 11, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/textmate-bundles-for-form-remote-tag-shortcut/79933 "2006-03-11T23:28:01Z")

</div>

Watching through the online videos of the flickr tutorial, I noticed some tab triggered shortcuts for form\_remote\_tag and label. But in the default install of Textmate those shortcuts aren’t installed. What do you ne…

---

## [Http-access2 question](https://www.ruby-forum.com/t/http-access2-question/54663)

<div class="topic-metadata">

**Author:** [@constantine](https://www.ruby-forum.com/u/constantine)\
**Replies:** 0\
**Last updated:** [March 11, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/http-access2-question/54663 "2006-03-11T18:57:33Z")

</div>

Hi! I’m learning Ruby and trying to write small script to fetch data from different web pages using http-access2. Playing with my own apache web server with mod\_bw installed (http://bwmod.sourceforge.net/index.html) I …

---

## [Calling plotutils from xemacs using Ruby GSL](https://www.ruby-forum.com/t/calling-plotutils-from-xemacs-using-ruby-gsl/79903)

<div class="topic-metadata">

**Author:** [@rubymarc](https://www.ruby-forum.com/u/rubymarc)\
**Replies:** 0\
**Last updated:** [March 11, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/calling-plotutils-from-xemacs-using-ruby-gsl/79903 "2006-03-11T18:23:06Z")

</div>

I’m using ruby from Xemacs on OSX. Ruby works well in IRB mode from Xemacs, but I can’t call plotutils successfully from Xemacs, even though I know it is installed. I’m trying to use rubygsl, which also runs fine, …

---

## [Matrix in Ruby](https://www.ruby-forum.com/t/matrix-in-ruby/79826)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 2\
**Last updated:** [March 11, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/matrix-in-ruby/79826 "2006-03-11T16:16:49Z")

</div>

What is the best way to create a matrix whose size is m x n? The value of m and n may be different, and the values in each cell should be zeroed. Can anybody help me? Sincerely, Minkoo S.

---

## [Ruby-GetText-Package-1.3.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-3-0/79856)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [March 11, 2006, 3:48pm UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-3-0/79856 "2006-03-11T15:48:34Z")

</div>

Hi, Ruby-GetText-Package-1.3.0 is now available. Changes Improve Local::Object POSIX, C convert to “en”. Enhance supports of Ruby on Rails. Fix memory leak, other bugs. Thanks to: Albert R., Yugui, drawnboy, Erk…

---

## [Delay](https://www.ruby-forum.com/t/delay/79855)

<div class="topic-metadata">

**Author:** [@TURK](https://www.ruby-forum.com/u/TURK)\
**Replies:** 1\
**Last updated:** [March 11, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/delay/79855 "2006-03-11T15:29:24Z")

</div>

HI masters, I want to create a loop say : while (i\>=0) // do something Now hang for two seconds for next iteration i-=i } How would you hang the process in ruby for a certain time? thank you

---

## [An Array of grep Results?](https://www.ruby-forum.com/t/an-array-of-grep-results/79712)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 2\
**Last updated:** [March 11, 2006, 1:59pm UTC](https://www.ruby-forum.com/t/an-array-of-grep-results/79712 "2006-03-11T13:59:06Z")

</div>

I want to search all the files in a directory for a string and save the results in an Array. So far, the best solution I can come up with is using system(“grep … \> resultsFile”), then opening resultsFile and doing rea…

---

## [C++ DLL example](https://www.ruby-forum.com/t/c-dll-example/54645)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 4\
**Last updated:** [March 11, 2006, 12:12pm UTC](https://www.ruby-forum.com/t/c-dll-example/54645 "2006-03-11T12:12:35Z")

</div>

Can someone point me to a simple example of calling a C++ function from Ruby? I know how to do it with SWIG, but I’m trying to learn how to do it without SWIG. I’d like to do this under Windows and have the C++ code …

---

## [Named method arguments with defaults](https://www.ruby-forum.com/t/named-method-arguments-with-defaults/79824)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 11, 2006, 11:39am UTC](https://www.ruby-forum.com/t/named-method-arguments-with-defaults/79824 "2006-03-11T11:39:18Z")

</div>

Hello all, What is the current idiomatic approach to pass named arguments to a method in Ruby ? In Perl, I can do: sub method { first the defaults are specified, then @\_ is appended and overrides the defaults, usin…

---

## [Gem + libxml](https://www.ruby-forum.com/t/gem-libxml/79662)

<div class="topic-metadata">

**Author:** [@Mikael\_Larsson](https://www.ruby-forum.com/u/Mikael_Larsson)\
**Replies:** 4\
**Last updated:** [March 11, 2006, 10:53am UTC](https://www.ruby-forum.com/t/gem-libxml/79662 "2006-03-11T10:53:47Z")

</div>

Hi Wat is wrong here ?? Do I need ruby source? linux:~ # linux:~ # ruby -v ruby 1.8.2 (2004-12-25) \[i586-linux\] linux:~ # gem -v 0.8.11 linux:~ # gem install libxml-ruby Attempting local installation of ‘libxml-r…

---

## [Optimizing ruby constant array data](https://www.ruby-forum.com/t/optimizing-ruby-constant-array-data/79750)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 4\
**Last updated:** [March 11, 2006, 10:53am UTC](https://www.ruby-forum.com/t/optimizing-ruby-constant-array-data/79750 "2006-03-11T10:53:47Z")

</div>

I decided it was time to do a little profiling, and am so glad that it’s built right into Ruby. My biggest problem seems to be array access: % cumulative self self total time seconds seconds…

---

## [Ruby -w and '(...) interpreted as grouped expression'](https://www.ruby-forum.com/t/ruby-w-and-interpreted-as-grouped-expression/79825)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 1\
**Last updated:** [March 11, 2006, 9:25am UTC](https://www.ruby-forum.com/t/ruby-w-and-interpreted-as-grouped-expression/79825 "2006-03-11T09:25:49Z")

</div>

Hi all. I’ve encountered enigmatic error message while learning rdoc. This is the simple program which tests RDoc: #!/usr/local/bin/ruby -w == Synopsis Test synopsis require “optparse” require “rdoc/usage” opts = O…

---

## [Backslash in quotes](https://www.ruby-forum.com/t/backslash-in-quotes/79788)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 1\
**Last updated:** [March 11, 2006, 7:53am UTC](https://www.ruby-forum.com/t/backslash-in-quotes/79788 "2006-03-11T07:53:42Z")

</div>

Why is \\ the same as \\ in the 1st 2 cases, but not in the 3rd? irb(main):001:0\> ‘c:\\a\\b’ =\> “c:\\a\\b” irb(main):002:0\> ‘c:\\a\\b’ =\> “c:\\a\\b” irb(main):004:0\> ‘c:\\a\\b’ irb(main):005:0’ Thanks.

---

## [Embedable Ruby Interpreter](https://www.ruby-forum.com/t/embedable-ruby-interpreter/79784)

<div class="topic-metadata">

**Author:** [@mscode3](https://www.ruby-forum.com/u/mscode3)\
**Replies:** 2\
**Last updated:** [March 11, 2006, 6:00am UTC](https://www.ruby-forum.com/t/embedable-ruby-interpreter/79784 "2006-03-11T06:00:47Z")

</div>

I am looking for a Ruby interpreter that can be embedded in another product, so that Ruby can be used as the customization or application development language for that product. Ideally, this interpreter would be OpenS…

---

## [Save file](https://www.ruby-forum.com/t/save-file/75022)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 3\
**Last updated:** [March 11, 2006, 4:20am UTC](https://www.ruby-forum.com/t/save-file/75022 "2006-03-11T04:20:40Z")

</div>

my form \<%= form\_tag :action =\> ‘upload’, :id =\> @property.id %\> \<%= file\_field ‘images’, ‘name’ %\> \<%= submit\_tag “send” %\> \<%= end\_form\_tag %\> @user = “new\_image” File.open("#{RAILS\_ROOT}/public/images/#{@user}.j…

---

## [Subversion bindings for ruby](https://www.ruby-forum.com/t/subversion-bindings-for-ruby/79580)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 11, 2006, 1:25am UTC](https://www.ruby-forum.com/t/subversion-bindings-for-ruby/79580 "2006-03-11T01:25:06Z")

</div>

Hi! I am looking for ruby-bindings to subversion. Currently I can’t get how install SWIG or related stuff… Can somebody help me on that? Best regards Peter

---

## [Question about Hash's initialize](https://www.ruby-forum.com/t/question-about-hashs-initialize/54646)

<div class="topic-metadata">

**Author:** [@Suhku\_H](https://www.ruby-forum.com/u/Suhku_H)\
**Replies:** 3\
**Last updated:** [March 11, 2006, 12:16am UTC](https://www.ruby-forum.com/t/question-about-hashs-initialize/54646 "2006-03-11T00:16:16Z")

</div>

I’d like to make a class that behave like a Hash but keeps keys in created order. Followings are some initial testing codes… class OHash \< Hash def self. if (args.size == 1) and args\[0\].kind\_of?(Hash) args\[0\].each…

---

## [Need GTK grid for ruby on windows](https://www.ruby-forum.com/t/need-gtk-grid-for-ruby-on-windows/79746)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 11, 2006, 12:01am UTC](https://www.ruby-forum.com/t/need-gtk-grid-for-ruby-on-windows/79746 "2006-03-11T00:01:05Z")

</div>

I need a grid for ruby-gtk on windows… Thanks for the help

---

## [Ruby Brigade|Group|Meetup collaboration](https://www.ruby-forum.com/t/ruby-brigade-group-meetup-collaboration/79709)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/ruby-brigade-group-meetup-collaboration/79709 "2006-03-10T23:00:20Z")

</div>

I’ve noticed several things recently that made me think that getting some level of collaboration among the various Rubyist organizations would be a good thing. There are a number of groups within several hours of each …

---

## [Red Letter: The Ruby Journal Writing Kit](https://www.ruby-forum.com/t/red-letter-the-ruby-journal-writing-kit/79708)

<div class="topic-metadata">

**Author:** [@Sam\_Flywheel](https://www.ruby-forum.com/u/Sam_Flywheel)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/red-letter-the-ruby-journal-writing-kit/79708 "2006-03-10T22:54:07Z")

</div>

After some delay, the Red Letter writing kit is now available. The text of the kit is pasted below. You can also find a PDF version of this kit at http://redletter.therubyjournal.com/download/ redletterkit.pdf. If yo…

---

## [Can't get net/smtp to send outside of LAN?](https://www.ruby-forum.com/t/cant-get-net-smtp-to-send-outside-of-lan/79162)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 8\
**Last updated:** [March 10, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/cant-get-net-smtp-to-send-outside-of-lan/79162 "2006-03-10T22:26:42Z")

</div>

I am trying to use net/smtp to send a mail message. What I am finding is that I can send a email message on the LAN but it never gets out to the world. What am I missing? Here is my test code: ####################…

---

## [FasterCSV 0.1.6 -- With Header Support!](https://www.ruby-forum.com/t/fastercsv-0-1-6-with-header-support/73324)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 25\
**Last updated:** [March 10, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/fastercsv-0-1-6-with-header-support/73324 "2006-03-10T22:14:37Z")

</div>

FasterCSV 0.1.6 Released The first couple of releases brought raw speed and plenty of it. This release puts all those spare cycles to work with a ton of new data-centric features. Want to access you CSV files by the …

---

## [Using 'include' but not poluting my namespace](https://www.ruby-forum.com/t/using-include-but-not-poluting-my-namespace/79626)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/using-include-but-not-poluting-my-namespace/79626 "2006-03-10T21:56:22Z")

</div>

I noticed that if you ‘include’ a module within a method, it will polute the namesapce that defines that method. I found a simple solution is to declare a throw-away class, and execute my code in that. Is there a m…

---

## [Ruby and osc](https://www.ruby-forum.com/t/ruby-and-osc/79627)

<div class="topic-metadata">

**Author:** [@krgn](https://www.ruby-forum.com/u/krgn)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/ruby-and-osc/79627 "2006-03-10T21:16:41Z")

</div>

Hi, I am quite new to the lang and started off a project in it using ruby-osc. I was searching throughout the net for some hints, but have not found much usable info on the question I have. basically my questions con…

---

## [Looking for a Ruby Programmer Looking for a Fun Project. ;)](https://www.ruby-forum.com/t/looking-for-a-ruby-programmer-looking-for-a-fun-project/79364)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 11\
**Last updated:** [March 10, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/looking-for-a-ruby-programmer-looking-for-a-fun-project/79364 "2006-03-10T21:13:36Z")

</div>

hi there, I’m glad to have found this forum. I’m in Seattle, and have only just found out about Ruby (and Rails), and am pretty excited about them for the project I’m currently noodling with. It’s a fairly simple web…

---

## [Windsor, Ontario Rubyists?](https://www.ruby-forum.com/t/windsor-ontario-rubyists/79579)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/windsor-ontario-rubyists/79579 "2006-03-10T20:46:20Z")

</div>

Are there any Rubyists (Ruby N.'s included) in the Windsor, Ontario area? I don’t seem to see a Ruby U. Group in my area, so if there’s anyone that would be interested in forming one with me, let me know. James

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

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