# Ruby

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

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

---

## [Range as conditional expr](https://www.ruby-forum.com/t/range-as-conditional-expr/97775)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/range-as-conditional-expr/97775 "2006-07-11T14:30:41Z")

</div>

Hi, I am reading “Programming Ruby” \[a.k.a. Pickaxe\] and I found example while gets print if /a/ … /e/ end but one does not work. However, after changing it to: while gets print if (/a/=~$) … (/e/=~$) end it works. …

---

## [Scalablity question (Stand-alone server)](https://www.ruby-forum.com/t/scalablity-question-stand-alone-server/97818)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [July 11, 2006, 12:00pm UTC](https://www.ruby-forum.com/t/scalablity-question-stand-alone-server/97818 "2006-07-11T12:00:59Z")

</div>

I have lately heard a lot about the productivity gains that a programmer can reap with Ruby on Rails. And the features such as “Shared Nothing”, which allow you to increase scalabilty by adding more servers. This, how…

---

## [Ruby - mysql - Error Authentication protocol not supported](https://www.ruby-forum.com/t/ruby-mysql-error-authentication-protocol-not-supported/102970)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 8:20am UTC](https://www.ruby-forum.com/t/ruby-mysql-error-authentication-protocol-not-supported/102970 "2006-07-11T08:20:26Z")

</div>

On Windows XP Prof system, using Ruby 1.8.4 & mysql-ruby-2.7.1 (pure ruby interface), myswl 5.0 server, and rubyuser is defined as a mysql user, I am trying to run the following sample program and getting the error: \*…

---

## [Fault Tolerant TupleSpace?](https://www.ruby-forum.com/t/fault-tolerant-tuplespace/97814)

<div class="topic-metadata">

