# Ruby

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

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

---

## [IronRuby overloaded method selection?](https://www.ruby-forum.com/t/ironruby-overloaded-method-selection/160714)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 2\
**Last updated:** [February 22, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/ironruby-overloaded-method-selection/160714 "2009-02-22T21:16:12Z")

</div>

I have the following C# code, which I’m trying to translate to IronRuby var host = new ServiceHost(typeof(MyService )); host.AddServiceEndpoint(typeof(IWcfContract), new WSHttpBinding(), new Uri(“…”)); This compiles …

---

## [Wxruby in jruby](https://www.ruby-forum.com/t/wxruby-in-jruby/161046)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 0\
**Last updated:** [February 22, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/wxruby-in-jruby/161046 "2009-02-22T20:30:53Z")

</div>

I want to write a wxruby app that uses Java classes for doing JMX. It seems that it should work but it doesn’t seem that I can install the wxruby gem into jruby’s world. I’m using OS X 10.5 and I’m using MacPorts to…

---

## [Monitor + killing thread =\> thread in an aborting state](https://www.ruby-forum.com/t/monitor-killing-thread-thread-in-an-aborting-state/161036)

<div class="topic-metadata">

**Author:** [@christoforever](https://www.ruby-forum.com/u/christoforever)\
**Replies:** 1\
**Last updated:** [February 22, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/monitor-killing-thread-thread-in-an-aborting-state/161036 "2009-02-22T17:52:54Z")

</div>

Hi I am using ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\]. I have made a small program, to see whether killing thread is safe, when it is using a monitor. I have 3 threads: -writer, which changes global re…

---

## [How do you add attachments in tmail](https://www.ruby-forum.com/t/how-do-you-add-attachments-in-tmail/160949)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [February 22, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/how-do-you-add-attachments-in-tmail/160949 "2009-02-22T17:51:08Z")

</div>

hi im trying to create an email in tmail which i will then send off via smtp but how do i go around specifying files to be attached in it. i looked on tmail but couldnt find anything of the sort

---

## [Ffi-ncurses 0.3.2](https://www.ruby-forum.com/t/ffi-ncurses-0-3-2/161034)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [February 22, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/ffi-ncurses-0-3-2/161034 "2009-02-22T17:10:06Z")

</div>

ffi-ncurses version 0.3.2 by Sean O’Halpin GitHub - seanohalpin/ffi-ncurses: Interface to ncurses using Ruby FFI (Foreign Function Interface) == DESCRIPTION A wrapper for ncurses 5.x. Tested on Mac OS X 10.4 (Tiger) …

---

## [Questionnaire](https://www.ruby-forum.com/t/questionnaire/161019)

<div class="topic-metadata">

