# Ruby

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

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

---

## [Ignore](https://www.ruby-forum.com/t/ignore/195869)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/ignore/195869 "2010-10-01T15:50:47Z")

</div>

Please excuse the noise. There appears to be some issues with posting to the list. I am am sending this message to help figure out the source of the issues. Thanks.

---

## [ANNOUNCE - NHI1 / PLMK / libmsgque - Work-Package-II](https://www.ruby-forum.com/t/announce-nhi1-plmk-libmsgque-work-package-ii/195861)

<div class="topic-metadata">

**Author:** [@rantanplan](https://www.ruby-forum.com/u/rantanplan)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 1:05pm UTC](https://www.ruby-forum.com/t/announce-nhi1-plmk-libmsgque-work-package-ii/195861 "2010-10-01T13:05:42Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear User, ANNOUNCE: Work-Package-II libmsgque: Application-Server-Toolkit for C, C++, JAVA, C#, TCL, PERL, PYTHON, VB.NET PLMK: Programming-Language-Microkerne…

---

## [How to prevent overwriting methods by accident?](https://www.ruby-forum.com/t/how-to-prevent-overwriting-methods-by-accident/195825)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 12\
**Last updated:** [October 1, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/how-to-prevent-overwriting-methods-by-accident/195825 "2010-10-01T12:13:37Z")

</div>

In Ruby we can add new methods to existing classes. How can we ensure that the name of our new method does not already exists – I do not want to overwrite an existing method by accident. I think there exists a way to …

---

## [Require from jar is slow in ScriptingContainer](https://www.ruby-forum.com/t/require-from-jar-is-slow-in-scriptingcontainer/195849)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 9:26am UTC](https://www.ruby-forum.com/t/require-from-jar-is-slow-in-scriptingcontainer/195849 "2010-10-01T09:26:49Z")

</div>

The following program needs about 1.5 if I require the gem from the file sysem and 6 seconds if the gem is packaged into a jar file. require “java” puts Time.new require “input\_form” puts Time.new The execution en…

---

## [Kramdown 0.11.0 released](https://www.ruby-forum.com/t/kramdown-0-11-0-released/195851)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 8:55am UTC](https://www.ruby-forum.com/t/kramdown-0-11-0-released/195851 "2010-10-01T08:55:48Z")

</div>

About kramdown kramdown (sic, not Kramdown or KramDown, just kramdown) is a free GPL-licensed Ruby library for parsing a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some m…

---

## [Use net:smtp behind the proxy](https://www.ruby-forum.com/t/use-net-smtp-behind-the-proxy/195839)

<div class="topic-metadata">

**Author:** [@peterk](https://www.ruby-forum.com/u/peterk)\
**Replies:** 1\
**Last updated:** [October 1, 2010, 8:02am UTC](https://www.ruby-forum.com/t/use-net-smtp-behind-the-proxy/195839 "2010-10-01T08:02:32Z")

</div>

I would like to use net:smtp to send email through smtp.gmail.com. The problem is that I am behind a proxy, so I need to tell the smtp module that it should use the proxy (otherwise it wonâ€™t be able to resolve smtp.…

---

## [Enhancing Numeric#step](https://www.ruby-forum.com/t/enhancing-numeric-step/194655)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 25\
**Last updated:** [October 1, 2010, 6:31am UTC](https://www.ruby-forum.com/t/enhancing-numeric-step/194655 "2010-10-01T06:31:51Z")

</div>

ã€€Numeric#step ã®ä»•æ§˜ã®æ‹¡å¼µã‚’ææ¡ˆã—ã¾ã™ã€‚ ã€€ç¾åœ¨ã€ Numeric#step ã¯ limit ã‚’å¿…é ˆå¼•æ•°ã¨ã—ã¦ã„ã‚‹ãŸã‚ã€æ‰‹è»½ã« ç„¡é™æ•°åˆ—ã‚’ç”Ÿæˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã›ã‚“ã€‚Float::INFINITY ãªã„ã…

---

## [Syntax error](https://www.ruby-forum.com/t/syntax-error/195845)

<div class="topic-metadata">

**Author:** [@anthonyob](https://www.ruby-forum.com/u/anthonyob)\
**Replies:** 16\
**Last updated:** [October 1, 2010, 5:30am UTC](https://www.ruby-forum.com/t/syntax-error/195845 "2010-10-01T05:30:55Z")

</div>

ERROR Test6.rb:4 syntax error, unexpected tSYMBEG, expecting kDO or ‘\<’ or ‘\<’ e.times do+y:x| test6.rb:5: syntax error, unexpected tSTRING\_BEG, expecting kDO or ‘\<’ or ‘\<’ puts “Looping #{y}” test6.rb:7: syntax er…

---

## [Convert ellipsis to utf-8](https://www.ruby-forum.com/t/convert-ellipsis-to-utf-8/195842)

<div class="topic-metadata">

**Author:** [@Rahul\_Thathoo](https://www.ruby-forum.com/u/Rahul_Thathoo)\
**Replies:** 1\
**Last updated:** [October 1, 2010, 3:17am UTC](https://www.ruby-forum.com/t/convert-ellipsis-to-utf-8/195842 "2010-10-01T03:17:00Z")

</div>

Hi, I have a string consisting of 3 periods: “…”. I want to convert it into a single utf-8 character I tried Iconv.iconv(‘utf-8’, ‘iso-8859-1’, ‘…’) but that didnt work… any clues?

---

## [Re: Metadata 0.2](https://www.ruby-forum.com/t/re-metadata-0-2/114702)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 4\
**Last updated:** [October 1, 2010, 1:47am UTC](https://www.ruby-forum.com/t/re-metadata-0-2/114702 "2010-10-01T01:47:28Z")

</div>

On 9/13/07, Konrad M. removed\_email\_address@domain.invalid wrote: Any chance this could be expanded to add FLAC and OGG support? Thanks! Konrad M. removed\_email\_address@domain.invalid http://konrad.sobertillnoon.com/ …

---

## [Module MyMod::MyOtherMod question](https://www.ruby-forum.com/t/module-mymod-myothermod-question/195817)

<div class="topic-metadata">

**Author:** [@mydarkpassenger](https://www.ruby-forum.com/u/mydarkpassenger)\
**Replies:** 3\
**Last updated:** [October 1, 2010, 12:27am UTC](https://www.ruby-forum.com/t/module-mymod-myothermod-question/195817 "2010-10-01T00:27:18Z")

</div>

Can someone please explain what the difference is? A assumed these were synonymous, but they are not: module A module B … end end Not equivalent to?: module A::B … end Thanks alot.

---

## [Ruby-1.9.2-p0 fails to to build](https://www.ruby-forum.com/t/ruby-1-9-2-p0-fails-to-to-build/195785)

<div class="topic-metadata">

**Author:** [@vwyodapink](https://www.ruby-forum.com/u/vwyodapink)\
**Replies:** 7\
**Last updated:** [September 30, 2010, 11:04pm UTC](https://www.ruby-forum.com/t/ruby-1-9-2-p0-fails-to-to-build/195785 "2010-09-30T23:04:48Z")

</div>

I am trying to get ruby set up on a gumstix overo running angstrom linux with a gnome desktop. I keep getting an error during make that I am sure is a basic beginner issue that I seem to not be able to sort out. It al…

---

## [Ruby Groups/Meetings](https://www.ruby-forum.com/t/ruby-groups-meetings/195808)

<div class="topic-metadata">

**Author:** [@Lauren\_Quinn](https://www.ruby-forum.com/u/Lauren_Quinn)\
**Replies:** 6\
**Last updated:** [September 30, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/ruby-groups-meetings/195808 "2010-09-30T21:17:41Z")

</div>

Any ruby groups out there for membership?

---

## [Rvm install problems on Ubuntu 10.04](https://www.ruby-forum.com/t/rvm-install-problems-on-ubuntu-10-04/195819)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 0\
**Last updated:** [September 30, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/rvm-install-problems-on-ubuntu-10-04/195819 "2010-09-30T18:18:27Z")

</div>

Trying to get Ruby v1.9.2 running on Ubuntu v10.04. Other users suggested trying rvm. When I follow these instructions for the install and then run “rvm install 1.9.2-head”, I see no output from the command. Instea…

---

## [GetoptLong usage](https://www.ruby-forum.com/t/getoptlong-usage/195812)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [September 30, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/getoptlong-usage/195812 "2010-09-30T17:30:35Z")

</div>

Hi, I’m using Example: Learn How to Blog and Build Websites for Profit! as a guide to GetoptLong usage. I get the message: uninitialized constant GetoptLong::OptionalArgument (NameError) for line 10 of the program l…

---

## [Call jruby from ant](https://www.ruby-forum.com/t/call-jruby-from-ant/195803)

<div class="topic-metadata">

**Author:** [@Nikos\_Maris](https://www.ruby-forum.com/u/Nikos_Maris)\
**Replies:** 1\
**Last updated:** [September 30, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/call-jruby-from-ant/195803 "2010-09-30T17:10:41Z")

</div>

I was asked to call buildr from ant (eclipse) and generally make some things work out-of-the-box, so that others that will use my buildfile, won’t need to move jar files around or configure anything. I would like jr…

---

## [JRuby 1.5.2 and Glassfish gem don't play well together](https://www.ruby-forum.com/t/jruby-1-5-2-and-glassfish-gem-dont-play-well-together/194840)

<div class="topic-metadata">

**Author:** [@pardeeb](https://www.ruby-forum.com/u/pardeeb)\
**Replies:** 5\
**Last updated:** [September 30, 2010, 5:03pm UTC](https://www.ruby-forum.com/t/jruby-1-5-2-and-glassfish-gem-dont-play-well-together/194840 "2010-09-30T17:03:39Z")

</div>

I upgraded from 1.5.1 to 1.5.2 and started getting the following exception randomly during xml posts: Sep 11, 2010 3:41:29 PM sun.reflect.GeneratedMethodAccessor11 invoke INFO: /!\\ FAILSAFE /!\\ 2010-09-11T19:41:29+0…

---

## [Can't upgrade ruby on Snow Leopard](https://www.ruby-forum.com/t/cant-upgrade-ruby-on-snow-leopard/195781)

<div class="topic-metadata">

**Author:** [@ast](https://www.ruby-forum.com/u/ast)\
**Replies:** 12\
**Last updated:** [September 30, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/cant-upgrade-ruby-on-snow-leopard/195781 "2010-09-30T16:05:42Z")

</div>

I’ve followed the instructions here: …and everything seems to go ok. I do ruby -v and I’m told I have 1.9.2, but after restarting the machine it goes back to 1.8.7 :-/ Am I doing something wrong? Should I just use m…

---

## [Rspec question](https://www.ruby-forum.com/t/rspec-question/195805)

<div class="topic-metadata">

**Author:** [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Replies:** 1\
**Last updated:** [September 30, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/rspec-question/195805 "2010-09-30T15:50:28Z")

</div>

I’m trying to get output like this: thing I’m describing should be true when context 1 when context 2 when context 3 should be false when context 4 This seems a little inside-out, but it also seems to be the best…

---

## [Calling a method in the context of a specific thread](https://www.ruby-forum.com/t/calling-a-method-in-the-context-of-a-specific-thread/195725)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 3\
**Last updated:** [September 30, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/calling-a-method-in-the-context-of-a-specific-thread/195725 "2010-09-30T15:17:05Z")

</div>

Background: I am writing an FXRuby program. My question should be independent of FXRuby, though. FXRuby is a GUI for Ruby. If I understand some of the comments made here (and I probably don’t) \[see subject: interpr…

---

## [\[Ruby 1.9-Bug#3892\]\[Open\] ObjectSpace.count\_tdata\_objects $B$N(B rdoc $B$,(B ObjectSpace.count\_n](https://www.ruby-forum.com/t/ruby-1-9-bug-3892-open-objectspace-count-tdata-objects-b-n-b-rdoc-b-b-objectspace-count-n/195792)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [September 30, 2010, 9:55am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3892-open-objectspace-count-tdata-objects-b-n-b-rdoc-b-b-objectspace-count-n/195792 "2010-09-30T09:55:40Z")

</div>

Bug #3892: ObjectSpace.count\_tdata\_objects e$B$Ne(B rdoc e$B$,e(B ObjectSpace.count\_nodes e$B$HF1$8e(B http://redmine.ruby-lang.org/issues/show/3892 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal …

---

## [Mcbean 0.4.0 Released](https://www.ruby-forum.com/t/mcbean-0-4-0-released/195790)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [September 30, 2010, 8:53am UTC](https://www.ruby-forum.com/t/mcbean-0-4-0-released/195790 "2010-09-30T08:53:03Z")

</div>

mcbean version 0.4.0 has been released! GitHub - flavorjones/mcbean: McBean converts HTML into Markdown or Textile (and vice-versa). http://mcbean.heroku.com/doc/index.html (rdocs) http://mcbean.heroku.com (live demo…

---

## [Syntax error: a = b = p h\[:foo\]](https://www.ruby-forum.com/t/syntax-error-a-b-p-h-foo/195756)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 4\
**Last updated:** [September 30, 2010, 8:32am UTC](https://www.ruby-forum.com/t/syntax-error-a-b-p-h-foo/195756 "2010-09-30T08:32:34Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!e(Bruby-list e$B$+$I$&$+LB$C$?$s$G$9$,!"$3$A$i$K!#e(B h = {}; a = p h\[:foo\] e$B$ODL$k$N$G$9$,!"e(B h = {}; a = b = p h\[:foo\] e$B$,!"e(B ruby 1.9.3dev (2010-09-27 trunk 29350) \[i386-mswin32…

---

## [Space Ship Operator \<=\> Odd Behaviour](https://www.ruby-forum.com/t/space-ship-operator-odd-behaviour/195685)

<div class="topic-metadata">

**Author:** [@nallan](https://www.ruby-forum.com/u/nallan)\
**Replies:** 3\
**Last updated:** [September 30, 2010, 8:31am UTC](https://www.ruby-forum.com/t/space-ship-operator-odd-behaviour/195685 "2010-09-30T08:31:59Z")

</div>

I have come across a strange occurance when I use the space ship operator to compare percentages. I want to compare percentages to see if they are greater than, less than or equal to 85%, this mostly works fine - all …

---

## [New At WATIR](https://www.ruby-forum.com/t/new-at-watir/195771)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 1\
**Last updated:** [September 30, 2010, 3:42am UTC](https://www.ruby-forum.com/t/new-at-watir/195771 "2010-09-30T03:42:19Z")

</div>

Hi, I am new at both ruby and WATIR and have ran into a problem when trying to launch the browser. My input into the cmd is as follows… require ‘watir’ ie = Watir::IE.new After that a bunch of text is then put into …

---

## [Ruby Work](https://www.ruby-forum.com/t/ruby-work/195702)

<div class="topic-metadata">

**Author:** [@darkxd](https://www.ruby-forum.com/u/darkxd)\
**Replies:** 11\
**Last updated:** [September 30, 2010, 1:55am UTC](https://www.ruby-forum.com/t/ruby-work/195702 "2010-09-30T01:55:36Z")

</div>

Hi. I’m doing a research on coding languages, and I was assigned with Ruby, and I was hoping you could get me some information. Anything helps. What I need is as follows: \*Ruby’s main uses as a code language. \*Tools…

---

## [Module design acceptable practices questions](https://www.ruby-forum.com/t/module-design-acceptable-practices-questions/195766)

<div class="topic-metadata">

**Author:** [@mydarkpassenger](https://www.ruby-forum.com/u/mydarkpassenger)\
**Replies:** 1\
**Last updated:** [September 29, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/module-design-acceptable-practices-questions/195766 "2010-09-29T22:37:50Z")

</div>

Module design acceptable practices questions… Is it “accepted” practice to prohibit a particular module from being extended or included? Or should a module, “normally” be able to be included and extended? Is it a…

---

## [Accessing variables of instances in an array?](https://www.ruby-forum.com/t/accessing-variables-of-instances-in-an-array/195769)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 3\
**Last updated:** [September 29, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/accessing-variables-of-instances-in-an-array/195769 "2010-09-29T22:20:17Z")

</div>

Hi. I want to have an array of instances… listb = \[instance1, instance2, instance3\] I am able to print out the instance… def printout(an\_array) an\_array.each {|item| p item } end printout(listb) How can I print ou…

---

## [ActiveRecord Mixing Conditions + Better Way to Write This](https://www.ruby-forum.com/t/activerecord-mixing-conditions-better-way-to-write-this/195739)

<div class="topic-metadata">

**Author:** [@kingston](https://www.ruby-forum.com/u/kingston)\
**Replies:** 2\
**Last updated:** [September 29, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/activerecord-mixing-conditions-better-way-to-write-this/195739 "2010-09-29T21:13:04Z")

</div>

Is There A better Way to Write this I have A Condition which previous Look Very clean and easy to understand like Account.first.websites.last.users.find(:all,:conditions =\> {:country =\> “XYZ”,:status =\> “Single”,:adm…

---

## [\[ANN\] "Using JRuby" book in beta now!](https://www.ruby-forum.com/t/ann-using-jruby-book-in-beta-now/188241)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 4\
**Last updated:** [September 29, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/ann-using-jruby-book-in-beta-now/188241 "2010-09-29T20:38:24Z")

</div>

I’m incredibly excited to announce that the new JRuby book, “Using JRuby”, is available in beta form from Pragmatic Programmers! After years of hacking and writing, we’ve managed to finally get an official JRuby boo…

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

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