# Ruby

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

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

---

## [Convert GMT to EST](https://www.ruby-forum.com/t/convert-gmt-to-est/120510)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [November 17, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/convert-gmt-to-est/120510 "2007-11-17T21:25:25Z")

</div>

I have a datetime data which is in GMT. i want to convert it to EST factoring in the daylight savings too. is there any libraries that would do it. appreciate the help

---

## [Not feeling the flogâ€¦](https://www.ruby-forum.com/t/not-feeling-the-floga/120467)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 3\
**Last updated:** [November 17, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/not-feeling-the-floga/120467 "2007-11-17T21:18:23Z")

</div>

I don’t think that I’m really understanding the value of flog. Heckle, I get. What am I supposed to do with a report like this: Total score = 2264.64752355478 RGB#none: (486.2) 169.4: freeze 160.6: new 135.5: lit\_f…

---

## [IronRuby on Mono test log](https://www.ruby-forum.com/t/ironruby-on-mono-test-log/120494)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/ironruby-on-mono-test-log/120494 "2007-11-17T18:15:44Z")

</div>

I uploaded test log for IronRuby on Mono, specifically output of “rake test\_compiler mono=1”. http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/test\_compiler.log Following scenarios fail; others pass: Scenario\_Ru…

---

## [DLR test suite](https://www.ruby-forum.com/t/dlr-test-suite/120499)

<div class="topic-metadata">

