# Ruby

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

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

---

## [Code Review: WP7Fix](https://www.ruby-forum.com/t/code-review-wp7fix/190377)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 18, 2010, 8:13pm UTC](https://www.ruby-forum.com/t/code-review-wp7fix/190377 "2010-06-18T20:13:58Z")

</div>

tfpt review “/shelveset:WP7Fix;REDMOND\\tomat” Comment : Avoid referring to DynamicMethod type on Compact Framework. Migrates WinPhone7 app to the LKG4 (.70) build. Tomas

---

## [Shorthand](https://www.ruby-forum.com/t/shorthand/190096)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 13\
**Last updated:** [June 18, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/shorthand/190096 "2010-06-18T18:19:48Z")

</div>

I read this once: Operator ||= can be shorthand for code like: x = “(some fallback value)” unless respond\_to? :x or x How would that look like exactly, in shorthand, any guesses? -r

---

## [Rubyforge =\> Redmine](https://www.ruby-forum.com/t/rubyforge-redmine/190272)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 11\
**Last updated:** [June 18, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/rubyforge-redmine/190272 "2010-06-18T18:14:32Z")

</div>

Hi all - Me and some other folks are looking into switching RubyForge over to use Redmine. If you’d like to help, the migration script is underway here: Or if you think this is a terrible idea, please speak now… T…

---

## [To\_java no longer working? ERROR IN TESTING wrong element type class java.lang.String(array contains](https://www.ruby-forum.com/t/to-java-no-longer-working-error-in-testing-wrong-element-type-class-java-lang-string-array-contains/190298)

<div class="topic-metadata">

