# Ruby

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

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

---

## [How can I get you to use mkrf?](https://www.ruby-forum.com/t/how-can-i-get-you-to-use-mkrf/66020)

<div class="topic-metadata">

**Author:** [@kdclark](https://www.ruby-forum.com/u/kdclark)\
**Replies:** 15\
**Last updated:** [August 23, 2006, 6:50am UTC](https://www.ruby-forum.com/t/how-can-i-get-you-to-use-mkrf/66020 "2006-08-23T06:50:41Z")

</div>

Hi guys, Google’s Summer of Code has officially come to a close but I in no way plan to abandon my project. It’s in a fairly stable place and working for the libraries that I’ve played with. That being said, I don’t …

---

## [Re: How to find Windows computers on Windows Network?](https://www.ruby-forum.com/t/re-how-to-find-windows-computers-on-windows-network/65970)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [August 23, 2006, 5:42am UTC](https://www.ruby-forum.com/t/re-how-to-find-windows-computers-on-windows-network/65970 "2006-08-23T05:42:33Z")

</div>

computers on my network. I cannot find similar functionality in ruby, at least so far. Does anyone know where this capabilty can be found in ruby? Thanks in advance. http://rubyforge.org/pipermail/win32utils-deve…

---

## [Melbourne ruby meetup: 29th August](https://www.ruby-forum.com/t/melbourne-ruby-meetup-29th-august/65882)

<div class="topic-metadata">

**Author:** [@Matt\_Pattison](https://www.ruby-forum.com/u/Matt_Pattison)\
**Replies:** 2\
**Last updated:** [August 23, 2006, 5:08am UTC](https://www.ruby-forum.com/t/melbourne-ruby-meetup-29th-august/65882 "2006-08-23T05:08:30Z")

</div>

Hi Melbourne (Australia) Rubyists, Here are the details of this month’s meetup, the venue is kindly provided by Thoughtworks. Date: Tuesday 29th August Time: 6pm Location: Thoughtworks Level 11, 155 Queen Street …

---

## [Protecting class "helper methods"?](https://www.ruby-forum.com/t/protecting-class-helper-methods/66075)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 0\
**Last updated:** [August 23, 2006, 5:06am UTC](https://www.ruby-forum.com/t/protecting-class-helper-methods/66075 "2006-08-23T05:06:29Z")

</div>

Start with: class C def self.class\_callme internal\_helper end def instance\_callme C.internal\_helper end def self.internal\_helper puts “I’m not needed by the outside world.” end end My first instinct was to ma…

---

## [{} as record separators?](https://www.ruby-forum.com/t/as-record-separators/65614)

<div class="topic-metadata">

**Author:** [@punkrockgeekboy](https://www.ruby-forum.com/u/punkrockgeekboy)\
**Replies:** 8\
**Last updated:** [August 23, 2006, 4:30am UTC](https://www.ruby-forum.com/t/as-record-separators/65614 "2006-08-23T04:30:26Z")

</div>

I’m working on a ruby script to read Nagios’s status.dat and output it’s data. The data format looks like this: service { host\_name=www.bob.com service\_description=bob-website modified\_attributes=0 check\_command=c…

---

## [Why Does Hash Apparently Reorder Its Internal Representation](https://www.ruby-forum.com/t/why-does-hash-apparently-reorder-its-internal-representation/65752)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 49\
**Last updated:** [August 23, 2006, 4:18am UTC](https://www.ruby-forum.com/t/why-does-hash-apparently-reorder-its-internal-representation/65752 "2006-08-23T04:18:24Z")

</div>

I was surprised to find the following… irb(main):001:0\> {:a =\> ‘a’, :b =\> ‘b’} =\> {:a=\>“a”, :b=\>“b”} irb(main):002:0\> {:a =\> ‘a’, :b =\> ‘b’, :c =\> ‘c’} =\> {:a=\>“a”, :b=\>“b”, :c=\>“c”} irb(main):003:0\> {:a =\> ‘a’, :b …

---

## [How can't i modify the to\_s method in Integer Class?](https://www.ruby-forum.com/t/how-cant-i-modify-the-to-s-method-in-integer-class/66049)

<div class="topic-metadata">

**Author:** [@grabmail](https://www.ruby-forum.com/u/grabmail)\
**Replies:** 3\
**Last updated:** [August 23, 2006, 3:10am UTC](https://www.ruby-forum.com/t/how-cant-i-modify-the-to-s-method-in-integer-class/66049 "2006-08-23T03:10:19Z")

</div>

class Integer def to\_s ‘9’ end end puts 5.to\_s I’m still getting 5.

---

## [Re: A use case for an ordered hash](https://www.ruby-forum.com/t/re-a-use-case-for-an-ordered-hash/65987)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 23, 2006, 2:52am UTC](https://www.ruby-forum.com/t/re-a-use-case-for-an-ordered-hash/65987 "2006-08-23T02:52:18Z")

</div>

Hi, I switched from ‘my’ thread because this seems more appropriate to this thread… Previously “Re: Why Does Hash Apparently Reorder Its Internal Representation And Other Associated Ponderings” Or, Is It Possible To…

---

## [Mkrf gets a mailing list](https://www.ruby-forum.com/t/mkrf-gets-a-mailing-list/66055)

<div class="topic-metadata">

**Author:** [@kdclark](https://www.ruby-forum.com/u/kdclark)\
**Replies:** 0\
**Last updated:** [August 23, 2006, 2:38am UTC](https://www.ruby-forum.com/t/mkrf-gets-a-mailing-list/66055 "2006-08-23T02:38:17Z")

</div>

mkrf now has a mailing list through rubyforge. The subscription page is here: http://rubyforge.org/mailman/listinfo/mkrf-users If you’re interested in mkrf’s development or usage, please sign up.

---

## [Re: A use case for an ordered hash](https://www.ruby-forum.com/t/re-a-use-case-for-an-ordered-hash/65995)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 23, 2006, 2:24am UTC](https://www.ruby-forum.com/t/re-a-use-case-for-an-ordered-hash/65995 "2006-08-23T02:24:17Z")

</div>

That should have probably read: m = \[:a =\> ‘a’\] # m is for map. I could go for this term too as it has brevity. =\> \[:a =\> ‘a’\] m\[0\] =\> \[:a =\> ‘a’\] # m remains as an associative array. m\[:a\] =\> ‘a’ # and m becomes…

---

## [Re: Why Does Hash Apparently Reorder Its Internal Representa](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/65974)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 23, 2006, 2:20am UTC](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/65974 "2006-08-23T02:20:16Z")

</div>

\<thoran / thoran.com\> wrote in message news:2d4684b07b9f965e5078fdb46754fac3@shiny… h\[0\] There’s no great call for the immediately above I would think, but if I implemented one then I would implement the other also…

---

## [PBI - mashing up RGL and method\_missing](https://www.ruby-forum.com/t/pbi-mashing-up-rgl-and-method-missing/65955)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 3\
**Last updated:** [August 23, 2006, 2:16am UTC](https://www.ruby-forum.com/t/pbi-mashing-up-rgl-and-method-missing/65955 "2006-08-23T02:16:16Z")

</div>

Ruby Graph Language (RGL) allows graphical structures to be modeled as collections of objects. So, you can ask a node to iterate through its neighbors, etc. I’ve been toying with ways to extend this notion, using (s…

---

## [Re: Why Does Hash Apparently Reorder Its Internal Representa](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/65837)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [August 23, 2006, 2:12am UTC](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/65837 "2006-08-23T02:12:15Z")

</div>

I doubt it would have helped very much with respect to those responses which are bordering(?) on abusive (You know the ones that go like: “You’re such a dickhead!”, which is meant by imputation to be understood as “I’…

---

## [Help needed on a just-for-fun-exercise](https://www.ruby-forum.com/t/help-needed-on-a-just-for-fun-exercise/65763)

<div class="topic-metadata">

**Author:** [@Srinivas\_JONNALAGAD](https://www.ruby-forum.com/u/Srinivas_JONNALAGAD)\
**Replies:** 3\
**Last updated:** [August 23, 2006, 1:50am UTC](https://www.ruby-forum.com/t/help-needed-on-a-just-for-fun-exercise/65763 "2006-08-23T01:50:13Z")

</div>

Dear all, I was trying the well-known problem of writing a program that outputs itself. Here is first trial. s = “\\nprint “s = \\””\\n0.upto(s.length) { |i| printf("%c “, ?s\[i\]) }\\nprint “\\””\\nputs s" print “s = “” 0…

---

## [QAPrototype (#91)](https://www.ruby-forum.com/t/qaprototype-91/66036)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 10:53pm UTC](https://www.ruby-forum.com/t/qaprototype-91/66036 "2006-08-22T22:53:52Z")

</div>

module QAPrototype def method\_missing(method\_name) puts “#{method\_name} is undefined” puts “Please define what I should do (end with a newline):” (code ||= "") \<\< (line = gets) until line and line.chomp.empty? se…

---

## [How do I get the row number off of a Excel Row object?](https://www.ruby-forum.com/t/how-do-i-get-the-row-number-off-of-a-excel-row-object/65990)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 10:51pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-row-number-off-of-a-excel-row-object/65990 "2006-08-22T22:51:52Z")

</div>

I have the following code script.rows(1:10).each { |row| } Is there a way that I can call something like row.rowNumber? I just need to know what row num I am on. I have tried each\_with\_index, but that does not seem…

---

## [Re: Why Does Hash Apparently Reorder Its Internal Representa](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/66004)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/66004 "2006-08-22T22:31:47Z")

</div>

Dear Spamhater, When it gets ad hominem is when I perceive it as an attack. Staying strictly to the subject does not get seen this way. I only took issue with it because I dislike the tenor that it sets for the list…

---

## [Setting namespace in loaded files](https://www.ruby-forum.com/t/setting-namespace-in-loaded-files/65881)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 9\
**Last updated:** [August 22, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/setting-namespace-in-loaded-files/65881 "2006-08-22T22:27:44Z")

</div>

Hi all, I’m dynamically loading some ruby files, and those files need to call a method on a module of mine. E.g., in this case, the method is Puppet::Parser::Functions.newfunction, and the files are autoloaded from …

---

## [Gem pessimistic versioning - bug?](https://www.ruby-forum.com/t/gem-pessimistic-versioning-bug/65952)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 22, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/gem-pessimistic-versioning-bug/65952 "2006-08-22T21:23:37Z")

</div>

can anyone provide a good reason why both of these should not work? harp:~ \> ruby -r rubygems -e’ require\_gem “dynaload”, “~\> 0.1”; p Dynaload::VERSION ’ “0.2.0” harp:~ \> ruby -r rubygems -e’ require\_gem “dynaloa…

---

## [Re: Ruby on Windows questions](https://www.ruby-forum.com/t/re-ruby-on-windows-questions/66007)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/re-ruby-on-windows-questions/66007 "2006-08-22T21:15:36Z")

</div>

How do I find out the CPU % (or some sort of a load indicator) of the machine? Either use sys-cpu (on the RAA) or use your own custom script using a combination of win32ole + wmi. See wmi/win32\_processor.asp H…

---

## [Re: What is the typical latency on this list?](https://www.ruby-forum.com/t/re-what-is-the-typical-latency-on-this-list/65986)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/re-what-is-the-typical-latency-on-this-list/65986 "2006-08-22T20:57:34Z")

</div>

On 8/22/06, Rich M. removed\_email\_address@domain.invalid wrote: I ask because I posted a message at 8:20 Subject: PBI - mashing up RGL and method\_missing Message-Id: \<p06230914c110cc8d3bb9@\[192.168.254.205\]\> and, n…

---

## [Ruby on Windows questions](https://www.ruby-forum.com/t/ruby-on-windows-questions/66002)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-on-windows-questions/66002 "2006-08-22T20:49:33Z")

</div>

Gotta port some software to Windows… :frowning: I’m a Windows newbie. Using Ruby on Windows (XP)… How do I find out the CPU % (or some sort of a load indicator) of the machine? How do I find out how much of a gi…

---

## [Re: How to search Ruby files in Windows](https://www.ruby-forum.com/t/re-how-to-search-ruby-files-in-windows/65998)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 8:17pm UTC](https://www.ruby-forum.com/t/re-how-to-search-ruby-files-in-windows/65998 "2006-08-22T20:17:28Z")

</div>

Can you give us the non-RubyURL link, since the service seems to be down currently? Although the rubyurl link worked for me just now, here’s what it resolved to: http://www.arcadianvisions.com/images/RubyMethodSea…

---

## [RubyGem Not Respecting Proxy Argument?](https://www.ruby-forum.com/t/rubygem-not-respecting-proxy-argument/65979)

<div class="topic-metadata">

**Author:** [@Nicholas\_E](https://www.ruby-forum.com/u/Nicholas_E)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/rubygem-not-respecting-proxy-argument/65979 "2006-08-22T19:43:27Z")

</div>

Howdy list, I believe that I stumbled across a bug in RubyGems. I apologize if this is the wrong place to send such a report, but I could find nowhere else. So, I am required to go through a proxy server for outbound…

---

## [Microtime / Milliseconds?](https://www.ruby-forum.com/t/microtime-milliseconds/65983)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [August 22, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/microtime-milliseconds/65983 "2006-08-22T19:31:01Z")

</div>

How do I get more precision that seconds in ruby? If I wanted to know 1 millisecond passed how would I do this? Thanks for your help.

---

## [What is the typical latency on this list?](https://www.ruby-forum.com/t/what-is-the-typical-latency-on-this-list/65981)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/what-is-the-typical-latency-on-this-list/65981 "2006-08-22T19:12:54Z")

</div>

I ask because I posted a message at 8:20 Subject: PBI - mashing up RGL and method\_missing Message-Id: \<p06230914c110cc8d3bb9@\[192.168.254.205\]\> and, nearly two hours later, I haven’t seen it appear. -r http://www.cf…

---

## [Unzipping a gzipped string](https://www.ruby-forum.com/t/unzipping-a-gzipped-string/65894)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [August 22, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/unzipping-a-gzipped-string/65894 "2006-08-22T19:08:54Z")

</div>

I’m trying to unzip a string I have in memory, but unfortunately I keep getting a ‘incorrect header check (Zlib::DataError)’ when I try to unzip the string. The weird thing is that I can write the string out to a file…

---

## [Re: Dir.bitbucket?](https://www.ruby-forum.com/t/re-dir-bitbucket/65951)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/re-dir-bitbucket/65951 "2006-08-22T18:22:46Z")

</div>

Hal F. wrote in \[ruby-talk:209823\]: Agreed. File would be a better location for the it. Or even IO perhaps? IO isn’t always associated with a certain path. I’d prefer File.null. That’s fine with me. If we’re …

---

## [How to find Windows computers on Windows Network?](https://www.ruby-forum.com/t/how-to-find-windows-computers-on-windows-network/65884)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-find-windows-computers-on-windows-network/65884 "2006-08-22T18:06:44Z")

</div>

I want to use Ruby to scan a Windows network for a set of files and replace them if they are out of date. I have been using a Python script which uses win32net to find all the computers on my network. I cannot find …

---

## [Re: Why Does Hash Apparently Reorder Its Internal Representa](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/65944)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/re-why-does-hash-apparently-reorder-its-internal-representa/65944 "2006-08-22T18:00:43Z")

</div>

It doesn’t seem very PoLS to have it reordered, although perhaps one shouldn’t be surprised that a hash is unordered? Perhaps Matz is convincing us of this statement? Said Matz unto the flock in a loud, Godly voice…

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

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