# Ruby

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

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

---

## [For user submitted content on website, use textile or html?](https://www.ruby-forum.com/t/for-user-submitted-content-on-website-use-textile-or-html/91767)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 6\
**Last updated:** [April 13, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/for-user-submitted-content-on-website-use-textile-or-html/91767 "2007-04-13T13:50:00Z")

</div>

I know use another markup language, like wiki syntax or textile is to prevent javascript injection. But for user who don’t know about wiki syntax or textile, I’m thinking about just allow them to enter plain html, pa…

---

## [Putting Ruby on Web?](https://www.ruby-forum.com/t/putting-ruby-on-web/91853)

<div class="topic-metadata">

**Author:** [@Merrie](https://www.ruby-forum.com/u/Merrie)\
**Replies:** 6\
**Last updated:** [April 13, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/putting-ruby-on-web/91853 "2007-04-13T13:22:57Z")

</div>

What is the easiest way to get started putting your ruby programs in a web browser, such as the cgi program for Mad Libs. Is there a place I can get more information on this? I know a little PHP, not familiar with CG…

---

## [Get content in a xml element using hpricot](https://www.ruby-forum.com/t/get-content-in-a-xml-element-using-hpricot/91906)

<div class="topic-metadata">

**Author:** [@Bonita](https://www.ruby-forum.com/u/Bonita)\
**Replies:** 3\
**Last updated:** [April 13, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/get-content-in-a-xml-element-using-hpricot/91906 "2007-04-13T12:50:52Z")

</div>

Hi I’m using hpricot to parse the following file. \[from morwyn\] \* HTML for the Conceptually Challenged http://del.icio.us/url/50666d1a3fe2b942b20819ec2919d2b7#morwyn HTML for the Conceptually Challenged. Very basic t…

---

## [Does any one know of a good file comparator for RoR](https://www.ruby-forum.com/t/does-any-one-know-of-a-good-file-comparator-for-ror/91904)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 11:21am UTC](https://www.ruby-forum.com/t/does-any-one-know-of-a-good-file-comparator-for-ror/91904 "2007-04-13T11:21:42Z")

</div>

Hi, Does any one know of a good file comparator used in RoR world. Though there are many other lang/framework based source code comparator, i did not find one for RoR specific when i googled it. I use easy eclipse a…

---

## [Adding MatchData#groups to Ruby 1.9 (svn) with Oniguruma 4.4](https://www.ruby-forum.com/t/adding-matchdata-groups-to-ruby-1-9-svn-with-oniguruma-4-4/91870)

<div class="topic-metadata">

**Author:** [@rretzbach](https://www.ruby-forum.com/u/rretzbach)\
**Replies:** 2\
**Last updated:** [April 13, 2007, 10:55am UTC](https://www.ruby-forum.com/t/adding-matchdata-groups-to-ruby-1-9-svn-with-oniguruma-4-4/91870 "2007-04-13T10:55:40Z")

</div>

Heyho, I would like to propose a method for returning all named groups of a MatchData object as Array: m = /(?\\w+) (?\\w+)/.match("Robert R.") m.groups #=\> \["forename", "surname"\] lets you create an own Hash easily if…

---

## [Why my ruby services shuts down when logoff from windows](https://www.ruby-forum.com/t/why-my-ruby-services-shuts-down-when-logoff-from-windows/91908)

<div class="topic-metadata">

**Author:** [@Miika\_Parvio](https://www.ruby-forum.com/u/Miika_Parvio)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 9:53am UTC](https://www.ruby-forum.com/t/why-my-ruby-services-shuts-down-when-logoff-from-windows/91908 "2007-04-13T09:53:07Z")

</div>

Hello! I have problems with services created on ruby tools. I’m using mongrel web server I’m creating mongrel weg server service in following way: rails\_path = File.expand\_path(File.dirname(FILE) + “/…”).gsub("/", “…

---

## [Any English documentation for exerb available?](https://www.ruby-forum.com/t/any-english-documentation-for-exerb-available/91884)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 6:56am UTC](https://www.ruby-forum.com/t/any-english-documentation-for-exerb-available/91884 "2007-04-13T06:56:45Z")

</div>

Hi all, I am trying to create a standalone executable for windows from ruby script. I found that there are 2 options available now, rubyscript2exe and exerb. I had tried both, but seems like the exerb is faster and e…

---

## [Using self.attribute for writing vs reading - confusion](https://www.ruby-forum.com/t/using-self-attribute-for-writing-vs-reading-confusion/91892)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [April 13, 2007, 4:57am UTC](https://www.ruby-forum.com/t/using-self-attribute-for-writing-vs-reading-confusion/91892 "2007-04-13T04:57:40Z")

</div>

Lets take this simple example class NewBook attr\_accessor :books def initialize @books = \[\] end def some\_method books\[0\] #( the reader for books works fine and will recall the class value @books, however) boo…

---

## [File manipulation](https://www.ruby-forum.com/t/file-manipulation/91856)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 2\
**Last updated:** [April 13, 2007, 4:25am UTC](https://www.ruby-forum.com/t/file-manipulation/91856 "2007-04-13T04:25:19Z")

</div>

as a part of another program, i need to be able to keep an index number inside of a file… what i want to do is: open the file get its contents and store in a local variable clear its contents store an incremented v…

---

## [How to Write a Spelling Corrector](https://www.ruby-forum.com/t/how-to-write-a-spelling-corrector/91526)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 12\
**Last updated:** [April 13, 2007, 4:15am UTC](https://www.ruby-forum.com/t/how-to-write-a-spelling-corrector/91526 "2007-04-13T04:15:39Z")

</div>

Peter Norvig wrote a simple spelling corrector in 20 lines of Python 2.5, so I thought I’d see what it looks like in Ruby. I’m not too pleased with my version, if anyone can make it more elegant, that would be great. …

---

## [Zentest 3.5.0 Released](https://www.ruby-forum.com/t/zentest-3-5-0-released/91885)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [April 13, 2007, 3:07am UTC](https://www.ruby-forum.com/t/zentest-3-5-0-released/91885 "2007-04-13T03:07:31Z")

</div>

HOLY CRAP! zentest version 3.5.0 has been released and it is HUOOOGE!!! zenspider projects | software projects | by ryan davis ZenTest provides 4 different tools and 1 library: zentest, unit\_diff, autotest, multiruby,…

---

## [Missing packets in multicast receiver](https://www.ruby-forum.com/t/missing-packets-in-multicast-receiver/91712)

<div class="topic-metadata">

**Author:** [@James\_WSMills](https://www.ruby-forum.com/u/James_WSMills)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 1:10am UTC](https://www.ruby-forum.com/t/missing-packets-in-multicast-receiver/91712 "2007-04-13T01:10:26Z")

</div>

Hello list. I need to use multicast in a project I am working on. I would like to have a multicast sender send a large amount of multicast data, and a multicast receiver receive it. I used the example I found here: …

---

## [Ruby Installation Issue](https://www.ruby-forum.com/t/ruby-installation-issue/91867)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 13, 2007, 12:53am UTC](https://www.ruby-forum.com/t/ruby-installation-issue/91867 "2007-04-13T00:53:23Z")

</div>

Hello. I’m looking to install Ruby on my hosting, which is a Linux VPS server. I have SSH access and was following this guide: http://xmlareas.com/ruby-rails-howto.html The problem is, there’s no GCC compiler on my …

---

## [Help with Ruby 1.9 - Net::HTTP calls hang on windows](https://www.ruby-forum.com/t/help-with-ruby-1-9-net-http-calls-hang-on-windows/91860)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/help-with-ruby-1-9-net-http-calls-hang-on-windows/91860 "2007-04-12T22:20:09Z")

</div>

I have managed to build Ruby 1.9 on my windows machine, but Net::HTTP calls just hang. Here’s my test script: require ‘net/http’ puts “Ruby version: #{RUBY\_VERSION}” puts “opening local site” Net::HTTP.start(“local…

---

## [Distinct](https://www.ruby-forum.com/t/distinct/91826)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 4\
**Last updated:** [April 12, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/distinct/91826 "2007-04-12T21:33:04Z")

</div>

hello, a little question… how to get distinct values from an hash? ex: hash = {“a”=\>100, “b”=\>200, “d”=\>100, “d”=\>200} ==\> hash\_with\_distinct\_values = \[100, 200\] thanks.

---

## [My Blog](https://www.ruby-forum.com/t/my-blog/91849)

<div class="topic-metadata">

**Author:** [@Ali\_Y](https://www.ruby-forum.com/u/Ali_Y)\
**Replies:** 2\
**Last updated:** [April 12, 2007, 9:13pm UTC](https://www.ruby-forum.com/t/my-blog/91849 "2007-04-12T21:13:00Z")

</div>

Hi all I just wanted to share my personal weblog in which I will be offering my ruby programs in the future, http://gon1.blogspot.com you can bookmark it as it has RSS feeds. thanks

---

## [Simple File.open error](https://www.ruby-forum.com/t/simple-file-open-error/91839)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [April 12, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/simple-file-open-error/91839 "2007-04-12T19:53:47Z")

</div>

Hello, I’m going nuts with a simple error. All I want to do is open a file and stick a number in it. The error is referring to this line below. In the error, it’s picking up all the variable names correctly. … File.…

---

## [Real world experience needed](https://www.ruby-forum.com/t/real-world-experience-needed/91770)

<div class="topic-metadata">

**Author:** [@celldee](https://www.ruby-forum.com/u/celldee)\
**Replies:** 9\
**Last updated:** [April 12, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/real-world-experience-needed/91770 "2007-04-12T18:54:42Z")

</div>

I am in the process of retraining myself in Ruby. I have books, a Mac (with Textmate), Linux and Windows boxes, read online articles and invent little coding exercises for myself. None of that is a substitute for real…

---

## [Counting to 100 (#119)](https://www.ruby-forum.com/t/counting-to-100-119/91646)

<div class="topic-metadata">

**Author:** [@Erwin\_A](https://www.ruby-forum.com/u/Erwin_A)\
**Replies:** 3\
**Last updated:** [April 12, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/counting-to-100-119/91646 "2007-04-12T18:10:37Z")

</div>

It would be really interesting to write a non-recursive permute function that could map a number n to each permutation of digits, and map n+1 to the next permutation. Then we could just count from 1 to 6561 for 9 dig…

---

## [Help](https://www.ruby-forum.com/t/help/91823)

<div class="topic-metadata">

**Author:** [@titi](https://www.ruby-forum.com/u/titi)\
**Replies:** 1\
**Last updated:** [April 12, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/help/91823 "2007-04-12T17:34:33Z")

</div>

j ai un probleme, j ai recu a insaller Ruby mais j arrive pas a le lance avec un fichier \*.rb avce la commade ruby PS je travaile sous Windows merci

---

## [A C++ reference in a Ruby extension](https://www.ruby-forum.com/t/a-c-reference-in-a-ruby-extension/91758)

<div class="topic-metadata">

**Author:** [@David\_Simas](https://www.ruby-forum.com/u/David_Simas)\
**Replies:** 3\
**Last updated:** [April 12, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/a-c-reference-in-a-ruby-extension/91758 "2007-04-12T16:01:22Z")

</div>

I’m trying to write an extension to access some C++ libraries from Ruby (1.8.4). One of the C++ functions uses a reference to pass a value back to the caller as a side effect: ErrorHandle\* DetectInvisibleWatermark(co…

---

## [ClothRed (HTML to Textile)](https://www.ruby-forum.com/t/clothred-html-to-textile/91598)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 15\
**Last updated:** [April 12, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/clothred-html-to-textile/91598 "2007-04-12T15:48:21Z")

</div>

I’m pleased to announce, that I’ve begun working on a small library to convert HTML into Textile. Please forgive me, that this announcement isn’t yet following the community’s standards, but I’m slowly getting there. …

---

## [HTML entites in ClothRed: yay or nay?](https://www.ruby-forum.com/t/html-entites-in-clothred-yay-or-nay/91802)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 2\
**Last updated:** [April 12, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/html-entites-in-clothred-yay-or-nay/91802 "2007-04-12T15:11:27Z")

</div>

In preparation of release 0.3.0 (hopefully later today ;), I’m wondering: Should I translated HTML entities into human-readable format? My hunch is yes, as that’s the point of Textile. So, I’m at a bit of a loss: I’ve…

---

## [Getting to 100 (#119)](https://www.ruby-forum.com/t/getting-to-100-119/91806)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/getting-to-100-119/91806 "2007-04-12T15:01:25Z")

</div>

This was a popular problem and we saw many different ways to go about solving it. The discussion on the mailing list was also very good, with many ideas shared and explained. I’m going to go through a few solutions…

---

## [For user submitted content, textile or inspected html?](https://www.ruby-forum.com/t/for-user-submitted-content-textile-or-inspected-html/91769)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 2\
**Last updated:** [April 12, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/for-user-submitted-content-textile-or-inspected-html/91769 "2007-04-12T15:00:25Z")

</div>

I know use another markup language, like wiki syntax or textile is to prevent javascript injection. But for user who don’t know about wiki syntax or textile, I’m thinking about just allow them to enter plain html, pa…

---

## [Making a class with built-in checks on success](https://www.ruby-forum.com/t/making-a-class-with-built-in-checks-on-success/91717)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 3\
**Last updated:** [April 12, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/making-a-class-with-built-in-checks-on-success/91717 "2007-04-12T13:40:23Z")

</div>

Hello, I’ve been using an image conversion tool here in my department for many years, and, I’d like to create a Ruby class for it that I can call on in my scripts. I use this tool usually to convert either PDF or EPS …

---

## [NMEA (GPS protocol) parser](https://www.ruby-forum.com/t/nmea-gps-protocol-parser/91737)

<div class="topic-metadata">

**Author:** [@max-lapshin](https://www.ruby-forum.com/u/max-lapshin)\
**Replies:** 5\
**Last updated:** [April 12, 2007, 11:22am UTC](https://www.ruby-forum.com/t/nmea-gps-protocol-parser/91737 "2007-04-12T11:22:45Z")

</div>

I want to introduce parser for NMEA protocol, which is used by GPS devices to tell geographic coordinates. Gem is called nmea, available at www.rubyforge.org/projects/nmea. SVN repository is accessible at http://svn.m…

---

## [ClothRed 0.2.0 released](https://www.ruby-forum.com/t/clothred-0-2-0-released/91787)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 10:58am UTC](https://www.ruby-forum.com/t/clothred-0-2-0-released/91787 "2007-04-12T10:58:44Z")

</div>

= ClothRed HTML 2 Textile converter == What it is A script to convert HTML into Textile markup for use, for example, with RedCloth. == Requirements All you need is Ruby. == Get it Available as a gem on RubyForge: …

---

## [Debugging Ruby](https://www.ruby-forum.com/t/debugging-ruby/91782)

<div class="topic-metadata">

**Author:** [@celldee](https://www.ruby-forum.com/u/celldee)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 10:35am UTC](https://www.ruby-forum.com/t/debugging-ruby/91782 "2007-04-12T10:35:42Z")

</div>

Every so often I have to resort to using a debugger. I quite like test- debug, but I was wondering whether there are any other options worth considering that I’d missed. Any suggestions? Regards, Chris htttp://rotso…

---

## [Rb\_rescue2 with vm](https://www.ruby-forum.com/t/rb-rescue2-with-vm/88633)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 2\
**Last updated:** [April 12, 2007, 9:38am UTC](https://www.ruby-forum.com/t/rb-rescue2-with-vm/88633 "2007-04-12T09:38:35Z")

</div>

e$B$O$8$a$^$7$F!"%o%J%Y$H?=$7$^$9!#e(B 1.9 e$B$Ne(B rb\_rescue2 e$B$rFI$s$G$$$Fe(B xxx\_TAG e$B7OE}$NO"B3$GFI$$K$/$+$C$?$N$Ge(B e$B\<B83E\*$Ke(B VM e$B$r;H$C$?7A$K$7$F$$^$7$?!#e(B e$B$"$/$^$G\<B83$J$N$G%P%C%/%H%l!\<%9Ey$O…

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

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