# Ruby

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

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

---

## [Real time airline flight - 24/7](https://www.ruby-forum.com/t/real-time-airline-flight-24-7/161150)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/real-time-airline-flight-24-7/161150 "2009-02-23T21:42:28Z")

</div>

. . #1. real time airline flight ENTER HERE http://best-airlines.cn/?t=real+time+airline+flight \<\<\<\< ENTER HERE #1. real time airline fli…

---

## [Ruby 1.9.1 build and Tk](https://www.ruby-forum.com/t/ruby-1-9-1-build-and-tk/161121)

<div class="topic-metadata">

**Author:** [@patrickreilly](https://www.ruby-forum.com/u/patrickreilly)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-build-and-tk/161121 "2009-02-23T21:04:44Z")

</div>

Hi, I’ve been trying to get Tk to work with Ruby 1.9.1 on OpenSuSE 11.1 (Tcl/Tk 8.5), with no success so far. I have manually fixed the config as suggested in ext/tk/README.1st. (There has been a warning about incomp…

---

## [Ruby info](https://www.ruby-forum.com/t/ruby-info/161066)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 10\
**Last updated:** [February 23, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/ruby-info/161066 "2009-02-23T20:58:13Z")

</div>

Why isn’t there a ruby node within info? Will there ever be one or is it not a worthwhile project? – John M. 07739 171 531 MSc (DIC) Timezone: GMT

---

## [Why Enumerable adds "replace" method?](https://www.ruby-forum.com/t/why-enumerable-adds-replace-method/161142)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [February 23, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/why-enumerable-adds-replace-method/161142 "2009-02-23T20:48:49Z")

</div>

Hi, when including Enumerable module in a class, its instances get the “replace” method in which I’m not interested. Why this method is added? It doesn’t appear in Enumerable. Thanks.

---

## [Socket issue in ruby 1.8.6 in freebsd?](https://www.ruby-forum.com/t/socket-issue-in-ruby-1-8-6-in-freebsd/159857)

<div class="topic-metadata">

**Author:** [@Saku\_Y](https://www.ruby-forum.com/u/Saku_Y)\
**Replies:** 4\
**Last updated:** [February 23, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/socket-issue-in-ruby-1-8-6-in-freebsd/159857 "2009-02-23T20:25:08Z")

</div>

WORKING: (telnet 62.95.30.77 echo) getuid(0x2,0x1,0x6,0xff,0x0,0x0) = 0 (0x0) setuid(0x0,0x1,0x6,0xff,0x0,0x0) = 0 (0x0) setsockopt(0x3,0x0,0x3,0x8062020,0x4,0x0) = 0 (0x0) connect(3,{ AF\_INET 62.95.30.77:7 },16) ERR…

---

## [Get attributes from database](https://www.ruby-forum.com/t/get-attributes-from-database/161100)

<div class="topic-metadata">

**Author:** [@jobber](https://www.ruby-forum.com/u/jobber)\
**Replies:** 2\
**Last updated:** [February 23, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/get-attributes-from-database/161100 "2009-02-23T20:04:24Z")

</div>

Hello all, i have a class Inpatient with his attributes like name, address, etc. i want to catch the inpatient data from database, how i can do this? i want add inpatients when i give the name, and so all attributes o…

---

## [Hashed\_Pasword?](https://www.ruby-forum.com/t/hashed-pasword/160986)

<div class="topic-metadata">

**Author:** [@jung](https://www.ruby-forum.com/u/jung)\
**Replies:** 7\
**Last updated:** [February 23, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/hashed-pasword/160986 "2009-02-23T17:41:17Z")

</div>

I am having a problem with my hashed\_password. I am following the lessons in the apress beginning rails book. Here is my issue: def password\_required? hashed\_password.blank? || !password.blank? end Ruby is calling…

---

## [\[Bug:1.9\] nkf may cause memory violation](https://www.ruby-forum.com/t/bug-1-9-nkf-may-cause-memory-violation/148937)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/bug-1-9-nkf-may-cause-memory-violation/148937 "2009-02-23T17:08:32Z")

</div>

e$B1sF#$G$9!#e(B e$B0J2\<$N$h$&$Ke(B nkf e$B$K%Q%C%A$r$"$F$Fe(B Index: ext/nkf/nkf-utf8/nkf.c — ext/nkf/nkf-utf8/nkf.c (revision 19412) +++ ext/nkf/nkf-utf8/nkf.c (working copy) @@ -1482,6 +1482,7 @@ } if (cp932in…

---

## [Cyclic redundancy check (CRC32) of a file](https://www.ruby-forum.com/t/cyclic-redundancy-check-crc32-of-a-file/161088)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 3\
**Last updated:** [February 23, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/cyclic-redundancy-check-crc32-of-a-file/161088 "2009-02-23T15:41:50Z")

</div>

Hello, I try to calculate the CRC32 of a file with a script ruby, but I does not obtain the good result by comparison with many of the other software which already make this (in other programming language…), for examp…

---

## [MSSQL DB connection, multiplatform, NextRecordSet](https://www.ruby-forum.com/t/mssql-db-connection-multiplatform-nextrecordset/160914)

<div class="topic-metadata">

**Author:** [@makkura](https://www.ruby-forum.com/u/makkura)\
**Replies:** 2\
**Last updated:** [February 23, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/mssql-db-connection-multiplatform-nextrecordset/160914 "2009-02-23T15:25:26Z")

</div>

I’m trying to find a way to use ruby to connect to a MS SQL database. I need it to be as simple I can to run on both windows and linux systems. So if they require different things to make them work, I want to have the…

---

## [Literal syntax for array of arrays of strings](https://www.ruby-forum.com/t/literal-syntax-for-array-of-arrays-of-strings/160738)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 16\
**Last updated:** [February 23, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/literal-syntax-for-array-of-arrays-of-strings/160738 "2009-02-23T14:57:07Z")

</div>

We have this: a = %w{ a b c d e f } p a # ==\> \[“a”, “b”, “c”, “d”, “e”, “f”\] Has anyone ever felt the need for something like a = %t{ a b c d e f } # ==\> \[\[“a”, “b”, “c”\], \[“d”, “e”, “f”\]\] It’s probably too speci…

---

## [Ruby style for Java class data members](https://www.ruby-forum.com/t/ruby-style-for-java-class-data-members/161107)

<div class="topic-metadata">

**Author:** [@chauk-mean](https://www.ruby-forum.com/u/chauk-mean)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/ruby-style-for-java-class-data-members/161107 "2009-02-23T14:29:30Z")

</div>

Hi, I initially posted this thread from Ruby-Forum but this doesn’t appear in the JRuby mailing list. So I apologize for any duplicate of this thread. I’m starting to use JRuby for writing SWT GUI applications. Cur…

---

## [Encryption using ruby](https://www.ruby-forum.com/t/encryption-using-ruby/160937)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/encryption-using-ruby/160937 "2009-02-23T14:26:33Z")

</div>

Herewith I have given code of perl encryption and decryption . If i give 123 as no,the perl , encrypted the data and give it to us.How to do this in ruby.But If i give 123,the ruby should encrypt the data . The encryp…

---

## [Array into list of arguments - nicest way?](https://www.ruby-forum.com/t/array-into-list-of-arguments-nicest-way/161103)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [February 23, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/array-into-list-of-arguments-nicest-way/161103 "2009-02-23T13:55:24Z")

</div>

hey all I want to pass the contents of an array to a method, to be interpreted as a standard list of arguments. What’s the simplest and nicest way of doing this? (i can think of a few dirty hack ways but don’t want …

---

## [How to install wxruby2 offline](https://www.ruby-forum.com/t/how-to-install-wxruby2-offline/161090)

<div class="topic-metadata">

**Author:** [@vaibhav\_kadian](https://www.ruby-forum.com/u/vaibhav_kadian)\
**Replies:** 5\
**Last updated:** [February 23, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/how-to-install-wxruby2-offline/161090 "2009-02-23T12:02:54Z")

</div>

Hi This might not be the right question to ask at such a high tech group but as i want to learn it, i have to ask it somewhere. I have ruby 1.8.6 patch 111 and gem 1.0.1 now i want wxruby2 but as the ‘gem install wxr…

---

## [Ruby style for Java class data members](https://www.ruby-forum.com/t/ruby-style-for-java-class-data-members/161098)

<div class="topic-metadata">

**Author:** [@chauk-mean](https://www.ruby-forum.com/u/chauk-mean)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 11:45am UTC](https://www.ruby-forum.com/t/ruby-style-for-java-class-data-members/161098 "2009-02-23T11:45:28Z")

</div>

Hi, I’m starting to use JRuby for writing SWT GUI applications. Currently, JRuby translates methods following the ‘beans-convention’: x.getSomething() # becomes x.something x.setSomething(newValue) # …

---

## [GemInstaller 0.5.1 Released](https://www.ruby-forum.com/t/geminstaller-0-5-1-released/161093)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 11:05am UTC](https://www.ruby-forum.com/t/geminstaller-0-5-1-released/161093 "2009-02-23T11:05:10Z")

</div>

GemInstaller 0.5.1 has been released! GemInstaller by Chad W. http://geminstaller.rubyforge.org == DESCRIPTION: Automated Gem installation, activation, and much more! == FEATURES: GemInstaller provides automated i…

---

## [Touble with -i command line option for ir.exe](https://www.ruby-forum.com/t/touble-with-i-command-line-option-for-ir-exe/161085)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 10:15am UTC](https://www.ruby-forum.com/t/touble-with-i-command-line-option-for-ir-exe/161085 "2009-02-23T10:15:16Z")

</div>

I’m using IR “NightlyBuilds\\10606” I have trouble using the -i option for command-line. Has this worked at some point? c:\\DATA\\irb\_test\>ir -help Usage: ir.exe \[options\] \[file|- \[arguments\]\] … Options: -i …

---

## [Nokogiri 1.2.0 Released](https://www.ruby-forum.com/t/nokogiri-1-2-0-released/161068)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [February 23, 2009, 6:31am UTC](https://www.ruby-forum.com/t/nokogiri-1-2-0-released/161068 "2009-02-23T06:31:25Z")

</div>

nokogiri version 1.2.0 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 …

---

## [Fetch an Email attachment file through POP3](https://www.ruby-forum.com/t/fetch-an-email-attachment-file-through-pop3/161069)

<div class="topic-metadata">

**Author:** [@deeparaj](https://www.ruby-forum.com/u/deeparaj)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 6:30am UTC](https://www.ruby-forum.com/t/fetch-an-email-attachment-file-through-pop3/161069 "2009-02-23T06:30:44Z")

</div>

hai, I’m struggling with an error for retrieving an email attachment file form inbox through POP3 protocol.Here is the code attached.

---

## [Ruby nooby](https://www.ruby-forum.com/t/ruby-nooby/161056)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 2\
**Last updated:** [February 23, 2009, 5:50am UTC](https://www.ruby-forum.com/t/ruby-nooby/161056 "2009-02-23T05:50:15Z")

</div>

I am clueless. Mostly. I program phone switches for a living. I have lots of data images for multiple platforms. The information of interest will be the file extension and perhaps the date/time stamp. I want to writ…

---

## [FileUtils.mv behaving not as documented](https://www.ruby-forum.com/t/fileutils-mv-behaving-not-as-documented/161058)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 3\
**Last updated:** [February 23, 2009, 5:37am UTC](https://www.ruby-forum.com/t/fileutils-mv-behaving-not-as-documented/161058 "2009-02-23T05:37:36Z")

</div>

The documentation for FileUtils.mv(src, dest) says that if src and dest are on different disk partitions then it is supposed to act as a copy instead. But when I use it to copy a file from the “C:” drive to a flash d…

---

## [Instance variables on anonymous objects does not work?](https://www.ruby-forum.com/t/instance-variables-on-anonymous-objects-does-not-work/160249)

<div class="topic-metadata">

**Author:** [@LAMBEAU\_Bernard](https://www.ruby-forum.com/u/LAMBEAU_Bernard)\
**Replies:** 4\
**Last updated:** [February 23, 2009, 5:37am UTC](https://www.ruby-forum.com/t/instance-variables-on-anonymous-objects-does-not-work/160249 "2009-02-23T05:37:15Z")

</div>

Could someone explain why the following code does not work? … and sorry because I guess it’s something stupid that I didn’t catch in Ruby. a = Object.new.instance\_eval do @names = \[“you”, “me”\] end def a.say\_hello …

---

## [Add option hash support to rb\_scan\_args()](https://www.ruby-forum.com/t/add-option-hash-support-to-rb-scan-args/160689)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 5\
**Last updated:** [February 23, 2009, 5:08am UTC](https://www.ruby-forum.com/t/add-option-hash-support-to-rb-scan-args/160689 "2009-02-23T05:08:21Z")

</div>

ã€€rb\_scan\_args() ã«option hashå¯¾å¿œã‚’çµ„ã¿è¾¼ã‚€ã®ã¯ã©ã†ã§ã—ã‚‡ã†ã‹ã€‚ å®Ÿè£…ã—ã¦ã¿ãŸã®ã§ãƒ‘ãƒƒãƒã‚’æ·»ä»˜ã—ã¾ã—ãŸã€‚ argc = rb\_scan\_args(argc, argv, ":12", &opt, &path, &mode, &perm); ã®ã‚ˆã…

---

## [Speakers Needed: RubyNation Conference Jun 12-13, Washington DC](https://www.ruby-forum.com/t/speakers-needed-rubynation-conference-jun-12-13-washington-dc/161065)

<div class="topic-metadata">

**Author:** [@grayherter](https://www.ruby-forum.com/u/grayherter)\
**Replies:** 0\
**Last updated:** [February 23, 2009, 4:27am UTC](https://www.ruby-forum.com/t/speakers-needed-rubynation-conference-jun-12-13-washington-dc/161065 "2009-02-23T04:27:24Z")

</div>

The RubyNation conference organizers are pleased to announce our conference will happen on June 12-13 this year, in Reston, Virginia (which is nearby Washington, DC). The event will feature lots of high quality prese…

---

## [Using Find based on method rather than table](https://www.ruby-forum.com/t/using-find-based-on-method-rather-than-table/161060)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 4:01am UTC](https://www.ruby-forum.com/t/using-find-based-on-method-rather-than-table/161060 "2009-02-23T04:01:40Z")

</div>

I have a method that returns a date that is either the updated\_at field of a Topic or one of it’s reply Posts. Is there a way to order the results of a find based on the date returned by this method? When I try this: …

---

## [Using NetBeans IDE for non-Grails Groovy coding?](https://www.ruby-forum.com/t/using-netbeans-ide-for-non-grails-groovy-coding/161059)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 2:23am UTC](https://www.ruby-forum.com/t/using-netbeans-ide-for-non-grails-groovy-coding/161059 "2009-02-23T02:23:22Z")

</div>

The groovy plugin for the NetBeans 6.5 IDE only gives a Grails Application as a Groovy option. I there a way of specifying I simply want to do a non-Grails Groovy project? Thanks, Ken To unsubscribe from this list…

---

## [Floating point rounding error?](https://www.ruby-forum.com/t/floating-point-rounding-error/160980)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 8\
**Last updated:** [February 23, 2009, 12:28am UTC](https://www.ruby-forum.com/t/floating-point-rounding-error/160980 "2009-02-23T00:28:53Z")

</div>

1999.0.ceil 1999 (12.99+7.0)\*100 1999.0 ((12.99+7.0)\*100).ceil 2000 is this expected? Is there any BigFloat that avoids this? Thanks! -=r

---

## [Sockets and connection states](https://www.ruby-forum.com/t/sockets-and-connection-states/161051)

<div class="topic-metadata">

**Author:** [@bbnnt](https://www.ruby-forum.com/u/bbnnt)\
**Replies:** 0\
**Last updated:** [February 22, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/sockets-and-connection-states/161051 "2009-02-22T23:51:52Z")

</div>

I’m trying to wrap my head around socket programming and what the material I’ve been reading is telling me. Say I have a firewall which allows traffic with connection state: NEW on a certain port for a short window of…

---

## [How to do conditional compile for Ruby 1.9 in a C extension?](https://www.ruby-forum.com/t/how-to-do-conditional-compile-for-ruby-1-9-in-a-c-extension/160789)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 13\
**Last updated:** [February 22, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/how-to-do-conditional-compile-for-ruby-1-9-in-a-c-extension/160789 "2009-02-22T23:10:52Z")

</div>

I’m working on updating RedCloth for Ruby 1.9. Since the output of #singleton\_methods changed from strings to symbols, I think I need a conditional compile. Here’s what I tried: #if RUBY\_VERSION \< 0x10900 if (rb\_ar…

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

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