**Author:** [@dstocks](https://www.ruby-forum.com/u/dstocks)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 8:00am UTC](https://www.ruby-forum.com/t/fault-tolerant-tuplespace/97814 "2006-07-11T08:00:37Z")

</div>

Can a TupleSpace be mirrored to a secondary server in way that the clients accessing it can fail over to it in the event of a server failure? I understand that a TupleSpace can provide fault tolerance, I just can’t f…

---

## [Windows Mobile 5.0 support?](https://www.ruby-forum.com/t/windows-mobile-5-0-support/97735)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 3\
**Last updated:** [July 11, 2006, 7:33am UTC](https://www.ruby-forum.com/t/windows-mobile-5-0-support/97735 "2006-07-11T07:33:04Z")

</div>

Windows Mobile 5.0 support? Why don’t work?

---

## [Ruby.h missing rb\_cMethod?](https://www.ruby-forum.com/t/ruby-h-missing-rb-cmethod/97893)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [July 11, 2006, 5:51am UTC](https://www.ruby-forum.com/t/ruby-h-missing-rb-cmethod/97893 "2006-07-11T05:51:18Z")

</div>

It seems to me ruby.h (1.8.4) is missing the exporting of rb\_cMethod, with a line similar to: RUBY\_EXTERN VALUE rb\_cMethod; Is this by design?

---

## [Ruby C extension/wrapper around C function that uses scanf](https://www.ruby-forum.com/t/ruby-c-extension-wrapper-around-c-function-that-uses-scanf/97691)

<div class="topic-metadata">

**Author:** [@1gor](https://www.ruby-forum.com/u/1gor)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 3:56am UTC](https://www.ruby-forum.com/t/ruby-c-extension-wrapper-around-c-function-that-uses-scanf/97691 "2006-07-11T03:56:45Z")

</div>

I need Ruby to access a set of external command line applications for dataseries analysis. Each of these little apps simply reads data from stdin and then outputs processed results to stdout (using scanf and printf, …

---

## [While loops](https://www.ruby-forum.com/t/while-loops/97803)

<div class="topic-metadata">

**Author:** [@Erich\_L](https://www.ruby-forum.com/u/Erich_L)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 3:38am UTC](https://www.ruby-forum.com/t/while-loops/97803 "2006-07-11T03:38:05Z")

</div>

If I have this snippet of code for the main page that loads: def index while 1 logger.info(“hi”) end end Then, I close the browser that opened that page, I notice that the logger continues to print “hi” to the fil…

---

## [Problems with mixins](https://www.ruby-forum.com/t/problems-with-mixins/97865)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 4\
**Last updated:** [July 11, 2006, 3:24am UTC](https://www.ruby-forum.com/t/problems-with-mixins/97865 "2006-07-11T03:24:46Z")

</div>

Hi Folks, I’m have some problems with mixin from a module that I have written. Module Parser def thing . . end end class Outer include Parser def initialize print thing # works end class Inner def initia…

---

## [Write to specified line number of file](https://www.ruby-forum.com/t/write-to-specified-line-number-of-file/102968)

<div class="topic-metadata">

**Author:** [@ar1](https://www.ruby-forum.com/u/ar1)\
**Replies:** 5\
**Last updated:** [July 11, 2006, 3:22am UTC](https://www.ruby-forum.com/t/write-to-specified-line-number-of-file/102968 "2006-07-11T03:22:44Z")

</div>

Hi, I want to read a file, and write to another file by randomize the lines. I saw the method File.lineno= but it doesn’t seem to work. I just get the same file written as the original, without the lines having been …

---

## [Include vs. extend](https://www.ruby-forum.com/t/include-vs-extend/97886)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 2:32am UTC](https://www.ruby-forum.com/t/include-vs-extend/97886 "2006-07-11T02:32:39Z")

</div>

I was under the impression that include and extend were basically module-level and object-level versions of the same thing, that including a module at the class level had the same effect as extending an object. But i…

---

## [Best way to synchronize access to a method?](https://www.ruby-forum.com/t/best-way-to-synchronize-access-to-a-method/97842)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 7\
**Last updated:** [July 11, 2006, 1:46am UTC](https://www.ruby-forum.com/t/best-way-to-synchronize-access-to-a-method/97842 "2006-07-11T01:46:19Z")

</div>

All, I’m reading through the Pickaxe book on synchronization and threading. I want to have a method that will basically put a MAX() value from a table and I want to ensure that two threads don’t execute this code at …

---

## [Buzz Game data retrieval library v1.0](https://www.ruby-forum.com/t/buzz-game-data-retrieval-library-v1-0/97884)

<div class="topic-metadata">

**Author:** [@C\_Erler](https://www.ruby-forum.com/u/C_Erler)\
**Replies:** 0\
**Last updated:** [July 11, 2006, 1:45am UTC](https://www.ruby-forum.com/t/buzz-game-data-retrieval-library-v1-0/97884 "2006-07-11T01:45:38Z")

</div>

The Yahoo Tech Buzz Game (http://buzz.research.yahoo.com/) is a fictional stock market for search queries. Ruby library is available at http://ruby.olathe.tv/buzz.rb Usage : require ‘buzz’ Buzz.show\_latest # Shows …

---

## [Re:](https://www.ruby-forum.com/t/re/97869)

<div class="topic-metadata">

**Author:** [@WilliamsS\_Ali](https://www.ruby-forum.com/u/WilliamsS_Ali)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 12:25am UTC](https://www.ruby-forum.com/t/re/97869 "2006-07-11T00:25:57Z")

</div>

Ok, so is http://lists.rubyonrails.org/mailman/listinfo/rails a different list than what I just subscribed to? (below) Mailing list The Ruby mailing list is probably the best way to get help on Ruby. The people of th…

---

## [Two Date classes?](https://www.ruby-forum.com/t/two-date-classes/97787)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 4\
**Last updated:** [July 10, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/two-date-classes/97787 "2006-07-10T23:50:45Z")

</div>

It seems that there is a Date class in the core library and the standard library. Is this correct? The following code core = Date.methods.sort require ‘date’ std = Date.methods.sort puts “methods in std Date that …

---

## [Reflection to get method name from within method?](https://www.ruby-forum.com/t/reflection-to-get-method-name-from-within-method/97857)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 2\
**Last updated:** [July 10, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/reflection-to-get-method-name-from-within-method/97857 "2006-07-10T23:50:27Z")

</div>

Friends- Is there anyway to use reflection or someother technique to get the name of a method from within the method when it is running? So if I had this: def foo #some magick incantation here that returns the name …

---

## [Size of st\_data\_t](https://www.ruby-forum.com/t/size-of-st-data-t/97597)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 7\
**Last updated:** [July 10, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/size-of-st-data-t/97597 "2006-07-10T23:34:39Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B st.he$B$NCf$K!“e(B typedef unsigned long st\_data\_t; e$B$H$$$&5-=R$,$”$j$^$9$,!“e(Brubye$BK\\BN$N%3!\<%I$K$Oe(Bst\_data\_te$B$,e(BVALUE e$B$HF1$8Bg$-$5$G$”$k$3$H$r4|BT$9$k5…

---

## [Instance\_exec](https://www.ruby-forum.com/t/instance-exec/97538)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 26\
**Last updated:** [July 10, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/instance-exec/97538 "2006-07-10T23:02:55Z")

</div>

i seems to recall someone came up with an impl of instance\_exec (instance\_eval that takes args) a while back - might have even been me! :wink: anyone remember? -a

---

## [Real newbie question about methods](https://www.ruby-forum.com/t/real-newbie-question-about-methods/97822)

<div class="topic-metadata">

**Author:** [@simonh](https://www.ruby-forum.com/u/simonh)\
**Replies:** 15\
**Last updated:** [July 10, 2006, 10:32pm UTC](https://www.ruby-forum.com/t/real-newbie-question-about-methods/97822 "2006-07-10T22:32:57Z")

</div>

Hi all. I’m trying to learn ruby using about 5 books(!) but keep struggling over basic things that are obvious to you guys but don’t seem to be explained in a way my brain understands. Ruby is my first programming lan…

---

## [Getting a thread id](https://www.ruby-forum.com/t/getting-a-thread-id/97836)

<div class="topic-metadata">

**Author:** [@Erich\_L](https://www.ruby-forum.com/u/Erich_L)\
**Replies:** 1\
**Last updated:** [July 10, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/getting-a-thread-id/97836 "2006-07-10T22:03:37Z")

</div>

Is there a way to get the thread id of a thread without passing around the thread object? I would like to do this because I would like to pass the thread id of a thread I created as a parameter in a rails application…

---

## [1.8.4 One-Click deletes my Rails gems!](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 7\
**Last updated:** [July 10, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815 "2006-07-10T21:23:53Z")

</div>

I noticed that Curt posted the 1.8.4 OCI to RubyForge over the weekend, so I used it today to install 1.8.4 (I had 1.8.2 here at work). After doing so, I no longer had any of my Rails gems and need to reinstall (which…

---

## [July 13 monthly meeting in Austin](https://www.ruby-forum.com/t/july-13-monthly-meeting-in-austin/97832)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/july-13-monthly-meeting-in-austin/97832 "2006-07-10T21:11:12Z")

</div>

All are welcome. If you can make it to Austin Texas on Thur night, please feel free. This Thursday will be our second night meeting… this time we aim to do it regularly, every second Thursday. Thursday July 13, 7-9 …

---

## [Static website generation](https://www.ruby-forum.com/t/static-website-generation/97748)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 5\
**Last updated:** [July 10, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/static-website-generation/97748 "2006-07-10T21:00:37Z")

</div>

Anyone have a static site generation tool to recommend? I’m looking at webgen, which seems pretty good, but if there are other nice ones out there I’d like to spend a few days comparing them before diving in. martin

---

## [Enumberable fails for class Subclass \< Array; def enum](https://www.ruby-forum.com/t/enumberable-fails-for-class-subclass-array-def-enum/97741)

<div class="topic-metadata">

**Author:** [@Laza](https://www.ruby-forum.com/u/Laza)\
**Replies:** 4\
**Last updated:** [July 10, 2006, 7:38pm UTC](https://www.ruby-forum.com/t/enumberable-fails-for-class-subclass-array-def-enum/97741 "2006-07-10T19:38:28Z")

</div>

Array includes Enumerable. But when a subclass of Array redefines each(), then Enumerable still refers to the original Array.each(). Why is that? For example: class RangeUnion \< Array def each super{|x| x.each{|i|…

---

## [Where to get eRuby to work on apache web server](https://www.ruby-forum.com/t/where-to-get-eruby-to-work-on-apache-web-server/97756)

<div class="topic-metadata">

**Author:** [@shakeel](https://www.ruby-forum.com/u/shakeel)\
**Replies:** 1\
**Last updated:** [July 10, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/where-to-get-eruby-to-work-on-apache-web-server/97756 "2006-07-10T19:35:17Z")

</div>

Pls. anybody help me that from where I would be able to get eRuby binary. I am waiting for your good response. Regards Shakeel

---

## [YAML/Syck key pass to add type block?](https://www.ruby-forum.com/t/yaml-syck-key-pass-to-add-type-block/97819)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/yaml-syck-key-pass-to-add-type-block/97819 "2006-07-10T19:24:56Z")

</div>

I’ve had a couple occasions now where having the key of the map node (or index for sequence) would have been very helpful in the my type defs a: !!table … YAML.add\_private\_type(‘table’) { |tag, data| Table.new( ke…

---

## [Xml parser + dom + robust + speed =?](https://www.ruby-forum.com/t/xml-parser-dom-robust-speed/97671)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 2\
**Last updated:** [July 10, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/xml-parser-dom-robust-speed/97671 "2006-07-10T18:01:07Z")

</div>

Hi, can somebody suggest a good parser that offers: multiple encodings production-like quality dom tree manipulation good performance is REXML the only choice or are there others? Cheers Peter

---

## [Newbie Qs on Filename convention](https://www.ruby-forum.com/t/newbie-qs-on-filename-convention/97584)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 2\
**Last updated:** [July 10, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/newbie-qs-on-filename-convention/97584 "2006-07-10T17:48:17Z")

</div>

Coming from a Java background, we are used to give filenames the same name as the public class. In Ruby, is there a convention for giving filenames. A HelloWorld program should be named Hello.rb or hello.rb ? I use t…

---

## [LDAP search and return](https://www.ruby-forum.com/t/ldap-search-and-return/97791)

<div class="topic-metadata">

**Author:** [@stuartbrand](https://www.ruby-forum.com/u/stuartbrand)\
**Replies:** 3\
**Last updated:** [July 10, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/ldap-search-and-return/97791 "2006-07-10T17:38:45Z")

</div>

Hi all I am trying to connect to our LDAP server(Active Directory :frowning: ) I can do a successful bind, the problem I have is getting the data :frowning: I think the conn.search is correct result = conn.search( …

---

## [Ruby In Steel 0.7 available - Now On Rails](https://www.ruby-forum.com/t/ruby-in-steel-0-7-available-now-on-rails/97780)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 1\
**Last updated:** [July 10, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/ruby-in-steel-0-7-available-now-on-rails/97780 "2006-07-10T17:32:29Z")

</div>

We’ve just put online the latest beta of the Steel IDE for programmming Ruby in Visual Studio 2005. The principal new features are: Rails New Project Wizard Automated database setup Rails Solution Explorer Synchro…

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

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