**Author:** [@peanutcracker1](https://www.ruby-forum.com/u/peanutcracker1)\
**Replies:** 5\
**Last updated:** [June 18, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/to-java-no-longer-working-error-in-testing-wrong-element-type-class-java-lang-string-array-contains/190298 "2010-06-18T17:18:49Z")

</div>

Hi I am working on expanding someone else’s code and have been working with it for almost a year now. Recently, it just randomly stopped working. I have re installed an older version of java to see if it was that, I …

---

## [Ironruby activerecord sqlserver](https://www.ruby-forum.com/t/ironruby-activerecord-sqlserver/190362)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 2\
**Last updated:** [June 18, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/ironruby-activerecord-sqlserver/190362 "2010-06-18T15:49:14Z")

</div>

Hi all When running this ruby program: require ‘rubygems’ require ‘active\_record’ require ‘yaml’ ActiveRecord::Base.establish\_connection( :adapter =\> ‘sqlserver’, :database =\> ‘xxxxx’, :username =\> ‘sa’, :passwor…

---

## [Assertion error with jruby](https://www.ruby-forum.com/t/assertion-error-with-jruby/190175)

<div class="topic-metadata">

**Author:** [@jahu](https://www.ruby-forum.com/u/jahu)\
**Replies:** 3\
**Last updated:** [June 18, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/assertion-error-with-jruby/190175 "2010-06-18T14:14:29Z")

</div>

Hi all, I just stumbled upon a Java::JavaLang::AssertionError when using my jruby tools. I could rebroduce the error with a minimal example. Can you please have a look and tell me is I am violating Java specs or some…

---

## [Setting IRB Configurations using env variables?](https://www.ruby-forum.com/t/setting-irb-configurations-using-env-variables/190329)

<div class="topic-metadata">

**Author:** [@Narayanan\_K](https://www.ruby-forum.com/u/Narayanan_K)\
**Replies:** 1\
**Last updated:** [June 18, 2010, 9:06am UTC](https://www.ruby-forum.com/t/setting-irb-configurations-using-env-variables/190329 "2010-06-18T09:06:36Z")

</div>

Hi, Suppose I need to have IRB configurations before I invoke IRB like : IRB.conf\[:IGNORE\_EOF\]=true IRB.conf\[:VERBOSE\]=false This can be set in config files such as ~/.irbrc etc… and saved before irb is invoked. B…

---

## [Why, oh why, \_why?](https://www.ruby-forum.com/t/why-oh-why-why/174104)

<div class="topic-metadata">

**Author:** [@Karl\_von\_Laudermann](https://www.ruby-forum.com/u/Karl_von_Laudermann)\
**Replies:** 78\
**Last updated:** [June 18, 2010, 9:04am UTC](https://www.ruby-forum.com/t/why-oh-why-why/174104 "2010-06-18T09:04:10Z")

</div>

\_why the lucky stiff appears to have disappeared from the internets!

---

## [Idiomatic Printing an array with commas](https://www.ruby-forum.com/t/idiomatic-printing-an-array-with-commas/190077)

<div class="topic-metadata">

**Author:** [@cbergy](https://www.ruby-forum.com/u/cbergy)\
**Replies:** 8\
**Last updated:** [June 18, 2010, 5:50am UTC](https://www.ruby-forum.com/t/idiomatic-printing-an-array-with-commas/190077 "2010-06-18T05:50:26Z")

</div>

Hi, I want to print an array (of strings, mostly) with commas separating the elements (so it would look like the result in the irb a =\[one,two,three\] printspecial a # should produce “\[one, two, three\]” not “onetwo…

---

## [Method interface - hash argument vs. named parameters](https://www.ruby-forum.com/t/method-interface-hash-argument-vs-named-parameters/190317)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [June 18, 2010, 5:27am UTC](https://www.ruby-forum.com/t/method-interface-hash-argument-vs-named-parameters/190317 "2010-06-18T05:27:01Z")

</div>

I’ve never run into this issue before, but I’m working on a method interface that is quite ‘dense’, and I need to be able to differentiate between a hash passed to a method and named parameters. i.e. All of these are …

---

## [ZenTest 4.3.3 Released](https://www.ruby-forum.com/t/zentest-4-3-3-released/190343)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 18, 2010, 1:18am UTC](https://www.ruby-forum.com/t/zentest-4-3-3-released/190343 "2010-06-18T01:18:18Z")

</div>

ZenTest version 4.3.3 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools: zentest, unit\_dif…

---

## [Change gem user agent](https://www.ruby-forum.com/t/change-gem-user-agent/190339)

<div class="topic-metadata">

**Author:** [@a708387](https://www.ruby-forum.com/u/a708387)\
**Replies:** 1\
**Last updated:** [June 18, 2010, 12:50am UTC](https://www.ruby-forum.com/t/change-gem-user-agent/190339 "2010-06-18T00:50:12Z")

</div>

How do I change the gem user agent? We are behind a proxy server which does not allow the gem user agent. I checked /usr/lib/ruby/1.8/rubygems/ on Ubuntu. Thanks.

---

## [Dear gem: still no zlib](https://www.ruby-forum.com/t/dear-gem-still-no-zlib/190330)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 15\
**Last updated:** [June 18, 2010, 12:42am UTC](https://www.ruby-forum.com/t/dear-gem-still-no-zlib/190330 "2010-06-18T00:42:00Z")

</div>

I really really regret ever installing SnowLeopard. I’m trying to build some HTML. I’d been using LibXML, but it’s getting seriously anal-retentive on me, escaping stuff that I don’t want escaped and complaining about…

---

## [Problem requiring singleton](https://www.ruby-forum.com/t/problem-requiring-singleton/190332)

<div class="topic-metadata">

**Author:** [@joeonrails](https://www.ruby-forum.com/u/joeonrails)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/problem-requiring-singleton/190332 "2010-06-17T22:32:37Z")

</div>

I have a java class (ClientService.java )where I have this in the main method: ScriptingContainer container = new ScriptingContainer(; container.runScriptlet(“require ‘client’”); container.runScriptlet(“Client.new.ru…

---

## [Serialport won't thread (new to ruby)](https://www.ruby-forum.com/t/serialport-wont-thread-new-to-ruby/190229)

<div class="topic-metadata">

**Author:** [@secesh](https://www.ruby-forum.com/u/secesh)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/serialport-wont-thread-new-to-ruby/190229 "2010-06-17T22:18:03Z")

</div>

def readSerial while 1 puts “reading line from TTY\\n” TTY.read\_timeout=1 lineTTY = TTY.read.unpack(“H\*”) lineTTY.each { |l| if l.sub!(/^0262(\[0-9A-F\]{12})06/i, “”) puts “Got ACK on: #{$1}\\n” #This message is simp…

---

## [Unicode characters are destroyed, but when?](https://www.ruby-forum.com/t/unicode-characters-are-destroyed-but-when/190230)

<div class="topic-metadata">

**Author:** [@trejkaz](https://www.ruby-forum.com/u/trejkaz)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/unicode-characters-are-destroyed-but-when/190230 "2010-06-17T20:36:06Z")

</div>

Hi all. I made a test case as follows. Both of the tests below fail for me on both JRuby 1.3.1 (the version we were previously at) and JRuby 1.5.1 (the version we are at now.) I was about to submit a ticket under Em…

---

## [How to print something with erb?](https://www.ruby-forum.com/t/how-to-print-something-with-erb/189961)

<div class="topic-metadata">

**Author:** [@dominic](https://www.ruby-forum.com/u/dominic)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-print-something-with-erb/189961 "2010-06-17T19:24:09Z")

</div>

Hello, I’m having a problem to output things in the write order with erb1.9 and lighttpd . I don’t know if it’s the normal comportement of erb but this is how it works for me: Content of my ERB file: test{\<%= 1 %\>2\<%…

---

## [License change?](https://www.ruby-forum.com/t/license-change/189634)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 7\
**Last updated:** [June 17, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/license-change/189634 "2010-06-17T19:22:55Z")

</div>

As you probably know, IronRuby is currently licensed under the Microsoft Public License (Microsoft Public License – Open Source Initiative). Occasionally we hear feedback, questions, and a general lack of familiarity a…

---

## [Nothing new in ruby\_core for four days?](https://www.ruby-forum.com/t/nothing-new-in-ruby-core-for-four-days/190154)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 14\
**Last updated:** [June 17, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/nothing-new-in-ruby-core-for-four-days/190154 "2010-06-17T18:10:55Z")

</div>

The Ruby Core forum has no new entry since four days ago. Is it closed, broken ? \_md

---

## [Unicorn 1.0.0 - yes, this is a real project](https://www.ruby-forum.com/t/unicorn-1-0-0-yes-this-is-a-real-project/190292)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/unicorn-1-0-0-yes-this-is-a-real-project/190292 "2010-06-17T17:32:49Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [FYI Code Review: rackrelease-20100616](https://www.ruby-forum.com/t/fyi-code-review-rackrelease-20100616/190323)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/fyi-code-review-rackrelease-20100616/190323 "2010-06-17T17:24:38Z")

</div>

Note: attached diff is scrubbed of most external code (rack, test-spec, Cassini, etc) and sources which have just been renamed, like IronRuby.Rack, as the changes have minimal. Comment : Prepare for IronRuby.Rack “…

---

## [Do I overuse class methods?](https://www.ruby-forum.com/t/do-i-overuse-class-methods/190166)

<div class="topic-metadata">

**Author:** [@MichaSSSSSZajSSSS\_S](https://www.ruby-forum.com/u/MichaSSSSSZajSSSS_S)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 4:51pm UTC](https://www.ruby-forum.com/t/do-i-overuse-class-methods/190166 "2010-06-17T16:51:11Z")

</div>

Hello, I write in ruby for few weeks and I have noticed that in ruby I use class (static) methods more often than in “traditional” languages like java or c#. In java I use instance methods for two purposes - maintain…

---

## [Strange behaviour if exploding parameters](https://www.ruby-forum.com/t/strange-behaviour-if-exploding-parameters/190131)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/strange-behaviour-if-exploding-parameters/190131 "2010-06-17T16:40:19Z")

</div>

Hello! I’ve just happened to find strange behaviour when trying to explode parameters. Why doesn’t it work? irb(main):007:0\> lambda {|\*parameters| \*parameters.class} SyntaxError: compile error (irb):7: syntax error…

---

## [\[Bug #3443\] require$B$,CY$/$J$k(B](https://www.ruby-forum.com/t/bug-3443-require-b-cy-j-k-b/190185)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/bug-3443-require-b-cy-j-k-b/190185 "2010-06-17T16:40:03Z")

</div>

e$B%A%1%C%He(B #3443 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$B%+%F%4%je(B coree$B$K%;%C%He(B e$BC4Ev\<Te(B Yusuke E.e$B$K%;%C%He(B e$B1sF#$G$9!#e(B prepare\_iseq\_build e$B$NCf$Ge(B expand\_path e$B$9$k$N$O3N$+$KCY$=$&…

---

## [Datamapper blues](https://www.ruby-forum.com/t/datamapper-blues/190308)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 13\
**Last updated:** [June 17, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/datamapper-blues/190308 "2010-06-17T16:35:20Z")

</div>

I’m investigating the use of DataMapper to convert an old project with handwritten sql into something a bit more maintainable. Writing the model mappings etc. was quick and easy, then I ran into the following issue: I…

---

## [\[Bug #3345\] webrick test failure on Windows(?)](https://www.ruby-forum.com/t/bug-3345-webrick-test-failure-on-windows/189187)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/bug-3345-webrick-test-failure-on-windows/189187 "2010-06-17T16:35:20Z")

</div>

Bug #3345: webrick test failure on Windows(?) http://redmine.ruby-lang.org/issues/show/3345 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib, Target version: 1.9.2 ruby -…

---

## [Ruby spreadsheet german umlaute](https://www.ruby-forum.com/t/ruby-spreadsheet-german-umlaute/190183)

<div class="topic-metadata">

**Author:** [@zak](https://www.ruby-forum.com/u/zak)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/ruby-spreadsheet-german-umlaute/190183 "2010-06-17T16:35:19Z")

</div>

Hi! I’m having a problem with ruby’s spreadsheet gem. while book = Spreadsheet.open ‘aou/a.xls’ works, book = Spreadsheet.open ‘äöü/a.xls’ does not (both paths exist). is there a solution? regards!

---

## [MySQL Replication Driver & ActiveRecord JDBC - Â³no conne ction availableÂ²](https://www.ruby-forum.com/t/mysql-replication-driver-activerecord-jdbc-a-no-conne-ction-availablea/189927)

<div class="topic-metadata">

**Author:** [@vh1](https://www.ruby-forum.com/u/vh1)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/mysql-replication-driver-activerecord-jdbc-a-no-conne-ction-availablea/189927 "2010-06-17T16:34:42Z")

</div>

Hi, Not sure if this is the best place to ask this question, but I’m trying to get AR-JDBC and a Rails app to use the com.mysql.jdbc.ReplicationDriver and have so far had no success. I’m getting a “no connection avai…

---

## [Placement of require() and missing symbols](https://www.ruby-forum.com/t/placement-of-require-and-missing-symbols/190295)

<div class="topic-metadata">

**Author:** [@Eric\_MSP\_Veith](https://www.ruby-forum.com/u/Eric_MSP_Veith)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/placement-of-require-and-missing-symbols/190295 "2010-06-17T16:34:41Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello List, I’m trying to understand the way Ruby resolves symbol names and how the require statement fits in. I’ll start right away with an example, which comes in two …

---

## [Input/Output to IRB using Pipes](https://www.ruby-forum.com/t/input-output-to-irb-using-pipes/190263)

<div class="topic-metadata">

**Author:** [@Narayanan\_K](https://www.ruby-forum.com/u/Narayanan_K)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/input-output-to-irb-using-pipes/190263 "2010-06-17T16:27:03Z")

</div>

Hi, I have a situation where I need to create a pipe into which I load ruby/irb commands. Then I have to direct input from this pipe to IRB (Interactive Ruby) . Also I will have an output pipe to which the irb resul…

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

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