# Ruby

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

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

---

## [How to read text in a Wsh window](https://www.ruby-forum.com/t/how-to-read-text-in-a-wsh-window/146813)

<div class="topic-metadata">

**Author:** [@pkammit](https://www.ruby-forum.com/u/pkammit)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/how-to-read-text-in-a-wsh-window/146813 "2008-08-25T20:10:44Z")

</div>

Hi everyone, I am a QA guy and I use watir for testing web applications. In my testing I sometimes have to work on a Windows application also. Using WIN32OLE, I am able to access the Windows application and perform ac…

---

## [Webgen 0.5.3 released](https://www.ruby-forum.com/t/webgen-0-5-3-released/146811)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/webgen-0-5-3-released/146811 "2008-08-25T20:08:47Z")

</div>

Hey everybody! webgen 0.5.3 has just been released! If you don’t know what webgen is, read the “What’s webgen?” section down below. This announcement is also available at http://webgen.rubyforge.org/news/release\_0\_5\_…

---

## [\[ANN\] Mack Framework 0.7.0](https://www.ruby-forum.com/t/ann-mack-framework-0-7-0/146810)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/ann-mack-framework-0-7-0/146810 "2008-08-25T19:17:34Z")

</div>

Version 0.7.0 of the Mack framework was released today. Amongst the 49 tickets that make up release 0.7.0, there are two in particular that are at the core of Mackâ€™s very existence, they are Distributed Objects and …

---

## [SOAP call not returning containers all the time](https://www.ruby-forum.com/t/soap-call-not-returning-containers-all-the-time/146807)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/soap-call-not-returning-containers-all-the-time/146807 "2008-08-25T19:16:46Z")

</div>

Hello all! I’m new here, and pretty new to Ruby. So far I like using it. I have a question though. I’m working with SOAP. Everythings works well, but there is one strange thing. If I get a node that can contain zero o…

---

## [Expiration-date 1.1.0 (Screaming Bacon)](https://www.ruby-forum.com/t/expiration-date-1-1-0-screaming-bacon/146805)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/expiration-date-1-1-0-screaming-bacon/146805 "2008-08-25T18:56:39Z")

</div>

expiration-date version 1.1.0 by Tim P. http://codeforpeople.rubyforge.org/expiration-date (the “Screaming Bacon” release) == DESCRIPTION Really simple caching by attaching an expiration date to attributes. The Exp…

---

## [\[Feature: trunk\] relayouting struct RNode](https://www.ruby-forum.com/t/feature-trunk-relayouting-struct-rnode/146760)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 3\
**Last updated:** [August 25, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/feature-trunk-relayouting-struct-rnode/146760 "2008-08-25T18:06:50Z")

</div>

Yuguiã§ã™ã€‚ ã€Œç¬¬7å›žRHGã®é€†è¥²ã€(http://qwik.jp/rhg-strikes-back/78.html )ã®çµæžœã¨ã— ã¦ã€RNode::nd\_fileã¯èª°ã‚‚åˆ©ç”¨ã—ã¦ã„ãªã„ã“ã¨ãŒåˆ†ã‹ã‚Šã¾ã—ãŸã€‚ ã‚ˆã£ã¦ã€RNodeã®ãƒ¬ã‚¤ã‚¢ã‚¦ãƒˆã«…

---

## [Setting date format to validate date in ruby](https://www.ruby-forum.com/t/setting-date-format-to-validate-date-in-ruby/146692)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 4\
**Last updated:** [August 25, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/setting-date-format-to-validate-date-in-ruby/146692 "2008-08-25T18:02:12Z")

</div>

Hi, I’m just learning ruby. I was searching for date validation in ruby and found this: for date in dateArray if %r{(\\d\\d)/(\\d\\d)/(\\d\\d\\d\\d)} =~ date mday, month, year = $1.to\_i, $2.to\_i, $3.to\_i puts date if Date.va…

---

## [How to inherit from other class in different level](https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/196791)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [August 25, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/196791 "2008-08-25T17:51:38Z")

</div>

Hi, I’ve a problem since I need a Class to inherit from other Class that is in other level. The problem is this: module SIP class SipUri class SipUriParameters end end end module SIP class TelUri class TelUriP…

---

## [How to inherit from other class in different level](https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/146800)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/146800 "2008-08-25T17:21:45Z")

</div>

Hi, I’ve a problem since I need a Class to inherit from other Class that is in other level. The problem is this: module SIP class SipUri class SipUriParameters end end end module SIP class TelUri class TelUriP…

---

## [Can install RedCloth](https://www.ruby-forum.com/t/can-install-redcloth/146512)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/can-install-redcloth/146512 "2008-08-25T16:33:12Z")

</div>

This is a strange error, but I am getting this error on all of my servers: server1:~# gem install RedCloth Bulk updating Gem source index for: http://gems.rubyforge.org/ ERROR: could not find RedCloth locally or in …

---

## [Searching for memory leaks in my app](https://www.ruby-forum.com/t/searching-for-memory-leaks-in-my-app/146713)

<div class="topic-metadata">

**Author:** [@edek](https://www.ruby-forum.com/u/edek)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/searching-for-memory-leaks-in-my-app/146713 "2008-08-25T16:30:41Z")

</div>

Hi, my RoR 2.1.0 (ruby 1.8.6p116) application leaks the memory. It’s rather not mongrel issue, because I have also custom script that includes all RoR environment and it does the same. Are there any tools or methods t…

---

## [Memory leak in 1.8.6-p287](https://www.ruby-forum.com/t/memory-leak-in-1-8-6-p287/146746)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/memory-leak-in-1-8-6-p287/146746 "2008-08-25T16:29:25Z")

</div>

We’ve noticed a pretty severe memory leak since upgrading from p114 to p287. I ran valgrind on my test suite and got this error: ==24626== 352 (48 direct, 304 indirect) bytes in 2 blocks are definitely lost in loss r…

---

## [\[ANN\] NeverBlock support for ActiveRecord](https://www.ruby-forum.com/t/ann-neverblock-support-for-activerecord/146750)

<div class="topic-metadata">

**Author:** [@oldmoe](https://www.ruby-forum.com/u/oldmoe)\
**Replies:** 4\
**Last updated:** [August 25, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/ann-neverblock-support-for-activerecord/146750 "2008-08-25T16:28:25Z")

</div>

I gladly announce the first release of the NeverBlock PostgreSQL adapter for ActiveRecord. The new adapter enables ActiveRecord to perform queries in parallel even in a single threaded Ruby1.9 application. Benchmarki…

---

## [Split not returning an array?](https://www.ruby-forum.com/t/split-not-returning-an-array/146794)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 6\
**Last updated:** [August 25, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/split-not-returning-an-array/146794 "2008-08-25T16:17:45Z")

</div>

Hi there, I start out with a string containing at least 1 ‘+’ separating words in it. I’m trying to get an array using str.split(’+’), so I can use each word to do something different. So for example, I have string = …

---

## [%N for Time#strftime](https://www.ruby-forum.com/t/n-for-time-strftime/146492)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 12\
**Last updated:** [August 25, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/n-for-time-strftime/146492 "2008-08-25T15:52:29Z")

</div>

e$BA0ED$G$9!#e(B 2008/08/21 9:22 Shugo M. removed\_email\_address@domain.invalid: e$B$J$k$\[$I!"$G$O$=$NJ}8~$G=$@5$7$^$9!#e(B e$B@h$\[$Ie(Bcommite$B$7$^$7$?!#e(B %Le$B$OGQ;\_$7$?J}$,$$$$$G$9$+$M!#e(B DateTime#strftim…

---

## [Thread closing?](https://www.ruby-forum.com/t/thread-closing/146688)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/thread-closing/146688 "2008-08-25T15:17:32Z")

</div>

@t1 = Thread.new do b = false until b == true sleep 10 puts “you are getting cold!” end end So, that gets called when a play enters a ‘cold’ room. I want to set in the ‘leave’ event: @t1.close or something to t…

---

## [Indices of non nil elements in an array](https://www.ruby-forum.com/t/indices-of-non-nil-elements-in-an-array/146749)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 8\
**Last updated:** [August 25, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/indices-of-non-nil-elements-in-an-array/146749 "2008-08-25T14:43:17Z")

</div>

a = \[\] a\[10\] = “foo” a.nitems returns a count of the non-nil, items. What is the simplest way to return the indices of “a” that are not nil? I’m sure there is some simple elegant way to do this, but I can’t figure i…

---

## [Destroy\_all with out id](https://www.ruby-forum.com/t/destroy-all-with-out-id/146788)

<div class="topic-metadata">

**Author:** [@hemantaray](https://www.ruby-forum.com/u/hemantaray)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/destroy-all-with-out-id/146788 "2008-08-25T14:03:03Z")

</div>

I have three module named user,role and role\_user. Users and roles table has many to many relationship. And role user in the associated table or linked another two table .It contains the user\_id and role\_id .Associati…

---

## [Problem in video uploading](https://www.ruby-forum.com/t/problem-in-video-uploading/146777)

<div class="topic-metadata">

**Author:** [@rizwana](https://www.ruby-forum.com/u/rizwana)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/problem-in-video-uploading/146777 "2008-08-25T12:11:24Z")

</div>

hi all, hope u r doing well. I have a problem with uploading videos in my application. I have to upload videos in my application which will be saved to the database. Then these videos should be displayed in YouTube. …

---

## [Problem in video uploading](https://www.ruby-forum.com/t/problem-in-video-uploading/146775)

<div class="topic-metadata">

**Author:** [@rizwana](https://www.ruby-forum.com/u/rizwana)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/problem-in-video-uploading/146775 "2008-08-25T12:10:48Z")

</div>

hi all, hope u r doing well. I have a problem with uploading videos in my application. I have to upload videos in my application which will be saved to the database. Then these videos should be displayed in YouTube. …

---

## [\[Bug #492\] defined? a && defined? b](https://www.ruby-forum.com/t/bug-492-defined-a-defined-b/146771)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/bug-492-defined-a-defined-b/146771 "2008-08-25T12:07:52Z")

</div>

Bug #492: defined? a && defined? b http://redmine.ruby-lang.org/issues/show/492 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yukihiro M., e$B%+%F%4%je(B: core defined? a && de…

---

## [Why NameError?](https://www.ruby-forum.com/t/why-nameerror/146770)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 3\
**Last updated:** [August 25, 2008, 11:35am UTC](https://www.ruby-forum.com/t/why-nameerror/146770 "2008-08-25T11:35:04Z")

</div>

module M1 class A end end module M2 class A end p A # M2::A class B p A # M2::A end end module M3 include M1 p A # M1::A class B p A …

---

## [Ruby and Gender (Was: A Mascot...)](https://www.ruby-forum.com/t/ruby-and-gender-was-a-mascot/146690)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 5\
**Last updated:** [August 25, 2008, 7:26am UTC](https://www.ruby-forum.com/t/ruby-and-gender-was-a-mascot/146690 "2008-08-25T07:26:45Z")

</div>

On Sun, Aug 24, 2008 at 12:28 AM, David M. removed\_email\_address@domain.invalid wrote: this energy into real issues, like why we as a community have not under-represented, among programming languages? We’re talking …

---

## [Gem unpack --target usage](https://www.ruby-forum.com/t/gem-unpack-target-usage/146732)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 9\
**Last updated:** [August 25, 2008, 3:36am UTC](https://www.ruby-forum.com/t/gem-unpack-target-usage/146732 "2008-08-25T03:36:24Z")

</div>

I’m trying to unpack a gem into a particular directory, but cannot get the --target option to work. $ gem --version 1.2.0 gem help unpack Usage: gem unpack GEMNAME \[options\] Options: –target ta…

---

## [Executable ruby](https://www.ruby-forum.com/t/executable-ruby/146736)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 3\
**Last updated:** [August 25, 2008, 2:37am UTC](https://www.ruby-forum.com/t/executable-ruby/146736 "2008-08-25T02:37:50Z")

</div>

hi all I am trying to make the ruby Hello.rb executable in mac os X this is the Hello.rb #!/usr/bin/ruby print “Hello World” chmod +x Hello.rb whe I type: Hello.rb I get the following error: tcsh: Hello.rb: Comma…

---

## [Is there an official ruby road map?](https://www.ruby-forum.com/t/is-there-an-official-ruby-road-map/146731)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 5\
**Last updated:** [August 25, 2008, 2:07am UTC](https://www.ruby-forum.com/t/is-there-an-official-ruby-road-map/146731 "2008-08-25T02:07:30Z")

</div>

Is there one for Ruby and if not does it really matter?

---

## [Why 'if 0' succeeds in Ruby](https://www.ruby-forum.com/t/why-if-0-succeeds-in-ruby/146653)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 20\
**Last updated:** [August 25, 2008, 12:35am UTC](https://www.ruby-forum.com/t/why-if-0-succeeds-in-ruby/146653 "2008-08-25T00:35:42Z")

</div>

Rubiods: One of the first “gotchas” here coming from another language is 0 is not like ‘true’. This Daily WTF (which I think someone just posted here) illustrates the problem which Ruby solves: “Rather than check…

---

## [Running an executable local file with a Ruby script?](https://www.ruby-forum.com/t/running-an-executable-local-file-with-a-ruby-script/146737)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 5\
**Last updated:** [August 24, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/running-an-executable-local-file-with-a-ruby-script/146737 "2008-08-24T23:55:57Z")

</div>

I’m having a lot of problems just running an executable local file with a Ruby script. I go to the directory with the file (call the executable file ‘mkplots’), then try to run that file. I’ve tried all sorts of syst…

---

## [Installing Ruby Gems under Ruby 1.9 \[Windows\]](https://www.ruby-forum.com/t/installing-ruby-gems-under-ruby-1-9-windows/146739)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 1\
**Last updated:** [August 24, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/installing-ruby-gems-under-ruby-1-9-windows/146739 "2008-08-24T22:51:30Z")

</div>

Hi, Has anyone gotten gems to install correctly using Ruby 1.9? I have the latest Ruby 1.9 binary, and Ruby Gems. When I run “ruby setup.rb” I get an error message like this: setup.rb:18: command not found: (null) s…

---

## [How to setup Emacs with inferior ruby-interpreter?](https://www.ruby-forum.com/t/how-to-setup-emacs-with-inferior-ruby-interpreter/146740)

<div class="topic-metadata">

**Author:** [@ssecorp](https://www.ruby-forum.com/u/ssecorp)\
**Replies:** 1\
**Last updated:** [August 24, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/how-to-setup-emacs-with-inferior-ruby-interpreter/146740 "2008-08-24T22:46:16Z")

</div>

I have tried to get Emacs to run an inferior ruby process. I can run the interpreter with comint-run irb.bat but then I can’t load a program into the interpreter. I already have ruby-mode for emacs so I got syntax hig…

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

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