# Ruby

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

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

---

## [Net::HTTP Performance](https://www.ruby-forum.com/t/net-http-performance/98653)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [July 17, 2006, 10:42am UTC](https://www.ruby-forum.com/t/net-http-performance/98653 "2006-07-17T10:42:11Z")

</div>

I know there was already another thread on this, but I didn’t completely understand. I would love to re-read it but I accidentally deleted the emails. I remember something about changing a buffer size. Can anyone plea…

---

## [Globalize-rails plugin](https://www.ruby-forum.com/t/globalize-rails-plugin/98651)

<div class="topic-metadata">

**Author:** [@HawX](https://www.ruby-forum.com/u/HawX)\
**Replies:** 0\
**Last updated:** [July 17, 2006, 9:52am UTC](https://www.ruby-forum.com/t/globalize-rails-plugin/98651 "2006-07-17T09:52:23Z")

</div>

I’ve just downloaded it and installed. I use: Locale.set(“en-EN”) - works! Locale.set(“he-IL”) - works! Locale.set(“es-ES”) - works! But I need russian. Locale.set(“ru-RU”) - don’t work! Locale.set(“ru-Rus”) - don…

---

## [Alternate initializers or alternate class?](https://www.ruby-forum.com/t/alternate-initializers-or-alternate-class/98497)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [July 17, 2006, 5:22am UTC](https://www.ruby-forum.com/t/alternate-initializers-or-alternate-class/98497 "2006-07-17T05:22:54Z")

</div>

Jan Molic recently contacted me about a slighlty modified version of his OrderedHash class that I distribute in Facets, the Dictionary class. There are a few variations of this class initself and Jan originally provid…

---

## [Ruby-GetText-Package-1.7.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-7-0/98639)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [July 17, 2006, 4:44am UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-7-0/98639 "2006-07-17T04:44:36Z")

</div>

Hi, Ruby-GetText-Package-1.7.0 is now available. Changes Improve to support Ruby on Rails GetText.current\_textdomain\_info for debuging Fixed bugs, code cleanup. Update translations Chinese(zh), Czech(cs), Dutch(nl),…

---

## [Ruby Reports 0.4.17](https://www.ruby-forum.com/t/ruby-reports-0-4-17/98634)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [July 17, 2006, 3:36am UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-17/98634 "2006-07-17T03:36:19Z")

</div>

== Ruport 0.4.17 == The “Arnold Schwartzenegger” Edition (This is my 6th release since the start of Google’s Summer of Code) == About == Ruby Reports is a software library that aims to make the task of reporting les…

---

## [\[SoC\] GlimR 0.1.0](https://www.ruby-forum.com/t/soc-glimr-0-1-0/98556)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 2\
**Last updated:** [July 17, 2006, 1:37am UTC](https://www.ruby-forum.com/t/soc-glimr-0-1-0/98556 "2006-07-17T01:37:14Z")

</div>

== GlimR 0.1.0 - Ruby OpenGL GUI Widget Kit == Homepage: http://glimr.rubyforge.org/ Download: http://rubyforge.org/frs/?group\_id=1736 Blog: http://glimr.blogspot.com/ This is one of Ruby Central Inc.'s Google Summe…

---

## [Yahoo-ruby ImageSearch can't get Thumbnail](https://www.ruby-forum.com/t/yahoo-ruby-imagesearch-cant-get-thumbnail/98613)

<div class="topic-metadata">

**Author:** [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Replies:** 0\
**Last updated:** [July 16, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/yahoo-ruby-imagesearch-cant-get-thumbnail/98613 "2006-07-16T22:03:46Z")

</div>

Hello, I’m attempting to use yahoo-ruby to access the yahoo api and get thumnails for images using image search. I can get the full size images and the other various parameters but no luck with the thumbs. I’m new …

---

## [Alternative to open-uri?](https://www.ruby-forum.com/t/alternative-to-open-uri/98610)

<div class="topic-metadata">

**Author:** [@CBlair1986](https://www.ruby-forum.com/u/CBlair1986)\
**Replies:** 2\
**Last updated:** [July 16, 2006, 9:58pm UTC](https://www.ruby-forum.com/t/alternative-to-open-uri/98610 "2006-07-16T21:58:15Z")

</div>

I’m using open-uri to open a very large web file. This is all fine and dandy, I thought, until I saw how much memory it was using. I can deal with a little bit of memory taken up, but memory up to the size of the file…

---

## [Finding the size of a file on web server?](https://www.ruby-forum.com/t/finding-the-size-of-a-file-on-web-server/98582)

<div class="topic-metadata">

**Author:** [@CBlair1986](https://www.ruby-forum.com/u/CBlair1986)\
**Replies:** 2\
**Last updated:** [July 16, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/finding-the-size-of-a-file-on-web-server/98582 "2006-07-16T20:37:05Z")

</div>

I’m writing a little script to help automate downloading videos off of YouTube, and I would like to know how to figure out the size of the video files I will be downloading. I’ve experimented briefly with Net::HTTP, b…

---

## [How to acces a MySQL table with ActiveRecord](https://www.ruby-forum.com/t/how-to-acces-a-mysql-table-with-activerecord/98541)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 1\
**Last updated:** [July 16, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/how-to-acces-a-mysql-table-with-activerecord/98541 "2006-07-16T17:09:30Z")

</div>

require AR require ‘rubygems’ require\_gem ‘activerecord’ ActiveRecord::Base.establish\_connection({ :adapter =\> “mysql”, :database =\> “cocoa”, :socket =\> “/tmp/mysql.socket”, :username =\> , :password =\> }) d…

---

## [Error Message: NameError: uninitialized constant Task](https://www.ruby-forum.com/t/error-message-nameerror-uninitialized-constant-task/98561)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 1\
**Last updated:** [July 16, 2006, 5:08pm UTC](https://www.ruby-forum.com/t/error-message-nameerror-uninitialized-constant-task/98561 "2006-07-16T17:08:38Z")

</div>

Hi all I am trying to write a samll program in ruby that access a table caled Tasks located in a MySQl database. The program is listed below: require AR require ‘rubygems’ require\_gem ‘activerecord’ ActiveRecord::B…

---

## [Newbie question on an I/O loop](https://www.ruby-forum.com/t/newbie-question-on-an-i-o-loop/98580)

<div class="topic-metadata">

**Author:** [@bloc](https://www.ruby-forum.com/u/bloc)\
**Replies:** 4\
**Last updated:** [July 16, 2006, 3:49pm UTC](https://www.ruby-forum.com/t/newbie-question-on-an-i-o-loop/98580 "2006-07-16T15:49:14Z")

</div>

I got a question that’s puzzling me. Am new to Ruby but programming for decades. Here’s the problem. This apparently simple loop reads 396 bytes of a file and no more. The actual file is 1.5KB and I can display it eas…

---

## [Re: How to speed up ruby and make it as fast as possible](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98471)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 3\
**Last updated:** [July 16, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98471 "2006-07-16T15:42:35Z")

</div>

I think you’ve hit the nail on the head: execution speed is apparently a sore spot in the Ruby community, one that results in undue defensiveness and shooting the messenger! From my reading, Perl and Python are the …

---

## [Work with FTP](https://www.ruby-forum.com/t/work-with-ftp/98591)

<div class="topic-metadata">

**Author:** [@akeem](https://www.ruby-forum.com/u/akeem)\
**Replies:** 0\
**Last updated:** [July 16, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/work-with-ftp/98591 "2006-07-16T15:37:54Z")

</div>

Such problem (itself with Ruby has arisen is familiar with recent time :frowning: ) It is necessary to receive with FTP the list of files. The criteria of search are set by user. The files should be of the certain ki…

---

## [Possible DIRanomaly](https://www.ruby-forum.com/t/possible-diranomaly/98505)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 11\
**Last updated:** [July 16, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/possible-diranomaly/98505 "2006-07-16T15:26:38Z")

</div>

Hi, If you see DEFINITION of DIR\[""\] and DIR\["\*"\] below it suggests there should be some difference. But if I run the CODE below I find they produce exactly the same output. Is my documentation wrong or what am I doi…

---

## [Salt = \[Array.new(6){rand(256).chr}.join\].pack("m").chomp](https://www.ruby-forum.com/t/salt-array-new-6-rand-256-chr-join-pack-m-chomp/98559)

<div class="topic-metadata">

**Author:** [@orz42](https://www.ruby-forum.com/u/orz42)\
**Replies:** 4\
**Last updated:** [July 16, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/salt-array-new-6-rand-256-chr-join-pack-m-chomp/98559 "2006-07-16T15:03:35Z")

</div>

This is a line taken from the “authentification” recipe in the ‘Rails Recipes’ book. I can see that it generates a string of random characters but I am unsure of all that’s going on here. The strings that are generat…

---

## [Greenbar 1.0.1](https://www.ruby-forum.com/t/greenbar-1-0-1/98590)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [July 16, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/greenbar-1-0-1/98590 "2006-07-16T14:36:55Z")

</div>

Greenbar is an open source project intended to aid in the writing of Test::Unit tests. It consists of a framework to aid in providing reusable chunks of setup and teardown code, and a handful of useful concrete exam…

---

## [System() on windows](https://www.ruby-forum.com/t/system-on-windows/98570)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 5\
**Last updated:** [July 16, 2006, 10:32am UTC](https://www.ruby-forum.com/t/system-on-windows/98570 "2006-07-16T10:32:12Z")

</div>

I want to capture the string that system(“hostname”) produces on windows and store it in a variable. system() returns true or false. How can I make it return the result (the hostname as a string) instead?

---

## [Strange "NoMethodError"?](https://www.ruby-forum.com/t/strange-nomethoderror/98576)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 16, 2006, 8:32am UTC](https://www.ruby-forum.com/t/strange-nomethoderror/98576 "2006-07-16T08:32:48Z")

</div>

i run a RubyCocoa app and i get this error message : /path/to/MacSOUPSwitcherTK.rb:91:in prefs\_setup': undefined methoddefault\_server\_index=’ for #Servers:0x74edec (NoMethodError) from /path/to/Controller.rb:47:in \`ini…

---

## [Who likes Sudoku?](https://www.ruby-forum.com/t/who-likes-sudoku/98534)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 18\
**Last updated:** [July 16, 2006, 5:42am UTC](https://www.ruby-forum.com/t/who-likes-sudoku/98534 "2006-07-16T05:42:37Z")

</div>

Here is the smallest Ruby Sudoku solver I could come up with. I’ve seen a bunch that are really big, but this is the most simplistic. I’d like to shrink it a bit more, but it works well for now. Things like reading…

---

## [Mod\_ruby + WSDL = security error](https://www.ruby-forum.com/t/mod-ruby-wsdl-security-error/64055)

<div class="topic-metadata">

**Author:** [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Replies:** 1\
**Last updated:** [July 16, 2006, 4:53am UTC](https://www.ruby-forum.com/t/mod-ruby-wsdl-security-error/64055 "2006-07-16T04:53:25Z")

</div>

When trying to create a handler to access a SOAP server in an embedded ruby file (.rhtml) I am unable to get anything done unless I decrease the safe level for ruby to 0. The code is the following: \<% require ‘soap/…

---

## [SOAP only returns part of a response](https://www.ruby-forum.com/t/soap-only-returns-part-of-a-response/95986)

<div class="topic-metadata">

**Author:** [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Replies:** 1\
**Last updated:** [July 16, 2006, 4:38am UTC](https://www.ruby-forum.com/t/soap-only-returns-part-of-a-response/95986 "2006-07-16T04:38:05Z")

</div>

I’ve been doing some work with SOAP, however, when I go to process a request SOAP only downloads a portion of the response, which in turn breaks the parsing of the response. Could this be due to the size of the respo…

---

## [Module#private\_filter: critique of dynamic method visibility](https://www.ruby-forum.com/t/module-private-filter-critique-of-dynamic-method-visibility/98569)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 16, 2006, 4:00am UTC](https://www.ruby-forum.com/t/module-private-filter-critique-of-dynamic-method-visibility/98569 "2006-07-16T04:00:36Z")

</div>

The following fancy function does some pretty delicate handling of method visibility. And as such I would really like to get some extra eyes on it. I wonder, is it worth it? Can it be improved? Is there a whole better…

---

## [Appending to a CSV file](https://www.ruby-forum.com/t/appending-to-a-csv-file/98107)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 14\
**Last updated:** [July 16, 2006, 3:11am UTC](https://www.ruby-forum.com/t/appending-to-a-csv-file/98107 "2006-07-16T03:11:21Z")

</div>

Just got a call from a telecommuting colleague who’s using Ruby to automate a bunch of CEV\[1\] CFD\[2\] simulations. She says that she can’t figure out how to /append/ to a CSV file using Ruby’s standard library. Does …

---

## [Devious or what? : hacking super : should this work?](https://www.ruby-forum.com/t/devious-or-what-hacking-super-should-this-work/98542)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 4\
**Last updated:** [July 16, 2006, 2:15am UTC](https://www.ruby-forum.com/t/devious-or-what-hacking-super-should-this-work/98542 "2006-07-16T02:15:33Z")

</div>

I’ve discovered that an unadorned call to “super” need not call the parent method with the same arguments!!! If you bind the entire argument list to a variable you can modify the list before calling “super”. Check i…

---

## [Help with a regexp](https://www.ruby-forum.com/t/help-with-a-regexp/98100)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 34\
**Last updated:** [July 16, 2006, 1:00am UTC](https://www.ruby-forum.com/t/help-with-a-regexp/98100 "2006-07-16T01:00:49Z")

</div>

I’m trying to write a regular expression that matches bencoded strings, i.e. strings on the form x:y, where x is the numeric length of y. This is valid: 6:foobar while this is not: 4:foo I’ve tried using #{$1} insi…

---

## [Using a \\ in gsub](https://www.ruby-forum.com/t/using-a-in-gsub/98545)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 3\
**Last updated:** [July 16, 2006, 12:17am UTC](https://www.ruby-forum.com/t/using-a-in-gsub/98545 "2006-07-16T00:17:19Z")

</div>

In IRB if I type the following: “te/st”.gsub(’/’,’’) into irb, IRB screws up. but if I type File.expand\_path($0).gsub(’/’,’\\’) I get te\\st. what gives?? how do I get ruby to come up with te\\st? what I am trying to …

---

## [About MyClass#my\_method](https://www.ruby-forum.com/t/about-myclass-my-method/98391)

<div class="topic-metadata">

**Author:** [@zenzei](https://www.ruby-forum.com/u/zenzei)\
**Replies:** 14\
**Last updated:** [July 15, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/about-myclass-my-method/98391 "2006-07-15T23:09:18Z")

</div>

Hi, I always see the # notation in the docs to design instance\_methods. Wouldn’t it be nice to be able to use that notation to address and access methods directly ? MyClass#my\_method would replace MyClass.instance\_me…

---

## [Mac OSX Ruby Configuration Question](https://www.ruby-forum.com/t/mac-osx-ruby-configuration-question/98494)

<div class="topic-metadata">

**Author:** [@srogers](https://www.ruby-forum.com/u/srogers)\
**Replies:** 12\
**Last updated:** [July 15, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/mac-osx-ruby-configuration-question/98494 "2006-07-15T21:48:08Z")

</div>

I recently installed Ruby 1.8.4 on my iMac, running OSX 10.4. Ruby, Rails, etc. run great and I am working through Ruby for Rails (great book, BTW). I installed ruby in /usr/local so as not to conflict with the versio…

---

## [Configuring eruby with apache](https://www.ruby-forum.com/t/configuring-eruby-with-apache/98499)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [July 15, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/configuring-eruby-with-apache/98499 "2006-07-15T21:47:33Z")

</div>

Hi everybody! Sorry if this not the right place to post, please tell me where I should ask such a question if it’s not the right place to post here. I just would like to enable .rhtml files to be automatically convert…

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

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