# Ruby

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

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

---

## [BitStruct technique](https://www.ruby-forum.com/t/bitstruct-technique/168013)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 3\
**Last updated:** [May 16, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/bitstruct-technique/168013 "2009-05-16T22:31:43Z")

</div>

While working on a problem this morning I came up with an interesting technique for using the BitStruct gem to produce binary strings. After some hacking around I discovered I didn’t need to use BitStruct at all. Even…

---

## [Acer Aspire 3100 Memory](https://www.ruby-forum.com/t/acer-aspire-3100-memory/168150)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 16, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/acer-aspire-3100-memory/168150 "2009-05-16T21:40:41Z")

</div>

Memory-Up Exclusive 2GB DDR2 SO-DIMM Upgrade for Acer Aspire Notebooks 3100 4520 4920G 5100 5100-3357 Notebook PC2-5300 Computer Memory (RAM) Price:$32.96 Image: http://bestdealfinder.us/image.php?id=B0021OFURQ Best …

---

## [Scite editor issue](https://www.ruby-forum.com/t/scite-editor-issue/168142)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 1\
**Last updated:** [May 16, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/scite-editor-issue/168142 "2009-05-16T21:36:56Z")

</div>

Hi i’m new to ruby on rails and the ruby language. I’ve been following a book i have called beginning ruby and i’m at a point where i’m about to create my first app… however… i can’t get my .rb file to run using the S…

---

## [Which Rack to use with JRuby 1.2.0?](https://www.ruby-forum.com/t/which-rack-to-use-with-jruby-1-2-0/168147)

<div class="topic-metadata">

