# Ruby

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

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

---

## [Can't change projects RAILS\_ROOT problem?](https://www.ruby-forum.com/t/cant-change-projects-rails-root-problem/171840)

<div class="topic-metadata">

**Author:** [@neilbain](https://www.ruby-forum.com/u/neilbain)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/cant-change-projects-rails-root-problem/171840 "2009-07-09T23:56:28Z")

</div>

I have been learning RoR from Simply Rails 2. I have successfully made a project which opens with http://localhost:3000/stories. I am trying to run another project(browserCMS) and the install instructions say it shoul…

---

## [Ruby1.9 and NArray works flawlessly](https://www.ruby-forum.com/t/ruby1-9-and-narray-works-flawlessly/171833)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/ruby1-9-and-narray-works-flawlessly/171833 "2009-07-09T21:53:10Z")

</div>

Just thought I would let everyone know that I was able to gem install NArray on a windows box flawlessly for the first time with the new ruby installer and devkit installed (Downloads) . It works on Ruby 1.9.1 also. …

---

## [Using ruby to open an Excel file on a mac](https://www.ruby-forum.com/t/using-ruby-to-open-an-excel-file-on-a-mac/171766)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 5\
**Last updated:** [July 9, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/using-ruby-to-open-an-excel-file-on-a-mac/171766 "2009-07-09T18:51:25Z")

</div>

Hello everyone, I have a bit of an issue that I’m trying to work through pertaining to opening an excel file I want to open using ruby. I tried looking in google and all sorts of places but all I could really find is…

---

## [July Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/july-phoenix-ruby-user-group-meeting/171821)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/july-phoenix-ruby-user-group-meeting/171821 "2009-07-09T18:40:14Z")

</div>

July Phoenix Ruby U. Group Meeting When: Monday, July 13, 2009 6:30pm door open. Laptop power and WiFi available. 7:00pm Showtime 8:30pm Migrate to Four Peaks Brewery Topic: No topic, but there will be pizza! No …

---

## [\[ANN\] rbeautify 0.0.3](https://www.ruby-forum.com/t/ann-rbeautify-0-0-3/171721)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [July 9, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/ann-rbeautify-0-0-3/171721 "2009-07-09T18:09:43Z")

</div>

ruby\_beautifier/code prettifier. What it does: you run rbeautify ill-aligned code, like def go if 3 end end and it converts said file to def go if 3 end end Quite convenient for those of us working on the com…

---

## [Win32console and color](https://www.ruby-forum.com/t/win32console-and-color/171816)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/win32console-and-color/171816 "2009-07-09T18:03:20Z")

</div>

Hi, I am trying to color my spec results when running specification unit tests. I am using the following: C:\> spec test\_prime.rb --format nested --color But it tells me to install gem “win32console”. So, I installed …

---

## [$stdout to printer](https://www.ruby-forum.com/t/stdout-to-printer/171516)

<div class="topic-metadata">

**Author:** [@dimascyriaco](https://www.ruby-forum.com/u/dimascyriaco)\
**Replies:** 11\
**Last updated:** [July 9, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/stdout-to-printer/171516 "2009-07-09T17:41:31Z")

</div>

Still trying to print stuff… someone knows how to redirect $stdout to a printer?? Thanks!

---

## [Live at Michael Jackson Memorial Concert -- All Videos here?](https://www.ruby-forum.com/t/live-at-michael-jackson-memorial-concert-all-videos-here/171814)

<div class="topic-metadata">

**Author:** [@Huynh\_Nhu\_Thuy](https://www.ruby-forum.com/u/Huynh_Nhu_Thuy)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/live-at-michael-jackson-memorial-concert-all-videos-here/171814 "2009-07-09T17:35:56Z")

</div>

Live at Michael J. Memorial Concert – All Videos here??? Daughter Paris Says Goodbye! Who’s Loving You - Shaheen Jafargholi All Videos here:

---

## [The simpelest of module function scoping](https://www.ruby-forum.com/t/the-simpelest-of-module-function-scoping/171784)

<div class="topic-metadata">

**Author:** [@Tom\_Verbeure](https://www.ruby-forum.com/u/Tom_Verbeure)\
**Replies:** 5\
**Last updated:** [July 9, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/the-simpelest-of-module-function-scoping/171784 "2009-07-09T17:28:19Z")

</div>

It’s a little sad that I’ve written many lines of ruby code, but I can’t something as simple as this to work: #! /usr/bin/env ruby module T def t(x) puts x end T::t(5) end ./t.rb ./t.rb:8: undefined method …

---

## [\[Bug #650\] Marshal.load raises RegexpError](https://www.ruby-forum.com/t/bug-650-marshal-load-raises-regexperror/150984)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 29\
**Last updated:** [July 9, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/bug-650-marshal-load-raises-regexperror/150984 "2009-07-09T16:57:56Z")

</div>

Bug #650: Marshal.load raises RegexpError http://redmine.ruby-lang.org/issues/show/650 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: M17N e$B0J2\<$N$h$&$K!"0JA0$N%P!\<%8%g%s$Ne…

---

## [\[Bug #802\] IO.open optional argument to properly handle BOMs](https://www.ruby-forum.com/t/bug-802-io-open-optional-argument-to-properly-handle-boms/154444)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 2\
**Last updated:** [July 9, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/bug-802-io-open-optional-argument-to-properly-handle-boms/154444 "2009-07-09T16:57:56Z")

</div>

Bug #802: IO.open optional argument to properly handle BOMs http://redmine.ruby-lang.org/issues/show/802 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Usaku NAKAMURA, e$B%+%F%4%…

---

## [FasterCSV: preserving quoted strings](https://www.ruby-forum.com/t/fastercsv-preserving-quoted-strings/161446)

<div class="topic-metadata">

**Author:** [@BIl\_Kleb](https://www.ruby-forum.com/u/BIl_Kleb)\
**Replies:** 6\
**Last updated:** [July 9, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/fastercsv-preserving-quoted-strings/161446 "2009-07-09T16:32:47Z")

</div>

Hi, Google et al are failing me: How do I preserve quoted CSV strings on output? % cat \> csv\_quotes.rb \<\< EOF require ‘rubygems’ require ‘faster\_csv’ require ‘test/unit’ class ConversionTest \< Test::Unit::TestCase …

---

## [RSA cross platform](https://www.ruby-forum.com/t/rsa-cross-platform/160871)

<div class="topic-metadata">

**Author:** [@ashikalim](https://www.ruby-forum.com/u/ashikalim)\
**Replies:** 3\
**Last updated:** [July 9, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/rsa-cross-platform/160871 "2009-07-09T15:28:11Z")

</div>

I am using Debian OS and ruby 1.8 version . I have attached .pfx certificate file . Which was created using openssl command as follows , create a file containing key and self-signed certificate openssl req -x509 -no…

---

## [Help required on sorting](https://www.ruby-forum.com/t/help-required-on-sorting/171792)

<div class="topic-metadata">

**Author:** [@diptisampath](https://www.ruby-forum.com/u/diptisampath)\
**Replies:** 6\
**Last updated:** [July 9, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/help-required-on-sorting/171792 "2009-07-09T13:51:51Z")

</div>

Hi All, I ve to sort risks by “High” “Medium” “Low” “Info” and “Safe” When I sort in the model it sorts in the alphabetical order which is not what i want. Tried adding a position to each of it as High -\> 1 Medium -\> …

---

## [Rb\_obj\_untrust, rb\_obj\_untrusted, rb\_obj\_trust](https://www.ruby-forum.com/t/rb-obj-untrust-rb-obj-untrusted-rb-obj-trust/171790)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 11:36am UTC](https://www.ruby-forum.com/t/rb-obj-untrust-rb-obj-untrusted-rb-obj-trust/171790 "2009-07-09T11:36:53Z")

</div>

e$B1J0fe(B@e$BCNG=!%6e9)Bg$G$9!%e(B e$BI=Bj$N;0$D$N4X?t$Oe(B intern.h e$B$K$^$@EPO?$5$l$F$$$J$$$h$&$G$9$,!$e(B e$B$3$l$i$OHs8x3+$J$N$G$7$g$&$+!)e(B taint e$B4X78$N4X?t$O8x3+$G$9$+$i$3$A$i$b8x3+$GNI$$$H;W$&$N$G$9$,!$e…

---

## [Get a web page with open-uri](https://www.ruby-forum.com/t/get-a-web-page-with-open-uri/171734)

<div class="topic-metadata">

**Author:** [@rei](https://www.ruby-forum.com/u/rei)\
**Replies:** 7\
**Last updated:** [July 9, 2009, 9:28am UTC](https://www.ruby-forum.com/t/get-a-web-page-with-open-uri/171734 "2009-07-09T09:28:54Z")

</div>

Hello ! I’m trying to get a web page width open-uri width this code : require ‘open-uri’ open(“http://www.google.com”) {|src| open(“test.htm”,“wb”) {|dst| dst.write(src.read) } } But it returns me : cannot conve…

---

## [Looksee 0.0.1 Released](https://www.ruby-forum.com/t/looksee-0-0-1-released/171582)

<div class="topic-metadata">

**Author:** [@cage](https://www.ruby-forum.com/u/cage)\
**Replies:** 2\
**Last updated:** [July 9, 2009, 8:25am UTC](https://www.ruby-forum.com/t/looksee-0-0-1-released/171582 "2009-07-09T08:25:48Z")

</div>

looksee version 0.0.1 has been released! http://github.com/oggy/looksee Looksee lets you examine the method lookup path of objects in ways not possible in plain ruby. Changes: 0.0.1 2009-07-05 Hi.

---

## [GetKeyboardState() problems/usage](https://www.ruby-forum.com/t/getkeyboardstate-problems-usage/171781)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 6:29am UTC](https://www.ruby-forum.com/t/getkeyboardstate-problems-usage/171781 "2009-07-09T06:29:07Z")

</div>

What seems to be the correct means of using this function? getState = Win32API.new(‘user32’,‘GetKeyboardState’,\[‘P’\],‘N’) byteGrid = 0.chr \* 256 #for the 256 virtual keycodes now, using getState.call(byteGrid) changes…

---

## [Test Unit error when requiring proctable](https://www.ruby-forum.com/t/test-unit-error-when-requiring-proctable/171706)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 3\
**Last updated:** [July 9, 2009, 4:25am UTC](https://www.ruby-forum.com/t/test-unit-error-when-requiring-proctable/171706 "2009-07-09T04:25:40Z")

</div>

Hi there, apologies if I am asking in the wrong forum. I am trying to add a method to my test suite that uses the proctable class to read process ids. I installed using “gem install sys-proctable” I then placed requi…

---

## [Spec and calling other examples](https://www.ruby-forum.com/t/spec-and-calling-other-examples/171707)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 3:56am UTC](https://www.ruby-forum.com/t/spec-and-calling-other-examples/171707 "2009-07-09T03:56:29Z")

</div>

Hi, When performing BDD there are few occasions when a certain example (BDD test) depends on other context/example. Here is one example: describe Person do before do @person = Person.new @person.Age = 19 end it…

---

## [Looking for beginning ruby instructors](https://www.ruby-forum.com/t/looking-for-beginning-ruby-instructors/171778)

<div class="topic-metadata">

**Author:** [@andrea](https://www.ruby-forum.com/u/andrea)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 2:35am UTC](https://www.ruby-forum.com/t/looking-for-beginning-ruby-instructors/171778 "2009-07-09T02:35:56Z")

</div>

Hey, Hope this is an OK post since it’s not strictly technical in nature… I manage Info Systems at the Jewish Community Center in San Francisco (www.jccsf.org) and am working with our programming staff to start new, …

---

## [Stepping up as SQLite3/Ruby maintainer](https://www.ruby-forum.com/t/stepping-up-as-sqlite3-ruby-maintainer/171777)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 1:47am UTC](https://www.ruby-forum.com/t/stepping-up-as-sqlite3-ruby-maintainer/171777 "2009-07-09T01:47:27Z")

</div>

So, I think this may be good news for some folks. February 24, 2009 is the date that Jamis B. marked as the end of several of his open source projects, including SQLite3/Ruby.\[1\] Previously, he asked for help\[2\], upda…

---

## [Smtp\_tls 1.0.3 Released](https://www.ruby-forum.com/t/smtp-tls-1-0-3-released/171774)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 12:33am UTC](https://www.ruby-forum.com/t/smtp-tls-1-0-3-released/171774 "2009-07-09T00:33:51Z")

</div>

smtp\_tls version 1.0.3 has been released! http://seattlerb.rubyforge.org/smtp\_tls Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+). Simply require ‘smtp\_tls’ and use the Net::SMTP#enable\_starttls …

---

## [I cant start webrick](https://www.ruby-forum.com/t/i-cant-start-webrick/171773)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 4\
**Last updated:** [July 9, 2009, 12:11am UTC](https://www.ruby-forum.com/t/i-cant-start-webrick/171773 "2009-07-09T00:11:38Z")

</div>

when i try to start webrick i get this message ./easyhtmlserver:12: syntax error, unexpected tASSOC, expecting kEND :Port =\> 80 ^ ./easyhtmlserver:14: syntax error, unexpected tASSOC, expecting kEND :Port …

---

## [Help with Twitter4r](https://www.ruby-forum.com/t/help-with-twitter4r/171737)

<div class="topic-metadata">

**Author:** [@lumbar](https://www.ruby-forum.com/u/lumbar)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/help-with-twitter4r/171737 "2009-07-08T23:29:34Z")

</div>

Hi everybody… This is my first post where with a doubt in the first application that i am developing in ruby… I’m using Twitter4r library and Ramaze instead of Rails. I think the problem is this bit of code: def gene…

---

## [Making sense of multiple packets containing dup data](https://www.ruby-forum.com/t/making-sense-of-multiple-packets-containing-dup-data/171767)

<div class="topic-metadata">

**Author:** [@owossoborn](https://www.ruby-forum.com/u/owossoborn)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/making-sense-of-multiple-packets-containing-dup-data/171767 "2009-07-08T22:04:03Z")

</div>

I’m currently working on a query app for Battlefield 2142 and I’m running into some troubles when I’m receiving multiple UDP packets from a server. When there’s only one packet, I can decipher it without much trouble,…

---

## [Ruby 1.8 - character encoding](https://www.ruby-forum.com/t/ruby-1-8-character-encoding/171675)

<div class="topic-metadata">

**Author:** [@thomthom](https://www.ruby-forum.com/u/thomthom)\
**Replies:** 22\
**Last updated:** [July 8, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/ruby-1-8-character-encoding/171675 "2009-07-08T20:30:06Z")

</div>

I write Ruby plugins for Google Sketchup. Sketchup uses UTF-8 strings and passes this to ruby (1.8) - which handles Strings as simple series of bytes. This caused problems when I tried to pass a String I got from Sket…

---

## [Book Promo: Sir Pinchington's Amazing Journey](https://www.ruby-forum.com/t/book-promo-sir-pinchingtons-amazing-journey/171763)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/book-promo-sir-pinchingtons-amazing-journey/171763 "2009-07-08T20:10:48Z")

</div>

Hi folks, I guess I was in a weird mood today, so I’ve laid out a weird contest for those who are RBP book readers. Details can be found at: http://rubybestpractices.com/contest.html Hopefully this will lead to some …

---

## [How to accept a varying amount of UDP packets using recvfrom](https://www.ruby-forum.com/t/how-to-accept-a-varying-amount-of-udp-packets-using-recvfrom/171755)

<div class="topic-metadata">

**Author:** [@owossoborn](https://www.ruby-forum.com/u/owossoborn)\
**Replies:** 3\
**Last updated:** [July 8, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/how-to-accept-a-varying-amount-of-udp-packets-using-recvfrom/171755 "2009-07-08T19:12:42Z")

</div>

I’m currently creating an application that can query a game-server for its status, total players, hostname, etc. I send out a challenge packet, and in return I receive between 1 and 3 UDP packets. Is there an effectiv…

---

## [Help with rdoc - generate documentation for Ruby 1.9.1 Standard Library?](https://www.ruby-forum.com/t/help-with-rdoc-generate-documentation-for-ruby-1-9-1-standard-library/171635)

<div class="topic-metadata">

**Author:** [@Bjoern](https://www.ruby-forum.com/u/Bjoern)\
**Replies:** 14\
**Last updated:** [July 8, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/help-with-rdoc-generate-documentation-for-ruby-1-9-1-standard-library/171635 "2009-07-08T18:49:17Z")

</div>

Hi, since it isn’t available online anywhere (afaik), I tried to generate the documentation for the standard library myself. However, I have troubles with rdoc. What I tried was rdoc -i lib -i ext -o rdoc\_dir in th…

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

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