# Ruby

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

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

---

## [How to call a method within another method](https://www.ruby-forum.com/t/how-to-call-a-method-within-another-method/196046)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 3\
**Last updated:** [October 6, 2010, 6:12am UTC](https://www.ruby-forum.com/t/how-to-call-a-method-within-another-method/196046 "2010-10-06T06:12:59Z")

</div>

Hi, I have a method… def make\_pay\_loan end I want this method to ‘activate’ (for want of a better word) another method called pay\_loan. Any tips on how this could be done are welcome, thanks

---

## [\[Ruby 1.9-Bug#3910\]\[Open\] SEGV at fptr\_finalize](https://www.ruby-forum.com/t/ruby-1-9-bug-3910-open-segv-at-fptr-finalize/196055)

<div class="topic-metadata">

**Author:** [@Masaki\_M](https://www.ruby-forum.com/u/Masaki_M)\
**Replies:** 2\
**Last updated:** [October 6, 2010, 5:16am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3910-open-segv-at-fptr-finalize/196055 "2010-10-06T05:16:47Z")

</div>

Bug #3910: SEGV at fptr\_finalize http://redmine.ruby-lang.org/issues/show/3910 e$B5/I\<\<Te(B: Masaki M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ruby -v: ruby 1.9.2p0 (2010-08-18) \[i686-linu…

---

## [Any XMLRPC library you can recomend?](https://www.ruby-forum.com/t/any-xmlrpc-library-you-can-recomend/196054)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 0\
**Last updated:** [October 6, 2010, 3:26am UTC](https://www.ruby-forum.com/t/any-xmlrpc-library-you-can-recomend/196054 "2010-10-06T03:26:26Z")

</div>

I’m looking for an XMLRPC library. I don’t need something fancy. I know about ‘xmlrpc4r’ (it’s shipped with my Ubuntu), which is cute, but I’ve already noticed one bug: It fails to handle received cookies correctly (w…

---

## [Win32ole with Outlook2010 read email](https://www.ruby-forum.com/t/win32ole-with-outlook2010-read-email/196039)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 0\
**Last updated:** [October 5, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/win32ole-with-outlook2010-read-email/196039 "2010-10-05T22:55:51Z")

</div>

I am using the first script from this blog to read email from my inbox but I get no email in the output. The output is: “OlMailItem = 0” removed\_email\_address@domain.invalid Deleted Items Inbox Unable to open +Pu…

---

## [How to get rpm file with ruby?](https://www.ruby-forum.com/t/how-to-get-rpm-file-with-ruby/196033)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/how-to-get-rpm-file-with-ruby/196033 "2010-10-05T22:38:33Z")

</div>

Neither of the methods below are able to download this rpm file. If you use firefox it works fine, how can I do this in ruby as part of a install script I am trying to write in ruby ? require ‘net/http’ Net::HTTP.st…

---

## [Gem Mirror Yaml file](https://www.ruby-forum.com/t/gem-mirror-yaml-file/196029)

<div class="topic-metadata">

**Author:** [@envex](https://www.ruby-forum.com/u/envex)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 10:02pm UTC](https://www.ruby-forum.com/t/gem-mirror-yaml-file/196029 "2010-10-05T22:02:57Z")

</div>

Hi everyone, I’m trying to build a local gem mirror following this tutorial : I do not succeed building the index (gem generate\_index) (lake of virtual memory) I have some questions : Is the building of the index m…

---

## [Calling a method with an instance](https://www.ruby-forum.com/t/calling-a-method-with-an-instance/196032)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 6\
**Last updated:** [October 5, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/calling-a-method-with-an-instance/196032 "2010-10-05T21:53:10Z")

</div>

Hi. I’m playing around with creating methods and then creating an instance that calls the instance. Here’s my code… class Discount attr\_accessor :amount, :discount def initialize(am, dis) @amount = am @discount = d…

---

## [Ruby on web without RoR](https://www.ruby-forum.com/t/ruby-on-web-without-ror/195999)

<div class="topic-metadata">

**Author:** [@joaomello](https://www.ruby-forum.com/u/joaomello)\
**Replies:** 11\
**Last updated:** [October 5, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/ruby-on-web-without-ror/195999 "2010-10-05T21:11:36Z")

</div>

Is possible to use only Ruby without Rails on web?

---

## [Win32ole adodb.command AffectedRows howto?](https://www.ruby-forum.com/t/win32ole-adodb-command-affectedrows-howto/196031)

<div class="topic-metadata">

**Author:** [@lmueller](https://www.ruby-forum.com/u/lmueller)\
**Replies:** 0\
**Last updated:** [October 5, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/win32ole-adodb-command-affectedrows-howto/196031 "2010-10-05T20:53:12Z")

</div>

Greetings, I’ve been trying something along these lines: connstr = “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=#{MDB\_FILE};Persist Security Info=False” oconn = WIN32OLE.new(‘ADODB.Connection’) oconn.Open(connstr) …

---

## [Ruby Installation Error](https://www.ruby-forum.com/t/ruby-installation-error/195422)

<div class="topic-metadata">

**Author:** [@tridib04](https://www.ruby-forum.com/u/tridib04)\
**Replies:** 19\
**Last updated:** [October 5, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/ruby-installation-error/195422 "2010-10-05T20:43:30Z")

</div>

I am trying this command to build the ruby interpreter ./configure and then make test it is showing me 900 failed 1 and when i am typing… autoconf it is showing– configure.in:4: error: Autoconf version 2.60 or high…

---

## [What is easies gui to install ? - tk, gtk, fxruby etc](https://www.ruby-forum.com/t/what-is-easies-gui-to-install-tk-gtk-fxruby-etc/196024)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 3\
**Last updated:** [October 5, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/what-is-easies-gui-to-install-tk-gtk-fxruby-etc/196024 "2010-10-05T19:55:31Z")

</div>

What is the easiest gui to install and use with ruby such as tk, gtk, fxruby,qtruby, etc ? There is all kinds of builds and stuff to figure out it seems … the easier the better … a few yum installs and gem install wou…

---

## [Weblogic - log files](https://www.ruby-forum.com/t/weblogic-log-files/196018)

<div class="topic-metadata">

**Author:** [@bernd](https://www.ruby-forum.com/u/bernd)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/weblogic-log-files/196018 "2010-10-05T18:23:02Z")

</div>

Hi, I have a JRuby/Ruby on Rails application deployed to a WebLogic server. I am currently puzzled about is how to setup the logging of the Rails application. I can’t figure out where the stuff goes which usually in …

---

## [Rspec-2.0.0.rc is released](https://www.ruby-forum.com/t/rspec-2-0-0-rc-is-released/196002)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [October 5, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/rspec-2-0-0-rc-is-released/196002 "2010-10-05T18:21:17Z")

</div>

rspec-2.0.0.rc is released! See http://blog.davidchelimsky.net/2010/07/01/rspec-2-documentation/ for links to all sorts of documentation on rspec-2. Plan is to release rspec-2.0.0 (final) within the next week, so plea…

---

## [Strip illegal characters from a file name](https://www.ruby-forum.com/t/strip-illegal-characters-from-a-file-name/196004)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 2\
**Last updated:** [October 5, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/strip-illegal-characters-from-a-file-name/196004 "2010-10-05T17:02:46Z")

</div>

Hi, I have a program which takes a users details and saves them in a pdf. The name of the pdf file should consist of the users id, an underscore and the users surname, e.g. 01\_Smith.pdf Thing is, how do I check for i…

---

## [Sinatra Application with ActivRecord 2.3.9 and MassAssignmen](https://www.ruby-forum.com/t/sinatra-application-with-activrecord-2-3-9-and-massassignmen/196010)

<div class="topic-metadata">

**Author:** [@astrid](https://www.ruby-forum.com/u/astrid)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/sinatra-application-with-activrecord-2-3-9-and-massassignmen/196010 "2010-10-05T14:17:39Z")

</div>

Hi, i tried my first sinatra application with ruby 1.9.2 and ActiveRecord 2.3.9 and the massassignment doesn’t work. New Database entry is nil for all parameters. If i use ActiveRecord 2.3.5 everything works fine. …

---

## ["require" no such file to load](https://www.ruby-forum.com/t/require-no-such-file-to-load/195998)

<div class="topic-metadata">

**Author:** [@anthonyob](https://www.ruby-forum.com/u/anthonyob)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 10:19am UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load/195998 "2010-10-05T10:19:32Z")

</div>

Here is the error: \<internal"lib/rubygems/custom\_require\>:29:in ‘require’: no such file to load – p030motorcycle (LoadError) from internal:lib/rubygems/custom\_require:29:in ‘require’ from p031motorcycletest.rb:2:in …

---

## [How to suppress display of specific code in irb?](https://www.ruby-forum.com/t/how-to-suppress-display-of-specific-code-in-irb/195961)

<div class="topic-metadata">

**Author:** [@rustysam](https://www.ruby-forum.com/u/rustysam)\
**Replies:** 13\
**Last updated:** [October 5, 2010, 10:16am UTC](https://www.ruby-forum.com/t/how-to-suppress-display-of-specific-code-in-irb/195961 "2010-10-05T10:16:47Z")

</div>

I am very new to ruby (but a retired experienced C programmer) and am getting buried in the amount of documentation available. Have been unable to find an answer to this question, but perhaps do not understand the con…

---

## [Missing rake/extensiontask](https://www.ruby-forum.com/t/missing-rake-extensiontask/195982)

<div class="topic-metadata">

**Author:** [@gonzalo\_g](https://www.ruby-forum.com/u/gonzalo_g)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 9:05am UTC](https://www.ruby-forum.com/t/missing-rake-extensiontask/195982 "2010-10-05T09:05:44Z")

</div>

I am using ruby with latest kubuntu using ruby-full and trying to compile FXRuby but it fails as rake/extensiontask is missing. Anyone know how to get it fixed?

---

## [Matz\_en and matz\_transrated twitter accounts](https://www.ruby-forum.com/t/matz-en-and-matz-transrated-twitter-accounts/196001)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [October 5, 2010, 6:50am UTC](https://www.ruby-forum.com/t/matz-en-and-matz-transrated-twitter-accounts/196001 "2010-10-05T06:50:33Z")

</div>

Many of you probably follow the matz\_translated Twitter account, provided by tera.cc via the translate-twitter application: http://twitter.com/matz\_translated http://twitter.com/#!/matz\_translated This is a neat ide…

---

## [Any good tools for reading networking data with optional TLV](https://www.ruby-forum.com/t/any-good-tools-for-reading-networking-data-with-optional-tlv/195952)

<div class="topic-metadata">

**Author:** [@rgollamudi](https://www.ruby-forum.com/u/rgollamudi)\
**Replies:** 2\
**Last updated:** [October 5, 2010, 5:35am UTC](https://www.ruby-forum.com/t/any-good-tools-for-reading-networking-data-with-optional-tlv/195952 "2010-10-05T05:35:28Z")

</div>

Hi, I am trying to write code that reads data off a socket and processes that request. This is a proprietary protocol data on UDP. However, the packet data that is read contains multiple optional TLVs all of which ma…

---

## [Net:sftp 2.0.5 upload! does not work](https://www.ruby-forum.com/t/net-sftp-2-0-5-upload-does-not-work/195997)

<div class="topic-metadata">

**Author:** [@peterk](https://www.ruby-forum.com/u/peterk)\
**Replies:** 3\
**Last updated:** [October 5, 2010, 4:56am UTC](https://www.ruby-forum.com/t/net-sftp-2-0-5-upload-does-not-work/195997 "2010-10-05T04:56:12Z")

</div>

I tried to upload files from a windows box to a linux box, and I used net:sftp 2.0.5. However I got the following error message: C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/operations/upload.rb:168:in i…

---

## [Gems should \*not be case sensitive.. or should they?](https://www.ruby-forum.com/t/gems-should-not-be-case-sensitive-or-should-they/195962)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 6\
**Last updated:** [October 5, 2010, 12:20am UTC](https://www.ruby-forum.com/t/gems-should-not-be-case-sensitive-or-should-they/195962 "2010-10-05T00:20:49Z")

</div>

why are gem names case sensitive? ie, gem rubyinline != gem RubyInline ?? if it’s an os/arch limitation, then i’d suggest they’d be all downcased :slight\_smile: eg, $ gem list --remote | grep -i rubyinline rogerdp…

---

## [MacRuby 0.7](https://www.ruby-forum.com/t/macruby-0-7/195992)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 0\
**Last updated:** [October 5, 2010, 12:06am UTC](https://www.ruby-forum.com/t/macruby-0-7/195992 "2010-10-05T00:06:11Z")

</div>

Hi, After 5 months of development since the last release, MacRuby 0.7 is now available. Get it here while it’s still hot! MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X core technologies such as…

---

## [MutableString issues on IronRuby](https://www.ruby-forum.com/t/mutablestring-issues-on-ironruby/190849)

<div class="topic-metadata">

**Author:** [@Douglas\_Campos](https://www.ruby-forum.com/u/Douglas_Campos)\
**Replies:** 3\
**Last updated:** [October 4, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/mutablestring-issues-on-ironruby/190849 "2010-10-04T23:58:06Z")

</div>

Hi! I’m struggling with a weird error - I have a string filled up with binary data, and when I ask .length to it, CLR raises an exception telling it could not convert from specified charset to unicode. Is there any …

---

## [Unicorn 1.1.4 - small bug fix and doc updates](https://www.ruby-forum.com/t/unicorn-1-1-4-small-bug-fix-and-doc-updates/195990)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [October 4, 2010, 10:43pm UTC](https://www.ruby-forum.com/t/unicorn-1-1-4-small-bug-fix-and-doc-updates/195990 "2010-10-04T22:43:05Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [64-bit Ruby? FXRuby](https://www.ruby-forum.com/t/64-bit-ruby-fxruby/195976)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 2\
**Last updated:** [October 4, 2010, 10:00pm UTC](https://www.ruby-forum.com/t/64-bit-ruby-fxruby/195976 "2010-10-04T22:00:57Z")

</div>

Environment: Windows without a WOW. Is there a 64-bit version of 1.8.7 that will run in the environment, above? And, yes, I looked for the answer to the question. I found: Ruby installer on Windows 7 64-bit machine…

---

## [Object.object.method()](https://www.ruby-forum.com/t/object-object-method/195943)

<div class="topic-metadata">

**Author:** [@withaspoon](https://www.ruby-forum.com/u/withaspoon)\
**Replies:** 5\
**Last updated:** [October 4, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/object-object-method/195943 "2010-10-04T21:54:30Z")

</div>

Hello, obviously it’s a time for a noobie question. What the following statement means? Object.object.method() Sample code: window = Gtk::Window.new(Gtk::Window::TOPLEVEL) area = Gtk::DrawingArea.new() area.window.…

---

## [How to imitate a browser?](https://www.ruby-forum.com/t/how-to-imitate-a-browser/195940)

<div class="topic-metadata">

**Author:** [@drekorian](https://www.ruby-forum.com/u/drekorian)\
**Replies:** 3\
**Last updated:** [October 4, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/how-to-imitate-a-browser/195940 "2010-10-04T19:45:49Z")

</div>

Hey guys, so I’m trying to write a simple script for extraction of my profile data from one site. In order to get the data I have to log in and then download a page. At first I tried to use Ruby’s Net::HTTP library, …

---

## [Howto ruby custom exception using the C-API](https://www.ruby-forum.com/t/howto-ruby-custom-exception-using-the-c-api/195973)

<div class="topic-metadata">

**Author:** [@rantanplan](https://www.ruby-forum.com/u/rantanplan)\
**Replies:** 0\
**Last updated:** [October 4, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/howto-ruby-custom-exception-using-the-c-api/195973 "2010-10-04T14:07:22Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I create the following code to create a custom exception using three parameter to initialize. Q: is this code ok? Thanks for help… =============================…

---

## [Install ruby on the mac](https://www.ruby-forum.com/t/install-ruby-on-the-mac/195949)

<div class="topic-metadata">

**Author:** [@Basi\_L](https://www.ruby-forum.com/u/Basi_L)\
**Replies:** 13\
**Last updated:** [October 4, 2010, 10:26am UTC](https://www.ruby-forum.com/t/install-ruby-on-the-mac/195949 "2010-10-04T10:26:44Z")

</div>

hello, total mac newby here. i’m traying to install ruby via rvm but i’m not having much success. git is already installed. What I do: open terminal enter the command bash \< \<( curl http://rvm.beginrescueend.com/rel…

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

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