# Ruby

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

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

---

## [Upgrading gems with native dependencies](https://www.ruby-forum.com/t/upgrading-gems-with-native-dependencies/192626)

<div class="topic-metadata">

**Author:** [@luckydeepak](https://www.ruby-forum.com/u/luckydeepak)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 1:38pm UTC](https://www.ruby-forum.com/t/upgrading-gems-with-native-dependencies/192626 "2010-08-11T13:38:28Z")

</div>

hi, I have installed a gem with a native dependency. eg. have installed the yajl library from: GitHub - lloyd/yajl: A fast streaming JSON parsing library in C. and then have installed yajl-ruby gem: GitHub - brianmar…

---

## [Best XML Parser & advice](https://www.ruby-forum.com/t/best-xml-parser-advice/193081)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 4\
**Last updated:** [August 11, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/best-xml-parser-advice/193081 "2010-08-11T13:30:58Z")

</div>

Hey all, I have identified a file, which is not an XML file however its content represents XML e.g. 127024240930 I have clearly identified in this file where the the tags are however I have a few issues to overcome. …

---

## [Assignment question](https://www.ruby-forum.com/t/assignment-question/193099)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/assignment-question/193099 "2010-08-11T12:38:51Z")

</div>

\#Run this code x=\[2,6,5,9\] y = x puts x puts puts y puts x=\[1,2,3,4\] puts x puts puts y #this also x=\[2,6,5,9\] y = x puts x puts puts y puts x.pop puts x puts puts y I understand the first code, y was…

---

## [Call for favorite Ruby C extensions](https://www.ruby-forum.com/t/call-for-favorite-ruby-c-extensions/191394)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 17\
**Last updated:** [August 11, 2010, 7:34am UTC](https://www.ruby-forum.com/t/call-for-favorite-ruby-c-extensions/191394 "2010-08-11T07:34:04Z")

</div>

Hi For RubySoc I’m working on C-extension support together with Wayne Meissner and I wondered: which gems would people most likely want to see running? I’m currently testing with sqlite, mysql, thin, ruby-xlib, yajl …

---

## [\[ANN\] Inochi 5.0.2](https://www.ruby-forum.com/t/ann-inochi-5-0-2/193097)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [August 11, 2010, 7:02am UTC](https://www.ruby-forum.com/t/ann-inochi-5-0-2/193097 "2010-08-11T07:02:14Z")

</div>

Inochi Gives life to Ruby projects http://snk.tuxfamily.org/lib/inochi/ Inochi is a software project infrastructure for the Ruby programming language. It helps you…

---

## [Rb\_set\_kcode equivalent for 1.9.x](https://www.ruby-forum.com/t/rb-set-kcode-equivalent-for-1-9-x/193089)

<div class="topic-metadata">

**Author:** [@reverri](https://www.ruby-forum.com/u/reverri)\
**Replies:** 0\
**Last updated:** [August 11, 2010, 2:08am UTC](https://www.ruby-forum.com/t/rb-set-kcode-equivalent-for-1-9-x/193089 "2010-08-11T02:08:37Z")

</div>

The C function rb\_set\_kcode was defined in the 1.8.x branch. In the 1.9.x branch, the encoding was overhauled, and all the methods were renamed (without aliasing, it seems.) I use an application than loads the Ruby in…

---

## [Should Kernel.require accept Assembly instances?](https://www.ruby-forum.com/t/should-kernel-require-accept-assembly-instances/192850)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 9\
**Last updated:** [August 11, 2010, 12:32am UTC](https://www.ruby-forum.com/t/should-kernel-require-accept-assembly-instances/192850 "2010-08-11T00:32:37Z")

</div>

What would you all think of having the ability to require a given Assembly? I think this could be useful when compiling code in memory, in which case there isn’t a path to give Kernel.require. If this is something w…

---

## [Rubyscript2exe: adding version, vendor, etc to exe resource](https://www.ruby-forum.com/t/rubyscript2exe-adding-version-vendor-etc-to-exe-resource/193065)

<div class="topic-metadata">

**Author:** [@el-gato](https://www.ruby-forum.com/u/el-gato)\
**Replies:** 1\
**Last updated:** [August 10, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-adding-version-vendor-etc-to-exe-resource/193065 "2010-08-10T23:14:11Z")

</div>

In general on Windows you can interrogate the “resource block” to get the version string, vendor string, etc. of an executable. Does anyone know how I could go about inserting this into a Ruby app that was compile wi…

---

## [JRuby-on-Windows C extension building](https://www.ruby-forum.com/t/jruby-on-windows-c-extension-building/193082)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/jruby-on-windows-c-extension-building/193082 "2010-08-10T22:20:20Z")

</div>

The recently refactored DevKit from the RubyInstaller project is a self-extracting 7-Zip archive (a full-featured installer in in progress) that combines packages from MSys, MinGW, and TDM-GCC with custom install help…

---

## [Basic chat client using eventmachine (I AM A BIG NOOB)](https://www.ruby-forum.com/t/basic-chat-client-using-eventmachine-i-am-a-big-noob/193025)

<div class="topic-metadata">

**Author:** [@angel](https://www.ruby-forum.com/u/angel)\
**Replies:** 1\
**Last updated:** [August 10, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/basic-chat-client-using-eventmachine-i-am-a-big-noob/193025 "2010-08-10T21:16:45Z")

</div>

Hi everybody, I’m try use eventmachine for make a simple chat client…I did the server and works fine but now I wanna do a client, the problem is simple, I’m very noob and I don’t know how send my data to server, actua…

---

## [Changing the spacing in a string?](https://www.ruby-forum.com/t/changing-the-spacing-in-a-string/193067)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 5\
**Last updated:** [August 10, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/changing-the-spacing-in-a-string/193067 "2010-08-10T20:58:56Z")

</div>

Hey guys. I have an array full of strings. When I put the strings, it looks like this gm-notify 0.10.2-1~ppa1 AlexanderHungenberg (2010-05-05)gm-notify 0.9-0~p - Pastebin.com which is okay, but it looks a little slop…

---

## [How I write a JRuby class which implements a Java interface?](https://www.ruby-forum.com/t/how-i-write-a-jruby-class-which-implements-a-java-interface/193080)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 2\
**Last updated:** [August 10, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/how-i-write-a-jruby-class-which-implements-a-java-interface/193080 "2010-08-10T20:54:15Z")

</div>

Hello List, I want to write a JRuby class which implements a Java interface. For example, in Java I might write this: public class MyJavaClass implements MyJavaInterface { // Java code goes here. } Google pointed …

---

## [Re: changing the spacing in a string?](https://www.ruby-forum.com/t/re-changing-the-spacing-in-a-string/193072)

<div class="topic-metadata">

**Author:** [@Joseph\_ESSavard](https://www.ruby-forum.com/u/Joseph_ESSavard)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 7:34pm UTC](https://www.ruby-forum.com/t/re-changing-the-spacing-in-a-string/193072 "2010-08-10T19:34:37Z")

</div>

str = Array.new str \<\< “gm-notify 0.10.2-1~ppa1 AlexanderHungenberg (2010-05-05)” str \<\< “gm-notify 0.9-0~ppa6 TomVetterlein (2009-05-15)” str \<\< “gm-notify 0.10.2-1~ppa1 AlexanderHungenberg (2010-05-13)” …

---

## [Windows stty IRB question](https://www.ruby-forum.com/t/windows-stty-irb-question/192997)

<div class="topic-metadata">

**Author:** [@KellerS\_Robert](https://www.ruby-forum.com/u/KellerS_Robert)\
**Replies:** 4\
**Last updated:** [August 10, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997 "2010-08-10T17:10:34Z")

</div>

I am on windows XP and when I run IRB ruby version 1.8.7-p249 I get a STTY error G:\>irb stty: Unknown mode: g stty: Unknown mode: icrnl irb(main):001:0\> Where can I fix the IRB sty call? Thanks Robert K. x7-562…

---

## [NEWBIE: Ruby & XML](https://www.ruby-forum.com/t/newbie-ruby-xml/193059)

<div class="topic-metadata">

**Author:** [@jeromeqc](https://www.ruby-forum.com/u/jeromeqc)\
**Replies:** 1\
**Last updated:** [August 10, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/newbie-ruby-xml/193059 "2010-08-10T16:52:59Z")

</div>

Hello. I am working with some XML logs coming from a network simulator. My aim is to strip out the transient information concerning any given variable. For example here is some example data: string = \<\<EOF 23 …

---

## [Re: hash](https://www.ruby-forum.com/t/re-hash/193062)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 4:48pm UTC](https://www.ruby-forum.com/t/re-hash/193062 "2010-08-10T16:48:18Z")

</div>

Hi. You cannot store in Java hash map several pairs with the same keys

---

## [London Ruby contractor needed](https://www.ruby-forum.com/t/london-ruby-contractor-needed/193056)

<div class="topic-metadata">

**Author:** [@richfuel](https://www.ruby-forum.com/u/richfuel)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/london-ruby-contractor-needed/193056 "2010-08-10T15:30:27Z")

</div>

I need a ruby contractor for a high profile site in London. Initially 2 months but likely to extend to 6. If you’re interested please email removed\_email\_address@domain.invalid or call Richard on 01926 487487. Skills …

---

## [Modules](https://www.ruby-forum.com/t/modules/193003)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 9\
**Last updated:** [August 10, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/modules/193003 "2010-08-10T14:57:15Z")

</div>

Hi, I don’t understand how to use modules. Could someone explain this to me please ? module Test def yo puts ‘yo’ end end Test.yo # undefined method \`yo’ for Test:Module Mickael.

---

## [Hash](https://www.ruby-forum.com/t/hash/193037)

<div class="topic-metadata">

**Author:** [@destroy](https://www.ruby-forum.com/u/destroy)\
**Replies:** 10\
**Last updated:** [August 10, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/hash/193037 "2010-08-10T14:48:20Z")

</div>

how to repeat key’s?

---

## [\[ANN\] Money 3.1.0.pre2](https://www.ruby-forum.com/t/ann-money-3-1-0-pre2/193051)

<div class="topic-metadata">

**Author:** [@semmons99](https://www.ruby-forum.com/u/semmons99)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/ann-money-3-1-0-pre2/193051 "2010-08-10T14:24:15Z")

</div>

Money 3.1.0.pre2 moved @rounding\_method from Money::bank::VariableExchange to Money::bank::Base (closes #18) added #setup and call after #initialize in Money::bank::Base (closes #19) update/fix documentation (closes #…

---

## [Error when trying to migrate db](https://www.ruby-forum.com/t/error-when-trying-to-migrate-db/193043)

<div class="topic-metadata">

**Author:** [@linuxawy](https://www.ruby-forum.com/u/linuxawy)\
**Replies:** 10\
**Last updated:** [August 10, 2010, 2:20pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-migrate-db/193043 "2010-08-10T14:20:07Z")

</div>

hi, i’m a jruby newcomer and i’m following a tutorial in some practical jruby on rials book the following exception pops up when i try to migrate the database and i dont know how to handle it please help me. Thank yo…

---

## [Problem with db:create](https://www.ruby-forum.com/t/problem-with-db-create/193046)

<div class="topic-metadata">

**Author:** [@upabibi](https://www.ruby-forum.com/u/upabibi)\
**Replies:** 1\
**Last updated:** [August 10, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/problem-with-db-create/193046 "2010-08-10T14:09:28Z")

</div>

When I do the command: db:create:all I got this error: rake aborted! Please install the jdbcpostgresql adapter: gem install activerecord-jdbcpostgresql-adapter (no such file to load – java) I have ruby-dev installed…

---

## [\[ANN\] Detest 3.1.2](https://www.ruby-forum.com/t/ann-detest-3-1-2/193035)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 10:33am UTC](https://www.ruby-forum.com/t/ann-detest-3-1-2/193035 "2010-08-10T10:33:51Z")

</div>

Detest Assertion testing library for Ruby http://snk.tuxfamily.org/lib/detest/ Detest is an assertion testing library for the Ruby programming language. It features a …

---

## [\[ANN\] Inochi 5.0.1](https://www.ruby-forum.com/t/ann-inochi-5-0-1/193032)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 8:58am UTC](https://www.ruby-forum.com/t/ann-inochi-5-0-1/193032 "2010-08-10T08:58:47Z")

</div>

Inochi Gives life to Ruby projects http://snk.tuxfamily.org/lib/inochi/ Inochi is a software project infrastructure for the Ruby programming language. It helps you…

---

## [Is there any human talkable ruby library?](https://www.ruby-forum.com/t/is-there-any-human-talkable-ruby-library/192976)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 11\
**Last updated:** [August 10, 2010, 8:45am UTC](https://www.ruby-forum.com/t/is-there-any-human-talkable-ruby-library/192976 "2010-08-10T08:45:15Z")

</div>

Is there any human talk able(like Eliza ) ruby library? or is there any possible way to integrate eliza with ruby ?

---

## [Rubyhaze - playing with Hazelcast from JRuby](https://www.ruby-forum.com/t/rubyhaze-playing-with-hazelcast-from-jruby/192805)

<div class="topic-metadata">

**Author:** [@cvcomp](https://www.ruby-forum.com/u/cvcomp)\
**Replies:** 4\
**Last updated:** [August 10, 2010, 4:40am UTC](https://www.ruby-forum.com/t/rubyhaze-playing-with-hazelcast-from-jruby/192805 "2010-08-10T04:40:36Z")

</div>

Just launched my first JRuby gem into Github: == rubyhaze JRuby convenience library to connect withÂ Hazelcast. According to the website: Hazelcast is an open source clustering and highly scalable data distribution …

---

## [School teacher still at it learning programming language](https://www.ruby-forum.com/t/school-teacher-still-at-it-learning-programming-language/187954)

<div class="topic-metadata">

**Author:** [@h77bailey](https://www.ruby-forum.com/u/h77bailey)\
**Replies:** 10\
**Last updated:** [August 10, 2010, 3:39am UTC](https://www.ruby-forum.com/t/school-teacher-still-at-it-learning-programming-language/187954 "2010-08-10T03:39:41Z")

</div>

Now I while glimpsing at the beauty of Ruby, there is the software of Rails. I downloaded it from from the c:\\ using gem install rails, then typed in rails mydiary and got a whole lot of create … listing. NOW, how do …

---

## [Clipboard.set\_data](https://www.ruby-forum.com/t/clipboard-set-data/193017)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 0\
**Last updated:** [August 10, 2010, 3:02am UTC](https://www.ruby-forum.com/t/clipboard-set-data/193017 "2010-08-10T03:02:51Z")

</div>

To all those who might run into this … xyz = “abc” Clipboard.set\_data(xyz) will quietly append “\\000”\*i.e. a null char) to xyz upon return. I don’t know if this is by design … but it’s a crappy design.

---

## [Place string into paste buffer?](https://www.ruby-forum.com/t/place-string-into-paste-buffer/192991)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 4\
**Last updated:** [August 10, 2010, 2:42am UTC](https://www.ruby-forum.com/t/place-string-into-paste-buffer/192991 "2010-08-10T02:42:14Z")

</div>

How can I copy a string to Windows paste buffer. A google search of ruby “paste buffer” seems not to have anything relevant. Oh … and is there a way to suck information out of the paste buffer in Ruby?

---

## [Overriding ENV\[\]](https://www.ruby-forum.com/t/overriding-env/193008)

<div class="topic-metadata">

**Author:** [@Jos\_B](https://www.ruby-forum.com/u/Jos_B)\
**Replies:** 2\
**Last updated:** [August 10, 2010, 2:30am UTC](https://www.ruby-forum.com/t/overriding-env/193008 "2010-08-10T02:30:04Z")

</div>

$ cat x #!/usr/bin/env ruby class \<\< ENV define\_method(:\[\], lambda { |v| v.upcase }) end p ENV\[‘FOO’\] $ FOO=foo ./x “FOO” $ But what if I want to call the original ENV\[\] inside the new method?

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

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