# Ruby

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

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

---

## [Constructors](https://www.ruby-forum.com/t/constructors/152409)

<div class="topic-metadata">

**Author:** [@exiquio](https://www.ruby-forum.com/u/exiquio)\
**Replies:** 5\
**Last updated:** [November 4, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/constructors/152409 "2008-11-04T13:56:20Z")

</div>

The following is the beginning of a Java-esque new operator. def new o o.class == Class ? o.new : o end Used with the String class you can do: new String # =\> “” new String(‘foo’) # =\> “foo” But this is not the ca…

---

## [How to get some gem source code?](https://www.ruby-forum.com/t/how-to-get-some-gem-source-code/152472)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/how-to-get-some-gem-source-code/152472 "2008-11-04T12:50:34Z")

</div>

I gem install someone so can use the someone, but how I read the someone source code?

---

## [How to send mail with High priority](https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453)

<div class="topic-metadata">

**Author:** [@sandy](https://www.ruby-forum.com/u/sandy)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 9:39am UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453 "2008-11-04T09:39:13Z")

</div>

Hi all I try to send mail by net::smtp. it works fine. But I don't know how to send high priority mails. who can help me for this ? thanks sandy

---

## [Checking emails with ruby](https://www.ruby-forum.com/t/checking-emails-with-ruby/152462)

<div class="topic-metadata">

**Author:** [@erika](https://www.ruby-forum.com/u/erika)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 9:11am UTC](https://www.ruby-forum.com/t/checking-emails-with-ruby/152462 "2008-11-04T09:11:44Z")

</div>

Hi, Is there a possibility in ruby or with a ruby extension for checking emails? I’m thinking something like the following: ruby accesses a site and after a button is pressed an email is send to an address ruby ope…

---

## [General Solution to spawning a Unix process whose arguments cannot be seen by other processes](https://www.ruby-forum.com/t/general-solution-to-spawning-a-unix-process-whose-arguments-cannot-be-seen-by-other-processes/152448)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 7:45am UTC](https://www.ruby-forum.com/t/general-solution-to-spawning-a-unix-process-whose-arguments-cannot-be-seen-by-other-processes/152448 "2008-11-04T07:45:42Z")

</div>

I know root can get into anything and hack out this information, but given the presumption that nobody could get root on my system: How would I generally spawn processes to the shell whose arguments would not be ea…

---

## [Yaml parsing error](https://www.ruby-forum.com/t/yaml-parsing-error/152457)

<div class="topic-metadata">

**Author:** [@Joseph\_A](https://www.ruby-forum.com/u/Joseph_A)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 5:48am UTC](https://www.ruby-forum.com/t/yaml-parsing-error/152457 "2008-11-04T05:48:13Z")

</div>

I’m trying to use the sms-fu plugin which generates a big yaml file with cell carrier domains. It doesn’t seem to get parsed by JRuby correctly. Anyone seen this? It also makes NetBeans unable to handle the file. JR…

---

## [ANN: Sequel 2.7.0 Released](https://www.ruby-forum.com/t/ann-sequel-2-7-0-released/152452)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 3:31am UTC](https://www.ruby-forum.com/t/ann-sequel-2-7-0-released/152452 "2008-11-04T03:31:21Z")

</div>

Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but comprehensive ORM layer for mapping records to Ruby objec…

---

## [Performance enhancements](https://www.ruby-forum.com/t/performance-enhancements/152451)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 3:18am UTC](https://www.ruby-forum.com/t/performance-enhancements/152451 "2008-11-04T03:18:32Z")

</div>

Hello, For running a rails app, has anyone done any benchmarks on using -server and ThreadPooling? Are these 2 still recommended settings to turn on in production for performance improvements ? Adam

---

## [Different flavors of a gem for different versions of Ruby](https://www.ruby-forum.com/t/different-flavors-of-a-gem-for-different-versions-of-ruby/152323)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 2:55am UTC](https://www.ruby-forum.com/t/different-flavors-of-a-gem-for-different-versions-of-ruby/152323 "2008-11-04T02:55:08Z")

</div>

I’m updating my SqlStatement gem http://sqlstatement.rubyforge.org/ to be compatible with Ruby 1.9, and owing to totally different ways of doing s- expressions in Ruby 1.8 (which required RubyNode) and 1.9 (which can …

---

## [How to set up Epson FX 2175 printer](https://www.ruby-forum.com/t/how-to-set-up-epson-fx-2175-printer/152110)

<div class="topic-metadata">

**Author:** [@dureza](https://www.ruby-forum.com/u/dureza)\
**Replies:** 3\
**Last updated:** [November 4, 2008, 1:39am UTC](https://www.ruby-forum.com/t/how-to-set-up-epson-fx-2175-printer/152110 "2008-11-04T01:39:03Z")

</div>

Hi all… Good day!!! I have problem on how to install my Epson FX 2175 printer since the said model was not in printer configuration box… is there other way on how to install it on my fedora core 6…??? Please help!!! …

---

## [Ruby1.8.6 File.utime question](https://www.ruby-forum.com/t/ruby1-8-6-file-utime-question/152407)

<div class="topic-metadata">

**Author:** [@zswu](https://www.ruby-forum.com/u/zswu)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 12:48am UTC](https://www.ruby-forum.com/t/ruby1-8-6-file-utime-question/152407 "2008-11-04T00:48:17Z")

</div>

Hi, Because of my poor English, I beg there would be some kind guy could understand me … :slight\_smile: I’m facing a strange problem. Please check code bleow: time = Time.local( 2008, ‘oct’, 30, 11, 25, 37 ) # Thu…

---

## [Code Review: pdcbugs-1](https://www.ruby-forum.com/t/code-review-pdcbugs-1/152441)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 12:26am UTC](https://www.ruby-forum.com/t/code-review-pdcbugs-1/152441 "2008-11-04T00:26:04Z")

</div>

tfpt review “/shelveset:pdcbugs-1;REDMOND\\jflam” Comment : Fixed bug in Enumerable#find, adds a simple implementation of Method#to\_proc, EADDRINUSE exception, and FileTest#exist\[s\]?

---

## [\[ANN\] JRuby 1.1.5 Released](https://www.ruby-forum.com/t/ann-jruby-1-1-5-released/152433)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 5\
**Last updated:** [November 4, 2008, 12:21am UTC](https://www.ruby-forum.com/t/ann-jruby-1-1-5-released/152433 "2008-11-04T00:21:58Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.5! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.5 is the fifth point release of JRuby 1.1. The fixes in this …

---

## [Text Based RPG in Ruby](https://www.ruby-forum.com/t/text-based-rpg-in-ruby/152306)

<div class="topic-metadata">

**Author:** [@roo82](https://www.ruby-forum.com/u/roo82)\
**Replies:** 11\
**Last updated:** [November 3, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/text-based-rpg-in-ruby/152306 "2008-11-03T21:37:28Z")

</div>

Hi all, I’m currently coding a text-based RPG in Ruby which is great fun but I’m having some difficulty in structuring it. So far I have a main.rb file containing a class for the basic enemy and then an extension for…

---

## [Clean way of pausing a loop?](https://www.ruby-forum.com/t/clean-way-of-pausing-a-loop/152406)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 5\
**Last updated:** [November 3, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/clean-way-of-pausing-a-loop/152406 "2008-11-03T21:09:38Z")

</div>

It’s Monday and it’s relatively early, so I apologize if this isn’t worded too well. Is there a clean way of pausing a loop/printing status every N iterations? I often use ruby to examine log files in a one-off fash…

---

## [Undefined method '\[\]' I dont know why](https://www.ruby-forum.com/t/undefined-method-i-dont-know-why/152421)

<div class="topic-metadata">

**Author:** [@sobcios](https://www.ruby-forum.com/u/sobcios)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/undefined-method-i-dont-know-why/152421 "2008-11-03T21:00:22Z")

</div>

Hello , I have problem with my script. /////////////this function return true or false def moznazbudowac?(co,sesja,stan) budynek = “” catch(:redo) do case co when 1 budynek = “Kopalnia metalu” when 2 budynek = “…

---

## [Webistrano 1.4 released](https://www.ruby-forum.com/t/webistrano-1-4-released/152426)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/webistrano-1-4-released/152426 "2008-11-03T20:33:44Z")

</div>

Hi, I just released Webistrano 1.4 at http://labs.peritor.com/webistrano Webistrano is a tool for managing Capistrano deployments and offers a rich web UI. It lets you manage projects with their stages and keep trac…

---

## [Parallel::ForkManager 1.0.0 released](https://www.ruby-forum.com/t/parallel-forkmanager-1-0-0-released/152420)

<div class="topic-metadata">

**Author:** [@nvp](https://www.ruby-forum.com/u/nvp)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/parallel-forkmanager-1-0-0-released/152420 "2008-11-03T19:52:34Z")

</div>

Parallel::ForkManager 1.0.0 has been released! DESCRIPTION: Parallel::ForkManager is a simple parallel processing fork manager. It is a Ruby port of a useful Perl module of the same name. Parallel::ForkManager 1.0.0 …

---

## [How to proper list files in ftp](https://www.ruby-forum.com/t/how-to-proper-list-files-in-ftp/152417)

<div class="topic-metadata">

**Author:** [@dmjb](https://www.ruby-forum.com/u/dmjb)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-proper-list-files-in-ftp/152417 "2008-11-03T19:24:32Z")

</div>

Hi, I need to list all files in a ftp server, with the size and full path. I tried Net::FTP, but it only gives lines which needs to be decode to get the size, to know if it is a directory, etc. And it looks like the …

---

## [Ruby Threads in Windows](https://www.ruby-forum.com/t/ruby-threads-in-windows/152411)

<div class="topic-metadata">

**Author:** [@asno](https://www.ruby-forum.com/u/asno)\
**Replies:** 6\
**Last updated:** [November 3, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/ruby-threads-in-windows/152411 "2008-11-03T18:28:40Z")

</div>

Hi all. And thankyou in advance to anyone who responds. I am quite new to Ruby and am working on Windows. I need to spawn new threads in ruby on windows which I can do fine, and I can see them in the windows process …

---

## [Help with iterating nested arrays](https://www.ruby-forum.com/t/help-with-iterating-nested-arrays/152400)

<div class="topic-metadata">

**Author:** [@mitkok](https://www.ruby-forum.com/u/mitkok)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/help-with-iterating-nested-arrays/152400 "2008-11-03T17:11:48Z")

</div>

Hello, guys. I’m learning now Ruby and Shoes. I’m using this code to get username and it’s status from twitter: @name = \[\] @status = \[\] def timeline Twitter::Base.new(‘username’,‘password’).timeline.each do |s| @na…

---

## [Constructors](https://www.ruby-forum.com/t/constructors/196835)

<div class="topic-metadata">

**Author:** [@exiquio](https://www.ruby-forum.com/u/exiquio)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/constructors/196835 "2008-11-03T17:05:34Z")

</div>

The following is the beginning of a Java-esque new operator. def new o o.class == Class ? o.new : o end Used with the String class you can do: new String # =\> “” new String(‘foo’) # =\> “foo” But this is not the ca…

---

## [Ruby 1.9.1 - Array.new.choice missing?](https://www.ruby-forum.com/t/ruby-1-9-1-array-new-choice-missing/152402)

<div class="topic-metadata">

**Author:** [@bor\_S](https://www.ruby-forum.com/u/bor_S)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-array-new-choice-missing/152402 "2008-11-03T16:36:07Z")

</div>

Just wondering if I missed something. Ruby 1.9.1 doesn’t seem to have .choice anymore as a way to select a random element from an array. Has this been replaced by another functionname, or should I just use rand(Array.…

---

## [Feature of recursive Array#join](https://www.ruby-forum.com/t/feature-of-recursive-array-join/152355)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/feature-of-recursive-array-join/152355 "2008-11-03T15:40:52Z")

</div>

Yuguie$B$G$9!#e(B e$B\<+8J:F5"$9$kG\[Ns$KBP$9$ke(Bjoine$B$N7k2L$,e(B1.8e$B$He(B1.9e$B$G0\[$J$j$^$9$,!"$3$l$O;EMM$Ge(B e$B$7$g$&$+!#$^$?!“e(B1.8e$B$K$7$F$b7+$jJV$7$NMM;R$,e(Binspecte$B$H$O0\[$J$j$^$9$,!”$3$le(B e$B$O;EMM$G…

---

## [Recursion and variable scope level](https://www.ruby-forum.com/t/recursion-and-variable-scope-level/152375)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [November 3, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/recursion-and-variable-scope-level/152375 "2008-11-03T15:11:39Z")

</div>

Hi i want to reverse a string and at the same time check if there are any spaces using recursion. I can get the string to reverse fine but cant detect when theres a space heres my code def reverse\_string a\_string, an…

---

## [Problem with YAML not returning exactly the same](https://www.ruby-forum.com/t/problem-with-yaml-not-returning-exactly-the-same/152377)

<div class="topic-metadata">

**Author:** [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/problem-with-yaml-not-returning-exactly-the-same/152377 "2008-11-03T15:02:46Z")

</div>

Hey, I have some data that I output with YAML and read back in. I use these for hashing. So It would be necessary that the read value is exactly the same as the outputted value. But this is sometimes not the case. Th…

---

## [RubyMacros 0.1.0 Released](https://www.ruby-forum.com/t/rubymacros-0-1-0-released/151734)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 14\
**Last updated:** [November 3, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/rubymacros-0-1-0-released/151734 "2008-11-03T15:02:07Z")

</div>

RubyMacros is a lisp-like macro pre-processor for Ruby. More than just a purely textual substitution scheme, RubyMacros can manipulate and morph Ruby parse trees (in the form of RedParse Nodes) at parse time in just a…

---

## [Gem update results in multiple versions](https://www.ruby-forum.com/t/gem-update-results-in-multiple-versions/152353)

<div class="topic-metadata">

**Author:** [@davetron5000](https://www.ruby-forum.com/u/davetron5000)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/gem-update-results-in-multiple-versions/152353 "2008-11-03T15:00:56Z")

</div>

Working on some code I wish to distribute via gem. When I up the version and do a gem update my-code, gem reports that both the previous version and the new version are installed. This doesn’t seem to occur with any…

---

## [Check if valid hexadecimal code?](https://www.ruby-forum.com/t/check-if-valid-hexadecimal-code/152345)

<div class="topic-metadata">

**Author:** [@marikoc](https://www.ruby-forum.com/u/marikoc)\
**Replies:** 5\
**Last updated:** [November 3, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/check-if-valid-hexadecimal-code/152345 "2008-11-03T14:44:31Z")

</div>

How would you check if a string is a valid hexadecimal code?

---

## [Ruby Q's](https://www.ruby-forum.com/t/ruby-qs/140504)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 8\
**Last updated:** [November 3, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/ruby-qs/140504 "2008-11-03T13:49:17Z")

</div>

Hi I’ve been doing rails for a while, which was really my first introduction to ruby. I’ve found my self using ruby more and more and keep amazing my self about how cool it is, although I’ve got a few questions, or ra…

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

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