# Ruby

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

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

---

## [Error when attempting using trying to install a gem and quer](https://www.ruby-forum.com/t/error-when-attempting-using-trying-to-install-a-gem-and-quer/77493)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 28, 2006, 1:04pm UTC](https://www.ruby-forum.com/t/error-when-attempting-using-trying-to-install-a-gem-and-quer/77493 "2006-11-28T13:04:46Z")

</div>

I just began starting to use Ruby-- and programming in general-- so maybe the solution to this problem is very simple. I get the following bug message both when I attempt to install a gem (specifically the the gettext…

---

## [Rdoc Hooks!](https://www.ruby-forum.com/t/rdoc-hooks/77318)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 1\
**Last updated:** [November 28, 2006, 12:08pm UTC](https://www.ruby-forum.com/t/rdoc-hooks/77318 "2006-11-28T12:08:40Z")

</div>

Hello all ! Not so long ago, I posted a question about hooks in rdoc. It appeared that there are none, and that I was welcome to create some. So I did. The attached patch (against 1.8.5) does the job for me. Here is …

---

## [Timestamp](https://www.ruby-forum.com/t/timestamp/77285)

<div class="topic-metadata">

**Author:** [@sakhamuri](https://www.ruby-forum.com/u/sakhamuri)\
**Replies:** 22\
**Last updated:** [November 28, 2006, 10:02am UTC](https://www.ruby-forum.com/t/timestamp/77285 "2006-11-28T10:02:20Z")

</div>

How do i add two time stamps Time stamps are in the form of HH:MM:DD:SS,nnnn Used Time.parse to convert to Time and tried add ts1 + ts2 but it failed saying no method. tried t1 + t1.to\_i i am getting irb(main):013:0\>…

---

## [Find index of first non zeo value in array](https://www.ruby-forum.com/t/find-index-of-first-non-zeo-value-in-array/77304)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 11\
**Last updated:** [November 28, 2006, 8:36am UTC](https://www.ruby-forum.com/t/find-index-of-first-non-zeo-value-in-array/77304 "2006-11-28T08:36:08Z")

</div>

with : array = \[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0\] I wrote : array.index(array.detect {|x| x \> 0}) =\> 15 is there a better and simpler way to do it ? thanks joss

---

## [Looking for advices building ruby-app/X-platform](https://www.ruby-forum.com/t/looking-for-advices-building-ruby-app-x-platform/77477)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 7:36am UTC](https://www.ruby-forum.com/t/looking-for-advices-building-ruby-app-x-platform/77477 "2006-11-28T07:36:04Z")

</div>

i do have a project right now which should be able to work under two OSes namely : Mac OS (the one i’m working on) Win\* (no experience at all on this OS) the project plays with audio files, extract some xml part …

---

## [IP remote in the Log4j](https://www.ruby-forum.com/t/ip-remote-in-the-log4j/102593)

<div class="topic-metadata">

**Author:** [@Miguelon\_cosapi\_dat](https://www.ruby-forum.com/u/Miguelon_cosapi_dat)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 6:52am UTC](https://www.ruby-forum.com/t/ip-remote-in-the-log4j/102593 "2006-11-28T06:52:00Z")

</div>

Hello friends, I hope can help me with the following thing: I have an application that uses the “Log4J”, which I want to know is that line I must add so that also it registers the IP address of the clients who accede …

---

## [Ruby and list comprehension](https://www.ruby-forum.com/t/ruby-and-list-comprehension/77282)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 17\
**Last updated:** [November 28, 2006, 6:15am UTC](https://www.ruby-forum.com/t/ruby-and-list-comprehension/77282 "2006-11-28T06:15:58Z")

</div>

In Python, I can do this to arrays: added = \[x for x in new\_data if x not in old\_data\] removed = \[x for x in old\_data if x not in new\_data\] same = \[x for x in new\_data if x in old\_data\] I believe this is known as lis…

---

## [Ruby 1.8.5 on Mac OS X](https://www.ruby-forum.com/t/ruby-1-8-5-on-mac-os-x/77400)

<div class="topic-metadata">

**Author:** [@doog](https://www.ruby-forum.com/u/doog)\
**Replies:** 7\
**Last updated:** [November 28, 2006, 6:01am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-on-mac-os-x/77400 "2006-11-28T06:01:57Z")

</div>

On Mac OS X 10.4.8, Ruby 1.8.2 is installed in /usr/bin/ruby I installed RubyGems and several libraries. I needed to upgrade to the latest version, so I downloaded Ruby 1.8.5 source from: http://www2.ruby-lang.org/en…

---

## [Simple loops and recursion](https://www.ruby-forum.com/t/simple-loops-and-recursion/77345)

<div class="topic-metadata">

**Author:** [@ishamid](https://www.ruby-forum.com/u/ishamid)\
**Replies:** 9\
**Last updated:** [November 28, 2006, 5:01am UTC](https://www.ruby-forum.com/t/simple-loops-and-recursion/77345 "2006-11-28T05:01:51Z")

</div>

Hi, I’m a total newbie, and this is my very first message. I’m going through Chris P.'s Learn to Program; almost half done. Problem: Consider the following working code: =============== def repeat type number\_of\_bo…

---

## [Hoe is awesome](https://www.ruby-forum.com/t/hoe-is-awesome/77469)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:53am UTC](https://www.ruby-forum.com/t/hoe-is-awesome/77469 "2006-11-28T04:53:48Z")

</div>

Can you release 8 projects in 45 minutes? My first branch commit was at 5:40, the last at 6:18 averaging 5 minutes per project to: quality check \* branch \* package upload to rubyforge announce on rubyforge draft …

---

## [Yahoo-geocode 1.1.1 Released](https://www.ruby-forum.com/t/yahoo-geocode-1-1-1-released/77467)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:39am UTC](https://www.ruby-forum.com/t/yahoo-geocode-1-1-1-released/77467 "2006-11-28T04:39:45Z")

</div>

yahoo-geocode version 1.1.1 has been released! http://dev.robotcoop.com/Libraries/yahoo-geocode An interface to Yahoo’s Geocoder service. Changes: = 1.1.1 Upgraded to rc-rest 2.0.0 and yahoo 1.1.1. – Eric H. - re…

---

## [Rc-rest 2.0.0 Released](https://www.ruby-forum.com/t/rc-rest-2-0-0-released/77468)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:39am UTC](https://www.ruby-forum.com/t/rc-rest-2-0-0-released/77468 "2006-11-28T04:39:45Z")

</div>

rc-rest version 2.0.0 has been released! http://dev.robotcoop.com/Libraries/rc\_rest This library makes it easy to implement REST-like web services APIs. Changes: = 2.0.0 Added +method+ parameter to RCRest#make\_url …

---

## [Yahoo-search 1.1.1 Released](https://www.ruby-forum.com/t/yahoo-search-1-1-1-released/77466)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:35am UTC](https://www.ruby-forum.com/t/yahoo-search-1-1-1-released/77466 "2006-11-28T04:35:44Z")

</div>

yahoo-search version 1.1.1 has been released! http://dev.robotcoop.com/Libraries/yahoo-search An interface to Yahoo’s Search services. Changes: = 1.1.1 Upgraded to rc-rest 2.0.0 and yahoo 1.1.1 – Eric H. - remove…

---

## [Yahoo 1.1.1 Released](https://www.ruby-forum.com/t/yahoo-1-1-1-released/77465)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:33am UTC](https://www.ruby-forum.com/t/yahoo-1-1-1-released/77465 "2006-11-28T04:33:44Z")

</div>

yahoo version 1.1.1 has been released! http://dev.robotcoop.com/Libraries/yahoo This library makes it easy to implement Yahoo’s web services APIs. Changes: = 1.1.1 Upgraded to rc-rest 2.0.0 – Eric H. - removed\_em…

---

## [Geocoder-us 1.1.1 Released](https://www.ruby-forum.com/t/geocoder-us-1-1-1-released/77463)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:31am UTC](https://www.ruby-forum.com/t/geocoder-us-1-1-1-released/77463 "2006-11-28T04:31:43Z")

</div>

geocoder-us version 1.1.1 has been released! http://dev.robotcoop.com/Libraries/geocoder-us Map addresses to latitude and longitude using geocoder.us Changes: = 1.1.1 Using rc-rest 2.0.0 – Eric H. - removed\_email…

---

## [Google-geocode 1.2.1 Released](https://www.ruby-forum.com/t/google-geocode-1-2-1-released/77462)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:31am UTC](https://www.ruby-forum.com/t/google-geocode-1-2-1-released/77462 "2006-11-28T04:31:43Z")

</div>

google-geocode version 1.2.1 has been released! http://dev.robotcoop.com/Libraries/google-geocode Map addresses to latitude and longitude with Google’s Geocoder. Changes: = 1.2.1 Upgrade to rc-rest 2.0.0 – Eric H…

---

## [Ontok-geocode 1.0.1 Released](https://www.ruby-forum.com/t/ontok-geocode-1-0-1-released/77461)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 28, 2006, 4:27am UTC](https://www.ruby-forum.com/t/ontok-geocode-1-0-1-released/77461 "2006-11-28T04:27:42Z")

</div>

ontok-geocode version 1.0.1 has been released! http://dev.robotcoop.com/Libraries/ontok-geocode Map addresses to latitude and longitude with Ontok’s geocoding API Changes: = 1.0.1 Upgrade to rc-rest 2.0.0 – Eric …

---

## [Problem using #{...} in eval](https://www.ruby-forum.com/t/problem-using-in-eval/77169)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 2\
**Last updated:** [November 28, 2006, 3:05am UTC](https://www.ruby-forum.com/t/problem-using-in-eval/77169 "2006-11-28T03:05:32Z")

</div>

Below is my “show” method followed by some tests. I envision using something like this to produce a tutorial for myself. Examples 1 & 2 demonstrate that “show” accepts a source code string and then displays the sour…

---

## [Java classpath for yajb](https://www.ruby-forum.com/t/java-classpath-for-yajb/77363)

<div class="topic-metadata">

**Author:** [@Elmar\_Schraml](https://www.ruby-forum.com/u/Elmar_Schraml)\
**Replies:** 2\
**Last updated:** [November 28, 2006, 2:45am UTC](https://www.ruby-forum.com/t/java-classpath-for-yajb/77363 "2006-11-28T02:45:11Z")

</div>

Hi, I’m trying to use a java class via yajb in Ruby on Rails. yajb works fine for calling Java library classes, but I can’t get my own java classes to work. I have: a class file anon.example.ImportTest in directory …

---

## [Module, requires, and attr](https://www.ruby-forum.com/t/module-requires-and-attr/77438)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [November 28, 2006, 1:31am UTC](https://www.ruby-forum.com/t/module-requires-and-attr/77438 "2006-11-28T01:31:20Z")

</div>

I’m looking for the best method of coding. I have module. “module Standards.” It consists of production standard constants and methods that will be called from all over the place. It is gem’d, and is implemented wi…

---

## [Re: simple loops and recursion](https://www.ruby-forum.com/t/re-simple-loops-and-recursion/77432)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 27, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/re-simple-loops-and-recursion/77432 "2006-11-27T23:59:09Z")

</div>

From: ishamid \[mailto:removed\_email\_address@domain.invalid\] puts "Sorry, expected #{expected\_value} but got #{actual\_value}" … The output does not distinguish number from numeral. Is this standard or is there some…

---

## [GTK TreeView](https://www.ruby-forum.com/t/gtk-treeview/77303)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 2\
**Last updated:** [November 27, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/gtk-treeview/77303 "2006-11-27T23:09:01Z")

</div>

Hello ML :-), i’ve started to write a small GUI with GTK. A lot of thinks work fine, but I have one problem: I want to have a list - like the email list at the usual mail client. Tutorials told me, that I have to use …

---

## [How to debug segmentation faults](https://www.ruby-forum.com/t/how-to-debug-segmentation-faults/77416)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 0\
**Last updated:** [November 27, 2006, 8:09pm UTC](https://www.ruby-forum.com/t/how-to-debug-segmentation-faults/77416 "2006-11-27T20:09:37Z")

</div>

Hi, I am pretty new to Ruby although have a lot of experience in other programming languages. I’m working on a project using Ruby and the OpenGL extensions that come with it (version 1.8.5). The error is not very det…

---

## [Telnet terminal issue](https://www.ruby-forum.com/t/telnet-terminal-issue/77391)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 1\
**Last updated:** [November 27, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/telnet-terminal-issue/77391 "2006-11-27T19:40:17Z")

</div>

Okay I am playing around with ruby and its telnet functionality and I ran into an interesting problem. I am trying to pull up a report from a telnet based program via ruby and I can navigate all the menus and enter th…

---

## [Appending to file in arbitrary position](https://www.ruby-forum.com/t/appending-to-file-in-arbitrary-position/77387)

<div class="topic-metadata">

**Author:** [@quixote\_arg](https://www.ruby-forum.com/u/quixote_arg)\
**Replies:** 3\
**Last updated:** [November 27, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/appending-to-file-in-arbitrary-position/77387 "2006-11-27T19:36:16Z")

</div>

Hi, I’m implementing the server side of a file upload with resume option part of a web app. The client sends the last position so I have to append to the existing file from that position. Current code is: @uploadfil…

---

## [A directory "grep" in RUBY?](https://www.ruby-forum.com/t/a-directory-grep-in-ruby/77131)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 10\
**Last updated:** [November 27, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/a-directory-grep-in-ruby/77131 "2006-11-27T15:37:32Z")

</div>

Hi, Can someone point me to a quick “grep” like function in RUBY? I use glob all the time, but, I need the power of regular expressions when finding particular files in directories. I see “grep” in the Pickaxe manual, …

---

## [Ruby tools for managing static websites?](https://www.ruby-forum.com/t/ruby-tools-for-managing-static-websites/74579)

<div class="topic-metadata">

**Author:** [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Replies:** 20\
**Last updated:** [November 27, 2006, 1:47pm UTC](https://www.ruby-forum.com/t/ruby-tools-for-managing-static-websites/74579 "2006-11-27T13:47:29Z")

</div>

Are there Ruby tools to help webmasters manage static websites? I’m talking about regenerating an entire static website - all the HTML files in their appropriate directories and sub-directories. Each page has some fix…

---

## [Ruby -v](https://www.ruby-forum.com/t/ruby-v/77075)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 27\
**Last updated:** [November 27, 2006, 11:11am UTC](https://www.ruby-forum.com/t/ruby-v/77075 "2006-11-27T11:11:08Z")

</div>

e$BKNIt$G$9!#e(B e$B$=$m$=$m%V%i%s%A@Z$C$Fe(B1.8.5-1e$B$r%j%j!\<%9$7$?$$$G$9!#e(B e$B$=$3$G7|0F;v9\`$G$9$,!“e(Bruby -ve$B$r$I$&$9$k$+$H$$$&LdBj$,;D$C$F$?$H;W$$$^$9e(B e$B$,!”$I$&$J$k$N$,$$$$$G$7$g$&!#e(B e$BA0e(B(\[rub…

---

## [Coding practise](https://www.ruby-forum.com/t/coding-practise/77237)

<div class="topic-metadata">

**Author:** [@sempsteen](https://www.ruby-forum.com/u/sempsteen)\
**Replies:** 22\
**Last updated:** [November 27, 2006, 9:26am UTC](https://www.ruby-forum.com/t/coding-practise/77237 "2006-11-27T09:26:55Z")

</div>

Hi all, First of all sorry for my english. I’m a Ruby newbie, trying to learn the language from the book, “The Pragmatic Programmer’s Guide”. I loved the language very much. Now i have some question marks about some …

---

## [FileUtils.mv not working?](https://www.ruby-forum.com/t/fileutils-mv-not-working/77338)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [November 27, 2006, 8:48am UTC](https://www.ruby-forum.com/t/fileutils-mv-not-working/77338 "2006-11-27T08:48:51Z")

</div>

I’m trying to move a folder from the /tmp dir (accessed via Dir.tmpdir) to the current working directory. It fails to do the move and instead just copies the folder. I get no error or warning. I can do it just find fr…

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

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