# Ruby

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

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

---

## [Require 'socket' returns false in windows?](https://www.ruby-forum.com/t/require-socket-returns-false-in-windows/142530)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/require-socket-returns-false-in-windows/142530 "2008-07-08T23:30:05Z")

</div>

I have two windows computers that return false when the following statement is executed: require ‘socket’ Both computers are XP loaded with 1.8.6 via the one click installer. On one of the windows machines I am able…

---

## [Face detection in picture](https://www.ruby-forum.com/t/face-detection-in-picture/142523)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/face-detection-in-picture/142523 "2008-07-08T22:07:13Z")

</div>

Hi there, Could any body could recommend any ruby library that has the ability to detect faces in images.Any help would be appricated. thanks, Jim

---

## [Re: Mono build update](https://www.ruby-forum.com/t/re-mono-build-update/142526)

<div class="topic-metadata">

**Author:** [@jirapong](https://www.ruby-forum.com/u/jirapong)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 9:58pm UTC](https://www.ruby-forum.com/t/re-mono-build-update/142526 "2008-07-08T21:58:25Z")

</div>

Hi, do you build on Mac? the UserProfile is where your home directory. you might try, before compile USERPROFILE=\[your home dir\] export USERPROFILE Hope this help, -Jirapong On Jul 8, 2008, at 12:21 PM, Unnikrishn…

---

## [To\_java\_bytes - byte arrays](https://www.ruby-forum.com/t/to-java-bytes-byte-arrays/142490)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 7:11pm UTC](https://www.ruby-forum.com/t/to-java-bytes-byte-arrays/142490 "2008-07-08T19:11:43Z")

</div>

Hi, I need to open a file, read the contents, and convert to a byte array. I have tried: read the file from disk that will be attached to the page f = File.new(“file.jpg”, “r”) contents = f.read java\_bytes = cont…

---

## [Sylvester the IronRuby twitter client](https://www.ruby-forum.com/t/sylvester-the-ironruby-twitter-client/141559)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 8\
**Last updated:** [July 8, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/sylvester-the-ironruby-twitter-client/141559 "2008-07-08T18:47:05Z")

</div>

Hi all, I rewrote witty or at least I re-used witty’s xaml to write an IronRuby twitter client. However I have a fair bit of workarounds in C#. I was wondering if I could get somebody from the list to take a look and …

---

## [Connection to postgresql failing](https://www.ruby-forum.com/t/connection-to-postgresql-failing/141488)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/connection-to-postgresql-failing/141488 "2008-07-08T16:33:34Z")

</div>

I’ve been looking through all the posts relating to this and my syntax looks correct but my ruby file will not connect to my postgresql db. I’m running this on an eeepc using PostgreSQL 7.4 with Ruby 1.9 Here is the c…

---

## [Emacs mode for Ruby?](https://www.ruby-forum.com/t/emacs-mode-for-ruby/142433)

<div class="topic-metadata">

**Author:** [@ssecorp](https://www.ruby-forum.com/u/ssecorp)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/emacs-mode-for-ruby/142433 "2008-07-08T16:17:09Z")

</div>

Googling doesnt give a good answer, is there a good rubymode for lisp? syntax-highlighting and being able to run the interpreter inside emacs.

---

## [Java import wildcards](https://www.ruby-forum.com/t/java-import-wildcards/142497)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/java-import-wildcards/142497 "2008-07-08T16:03:06Z")

</div>

Should wildcards work in JRuby imports? e.g import java.awt.\* They are giving method missing, cannot load java class error (NameError) Thanks Paul F. To unsubscribe from this list, please visit: http://xircles.…

---

## [Q: Remote installer](https://www.ruby-forum.com/t/q-remote-installer/142491)

<div class="topic-metadata">

**Author:** [@GSRalph\_KuntzS\_MD](https://www.ruby-forum.com/u/GSRalph_KuntzS_MD)\
**Replies:** 5\
**Last updated:** [July 8, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/q-remote-installer/142491 "2008-07-08T15:37:18Z")

</div>

I am looking for a “remote installer” for ruby for Windows. I need to install ruby on about 150 machines over ssh connections and do not want to use a GUI installer like the one-click installer, because it will take m…

---

## [Advice needed on testing strategy](https://www.ruby-forum.com/t/advice-needed-on-testing-strategy/142400)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/advice-needed-on-testing-strategy/142400 "2008-07-08T13:20:53Z")

</div>

Greetings! I’m working on a library that wraps REXML processing of a specific XML format (CCR - Continuity of Care Record). The objective is to process the XML so that the developer doesn’t have to. So, for example,…

---

## [Multiply elements in array](https://www.ruby-forum.com/t/multiply-elements-in-array/142399)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/multiply-elements-in-array/142399 "2008-07-08T12:56:19Z")

</div>

Hi, This is what I have got: arr = \[“abc”, \[“def”, “def”, “def”\]\] This is what I would like: arr\_final = \[\[“abc”, “def”\], \[“abc”, “def”\], \[“abc”, “def”\]\] If I manage to modify arr to a2 = \[\[“abc”, “abc”, “abc”\], \[…

---

## [File.open initialization error](https://www.ruby-forum.com/t/file-open-initialization-error/142416)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/file-open-initialization-error/142416 "2008-07-08T12:30:39Z")

</div>

Greetings, I want to create new file using: f = File.new(‘filename’, ‘r+’) I’ve got following output: file.rb:lineNo:in ‘initialize’ file.rb:lineNo:in ‘open’ Looks like File.new (before using open method) couldn’t …

---

## [Class#dup](https://www.ruby-forum.com/t/class-dup/140547)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/class-dup/140547 "2008-07-08T12:24:10Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bruby-core e$B$N$\[$&$Ge(B Class#dup e$B$9$k$H;W$C$?DL$j$NF0:n$K$J$i$J$$!$$He(B e$B$$$&%l%\]!\<%H$r$b$i$$$^$7$?!%e(B class A @@a = ‘A’ def a=(x) @@a = x end def a @@a end end B = A.d…

---

## [Ruby 1.9.1$B$K4^$^$l$k5!G=$K$D$$$F(B](https://www.ruby-forum.com/t/ruby-1-9-1-b-k4-l-k5-g-k-d-f-b/142481)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-b-k4-l-k5-g-k-d-f-b/142481 "2008-07-08T12:22:25Z")

</div>

Yuguie$B$G$9!#e(B 6e$B7ne(B20e$BF|!"$^$D$b$H$5$s$H$5$5$@$5$s$HKNIt$5$s$H;d$H$G!"e(BRuby 1.9e$B$N%j%j!\<%9e(B e$B4IM}$K$D$$$FOC$7$^$7$?!#$=$l$G!"4IM}%?%9%/$r;d$,GRL?$$$?$7$^$7$?!#e(B e$B$H$$$&$o$1$G!"$^$:e(BRuby 1.9.1…

---

## [Find matching elements in array](https://www.ruby-forum.com/t/find-matching-elements-in-array/142354)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 8\
**Last updated:** [July 8, 2008, 11:20am UTC](https://www.ruby-forum.com/t/find-matching-elements-in-array/142354 "2008-07-08T11:20:55Z")

</div>

Hi, I have one array for example\[1,2,3,4\] i need to find the matching elements of another array is there any way to find… for example \[1,2,3,4\].include?(2) it will return true but i need to find one or more element…

---

## [Re: XMLRPC Question](https://www.ruby-forum.com/t/re-xmlrpc-question/142477)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 11:15am UTC](https://www.ruby-forum.com/t/re-xmlrpc-question/142477 "2008-07-08T11:15:04Z")

</div>

So what I entered into telnet was just: That definitely isn’t XMLRPC. The XMLRPC spec is very simple, see http://www.xmlrpc.com/spec Since the root element isn’t then it isn’t XMLRPC, so you won’t be able to use…

---

## [Floating point calculation problem](https://www.ruby-forum.com/t/floating-point-calculation-problem/142465)

<div class="topic-metadata">

**Author:** [@Hyun\_chul\_P](https://www.ruby-forum.com/u/Hyun_chul_P)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 11:11am UTC](https://www.ruby-forum.com/t/floating-point-calculation-problem/142465 "2008-07-08T11:11:27Z")

</div>

hi. i’m confused by float point calculation. like this! irb(main):001:0\> 123.6 - 123 =\> 0.599999999999994 how to i get result 0.6 ?

---

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

<div class="topic-metadata">

**Author:** [@raycher](https://www.ruby-forum.com/u/raycher)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 10:55am UTC](https://www.ruby-forum.com/t/newbie-questions/142464 "2008-07-08T10:55:42Z")

</div>

Hi, Just some newbie questions: I have seen quite a few tftp shelvesets coming by in the mailing list. Is this shelvesets in TFS server, is that publicly available or is this only for the core team? At what times …

---

## [Something like import/package in java?](https://www.ruby-forum.com/t/something-like-import-package-in-java/141816)

<div class="topic-metadata">

**Author:** [@Christoffer\_LernSSS](https://www.ruby-forum.com/u/Christoffer_LernSSS)\
**Replies:** 7\
**Last updated:** [July 8, 2008, 9:31am UTC](https://www.ruby-forum.com/t/something-like-import-package-in-java/141816 "2008-07-08T09:31:08Z")

</div>

Hi, I keep feeling frustrated with my ruby project. My problem is one of organization. My code looks a bit like this: lib/ main.rb comman ds/ logio.rb create.rb chat.rb server/ io/ protocol/ utils/ And I k…

---

## [Code Review: MoreYamlStuff](https://www.ruby-forum.com/t/code-review-moreyamlstuff/142446)

<div class="topic-metadata">

**Author:** [@Oleg\_T](https://www.ruby-forum.com/u/Oleg_T)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 8:00am UTC](https://www.ruby-forum.com/t/code-review-moreyamlstuff/142446 "2008-07-08T08:00:25Z")

</div>

tfpt review “/shelveset:MoreYamlStuff;REDMOND\\olegtk” Comment : Implements taguri() for regexps and structs. Moves accessor for code context to IConstructor level so all static constructors receiving IConstructor ca…

---

## [Where is the .rb for sockets?](https://www.ruby-forum.com/t/where-is-the-rb-for-sockets/142443)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 7:27am UTC](https://www.ruby-forum.com/t/where-is-the-rb-for-sockets/142443 "2008-07-08T07:27:04Z")

</div>

Normally I use ri foo whenever I want to read up on something. There’s also the ruby library, (/usr/lib/ruby/1.8), as there are some goodies and clues in the comments. locate foo.rb normally does it but in the case fo…

---

## [Mono build update](https://www.ruby-forum.com/t/mono-build-update/142459)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 7:22am UTC](https://www.ruby-forum.com/t/mono-build-update/142459 "2008-07-08T07:22:23Z")

</div>

Finally I got mono to build successfully.I checkout 121 from rubyforge and tried to do rake compile and, it failed on the following line; path\_to\_config = ENV\[‘USERPROFILE’\] + ‘/.irconfig.rb’ I remember seeing some ma…

---

## [Emacs-mode for ruby?](https://www.ruby-forum.com/t/emacs-mode-for-ruby/142432)

<div class="topic-metadata">

**Author:** [@defn\_noob](https://www.ruby-forum.com/u/defn_noob)\
**Replies:** 4\
**Last updated:** [July 8, 2008, 5:18am UTC](https://www.ruby-forum.com/t/emacs-mode-for-ruby/142432 "2008-07-08T05:18:39Z")

</div>

I dont find anything useful while googling. is there an emacsmode for ruby? i want syntaxhighlighting and be able to run the interpreter under emacs.

---

## [Listing methods within the debugger](https://www.ruby-forum.com/t/listing-methods-within-the-debugger/142445)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 2:06am UTC](https://www.ruby-forum.com/t/listing-methods-within-the-debugger/142445 "2008-07-08T02:06:13Z")

</div>

Hey chaps, I have this line within ~/.irbrc, IRB.conf\[:USE\_READLINE\] = true that starts the debugger. Very handy for me. but check this out; (rdb:1) var local ap\_path =\> “/usr/bin/irb” k =\> #TCPSocket:0xb7f572d0 (r…

---

## [Re: Fetch 6 records from a table randomly](https://www.ruby-forum.com/t/re-fetch-6-records-from-a-table-randomly/142386)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 1:37am UTC](https://www.ruby-forum.com/t/re-fetch-6-records-from-a-table-randomly/142386 "2008-07-08T01:37:55Z")

</div>

i have one table “documents” and i want to fetch 6 records randomly is there any solution reply me Yes, clearly there is a solution. However your question fails to be “smart” on a number of counts. By omitting cri…

---

## [How to point to proper worksheet in excel](https://www.ruby-forum.com/t/how-to-point-to-proper-worksheet-in-excel/142360)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 12:30am UTC](https://www.ruby-forum.com/t/how-to-point-to-proper-worksheet-in-excel/142360 "2008-07-08T00:30:13Z")

</div>

I have following code: @xl = WIN32OLE.new(‘Excel.Application’) @xl\[‘Visible’\] = TRUE @wb = @xl.Workbooks.Add @ws = @xb.Worksheets(“XXXXX”) The problem is that last line throws exception: moethod\_missing: Worksheets …

---

## [The Greatest Man](https://www.ruby-forum.com/t/the-greatest-man/142439)

<div class="topic-metadata">

**Author:** [@faithful](https://www.ruby-forum.com/u/faithful)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 12:24am UTC](https://www.ruby-forum.com/t/the-greatest-man/142439 "2008-07-08T00:24:18Z")

</div>

Every body has someone who’s admiring him. Whose do a greatest job or something important beneficial to humanity and the world . If you want to know the best person ever. click here

---

## [Excel and charts](https://www.ruby-forum.com/t/excel-and-charts/142362)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/excel-and-charts/142362 "2008-07-07T23:54:45Z")

</div>

Hi, I have no idea how to (in Excel using win32ole): change series mode (in columns or rows) add names to axis add data X’es data Thanks in advance

---

## [Rubygems troubles](https://www.ruby-forum.com/t/rubygems-troubles/142393)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/rubygems-troubles/142393 "2008-07-07T23:34:39Z")

</div>

Scenario#1: In my rails app, i use several awesome gems. Gem X depends on 0.4 version of rubyforge, while Gem Y, depends on 1.0 version of rubyforge gem. They all come with that value hardcoded in gemspecs. Now, this …

---

## [Mspec breaking change](https://www.ruby-forum.com/t/mspec-breaking-change/142415)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 6\
**Last updated:** [July 7, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/mspec-breaking-change/142415 "2008-07-07T22:53:48Z")

</div>

The mspec team checked in a change on June 30 that broke all of our RubySpec tests. The -X option has been removed which is the option that lets us tell the specs where the tags directory is. I’ve spent the morning fi…

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

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