# Ruby

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

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

---

## [Subprocess or Thread](https://www.ruby-forum.com/t/subprocess-or-thread/108620)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 2\
**Last updated:** [August 9, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/subprocess-or-thread/108620 "2007-08-09T13:53:48Z")

</div>

Hi, i’ve a method in ruby with is running for long time (hast to watch for events) I’ve tried to do it in an Thread, but it doesn’t work. How can I do a block of code in an subprocess? Thnx for help, Michael

---

## [Rcr #14](https://www.ruby-forum.com/t/rcr-14/111642)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/rcr-14/111642 "2007-08-09T13:40:46Z")

</div>

http://www.rcrchive.net/rcrs/14

---

## [Case statement](https://www.ruby-forum.com/t/case-statement/111550)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 18\
**Last updated:** [August 9, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/case-statement/111550 "2007-08-09T13:08:45Z")

</div>

hi guys, was wondering the syntax of how to do this: case \[1,2,3,4\] when 1: ‘this is what i want’ when 11: ‘not result’ when 15: ‘no good’ end ((i.e, whatever value is included in the array)) …how do i do this? …

---

## [Monitor postgres transactions in realtime](https://www.ruby-forum.com/t/monitor-postgres-transactions-in-realtime/111641)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/monitor-postgres-transactions-in-realtime/111641 "2007-08-09T13:03:45Z")

</div>

I would like to monitor postgres transactions in realtime Could someone point me in the right direction or toward some libaries

---

## [Calculating the difference of to dates](https://www.ruby-forum.com/t/calculating-the-difference-of-to-dates/111627)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 11:27am UTC](https://www.ruby-forum.com/t/calculating-the-difference-of-to-dates/111627 "2007-08-09T11:27:32Z")

</div>

I want to calculate the difference (days, hours, minutes) between a given date out of a mysql database (2007-07-07, date) and the current date (Time.now). How can I achieve this? Thanx

---

## [Ruby Chinese Community Open-Sourcing Project Management Syst](https://www.ruby-forum.com/t/ruby-chinese-community-open-sourcing-project-management-syst/109965)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 10:56am UTC](https://www.ruby-forum.com/t/ruby-chinese-community-open-sourcing-project-management-syst/109965 "2007-08-09T10:56:29Z")

</div>

Very glad to announcement that Ruby Chinese Community Open-Sourcing Project Management System has been lauched successfully. Ruby Chinese Community was dedicated to furthering Ruby language become popular in China. R…

---