**Author:** [@pkuphenix](https://www.ruby-forum.com/u/pkuphenix)\
**Replies:** 0\
**Last updated:** [February 22, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/questionnaire/161019 "2009-02-22T12:35:36Z")

</div>

Hey, folks, I am doing a key project at Beijing University on culture discrepancy, and I am honored to have you fill out the following questionnaire. Your help will be greatly appreciated! A Questionnaire For College …

---

## [BlueFeather 0.10 (first) released](https://www.ruby-forum.com/t/bluefeather-0-10-first-released/161013)

<div class="topic-metadata">

**Author:** [@dice](https://www.ruby-forum.com/u/dice)\
**Replies:** 0\
**Last updated:** [February 22, 2009, 11:23am UTC](https://www.ruby-forum.com/t/bluefeather-0-10-first-released/161013 "2009-02-22T11:23:26Z")

</div>

Hello, my name is Dice. I’m rubyist in Japan. I have released new software, BlueFeather. This software is extended Markdown converter based on BlueCloth. Website: http://ruby.morphball.net/bluefeather/index\_en.html B…

---

## [How to call a module method dynamically](https://www.ruby-forum.com/t/how-to-call-a-module-method-dynamically/160975)

<div class="topic-metadata">

**Author:** [@huckyducky](https://www.ruby-forum.com/u/huckyducky)\
**Replies:** 11\
**Last updated:** [February 22, 2009, 7:15am UTC](https://www.ruby-forum.com/t/how-to-call-a-module-method-dynamically/160975 "2009-02-22T07:15:28Z")

</div>

I know about object instantiation and the send method, but the methods I want to call are not in a class. They live in a module. module Foo module Bar def mymethod "xyz" end end end I can call it statically, li…

---

## [My Little Ruby Valentine (#192)](https://www.ruby-forum.com/t/my-little-ruby-valentine-192/160276)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 1\
**Last updated:** [February 22, 2009, 3:16am UTC](https://www.ruby-forum.com/t/my-little-ruby-valentine-192/160276 "2009-02-22T03:16:21Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Ruby-1.8.7 post installation problem](https://www.ruby-forum.com/t/ruby-1-8-7-post-installation-problem/160968)

<div class="topic-metadata">

**Author:** [@cmsvicky](https://www.ruby-forum.com/u/cmsvicky)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 11:53pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-post-installation-problem/160968 "2009-02-21T23:53:20Z")

</div>

Hi, Installation of ruby-1.8.7 was successfull. \[vivek@localhost ruby-1.8.7-p72\]$ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) \[i686-linux\] But when I tried to start irb \[vivek@localhost ruby-1.8.7-p72\]$ irb /usr/…

---

## [\[ANN\] Arcadia ruby ide 0.6.0](https://www.ruby-forum.com/t/ann-arcadia-ruby-ide-0-6-0/160997)

<div class="topic-metadata">

**Author:** [@guerra](https://www.ruby-forum.com/u/guerra)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/ann-arcadia-ruby-ide-0-6-0/160997 "2009-02-21T23:18:53Z")

</div>

Arcadia ruby ide 0.6.0 Arcadia is a Light Integrated Development Environment (IDE) for Ruby language written in Ruby using the classic tcl/tk GUI toolkit. (http://arcadia.rubyforge.org/) ============================…

---

## [Why not check for nil?](https://www.ruby-forum.com/t/why-not-check-for-nil/160976)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 6\
**Last updated:** [February 21, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/why-not-check-for-nil/160976 "2009-02-21T21:20:11Z")

</div>

A post I ran across on a rails forum reads: “Warning! DO NOT test for nil! This is a very bad coding practice. You can use “if obj”, but do not use “if obj.nil?” or whatever.” Is that generally true? Why? m.

---

## [Ruby RE expression anomaly](https://www.ruby-forum.com/t/ruby-re-expression-anomaly/160816)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/ruby-re-expression-anomaly/160816 "2009-02-21T20:52:03Z")

</div>

Hi, I’m trying to use Ruby REs to transform Windows addresses into HTML anchors. CODE: DEBUG = 1 fo= File.open(“Microsoft EXEs xformed.txt”, “w”) fi= File.new(“Microsoft EXEs.txt”) fi.each { |line| next unless li…

---

## [\[Feature #1133\] Pathname.binread](https://www.ruby-forum.com/t/feature-1133-pathname-binread/159775)

<div class="topic-metadata">

**Author:** [@Sakuro\_OZAWA](https://www.ruby-forum.com/u/Sakuro_OZAWA)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/feature-1133-pathname-binread/159775 "2009-02-21T20:37:19Z")

</div>

Feature #1133: Pathname.binread http://redmine.ruby-lang.org/issues/show/1133 e$B5/I\<\<Te(B: Sakuro OZAWA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal #1129 e$B$K$$$/$V$s4XO"$7$^$9$,!“e(BPathname#read e$B$,$”$k$N$G$9…

---

## [Ruby-1.9.1 installation on RHEL-4](https://www.ruby-forum.com/t/ruby-1-9-1-installation-on-rhel-4/160966)

<div class="topic-metadata">

**Author:** [@cmsvicky](https://www.ruby-forum.com/u/cmsvicky)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-installation-on-rhel-4/160966 "2009-02-21T20:10:54Z")

</div>

Hi, I am trying to install ruby-1.9.1 on my RHEL-4 system. make install as su gives me this error: . . . . Generating RI… /home/vivek/churp/ruby-1.9.1-p0/lib/yaml.rb:9:in require': no such file to load -- stringi…

---

## [Old warbler artifacts](https://www.ruby-forum.com/t/old-warbler-artifacts/160922)

<div class="topic-metadata">

**Author:** [@CrallS\_Dennis\_P](https://www.ruby-forum.com/u/CrallS_Dennis_P)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/old-warbler-artifacts/160922 "2009-02-21T20:05:00Z")

</div>

Hello, I recently came back to a project that was deployed with Jruby 1.0.3 + Goldspike with an earlier version of Warbler. I upgraded to Jruby 1.1.6 and Warbler 0.9.12. I am able to build my war file. However I am ge…

---

## [FXRuby & erb -- problems together?](https://www.ruby-forum.com/t/fxruby-erb-problems-together/160935)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/fxruby-erb-problems-together/160935 "2009-02-21T19:47:49Z")

</div>

I’m having vexing problems with some erb templates I use to generate html. The templates used to work just great in a gui-less program. But when I embedded the template generation code inside a FXRuby interface, it s…

---

## [Building Ruby 1.9.1 on Windows - LINK error](https://www.ruby-forum.com/t/building-ruby-1-9-1-on-windows-link-error/160939)

<div class="topic-metadata">

**Author:** [@alex797](https://www.ruby-forum.com/u/alex797)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/building-ruby-1-9-1-on-windows-link-error/160939 "2009-02-21T19:16:24Z")

</div>

Hi everybody! I’m trying to compile Ruby 1.9.1 with Visual Studio 2008 Express and I’m getting an error… and I do have my environnements variables set (PATH) I am doing everything as written in the readme file… (win3…

---

## [RUBYLIB on windows](https://www.ruby-forum.com/t/rubylib-on-windows/160897)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/rubylib-on-windows/160897 "2009-02-21T18:30:30Z")

</div>

How do i set rubylib on windows? Specifically I would like to ask a directory like /Depot/Ruby/Source/ which contains my ruby scripts. (PS: Windows drives me crazy… things which are easy on Linux seem to be quite ha…

---

## [Re: while vs loop](https://www.ruby-forum.com/t/re-while-vs-loop/160921)

<div class="topic-metadata">

**Author:** [@Louis-Philippe](https://www.ruby-forum.com/u/Louis-Philippe)\
**Replies:** 8\
**Last updated:** [February 21, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/re-while-vs-loop/160921 "2009-02-21T17:57:34Z")

</div>

Hi,I saw this thread from last week: while vs loop, I don’t think anybody mentioned the slight performance difference between the two, (or maybe I got the wrong info!!) In fact, I had always assumed the ‘loop do’ co…

---

## [How do i read the text from the current running windows appl](https://www.ruby-forum.com/t/how-do-i-read-the-text-from-the-current-running-windows-appl/160972)

<div class="topic-metadata">

**Author:** [@balukk](https://www.ruby-forum.com/u/balukk)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/how-do-i-read-the-text-from-the-current-running-windows-appl/160972 "2009-02-21T17:23:32Z")

</div>

hi i am new to API. i have a question. is it possible to read the text( like Enduser Licence Agreement) from the window while installing the software? or is it possible to read the file directly from any executable fi…

---

## [Problem with special characters](https://www.ruby-forum.com/t/problem-with-special-characters/160769)

<div class="topic-metadata">

**Author:** [@amichelin](https://www.ruby-forum.com/u/amichelin)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 8:08am UTC](https://www.ruby-forum.com/t/problem-with-special-characters/160769 "2009-02-21T08:08:30Z")

</div>

Hi: O.S Windows XP sp3 Ruby 1.8.6 I am working with ruby using DBI::Mysql, and the returned descriptions are not displayed ok. The puts command is displaying wrong characters, when the text has special chars like Ã¡…

---

## [Web Systems Architect for Startup](https://www.ruby-forum.com/t/web-systems-architect-for-startup/160945)

<div class="topic-metadata">

**Author:** [@fjlj](https://www.ruby-forum.com/u/fjlj)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 7:45am UTC](https://www.ruby-forum.com/t/web-systems-architect-for-startup/160945 "2009-02-21T07:45:07Z")

</div>

This post is for a full-time position in the Washington, DC area. If you or anyone you know may be interested, please contact me at removed\_email\_address@domain.invalid. Many thanks! Frank Web Systems Architect fo…

---

## [Ldap and ruby](https://www.ruby-forum.com/t/ldap-and-ruby/160283)

<div class="topic-metadata">

**Author:** [@Jan\_LSSS\_hr](https://www.ruby-forum.com/u/Jan_LSSS_hr)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 7:08am UTC](https://www.ruby-forum.com/t/ldap-and-ruby/160283 "2009-02-21T07:08:15Z")

</div>

Hello, I’m using ruby/ldap (http://ruby-ldap.sourceforge.net/) for accessing ldap-Servers so far, but run in a few issues with active directory servers while using openldap2 as backend. (Crendentials seem to be forgo…

---

## [Showing a picture](https://www.ruby-forum.com/t/showing-a-picture/160879)

<div class="topic-metadata">

**Author:** [@siggesg](https://www.ruby-forum.com/u/siggesg)\
**Replies:** 11\
**Last updated:** [February 21, 2009, 6:50am UTC](https://www.ruby-forum.com/t/showing-a-picture/160879 "2009-02-21T06:50:42Z")

</div>

Can anyone tell me the code for showing a picture in the “my pictures” folder? Please!! I’ve just started programing, so I don’t so much about it.

---

## [\[ANN\] unique\_require 0.0.0a allow 1.8.x to never re-require](https://www.ruby-forum.com/t/ann-unique-require-0-0-0a-allow-1-8-x-to-never-re-require/160942)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 6:21am UTC](https://www.ruby-forum.com/t/ann-unique-require-0-0-0a-allow-1-8-x-to-never-re-require/160942 "2009-02-21T06:21:17Z")

</div>

This has probably been done “1,000,000” times, but here’s another hack at it. The background: If you’ve ever gotten a message like …/smart\_require/test.rb:1: warning: already initialized constant A you know that rub…

---

## [Jruby yaml load issue with floats?](https://www.ruby-forum.com/t/jruby-yaml-load-issue-with-floats/160865)

<div class="topic-metadata">

**Author:** [@pradeepgatram](https://www.ruby-forum.com/u/pradeepgatram)\
**Replies:** 4\
**Last updated:** [February 21, 2009, 6:07am UTC](https://www.ruby-forum.com/t/jruby-yaml-load-issue-with-floats/160865 "2009-02-21T06:07:59Z")

</div>

Try this with both MRI and Jruby 1.1.6 (with active support 2.2.2) irb(main):004:0\> require ‘rubygems’ =\> true irb(main):005:0\> require ‘activesupport’ =\> true irb(main):006:0\> YAML.load(YAML.dump(3.0)).eql?(3.0) =\>…

---

## [\[Bug:1.9\] thread switch when heavy load](https://www.ruby-forum.com/t/bug-1-9-thread-switch-when-heavy-load/160938)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 4:26am UTC](https://www.ruby-forum.com/t/bug-1-9-thread-switch-when-heavy-load/160938 "2009-02-21T04:26:17Z")

</div>

e$B%^%7%s$NIi2Y$,9b$$$H$-$K!"%^%k%A%9%l%C%I%W%m%0%i%\`$N=hM}$,?Je(B e$B$^$J$$$3$H$,$"$j$^$9!#e(B e$B0J2\<$N%W%m%0%i%\`$O%Q%$%W$Ke(B 1e$BICKh$Ke(B “a” e$B$r=q$-9~$s$G!"$=$l$re(B e$BB\>$N%9%l%C%I$+$ie(B sysread e$B$GFI$=P$…

---

## [Installing FileUtils](https://www.ruby-forum.com/t/installing-fileutils/160934)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 2:44am UTC](https://www.ruby-forum.com/t/installing-fileutils/160934 "2009-02-21T02:44:35Z")

</div>

My current version of Ruby 1.8.6 (on Windows) doesn’t seem to include the FileUtils library (if I type require ‘fileutils’ in IRB I get “false”). How can I download and install this library?

---

## [Difference between {} and do/end](https://www.ruby-forum.com/t/difference-between-and-do-end/160890)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 4\
**Last updated:** [February 20, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/difference-between-and-do-end/160890 "2009-02-20T23:47:32Z")

</div>

I’m coming back to Ruby after a couple years away, and finding I’ve forgotten some of the basics. What’s the difference between { … } blocks and do … end blocks? In particular, why does one of the following work, wh…

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

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