# Ruby

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

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

---

## [Uninitialized constant ActionController::Session::JavaServletStore](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-javaservletstore/164080)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-javaservletstore/164080 "2009-03-27T19:07:56Z")

</div>

I’m seeing the problem described here http://www.nabble.com/uninitialized-constant-ActionController::Session::JavaServletStore-td21895091.html using JRuby 1.2.0, Rails 2.3.2, Warbler 0.9.12, but the described workarou…

---

## [Encoding problem when i use unpack](https://www.ruby-forum.com/t/encoding-problem-when-i-use-unpack/164088)

<div class="topic-metadata">

**Author:** [@oxman](https://www.ruby-forum.com/u/oxman)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/encoding-problem-when-i-use-unpack/164088 "2009-03-27T18:45:15Z")

</div>

Hi, I’ve a very strange problem when i use both unpack and encode, lets me show you : irb(main):034:0\> “=E9”.unpack(“M\*”)\[0\] =\> “\\xE9” irb(main):035:0\> “=E9”.unpack(“M\*”)\[0\].encode “UTF-8”, “ISO-8859-1” =\> “\\xE9” …

---

## [Gnip-1.0.0 (http://gnip.com)](https://www.ruby-forum.com/t/gnip-1-0-0-http-gnip-com/164087)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/gnip-1-0-0-http-gnip-com/164087 "2009-03-27T18:33:56Z")

</div>

NOTE: i made a small mistake with an earlier release(0.4.2) - it has a bad dependancy (restclient vs rest-client) so please either wait for 1.0.0 to propagate or, in the meantime, grab it directly from http://rubyfor…

---

## [Compiling 1.9.1p0 on AIX 5.3 using xlc](https://www.ruby-forum.com/t/compiling-1-9-1p0-on-aix-5-3-using-xlc/161997)

<div class="topic-metadata">

**Author:** [@graza](https://www.ruby-forum.com/u/graza)\
**Replies:** 7\
**Last updated:** [March 27, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/compiling-1-9-1p0-on-aix-5-3-using-xlc/161997 "2009-03-27T17:48:37Z")

</div>

Hi, I’m trying to compile Ruby using the native compiler xlc on AIX. Ruby seems to have compiled, but it falls over with a SEGV as soon as I run ‘make test’, it falls over. The reason I want to use the native compil…

---

## [Ruby 1.9 # coding: utf-8](https://www.ruby-forum.com/t/ruby-1-9-coding-utf-8/164063)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/ruby-1-9-coding-utf-8/164063 "2009-03-27T16:34:41Z")

</div>

I am trying some ruby 1.9. taste for the first time and I have got to this new behaviour. Since my location is in Estern Europe, most of my source files are coded in utf-8. I have found out that I should use # coding:…

---

## [Ruby openssl](https://www.ruby-forum.com/t/ruby-openssl/163935)

<div class="topic-metadata">

**Author:** [@raghu](https://www.ruby-forum.com/u/raghu)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/ruby-openssl/163935 "2009-03-27T15:51:17Z")

</div>

Hi, Whats the ruby equivalent code for the following decryption code which is written in java. 1.7 Decrypt Token To be completed. 1.7.1 Sample Java Code import java.io.UnsupportedEncodingException; import java.…

---

## [Using HTTParty to post a very large set of name/value pairs](https://www.ruby-forum.com/t/using-httparty-to-post-a-very-large-set-of-name-value-pairs/164070)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/using-httparty-to-post-a-very-large-set-of-name-value-pairs/164070 "2009-03-27T14:36:08Z")

</div>

I’ve got a pretty large text file (a few thousand lines on average) consisting of all key/value pairs. If I use wget to run the post from a command line, it seems to work fine. However, I’m trying to do it in Ruby, a…

---

## [Gem update](https://www.ruby-forum.com/t/gem-update/164061)

<div class="topic-metadata">

**Author:** [@sts](https://www.ruby-forum.com/u/sts)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 2:27pm UTC](https://www.ruby-forum.com/t/gem-update/164061 "2009-03-27T14:27:50Z")

</div>

Hi, am getting this error while updating or installing any gems D:\\blog\>gem update --system Updating installed gems… ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) Bad file descriptor - connect(2)(Er…

---

## [Tagz-5.0.0](https://www.ruby-forum.com/t/tagz-5-0-0/164069)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/tagz-5-0-0/164069 "2009-03-27T14:24:56Z")

</div>

Hi Ara, Here’s a fix for the empty tag problem. With this fix, I now have a usable solution. It would still be nice to support combining multiple hash arguments automatically, but that’s not a showstopper. Thanks a…

---

## [Sup 0.7 released](https://www.ruby-forum.com/t/sup-0-7-released/163859)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 1:42pm UTC](https://www.ruby-forum.com/t/sup-0-7-released/163859 "2009-03-27T13:42:38Z")

</div>

I’m happy to announce the release of Sup 0.7. The big win in this release is that Ferret index corruption issues should now be fixed, thanks to an extensive programming of locking and thread-safety-adding. The other …

---

## [Starting a Shoes application](https://www.ruby-forum.com/t/starting-a-shoes-application/155573)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 11:43am UTC](https://www.ruby-forum.com/t/starting-a-shoes-application/155573 "2009-03-27T11:43:06Z")

</div>

Hello there. I’m starting playing with Shoes (http://shoooes.net/) and I’m having a bit of a problem with understanding how a program is executed. All the program advertised there look just like: Shoes.app{}, but you …

---

## [Huge problem installing Postgres ruby 1.9 on Vista](https://www.ruby-forum.com/t/huge-problem-installing-postgres-ruby-1-9-on-vista/164059)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 11:40am UTC](https://www.ruby-forum.com/t/huge-problem-installing-postgres-ruby-1-9-on-vista/164059 "2009-03-27T11:40:14Z")

</div>

Werent there times when windows gems were precompiled for Windows. ####################### gem install ruby-pg extconf.rb:4:in \`’: uninitialized constant PLATFORM (NameError) Ok I have edited extconf.rb and add PLATF…

---

## [Modules, require, include, toplevel constants and Watir](https://www.ruby-forum.com/t/modules-require-include-toplevel-constants-and-watir/163891)

<div class="topic-metadata">

**Author:** [@chadmontplaisir](https://www.ruby-forum.com/u/chadmontplaisir)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 10:59am UTC](https://www.ruby-forum.com/t/modules-require-include-toplevel-constants-and-watir/163891 "2009-03-27T10:59:51Z")

</div>

Hi guys, Despite working in IT for almost 2 years now I consider myself a programming novice. Its probably my art degree. Anyway, I’m having trouble figuring out what is going on here. I’m using Watir here, but I sup…

---

## [Program design - template design pattern](https://www.ruby-forum.com/t/program-design-template-design-pattern/163928)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 8:58am UTC](https://www.ruby-forum.com/t/program-design-template-design-pattern/163928 "2009-03-27T08:58:55Z")

</div>

although im making a rails app this is more specific to ruby and general coding. I want to access several preknown rss feeds, parse and extract the relevant data and store it into an array. The feeds all have similiar …

---

## [Unit testing with ruby1.9.x](https://www.ruby-forum.com/t/unit-testing-with-ruby1-9-x/164011)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 5:07am UTC](https://www.ruby-forum.com/t/unit-testing-with-ruby1-9-x/164011 "2009-03-27T05:07:06Z")

</div>

Built ruby from a recent svn. Builds fine and works. ruby19jx --version ruby 1.9.2dev (2009-03-18) \[i686-linux\] Now for some unit testing; gem install ‘test-unit’ --remote run a test on some code; ruby19jx proj/…

---

## [Basic xml parsing question](https://www.ruby-forum.com/t/basic-xml-parsing-question/163971)

<div class="topic-metadata">

**Author:** [@geo](https://www.ruby-forum.com/u/geo)\
**Replies:** 3\
**Last updated:** [March 27, 2009, 2:25am UTC](https://www.ruby-forum.com/t/basic-xml-parsing-question/163971 "2009-03-27T02:25:43Z")

</div>

I am just starting to program and am learning by using ruby, so this question is probably really basic. I have a a file that I want to put the contents into a sqlite database. This file is locally saved now, but will …

---

## [Jruby Rest Client with timeout](https://www.ruby-forum.com/t/jruby-rest-client-with-timeout/164026)

<div class="topic-metadata">

**Author:** [@ilan](https://www.ruby-forum.com/u/ilan)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 1:34am UTC](https://www.ruby-forum.com/t/jruby-rest-client-with-timeout/164026 "2009-03-27T01:34:51Z")

</div>

Hey all, Found out that Jruby wonÂ¹t time out requests correctly, so I wrapped ApacheÂ¹s HttpClient: I did the BARE minimum for my own requirements. If youÂ¹d like to improve this, fork it and send me a pull reques…

---

## [Require 'spec' not working](https://www.ruby-forum.com/t/require-spec-not-working/163978)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 17\
**Last updated:** [March 27, 2009, 1:28am UTC](https://www.ruby-forum.com/t/require-spec-not-working/163978 "2009-03-27T01:28:59Z")

</div>

hi, i’ve downloaded the latest ironruby 0.3 and built it locally. its in my path GEM\_PATH C:\\ruby\\lib\\ruby\\gems\\1.8\\gems PATH c:\\ruby\\bin;C:\\ironruby\\Merlin\\Main\\bin\\Debug File: product\_spec.rb require ‘rubygems’ …

---

## [Force a .NET cast (COM Interop)](https://www.ruby-forum.com/t/force-a-net-cast-com-interop/164016)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 2\
**Last updated:** [March 26, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/force-a-net-cast-com-interop/164016 "2009-03-26T23:58:51Z")

</div>

I have an Interop’ed COM object (System.\_\_ComObject) that I’m trying to use from an IronRuby script. Because the way that you seem to QueryInterface from .NET is to use casting, I therefore need to cast from within …

---

## [Casting Objects (COM Interop) addendum](https://www.ruby-forum.com/t/casting-objects-com-interop-addendum/164017)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 1\
**Last updated:** [March 26, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/casting-objects-com-interop-addendum/164017 "2009-03-26T23:29:32Z")

</div>

As a follow up to my last message, I wrote a small util method, as follows: public static class Util { public static T Cast(object o) { return (T)o; } } And then try to call it from ruby: x = Util.method(:cast)…

---

## [CR: IronRuby tests for IDMOP, and ir\_wrap.cmd](https://www.ruby-forum.com/t/cr-ironruby-tests-for-idmop-and-ir-wrap-cmd/164008)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 4\
**Last updated:** [March 26, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/cr-ironruby-tests-for-idmop-and-ir-wrap-cmd/164008 "2009-03-26T23:26:37Z")

</div>

tfpt review “/shelveset:iridmop;REDMOND\\sborde” Comment : Adding unit tests for Ruby’s IDynamicMetaObjectProvider support. Failing scenarios are tagged with AreEqualBug and AssertExceptionThrownBug Added Languages\\…

---

## [Shipping a gem with jruby.jar](https://www.ruby-forum.com/t/shipping-a-gem-with-jruby-jar/164009)

<div class="topic-metadata">

**Author:** [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Replies:** 7\
**Last updated:** [March 26, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/shipping-a-gem-with-jruby-jar/164009 "2009-03-26T22:40:54Z")

</div>

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I’d like to do so in a way that doesn’t require installing either ruby or jruby. BTW, googling variants of ruby, gem, and sh…

---

## [Operator precedence of exponentiation (\*\*) and complement (~)](https://www.ruby-forum.com/t/operator-precedence-of-exponentiation-and-complement/163923)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 2\
**Last updated:** [March 26, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/operator-precedence-of-exponentiation-and-complement/163923 "2009-03-26T21:07:33Z")

</div>

The operator precedence table at: The Ruby Language states that the exponentiation operator (\*\*) has higher precedence than the complement operator (~). Ditto for operator precedence in Python. Yet the following prog…

---

## [How to monitor memory consumed by a method?](https://www.ruby-forum.com/t/how-to-monitor-memory-consumed-by-a-method/164004)

<div class="topic-metadata">

**Author:** [@Paganoni](https://www.ruby-forum.com/u/Paganoni)\
**Replies:** 2\
**Last updated:** [March 26, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/how-to-monitor-memory-consumed-by-a-method/164004 "2009-03-26T20:01:39Z")

</div>

Hello, I’ve written a library that handle csv conversion… Files are big, themselves related and the conversion rules needs several hashes. Those data will grow up month after month, so I would like to know how many m…

---

## [Looking for an additional TriSano Core Dev](https://www.ruby-forum.com/t/looking-for-an-additional-trisano-core-dev/164002)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 0\
**Last updated:** [March 26, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/looking-for-an-additional-trisano-core-dev/164002 "2009-03-26T19:32:49Z")

</div>

Please excuse the noise, but we are looking for another TriSano Core Developer. We found our last addition to the team here and he turned out great so I wanted to start here again as we grow our team. Please see attac…

---

## [Silverlight Debug out of the box](https://www.ruby-forum.com/t/silverlight-debug-out-of-the-box/163969)

<div class="topic-metadata">

**Author:** [@Jb\_Evain](https://www.ruby-forum.com/u/Jb_Evain)\
**Replies:** 3\
**Last updated:** [March 26, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/silverlight-debug-out-of-the-box/163969 "2009-03-26T19:21:04Z")

</div>

Hey, Trying to build the «Silverlight Debug» target fails on a fresh checkout. Apparently it’s still trying to use the desktop mscorlib. Anything I missed?

---

## [Using Net/FTP to download a file (FTP Error 550)](https://www.ruby-forum.com/t/using-net-ftp-to-download-a-file-ftp-error-550/163997)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 0\
**Last updated:** [March 26, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/using-net-ftp-to-download-a-file-ftp-error-550/163997 "2009-03-26T18:53:19Z")

</div>

Hey guys, I’m trying to connect to an FTP site and download the remote files. I haven’t done this via Ruby before, so please bear with me. I can connect to the FTP site no problem, but when I try to download the file,…

---

## [Code Review: RuntimeBoundRules](https://www.ruby-forum.com/t/code-review-runtimeboundrules/163917)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [March 26, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/code-review-runtimeboundrules/163917 "2009-03-26T18:17:01Z")

</div>

tfpt review “/shelveset:RuntimeBoundRules;REDMOND\\tomat” Comment : Implements atomizer for Ruby call site binders: A new class RubyMetaBinderFactory creates sites and caches them in dictionaries. Sites are either bo…

---

## [Writing a language converter in Ruby?](https://www.ruby-forum.com/t/writing-a-language-converter-in-ruby/163441)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 10\
**Last updated:** [March 26, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/writing-a-language-converter-in-ruby/163441 "2009-03-26T18:10:33Z")

</div>

Hi, I wonder where to start if I wanted to write a converter from XX language source code to Ruby source code or from Ruby to XX ? Eg. Converting Basic source code to Ruby ? Do I absolutely need to use a tool like Coc…

---

## [400 "Bad Request"](https://www.ruby-forum.com/t/400-bad-request/163973)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 2\
**Last updated:** [March 26, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/400-bad-request/163973 "2009-03-26T17:32:13Z")

</div>

Hi, I’m developing a program to fetch the html contents of a site using ‘net/http’. Everyting works fine except for http://www.youtube.com. When i pass that url an error like this is found /usr/lib/ruby/1.8/net/http.…

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

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