## [A problem 'require'ing](https://www.ruby-forum.com/t/a-problem-requireing/111596)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 7\
**Last updated:** [August 9, 2007, 9:43am UTC](https://www.ruby-forum.com/t/a-problem-requireing/111596 "2007-08-09T09:43:21Z")

</div>

successfully used gem to install the classifier library but I get this: irb(main):001:0\> require ‘classifier’ LoadError: no such file to load – classifier from (irb):1:in require' from (irb):1:inKernel#binding’ maybe…

---

## [How to add external modules' dir?](https://www.ruby-forum.com/t/how-to-add-external-modules-dir/111622)

<div class="topic-metadata">

**Author:** [@Lee\_NL](https://www.ruby-forum.com/u/Lee_NL)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 9:36am UTC](https://www.ruby-forum.com/t/how-to-add-external-modules-dir/111622 "2007-08-09T09:36:20Z")

</div>

In Perl, there is default module directory, say C:\\perl\\lib; C:\\perl\\site\\lib, and I can add more default module directory by editing the registry : HKEY\_LOCAL\_MACHINE\\SOFTWARE\\PERL with given string value Lib =\> “C:…

---

## [Rabal 0.1.0 Released](https://www.ruby-forum.com/t/rabal-0-1-0-released/111620)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 7:55am UTC](https://www.ruby-forum.com/t/rabal-0-1-0-released/111620 "2007-08-09T07:55:07Z")

</div>

rabal version 0.1.0 has been released. http://copiousfreetime.rubyforge.org/rabal/ Ruby Architecture for Building Applications and Libraries. Rabal is a commandline application for bootstrapping, packaging and distrib…

---

## [I came from Perl, and would ask for some quick start point](https://www.ruby-forum.com/t/i-came-from-perl-and-would-ask-for-some-quick-start-point/111425)

<div class="topic-metadata">

**Author:** [@Lee\_NL](https://www.ruby-forum.com/u/Lee_NL)\
**Replies:** 10\
**Last updated:** [August 9, 2007, 5:58am UTC](https://www.ruby-forum.com/t/i-came-from-perl-and-would-ask-for-some-quick-start-point/111425 "2007-08-09T05:58:58Z")

</div>

Dear all, This is my first touch of Ruby, a sound very clear code for the whole page! So lovely! So I decide to go further with Ruby, but before that, would like to have some hints from you all! Any reference web pa…

---

## [Markaby How to yield to a capture block?](https://www.ruby-forum.com/t/markaby-how-to-yield-to-a-capture-block/111613)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 4:32am UTC](https://www.ruby-forum.com/t/markaby-how-to-yield-to-a-capture-block/111613 "2007-08-09T04:32:54Z")

</div>

Please excuse me if this is not the right forum. I looked for a markaby one but couldn’t find one. I’d like to be able to yield a builder type object, or any args really, to a capture block in markaby. Something l…

---

## [Re: threads and resolving names](https://www.ruby-forum.com/t/re-threads-and-resolving-names/111610)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 4:17am UTC](https://www.ruby-forum.com/t/re-threads-and-resolving-names/111610 "2007-08-09T04:17:53Z")

</div>

Subject: \[ruby-talk:10482\] Re: threads and resolving names From: “Joseph McDonald” Date: Wed, 7 Feb 2001 15:27:00 +0900 In-reply-to: 10481 |I thought if I created a bunch of threads that I could get around |the pr…

---

## [How to operate an existing Excel file?](https://www.ruby-forum.com/t/how-to-operate-an-existing-excel-file/111582)

<div class="topic-metadata">

**Author:** [@alexeyomux](https://www.ruby-forum.com/u/alexeyomux)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 2:40am UTC](https://www.ruby-forum.com/t/how-to-operate-an-existing-excel-file/111582 "2007-08-09T02:40:43Z")

</div>

\<\<Programming Ruby 2nd\>\> teaches me how to create a new Excel file and add something to it, but now I have a task that there were some existing Excel files with data, what should I do is opening the files one by one …

---

## [August Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/111608)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 2:24am UTC](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/111608 "2007-08-09T02:24:42Z")

</div>

August Phoenix Ruby U. Group Meeting Date: Monday, August 13, 2007 Time: ~6:30pm Place: MWA Intelligence See http://www.rubyaz.org/groups/prug/ for details, including maps and directions Topics: Likely talks/dem…

---

## [From irb to .rb? and general question](https://www.ruby-forum.com/t/from-irb-to-rb-and-general-question/111601)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 12:55am UTC](https://www.ruby-forum.com/t/from-irb-to-rb-and-general-question/111601 "2007-08-09T00:55:36Z")

</div>

say I’ve been mucking about in irb and want to save some of/all previous steps into file.rb, is there a way to do this? also, I’ve been going through (mostly reading) some tutorials, and am just slightly confused on h…

---

## [RMagick OS X Installer 1.0.0](https://www.ruby-forum.com/t/rmagick-os-x-installer-1-0-0/111598)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 12:21am UTC](https://www.ruby-forum.com/t/rmagick-os-x-installer-1-0-0/111598 "2007-08-09T00:21:34Z")

</div>

This is the first production release of the RMagick OS X installer script. Except for the version number bump there were no changes since the previous release. This Ruby script installs the current production release …

---

## [Win32ole WMI fetch](https://www.ruby-forum.com/t/win32ole-wmi-fetch/111595)

<div class="topic-metadata">

**Author:** [@morbusg](https://www.ruby-forum.com/u/morbusg)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/win32ole-wmi-fetch/111595 "2007-08-08T23:10:26Z")

</div>

I wonder what am I missing when trying to put together a script to save me some typing. require ‘win32ole’ def fetch(where, what) wmi = WIN32OLE.connect(“winmgmts:{impersonationLevel=impersonate}!// #{ARGV}”) qry =…

---

## [ID3Lib 0.5.0 problems installing on FreeBSD](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999 "2007-08-08T22:01:17Z")

</div>

Gems is not finding my id3.h file which is clearly inside of /usr/ local/include/id3.h. When I try to install I get the following message: sudo gem install id3lib-ruby Password: Need to update 2 gems from http://ge…

---

## [File parsing](https://www.ruby-forum.com/t/file-parsing/111588)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/file-parsing/111588 "2007-08-08T21:37:59Z")

</div>

Hello, I have a tab delimited file, I have no headers in the file, and one column is the datestamp of the record. Now this datestamp is not in the correct format, I know how to format the datestamp to the way I want, …

---

## [Iterating list in pairs](https://www.ruby-forum.com/t/iterating-list-in-pairs/111552)

<div class="topic-metadata">

**Author:** [@FireAphis](https://www.ruby-forum.com/u/FireAphis)\
**Replies:** 12\
**Last updated:** [August 8, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/iterating-list-in-pairs/111552 "2007-08-08T21:05:29Z")

</div>

Hello, I need to iterate through a list and handle two elements on every iteration. That is I’d like to do something like \[1,2,3,4,5\].each { |x, y| puts x.to\_s + y.to\_s } 12 23 34 45 This code doesn’t work off co…

---

## [Seeking qualified, interested maintainer(s)](https://www.ruby-forum.com/t/seeking-qualified-interested-maintainer-s/111586)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/seeking-qualified-interested-maintainer-s/111586 "2007-08-08T21:04:08Z")

</div>

for PDF::Writer and its ancillary libraries. http://www.halostatue.ca/2007/08/04/beyond-time/ -austin

---

## [Typo in enum.c](https://www.ruby-forum.com/t/typo-in-enum-c/111568)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/typo-in-enum-c/111568 "2007-08-08T20:45:00Z")

</div>

e$B@\>;3OB9-$G$9!#e(B Enumerable#cyclee$B$Ne(Brdoce$BItJ,$Ne(Ba.eache$B$Oe(Ba.cyclee$B$Ne(Btypoe$B$G$O$J$$$G$7$g$&$+e(B? Index: enum.c — enum.c (revision 12907) +++ enum.c (working copy) @@ -1546,7 +1546,7 @@ fore…

---

## [Mixing ObjC and C is possible?](https://www.ruby-forum.com/t/mixing-objc-and-c-is-possible/111546)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 7\
**Last updated:** [August 8, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/mixing-objc-and-c-is-possible/111546 "2007-08-08T20:27:56Z")

</div>

hey all, i’d like to mixe ObjC and C into a C extension to Ruby. the ObjC part (seticon for MacOS X) comes from MacOSXUtils, and works fine. for the C ext 2 Ruby part i’ve allready tested successfully the squeleton o…

---

## [HeyWatch library released - Video encoding web service](https://www.ruby-forum.com/t/heywatch-library-released-video-encoding-web-service/111576)

<div class="topic-metadata">

**Author:** [@bcardoso](https://www.ruby-forum.com/u/bcardoso)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/heywatch-library-released-video-encoding-web-service/111576 "2007-08-08T18:58:14Z")

</div>

Hi people, I just released a library for the Hey!Watch web service. http://heywatch.com Hey!Watch provides a simple and robust video encoding plateform for both individuals (B2C) and companies (B2B). The service all…

---

## [Ruby GUI redux](https://www.ruby-forum.com/t/ruby-gui-redux/111512)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/ruby-gui-redux/111512 "2007-08-08T18:36:10Z")

</div>

Thanks to all who gave the GUI advice earlier. I think I will start with Ruby-Tk, since I am new at Ruby and Tk is a much lighter weight GUI builder than some of the others. And, I know Perl-Tk very well. So far th…

---

## [Question about gtk.ComboBoxEntry](https://www.ruby-forum.com/t/question-about-gtk-comboboxentry/111382)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 4\
**Last updated:** [August 8, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/question-about-gtk-comboboxentry/111382 "2007-08-08T18:27:07Z")

</div>

hello there all, i cannot seem to find how to set the active text in a gtk.ComboBoxEntry. i can populate it with a list of items using the append\_text(item) method. but i cannot seem to find how to actually set the i…

---

## [Update to Rails session problem](https://www.ruby-forum.com/t/update-to-rails-session-problem/111560)

<div class="topic-metadata">

**Author:** [@ronald\_braswell](https://www.ruby-forum.com/u/ronald_braswell)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/update-to-rails-session-problem/111560 "2007-08-08T18:18:05Z")

</div>

Rails 1.2.3 Ruby 1.8.6 Mongrel 1.0.1 Mongrel cluster 1.0.2 (using 2 instances) Apache 2.2.4 RAILS\_ENV=production Solaris 10 (11/06) Background: I have devloped an automated test system for the system which our …

---

## [Ruby 3D](https://www.ruby-forum.com/t/ruby-3d/111532)

<div class="topic-metadata">

**Author:** [@Zufynet](https://www.ruby-forum.com/u/Zufynet)\
**Replies:** 5\
**Last updated:** [August 8, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/ruby-3d/111532 "2007-08-08T17:08:47Z")

</div>

Hi, i’m looking for a Ruby extension to create/manipulate 3d environment and generate 2d image from it. Thanks all. Luca

---

## [\[ANN\] RubyURL 2.0 launched!](https://www.ruby-forum.com/t/ann-rubyurl-2-0-launched/111563)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/ann-rubyurl-2-0-launched/111563 "2007-08-08T16:51:42Z")

</div>

Hey everyone! We excited to announce a new version of RubyURL.com last night\[1\]. :slight\_smile: http://rubyurl.com The new version was completely rewritten with Rails, PostgreSQL, and followed the BDD philosophy wit…

---

## [Non-constant strings](https://www.ruby-forum.com/t/non-constant-strings/111497)

<div class="topic-metadata">

**Author:** [@kmeaw](https://www.ruby-forum.com/u/kmeaw)\
**Replies:** 14\
**Last updated:** [August 8, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/non-constant-strings/111497 "2007-08-08T16:06:18Z")

</div>

Hello. Why does Ruby have non-constant strings? It seems there is a way to bypass object encapsulation paradigm and break object integrity. Here is any example: class SecureRunner This class implements a sudo-like ru…

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

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