# Ruby

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

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

---

## [Warbler and rails3, public files broken?](https://www.ruby-forum.com/t/warbler-and-rails3-public-files-broken/190054)

<div class="topic-metadata">

**Author:** [@kreucher](https://www.ruby-forum.com/u/kreucher)\
**Replies:** 3\
**Last updated:** [June 29, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/warbler-and-rails3-public-files-broken/190054 "2010-06-29T23:16:12Z")

</div>

Hey Folks, I’ve been playing with Rails3 (3.0.0.beta4) and warbler… deploying to WebSphere 7. I’ve managed to get my app ported over to rails3 and packaged into a .war file… it even deploys to WebSphere fine, starts, …

---

## [Bug?](https://www.ruby-forum.com/t/bug/188816)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 24\
**Last updated:** [June 29, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/bug/188816 "2010-06-29T21:56:35Z")

</div>

Is this a bug… C:\\dev\\ruby\\ruby-benchmark-suite\\benchmarks\\rails\\substruct\>ir script/console Loading development environment (Rails 2.3.2) IronRuby.Libraries:0:in GetExecutable': irb.bat -r irb/completion -r "C:/dev/…

---

## [Calling constructor when static .New() method is defined](https://www.ruby-forum.com/t/calling-constructor-when-static-new-method-is-defined/190874)

<div class="topic-metadata">

**Author:** [@Philippe\_Leybaert](https://www.ruby-forum.com/u/Philippe_Leybaert)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/calling-constructor-when-static-new-method-is-defined/190874 "2010-06-29T21:44:18Z")

</div>

Shay F. suggested I’d post this to the mailing list, as it may be a bug in IronRuby: It seems impossible to call a constructor when there is a static .New() method defined on a class. This is a minimal test case demo…

---

## [Rails session\_id is not unique](https://www.ruby-forum.com/t/rails-session-id-is-not-unique/190878)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/rails-session-id-is-not-unique/190878 "2010-06-29T19:07:59Z")

</div>

We have been experiencing an issue in our environment (Jruby 1.4, Rails 2.3.5, Tomcat 5.5, Java 1.6) where duplicate session\_ids are being created in the sessions table. We are assuming the only way this can happen i…

---

## [Apache mod\_jk server affinity config. for Tomcat with a JRub](https://www.ruby-forum.com/t/apache-mod-jk-server-affinity-config-for-tomcat-with-a-jrub/190132)

<div class="topic-metadata">

**Author:** [@yani\_engico](https://www.ruby-forum.com/u/yani_engico)\
**Replies:** 6\
**Last updated:** [June 29, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/apache-mod-jk-server-affinity-config-for-tomcat-with-a-jrub/190132 "2010-06-29T18:42:48Z")

</div>

I am using Apache 2.2.3 with mod\_jk to connect to Tomcat 6 server. We have deployed a JRubyOnRails (JRuby 1.5, Rails 2.2.3) web app on Tomcat by creating a .war file using warbler. I need to understand how the http se…

---

## [Using RubyGems](https://www.ruby-forum.com/t/using-rubygems/190867)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/using-rubygems/190867 "2010-06-29T18:16:59Z")

</div>

What does (find) in require ‘find’ do? Yes, it is a gem. So, I think I can find it here: http://rubygems.org/. But, can anyone tell me how to use that and find information on gems here. Just new to that actually. Tha…

---

## [Code Review: EMS10](https://www.ruby-forum.com/t/code-review-ems10/190876)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 5:48pm UTC](https://www.ruby-forum.com/t/code-review-ems10/190876 "2010-06-29T17:48:57Z")

</div>

tfpt review “/shelveset:EMS10;REDMOND\\tomat” Comment : Implements support for extension methods in IronRuby. DLR: Factors out reusable parts of type inferer to ReflectionUtils and simplifies the inferer a bit. We …

---

## [$? is always new?](https://www.ruby-forum.com/t/is-always-new/190728)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [June 29, 2010, 4:13pm UTC](https://www.ruby-forum.com/t/is-always-new/190728 "2010-06-29T16:13:49Z")

</div>

Is the following expected? $ irb $? =\> #\<Process::Status: pid 20110 exit 0\> $? =\> #\<Process::Status: pid 20122 exit 0\> $? =\> #\<Process::Status: pid 20134 exit 0\> What are those phantom processes? -r

---

## [String Spliting/CSV question](https://www.ruby-forum.com/t/string-spliting-csv-question/190862)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 2\
**Last updated:** [June 29, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/string-spliting-csv-question/190862 "2010-06-29T14:21:05Z")

</div>

Hey all, Just a quick questions regarding some data I am trying to process. I am reading a file which contains data like so HeaderA,HeaderB,HeaderC 1234545,“items, more, random, data”,data extradata 1234325,“items, …

---

## [Passing a block to yield](https://www.ruby-forum.com/t/passing-a-block-to-yield/190808)

<div class="topic-metadata">

**Author:** [@chilaquil](https://www.ruby-forum.com/u/chilaquil)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/passing-a-block-to-yield/190808 "2010-06-29T14:07:03Z")

</div>

Hello I was trying to make an iterator that goes through a simple tree structure something like that: class Node … def each\_child(&block) @children.each { |child| yield(child) { child.each\_child(&block) } } end … …

---

## [Net::SCP download from windows to linux and encrypt password](https://www.ruby-forum.com/t/net-scp-download-from-windows-to-linux-and-encrypt-password/190857)

<div class="topic-metadata">

**Author:** [@kalpesh131](https://www.ruby-forum.com/u/kalpesh131)\
**Replies:** 1\
**Last updated:** [June 29, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/net-scp-download-from-windows-to-linux-and-encrypt-password/190857 "2010-06-29T13:44:48Z")

</div>

I am using Net::SCP to download/upload file. I am doing like this… require ‘net/scp’ session = Net::SCP.start(“10.10.10.10”, “username”, :password =\> “password”, :config =\> false) sess.download! “/tmp/test.txt”, “/r…

---

## [ActiveSupport 3 inflections used standalone](https://www.ruby-forum.com/t/activesupport-3-inflections-used-standalone/190855)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 1\
**Last updated:** [June 29, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/activesupport-3-inflections-used-standalone/190855 "2010-06-29T12:39:15Z")

</div>

I have some working non rails standalone ruby code under ruby 1.8.6 using activesupport 2.3.5 to take a string and make it into a class name. I was doing this: require “active\_support” classes = \[\] classes \<\< “healt…

---

## [2010 GoRuCo Videos Up](https://www.ruby-forum.com/t/2010-goruco-videos-up/190850)

<div class="topic-metadata">

**Author:** [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 6:50am UTC](https://www.ruby-forum.com/t/2010-goruco-videos-up/190850 "2010-06-29T06:50:23Z")

</div>

The 2010 Gotham Ruby Conference videos are up at: Videos from past conferences are up at: Gotham Ruby Conference’s Showcases on Vimeo Many thanks to all of our fine speakers and of course attendees. -Stephen

---

## [\[Bug #3398\] 1.9.2 SEGV during test-all](https://www.ruby-forum.com/t/bug-3398-1-9-2-segv-during-test-all/189729)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 5:18am UTC](https://www.ruby-forum.com/t/bug-3398-1-9-2-segv-during-test-all/189729 "2010-06-29T05:18:29Z")

</div>

Bug #3398: 1.9.2 SEGV during test-all http://redmine.ruby-lang.org/issues/show/3398 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: High e$BC4Ev\<Te(B: Yuki S., e$B%+%F%4%je(B: core, Target version: 1.…

---

## [Can't use uki](https://www.ruby-forum.com/t/cant-use-uki/190844)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 1\
**Last updated:** [June 29, 2010, 4:54am UTC](https://www.ruby-forum.com/t/cant-use-uki/190844 "2010-06-29T04:54:28Z")

</div>

pt@pt-laptop:~$ sudo gem install uki \[sudo\] password for pt: Successfully installed uki-1.1.1 1 gem installed Installing ri documentation for uki-1.1.1… Installing RDoc documentation for uki-1.1.1… pt@pt-laptop:~$…

---

## [Hash\[\] $B$N0z?t$,(B Array $B$N\>l9g$N?6$kIq$$(B](https://www.ruby-forum.com/t/hash-b-n0z-t-b-array-b-n-l9g-n-6-kiq-b/190816)

<div class="topic-metadata">

**Author:** [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 3:58am UTC](https://www.ruby-forum.com/t/hash-b-n0z-t-b-array-b-n-l9g-n-6-kiq-b/190816 "2010-06-29T03:58:17Z")

</div>

e$B$H$\_$?$G$9!#e(B Hash\[\] e$B$N0z?t$,#1$D$NG\[Ns$G!“$+$D$=$NMWAG$,$5$i$Ke(B 1e$B8D$+e(B2e$B8D$NMWAG$NG\[Nse(B e$B$N\>l9g!”$=$l$r%-!\<$HCM$N%Z%"$H$\_$J$7$Fe(B(1e$B8D$N\>l9g$OCM$Oe(B nil)e$B!"e(BHash e$B%\*%Ve(B e$B%8%'%/%H$…

---

## [Singleton class in Ruby](https://www.ruby-forum.com/t/singleton-class-in-ruby/190695)

<div class="topic-metadata">

**Author:** [@manoj](https://www.ruby-forum.com/u/manoj)\
**Replies:** 7\
**Last updated:** [June 29, 2010, 3:58am UTC](https://www.ruby-forum.com/t/singleton-class-in-ruby/190695 "2010-06-29T03:58:14Z")

</div>

Can we see the singleton class as object in ruby.

---

## [Application freezes time to time](https://www.ruby-forum.com/t/application-freezes-time-to-time/190793)

<div class="topic-metadata">

**Author:** [@nauman](https://www.ruby-forum.com/u/nauman)\
**Replies:** 3\
**Last updated:** [June 29, 2010, 2:37am UTC](https://www.ruby-forum.com/t/application-freezes-time-to-time/190793 "2010-06-29T02:37:06Z")

</div>

Hello, Our application freezes time to time now, here is the log file: http://pastie.org/1021435, each time we need to restart tomcat service. We are using: jruby 1.4.0 Ruby on Rails 2.3.4 with these gems: actionm…

---

## [(ruby/tk) ruby\_1\_9\_2 $B$X$N(B backport](https://www.ruby-forum.com/t/ruby-tk-ruby-1-9-2-b-x-n-b-backport/190697)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 4\
**Last updated:** [June 28, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/ruby-tk-ruby-1-9-2-b-x-n-b-backport/190697 "2010-06-28T23:43:40Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B trunk e$B$K$\*$1$k0J2\<$NJQ99e(B (extconf.rb, stubs.c, tk.rb) e$B$G$9$,!$e(B 1.9.2 e$B$X$Ne(B backport e$B$r$\*4j$$$G$-$^$9$G$7$g$&$+!)e(B e$B$"$k$$$Oe(B backport e$B$7$F$b9=$o$J$$$G$7$g$&…

---

## [Regex.escape bug](https://www.ruby-forum.com/t/regex-escape-bug/190818)

<div class="topic-metadata">

**Author:** [@zapotek](https://www.ruby-forum.com/u/zapotek)\
**Replies:** 2\
**Last updated:** [June 28, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/regex-escape-bug/190818 "2010-06-28T21:55:22Z")

</div>

Hi guys, I’m using “ruby 1.9.1p378 (2010-01-10 revision 26273) \[x86\_64-linux\]” and just noticed a possible bug in Regex.escape() while using it with gsub() This: pp Regexp.escape( ‘.rb’ ) yields: “\\.rb” while it shou…

---

## [IronPython VS2010 Tools for IronRuby?](https://www.ruby-forum.com/t/ironpython-vs2010-tools-for-ironruby/190828)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 1\
**Last updated:** [June 28, 2010, 9:43pm UTC](https://www.ruby-forum.com/t/ironpython-vs2010-tools-for-ironruby/190828 "2010-06-28T21:43:39Z")

</div>

I have been following IronRuby for a while now as i have with IronPython and it seems like IronPython gets a lot more attention then IronRuby. While this may or may not be true from a development standpoint, from a …

---

## [Trying to reach Florian Frank](https://www.ruby-forum.com/t/trying-to-reach-florian-frank/190829)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [June 28, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/trying-to-reach-florian-frank/190829 "2010-06-28T21:41:18Z")

</div>

Hello Rubyists! I and several other JRubyists have been trying to reach Florian F. for many months to try to get a -java version of his “json” gem released. Lots of libraries depend directly on the json gem, which do…

---

## [CUDA bindings?](https://www.ruby-forum.com/t/cuda-bindings/148089)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 7\
**Last updated:** [June 28, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/cuda-bindings/148089 "2010-06-28T21:00:12Z")

</div>

I was wondering if anybody has (is thinking of) creating CUDA bindings. I searched this forum archives, and rubyforge.org, but couldn’t find any references to CUDA. Wikipedia showed an example with python. CUDA (Co…

---

## [Static method on a C# class extending a generic class](https://www.ruby-forum.com/t/static-method-on-a-c-class-extending-a-generic-class/190821)

<div class="topic-metadata">

**Author:** [@dzo](https://www.ruby-forum.com/u/dzo)\
**Replies:** 0\
**Last updated:** [June 28, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/static-method-on-a-c-class-extending-a-generic-class/190821 "2010-06-28T20:02:51Z")

</div>

Sorry, confusing subject, but just a quick question. I wanted to make one of my C# classes generic, but I didn’t want to have to worry about rewriting code everywhere that class was used, so I created a default derive…

---

## [Gem rake error](https://www.ruby-forum.com/t/gem-rake-error/190794)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 1\
**Last updated:** [June 28, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/gem-rake-error/190794 "2010-06-28T17:10:44Z")

</div>

on ruby 1.9.2dev (2010-05-31 revision 28117) \[x86\_64-darwin10.3.0\] and rake 0.8.7 I am experiencing this error whenever i run rake. Any suggested solution? /usr/local/lib/ruby/1.9.1/rubygems.rb:335:in bin\_path': can'…

---

## [Pretty inspecting objects?](https://www.ruby-forum.com/t/pretty-inspecting-objects/190807)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 3\
**Last updated:** [June 28, 2010, 4:59pm UTC](https://www.ruby-forum.com/t/pretty-inspecting-objects/190807 "2010-06-28T16:59:57Z")

</div>

Hello! Idea would be to write contents of some objects into some file in pretty inspection format. How is it possible in Ruby to get pretty inspection of an object without printing it to stdout? One possibility woul…

---

## [Redirecting the end of a pipe](https://www.ruby-forum.com/t/redirecting-the-end-of-a-pipe/190713)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [June 28, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/redirecting-the-end-of-a-pipe/190713 "2010-06-28T16:50:48Z")

</div>

Following interesting problem: I have created two pipe end points via IO.pipe: stdin\_read,stdin\_write=IO.pipe I have forked of a child, and redirected stdin of the child with: $stdin.reopen(stdin\_read) In the …

---

## [Convert \\uXXXX to character](https://www.ruby-forum.com/t/convert-uxxxx-to-character/190771)

<div class="topic-metadata">

**Author:** [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Replies:** 6\
**Last updated:** [June 28, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/convert-uxxxx-to-character/190771 "2010-06-28T16:44:57Z")

</div>

I have string: ‘\\u041f\\u0440\\u0438\\u0432\\u0435\\u0442!’ and i need to convert it to string such as ‘Ð¿Ñ€Ð¸Ð²ÐµÑ‚!’. I can convert string to ‘041f 0440 0438 0432 0435 0442’, then convert to decimal and at the end conver…

---

## [Looking to generate MS Doc files](https://www.ruby-forum.com/t/looking-to-generate-ms-doc-files/190810)

<div class="topic-metadata">

**Author:** [@Charles\_M\_Magid](https://www.ruby-forum.com/u/Charles_M_Magid)\
**Replies:** 0\
**Last updated:** [June 28, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/looking-to-generate-ms-doc-files/190810 "2010-06-28T16:05:43Z")

</div>

Looking to generate MS Doc files. I need to generate .doc files not docx. Does anyone have experience with poi? Engine Y. does not seem to support it. Are there other libraries, perhaps pure ruby which might be e…

---

## [JRuby on rails and tainted variables](https://www.ruby-forum.com/t/jruby-on-rails-and-tainted-variables/190804)

<div class="topic-metadata">

**Author:** [@Romaric\_Ludinard](https://www.ruby-forum.com/u/Romaric_Ludinard)\
**Replies:** 0\
**Last updated:** [June 28, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-and-tainted-variables/190804 "2010-06-28T14:16:12Z")

</div>

Hi there, I’m currently trying to use jruby because ruby1.8 is too slow in my point of view. For my project, I need to know which variables are tainted and which not. But unfortunately, it seems that something goes w…

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

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