# Ruby

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

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

---

## [Array.drop doesn't work](https://www.ruby-forum.com/t/array-drop-doesnt-work/143144)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 13\
**Last updated:** [July 19, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/array-drop-doesnt-work/143144 "2008-07-19T22:31:43Z")

</div>

Hi all, I try to use #drop to remove several elements from an array but it doesn’t work. I check “ri Array.drop” and get no info about #drop. But I see this info described in class Array - RDoc Documentation ary.dro…

---

## [Objects with Map fields](https://www.ruby-forum.com/t/objects-with-map-fields/143511)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [July 19, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/objects-with-map-fields/143511 "2008-07-19T21:39:40Z")

</div>

I want to use XStream to write XML for objects that have a field that is a Map. That gives me something like this. some key I don’t want the Map information in my XML. I reall…

---

## [FileUtils.cp\_r](https://www.ruby-forum.com/t/fileutils-cp-r/143465)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 3\
**Last updated:** [July 19, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/fileutils-cp-r/143465 "2008-07-19T20:37:03Z")

</div>

Hi, I have all of the program “atk” in one directory. I want to recursively copy this to /usr. This commandline works in bash shell: cp -r /Programs/Atk/Current/\* /usr/ These examples in Ruby do not work: FileUtils…

---

## [Status of mod\_ruby](https://www.ruby-forum.com/t/status-of-mod-ruby/143494)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [July 19, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/status-of-mod-ruby/143494 "2008-07-19T18:34:55Z")

</div>

With ruby 1.8.7 (2008-06-20 patchlevel 22) I was unable to compile mod\_ruby Looking at the last release ~2 years ago of mod\_ruby I wonder if it was abandoned?

---

## [Suggestions for a parsing strategy?](https://www.ruby-forum.com/t/suggestions-for-a-parsing-strategy/143483)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 6\
**Last updated:** [July 19, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/suggestions-for-a-parsing-strategy/143483 "2008-07-19T14:05:48Z")

</div>

Hi all, I have input strings that can look like this: Common, Commerc(e, ial) I need to parse these into the three words that this represents: Common, Commerce, Commercial. I’m a little new to ruby, and hence wonder…

---

## [If you are looking for a place to Buy and sell your used stuff and promote your small business..com](https://www.ruby-forum.com/t/if-you-are-looking-for-a-place-to-buy-and-sell-your-used-stuff-and-promote-your-small-business-com/143493)

<div class="topic-metadata">