**Author:** [@Jb\_Evain](https://www.ruby-forum.com/u/Jb_Evain)\
**Replies:** 1\
**Last updated:** [November 17, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/dlr-test-suite/120499 "2007-11-17T18:15:08Z")

</div>

Hey, I was talking with Seo on #mono about his efforts to test IR and IP on Mono. For now, we rely only on tests provided for IP and IR. I was thinking, you guys must have a dedicated DLR test suite? If so, it would …

---

## [Problem with input value](https://www.ruby-forum.com/t/problem-with-input-value/120506)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 0\
**Last updated:** [November 17, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/problem-with-input-value/120506 "2007-11-17T18:11:54Z")

</div>

I want to know how to get input value in Ruby?? don’t use GUI I use print "Enter ID : " id = gets.to\_i it can work in cmd but in many IDE it doesn’t work :’( how can I do it??

---

## [Argv defines](https://www.ruby-forum.com/t/argv-defines/120428)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 2\
**Last updated:** [November 17, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/argv-defines/120428 "2007-11-17T17:30:40Z")

</div>

if i wanted to ARGV this, how would i do it? IE from the command line i would want to do as such — ./script.rb User.join\_group(“Group\_1”) Any ideas? class User class \<\< self def join\_group(newgroup) @@base = PGcon…

---

## [An interesting one-liner to ponder](https://www.ruby-forum.com/t/an-interesting-one-liner-to-ponder/120454)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [November 17, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/an-interesting-one-liner-to-ponder/120454 "2007-11-17T17:27:09Z")

</div>

Here’s an interesting one-liner to ponder. 0.step(100, rand) { |x| puts x } Think of timers, for games or whatever, you could easily alter the pseudo-random stepping increment to make it bigger but random, or have br…

---

## [Ploblem with SciTE](https://www.ruby-forum.com/t/ploblem-with-scite/120478)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 2\
**Last updated:** [November 17, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/ploblem-with-scite/120478 "2007-11-17T16:24:53Z")

</div>

hi! I’m a new programmer in Ruby and now I have problem with ruby in SciTE when I want to take input to operate with function I use print "Enter First Name : " firstName = gets.to\_s It can’t show output when press ‘…

---

## [REXML memory consumption](https://www.ruby-forum.com/t/rexml-memory-consumption/120469)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/rexml-memory-consumption/120469 "2007-11-17T15:16:25Z")

</div>

My process memory usage has been increasing steadily, and some probing pointed me to REXML. I created a test that consisted of feeding 10 xml files ranging in size from 15kB to 270kB to REXML::Document.new(). The fi…

---

## [No such file to load -- tk (LoadError)](https://www.ruby-forum.com/t/no-such-file-to-load-tk-loaderror/120490)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 0\
**Last updated:** [November 17, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-tk-loaderror/120490 "2007-11-17T15:08:51Z")

</div>

hello I just use netbeans instead SciTE because SciTE has some problem with output and netbeans don’t has that problem but when I want to make GUI and I use require ‘tk’ netbeans show this message C:\\Users\\Acer\\Ne…

---

## [Problem with String.gsub and \\' as a replacement string](https://www.ruby-forum.com/t/problem-with-string-gsub-and-as-a-replacement-string/120482)

<div class="topic-metadata">

**Author:** [@ridcully](https://www.ruby-forum.com/u/ridcully)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/problem-with-string-gsub-and-as-a-replacement-string/120482 "2007-11-17T12:48:44Z")

</div>

Hi, I want to replace all occurences of a certain character in a string with a backslash followed by a single quote. Sounds like a trivial task, but this is what I get: “this is a test”.gsub( “a”, “\\’” ) -\> “this i…

---

## [EZ install for RMagick on OS X](https://www.ruby-forum.com/t/ez-install-for-rmagick-on-os-x/120430)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 11:19am UTC](https://www.ruby-forum.com/t/ez-install-for-rmagick-on-os-x/120430 "2007-11-17T11:19:06Z")

</div>

With the help of several good folks I’ve been able to come up a new, simplified process for installing RMagick on OS X using MacPorts. It’s basically a 3-step process: install MacPorts (if you haven’t already), insta…

---

## [Void value expression](https://www.ruby-forum.com/t/void-value-expression/120474)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 2\
**Last updated:** [November 17, 2007, 10:26am UTC](https://www.ruby-forum.com/t/void-value-expression/120474 "2007-11-17T10:26:20Z")

</div>

I’m a Ruby & OO newbie, so please bear with me. I wrote a Ruby script that works, but it is written in a “procedural” way as opposed to OO. I’m now trying to convert it to OO principles, but am having a tough time. …

---

## [License of the ruby standard library](https://www.ruby-forum.com/t/license-of-the-ruby-standard-library/120376)

<div class="topic-metadata">

**Author:** [@thilinamb](https://www.ruby-forum.com/u/thilinamb)\
**Replies:** 2\
**Last updated:** [November 17, 2007, 9:47am UTC](https://www.ruby-forum.com/t/license-of-the-ruby-standard-library/120376 "2007-11-17T09:47:09Z")

</div>

hi, I am not going to ask any technical issue. What is the license that is applied for the Ruby standard library(which is distributed with ruby installation). Can we redistribute it ? thanks and regards, buddhika

---

## [Questions about TCPSocket](https://www.ruby-forum.com/t/questions-about-tcpsocket/120382)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 3\
**Last updated:** [November 17, 2007, 8:45am UTC](https://www.ruby-forum.com/t/questions-about-tcpsocket/120382 "2007-11-17T08:45:49Z")

</div>

Dear all, I am trying to use Ruby bindings of a software that does computations by exchanging messages between competent code. The details are explained here: This software can be used from the command line and the…

---

## ["instance\_eval" (eg, sent to a class object)](https://www.ruby-forum.com/t/instance-eval-eg-sent-to-a-class-object/120433)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 10\
**Last updated:** [November 17, 2007, 7:41am UTC](https://www.ruby-forum.com/t/instance-eval-eg-sent-to-a-class-object/120433 "2007-11-17T07:41:12Z")

</div>

I’ve poked around, but I don’t get instance\_eval at all. I do know what it means to evaluate code in the context of a class object. Ie, I know what this does: class Foo # We're now in the context of the object Foo.…

---

## [Gem update & $LOAD\_PATH](https://www.ruby-forum.com/t/gem-update-load-path/120458)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [November 17, 2007, 6:31am UTC](https://www.ruby-forum.com/t/gem-update-load-path/120458 "2007-11-17T06:31:16Z")

</div>

I am using ruby-gems v0.9.4p0 on OpenBSD 4.2. I am trying to update all my gems (gem update --system) but after a while I get an error: Searching $LOAD\_PATH for stubs to optionally delete (may take a while)… …done. No…

---

## [Range#=== operator](https://www.ruby-forum.com/t/range-operator/119621)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 18\
**Last updated:** [November 17, 2007, 6:15am UTC](https://www.ruby-forum.com/t/range-operator/119621 "2007-11-17T06:15:29Z")

</div>

Forwarding this onto the list for Peter who’s having mail problems … From: Peter Bacon D. \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, November 08, 2007 2:35 AM To: John L. (DLR) Subject: FW: Range#=…

---

## [SVN r56: binary files in the repository](https://www.ruby-forum.com/t/svn-r56-binary-files-in-the-repository/120460)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 3\
**Last updated:** [November 17, 2007, 6:08am UTC](https://www.ruby-forum.com/t/svn-r56-binary-files-in-the-repository/120460 "2007-11-17T06:08:29Z")

</div>

A lot of binary files were introduced to the repository under tests/ironruby in SVN r56. Is this intentional?

---

## [Ruby/pcap with threads](https://www.ruby-forum.com/t/ruby-pcap-with-threads/120359)

<div class="topic-metadata">

**Author:** [@kenny\_roytman](https://www.ruby-forum.com/u/kenny_roytman)\
**Replies:** 3\
**Last updated:** [November 17, 2007, 4:27am UTC](https://www.ruby-forum.com/t/ruby-pcap-with-threads/120359 "2007-11-17T04:27:31Z")

</div>

Hi Everyone, Can someone please explain why I don’t see any output from the following code? I’m stumped. By the way, “en1” is the name of my network device. Thanks. code: 1 require 'pcaplet' 2 3 include Pca…

---

## [MySQL failed to install due to priveleges](https://www.ruby-forum.com/t/mysql-failed-to-install-due-to-priveleges/120118)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 4:25am UTC](https://www.ruby-forum.com/t/mysql-failed-to-install-due-to-priveleges/120118 "2007-11-17T04:25:46Z")

</div>

MySQL failed to install and gave the following error: Product: MySQL Server 5.0 – Error 1925.You do not have sufficient privileges to complete this installation for all users of the machine. Log on as an administrato…

---

## [Able to reproduce segfault, what now?](https://www.ruby-forum.com/t/able-to-reproduce-segfault-what-now/120401)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 17, 2007, 4:22am UTC](https://www.ruby-forum.com/t/able-to-reproduce-segfault-what-now/120401 "2007-11-17T04:22:14Z")

</div>

/usr/lib/ruby/1.8/ostruct.rb:74: \[BUG\] Segmentation fault ruby 1.8.6 (2007-09-23) \[i686-linux\] unfortunately, it’s not a small test case how do I gather more info for someone to take a look?

---

## [Yielding an object and caring about the result: the cousin of Object#tap](https://www.ruby-forum.com/t/yielding-an-object-and-caring-about-the-result-the-cousin-of-object-tap/120038)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 35\
**Last updated:** [November 17, 2007, 4:03am UTC](https://www.ruby-forum.com/t/yielding-an-object-and-caring-about-the-result-the-cousin-of-object-tap/120038 "2007-11-17T04:03:29Z")

</div>

The idea of Object#tap is to insert a “listener” (like tapping a phone line) into the object chain without affecting the object (without being caught eavesdropping). On the other hand, we often wish to transform the c…

---

## [New update on SVN!](https://www.ruby-forum.com/t/new-update-on-svn/120456)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 0\
**Last updated:** [November 17, 2007, 2:54am UTC](https://www.ruby-forum.com/t/new-update-on-svn/120456 "2007-11-17T02:54:57Z")

</div>

Tomas finally got the big checkin from RubyConf into TFS this week. I’m pushing out an update to SVN now, and I’ll follow up with another giant mail that will detail all DLR changes in the last 3 weeks since our last …

---

## [Pickaxe: "Top-Level Execution Environment"](https://www.ruby-forum.com/t/pickaxe-top-level-execution-environment/120451)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [November 17, 2007, 2:26am UTC](https://www.ruby-forum.com/t/pickaxe-top-level-execution-environment/120451 "2007-11-17T02:26:07Z")

</div>

I have a bone to pick with the generally-wonderful Pickaxe regarding “Top-Level Execution Environment”, which states: At the top-level, we’re executing in the context of some predefined object \[of class Object\]. When…

---

## [PDF of Flanagan and Matsumoto Ruby book?](https://www.ruby-forum.com/t/pdf-of-flanagan-and-matsumoto-ruby-book/120406)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 17, 2007, 2:06am UTC](https://www.ruby-forum.com/t/pdf-of-flanagan-and-matsumoto-ruby-book/120406 "2007-11-17T02:06:49Z")

</div>

Hello, Apologies if this topic has already come up - I searched google groups but didn’t find anything recent. I notice that “The Ruby P.ming Language” by David Flanagan and Yukihiro M. is scheduled for a Dec07/Jan…

---

## [Meta-class subclass relationships](https://www.ruby-forum.com/t/meta-class-subclass-relationships/120371)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 18\
**Last updated:** [November 17, 2007, 1:44am UTC](https://www.ruby-forum.com/t/meta-class-subclass-relationships/120371 "2007-11-17T01:44:36Z")

</div>

Ruby exposes its singleton meta-classes, eg: class \<\<B ; $Meta\_B = self ; end But their relationships are not quite what I expected. For example: Suppose that A inherits from B (and B inherits from Object). Of cours…

---

## [Problem: ruby-fcgi on windows blocks other threads](https://www.ruby-forum.com/t/problem-ruby-fcgi-on-windows-blocks-other-threads/120296)

<div class="topic-metadata">

**Author:** [@xuan](https://www.ruby-forum.com/u/xuan)\
**Replies:** 3\
**Last updated:** [November 17, 2007, 12:28am UTC](https://www.ruby-forum.com/t/problem-ruby-fcgi-on-windows-blocks-other-threads/120296 "2007-11-17T00:28:02Z")

</div>

Hi, I’m working on a project that requires me to run a multi-thread script on windows/apache/fastcgi, but ruby-fcgi seems to block all other threads when listening to the request. I tested this on Linux, and fcgi wor…

---

## [Let/as with local variable hiding](https://www.ruby-forum.com/t/let-as-with-local-variable-hiding/120448)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [November 17, 2007, 12:19am UTC](https://www.ruby-forum.com/t/let-as-with-local-variable-hiding/120448 "2007-11-17T00:19:50Z")

</div>

this was kind of fun cfp: ~\> cat a.rb class Object def let \*a, &b Let.evaluate \*a, &b end def as local, kvs = {}, &block kvs.update local =\> self Let.evaluate kvs, &block end class Let instance\_methods.each{|m…

---

## [What is wrong with class variables? (newby)](https://www.ruby-forum.com/t/what-is-wrong-with-class-variables-newby/120434)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 12:19am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-class-variables-newby/120434 "2007-11-17T00:19:10Z")

</div>

Hello. I’m new to programming and new to ruby. I’ve recently written a script and have asked people (including this group) about components of the script. When people see that I’m using class variables they ask m…

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

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