# Ruby

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

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

---

## [ActionMailer PDF attachment and Windows](https://www.ruby-forum.com/t/actionmailer-pdf-attachment-and-windows/180209)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 1\
**Last updated:** [December 15, 2009, 3:04am UTC](https://www.ruby-forum.com/t/actionmailer-pdf-attachment-and-windows/180209 "2009-12-15T03:04:16Z")

</div>

I’ve been struggling for a couple of days down with trying to attach a pdf file to an email using ActionMailer on Windows. All the examples on the web I could find instructed me to use “:body =\> File.read ()” to do t…

---

## [Anybody out there doing RTMP automation?](https://www.ruby-forum.com/t/anybody-out-there-doing-rtmp-automation/180217)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [December 15, 2009, 2:17am UTC](https://www.ruby-forum.com/t/anybody-out-there-doing-rtmp-automation/180217 "2009-12-15T02:17:27Z")

</div>

I am interested in using Ruby to send RTMP probes to do some data validations. Are there any standard Ruby tools right now for this, or is there any open-source work that someone is actively sharing to do this kind of …

---

## [Feezing mysql gem + unitiliazed constant MysqlCompat::Mysql](https://www.ruby-forum.com/t/feezing-mysql-gem-unitiliazed-constant-mysqlcompat-mysql/180199)

<div class="topic-metadata">

**Author:** [@renatojf](https://www.ruby-forum.com/u/renatojf)\
**Replies:** 3\
**Last updated:** [December 15, 2009, 1:16am UTC](https://www.ruby-forum.com/t/feezing-mysql-gem-unitiliazed-constant-mysqlcompat-mysql/180199 "2009-12-15T01:16:00Z")

</div>

I need to freeze the mysql gem inside my app, since it’s no longer bundled with rails. So, I installed the mysql 2.8.1 gem and got that “uninitialized constant MysqlCompat::MysqlRes” error when I’m trying to deploy my…

---

## [Nokogiri 1.4.1 Released](https://www.ruby-forum.com/t/nokogiri-1-4-1-released/180088)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 7\
**Last updated:** [December 14, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/nokogiri-1-4-1-released/180088 "2009-12-14T23:37:41Z")

</div>

Hey everyone! Have you finished your holiday shopping yet? I know I haven’t. Fortunately for you guys, Mike and I like programming a lot more than shopping. I mean, don’t get me wrong. I love shopping for myself, …

---

## [Rice 1.3.0 - Now with full 1.9 support!](https://www.ruby-forum.com/t/rice-1-3-0-now-with-full-1-9-support/180207)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/rice-1-3-0-now-with-full-1-9-support/180207 "2009-12-14T23:02:50Z")

</div>

Rice: Ruby Interface for C++ Extensions What is Rice? Rice is a C++ interface to Ruby’s C API. It provides a type-safe and exception-safe interface in order to make embedding Ruby and writing Ruby extensions with C++…

---

## [Ruby 1.9 string slicing and StringScanner pointers](https://www.ruby-forum.com/t/ruby-1-9-string-slicing-and-stringscanner-pointers/180196)

<div class="topic-metadata">

**Author:** [@kch](https://www.ruby-forum.com/u/kch)\
**Replies:** 6\
**Last updated:** [December 14, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/ruby-1-9-string-slicing-and-stringscanner-pointers/180196 "2009-12-14T22:11:38Z")

</div>

Hi all, Earlier today I posted this question to Stack Overflow: ruby 1.9: how do I get a byte-index-based slice of a String? - Stack Overflow Basically, it boils down to this: I’m working with UTF-8 strings in Ruby …

---

## [Ruby eval magic](https://www.ruby-forum.com/t/ruby-eval-magic/180186)

<div class="topic-metadata">

**Author:** [@DMG](https://www.ruby-forum.com/u/DMG)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/ruby-eval-magic/180186 "2009-12-14T22:01:41Z")

</div>

Can anybody explain me, why this is true: self.class.class\_eval{self} == self.class.instance\_eval{self} Thanks, Dawid

---

## [Working with a command-line application on a remote server via Net::SSH](https://www.ruby-forum.com/t/working-with-a-command-line-application-on-a-remote-server-via-net-ssh/180203)

<div class="topic-metadata">

**Author:** [@Oddly\_Z](https://www.ruby-forum.com/u/Oddly_Z)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 9:21pm UTC](https://www.ruby-forum.com/t/working-with-a-command-line-application-on-a-remote-server-via-net-ssh/180203 "2009-12-14T21:21:53Z")

</div>

Hello, all– I am trying to interact with a command-line application on a remote machine using Net::SSH and trying to figure out how to send data to the application after invoking it. My code is somewhat like this: N…

---

## [\[ANN\] arcadia 0.8.0](https://www.ruby-forum.com/t/ann-arcadia-0-8-0/180118)

<div class="topic-metadata">

**Author:** [@guerra](https://www.ruby-forum.com/u/guerra)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/ann-arcadia-0-8-0/180118 "2009-12-14T19:39:25Z")

</div>

Arcadia is a Light Integrated Development Environment (IDE) for Ruby language written in Ruby using the classic tcl/tk GUI toolkit. Some of Arcadia ruby ide project features include: Editor with source browsing, syn…

---

## [Ruby 1.9.1-p376 is out](https://www.ruby-forum.com/t/ruby-1-9-1-p376-is-out/179886)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p376-is-out/179886 "2009-12-14T19:29:59Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruby 1.9.1-p376 just has been released. This is a patch level release of Ruby 1.9.1 and includes the fix of CVE-2009-4124. == CVE-2009-4124 The previous release, Ruby 1.…

---

## [Add rubygems bin to PATH Bug #145267](https://www.ruby-forum.com/t/add-rubygems-bin-to-path-bug-145267/180200)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/add-rubygems-bin-to-path-bug-145267/180200 "2009-12-14T17:15:27Z")

</div>

What’s the best work around to this problem? “The rubygems package places the binaries for installed gems into /var/ lib/gems/1.8/bin, but this directory is not in the default PATH after the package is installed. It w…

---

## [\[Bug #2111\] Error:test\_rm\_f(TestFileUtils)](https://www.ruby-forum.com/t/bug-2111-error-test-rm-f-testfileutils/175699)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 10\
**Last updated:** [December 14, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/bug-2111-error-test-rm-f-testfileutils/175699 "2009-12-14T17:00:49Z")

</div>

Bug #2111: Error:test\_rm\_f(TestFileUtils) http://redmine.ruby-lang.org/issues/show/2111 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-09-17 trunk 24982) \[i…

---

## [Redirecting standard output](https://www.ruby-forum.com/t/redirecting-standard-output/180022)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 17\
**Last updated:** [December 14, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/redirecting-standard-output/180022 "2009-12-14T15:55:25Z")

</div>

Hi all, Is there a way to redirect the standard output, so that command like puts write to a file instead of the console?

---

## [Embed svg file in html](https://www.ruby-forum.com/t/embed-svg-file-in-html/180193)

<div class="topic-metadata">

**Author:** [@duke-brahma](https://www.ruby-forum.com/u/duke-brahma)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/embed-svg-file-in-html/180193 "2009-12-14T15:51:45Z")

</div>

In my rails application view i am using a svg file.I have a static .svg file and then embed it in a html file. Level 2 GSmart Report in controller…

---

## [Howto configure logging via yaml](https://www.ruby-forum.com/t/howto-configure-logging-via-yaml/180195)

<div class="topic-metadata">

**Author:** [@ohplease](https://www.ruby-forum.com/u/ohplease)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 3:45pm UTC](https://www.ruby-forum.com/t/howto-configure-logging-via-yaml/180195 "2009-12-14T15:45:41Z")

</div>

Hi there, I am new to both ruby an yaml and i am unsuccessfully trying to setup a logging configuration. (using logging-1.2.3) As there is neither an example nor a specification of the “logging\_config” structure I ha…

---

## [How to write this correctly?](https://www.ruby-forum.com/t/how-to-write-this-correctly/180182)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 5\
**Last updated:** [December 14, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/how-to-write-this-correctly/180182 "2009-12-14T15:28:20Z")

</div>

Hi, In python this is right: “Hello, %s %s” %(“Matz!”,“again”) ‘Hello, Matz! again’ But in ruby it will get wrong: “Hello, %s %s” %(“Matz!”,“again”) SyntaxError: (irb):39: syntax error, unexpected ‘,’, expect…

---

## [What's happened to http://www.ruby-doc.org/core?](https://www.ruby-forum.com/t/whats-happened-to-http-www-ruby-doc-org-core/180176)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/whats-happened-to-http-www-ruby-doc-org-core/180176 "2009-12-14T15:03:46Z")

</div>

Hi, http://www.ruby-doc.org says that the core elements of Ruby are at RDoc Documentation, but on my Firefox 3.5.5 browser over WinXP/SP3, I’ve been getting: File not found Firefox can’t find the file at http://ww…

---

## [Nokogiri docs?](https://www.ruby-forum.com/t/nokogiri-docs/180181)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/nokogiri-docs/180181 "2009-12-14T14:23:58Z")

</div>

I’ve got the gist of Nokogiri from reading their tutorial and got something working. Is there other better tutorial on Nokogiri on the web or books that people are aware of? – Kind Regards, Rajinder Y. http://DevM…

---

## [Sunshowers - Web Sockets for Ruby, Rack+Rainbows!](https://www.ruby-forum.com/t/sunshowers-web-sockets-for-ruby-rack-rainbows/180169)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 2\
**Last updated:** [December 14, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/sunshowers-web-sockets-for-ruby-rack-rainbows/180169 "2009-12-14T12:12:52Z")

</div>

Sunshowers is a Ruby library for Web Sockets. It exposes an easy-to-use API that may be used in both clients and servers. On the server side, it is designed to work with Rack::Request and Rainbows! concurrency model…

---

## [Comp.lang.ruby](https://www.ruby-forum.com/t/comp-lang-ruby/180192)

<div class="topic-metadata">

**Author:** [@MIMMITHA](https://www.ruby-forum.com/u/MIMMITHA)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 11:50am UTC](https://www.ruby-forum.com/t/comp-lang-ruby/180192 "2009-12-14T11:50:38Z")

</div>

http://careofhair.webs.com/index.htm The Ruby dynamic OO programming language. Language: English 7818 subscribers, Messages per month: 1956, Usenet

---

## [Error on using require 'unittests/setup'](https://www.ruby-forum.com/t/error-on-using-require-unittests-setup/180187)

<div class="topic-metadata">

**Author:** [@puneet\_pandey](https://www.ruby-forum.com/u/puneet_pandey)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 10:46am UTC](https://www.ruby-forum.com/t/error-on-using-require-unittests-setup/180187 "2009-12-14T10:46:18Z")

</div>

I have a Test file with fallowing required items require ‘test/unit’ require ‘unittests/setup’ require ‘watir’ require ‘watir/WindowHelper’ … … … … . when i run this file i got the error C:/Ruby/lib/ruby/site\_…

---

## [Gsub help](https://www.ruby-forum.com/t/gsub-help/180163)

<div class="topic-metadata">

**Author:** [@kvetch](https://www.ruby-forum.com/u/kvetch)\
**Replies:** 7\
**Last updated:** [December 14, 2009, 10:21am UTC](https://www.ruby-forum.com/t/gsub-help/180163 "2009-12-14T10:21:40Z")

</div>

I am reading in a file that is basically a csv file but the delimiter is spaces. I am also using fastercsv to parse the file into an array. Before fastercsv reads it I am substituting all spaces into commas with gsub …

---

## [About object methods](https://www.ruby-forum.com/t/about-object-methods/180177)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 10:20am UTC](https://www.ruby-forum.com/t/about-object-methods/180177 "2009-12-14T10:20:29Z")

</div>

Hello, I have two questions, what’s the difference between class method and module method? when I say: Dir.pwd, is this a class method or a module method? How to know if Dir is a module or a class? Thanks.

---

## [How to make a ruby program tu run unser other user:group different than root](https://www.ruby-forum.com/t/how-to-make-a-ruby-program-tu-run-unser-other-user-group-different-than-root/180135)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 11\
**Last updated:** [December 14, 2009, 10:16am UTC](https://www.ruby-forum.com/t/how-to-make-a-ruby-program-tu-run-unser-other-user-group-different-than-root/180135 "2009-12-14T10:16:23Z")

</div>

Hi, many daemons allow an argument “-u uid” which makes the program to run under that user. Of course this can be done just by root or privileged users. It’s commonly used in init scripts. These are started by init p…

---

## [\[Backport #2477\] String#split should be ASCII sensitive](https://www.ruby-forum.com/t/backport-2477-string-split-should-be-ascii-sensitive/180179)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 7:59am UTC](https://www.ruby-forum.com/t/backport-2477-string-split-should-be-ascii-sensitive/180179 "2009-12-14T07:59:26Z")

</div>

Backport #2477: String#split should be ASCII sensitive http://redmine.ruby-lang.org/issues/show/2477 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., e$B%+%F%4%je(B: co…

---

## [What is the :argument syntax about?](https://www.ruby-forum.com/t/what-is-the-argument-syntax-about/180174)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 4:12am UTC](https://www.ruby-forum.com/t/what-is-the-argument-syntax-about/180174 "2009-12-14T04:12:57Z")

</div>

Hi all, I’ve noticed that for some methods in some gems, it’s necesarry to pass arguments like this: method( :arg1 =\> value, :arg2 =\> value, :arg3,…) I use the syntax the same way in the examples and it works, but I’…

---

## [\[Bug #2323\] "Z".."Z".succ$B$,6u(B](https://www.ruby-forum.com/t/bug-2323-z-z-succ-b-6u-b/178290)

<div class="topic-metadata">

**Author:** [@asarih](https://www.ruby-forum.com/u/asarih)\
**Replies:** 5\
**Last updated:** [December 14, 2009, 4:08am UTC](https://www.ruby-forum.com/t/bug-2323-z-z-succ-b-6u-b/178290 "2009-12-14T04:08:16Z")

</div>

Bug #2323: “Z”…“Z”.succe$B$,6ue(B http://redmine.ruby-lang.org/issues/show/2323 e$B5/I\<\<Te(B: Hiro A. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: ruby 1.9.2dev (2009-11-02 trunk 25625)…

---

## [December Phoenix Ruby User Group Meeting (12/14)](https://www.ruby-forum.com/t/december-phoenix-ruby-user-group-meeting-12-14/180173)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 3:31am UTC](https://www.ruby-forum.com/t/december-phoenix-ruby-user-group-meeting-12-14/180173 "2009-12-14T03:31:59Z")

</div>

December Phoenix Ruby U. Group Meeting When: Monday, December 14, 2009 6:30pm door open. Laptop power and WiFi available. 7:00pm Showtime 8:30pm Migrate to Four Peaks Brewery Topic: Christmas Cornucopia \* Ru…

---

## [Case with && not working compared to using if, works!](https://www.ruby-forum.com/t/case-with-not-working-compared-to-using-if-works/180162)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 2:44am UTC](https://www.ruby-forum.com/t/case-with-not-working-compared-to-using-if-works/180162 "2009-12-14T02:44:35Z")

</div>

Hi All, I looked through many threads for case issues and they did not help me. I want to use case just because for this situation: PIDF = “/usr/local/vr/prod/tmp/pids/mongrel.pid” d = Date.today t = Time.now pi…

---

## [Rainbows! 0.9.0](https://www.ruby-forum.com/t/rainbows-0-9-0/180168)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 12:41am UTC](https://www.ruby-forum.com/t/rainbows-0-9-0/180168 "2009-12-14T00:41:03Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily b…

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

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