**Author:** [@busybeejoe](https://www.ruby-forum.com/u/busybeejoe)\
**Replies:** 0\
**Last updated:** [July 19, 2008, 9:55am UTC](https://www.ruby-forum.com/t/if-you-are-looking-for-a-place-to-buy-and-sell-your-used-stuff-and-promote-your-small-business-com/143493 "2008-07-19T09:55:45Z")

</div>

If you are looking for a place to Buy and sell your used stuff and promote your small business…come on in This is the place for you…I created a NEW forum where you can buy/ sell/trade your used stuff and for small bu…

---

## [Is update\_rubygems unnecessary?](https://www.ruby-forum.com/t/is-update-rubygems-unnecessary/142859)

<div class="topic-metadata">

**Author:** [@iwadon](https://www.ruby-forum.com/u/iwadon)\
**Replies:** 2\
**Last updated:** [July 19, 2008, 8:33am UTC](https://www.ruby-forum.com/t/is-update-rubygems-unnecessary/142859 "2008-07-19T08:33:21Z")

</div>

Hi all, RubyGems’s setup.rb don’t install bin/update\_rubygems since rev.1619. Is this right installation? BTW, I posted same report to RubyGems’s BTS. http://rubyforge.org/tracker/?func=detail&aid=21057&group\_id=126&a…

---

## [SOAP::RPC::StandaloneServer and WSDLs](https://www.ruby-forum.com/t/soap-standaloneserver-and-wsdls/131690)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 6\
**Last updated:** [July 19, 2008, 8:09am UTC](https://www.ruby-forum.com/t/soap-standaloneserver-and-wsdls/131690 "2008-07-19T08:09:56Z")

</div>

I have seen this posted several times on this forum without a definitive response. I’d imagine the incantation is pretty easy, but I’ve been unable to find it. For what it’s worth, this is NOT in a rails environment. …

---

## [\[ANN\] JRuby 1.1.3 Released](https://www.ruby-forum.com/t/ann-jruby-1-1-3-released/143489)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 0\
**Last updated:** [July 19, 2008, 7:58am UTC](https://www.ruby-forum.com/t/ann-jruby-1-1-3-released/143489 "2008-07-19T07:58:17Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.3! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.3 is the third point release of JRuby 1.1. The fixes in this …

---

## [ImageVoodoo Gem 0.3 Problem](https://www.ruby-forum.com/t/imagevoodoo-gem-0-3-problem/143436)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 7\
**Last updated:** [July 19, 2008, 7:10am UTC](https://www.ruby-forum.com/t/imagevoodoo-gem-0-3-problem/143436 "2008-07-19T07:10:57Z")

</div>

Has anyone else experienced this problem? ImageVoodoo.with\_image(xxxx.jpg) do |img| img.cropped\_thumbnail(100) { |img2| img2.save “CTH.jpg” } img.with\_crop(100, 200, 400, 600) { |img2| img2.save “CR.jpg” } img.thumbn…

---

## [Job Opportunity in GlassFish team](https://www.ruby-forum.com/t/job-opportunity-in-glassfish-team/143479)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 0\
**Last updated:** [July 19, 2008, 4:26am UTC](https://www.ruby-forum.com/t/job-opportunity-in-glassfish-team/143479 "2008-07-19T04:26:39Z")

</div>

Are you interested working in the GlassFish team ? Find out details at: http://blogs.sun.com/arungupta/entry/exciting\_job\_opportunity\_in\_glassfish Apply today, new grads preferred! Thanks, -Arun Application Platform…

---

## ["gem update" eats 100% cpu and memory](https://www.ruby-forum.com/t/gem-update-eats-100-cpu-and-memory/143234)

<div class="topic-metadata">

**Author:** [@Axel\_Bock](https://www.ruby-forum.com/u/Axel_Bock)\
**Replies:** 3\
**Last updated:** [July 19, 2008, 3:26am UTC](https://www.ruby-forum.com/t/gem-update-eats-100-cpu-and-memory/143234 "2008-07-19T03:26:24Z")

</div>

Hi all, I have no idea what to do any more. I develop a tiny web app with Ruby on Rails, but when I try to update install rails on my root server with “gem install rails” (or gem update), within seconds gem will rend…

---

## [$\_server\['query\_string'\]](https://www.ruby-forum.com/t/server-query-string/143474)

<div class="topic-metadata">

**Author:** [@sharq](https://www.ruby-forum.com/u/sharq)\
**Replies:** 1\
**Last updated:** [July 19, 2008, 12:51am UTC](https://www.ruby-forum.com/t/server-query-string/143474 "2008-07-19T00:51:27Z")

</div>

In PHP, you can easily access the raw query string with $\_SERVER\[‘QUERY\_STRING’\] Is there an easy way of doing this in Ruby?

---

## [Array.index with block not working](https://www.ruby-forum.com/t/array-index-with-block-not-working/143473)

<div class="topic-metadata">

**Author:** [@f2andy](https://www.ruby-forum.com/u/f2andy)\
**Replies:** 1\
**Last updated:** [July 19, 2008, 12:25am UTC](https://www.ruby-forum.com/t/array-index-with-block-not-working/143473 "2008-07-19T00:25:42Z")

</div>

Documentation from here: http://www.ruby-doc.org/core/classes/Array.html#M000290 Returns the index of the first object in self such that is == to obj. If a block is given instead of an argument, returns first object …

---

## [Inserting a random item from an array](https://www.ruby-forum.com/t/inserting-a-random-item-from-an-array/143410)

<div class="topic-metadata">

**Author:** [@zoephoenix](https://www.ruby-forum.com/u/zoephoenix)\
**Replies:** 3\
**Last updated:** [July 18, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/inserting-a-random-item-from-an-array/143410 "2008-07-18T21:02:32Z")

</div>

I’m trying to have Ruby generate a random list of 30 links to put at the bottom of a web page and write it to a file. I think I’m on the right track of how to do it, but I’m not sure… ############## citylist = \[‘Orla…

---

## [Show text in italics](https://www.ruby-forum.com/t/show-text-in-italics/143435)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 7\
**Last updated:** [July 18, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/show-text-in-italics/143435 "2008-07-18T19:35:02Z")

</div>

Hi , well, is there any logic to display a text in italics in ruby. like a simple program that shows text in italics? ex: def text puts" hi to all" end puts text so i need to display "hi to all " in italics. i k…

---

## [Form Control](https://www.ruby-forum.com/t/form-control/143319)

<div class="topic-metadata">

**Author:** [@dev1](https://www.ruby-forum.com/u/dev1)\
**Replies:** 5\
**Last updated:** [July 18, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/form-control/143319 "2008-07-18T19:23:07Z")

</div>

Hi guys, I’ve started learning Ruby and I’m really, really enjoying it. I have no prior experience with any programming language, and I’ve been reading, listening and watching as much Ruby related material I can. Can…

---

## [Rubygems - 404 Error for gems.datamapper.org/yaml](https://www.ruby-forum.com/t/rubygems-404-error-for-gems-datamapper-org-yaml/143450)

<div class="topic-metadata">

**Author:** [@kodama](https://www.ruby-forum.com/u/kodama)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/rubygems-404-error-for-gems-datamapper-org-yaml/143450 "2008-07-18T18:59:38Z")

</div>

Hi everyone, I’m at my wits end here. I’ve been trying to install a gem all day, but Rubygems won’t let me because it keeps crashing while trying to update gem metadata for some Datamapper gems. I had originally adde…

---

## [Ruby quiz tomorrow](https://www.ruby-forum.com/t/ruby-quiz-tomorrow/143397)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/ruby-quiz-tomorrow/143397 "2008-07-18T17:37:11Z")

</div>

… is not likely to happen, as I’m feeling a bit ill right now. If someone wants to jump in for quiz tomorrow, feel free, and I’ll put it up on web as soon as I can.

---

## [\[BUG\] cfp consistency error in Win32OLE](https://www.ruby-forum.com/t/bug-cfp-consistency-error-in-win32ole/142863)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 9\
**Last updated:** [July 18, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/bug-cfp-consistency-error-in-win32ole/142863 "2008-07-18T16:42:24Z")

</div>

e$B=uED$G$9!#e(B e$B\<!$N%9%/%j%W%H$re(Btrunke$B$G\<B9T$9$k$He(B cfp consistency error e$B$K$J$j$^$9!#e(B require ‘win32ole’ ie = WIN32OLE.new(‘InternetExplorer.Application’) ev = WIN32OLE\_EVENT.new(ie) ev.on\_event(‘…

---

## [So who's coming to RubyFringe?](https://www.ruby-forum.com/t/so-whos-coming-to-rubyfringe/143336)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 10\
**Last updated:** [July 18, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/so-whos-coming-to-rubyfringe/143336 "2008-07-18T15:26:37Z")

</div>

…I am! Hope you meet some of you guys over here.

---

## [Using Local Variable in Silverlight](https://www.ruby-forum.com/t/using-local-variable-in-silverlight/143009)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 9\
**Last updated:** [July 18, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/using-local-variable-in-silverlight/143009 "2008-07-18T15:24:13Z")

</div>

Hi All, I’m getting an exception when I try and use the code snippet below in Silverlight. The snippet works ok with a normal .Net app. What I am trying to do is use a Ruby script running in my Silverlight app to cal…

---

## [Accessing the last error raised outside of a rescue block](https://www.ruby-forum.com/t/accessing-the-last-error-raised-outside-of-a-rescue-block/143421)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 2\
**Last updated:** [July 18, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/accessing-the-last-error-raised-outside-of-a-rescue-block/143421 "2008-07-18T15:15:56Z")

</div>

Hi – I want to be able to grab some details from an error, but not just the message. So I want a variable called result to be either the result of a method, or a property of the error raised by that method. If the pr…

---

## [How to find which source file defines a constant?](https://www.ruby-forum.com/t/how-to-find-which-source-file-defines-a-constant/143384)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/how-to-find-which-source-file-defines-a-constant/143384 "2008-07-18T14:21:03Z")

</div>

Is there a straightforward way to find out (programatically) which loaded source file has defined a given constant? Thanks, Tim

---

## [Reading stdout & stderr from a pipe with popen3](https://www.ruby-forum.com/t/reading-stdout-stderr-from-a-pipe-with-popen3/142154)

<div class="topic-metadata">

**Author:** [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Replies:** 7\
**Last updated:** [July 18, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/reading-stdout-stderr-from-a-pipe-with-popen3/142154 "2008-07-18T13:52:18Z")

</div>

I originally posted this to a Ruby forum at railsforum.com, but I just found this list so thought I’d try here since I haven’t gotten a response at railsforum. OK…so I’m using popen3 to run some command line stuff and…

---

## [RSS parser problem](https://www.ruby-forum.com/t/rss-parser-problem/143413)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/rss-parser-problem/143413 "2008-07-18T13:10:42Z")

</div>

Hi, I am experiencing problems trying to parse an XML feed on Ubuntu - the same code works without any problems on OS X. The code is roughly this: ============================================ require ‘open-uri’ req…

---

## ["Address already in use" Error with net/http](https://www.ruby-forum.com/t/address-already-in-use-error-with-net-http/143141)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 3\
**Last updated:** [July 18, 2008, 11:11am UTC](https://www.ruby-forum.com/t/address-already-in-use-error-with-net-http/143141 "2008-07-18T11:11:21Z")

</div>

Hey! I’m downloading a large number of files via net/http GET Requests using 5 Threads. Each Thread does something like this: req = Net::HTTP::Get.new(url.path) conn = Net::HTTP.new(url.host, url.port) res = conn.s…

---

## [RoR Development Team](https://www.ruby-forum.com/t/ror-development-team/143412)

<div class="topic-metadata">

**Author:** [@avix](https://www.ruby-forum.com/u/avix)\
**Replies:** 0\
**Last updated:** [July 18, 2008, 7:49am UTC](https://www.ruby-forum.com/t/ror-development-team/143412 "2008-07-18T07:49:38Z")

</div>

We represent an established team of three Ruby on Rails developers who are available immediately for projects large or small. Technical Experience: Each developer was selected from a large pool of candidates passing …

---

## [IronPython 2.0 Road Map Plans announced](https://www.ruby-forum.com/t/ironpython-2-0-road-map-plans-announced/143411)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 0\
**Last updated:** [July 18, 2008, 7:40am UTC](https://www.ruby-forum.com/t/ironpython-2-0-road-map-plans-announced/143411 "2008-07-18T07:40:19Z")

</div>

Hi, Have a look here, for detailed information on IronPython 2.0 Plans http://devhawk.net/2008/07/17/IronPython+Post+20+Roadmap.aspx It gives,details about its current status and Road Map Plans for version 2.0 Hope …

---

## [Generating webpages with Ruby... help with double quotes](https://www.ruby-forum.com/t/generating-webpages-with-ruby-help-with-double-quotes/143405)

<div class="topic-metadata">

**Author:** [@zoephoenix](https://www.ruby-forum.com/u/zoephoenix)\
**Replies:** 3\
**Last updated:** [July 18, 2008, 7:26am UTC](https://www.ruby-forum.com/t/generating-webpages-with-ruby-help-with-double-quotes/143405 "2008-07-18T07:26:54Z")

</div>

I want a program that I’m working on to generate some web pages for me, but I’m having trouble with generating the pages in HTML, since it uses the double quotes for links, as in . Since there are a lot of the links i…

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

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