**Author:** [@nlsmith](https://www.ruby-forum.com/u/nlsmith)\
**Replies:** 0\
**Last updated:** [May 16, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/which-rack-to-use-with-jruby-1-2-0/168147 "2009-05-16T21:24:28Z")

</div>

Moving my project from RoR/MySQL to JRoR/Oracle/JBoss has been really painful! This forum has been a life saver! So, Thanks to those who have answered my questions and on to the next question… I am using JRuby 1.2.0 a…

---

## [Create the war file](https://www.ruby-forum.com/t/create-the-war-file/166268)

<div class="topic-metadata">

**Author:** [@zelo](https://www.ruby-forum.com/u/zelo)\
**Replies:** 4\
**Last updated:** [May 16, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/create-the-war-file/166268 "2009-05-16T20:29:07Z")

</div>

Hi everybody, I am trying to build a new Jruby application thanks to an old ruby application So I modified files environment.rb and database.yml I installed warble but I am not able to create the war file. I obtain …

---

## [Thread priority](https://www.ruby-forum.com/t/thread-priority/167777)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 7\
**Last updated:** [May 16, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/thread-priority/167777 "2009-05-16T17:19:46Z")

</div>

Hi there, Ruby allows to set the thread priority using the priority= method: Thread.new do Thread.current.priority = -1 … blah blah blah … end This is not available in IronRuby because priority maps to the System.…

---

## [SQLite$B%i%$%V%i%j(B](https://www.ruby-forum.com/t/sqlite-b-i-v-i-j-b/168080)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 14\
**Last updated:** [May 16, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/sqlite-b-i-v-i-j-b/168080 "2009-05-16T17:05:42Z")

</div>

æˆç€¬ã§ã™ã€‚ Ruby 1.9ã§SQLiteãƒ©ã‚¤ãƒ–ãƒ©ãƒªã‚’æ¨™æº–æ·»ä»˜ã—ã¾ã›ã‚“ã‹ï¼Ÿ æ—§æ¥ã‹ã‚‰sqlite3-rubyã¨ã„ã†ç‰©ã¯å­˜åœ¨ã—ã¦ã„ã¾ã—ãŸãŒã€ http://rubyforge.org/projects/sqlite-ruby http://sqlite-ruby.rub…

---

## [Mocking with ironruby](https://www.ruby-forum.com/t/mocking-with-ironruby/168020)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [May 16, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/mocking-with-ironruby/168020 "2009-05-16T12:47:18Z")

</div>

Caricature is ready to make it’s first steps into the world. It works with the null object pattern and for CLR interop. I still need to do statics for ruby objects etc. but for instance methods etc it should be fine…

---

## [WTF is nailgun?](https://www.ruby-forum.com/t/wtf-is-nailgun/167918)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 10\
**Last updated:** [May 16, 2009, 11:49am UTC](https://www.ruby-forum.com/t/wtf-is-nailgun/167918 "2009-05-16T11:49:12Z")

</div>

Just saw Charlie’s nailgun post and I am none the wiser. JRuby Nailgun Support in 1.3.0 – Charles Oliver Nutter – Java, Ruby, and JVM guy trying to make sense of it all You guys sometimes act like you live in a bubble.…

---

## [\[Bug #1477\] DL::Function#unbind raises TypeError](https://www.ruby-forum.com/t/bug-1477-dl-function-unbind-raises-typeerror/168122)

<div class="topic-metadata">

**Author:** [@Takashi\_T](https://www.ruby-forum.com/u/Takashi_T)\
**Replies:** 1\
**Last updated:** [May 16, 2009, 11:08am UTC](https://www.ruby-forum.com/t/bug-1477-dl-function-unbind-raises-typeerror/168122 "2009-05-16T11:08:40Z")

</div>

Bug #1477: DL::Function#unbind raises TypeError http://redmine.ruby-lang.org/issues/show/1477 e$B5/I\<\<Te(B: Takashi T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext, Target version: 1.9.2 ruby -v:…

---

## [Rounding any number (int or float) to 3 significant figures](https://www.ruby-forum.com/t/rounding-any-number-int-or-float-to-3-significant-figures/168093)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [May 16, 2009, 11:08am UTC](https://www.ruby-forum.com/t/rounding-any-number-int-or-float-to-3-significant-figures/168093 "2009-05-16T11:08:04Z")

</div>

I have a requirement where i need to display (ie convert to a string) all digits to 3 significant figures. (not the same as 3 decimal places) eg 23 =\> "23" 26759 =\> "26,800" 10.546 =\> "10.5" 3332332 =\> "3,330,000" 0.…

---

## [Pulls needed](https://www.ruby-forum.com/t/pulls-needed/168120)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [May 16, 2009, 9:47am UTC](https://www.ruby-forum.com/t/pulls-needed/168120 "2009-05-16T09:47:11Z")

</div>

Hey there, Due to moving and being sick, I haven’t taken care of pulling in contributions in a while, but I’m ready to do another pull. I’m currently going to be pulling in the following repos: Tim C. Jimmy (via che…

---

## [Code Review: Fix for File.print misbehavior](https://www.ruby-forum.com/t/code-review-fix-for-file-print-misbehavior/168086)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 5\
**Last updated:** [May 16, 2009, 8:32am UTC](https://www.ruby-forum.com/t/code-review-fix-for-file-print-misbehavior/168086 "2009-05-16T08:32:17Z")

</div>

Commit Description: Using the File.print method after the global input record separator had been changed generated a different output than the MRI. For example, consider the next code block: $\\ = “\>\>” file = File.o…

---

## [Ruby based linux](https://www.ruby-forum.com/t/ruby-based-linux/168079)

<div class="topic-metadata">

**Author:** [@azzoti](https://www.ruby-forum.com/u/azzoti)\
**Replies:** 9\
**Last updated:** [May 16, 2009, 8:20am UTC](https://www.ruby-forum.com/t/ruby-based-linux/168079 "2009-05-16T08:20:00Z")

</div>

Hello, I am starting a hobby project which is a Linux distro focused on Ruby. The plan is for it to be a Ubuntu spin, with all the ruby libraries installed by default. I would like to also implement as much ruby base…

---

## [How crub access Self-Signed Certificate website?](https://www.ruby-forum.com/t/how-crub-access-self-signed-certificate-website/168116)

<div class="topic-metadata">

**Author:** [@twtw](https://www.ruby-forum.com/u/twtw)\
**Replies:** 0\
**Last updated:** [May 16, 2009, 6:44am UTC](https://www.ruby-forum.com/t/how-crub-access-self-signed-certificate-website/168116 "2009-05-16T06:44:46Z")

</div>

My Site’s Certificate is Self-Signed. (followed Generating an SSL Certificate with Apache+mod\_ssl the instruction) if I curl https://mysite.com/ will get the error response. according to http://curl.haxx.se/docs/sslce…

---

## [Optimal version of Rails for JRuby on Google App Engine?](https://www.ruby-forum.com/t/optimal-version-of-rails-for-jruby-on-google-app-engine/168094)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [May 16, 2009, 4:51am UTC](https://www.ruby-forum.com/t/optimal-version-of-rails-for-jruby-on-google-app-engine/168094 "2009-05-16T04:51:19Z")

</div>

I read Ola B.'s instructions for integrating JRuby/Rails with Google App Engine but I don’t believe it mentioned which version of Rails works best. Is it possible that some of the more recent Rails versions will not …

---

## [Flat CSV to Relational DB](https://www.ruby-forum.com/t/flat-csv-to-relational-db/75278)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 6\
**Last updated:** [May 16, 2009, 2:25am UTC](https://www.ruby-forum.com/t/flat-csv-to-relational-db/75278 "2009-05-16T02:25:15Z")

</div>

Anyone have any suggestions on pushing a flat CSV file into a relational db? I am currently thinking of a solution working with FasterCSV and ActiveRecord. I picture something like the following, although I’m sure s…

---

## [Re: Code Review: Fix for File.print misbehavior](https://www.ruby-forum.com/t/re-code-review-fix-for-file-print-misbehavior/168107)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/re-code-review-fix-for-file-print-misbehavior/168107 "2009-05-15T23:20:26Z")

</div>

Shay has signed the agreement JD …there is no try Sent from my phone. Please excuse typos and txtspk.

---

## [Looking to hold a "Ruby Dinner" in New Haven, CT on June 1st](https://www.ruby-forum.com/t/looking-to-hold-a-ruby-dinner-in-new-haven-ct-on-june-1st/168104)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/looking-to-hold-a-ruby-dinner-in-new-haven-ct-on-june-1st/168104 "2009-05-15T23:04:01Z")

</div>

Hi folks, With GoRuCo fast approaching, it’s leaving me feeling a bit envious. Though I don’t have the available time to start new\_haven.rb back up, I was thinking of maybe hosting an informal get-together, just for o…

---

## [Obj.attr(qualifier) = value -- possible?](https://www.ruby-forum.com/t/obj-attr-qualifier-value-possible/168099)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 8\
**Last updated:** [May 15, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/obj-attr-qualifier-value-possible/168099 "2009-05-15T22:35:51Z")

</div>

I want to write a method that can be called like this obj.attr(qualifier) = value So far, I don’t see how to achieve this. I’ve tried class C def attr=(qualifier, value) … end end as well as class D def attr(qu…

---

## [ActionMailer-JavaMail Release](https://www.ruby-forum.com/t/actionmailer-javamail-release/168102)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/actionmailer-javamail-release/168102 "2009-05-15T22:22:22Z")

</div>

Hey All, I’m pleased to share with you the ActionMailer-JavaMail gem. ActionMailer-JavaMail adds a delivery method to your Rails application that routes emails via the JavaMail API. In addition to being able to use…

---

## [Imap\_to\_rss 1.0 Released](https://www.ruby-forum.com/t/imap-to-rss-1-0-released/168096)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/imap-to-rss-1-0-released/168096 "2009-05-15T20:19:19Z")

</div>

imap\_to\_rss version 1.0 has been released! http://seattlerb.rubyforge.org/imap\_to\_rss IMAPToRSS turns messages on an IMAP server into RSS entries when the match a handler. Included handlers work for email from Amaz…

---

## [Whaaaaat?](https://www.ruby-forum.com/t/whaaaaat/167824)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 25\
**Last updated:** [May 15, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/whaaaaat/167824 "2009-05-15T19:56:24Z")

</div>

p \[0…5\].include? 0 false p \[0…5\].member? 0 false This is nuts. The world is flat, evidently. Can someone explain this nonsense? t. – Tom C., MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, …

---

## [rSquery 0.1.1](https://www.ruby-forum.com/t/rsquery-0-1-1/168092)

<div class="topic-metadata">

**Author:** [@Ivo\_D](https://www.ruby-forum.com/u/Ivo_D)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/rsquery-0-1-1/168092 "2009-05-15T18:45:19Z")

</div>

Hello all rSquery aims to reduce the difficulties involved in writing selenium tests in cucumber environments for webapps that use jQuery. The project contains several methods to help you with writing javascript comm…

---

## [Enumerable-extra 0.1.0](https://www.ruby-forum.com/t/enumerable-extra-0-1-0/167986)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [May 15, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/enumerable-extra-0-1-0/167986 "2009-05-15T18:01:15Z")

</div>

Hi, Convinced that Symbol#to\_proc is mostly a solution in search of a problem, I’ve released enumerable-extra 0.1.0. = What is it? The enumerable-extra library overrides Enumerable#map, Array#map and Array#map to a…

---

## [JRuby 1.3.0 will include Nailgun](https://www.ruby-forum.com/t/jruby-1-3-0-will-include-nailgun/167919)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 8\
**Last updated:** [May 15, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0-will-include-nailgun/167919 "2009-05-15T16:58:43Z")

</div>

Nailgun is a tool that speeds up Java command startup by punting commands to an always-running “server” JVM. The improvement for JRuby is substantial, with bare-bones startup times improving tenfold. There’s work to b…

---

## [Soap complex type seen as nil](https://www.ruby-forum.com/t/soap-complex-type-seen-as-nil/85022)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/soap-complex-type-seen-as-nil/85022 "2009-05-15T16:39:47Z")

</div>

I can’t figure out how to pass a complex type to a soap call. I thought all you had to do was pass it as a hash, so I could do something like this: result = driver.GetArticle(‘Request’ =\> {‘ArticleId’ =\> ‘20061208’, …

---

## [How to set a SOAP object to nil](https://www.ruby-forum.com/t/how-to-set-a-soap-object-to-nil/123121)

<div class="topic-metadata">

**Author:** [@stevev](https://www.ruby-forum.com/u/stevev)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/how-to-set-a-soap-object-to-nil/123121 "2009-05-15T16:30:25Z")

</div>

Hi, we are using SOAP::WSDLDriverFactory and creating an rpc driver based on a WSDL file. We have a complex type that we want to be able to set to nil or null in the soap request. In order to make this more dynamic …

---

## [Logger question](https://www.ruby-forum.com/t/logger-question/168078)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/logger-question/168078 "2009-05-15T16:23:44Z")

</div>

Without modifying the file logger.rb, is there a way to add a log severity level? For instance, I have a group of counters that I want to output at the end of a script run with a log level of REPORT ala R, \[2009-05-1…

---

## [Tokyo Cabinet win32 Binary](https://www.ruby-forum.com/t/tokyo-cabinet-win32-binary/168077)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/tokyo-cabinet-win32-binary/168077 "2009-05-15T15:42:36Z")

</div>

Hi, Is anyone aware of a win32 binary of tokyo cabinet for use with rufus-tokyo gem, which is stated to run under JRuby. There is mention of a win32 version coming but I cannot find a reference at this time. Thanks …

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

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