# Ruby

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

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

---

## [Some instructions to start rails project with jruby](https://www.ruby-forum.com/t/some-instructions-to-start-rails-project-with-jruby/181703)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 6\
**Last updated:** [January 16, 2010, 12:42pm UTC](https://www.ruby-forum.com/t/some-instructions-to-start-rails-project-with-jruby/181703 "2010-01-16T12:42:48Z")

</div>

Hi I recently started a new project with jruby and rails and took some notes in the process. They can be found from here if anyone finds them usefull… http://github.com/milep/Basics Miika To unsubscribe from this…

---

## [How to know the OS architecture (32 or 64 bits)?](https://www.ruby-forum.com/t/how-to-know-the-os-architecture-32-or-64-bits/181632)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 26\
**Last updated:** [January 16, 2010, 10:30am UTC](https://www.ruby-forum.com/t/how-to-know-the-os-architecture-32-or-64-bits/181632 "2010-01-16T10:30:32Z")

</div>

Hi, is there a reliable way under Ruby to know the OS architecture (32 or 64 bits)? I’ve just found RUBY\_PLATFORM constant which returns “x86\_64-linux” under 64 bits, however it doesn’t send very reliable for me. I…

---

## [End of line problem with xmlrpc](https://www.ruby-forum.com/t/end-of-line-problem-with-xmlrpc/181657)

<div class="topic-metadata">

**Author:** [@hubr](https://www.ruby-forum.com/u/hubr)\
**Replies:** 5\
**Last updated:** [January 16, 2010, 9:54am UTC](https://www.ruby-forum.com/t/end-of-line-problem-with-xmlrpc/181657 "2010-01-16T09:54:50Z")

</div>

Hello all, I try to transfer binary files between two (Redmine) servers. By the way, I use the ruby language to do it and all informations are exchanged through the XML-RPC protocol. Unfortunatly everything success e…

---

## [Rexml/document with IronRuby](https://www.ruby-forum.com/t/rexml-document-with-ironruby/181668)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 12\
**Last updated:** [January 16, 2010, 8:14am UTC](https://www.ruby-forum.com/t/rexml-document-with-ironruby/181668 "2010-01-16T08:14:11Z")

</div>

Is rexml/document compatible with IronRuby? I am running the following code: and it throws me the exception: require ‘rexml/document’ include REXML class EnvironmentSetupService def setupEnvironment(connectionStrin…

---

## [1.9.1's rubyw.exe can not read from pipe?](https://www.ruby-forum.com/t/1-9-1s-rubyw-exe-can-not-read-from-pipe/181700)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 1\
**Last updated:** [January 16, 2010, 6:40am UTC](https://www.ruby-forum.com/t/1-9-1s-rubyw-exe-can-not-read-from-pipe/181700 "2010-01-16T06:40:36Z")

</div>

I found this problem when writing a GUI app with wxruby. Minimal test code (run “dir” and write result to “res.txt”): File.open 'res.txt', 'w' do |f| f \<\< \`dir\` end ruby.exe and rubyw.exe of 1.8.7p72 are fine, but …

---

## [Not able to create using rake](https://www.ruby-forum.com/t/not-able-to-create-using-rake/181665)

<div class="topic-metadata">

**Author:** [@mnjagadeesh](https://www.ruby-forum.com/u/mnjagadeesh)\
**Replies:** 2\
**Last updated:** [January 16, 2010, 5:48am UTC](https://www.ruby-forum.com/t/not-able-to-create-using-rake/181665 "2010-01-16T05:48:28Z")

</div>

jagadeesh@jagadeesh-laptop ~/TODO/mysql $ rake db:create:all (in /home/jagadeesh/TODO/mysql) Couldn’t create database for {“encoding”=\>“utf8”, “username”=\>“root”, “adapter”=\>“mysql”, “database”=\>“todo\_production”, “po…

---

## [Parsing js with ruby](https://www.ruby-forum.com/t/parsing-js-with-ruby/181697)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 5:24am UTC](https://www.ruby-forum.com/t/parsing-js-with-ruby/181697 "2010-01-16T05:24:32Z")

</div>

What I’m trying to accomplish is to create a javascript information parser. I’d like to be able to extract specifically the information in the status bar of firefox (or any other browser). For instance when hovering o…

---

## [Core Image, Where Art Thou?](https://www.ruby-forum.com/t/core-image-where-art-thou/181687)

<div class="topic-metadata">

**Author:** [@spencer](https://www.ruby-forum.com/u/spencer)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 2:27am UTC](https://www.ruby-forum.com/t/core-image-where-art-thou/181687 "2010-01-16T02:27:51Z")

</div>

Lately, I’ve been developing some image editing functions for my rails app using RubyCocoa and Core Image. With my novice understanding of objective-c and the lack of examples for Core Image, much less Core Image thr…

---

## [Xrefresh server, rb-inotify and ioselect](https://www.ruby-forum.com/t/xrefresh-server-rb-inotify-and-ioselect/181594)

<div class="topic-metadata">

**Author:** [@willwach](https://www.ruby-forum.com/u/willwach)\
**Replies:** 2\
**Last updated:** [January 16, 2010, 1:49am UTC](https://www.ruby-forum.com/t/xrefresh-server-rb-inotify-and-ioselect/181594 "2010-01-16T01:49:40Z")

</div>

Hi, This is of interest for all Linux devs doing web development. I patched the xrefresh server so that it runs on Linux. Not everything is implemented but it is useable: http://github.com/MarcWeber/xrefresh-server …

---

## [Binding scope](https://www.ruby-forum.com/t/binding-scope/181483)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 10\
**Last updated:** [January 16, 2010, 1:25am UTC](https://www.ruby-forum.com/t/binding-scope/181483 "2010-01-16T01:25:04Z")

</div>

Hi, I’m trying to implement a simple parser and quite likely going about it the wrong way. I would like to be able to include a bit of ruby code in a string, which is saved to a field in a database. When the string …

---

## [\[ANN\] ListBrowser 0.1.0 released: Browse tree structures!](https://www.ruby-forum.com/t/ann-listbrowser-0-1-0-released-browse-tree-structures/181684)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 1\
**Last updated:** [January 16, 2010, 12:59am UTC](https://www.ruby-forum.com/t/ann-listbrowser-0-1-0-released-browse-tree-structures/181684 "2010-01-16T00:59:46Z")

</div>

~~~~ ListBrowser README ~~~~ I was working on a parser for a very specific tree structure, and was frustrated that there wasn’t a simple way to parse it in irb. “What??”, I thought. “I have to use my brain?! God for…

---

## [Foolproof way of determining host platform](https://www.ruby-forum.com/t/foolproof-way-of-determining-host-platform/181676)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 5\
**Last updated:** [January 16, 2010, 12:53am UTC](https://www.ruby-forum.com/t/foolproof-way-of-determining-host-platform/181676 "2010-01-16T00:53:28Z")

</div>

Hi all, I am trying to work out a ‘better’ way of determing if my ruby code is running on a Windows platform, and so far I’ve had to modify the standard RUBY\_PLATFORM several times depending on which version of windo…

---

## [Open3.popen3 hangs on windows](https://www.ruby-forum.com/t/open3-popen3-hangs-on-windows/181345)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 16, 2010, 12:38am UTC](https://www.ruby-forum.com/t/open3-popen3-hangs-on-windows/181345 "2010-01-16T00:38:15Z")

</div>

I’m working on a JRuby application that automates running gems by using popen3 and found what appears to be a bug. Using Open3.popen3(‘jruby someGem -v’) hangs JRuby on Windows. On Ubuntu it works as expected. Is th…

---

## [Gem prelude for 1.9](https://www.ruby-forum.com/t/gem-prelude-for-1-9/181504)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 12:15am UTC](https://www.ruby-forum.com/t/gem-prelude-for-1-9/181504 "2010-01-16T00:15:25Z")

</div>

Is jruby supposed to have 1.9’s gem prelude? rdp@rdp-vm:~/dev/p2pwebclient/final/pics/helpers$ jruby --1.9 ./regenerate\_all\_graphs.rb ./regenerate\_all\_graphs.rb:1:in \`require’: no such file to load – sane (LoadError) …

---

## [Nested Function Confusion](https://www.ruby-forum.com/t/nested-function-confusion/181678)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 1\
**Last updated:** [January 15, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/nested-function-confusion/181678 "2010-01-15T22:34:10Z")

</div>

Hi, couldn’t find any explanation of nested functions (other than an acknowledgment of their existence) in Programming Ruby or the Ruby Programming Language, so thought I’d see what people here could tell me. I’m havi…

---

## [Public Key encryption](https://www.ruby-forum.com/t/public-key-encryption/181611)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 15, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/public-key-encryption/181611 "2010-01-15T18:09:42Z")

</div>

Hi all, I have to talk to a third party system in one of my applications. The login message has to be encrypted with their public key. However, in their documentation they only present me the key and not a pem file: …

---

## [Igem not working](https://www.ruby-forum.com/t/igem-not-working/181610)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 9\
**Last updated:** [January 15, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/igem-not-working/181610 "2010-01-15T17:40:51Z")

</div>

When I execute igem install rake I get the following error: C:\\DevTools\\IronRuby\\ironruby\\Merlin\\Main\\Languages\\Ruby\\Scripts\\bin\>irake.bat ‘“C:\\DevTools\\IronRuby\\ironruby\\Merlin\\Main\\Languages\\Ruby\\Scripts\\bin\\ir.exe”’ …

---

## [Please Help I'm new in Ruby -- Input Problem](https://www.ruby-forum.com/t/please-help-im-new-in-ruby-input-problem/181663)

<div class="topic-metadata">

**Author:** [@nollysizzle](https://www.ruby-forum.com/u/nollysizzle)\
**Replies:** 5\
**Last updated:** [January 15, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/please-help-im-new-in-ruby-input-problem/181663 "2010-01-15T17:28:18Z")

</div>

Hi, I’m interested to learn this language. I’m using Eclipse with Ruby plugin. I encountered this problem. I place this code (got from an internet site): def addtwo(a, b) a + b; # return a + b end print "Please en…

---

## [\[ANN\] os gem: initial release: easier platform management](https://www.ruby-forum.com/t/ann-os-gem-initial-release-easier-platform-management/181626)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [January 15, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/ann-os-gem-initial-release-easier-platform-management/181626 "2010-01-15T17:19:22Z")

</div>

Initial release of the OS gem. The OS gem allows for some easy telling if you’re on windows or not. require ‘os’ OS.windows? =\> true OS.bits =\> 32 OS.java? =\> true OS.ruby\_exe =\> “c:\\ruby18\\bin\\ru…

---

## [Using ruby for flash (newbie)](https://www.ruby-forum.com/t/using-ruby-for-flash-newbie/181577)

<div class="topic-metadata">

**Author:** [@angel](https://www.ruby-forum.com/u/angel)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 3:18pm UTC](https://www.ruby-forum.com/t/using-ruby-for-flash-newbie/181577 "2010-01-15T15:18:16Z")

</div>

Hi…anybody has trying use ruby for flash (using hotruby or other stuff), where can I search more info how install and work with it?..I don’t understand well how it work, I has worked with flash but where I type my cod…

---

## [Notifying via Terminal in Linux](https://www.ruby-forum.com/t/notifying-via-terminal-in-linux/181640)

<div class="topic-metadata">

**Author:** [@thinkwritemute](https://www.ruby-forum.com/u/thinkwritemute)\
**Replies:** 5\
**Last updated:** [January 15, 2010, 2:44pm UTC](https://www.ruby-forum.com/t/notifying-via-terminal-in-linux/181640 "2010-01-15T14:44:02Z")

</div>

So I’ve got this idea for a linux CLI program, and one of the things I want the program to do is notify Users of an event via the terminal. Is there something out there I can use to do this? I was thinking of using th…

---

## [Almost endless loop of BigMath::atan(x) when x.abs \>= 1](https://www.ruby-forum.com/t/almost-endless-loop-of-bigmath-atan-x-when-x-abs-1/175991)

<div class="topic-metadata">

**Author:** [@Masahiro\_Kanai\_SCan](https://www.ruby-forum.com/u/Masahiro_Kanai_SCan)\
**Replies:** 12\
**Last updated:** [January 15, 2010, 11:56am UTC](https://www.ruby-forum.com/t/almost-endless-loop-of-bigmath-atan-x-when-x-abs-1/175991 "2010-01-15T11:56:03Z")

</div>

e$B6b0fe(B e$B?N90$H?=$7$^$9!#e(B e$B0J2\<$N$h$&$K$9$k$H!"7W;;NL$NA}Bg$K$h$j!"e(B e$B$\[$\\L58B%k!\<%W$KF~$j$^$9!#e(B $ ./ruby -v ruby 1.9.2dev (2009-09-23 trunk 25052) \[i686-linux\] $ ./ruby -e ’ require “bigdecimal” …

---

## [\[Bug #2602\] version.h should be end with newline](https://www.ruby-forum.com/t/bug-2602-version-h-should-be-end-with-newline/181580)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 1\
**Last updated:** [January 15, 2010, 6:58am UTC](https://www.ruby-forum.com/t/bug-2602-version-h-should-be-end-with-newline/181580 "2010-01-15T06:58:42Z")

</div>

Bug #2602: version.h should be end with newline. http://redmine.ruby-lang.org/issues/show/2602 e$B5/I\<\<Te(B: Takahiro K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: build ruby -v: ruby 1.8.7 (2010-01-1…

---

## [Rubygems: bad urls](https://www.ruby-forum.com/t/rubygems-bad-urls/181595)

<div class="topic-metadata">

**Author:** [@willwach](https://www.ruby-forum.com/u/willwach)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 5:39am UTC](https://www.ruby-forum.com/t/rubygems-bad-urls/181595 "2010-01-15T05:39:08Z")

</div>

I patched ruby gems successfully so that it outputs ruby packages so that I can feed them into the Nix package manager system (www.nixos.org). One item of the generated output looks like this: jeremymcanally\_pending\_…

---

## [Net:HTTP questions](https://www.ruby-forum.com/t/net-http-questions/181638)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 5:04am UTC](https://www.ruby-forum.com/t/net-http-questions/181638 "2010-01-15T05:04:36Z")

</div>

Hi I’m writing a script that will bootstrap a database with extensive data that we’ll be using for all our unit testing. To do this we’re harnessing all the scripts we’ve built on the server side (in Java / Javascrip…

---

## [\[Q\] in too deep?](https://www.ruby-forum.com/t/q-in-too-deep/181617)

<div class="topic-metadata">

**Author:** [@Kevin\_SSLim](https://www.ruby-forum.com/u/Kevin_SSLim)\
**Replies:** 5\
**Last updated:** [January 15, 2010, 3:39am UTC](https://www.ruby-forum.com/t/q-in-too-deep/181617 "2010-01-15T03:39:09Z")

</div>

Here is how my objects are instantiated. (jruby -\> rails -\> java -\> scripting engine (jruby) -\> ruby) Rails get started with ‘jruby -S script/server -e production’ Rails initializer has a java object creation. The ja…

---

## [Review: More ActionPack fixes](https://www.ruby-forum.com/t/review-more-actionpack-fixes/181634)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [January 15, 2010, 2:09am UTC](https://www.ruby-forum.com/t/review-more-actionpack-fixes/181634 "2010-01-15T02:09:36Z")

</div>

tfpt review /shelveset:rails3 ENV\["foo"\] = "" should set the environment variable to an empty string, not delete it Added Iconv::IllegalSequence etc Rails test expect Array#sort\_by to be a stable…

---

## [\[BUG\] marshaling Time.utc\_offset](https://www.ruby-forum.com/t/bug-marshaling-time-utc-offset/181522)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 10\
**Last updated:** [January 15, 2010, 1:00am UTC](https://www.ruby-forum.com/t/bug-marshaling-time-utc-offset/181522 "2010-01-15T01:00:27Z")

</div>

e$B$J$+$@$G$9!#e(B Marshale$B$Ge(BTimee$B$Ne(Butc\_offsete$B$,J\]B8$5$l$^$;$s!#e(B $ ./ruby -v -e ‘p t=Time.now.localtime("-05:00"); p t.utc\_offset; p t=Marshal.load(Marshal.dump(t)); p t.utc\_offset’ ruby 1.9.2dev (201…

---

## [Gem build issues Ubuntu 9.10 64 bit](https://www.ruby-forum.com/t/gem-build-issues-ubuntu-9-10-64-bit/181578)

<div class="topic-metadata">

**Author:** [@dale8458](https://www.ruby-forum.com/u/dale8458)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 12:27am UTC](https://www.ruby-forum.com/t/gem-build-issues-ubuntu-9-10-64-bit/181578 "2010-01-15T00:27:05Z")

</div>

dale@dale-desktop:~$ sudo gem install mysql Building native extensions. This could take a while… Successfully installed mysql-2.8.1 I get this with mysql gem and sqlite gem on 64 bit ubuntu. Is there a undocumented…

---

## [Executing irake from C#](https://www.ruby-forum.com/t/executing-irake-from-c/181613)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 10\
**Last updated:** [January 14, 2010, 11:01pm UTC](https://www.ruby-forum.com/t/executing-irake-from-c/181613 "2010-01-14T23:01:04Z")

</div>

How can I execute irake from C#? static void Main(string\[\] args) { var engine = IronRuby.Ruby.CreateEngine(); engine.Execute("…/…/rake foo"); } The above does not work!

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

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