# Ruby

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

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

---

## [Ipaddr and invalid ipv4 addresses](https://www.ruby-forum.com/t/ipaddr-and-invalid-ipv4-addresses/154740)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/ipaddr-and-invalid-ipv4-addresses/154740 "2008-12-03T23:15:49Z")

</div>

What’s going on here? irb(main):002:0\> require ‘ipaddr’ =\> true irb(main):003:0\> ip = IPAddr.new(‘192.168.1.1024’) =\> #\<IPAddr: IPv4:192.168.5.0/255.255.255.255\> irb(main):005:0\> IPSocket.getaddress(‘192.168.1.1024’…

---

## [Code Review: YamlRefactoring1](https://www.ruby-forum.com/t/code-review-yamlrefactoring1/154779)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/code-review-yamlrefactoring1/154779 "2008-12-03T22:42:56Z")

</div>

tfpt review “/shelveset:YamlRefactoring1;REDMOND\\tomat” Comment : Various Yaml related changes: Integer and Numeric now derives from RubyObject so that a new CLR type is not created when these classes are subcl…

---

## [How do you make a hash key using a wordy string?](https://www.ruby-forum.com/t/how-do-you-make-a-hash-key-using-a-wordy-string/154748)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/how-do-you-make-a-hash-key-using-a-wordy-string/154748 "2008-12-03T22:40:12Z")

</div>

