# Ruby

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

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

---

## [Dl/win32 EnumWindows loops correctly then segfaults](https://www.ruby-forum.com/t/dl-win32-enumwindows-loops-correctly-then-segfaults/93859)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [April 12, 2006, 8:12am UTC](https://www.ruby-forum.com/t/dl-win32-enumwindows-loops-correctly-then-segfaults/93859 "2006-04-12T08:12:31Z")

</div>

Hi All, Googling for “ruby win32api EnumWindows” led me to this four-year-old post from “Shusaku”: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/54587 What I want to do (for now) is list all of the wind…

---

## [Autorequire-0.0.0](https://www.ruby-forum.com/t/autorequire-0-0-0/57579)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 12, 2006, 5:43am UTC](https://www.ruby-forum.com/t/autorequire-0-0-0/57579 "2006-04-12T05:43:05Z")

</div>

URLS http://codeforpeople.com/lib/ruby/ http://rubyforge.org/frs/?group\_id=1024 ABOUT autorequire is sleeker, more aerodynamic, greasier version of autoload. like autoload it’s primary usage is to speed up the load…

---

## [Vba --\> ruby: tool, parse or assimilation?](https://www.ruby-forum.com/t/vba-ruby-tool-parse-or-assimilation/57512)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 7\
**Last updated:** [April 12, 2006, 5:03am UTC](https://www.ruby-forum.com/t/vba-ruby-tool-parse-or-assimilation/57512 "2006-04-12T05:03:24Z")

</div>

Do you guys know of any tool that can help me onverting a vba classic code base to ruby? I am not talking about GUIs and stuff, just good old plain business logic. If I can’t find any tool I will go for one of these…

---

## [Re: Equivalent of Java static code block in Ruby?](https://www.ruby-forum.com/t/re-equivalent-of-java-static-code-block-in-ruby/57566)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [April 12, 2006, 1:57am UTC](https://www.ruby-forum.com/t/re-equivalent-of-java-static-code-block-in-ruby/57566 "2006-04-12T01:57:46Z")

</div>

If you’re using fastcgi/webrick/mongrel (not plain cgi) and your RAILS\_ENV is set to “production” (which, by default will set the class loading mechanism to ‘require’ rather than ‘load’), you should get the code only …

---

## [Instant Rails 1.3](https://www.ruby-forum.com/t/instant-rails-1-3/57551)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [April 11, 2006, 10:47pm UTC](https://www.ruby-forum.com/t/instant-rails-1-3/57551 "2006-04-11T22:47:56Z")

</div>

Instant Rails 1.3 upgrades Ruby on Rails to its newly released version 1.1.2 and adds the native C MySQL/Ruby driver. There were no other changes over Instant Rails 1.1 Instant Rails is a one-stop Rails runtime solut…

---

## [Regex flags](https://www.ruby-forum.com/t/regex-flags/93839)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 7\
**Last updated:** [April 11, 2006, 8:43pm UTC](https://www.ruby-forum.com/t/regex-flags/93839 "2006-04-11T20:43:32Z")

</div>

Generically, how do you impliment the various flags? I figured out: s/ / /g --\> gsub and s/ / / -\> sub What about something like / /ixsmg or various combinations thereof?

---

## [Vpim::Vcard Line Breaks](https://www.ruby-forum.com/t/vpim-vcard-line-breaks/57528)

<div class="topic-metadata">

**Author:** [@dabeeeenster](https://www.ruby-forum.com/u/dabeeeenster)\
**Replies:** 1\
**Last updated:** [April 11, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/vpim-vcard-line-breaks/57528 "2006-04-11T20:37:15Z")

</div>

Hello ~ I am using the Ruby Vpim library to create Vcards. I am having trouble getting my address entries to format correctly when the resulting VCF file is loaded into an address book. Is there a special character…

---

## [Oddities of Iteration](https://www.ruby-forum.com/t/oddities-of-iteration/57520)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 10\
**Last updated:** [April 11, 2006, 8:18pm UTC](https://www.ruby-forum.com/t/oddities-of-iteration/57520 "2006-04-11T20:18:01Z")

</div>

I’m working on a CGI script that iterates through a list of items of a class I’ve defined (class Report). Report::to\_s just returns the string “yay!” for testing purposes. When I run this code: puts “\<div style=“float…

---

## [Re: Include....with an end?](https://www.ruby-forum.com/t/re-include-with-an-end/57456)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [April 11, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/re-include-with-an-end/57456 "2006-04-11T19:31:37Z")

</div>

Have you tried to ask Ruby to run it? I bet it will ask, in a very wague form, for the rest of the code immediately :wink: Gennady.

---

## [Coding Standards for Ruby](https://www.ruby-forum.com/t/coding-standards-for-ruby/57464)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [April 11, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/coding-standards-for-ruby/57464 "2006-04-11T18:36:22Z")

</div>

Hie. This is a little urgent. Can anybody out here help me with the Ruby Coding Standards? Please make it soon. Thanks.

---

## [Best way to test for file existence?](https://www.ruby-forum.com/t/best-way-to-test-for-file-existence/57518)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [April 11, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/best-way-to-test-for-file-existence/57518 "2006-04-11T18:30:13Z")

</div>

All, What is the best way to determine the existence of a file (more specifically, a directory)? Are there Perl - like file test operators available? Wes

---

## [Quick syntax question](https://www.ruby-forum.com/t/quick-syntax-question/57393)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 18\
**Last updated:** [April 11, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/quick-syntax-question/57393 "2006-04-11T17:53:33Z")

</div>

Consider the following three class definitions: class Foo def self.bar @@bar end def self.bar=(val) @@bar = val end end class Foo class \<\< self def bar @@bar end def bar=(val) @@bar = val end end end c…

---

## [Upgrading Compiled Version of Ruby](https://www.ruby-forum.com/t/upgrading-compiled-version-of-ruby/93695)

<div class="topic-metadata">

**Author:** [@Ben\_Gribaudo](https://www.ruby-forum.com/u/Ben_Gribaudo)\
**Replies:** 4\
**Last updated:** [April 11, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/upgrading-compiled-version-of-ruby/93695 "2006-04-11T17:04:50Z")

</div>

Hello, In the past, we’ve used Debian’s package management system (apt) to handle installing and upgrading Ruby. We’re considering building Ruby from source on our next production Web server (an Ubuntu Breezy box). L…

---

## [Singular value decomposition of rectangular matrices?](https://www.ruby-forum.com/t/singular-value-decomposition-of-rectangular-matrices/57405)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 11, 2006, 4:58pm UTC](https://www.ruby-forum.com/t/singular-value-decomposition-of-rectangular-matrices/57405 "2006-04-11T16:58:43Z")

</div>

Dear all, I am searching for some code that can decompose rectangular matrices according to SVD. Unfortunately, rb-gsl can only handle square matrices. Also, I’ve have some strange installation error with the linalg …

---

## [Possible RubyQuiz idea](https://www.ruby-forum.com/t/possible-rubyquiz-idea/56793)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 16\
**Last updated:** [April 11, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/possible-rubyquiz-idea/56793 "2006-04-11T16:49:21Z")

</div>

This might be too easy, it’s JEG2’s call. Read in an ordinary crontab file and print out a list of jobs that will run in the next N minutes. Just a thought. Cheers, Hal

---

## [Re: Adding in class attribute with a Module](https://www.ruby-forum.com/t/re-adding-in-class-attribute-with-a-module/93796)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [April 11, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/re-adding-in-class-attribute-with-a-module/93796 "2006-04-11T16:30:50Z")

</div>

Is it possible to add class attributes (cattr\_accessor) using a module? If so could you give an example? There is no “Ruby Way” to do this b/c Ruby’s module methods aren’t inherited by classes that include them. Tho…

---

## [App not waiting for popen to finish](https://www.ruby-forum.com/t/app-not-waiting-for-popen-to-finish/57461)

<div class="topic-metadata">

**Author:** [@SSMKSM](https://www.ruby-forum.com/u/SSMKSM)\
**Replies:** 4\
**Last updated:** [April 11, 2006, 4:18pm UTC](https://www.ruby-forum.com/t/app-not-waiting-for-popen-to-finish/57461 "2006-04-11T16:18:42Z")

</div>

Hello, I’m using ‘wget’ to download a few files and then tar them up. I’m using popen to make calls to wget and tar. Problem is that it tries to call tar right after the wget call. I need to wait for wget to finish. …

---

## [Re: Smalltalk's favorite Boolean method](https://www.ruby-forum.com/t/re-smalltalks-favorite-boolean-method/93829)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [April 11, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/re-smalltalks-favorite-boolean-method/93829 "2006-04-11T16:03:17Z")

</div>

For a long time I have been programming Smalltalk. Recently, Ruby “got me” and I was wondering how the famous ifTrue:ifFalse: could be added to the System. 1 = 2 ifTrue: \[Transcript show: “true!” \] ifFalse: \[Tran…

---

## [Identfying classes in a file dynamically](https://www.ruby-forum.com/t/identfying-classes-in-a-file-dynamically/57443)

<div class="topic-metadata">

**Author:** [@Navya\_A](https://www.ruby-forum.com/u/Navya_A)\
**Replies:** 6\
**Last updated:** [April 11, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/identfying-classes-in-a-file-dynamically/57443 "2006-04-11T15:57:01Z")

</div>

Hi, I was trying to identify the classes in a give file at the run time. the following is the code i used. sc, ec = \[\], \[\] ObjectSpace.each\_object(Class) { |c| sc \<\< c } require ‘Roman.rb’ ObjectSpace.each\_object(C…

---

## [Re: Smalltalk's favorite Boolean method](https://www.ruby-forum.com/t/re-smalltalks-favorite-boolean-method/93828)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [April 11, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/re-smalltalks-favorite-boolean-method/93828 "2006-04-11T15:53:56Z")

</div>

Mime-Version: 1.0 List-Unsubscribe: =20 \[Transcript show: “false!”\] Dan What the heck? How did this get so mangled? Dan

---

## [Re: Smalltalk's favorite Boolean method](https://www.ruby-forum.com/t/re-smalltalks-favorite-boolean-method/57499)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [April 11, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/re-smalltalks-favorite-boolean-method/57499 "2006-04-11T15:32:29Z")

</div>

Recently, Ruby “got me” and I was wondering how the famous ifTrue:ifFalse: could be added to the System. 1 = 2 ifTrue: \[Transcript show: “true!” \] ifFalse: \[Transcript show: “false!”\] \[…\] What about: def true.i…

---

## [Adding in class attribute with a Module](https://www.ruby-forum.com/t/adding-in-class-attribute-with-a-module/57367)

<div class="topic-metadata">

**Author:** [@kris](https://www.ruby-forum.com/u/kris)\
**Replies:** 25\
**Last updated:** [April 11, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/adding-in-class-attribute-with-a-module/57367 "2006-04-11T15:29:25Z")

</div>

Is it possible to add class attributes (cattr\_accessor) using a module? If so could you give an example? Many thanks.

---

## [Are college professors teaching computer science with ruby?](https://www.ruby-forum.com/t/are-college-professors-teaching-computer-science-with-ruby/55150)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 25\
**Last updated:** [April 11, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/are-college-professors-teaching-computer-science-with-ruby/55150 "2006-04-11T15:12:13Z")

</div>

I was wondering if anybody taught the traditional computer courses in ruby. With a google search, I found Dr Cripps at mtsu using Rails (not clear if he is using something else as well) to teach programming theory, D…

---

## [Fwd: Markov chain solution](https://www.ruby-forum.com/t/fwd-markov-chain-solution/93824)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 11, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/fwd-markov-chain-solution/93824 "2006-04-11T15:01:45Z")

</div>

Begin forwarded message:

---

## [Duplicity in Set](https://www.ruby-forum.com/t/duplicity-in-set/57483)

<div class="topic-metadata">

**Author:** [@Radek\_Skokan](https://www.ruby-forum.com/u/Radek_Skokan)\
**Replies:** 2\
**Last updated:** [April 11, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/duplicity-in-set/57483 "2006-04-11T13:41:17Z")

</div>

Hello, I have a Set which should contains elements of my object Component. The component class implements method hash. I’m gathering data, createing Componets from them and storing it into the Set. It’s a Set just to …

---

## [Vim 7 omni-completion function](https://www.ruby-forum.com/t/vim-7-omni-completion-function/57457)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 1\
**Last updated:** [April 11, 2006, 1:29pm UTC](https://www.ruby-forum.com/t/vim-7-omni-completion-function/57457 "2006-04-11T13:29:05Z")

</div>

Hi all, I’ve hacked away at complete.rb and some of the existing vim7 omni-completion functions to create a ruby completion function. It “works for me”, any input is welcome. As a note, it will attempt to load any mo…

---

## [YARV for ArchLinux](https://www.ruby-forum.com/t/yarv-for-archlinux/57479)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 0\
**Last updated:** [April 11, 2006, 11:38am UTC](https://www.ruby-forum.com/t/yarv-for-archlinux/57479 "2006-04-11T11:38:10Z")

</div>

Had some minutes to spend today and thought it would be pretty neat to have YARV (as announced on http://redhanded.hobix.com/cult/yarvMergedMatz.html) on ArchLinux, so i went ahead and created a little PKGBUILD …

---

## [FXRuby ComboBox problems:](https://www.ruby-forum.com/t/fxruby-combobox-problems/57423)

<div class="topic-metadata">

**Author:** [@christer](https://www.ruby-forum.com/u/christer)\
**Replies:** 3\
**Last updated:** [April 11, 2006, 9:38am UTC](https://www.ruby-forum.com/t/fxruby-combobox-problems/57423 "2006-04-11T09:38:15Z")

</div>

First problem: The empty alternative shows just about two pixels in height. “” “male” “female” How can I get the full height? Second problem: The leftmost characters in the combo has a lighter background color. Th…

---

## [Mongrel Web Server 0.3.12.4 -- Relaxed Parser, Date Fix](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-4-relaxed-parser-date-fix/93798)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 5\
**Last updated:** [April 11, 2006, 9:13am UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-4-relaxed-parser-date-fix/93798 "2006-04-11T09:13:44Z")

</div>

Hello Everyone, Just a small announcement for Mongrel 0.3.12.4 which fixes the following things: Corrects the date format returned so that months are three chars only. Fixes a problem where DirHandler wasn’t returnin…

---

## [ParseTree 1.4.1 Released](https://www.ruby-forum.com/t/parsetree-1-4-1-released/93814)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [April 11, 2006, 8:33am UTC](https://www.ruby-forum.com/t/parsetree-1-4-1-released/93814 "2006-04-11T08:33:53Z")

</div>

ParseTree version 1.4.1 has been released! http://rubyforge.org/projects/parsetree/ zenspider projects | software projects | by ryan davis \*\* DESCRIPTION: ParseTree is a C extension (using RubyInline) that extracts t…

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

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