# Ruby

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

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

---

## [\[working directory to be changed (in terminal) by the Ruby \]](https://www.ruby-forum.com/t/working-directory-to-be-changed-in-terminal-by-the-ruby/149680)

<div class="topic-metadata">

**Author:** [@maxdunn](https://www.ruby-forum.com/u/maxdunn)\
**Replies:** 9\
**Last updated:** [September 29, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/working-directory-to-be-changed-in-terminal-by-the-ruby/149680 "2008-09-29T22:01:22Z")

</div>

I have a little problem… I created a script. At some point I should change from whatever directory I’m currently in (in Terminal) to a certain directory from the ruby script. So far I find other solutions that do not…

---

## [One-Liners Mashup (#177 again)](https://www.ruby-forum.com/t/one-liners-mashup-177-again/149079)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 45\
**Last updated:** [September 29, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/one-liners-mashup-177-again/149079 "2008-09-29T21:41:22Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: This week only – no waiting period! Support Ruby Q. 2 by submitting ideas as often as you can! (A permanent, new…

---

## [Net::openssh - how to get process exit status?](https://www.ruby-forum.com/t/net-openssh-how-to-get-process-exit-status/149626)

<div class="topic-metadata">

**Author:** [@wonko](https://www.ruby-forum.com/u/wonko)\
**Replies:** 1\
**Last updated:** [September 29, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/net-openssh-how-to-get-process-exit-status/149626 "2008-09-29T19:16:10Z")

</div>

Hi, I am using net-ssh 2.0.1. I have not been able to figure out how to get the exit value from a remotely executed process. In the only examples I could find, only the stdout was returned, like this one: Net::SSH.st…

---

## [Rake dependencies unknown prior to running tasks](https://www.ruby-forum.com/t/rake-dependencies-unknown-prior-to-running-tasks/149414)

<div class="topic-metadata">

**Author:** [@Joe\_WSSSSlfel](https://www.ruby-forum.com/u/Joe_WSSSSlfel)\
**Replies:** 12\
**Last updated:** [September 29, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/rake-dependencies-unknown-prior-to-running-tasks/149414 "2008-09-29T18:22:13Z")

</div>

Say I don’t know what all the dependencies are until I’ve already begun executing tasks? To what extent can I add new tasks and dependencies on the fly? At first I thought that adding tasks during task execution di…

---

## [Re: Backtrace supported?](https://www.ruby-forum.com/t/re-backtrace-supported/149727)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/re-backtrace-supported/149727 "2008-09-29T18:14:35Z")

</div>

Yeah, they are a work in progress. Backtrace is probably hard to spec because it may differ implementation to implementation. JD

---

## [\[JOB\] Softwareentwickler/-in, prometheus-Bilda rchiv, UniversitÃ¤t zu KÃ¶ln](https://www.ruby-forum.com/t/job-softwareentwickler-in-prometheus-bilda-rchiv-universita-t-zu-ka-ln/149065)

<div class="topic-metadata">

**Author:** [@jwille](https://www.ruby-forum.com/u/jwille)\
**Replies:** 8\
**Last updated:** [September 29, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/job-softwareentwickler-in-prometheus-bilda-rchiv-universita-t-zu-ka-ln/149065 "2008-09-29T16:48:40Z")

</div>

Hi folks! We, the prometheus image archive at the University of Cologne (Germany), would like you to take note of the following job announcement for a full-time software developer position in Cologne, Germany. In add…

---

## [A shout out to Michael Letterle (or, zliby saves the day)](https://www.ruby-forum.com/t/a-shout-out-to-michael-letterle-or-zliby-saves-the-day/149769)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/a-shout-out-to-michael-letterle-or-zliby-saves-the-day/149769 "2008-09-29T16:41:36Z")

</div>

Hi all, For those of you who build Ruby on Windows manually, but suffered from the inability to use rubygems because you couldn’t get zlib to build properly, never fear! Zliby 0.5 is here! For reasons that are too p…

---

## [Future ruby books?](https://www.ruby-forum.com/t/future-ruby-books/149751)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/future-ruby-books/149751 "2008-09-29T15:42:05Z")

</div>

Could you guys give me a list of books that should come out soon ? Ruby related, of course . I’m not interested in Rails . Thanks

---

## [How to get a string using InputDialog with FxRuby](https://www.ruby-forum.com/t/how-to-get-a-string-using-inputdialog-with-fxruby/149526)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 9\
**Last updated:** [September 29, 2008, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-get-a-string-using-inputdialog-with-fxruby/149526 "2008-09-29T15:04:54Z")

</div>

Hi all, Does anyone know how to get user input using InputDialog with FxRuby? Thanks, Li

---

## [\[ALERT\] miniunit is preventing Ruby 1.9.0-5 from released](https://www.ruby-forum.com/t/alert-miniunit-is-preventing-ruby-1-9-0-5-from-released/149753)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/alert-miniunit-is-preventing-ruby-1-9-0-5-from-released/149753 "2008-09-29T12:29:39Z")

</div>

Hi, Ryan. I wrote the status of Ruby 1.9.0-5 at \[ruby-core:18986\]. And miniunit has little, but obvious problems. The problems cause some tests to fail, so I can’t release 1.9.0-5. Ryan, please fix them as soon as po…

---

## [Variable name to string](https://www.ruby-forum.com/t/variable-name-to-string/149673)

<div class="topic-metadata">

**Author:** [@reuben\_doetsch](https://www.ruby-forum.com/u/reuben_doetsch)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 10:24am UTC](https://www.ruby-forum.com/t/variable-name-to-string/149673 "2008-09-29T10:24:21Z")

</div>

I would like to get the name of the variable in string form, any way this is possible? var = 5 puts var.foo #Want this ti put var i looked into trying to do var.object\_id.id2name but some reason this gave me nil,…

---

## [Meet Your Dream Partner](https://www.ruby-forum.com/t/meet-your-dream-partner/196816)

<div class="topic-metadata">

**Author:** [@ANdrain](https://www.ruby-forum.com/u/ANdrain)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 9:31am UTC](https://www.ruby-forum.com/t/meet-your-dream-partner/196816 "2008-09-29T09:31:38Z")

</div>

Hi, I found a cool free dating site while surfing the web: Singles Mansion I thought it might be interesting to you. Visit for free registration: http://singlesmansion.com/signup.php. Good Luck! Chris

---

## [Multiline regexp and newlines](https://www.ruby-forum.com/t/multiline-regexp-and-newlines/149724)

<div class="topic-metadata">

**Author:** [@kusako](https://www.ruby-forum.com/u/kusako)\
**Replies:** 2\
**Last updated:** [September 29, 2008, 9:08am UTC](https://www.ruby-forum.com/t/multiline-regexp-and-newlines/149724 "2008-09-29T09:08:11Z")

</div>

Hello Community, Im trying to reject any newline in a string using regexp. The string must not be empty. Yes, this can be done without regexp. So my Regexp is like: “Match any character from the begin to the end of …

---

## [Problem start Skynet](https://www.ruby-forum.com/t/problem-start-skynet/149738)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 7:16am UTC](https://www.ruby-forum.com/t/problem-start-skynet/149738 "2008-09-29T07:16:53Z")

</div>

I\`m (trying) to use Skynet, I having problems running ‘skynet start’, appear follow message: F:\\RBC\_SIS\_3\>skynet start c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/dependenci es.rb:278:in loa…

---

## [.getc.chr doesn't work](https://www.ruby-forum.com/t/getc-chr-doesnt-work/149726)

<div class="topic-metadata">

**Author:** [@Procek](https://www.ruby-forum.com/u/Procek)\
**Replies:** 2\
**Last updated:** [September 29, 2008, 6:56am UTC](https://www.ruby-forum.com/t/getc-chr-doesnt-work/149726 "2008-09-29T06:56:13Z")

</div>

Hi! I’m trying to read a file using ruby. Firsty I use readline twice, then I wan’t to read some part of data, but I don’t get where I have a mistake. Could you help me find it? ######## CUT HERE ######## #Constans …

---

## [Icanhasaudio 0.1.2 Released](https://www.ruby-forum.com/t/icanhasaudio-0-1-2-released/149734)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 6:40am UTC](https://www.ruby-forum.com/t/icanhasaudio-0-1-2-released/149734 "2008-09-29T06:40:25Z")

</div>

icanhasaudio version 0.1.2 has been released! http://icanhasaudio.com/ http://github.com/tenderlove/icanhasaudio/tree/master http://seattlerb.rubyforge.org/ Hai! icanhasaudio? is an interface to lame for decoding ur M…

---

## [Irb: 1 & 1 =\> 1, not true huh? I thought 1 & 1 =\> true](https://www.ruby-forum.com/t/irb-1-1-1-not-true-huh-i-thought-1-1-true/149719)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 5:43am UTC](https://www.ruby-forum.com/t/irb-1-1-1-not-true-huh-i-thought-1-1-true/149719 "2008-09-29T05:43:05Z")

</div>

In irb I did: puts 1 & 1 and get 1 shouldn’t I get true? Bottom line is this: What is Ruby idiom to test for bit mask? Is there a more simple way to write: if session\[:permissions\] & Permissions::SomeMask == Perm…

---

## [Mkmf can't find lib then gives target pattern contains no %](https://www.ruby-forum.com/t/mkmf-cant-find-lib-then-gives-target-pattern-contains-no/149548)

<div class="topic-metadata">

**Author:** [@genericguy](https://www.ruby-forum.com/u/genericguy)\
**Replies:** 10\
**Last updated:** [September 29, 2008, 5:38am UTC](https://www.ruby-forum.com/t/mkmf-cant-find-lib-then-gives-target-pattern-contains-no/149548 "2008-09-29T05:38:24Z")

</div>

Hello, I am trying to build a STAF extension for ruby (not made by me). It comes with a very simple extconf.rb file: require ‘mkmf’ dir\_config(‘staf’) have\_library(‘STAF’, ‘STAFRegister’) create\_makefile(“STAFHandl…

---

## [String#sub all instances of pattern?](https://www.ruby-forum.com/t/string-sub-all-instances-of-pattern/149728)

<div class="topic-metadata">

**Author:** [@silentd3at4](https://www.ruby-forum.com/u/silentd3at4)\
**Replies:** 5\
**Last updated:** [September 29, 2008, 3:17am UTC](https://www.ruby-forum.com/t/string-sub-all-instances-of-pattern/149728 "2008-09-29T03:17:28Z")

</div>

eg: str = “a b c d” newStr = str.sub(" ", ", ") gives me output a, b c d what i want is a, b, c, d ow do i make this happen sub isnt doing it for me i guess. I been looking all through the ruby-doc to no avail.

---

## [Counting Tabs and splitting by that number](https://www.ruby-forum.com/t/counting-tabs-and-splitting-by-that-number/149723)

<div class="topic-metadata">

**Author:** [@silentd3at4](https://www.ruby-forum.com/u/silentd3at4)\
**Replies:** 6\
**Last updated:** [September 29, 2008, 1:38am UTC](https://www.ruby-forum.com/t/counting-tabs-and-splitting-by-that-number/149723 "2008-09-29T01:38:19Z")

</div>

Basically i have a document which I am opening and then i am reading each line of the file and having to split it up into two arrays and then into a hash in which i have to get some sort of output like this: applicati…

---

## [Re: Backtrace supported?](https://www.ruby-forum.com/t/re-backtrace-supported/149712)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [September 28, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/re-backtrace-supported/149712 "2008-09-28T23:57:54Z")

</div>

I don’t know if its implemented yet, but you should also check the RubySpecs to se what is tested.

---

## [Meet your dream love](https://www.ruby-forum.com/t/meet-your-dream-love/149717)

<div class="topic-metadata">

**Author:** [@ANdrain](https://www.ruby-forum.com/u/ANdrain)\
**Replies:** 0\
**Last updated:** [September 28, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/meet-your-dream-love/149717 "2008-09-28T23:00:27Z")

</div>

Hi, I found a cool free dating site while surfing the web: Singles Mansion I thought it might be interesting to you. Visit for free registration: http://singlesmansion.com/signup.php. Good Luck! Chris

---

## [How to extract something in between a pattern](https://www.ruby-forum.com/t/how-to-extract-something-in-between-a-pattern/149232)

<div class="topic-metadata">

**Author:** [@cheyne](https://www.ruby-forum.com/u/cheyne)\
**Replies:** 5\
**Last updated:** [September 28, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/how-to-extract-something-in-between-a-pattern/149232 "2008-09-28T21:43:31Z")

</div>

Hi experts, I’m not very familiar with ruby’s library. I wonder if there a method can extract something in a pattern? For example, I have a string: a=aabbcc ccddee I wanna get the anything between and , which is c…

---

## [RubyModule CreateAnonymousModule - NotImplementedException](https://www.ruby-forum.com/t/rubymodule-createanonymousmodule-notimplementedexception/149657)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 6\
**Last updated:** [September 28, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rubymodule-createanonymousmodule-notimplementedexception/149657 "2008-09-28T18:26:21Z")

</div>

Hello, Just been playing around with IronRuby, however I am hitting an issue with RubyModule.CreateAnonymousModule() - basically, it hasn’t been implemented yet :slight\_smile: // Ruby constructor: public static Ruby…

---

## [Merging hashes and having trouble with variable scope!](https://www.ruby-forum.com/t/merging-hashes-and-having-trouble-with-variable-scope/149695)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 6\
**Last updated:** [September 28, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/merging-hashes-and-having-trouble-with-variable-scope/149695 "2008-09-28T18:03:54Z")

</div>

Hi. Caveat: I’m just learning Ruby coming from some basic PHP programming. In the following I am aiming to peer into two tab-separated files with some vegetable facts on them. In the first ‘column’ of each file there …

---

## [ANN: One-Click Ruby Installer 186-27 Release Candidate 1 Available](https://www.ruby-forum.com/t/ann-one-click-ruby-installer-186-27-release-candidate-1-available/148556)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [September 28, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/ann-one-click-ruby-installer-186-27-release-candidate-1-available/148556 "2008-09-28T18:03:18Z")

</div>

Hello Rubists from the World. This message is to announce the long waited update version of One- Click Ruby Installer (OCI). This version, built with VC6, updates some of the components, including RubyGems and solve …

---

## [Hey, Matz has a Galaxy](https://www.ruby-forum.com/t/hey-matz-has-a-galaxy/149676)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [September 28, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/hey-matz-has-a-galaxy/149676 "2008-09-28T17:50:20Z")

</div>

---

## [Delphi and Ruby](https://www.ruby-forum.com/t/delphi-and-ruby/149599)

<div class="topic-metadata">

**Author:** [@anuradha\_r](https://www.ruby-forum.com/u/anuradha_r)\
**Replies:** 4\
**Last updated:** [September 28, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/delphi-and-ruby/149599 "2008-09-28T16:18:51Z")

</div>

Hi, I am very new to Ruby. We have a Delphi (Borland Delphi version 5) application that we would like to automate. Can Ruby or Apollo or Phi help in automation of this application? Can I have links to any kind of doc…

---

## [\[Bug #609\] cgi.rb$B$G(B&&$B$,%/%(%j$K$"$k$HNc30(B](https://www.ruby-forum.com/t/bug-609-cgi-rb-b-g-b-b-j-k-k-hnc30-b/149701)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 1\
**Last updated:** [September 28, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/bug-609-cgi-rb-b-g-b-b-j-k-k-hnc30-b/149701 "2008-09-28T15:57:45Z")

</div>

Bug #609: cgi.rbe$B$Ge(B&&e$B$,%/%(%j$K$"$k$HNc30e(B http://redmine.ruby-lang.org/issues/show/609 e$B5/I\<\<Te(B: Takeyuki F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Takeyuki F., e$B%+%F%4%je(B: lib …

---

## [\[Bug:1.9\] duplicated when clause](https://www.ruby-forum.com/t/bug-1-9-duplicated-when-clause/149694)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [September 28, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/bug-1-9-duplicated-when-clause/149694 "2008-09-28T15:17:53Z")

</div>

e$B1sF#$G$9!#e(B when e$B@a$KF1$8CM$,$"$k$H$-$N5sF0$,e(B 1.8 e$B$He(B 1.9 e$B$G0\[$J$k$h$&$G$9!#e(B $ ruby18 -e ’ case 1 when 1 then p :foo when 1 then p :bar end ’ :foo $ ruby19 -e ’ case 1 when 1 then p :foo …

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

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