# Ruby

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

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

---

## [Removing newline from eachline in file](https://www.ruby-forum.com/t/removing-newline-from-eachline-in-file/114928)

<div class="topic-metadata">

**Author:** [@animate123](https://www.ruby-forum.com/u/animate123)\
**Replies:** 6\
**Last updated:** [September 19, 2007, 5:54am UTC](https://www.ruby-forum.com/t/removing-newline-from-eachline-in-file/114928 "2007-09-19T05:54:33Z")

</div>

I’m reading a file line by line and trying to remove the newline at the end of each line so that I can rebuild the url with the “www” and the “.net” at the beginning and end. Does anyone know how I can remove the newl…

---

## [Arrayfields-4.3.0](https://www.ruby-forum.com/t/arrayfields-4-3-0/114935)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 4:44am UTC](https://www.ruby-forum.com/t/arrayfields-4-3-0/114935 "2007-09-19T04:44:29Z")

</div>

NAME arrayfields.rb URIS http://www.codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ SYNOPSIS require ‘arrayfields’ a = Arrayfields.new :k, :v, :a, :b p a\[:k\] #=\> :v p a\[:a\] …

---

## [Newbie: ruby and i18n (java-like approach)](https://www.ruby-forum.com/t/newbie-ruby-and-i18n-java-like-approach/114465)

<div class="topic-metadata">

**Author:** [@eckobar](https://www.ruby-forum.com/u/eckobar)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 2:37am UTC](https://www.ruby-forum.com/t/newbie-ruby-and-i18n-java-like-approach/114465 "2007-09-19T02:37:19Z")

</div>

hi everybody! i am very new to ruby and tried to I18Ns my applications (ruby-scripts and rails-applications). for that task i found to approaches: GETTEXT GLOBALIZE but in my point of view both tools have contras. G…

---

## [How to change my TCP/IP settings using Ruby](https://www.ruby-forum.com/t/how-to-change-my-tcp-ip-settings-using-ruby/114943)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 1\
**Last updated:** [September 19, 2007, 2:34am UTC](https://www.ruby-forum.com/t/how-to-change-my-tcp-ip-settings-using-ruby/114943 "2007-09-19T02:34:19Z")

</div>

Is there a way to change my TCP/IP settings using Ruby scripts. For example I want a quick way to setup from DHCP to fixed IPs. My Windows is 2000. Kind Regards Roberto Nogueira

---

## [Converting text](https://www.ruby-forum.com/t/converting-text/114893)

<div class="topic-metadata">

**Author:** [@analogy](https://www.ruby-forum.com/u/analogy)\
**Replies:** 10\
**Last updated:** [September 19, 2007, 1:46am UTC](https://www.ruby-forum.com/t/converting-text/114893 "2007-09-19T01:46:17Z")

</div>

Hi, I have a general question, but I can’t locate the answer anywhere else; The answer is probably simple. I hope someone on here can help me out. Say I have a list (array) of numbers: \[1.80%, 14.50%, ruby, 3.10%\] H…

---

## [CPU Usage not near 100% when running code](https://www.ruby-forum.com/t/cpu-usage-not-near-100-when-running-code/114891)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 11\
**Last updated:** [September 19, 2007, 1:45am UTC](https://www.ruby-forum.com/t/cpu-usage-not-near-100-when-running-code/114891 "2007-09-19T01:45:47Z")

</div>

I tested some computation intensive Ruby code. When running, the CPU usage on the machines are no where near 100%. One is an Intel Hyper Threading machine. One is an Intel Core 2 Duo. on the Hyper Threading machine…

---

## [Cookies and sessions](https://www.ruby-forum.com/t/cookies-and-sessions/114921)

<div class="topic-metadata">

**Author:** [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 12:32am UTC](https://www.ruby-forum.com/t/cookies-and-sessions/114921 "2007-09-19T00:32:54Z")

</div>

Ok guys, I need to build a script that connects to a websites, grabs and opens a link, parses the contents in that link and submit the findings in a form, I have most of it done, But the link for the file i need to pa…

---

## [Hi group](https://www.ruby-forum.com/t/hi-group/114927)

<div class="topic-metadata">

**Author:** [@Szymon\_Stichy](https://www.ruby-forum.com/u/Szymon_Stichy)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/hi-group/114927 "2007-09-18T23:41:05Z")

</div>

yet another newbie… please be patient with me :wink:

---

## [RMagick - very, very strange](https://www.ruby-forum.com/t/rmagick-very-very-strange/114890)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/rmagick-very-very-strange/114890 "2007-09-18T22:59:59Z")

</div>

I installed ImageMagick and RMagick on several platforms, including cygwin. I didn’t get any compilation errors, the gem installed smoothly, the tests all pass, and I’m able to use it from my application without any …

---

## [Check for active web pages with open-uri](https://www.ruby-forum.com/t/check-for-active-web-pages-with-open-uri/114916)

<div class="topic-metadata">

**Author:** [@animate123](https://www.ruby-forum.com/u/animate123)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/check-for-active-web-pages-with-open-uri/114916 "2007-09-18T22:56:58Z")

</div>

I’m using openuri module to open web pages. If the pages doesn’t exist I get an error: in \`initialize’: getaddrinfo: no address associated with hostname. (SocketError) then I get a whole bunch of other stuff. Is ther…

---

## [Helpful advice/refrences/tips for an MPD client in Ruby](https://www.ruby-forum.com/t/helpful-advice-refrences-tips-for-an-mpd-client-in-ruby/114929)

<div class="topic-metadata">

**Author:** [@forgottenwizard](https://www.ruby-forum.com/u/forgottenwizard)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/helpful-advice-refrences-tips-for-an-mpd-client-in-ruby/114929 "2007-09-18T22:11:51Z")

</div>

First off, does anyone know of a pre-existing MPD client written in Ruby? What I’m trying to do is replace mpc (a great little app, but a bit limited for what I want to do), along with a few other scripts I have had …

---

## [Webby 0.4.0](https://www.ruby-forum.com/t/webby-0-4-0/114922)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/webby-0-4-0/114922 "2007-09-18T20:43:37Z")

</div>

Webby Homepage http://webby.rubyforge.org/ Rubyforge Project http://rubyforge.org/projects/webby == DESCRIPTION: Webby is a super fantastic little website management system. It would be called a content management…

---

## [Blocking/deleteing unsubscribe request](https://www.ruby-forum.com/t/blocking-deleteing-unsubscribe-request/114918)

<div class="topic-metadata">

**Author:** [@forgottenwizard](https://www.ruby-forum.com/u/forgottenwizard)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/blocking-deleteing-unsubscribe-request/114918 "2007-09-18T20:29:30Z")

</div>

Maybe not the ideal place to ask, but does anyone know of a good way to delete these emails via procmail or mutt?

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/114901)

<div class="topic-metadata">

**Author:** [@karthik\_pothuri](https://www.ruby-forum.com/u/karthik_pothuri)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/unsubscribe/114901 "2007-09-18T18:57:11Z")

</div>

unsubscribe

---

## [How to use tuple as hash key](https://www.ruby-forum.com/t/how-to-use-tuple-as-hash-key/114797)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 12\
**Last updated:** [September 18, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/how-to-use-tuple-as-hash-key/114797 "2007-09-18T18:04:05Z")

</div>

in Python, a hash key cannot be \[1,2,3\] but must be (1,2,3), a tuple. in Ruby, a list can actually be used as a hash key… but is it true that it is using the list’s ID as the key, not the list’s content… (that’s why i…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/114900)

<div class="topic-metadata">

**Author:** [@pilar\_surch](https://www.ruby-forum.com/u/pilar_surch)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/unsubscribe/114900 "2007-09-18T17:13:38Z")

</div>

unsubscribe

---

## [Ruby Sidebar](https://www.ruby-forum.com/t/ruby-sidebar/114887)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/ruby-sidebar/114887 "2007-09-18T16:26:26Z")

</div>

Anyone know ehat happened to the Ruby Sidebar? When I click on it it no longer brings up the tabbed list of stuff (Core, Std Lib, Tutorial and ?? i forget the last one.) I just get the install page of the Ruby Docbar …

---

## [How do I parse a string to find a URL?](https://www.ruby-forum.com/t/how-do-i-parse-a-string-to-find-a-url/114814)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 7\
**Last updated:** [September 18, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/how-do-i-parse-a-string-to-find-a-url/114814 "2007-09-18T15:31:17Z")

</div>

Is there a command in Ruby that will accept a string, and spit out a URL that is contained in the string? I think I remember reading about something that would do this, but I cant recall.

---

## [Jruby pre-beginner's question (or should I use C)](https://www.ruby-forum.com/t/jruby-pre-beginners-question-or-should-i-use-c/114846)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/jruby-pre-beginners-question-or-should-i-use-c/114846 "2007-09-18T15:00:09Z")

</div>

My understanding is that Jruby is slower than regular ruby. I take this to mean the Ruby part is. (am I wrong in this assumption?) Here is my question: Currently 95% of the execution time of my program is slow due…

---

## [Tagxplode 0.1](https://www.ruby-forum.com/t/tagxplode-0-1/114869)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/tagxplode-0-1/114869 "2007-09-18T12:36:40Z")

</div>

tarball: http://dark.fhtr.org/repos/tagxplode/tagxplode-0.1.tar.gz git: http://dark.fhtr.org/repos/tagxplode Description Tagxplode finds related terms for a word or phrase. The Tagxplode package contains a Ruby libra…

---

## [Representing arrow keys in a string](https://www.ruby-forum.com/t/representing-arrow-keys-in-a-string/114598)

<div class="topic-metadata">

**Author:** [@arindam](https://www.ruby-forum.com/u/arindam)\
**Replies:** 5\
**Last updated:** [September 18, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/representing-arrow-keys-in-a-string/114598 "2007-09-18T12:13:14Z")

</div>

I am using Ruby’s Telnet class to establish a session with a remote Linux machine to automate some remote administrative tasks. The problem I am facing is this- At one point I come across a menu, where the arrow keys …

---

## [Creating Arrays](https://www.ruby-forum.com/t/creating-arrays/114805)

<div class="topic-metadata">

**Author:** [@jngo](https://www.ruby-forum.com/u/jngo)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 11:35am UTC](https://www.ruby-forum.com/t/creating-arrays/114805 "2007-09-18T11:35:31Z")

</div>

Dear All,\<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /\> Please forgive me if this email is a bit simple, but I am new to ruby and object orientated programming pretty much and just lookin…

---

## [Adding extra option to date\_select](https://www.ruby-forum.com/t/adding-extra-option-to-date-select/114865)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 11:26am UTC](https://www.ruby-forum.com/t/adding-extra-option-to-date-select/114865 "2007-09-18T11:26:55Z")

</div>

I am trying to add an extra option to a date\_select. It is an required field with a start and end date though I want to give the users the option to enter 00-00-0000 (dd-mm-yyyy) tried the prompt different options, ja…

---

## [Loop a program on exit?](https://www.ruby-forum.com/t/loop-a-program-on-exit/114579)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 10\
**Last updated:** [September 18, 2007, 9:00am UTC](https://www.ruby-forum.com/t/loop-a-program-on-exit/114579 "2007-09-18T09:00:04Z")

</div>

i want to have a program restart when its closed via the X button on the window / terminal any ideas?

---

## [Ruby and Excel](https://www.ruby-forum.com/t/ruby-and-excel/114554)

<div class="topic-metadata">

**Author:** [@analogy](https://www.ruby-forum.com/u/analogy)\
**Replies:** 4\
**Last updated:** [September 18, 2007, 3:54am UTC](https://www.ruby-forum.com/t/ruby-and-excel/114554 "2007-09-18T03:54:39Z")

</div>

I’m reading an excel file (text and numbers) with the intent of storing the data in a 2D array. Here’s my code to read in the data (after opening the excel file): line = ‘1’ array = \[\] while worksheet.Range(“c”+line…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229139)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 2:51am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229139 "2007-09-18T02:51:30Z")

</div>

Begin forwarded message:

---

## [Retrieving yahoo! mail?](https://www.ruby-forum.com/t/retrieving-yahoo-mail/114844)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 2:04am UTC](https://www.ruby-forum.com/t/retrieving-yahoo-mail/114844 "2007-09-18T02:04:23Z")

</div>

Hi, As an exercise, I’m trying to use Net::HTTP to retrieve my yahoo mail. I looked at the source html for the yahoo mail login page at: On that page is a form with two form fields for obtaining the username and pa…

---

## [Re: IP to Country (#139)](https://www.ruby-forum.com/t/re-ip-to-country-139/114841)

<div class="topic-metadata">

**Author:** [@steve\_d](https://www.ruby-forum.com/u/steve_d)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 12:37am UTC](https://www.ruby-forum.com/t/re-ip-to-country-139/114841 "2007-09-18T00:37:17Z")

</div>

I changed to while low \< high, and also the walking backwards failed when reading the first line (btw, Steve, won’t your solution also fail for that case?). Yea it seems that mine will loop forever if you give an in…

---

## [Defining a Method](https://www.ruby-forum.com/t/defining-a-method/114838)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 12:22am UTC](https://www.ruby-forum.com/t/defining-a-method/114838 "2007-09-18T00:22:54Z")

</div>

Hi, I am new to Ruby from basic. I am having a hard time getting my head around the “def”. I have an Entry widget for a number, a label widget for the answer, button widget to multiply entry by 2 and place in Label. …

---

## [My posts are excluded from ruby-talk archives?](https://www.ruby-forum.com/t/my-posts-are-excluded-from-ruby-talk-archives/114832)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/my-posts-are-excluded-from-ruby-talk-archives/114832 "2007-09-17T22:14:45Z")

</div>

Hi, Although my posts seem to show up on the ruby-talk mailing list, they seem to be missing from the ruby-talk archives. (I post directly to the mailing list via removed\_email\_address@domain.invalid ) I wanted to li…

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

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