# Ruby

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

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

---

## [Escaping non-ASCII chars for RTF export](https://www.ruby-forum.com/t/escaping-non-ascii-chars-for-rtf-export/118991)

<div class="topic-metadata">

**Author:** [@Dan\_Herrera](https://www.ruby-forum.com/u/Dan_Herrera)\
**Replies:** 5\
**Last updated:** [November 2, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/escaping-non-ascii-chars-for-rtf-export/118991 "2007-11-02T19:23:47Z")

</div>

Greetings, I’m attempting to convert non-ASCII characters to unicode escape sequences for export to RTF, and I haven’t had much luck finding any good information searching google. Anyone here have any good resources…

---

## [CSV with Ruby Newbie](https://www.ruby-forum.com/t/csv-with-ruby-newbie/119045)

<div class="topic-metadata">

**Author:** [@coolbox](https://www.ruby-forum.com/u/coolbox)\
**Replies:** 9\
**Last updated:** [November 2, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/csv-with-ruby-newbie/119045 "2007-11-02T18:51:36Z")

</div>

Hey guys. I am currently following an example in: “Programming Ruby: The Pragmatic Programmers Guide” (pg. 663) on reading CSV files with Ruby. I am struggling though to get the code to read a CSV file that has a head…

---

## [Executing VIM on a remote machine?](https://www.ruby-forum.com/t/executing-vim-on-a-remote-machine/118978)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 10\
**Last updated:** [November 2, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/executing-vim-on-a-remote-machine/118978 "2007-11-02T16:39:54Z")

</div>

Is is possible with ruby to execute vim on a remote machine to edit a file? can some one point me in the right direction?

---

## [IOS troubles with binary data on windows](https://www.ruby-forum.com/t/ios-troubles-with-binary-data-on-windows/119002)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 6\
**Last updated:** [November 2, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/ios-troubles-with-binary-data-on-windows/119002 "2007-11-02T16:38:08Z")

</div>

I’m at a loss. Writing data from a file to an IOS blows up on windows. You get ’ Invalid argument (Errno::EINVAL)’. The code is below. @ezstream is an IOS opened r+b. If I read the files with http it works. As in htt…

---

## [Ruby-frontbase doesn't compile on Mac OS X version 10.5](https://www.ruby-forum.com/t/ruby-frontbase-doesnt-compile-on-mac-os-x-version-10-5/118679)

<div class="topic-metadata">

**Author:** [@lists](https://www.ruby-forum.com/u/lists)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/ruby-frontbase-doesnt-compile-on-mac-os-x-version-10-5/118679 "2007-11-02T15:37:48Z")

</div>

Hi, When trying to compile ruby-frontbase version 1.0.1 on a G5 PPC machine, I get this: gem install ruby-frontbase Building native extensions. This could take a while… ERROR: While executing gem … (Gem::Installer:…

---

## [Get only the non-inherited methods of a class](https://www.ruby-forum.com/t/get-only-the-non-inherited-methods-of-a-class/119039)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 5\
**Last updated:** [November 2, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/get-only-the-non-inherited-methods-of-a-class/119039 "2007-11-02T15:07:07Z")

</div>

Does anyone know how to get the methods of a class in such a way as to not get inherited ones? For example, the Rails class AbstractRequest has 20 or so methods, all of which can be called with no parameters. I can c…

---

## [Dinner / drink recommendations for Charlotte?](https://www.ruby-forum.com/t/dinner-drink-recommendations-for-charlotte/118851)

<div class="topic-metadata">

**Author:** [@Francis\_H](https://www.ruby-forum.com/u/Francis_H)\
**Replies:** 13\
**Last updated:** [November 2, 2007, 11:45am UTC](https://www.ruby-forum.com/t/dinner-drink-recommendations-for-charlotte/118851 "2007-11-02T11:45:21Z")

</div>

With RubyConf 2007 almost upon us, do any Charlotte natives care to give some advice about good places to eat & drink?

---

## ["syntax" gem definitions for C++](https://www.ruby-forum.com/t/syntax-gem-definitions-for-c/118931)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 11:31am UTC](https://www.ruby-forum.com/t/syntax-gem-definitions-for-c/118931 "2007-11-02T11:31:16Z")

</div>

Anyone heard of a syntax definition for “C++” to be used with “syntax” (http://rubyforge.org/projects/syntax) ? Or do you know of another alternative to highlight the syntax of different languages ? Gaspard

---

## [Menu](https://www.ruby-forum.com/t/menu/118909)

<div class="topic-metadata">

**Author:** [@bardachmail](https://www.ruby-forum.com/u/bardachmail)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 11:24am UTC](https://www.ruby-forum.com/t/menu/118909 "2007-11-02T11:24:15Z")

</div>

I am new user of Ruby technology. I need to know how do a menu system a site web. Mostafa BARADCH

---

## [I foolishly used gems. How do I reset it all?](https://www.ruby-forum.com/t/i-foolishly-used-gems-how-do-i-reset-it-all/119028)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 10:52am UTC](https://www.ruby-forum.com/t/i-foolishly-used-gems-how-do-i-reset-it-all/119028 "2007-11-02T10:52:39Z")

</div>

I tried to install scRUBYt with absolutely no success and installed a whole load of crap in the process. Is there any way to simply revert the state of my gems to some time before the madness? Do I have to resort t…

---

## [Create a method with name, containing illegal characters](https://www.ruby-forum.com/t/create-a-method-with-name-containing-illegal-characters/118831)

<div class="topic-metadata">

**Author:** [@kylichuku](https://www.ruby-forum.com/u/kylichuku)\
**Replies:** 13\
**Last updated:** [November 2, 2007, 10:35am UTC](https://www.ruby-forum.com/t/create-a-method-with-name-containing-illegal-characters/118831 "2007-11-02T10:35:07Z")

</div>

Hi there! I need to create a method with name, that contains ‘-’ character. Is it possible, and if the answer is “yes”, how can I do it? Thanks.

---

## [What the hell is the =\> operator?](https://www.ruby-forum.com/t/what-the-hell-is-the-operator/119023)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 10:06am UTC](https://www.ruby-forum.com/t/what-the-hell-is-the-operator/119023 "2007-11-02T10:06:26Z")

</div>

I’ve seen this in some ruby code but I have no idea what is going on. I’d do a google search on it but… I don’t search for ‘=\>’ and I don’t know how to describe it in english so that the context will be this! I’ve se…

---

## [Shoudln't rails be starting on 127.0.0.1?](https://www.ruby-forum.com/t/shoudlnt-rails-be-starting-on-127-0-0-1/118878)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 7:25am UTC](https://www.ruby-forum.com/t/shoudlnt-rails-be-starting-on-127-0-0-1/118878 "2007-11-02T07:25:40Z")

</div>

Hi, I just installed the most recent version of ruby and rails on my Fedora Core 5 Linux system. For some reason, my server isn’t starting, but I noticed one line upon startup: =\> Rails application starting on http:…

---

## [Backslash sequences\\1\\2 in regexs (backreferences)](https://www.ruby-forum.com/t/backslash-sequences-1-2-in-regexs-backreferences/119006)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 5\
**Last updated:** [November 2, 2007, 6:51am UTC](https://www.ruby-forum.com/t/backslash-sequences-1-2-in-regexs-backreferences/119006 "2007-11-02T06:51:32Z")

</div>

Is this behavior documented anywhere: puts “fred:smith”.gsub(/(\\w+):(\\w+)/, ‘\\2, \\1’) –output:– smith, fred puts “abc”.gsub(/a(b)©/, “a\\2\\1”) –output:– a The double quotes surrounding the replacement strin…

---

## [Can't get my regexp to work to test if numerical](https://www.ruby-forum.com/t/cant-get-my-regexp-to-work-to-test-if-numerical/119016)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 3\
**Last updated:** [November 2, 2007, 6:33am UTC](https://www.ruby-forum.com/t/cant-get-my-regexp-to-work-to-test-if-numerical/119016 "2007-11-02T06:33:40Z")

</div>

alright, this seems easy enough. Building a Bank class, deposits must be floating, so if it has any letters, it will tell the user it needs numbers if amount == /^\[0-9\]$/ deposit\_to\_acct(amount,current\_accou…

---

## [Assertion loop in test/unit?](https://www.ruby-forum.com/t/assertion-loop-in-test-unit/119004)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 5:21am UTC](https://www.ruby-forum.com/t/assertion-loop-in-test-unit/119004 "2007-11-02T05:21:52Z")

</div>

In the following snippet, the first two fields exist, the remaining do not. However, the test correctly tells me that replyaddr is missing, but never processes the last two items in the list: def test\_fields\_exist …

---

## [Sup 0.2 released](https://www.ruby-forum.com/t/sup-0-2-released/118672)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 4:45am UTC](https://www.ruby-forum.com/t/sup-0-2-released/118672 "2007-11-02T04:45:40Z")

</div>

Sup version 0.2 has been released! http://sup.rubyforge.org Sup is a console-based email client for people with a lot of email. It supports tagging, very fast full-text search, automatic contact- list management, and…

---

## [Install hpricot on Leopard](https://www.ruby-forum.com/t/install-hpricot-on-leopard/118897)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 6\
**Last updated:** [November 2, 2007, 4:26am UTC](https://www.ruby-forum.com/t/install-hpricot-on-leopard/118897 "2007-11-02T04:26:57Z")

</div>

Oh, this was working SO nicely until I upgraded the OS… I tried running my little site spider to keep my archive up-to-date and I got an error about mechanize not being available. No problem, I’ll just fire up gem and…

---

## [Fastest way to compute dot product (inner product) in Ruby?](https://www.ruby-forum.com/t/fastest-way-to-compute-dot-product-inner-product-in-ruby/118996)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 4:25am UTC](https://www.ruby-forum.com/t/fastest-way-to-compute-dot-product-inner-product-in-ruby/118996 "2007-11-02T04:25:47Z")

</div>

Ruby seems to provide some nice, abstract ways of doing some computationally intensive things quickly. For instance, String#unpack is a very nice and efficient way to convert between formats when doing I/O and such. …

---

## [Ruby on Leopard](https://www.ruby-forum.com/t/ruby-on-leopard/119007)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 2:58am UTC](https://www.ruby-forum.com/t/ruby-on-leopard/119007 "2007-11-02T02:58:07Z")

</div>

Just FYI the Ruby that ships with leopard is 1.8.6 p36 but it includes many of the patches and bugfixes that shipped with p110 so you are more than welcome and encourages to maintain system stability by staying with t…

---

## [Seg fault when building ruby 1.8.6-p111 on MacOS X 10.5](https://www.ruby-forum.com/t/seg-fault-when-building-ruby-1-8-6-p111-on-macos-x-10-5/118987)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 2:06am UTC](https://www.ruby-forum.com/t/seg-fault-when-building-ruby-1-8-6-p111-on-macos-x-10-5/118987 "2007-11-02T02:06:42Z")

</div>

I’m getting a segmentation fault when building ruby 1.8.6-p111 (from source and by itself, not as part of a larger distribution). I’m running on a clean version of MacOS X 10.5 and a new build of readline 5.2 installe…

---

## [Number to alpha letter](https://www.ruby-forum.com/t/number-to-alpha-letter/118945)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 5\
**Last updated:** [November 2, 2007, 1:46am UTC](https://www.ruby-forum.com/t/number-to-alpha-letter/118945 "2007-11-02T01:46:49Z")

</div>

Hi, Is there an out of box utility to convert a number to an alphabet letter, like a to\_alpha()? I’m trying to write the content of an array to a row in excel worksheet. Thanks, Parv

---

## [Help with SSL and socket and certificate and idk](https://www.ruby-forum.com/t/help-with-ssl-and-socket-and-certificate-and-idk/118963)

<div class="topic-metadata">

**Author:** [@Trukin](https://www.ruby-forum.com/u/Trukin)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 1:35am UTC](https://www.ruby-forum.com/t/help-with-ssl-and-socket-and-certificate-and-idk/118963 "2007-11-02T01:35:43Z")

</div>

Hello, I’ve got a little problem I need to solve. I need to write an application that connects to a SSL-secured server. Pretty much, ive got to open a SSL-Secured socket, using a Certificate I obtained from the peopl…

---

## [Re: regex question](https://www.ruby-forum.com/t/re-regex-question/118992)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 12:03am UTC](https://www.ruby-forum.com/t/re-regex-question/118992 "2007-11-02T00:03:25Z")

</div>

Perfect! Thanks. I really got to get a better handle or regular expressions Robert K. removed\_email\_address@domain.invalid ----- Original Message ---- From: 7stud – removed\_email\_address@domain.invalid To: ruby-…

---

## [Rinda::TupleBag](https://www.ruby-forum.com/t/rinda-tuplebag/103002)

<div class="topic-metadata">

**Author:** [@Alex\_VSBreger](https://www.ruby-forum.com/u/Alex_VSBreger)\
**Replies:** 10\
**Last updated:** [November 2, 2007, 12:01am UTC](https://www.ruby-forum.com/t/rinda-tuplebag/103002 "2007-11-02T00:01:40Z")

</div>

Hello In the current version of Ruby (http://svn.ruby-lang.org/repos/ruby/trunk/lib/rinda/tuplespace.rb) Rinda::TupleBag is implemented with hash by tuple size and then with array. This realization is simple and fas…

---

## [Sorting a string](https://www.ruby-forum.com/t/sorting-a-string/118880)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 14\
**Last updated:** [November 1, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/sorting-a-string/118880 "2007-11-01T23:20:41Z")

</div>

I was porting a small Python script over to Ruby and realized Ruby does not sort strings as I expected it would. ‘cba’.sort # \[“cba”\] So I wrote this… class String def sort bytes = Array.new self.each\_byte { |byte…

---

## [Newbie question](https://www.ruby-forum.com/t/newbie-question/118985)

<div class="topic-metadata">

**Author:** [@dalesmithtx](https://www.ruby-forum.com/u/dalesmithtx)\
**Replies:** 5\
**Last updated:** [November 1, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/newbie-question/118985 "2007-11-01T22:50:14Z")

</div>

First thing’s first - if there’s a newbie forum where a question like this would be more appropriate, somebody please point it out to me. I’m new to Ruby, and I’m trying to pick it up specifically for Watir testing. …

---

## [Rubyconf ride](https://www.ruby-forum.com/t/rubyconf-ride/118980)

<div class="topic-metadata">

**Author:** [@helder](https://www.ruby-forum.com/u/helder)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/rubyconf-ride/118980 "2007-11-01T22:07:32Z")

</div>

Hi folks, I’ll be hosted at a friend’s house a bit far from uptown, and she said buses don’t run on weekends (and she’ll be out of town). Anyone with a driver’s license who might be staying around the same place would …

---

## [How to get the variables from a class](https://www.ruby-forum.com/t/how-to-get-the-variables-from-a-class/118947)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 3\
**Last updated:** [November 1, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/how-to-get-the-variables-from-a-class/118947 "2007-11-01T21:53:31Z")

</div>

I have this code: require ‘appliances’ class Toast\<Appliances def toast(hole,size,seconds,quantity) self.turn\_on(seconds,quantity) self.chooser(hole,size) end end And from another file: require ‘toast’ tuest1=…

---

## [Regex question](https://www.ruby-forum.com/t/regex-question/118966)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 3\
**Last updated:** [November 1, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/regex-question/118966 "2007-11-01T21:10:34Z")

</div>

I have a string = “this is text that I want to 9 9.90 89 9 ii8 u” using str = string.gsub(/(?!\\d)\\b\\s\\b(?!\\d)/,’-’) i get “this-is-text-that I want-to 9 9.90 89 9-ii8-u” ^ ^ there problem is that I do n…

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

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