# Ruby

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

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

---

## [./miniruby runruby.rb bin/rdoc --fmt=html does not work](https://www.ruby-forum.com/t/miniruby-runruby-rb-bin-rdoc-fmt-html-does-not-work/74658)

<div class="topic-metadata">

**Author:** [@subroutine](https://www.ruby-forum.com/u/subroutine)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/miniruby-runruby-rb-bin-rdoc-fmt-html-does-not-work/74658 "2006-11-07T10:51:50Z")

</div>

Hi, I can’t make the html documentation with rdoc during the build. What could be the problem? Without debug argument I get /usr/src/packages/BUILD/ruby/lib/rdoc/template.rb:195: \[BUG\] rb\_gc\_mark(): unknown data typ…

---

## [C API: Get the error associated with a RUBY\_EVENT\_RAISE even](https://www.ruby-forum.com/t/c-api-get-the-error-associated-with-a-ruby-event-raise-even/74652)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/c-api-get-the-error-associated-with-a-ruby-event-raise-even/74652 "2006-11-07T10:51:47Z")

</div>

Hi, I’m using rb\_add\_event\_hook() with the RUBY\_EVENT\_RAISE flag, and I’m struggling to find a function to tell me what error actually happened. I know where it happened with rb\_backtrace() which is great, but I still …

---

## [File I/O](https://www.ruby-forum.com/t/file-i-o/74654)

<div class="topic-metadata">

**Author:** [@name\_pipe](https://www.ruby-forum.com/u/name_pipe)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/file-i-o/74654 "2006-11-07T10:51:43Z")

</div>

Hello, I have some text to be written to a file. After receiving data from webrick server I modify it lil bit and then write it to a file. fd = File.open(“file.txt”, “w”) fd.puts “#{data}” The code doesnt give erro…

---

## [Variable access through self](https://www.ruby-forum.com/t/variable-access-through-self/74636)

<div class="topic-metadata">

**Author:** [@Michael\_PSSoulier](https://www.ruby-forum.com/u/Michael_PSSoulier)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/variable-access-through-self/74636 "2006-11-07T10:51:41Z")

</div>

Hi, I’ve seen a lot of examples in Rails code where they’re accessing what appear to be instance variables from self. Something like self.foo = true Now, I’m assuming that you can only access methods this way, so th…

---

## [How to hide dos prompt?](https://www.ruby-forum.com/t/how-to-hide-dos-prompt/74634)

<div class="topic-metadata">

**Author:** [@camenix](https://www.ruby-forum.com/u/camenix)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/how-to-hide-dos-prompt/74634 "2006-11-07T10:51:23Z")

</div>

Hi, I want to run a ruby script on windows hiding dos prompt ,because some code come from lib, I can’t use rubyw.exe to solve this problem. The question is ,how to hiding dos prompt without deleting all the “puts”, …

---

## [DRb callback when objects are unmarshalled, on the client?](https://www.ruby-forum.com/t/drb-callback-when-objects-are-unmarshalled-on-the-client/74640)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/drb-callback-when-objects-are-unmarshalled-on-the-client/74640 "2006-11-07T10:51:19Z")

</div>

Hi, We are trying to figure out where to “hook” in DRb in order to be notified when an object has just been unmarshalled, on the client. Does anybody have an idea? The goal is to add local functions dynamically, as s…

---

## [Is there really an impending Ruby fracture?](https://www.ruby-forum.com/t/is-there-really-an-impending-ruby-fracture/73553)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 32\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/is-there-really-an-impending-ruby-fracture/73553 "2006-11-07T10:51:16Z")

</div>

Well … I’ve been home from RubyConf for a day now. I sort of expected someone would have spotted this and commented on it (here) by now, but they haven’t. In any event, I came away from the conference with a completel…

---

## [Fuzzy Time (#99)](https://www.ruby-forum.com/t/fuzzy-time-99/73840)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 27\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/fuzzy-time-99/73840 "2006-11-07T10:51:14Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Ruby performance on Windows XP](https://www.ruby-forum.com/t/ruby-performance-on-windows-xp/74489)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 25\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/ruby-performance-on-windows-xp/74489 "2006-11-07T10:51:01Z")

</div>

While I am working in Rails, I’m noticing that Ruby many times completely dogs the system taking forever to reload a page. Reading under task manager I’m seeing that ruby.exe is CPU = 99 and Mem Usage = 50,000K I’m…

---

## [Re: regex capture and assign... in one line?](https://www.ruby-forum.com/t/re-regex-capture-and-assign-in-one-line/74619)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/re-regex-capture-and-assign-in-one-line/74619 "2006-11-07T10:50:55Z")

</div>

From: Nate M. \[mailto:removed\_email\_address@domain.invalid\] $str = “foo123”; my ($foo,$bar) = $str =~ /(\\w+)(\\d+)/; irb(main):001:0\> str = “foo123” =\> “foo123” irb(main):004:0\> \_,foo,bar = /(\\w+)(\\d+)/.match( str …

---

## [Re: simple smtp server](https://www.ruby-forum.com/t/re-simple-smtp-server/74608)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/re-simple-smtp-server/74608 "2006-11-07T10:50:53Z")

</div>

From: Hartin, Brian \[mailto:removed\_email\_address@domain.invalid\] I second the question. :slight\_smile: From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] I’d like to understa…

---

## [X10 and ruby?](https://www.ruby-forum.com/t/x10-and-ruby/73597)

<div class="topic-metadata">

**Author:** [@ismoore](https://www.ruby-forum.com/u/ismoore)\
**Replies:** 9\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/x10-and-ruby/73597 "2006-11-07T10:50:51Z")

</div>

hi all, i’m interested in using x10 and a home automation project to play around with ruby. i see that a couple of years ago there was talk on this list about that, and before that hal fulton had some experimental co…

---

## [Rails install problem?](https://www.ruby-forum.com/t/rails-install-problem/74620)

<div class="topic-metadata">

**Author:** [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/rails-install-problem/74620 "2006-11-07T10:50:40Z")

</div>

I just installed ruby on my CentOS 4.4 system, using yum: sauron.deepsoft.com% rpm -qa | grep ruby ruby-devel-1.8.1-7.EL4.6 ruby-mode-1.8.1-7.EL4.6 ruby-libs-1.8.1-7.EL4.6 ruby-tcltk-1.8.1-7.EL4.6 ruby-docs-1.8.1-7…

---

## [PuneRuby Ruby Group Meeting for November](https://www.ruby-forum.com/t/puneruby-ruby-group-meeting-for-november/74623)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/puneruby-ruby-group-meeting-for-november/74623 "2006-11-07T10:50:28Z")

</div>

Hello all, The PuneRuby, Ruby U. Group November meeting: Date: Saturday, 4th Nov. 2006 Time: 5 pm Location: SICSR, 7th Floor, Model Colony, Pune, India See http://tech.groups.yahoo.com/group/puner…

---

## [SouthWest RubyConf?](https://www.ruby-forum.com/t/southwest-rubyconf/73930)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 20\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/southwest-rubyconf/73930 "2006-11-07T10:50:22Z")

</div>

Is anyone aware of, or interested in helping prepare, plans for a U.S. SouthWest RubyConf 2007? – James B. “A principle or axiom is of no value without the rules for applying it.” Len Bullard

---

## [Simple smtp server](https://www.ruby-forum.com/t/simple-smtp-server/74559)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/simple-smtp-server/74559 "2006-11-07T10:50:17Z")

</div>

Hello folks, I’d like to understand if anybody has ever written a very simple smtp server (supporting SSL authentication). I’d like to write an stmp proxy for my own personal usage and I’m trying to understand where t…

---

## [Puzzling over why ri can open the std ruby/ri .yaml files, b](https://www.ruby-forum.com/t/puzzling-over-why-ri-can-open-the-std-ruby-ri-yaml-files-b/74612)

<div class="topic-metadata">

**Author:** [@epasquier](https://www.ruby-forum.com/u/epasquier)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/puzzling-over-why-ri-can-open-the-std-ruby-ri-yaml-files-b/74612 "2006-11-07T10:50:16Z")

</div>

If I run \<\>, no problem. But with this code: ########## require ‘yaml’ require ‘pp’ class RiFinder def initialize(sysdir) @sysdir = sysdir end def get\_class\_info(clsName, info) clsFile = “#{@sysdir}/#{clsName}/…

---

## [San Diego Ruby Brigade Meeting: November 2, 7:30pm, UCSD Cam](https://www.ruby-forum.com/t/san-diego-ruby-brigade-meeting-november-2-7-30pm-ucsd-cam/74616)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/san-diego-ruby-brigade-meeting-november-2-7-30pm-ucsd-cam/74616 "2006-11-07T10:50:12Z")

</div>

The San Diego Ruby Brigade is holding its monthly presentation-style meeting this Thursday on the UCSD campus. Our presentations so far include: Atom Syndication \[Ted O’Conner & Patrick Crowley\] Ruby/Rails Idioms \[To…

---

## [Re: Syntax q on ActiveRecord](https://www.ruby-forum.com/t/re-syntax-q-on-activerecord/74613)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/re-syntax-q-on-activerecord/74613 "2006-11-07T10:50:10Z")

</div>

From: Michael W. Ryder \[mailto:removed\_email\_address@domain.invalid\] This is also a newsgroup and I haven’t noticed any news groups for rails. \[snip\] For posterity, I feel the need to note (for posterity and archiv…

---

## [Can there be a "with" construction?](https://www.ruby-forum.com/t/can-there-be-a-with-construction/73890)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/can-there-be-a-with-construction/73890 "2006-11-07T10:50:09Z")

</div>

Some languages have a “with” construction, where undefined methods are routed to a designated object. Here’s an example from UserTalk: with system.startup { string(license) } UserTalk knows what “string” is, but whe…

---

## [Unable to send to the mailing list](https://www.ruby-forum.com/t/unable-to-send-to-the-mailing-list/73881)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/unable-to-send-to-the-mailing-list/73881 "2006-11-07T10:50:03Z")

</div>

All the messages from removed\_email\_address@domain.invalid to removed\_email\_address@domain.invalid in the past few weeks (months?) have been dropped and never made it to the list. Who should I contact about resolving …

---

## [Re: Duck typing and the Standard Library](https://www.ruby-forum.com/t/re-duck-typing-and-the-standard-library/74609)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:50am UTC](https://www.ruby-forum.com/t/re-duck-typing-and-the-standard-library/74609 "2006-11-07T10:50:00Z")

</div>

Why is it bad practice to check the type of a value at runtime? I’m new to Ruby, but I thought that I had read that it is dynamically, strongly typed, meaning that variables do not have types but values do. I would …

---

## [Re: simple smtp server](https://www.ruby-forum.com/t/re-simple-smtp-server/74606)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/re-simple-smtp-server/74606 "2006-11-07T10:49:52Z")

</div>

I second the question. :slight\_smile: Brian H.

---

## [Send me your rubyconf presentations!](https://www.ruby-forum.com/t/send-me-your-rubyconf-presentations/74604)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/send-me-your-rubyconf-presentations/74604 "2006-11-07T10:49:45Z")

</div>

I’ve hosted the last 4 years worth of rubyconf presentation materials and I’m not about to stop now. Send em my way and I’ll get em up. Oh… and for all you slackers… send your old ones if they’re listed as missing:

---

## [$B%F%9%HEj9F$G$9(B](https://www.ruby-forum.com/t/b-f-9-hej9f-g-9-b/74601)

<div class="topic-metadata">

**Author:** [@MoonWolf](https://www.ruby-forum.com/u/MoonWolf)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/b-f-9-hej9f-g-9-b/74601 "2006-11-07T10:49:39Z")

</div>

MoonWolfe$B$G$9!#e(B e$B$3$s$I$3$=e(BSpamAssasine$B$rDL$jH4$1$i$l$k$+$Je(B?

---

## [Net/http performance question](https://www.ruby-forum.com/t/net-http-performance-question/74531)

<div class="topic-metadata">

**Author:** [@bornboulder](https://www.ruby-forum.com/u/bornboulder)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/net-http-performance-question/74531 "2006-11-07T10:49:37Z")

</div>

I have the following code: def fetch\_into (uri, name) http = Net::HTTP.new(uri.host, uri.port) req = Net::HTTP::Get.new(uri.path) req.basic\_auth(USERNAME, PASSWORD) start\_time = Time.now.to\_f File.open(name, “w”) d…

---

## [Re: Class inheriting from class within the namespace](https://www.ruby-forum.com/t/re-class-inheriting-from-class-within-the-namespace/74598)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/re-class-inheriting-from-class-within-the-namespace/74598 "2006-11-07T10:49:34Z")

</div>

From: matt neuburg \[mailto:removed\_email\_address@domain.invalid\] Why wouldn’t you do this? module TreeStuff class Node end class Tree \< Node end end Only because it’s an annoying namespace level that the user w…

---

## [Class inheriting from class within the namespace](https://www.ruby-forum.com/t/class-inheriting-from-class-within-the-namespace/74595)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/class-inheriting-from-class-within-the-namespace/74595 "2006-11-07T10:49:31Z")

</div>

Tree structures are interesting. Often the root of the tree is used as a handle for the tree itself. However, the tree often has additional methods beyond that of the root node. I couldn’t figure out how to do this si…

---

## [Picking a GUI toolkit for use with Ruby on windows](https://www.ruby-forum.com/t/picking-a-gui-toolkit-for-use-with-ruby-on-windows/74501)

<div class="topic-metadata">

**Author:** [@Mischa\_K](https://www.ruby-forum.com/u/Mischa_K)\
**Replies:** 9\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/picking-a-gui-toolkit-for-use-with-ruby-on-windows/74501 "2006-11-07T10:49:27Z")

</div>

Hi guys, I’m wondering which GUI toolkit I should use for experimenting with GUI programming with windows. My selectionpoints: Free for non commercial use A graphical designer Simple to use Not 2 awfull to look at …

---

## [Re: How can I populate header values in SOAP document?](https://www.ruby-forum.com/t/re-how-can-i-populate-header-values-in-soap-document/74597)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/re-how-can-i-populate-header-values-in-soap-document/74597 "2006-11-07T10:49:27Z")

</div>

I was able to get the namespace abbreviations right by returning a hash from on\_simple\_outbound instead of a string, letting the API handle the conversion to XML. A handler to add authentication parameters to the SOAP…

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

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