# Ruby

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

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

---

## [Tk on Windows and Mac OS X 10.6](https://www.ruby-forum.com/t/tk-on-windows-and-mac-os-x-10-6/183579)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 36\
**Last updated:** [March 14, 2010, 7:49am UTC](https://www.ruby-forum.com/t/tk-on-windows-and-mac-os-x-10-6/183579 "2010-03-14T07:49:26Z")

</div>

Is it possible to install Ruby Tk bindings on Windows with RubyInstaller, and on Mac OS X 10.6, without recompiling Ruby? I’ve seen a few sites that explain how to recompile Ruby on each platform to use Tk, but so far…

---

## [Ruby/Tk-Kit : tcltklib.so $B$X$N(B Tcl/Tk $B%i%$%V%i%j$N0lBN2=(B](https://www.ruby-forum.com/t/ruby-tk-kit-tcltklib-so-b-x-n-b-tcl-tk-b-i-v-i-j-n0lbn2-b/185114)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 0\
**Last updated:** [March 14, 2010, 7:48am UTC](https://www.ruby-forum.com/t/ruby-tk-kit-tcltklib-so-b-x-n-b-tcl-tk-b-i-v-i-j-n0lbn2-b/185114 "2010-03-14T07:48:16Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B Tcl/Tk e$B$K$\*$$$FC10l%U%!%$%k2=$r9T$($ke(B Tclkit e$B$r%Y!\<%9$K!$e(B Tcl/Tk e$B4D6-$r0lBN2=$5$;$?e(B tcltklib.so e$B$N:n@.$7$F$\_$^$7$?!%e(B e$B$3$Ne(B tcltklib.so e$B$r;H$($P!$e(BTcl/Tk …

---

## [\[bug:trunk\] Re: \[ruby-cvs:34124\] Ruby:r26909 (trunk): \* file.c (file\_expand\_path): should not just c](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-34124-ruby-r26909-trunk-file-c-file-expand-path-should-not-just-c/185098)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 2\
**Last updated:** [March 13, 2010, 11:28pm UTC](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-34124-ruby-r26909-trunk-file-c-file-expand-path-should-not-just-c/185098 "2010-03-13T23:28:30Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B In message “\[ruby-cvs:34124\] Ruby:r26909 (trunk): \* file.c (file\_expand\_path): should not just copy the encoding” on Mar.13,2010 23:50:30, removed\_email\_address@domain.…

---

## [Is ruby-1.9 threads data safer?](https://www.ruby-forum.com/t/is-ruby-1-9-threads-data-safer/185032)

<div class="topic-metadata">

**Author:** [@Jean\_G](https://www.ruby-forum.com/u/Jean_G)\
**Replies:** 4\
**Last updated:** [March 13, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/is-ruby-1-9-threads-data-safer/185032 "2010-03-13T20:05:26Z")

</div>

Hello, $ cat count\_threads.rb class Counter attr\_reader :count def initialize @count = 0 end def tick @count += 1 end end c = Counter.new t1 = Thread.new { 10000.times { c.tick } } t2 = Thread.new { 10000.ti…

---

## [Seco Scripting Environment for JRuby](https://www.ruby-forum.com/t/seco-scripting-environment-for-jruby/185102)

<div class="topic-metadata">

**Author:** [@Borislav\_Iordanov](https://www.ruby-forum.com/u/Borislav_Iordanov)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/seco-scripting-environment-for-jruby/185102 "2010-03-13T19:16:16Z")

</div>

Hi all, I’d like to introduce a new, unique JVM scripting tool called Seco, version 0.3 just released (don’t get distracted by the \< 1.0 version, it’s pretty stable). There’s JRuby support with code assistance etc. …

---

## [Best / cleanest DSL for manipulating data files?](https://www.ruby-forum.com/t/best-cleanest-dsl-for-manipulating-data-files/184916)

<div class="topic-metadata">

**Author:** [@dreamcat4](https://www.ruby-forum.com/u/dreamcat4)\
**Replies:** 6\
**Last updated:** [March 13, 2010, 12:41pm UTC](https://www.ruby-forum.com/t/best-cleanest-dsl-for-manipulating-data-files/184916 "2010-03-13T12:41:36Z")

</div>

Hi, At the stage of implementing the interface for a new RubyGem. The main goal is to make something that is intuitive, easy to use. Its a library for manipulating apple plists. So really we are just manipulating a f…

---

## [Posix\_mq 0.4.0](https://www.ruby-forum.com/t/posix-mq-0-4-0/185088)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 11:01am UTC](https://www.ruby-forum.com/t/posix-mq-0-4-0/185088 "2010-03-13T11:01:42Z")

</div>

POSIX message queues allow local processes to exchange data in the form of messages. This API is distinct from that provided by System V message queues, but provides similar functionality. posix\_mq - POSIX message q…

---

## [Different behavior of '$,' output separator in Ruby 1.9](https://www.ruby-forum.com/t/different-behavior-of-output-separator-in-ruby-1-9/184649)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 7\
**Last updated:** [March 13, 2010, 8:01am UTC](https://www.ruby-forum.com/t/different-behavior-of-output-separator-in-ruby-1-9/184649 "2010-03-13T08:01:29Z")

</div>

In switching to Ruby 1.9 from 1.8 I notice that the behavior of the ‘$,’ output separator has changed. In Ruby 1.9 the output separator is placed after a newline character, but this didn’t happen with Ruby 1.8. Using…

---

## [\[ANN\] IronRuby 1.0 RC3](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc3/185073)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [March 13, 2010, 7:53am UTC](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc3/185073 "2010-03-13T07:53:53Z")

</div>

The IronRuby team is pleased to announce version 1.0 RC3! http://ironruby.net/download Direct download link: http://ironruby.codeplex.com/releases/view/36929#DownloadId=110718 This release is also accompanied by a pr…

---

## [Re: \[ANN\] IronRuby 1.0 RC3](https://www.ruby-forum.com/t/re-ann-ironruby-1-0-rc3/185081)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [March 13, 2010, 4:17am UTC](https://www.ruby-forum.com/t/re-ann-ironruby-1-0-rc3/185081 "2010-03-13T04:17:21Z")

</div>

I’ll fix that. Sorry.

---

## [Clone array elements](https://www.ruby-forum.com/t/clone-array-elements/185049)

<div class="topic-metadata">

**Author:** [@guilhermemm](https://www.ruby-forum.com/u/guilhermemm)\
**Replies:** 5\
**Last updated:** [March 13, 2010, 3:35am UTC](https://www.ruby-forum.com/t/clone-array-elements/185049 "2010-03-13T03:35:13Z")

</div>

How to create the repeat method: \[:one, “two”, 3\].repeat(3) Result: \[:one, :one, :one, “two”, “two”, “two”, 3, 3, 3\] Thanks.

---

## [1.9$B$N(Brequire$B$,CY$$(B](https://www.ruby-forum.com/t/1-9-b-n-brequire-b-cy-b/185056)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 3\
**Last updated:** [March 13, 2010, 2:25am UTC](https://www.ruby-forum.com/t/1-9-b-n-brequire-b-cy-b/185056 "2010-03-13T02:25:01Z")

</div>

å‰ç”°ã§ã™ã€‚ ã¾ãŸYehuda K.æƒ…å ±ãªã®ã§ã™ãŒã€Ruby 1.9ã§ã€$:ã®è¦ç´ ãŒå¤šã„ã¨requireãŒé…ã„ã‚ˆã†ã§ã™ã€‚ defiant:build$ cat t.rb 1000.times { $:.push “/opt/ruby/1.8” } 1000.times do require “rat…

---

## [Hpricot Relative Path](https://www.ruby-forum.com/t/hpricot-relative-path/185069)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 2\
**Last updated:** [March 13, 2010, 12:23am UTC](https://www.ruby-forum.com/t/hpricot-relative-path/185069 "2010-03-13T00:23:49Z")

</div>

I’m trying to write a script that pulls out an image from a yfrog page So this is what I have require ‘rubygems’ require ‘hpricot’ require ‘open-uri’ url = ‘ImageShack - Best place for all of your image hosting and …

---

## [The Compleat Rubyist / June 18-19 2010 (corrected)](https://www.ruby-forum.com/t/the-compleat-rubyist-june-18-19-2010-corrected/185074)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 12:16am UTC](https://www.ruby-forum.com/t/the-compleat-rubyist-june-18-19-2010-corrected/185074 "2010-03-13T00:16:12Z")

</div>

\[apologies for the double post – had an incomplete paragraph\] Still suck at Ruby and want to get better? Can you be in the Chicago area on June 18-19? Then we can help! http://thecompleatrubyist.com/ == The Event …

---

## [Ruby Regexp implementation?](https://www.ruby-forum.com/t/ruby-regexp-implementation/185058)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 3\
**Last updated:** [March 12, 2010, 11:48pm UTC](https://www.ruby-forum.com/t/ruby-regexp-implementation/185058 "2010-03-12T23:48:07Z")

</div>

This probably doesn’t belong in Ruby Core. I was reading this article: http://swtch.com/~rsc/regexp/regexp1.html http://swtch.com/~rsc/regexp/regexp2.html http://swtch.com/~rsc/regexp/regexp3.html And in the first fe…

---

## [The Compleat Rubyist / June 18-19 2010](https://www.ruby-forum.com/t/the-compleat-rubyist-june-18-19-2010/185072)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 11:45pm UTC](https://www.ruby-forum.com/t/the-compleat-rubyist-june-18-19-2010/185072 "2010-03-12T23:45:11Z")

</div>

Still suck at Ruby and want to get better? Can you be in the Chicago area on June 18-19? Then we can help! http://thecompleatrubyist.com/ == The Event The Compleat Rubyist is a unique 2 day training event ran by D…

---

## [Per engine share variable](https://www.ruby-forum.com/t/per-engine-share-variable/184657)

<div class="topic-metadata">

**Author:** [@ngambek2003](https://www.ruby-forum.com/u/ngambek2003)\
**Replies:** 9\
**Last updated:** [March 12, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/per-engine-share-variable/184657 "2010-03-12T22:58:57Z")

</div>

I just moved from jruby 1.3 to jruby 1.5. I noticed that shared global variables behave differently now. In 1.3 I as able to do engine1.put(“VAR1”, “val1”); engine2.put(“VAR1”, “newval1”); When I do an eval on the r…

---

## [Ir / iirb on Mono](https://www.ruby-forum.com/t/ir-iirb-on-mono/185068)

<div class="topic-metadata">

**Author:** [@bantic](https://www.ruby-forum.com/u/bantic)\
**Replies:** 1\
**Last updated:** [March 12, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/ir-iirb-on-mono/185068 "2010-03-12T22:41:23Z")

</div>

Hi All, I’ve noticed problems with iirb and ir interactive mode on my Mac. I’m running the 1.0-rc2 build. With ir, I’ve noticed two things: The up arrow does not scroll through the command history. This works on W…

---

## [DES3 encryption with jruby-openssl: output not matching command-line openssl output?](https://www.ruby-forum.com/t/des3-encryption-with-jruby-openssl-output-not-matching-command-line-openssl-output/185028)

<div class="topic-metadata">

**Author:** [@FineganS\_Richard\_SH](https://www.ruby-forum.com/u/FineganS_Richard_SH)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/des3-encryption-with-jruby-openssl-output-not-matching-command-line-openssl-output/185028 "2010-03-12T20:26:12Z")

</div>

Hello, I’m trying to encrypt some credit card numbers for later consumption by a .NET app, and I’m having trouble getting the output to match up…I’m following the guide from Ola B. here: http://olabini.com/blog/2008/…

---

## [Glassfish Gem not detecting rails application](https://www.ruby-forum.com/t/glassfish-gem-not-detecting-rails-application/184866)

<div class="topic-metadata">

**Author:** [@Albert\_R](https://www.ruby-forum.com/u/Albert_R)\
**Replies:** 14\
**Last updated:** [March 12, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/glassfish-gem-not-detecting-rails-application/184866 "2010-03-12T19:09:31Z")

</div>

Hello list! I am trying to figure something out that i cannot for the life of me understand. I have have two identical environments, two machines with same os and libs, same jruby and gems, and using the same app. One …

---

## [FYI Code Review: config](https://www.ruby-forum.com/t/fyi-code-review-config/185014)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 5\
**Last updated:** [March 12, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/fyi-code-review-config/185014 "2010-03-12T19:05:25Z")

</div>

tfpt review “/shelveset:config;REDMOND\\sborde” Comment : Change RbConfig::CONFIG\[“arch”\] to “universal-dotnet2.0” (or “universal-dotnet4.0” on .NET 4) Also changed RbConfig::CONFIG\[“host\_os”\] to be based on RUBY\_PLA…

---

## [FYI Code Review: readme\_and\_other](https://www.ruby-forum.com/t/fyi-code-review-readme-and-other/185057)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/fyi-code-review-readme-and-other/185057 "2010-03-12T18:51:22Z")

</div>

tfpt review “/shelveset:readme\_and\_other;REDMOND\\jdeville” Comment : Readme changes and tweaks to rake package. Going in directly since there are no test dependencies.

---

## [Error: wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/error-wrong-number-of-arguments-1-for-0/184274)

<div class="topic-metadata">

**Author:** [@jgrewal](https://www.ruby-forum.com/u/jgrewal)\
**Replies:** 5\
**Last updated:** [March 12, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/error-wrong-number-of-arguments-1-for-0/184274 "2010-03-12T18:45:43Z")

</div>

Hi, I am working on an application with Jruby and rails. I recently upgraded Jruby version to 1.4 and rails (Jruby gem) version to 2.3.5. I randomly get the following error. The error occurs before any of the applica…

---

## [Why dosnt this work](https://www.ruby-forum.com/t/why-dosnt-this-work/185051)

<div class="topic-metadata">

**Author:** [@murloc](https://www.ruby-forum.com/u/murloc)\
**Replies:** 1\
**Last updated:** [March 12, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/why-dosnt-this-work/185051 "2010-03-12T15:07:51Z")

</div>

Hey guys I get an error on this code: def print\_options puts “What do you want to do? Enter the number of the program you want to run.” puts “1. Show different classes.” puts “2. Search for a student.” end def sh…

---

## [How to get word from sentence](https://www.ruby-forum.com/t/how-to-get-word-from-sentence/185044)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 4\
**Last updated:** [March 12, 2010, 2:02pm UTC](https://www.ruby-forum.com/t/how-to-get-word-from-sentence/185044 "2010-03-12T14:02:13Z")

</div>

Hi all, In my application i have to get the word which contains given word. example sentence: iam testung the aplication i want to extract the word which starts with test how to do this

---

## [How to check the file field empty](https://www.ruby-forum.com/t/how-to-check-the-file-field-empty/185046)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-check-the-file-field-empty/185046 "2010-03-12T13:16:04Z")

</div>

hi, How to check the file selected or not while uploading form in ruby or empty file selected Regards, Raju

---

## [(noob) Help with variables](https://www.ruby-forum.com/t/noob-help-with-variables/184964)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 3\
**Last updated:** [March 12, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/noob-help-with-variables/184964 "2010-03-12T12:57:50Z")

</div>

I’m trying to make what amounts to a cloud files manager using the ruby API. In the end I want login via MySQL and all that fun stuff, but for now I want it to just -work-. I’m using eruby loaded via CGI on apache. So…

---

## [Dynamically require and include code in application](https://www.ruby-forum.com/t/dynamically-require-and-include-code-in-application/185011)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 3\
**Last updated:** [March 12, 2010, 10:07am UTC](https://www.ruby-forum.com/t/dynamically-require-and-include-code-in-application/185011 "2010-03-12T10:07:02Z")

</div>

I was hoping to dynamically load and include code in my application. After some struggle, i’ve got this working. Wish to know if this is the cleanest way to do so: Since include has a problem (NoMethod) i tried making…

---

## [Request for comments: small class to create, manage and interact with forks](https://www.ruby-forum.com/t/request-for-comments-small-class-to-create-manage-and-interact-with-forks/185037)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 9:49am UTC](https://www.ruby-forum.com/t/request-for-comments-small-class-to-create-manage-and-interact-with-forks/185037 "2010-03-12T09:49:19Z")

</div>

Hi there I created a small class to deal with forks, mainly creating, managing and communicating with forks. But since forks/forking is a bit of a new topic to me, I’d be happy to get comments on the following bit of …

---

## [Result of assignment is not the return value](https://www.ruby-forum.com/t/result-of-assignment-is-not-the-return-value/185029)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 4\
**Last updated:** [March 12, 2010, 8:30am UTC](https://www.ruby-forum.com/t/result-of-assignment-is-not-the-return-value/185029 "2010-03-12T08:30:54Z")

</div>

Given a simple class like this class MyClass attr\_reader :value def value=(val) @value = val.to\_s end end Why the the following code return the value passed and not the value assigned? c = MyClass.new result = …

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

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