Hello everyone. How do you make a hash key using a string? For instance, txt file… 1 This is a string 22234343 2 This is another string 434355455 3 This is a different string 34324545 file = File.open(“mytext4hash.…

---

## [Problems with Ruby/Tk TkProgressbar](https://www.ruby-forum.com/t/problems-with-ruby-tk-tkprogressbar/154782)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/problems-with-ruby-tk-tkprogressbar/154782 "2008-12-03T22:35:53Z")

</div>

This doesn’t seem to exist, even though irb lists it in tab-completion mode. Anyone know how to get it working? Thanks, Ken

---

## [How to make JRuby support ISO-8859-1 for its strings?](https://www.ruby-forum.com/t/how-to-make-jruby-support-iso-8859-1-for-its-strings/154653)

<div class="topic-metadata">

**Author:** [@Sergio\_Oliveira](https://www.ruby-forum.com/u/Sergio_Oliveira)\
**Replies:** 8\
**Last updated:** [December 3, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/how-to-make-jruby-support-iso-8859-1-for-its-strings/154653 "2008-12-03T22:19:27Z")

</div>

I am running JRuby 1.1.5 through Tomcat on Windows. I tried the $KCODE = ‘u’, $KCODE = ‘U’, $KCODE = ‘ASCII’, etc. None of them worked. :frowning: I have a JRuby String “SÃ©rgio” which is converted to a Java String wh…

---

## [Is there a Ruby/Tk wiki anywhere?](https://www.ruby-forum.com/t/is-there-a-ruby-tk-wiki-anywhere/154700)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/is-there-a-ruby-tk-wiki-anywhere/154700 "2008-12-03T22:16:31Z")

</div>

If I get into seriously using Ruby/Tk, I’d like to document what I learn for others to use. (I’ve been a professional tech writer in the past, and co-wrote a Python book, so I’m fairly good at that.) Is there a Ruby/T…

---

## [Msf/core lib](https://www.ruby-forum.com/t/msf-core-lib/154784)

<div class="topic-metadata">

**Author:** [@lotfi](https://www.ruby-forum.com/u/lotfi)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/msf-core-lib/154784 "2008-12-03T22:03:50Z")

</div>

hi this msg has appear when i get to compile a rb script :in \`require’: no such file to load – msf/core (LoadError) but i can’t download the msf/core lib. can u help me plz.

---

## [tk\_optionMenu in Ruby/Tk](https://www.ruby-forum.com/t/tk-optionmenu-in-ruby-tk/154757)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/tk-optionmenu-in-ruby-tk/154757 "2008-12-03T22:02:54Z")

</div>

Does anyone know of an example that shows the correct use of tk\_optionMenu in Ruby/Tk? All references I can find deal with popping up a “normal” menu. Thanks, Ken

---

## [Best gui toolkit](https://www.ruby-forum.com/t/best-gui-toolkit/154437)

<div class="topic-metadata">

**Author:** [@rapido](https://www.ruby-forum.com/u/rapido)\
**Replies:** 31\
**Last updated:** [December 3, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/best-gui-toolkit/154437 "2008-12-03T21:51:06Z")

</div>

What is the best GUI toolkit for Ruby?

---

## [HookR version 1.0.0 released](https://www.ruby-forum.com/t/hookr-version-1-0-0-released/154770)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/hookr-version-1-0-0-released/154770 "2008-12-03T21:18:51Z")

</div>

HookR version 1.0.0 by Avdi G. http://hookr.rubyforge.org == DESCRIPTION HookR is a publish/subscribe callback hook facility for Ruby. == CHANGES 1 major enhancement Birthday! == SYNOPSIS: require ‘rubygems’ …

---

## [FasterCsv writing columns](https://www.ruby-forum.com/t/fastercsv-writing-columns/154766)

<div class="topic-metadata">

**Author:** [@marcisco0](https://www.ruby-forum.com/u/marcisco0)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/fastercsv-writing-columns/154766 "2008-12-03T21:14:07Z")

</div>

Hi, Can someone help me with FCSV writing ? If I have an array of integers lets say someList\[0\].listName = “header1” someList\[0\].someArray = \[ 2, 4, 8, 9 \] someList\[1\].listName = “header2” someList\[1\].someArray = \[…

---

## [Make exe](https://www.ruby-forum.com/t/make-exe/154735)

<div class="topic-metadata">

**Author:** [@lotfi](https://www.ruby-forum.com/u/lotfi)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/make-exe/154735 "2008-12-03T21:01:47Z")

</div>

hi how to make a exe file from .rb file

---

## [RubyForge not being updated?](https://www.ruby-forum.com/t/rubyforge-not-being-updated/154696)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 5\
**Last updated:** [December 3, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/rubyforge-not-being-updated/154696 "2008-12-03T20:20:38Z")

</div>

Anyone know what’s up with RubyForge? I submitted a new project three days ago and I haven’t heard back. Also, the RubyForge home page hasn’t changed in three days. While I’m thrilled to see my previous release (Al…

---

## [Time to back peddle? (Ruby 1.8.7)](https://www.ruby-forum.com/t/time-to-back-peddle-ruby-1-8-7/154212)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 15\
**Last updated:** [December 3, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/time-to-back-peddle-ruby-1-8-7/154212 "2008-12-03T19:23:06Z")

</div>

I just updated my Ubuntu system and was a bit surprised to find: $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) \[i486-linux\] I’ve heard nothing but bad commentary on this version of Ruby. What’s the word? Should I d…

---

## [JavaOne and CommunityOne reminders](https://www.ruby-forum.com/t/javaone-and-communityone-reminders/154772)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/javaone-and-communityone-reminders/154772 "2008-12-03T19:18:25Z")

</div>

Just a reminder, folks, JavaOne and CommunityOne submission deadlines are rapidly approaching! CommunityOne CommunityOne East - March 18-19, 2009 - New York City CommunityOne West - June 1-2, 2009 - San Francisco De…

---

## [String with \\](https://www.ruby-forum.com/t/string-with/154753)

<div class="topic-metadata">

**Author:** [@vrone](https://www.ruby-forum.com/u/vrone)\
**Replies:** 9\
**Last updated:** [December 3, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/string-with/154753 "2008-12-03T18:34:02Z")

</div>

Hi all string = “abc/ def/ ghi/” how to get all three of these dynamic values placed before backslash in separate variables. any suggestitons?? cheers

---

## [Glassfish gem 0.9 problems](https://www.ruby-forum.com/t/glassfish-gem-0-9-problems/153359)

<div class="topic-metadata">

**Author:** [@LuSSS\_s\_Gustavo\_Lim](https://www.ruby-forum.com/u/LuSSS_s_Gustavo_Lim)\
**Replies:** 7\
**Last updated:** [December 3, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/glassfish-gem-0-9-problems/153359 "2008-12-03T18:21:25Z")

</div>

Hi guys! I’m testing the glassfish-gem 0.9 and I got some errors when I start my rails application. I’m using jruby 1.1.5, glassfish-gem 0.9, rack 0.4 and rails 2.1.2 In osx everything works fine! In Windows Server …

---

## [Nokogiri 1.0.7 Released](https://www.ruby-forum.com/t/nokogiri-1-0-7-released/154719)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/nokogiri-1-0-7-released/154719 "2008-12-03T17:54:56Z")

</div>

nokogiri version 1.0.7 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://rubyforge.org/mailman/listinfo/nokogiri-talk …

---

## [Why is Ruby 1.9 not called Ruby 2.0?](https://www.ruby-forum.com/t/why-is-ruby-1-9-not-called-ruby-2-0/154668)

<div class="topic-metadata">

**Author:** [@higgsbozo](https://www.ruby-forum.com/u/higgsbozo)\
**Replies:** 4\
**Last updated:** [December 3, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/why-is-ruby-1-9-not-called-ruby-2-0/154668 "2008-12-03T17:11:28Z")

</div>

Given the systemic and fundamental changes in 1.9, I wonder why it wasn’t given a clean break with the 2.0 name? I know Matz had his own ideas for 2.0, but why couldn’t he call his version 3.0? There’s a communicatio…

---

## [Gateway In Danger](https://www.ruby-forum.com/t/gateway-in-danger/154756)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/gateway-in-danger/154756 "2008-12-03T17:07:21Z")

</div>

List members, please take a moment to verify that you are not sending spam complaints to the server team that hosts the Ruby T. mailing list. This includes automated complaints from spam monitoring software (SpamCop,…

---

## [\[Backport #809\] String#ord and String#\[gs\]etbyte for 1.8](https://www.ruby-forum.com/t/backport-809-string-ord-and-string-gs-etbyte-for-1-8/154640)

<div class="topic-metadata">

**Author:** [@Shinichiro\_Hamaji](https://www.ruby-forum.com/u/Shinichiro_Hamaji)\
**Replies:** 4\
**Last updated:** [December 3, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/backport-809-string-ord-and-string-gs-etbyte-for-1-8/154640 "2008-12-03T16:47:22Z")

</div>

Backport #809: String#ord and String#\[gs\]etbyte for 1.8 http://redmine.ruby-lang.org/issues/show/809 e$B5/I\<\<Te(B: Shinichiro Hamaji e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Ruby1.9 e$B$G%3!\<%I$r=q$$$F$$$k;~$K!"e…

---

## [Large file support on Windows](https://www.ruby-forum.com/t/large-file-support-on-windows/154739)

<div class="topic-metadata">

**Author:** [@larsch](https://www.ruby-forum.com/u/larsch)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/large-file-support-on-windows/154739 "2008-12-03T16:30:56Z")

</div>

Is there any way to get large file support on windows (\>2^31 bytes)? I need File.size, IO#seek and IO#tell to work with large files on Windows.

---

## [Opening/reading a text file - how do u use .find method?](https://www.ruby-forum.com/t/opening-reading-a-text-file-how-do-u-use-find-method/154641)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/opening-reading-a-text-file-how-do-u-use-find-method/154641 "2008-12-03T15:24:55Z")

</div>

Here I am creating a text file, writing to the text file and then opening the text file to search for one of the lines that I just inserted this line contains ‘wed’. My issue is that when I try to search the file usin…

---

## [RSS::Parser.parse pubdate changing back](https://www.ruby-forum.com/t/rss-parser-parse-pubdate-changing-back/154722)

<div class="topic-metadata">

**Author:** [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/rss-parser-parse-pubdate-changing-back/154722 "2008-12-03T15:10:57Z")

</div>

I have a script that goes into my site and parses the rss feeds, but when it does this the pub date jumps backup about 11 months. The code is below, require ‘rss/2.0’ require ‘open-uri’ class NewsController \< Applic…

---

## [How to understand the Benchmark result](https://www.ruby-forum.com/t/how-to-understand-the-benchmark-result/154632)

<div class="topic-metadata">

**Author:** [@Deepak\_G](https://www.ruby-forum.com/u/Deepak_G)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-understand-the-benchmark-result/154632 "2008-12-03T15:05:38Z")

</div>

Hi I had ran 2 methods against Benchmark and got following output. But didn’t understand which method is faster and what is “elapsed real time”. \*1st Method benchmark result \*user CPU time system CPU time 0.2350…

---

## [About creating a Planner in Ruby](https://www.ruby-forum.com/t/about-creating-a-planner-in-ruby/154684)

<div class="topic-metadata">

**Author:** [@sandro\_p](https://www.ruby-forum.com/u/sandro_p)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/about-creating-a-planner-in-ruby/154684 "2008-12-03T12:32:34Z")

</div>

Hi Does anyone know a good starting point (a gem, an article, a library, etc…) on how to build a typical Planner/Agenda application ? In details, what I need to develop must: handle tasks, appointments and todos ke…

---

## [Question about op. overloading](https://www.ruby-forum.com/t/question-about-op-overloading/154725)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 6\
**Last updated:** [December 3, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/question-about-op-overloading/154725 "2008-12-03T12:22:52Z")

</div>

I have: class Sudoku def @rows\[r\]\[c\] end def set(r,c,a) @rows\[r\]\[c\]=a end end Now, how can I define a \[\]= operator instead of the awkward set(r,c,a) ? I want to be able to do sudoku\[2,3\]=candidate or even su…

---

## [I have only one hour with ruby plz help](https://www.ruby-forum.com/t/i-have-only-one-hour-with-ruby-plz-help/154685)

<div class="topic-metadata">

**Author:** [@lotfi](https://www.ruby-forum.com/u/lotfi)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/i-have-only-one-hour-with-ruby-plz-help/154685 "2008-12-03T12:08:02Z")

</div>

i found a code ruby but i couldn’t compile it how can i excute a .rb file thanks

---

## [Builder::XmlMarkup + output encoding](https://www.ruby-forum.com/t/builder-xmlmarkup-output-encoding/154731)

<div class="topic-metadata">

**Author:** [@molla5](https://www.ruby-forum.com/u/molla5)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 10:54am UTC](https://www.ruby-forum.com/t/builder-xmlmarkup-output-encoding/154731 "2008-12-03T10:54:53Z")

</div>

Hi, Is it possible to use other encodings with xml markup other than ISO-8859-1 or UTF-8? Builder class always encodes my strings in IS-8859-1 even when I set encoding to something else. Also is it possible to say to…

---

## [Qt ruby compiling to exe in WinOS](https://www.ruby-forum.com/t/qt-ruby-compiling-to-exe-in-winos/154689)

<div class="topic-metadata">

**Author:** [@fl00r](https://www.ruby-forum.com/u/fl00r)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 10:21am UTC](https://www.ruby-forum.com/t/qt-ruby-compiling-to-exe-in-winos/154689 "2008-12-03T10:21:55Z")

</div>

Hello! What compilers exist for qtruby (windows). exerb don’t work (‘No such file to load – Qt’)

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

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