# Ruby

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

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

---

## [Iterate over a hash with values containing a array of hashes](https://www.ruby-forum.com/t/iterate-over-a-hash-with-values-containing-a-array-of-hashes/179562)

<div class="topic-metadata">

**Author:** [@m4lloc](https://www.ruby-forum.com/u/m4lloc)\
**Replies:** 3\
**Last updated:** [November 28, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/iterate-over-a-hash-with-values-containing-a-array-of-hashes/179562 "2009-11-28T23:45:17Z")

</div>

Hi I need iterate over a hash with values containing a array of hashes for build a string with comma values I tried tranform this {“F15”=\> \[ {“first”=\>“01” , “last”=\>"" , “data”=\>“ATX”, “Xcode”=\>“F15”, “type”=\>“G\_…

---

## [Ruby internals & other questions](https://www.ruby-forum.com/t/ruby-internals-other-questions/179463)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 16\
**Last updated:** [November 28, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/ruby-internals-other-questions/179463 "2009-11-28T22:22:11Z")

</div>

Is there a document or website that describes how Ruby works? For instance … y=0 1\_000\_000.times {|x| y+=x} (1) Does the block get compiled a million times? (2) What’s the best Ruby way to do a sum from 1 to 1\_000\_0…

---

## [Local variables can't be accessed from outside, right?](https://www.ruby-forum.com/t/local-variables-cant-be-accessed-from-outside-right/179555)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 8\
**Last updated:** [November 28, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/local-variables-cant-be-accessed-from-outside-right/179555 "2009-11-28T22:00:32Z")

</div>

Hi, I’ve been trying to figure out metaprogramming and I’ve mostly got it figured out, but in doing so I ran across this example: class A def initialize @a = 11 @@a = 22 a = 33 end @a = 1 @@a = 2 a = 3 end Th…

---

## [Need help with tunnel connection issue in net-ssh](https://www.ruby-forum.com/t/need-help-with-tunnel-connection-issue-in-net-ssh/179567)

<div class="topic-metadata">

**Author:** [@Delano\_Mandelbaum](https://www.ruby-forum.com/u/Delano_Mandelbaum)\
**Replies:** 0\
**Last updated:** [November 28, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/need-help-with-tunnel-connection-issue-in-net-ssh/179567 "2009-11-28T21:15:28Z")

</div>

Hello! I need some help resolving an issue with running several connections simultaneously through a single tunnel connection. From the bug report: Where I noticed an issue is when utilized a forwarded port created …

---

## [Setting up lib/test/rakefile references for a testing task](https://www.ruby-forum.com/t/setting-up-lib-test-rakefile-references-for-a-testing-task/179566)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 28, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/setting-up-lib-test-rakefile-references-for-a-testing-task/179566 "2009-11-28T19:33:05Z")

</div>

Hey All, I’m trying to set up a set of project folders & a test task for rake & am having trouble figuring out how to let all my code find the other bits of code. My project files & folders are set up like so: /dbi-…

---

## [Kramdown 0.1.0 - first relase of fast, pure Ruby Markdown parser](https://www.ruby-forum.com/t/kramdown-0-1-0-first-relase-of-fast-pure-ruby-markdown-parser/179292)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 3\
**Last updated:** [November 28, 2009, 6:59pm UTC](https://www.ruby-forum.com/t/kramdown-0-1-0-first-relase-of-fast-pure-ruby-markdown-parser/179292 "2009-11-28T18:59:08Z")

</div>

kramdown 0.1.0 released This is the first release of kramdown, yet-another-Markdown parser/converter for Ruby, with the following features: Written in pure Ruby, no need to compile an extension (like BlueCloth or r…

---

## [Windows Pop Up](https://www.ruby-forum.com/t/windows-pop-up/179545)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 8\
**Last updated:** [November 28, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/windows-pop-up/179545 "2009-11-28T18:45:40Z")

</div>

I don’t normally run ruby scripts on my windows machine but in this case, I have one that I need to send a pop up message to the user through the GUI when the script is run. Does anyone have any base code they can sha…

---

## [SQLite and Ruby DLL problem](https://www.ruby-forum.com/t/sqlite-and-ruby-dll-problem/179559)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 7\
**Last updated:** [November 28, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/sqlite-and-ruby-dll-problem/179559 "2009-11-28T18:00:35Z")

</div>

Hello all, I am trying to get Ruby to work with SQLite under Windows. I installed the Sqlite-ruby gem, but whenever I do this: require ‘sqlite’ I get an error saying that sqlite.dll was not found. I have downloade…

---

## [Where is grep?](https://www.ruby-forum.com/t/where-is-grep/179554)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 8\
**Last updated:** [November 28, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/where-is-grep/179554 "2009-11-28T17:36:01Z")

</div>

Hello, I tried to grep from a string, but got wrong. irb(main):010:0\* x = “hello world baby girl” =\> “hello world baby girl” irb(main):011:0\> irb(main):012:0\* irb(main):013:0\* x.grep(/hello/) NoMethodError: undefi…

---

## [Custom Gem Directory with Embedded-ish JRuby](https://www.ruby-forum.com/t/custom-gem-directory-with-embedded-ish-jruby/179561)

<div class="topic-metadata">

**Author:** [@Robert\_Fischer](https://www.ruby-forum.com/u/Robert_Fischer)\
**Replies:** 2\
**Last updated:** [November 28, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/custom-gem-directory-with-embedded-ish-jruby/179561 "2009-11-28T17:33:40Z")

</div>

I’m calling into JRuby as part of my build via org.jruby.Main — is there a way I can specify GEM\_HOME (an environment variable) when I do something like this? Modifying the user’s environment variables is out: I need …

---

## [Able to require pathname?](https://www.ruby-forum.com/t/able-to-require-pathname/179553)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [November 28, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/able-to-require-pathname/179553 "2009-11-28T16:32:49Z")

</div>

For better or worse, this appears to be what 1.9 can do currently a = Pathname.new ‘/a/b/c’ =\> #Pathname:/a/b/c require a LoadError: no such file to load – /a/b/c from (irb):3:in require' from (irb):3 from C:/in…

---

## [Creating certificates and public and private keys](https://www.ruby-forum.com/t/creating-certificates-and-public-and-private-keys/179513)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 5\
**Last updated:** [November 28, 2009, 1:18am UTC](https://www.ruby-forum.com/t/creating-certificates-and-public-and-private-keys/179513 "2009-11-28T01:18:42Z")

</div>

Hi im going to have to create a lot of public and private keys for clients and would like to automate the process by using a script (in ruby of course). This is for an openvpn setup and currently ive been MANUALY crea…

---

## [Change process name](https://www.ruby-forum.com/t/change-process-name/179419)

<div class="topic-metadata">

**Author:** [@AntSSS\_nio\_Alegria](https://www.ruby-forum.com/u/AntSSS_nio_Alegria)\
**Replies:** 1\
**Last updated:** [November 27, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/change-process-name/179419 "2009-11-27T23:58:20Z")

</div>

Hi, How do I rename a JRuby process from all that java … mess into something more like “myapp”? I tried the $0 = “myapp” approach from inside the JRuby process but it didn’t work. I also tried doing exec \[“jruby”, …

---

## [Ruby on Rails Mailing list: http://lists.rubyonrails.org/mailman/listinfo/rails](https://www.ruby-forum.com/t/ruby-on-rails-mailing-list-http-lists-rubyonrails-org-mailman-listinfo-rails/179544)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [November 27, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-mailing-list-http-lists-rubyonrails-org-mailman-listinfo-rails/179544 "2009-11-27T23:13:42Z")

</div>

Is this list dead? I’m trying to join but I’m not getting a response from the list.

---

## [Heatmaps in Ruby](https://www.ruby-forum.com/t/heatmaps-in-ruby/179508)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 4\
**Last updated:** [November 27, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/heatmaps-in-ruby/179508 "2009-11-27T22:04:22Z")

</div>

Hi, I am currently thinking about doing a heatmap for data visualization, but I have very little experience with any type of graphical tools in ruby (like the various SVG libs etc). So I was hoping someone could poin…

---

## [Ruby a good choice for CGI?](https://www.ruby-forum.com/t/ruby-a-good-choice-for-cgi/179471)

<div class="topic-metadata">

**Author:** [@nsputnik](https://www.ruby-forum.com/u/nsputnik)\
**Replies:** 27\
**Last updated:** [November 27, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/ruby-a-good-choice-for-cgi/179471 "2009-11-27T21:23:24Z")

</div>

Ive been messing around with Ruby for a few weeks now, and I’m fairly comfortable with the language itself, but now I want to host a very tiny app on the net, and I’m getting very overwhelmed with the massive array of…

---

## [Load path issues inside jar / external app](https://www.ruby-forum.com/t/load-path-issues-inside-jar-external-app/178327)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 7\
**Last updated:** [November 27, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/load-path-issues-inside-jar-external-app/178327 "2009-11-27T21:18:43Z")

</div>

I’m trying to package some ruby code for running inside spring batch. I’m using the spring dynamic language bean feature to load ruby classes from files on the class path. The problem is these ruby files require othe…

---

## [Suggestion: Pathname#freespace](https://www.ruby-forum.com/t/suggestion-pathname-freespace/179541)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [November 27, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/suggestion-pathname-freespace/179541 "2009-11-27T19:52:27Z")

</div>

Here’s my suggestion: Pathname#freespace # tells you how much freespace is available on that mountpoint Of course java has two different calls–getFreeSpace and getUsableSpace – would it be worth having two here? Any…

---

## [ListViewItem DataTemplate](https://www.ruby-forum.com/t/listviewitem-datatemplate/179469)

<div class="topic-metadata">

**Author:** [@Patrick\_Brown](https://www.ruby-forum.com/u/Patrick_Brown)\
**Replies:** 4\
**Last updated:** [November 27, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/listviewitem-datatemplate/179469 "2009-11-27T18:11:27Z")

</div>

Hello Has anyone gotten a datatemplate for a ListView under WPF? I created a very simple C# sample and converted it to IronRuby, the C# works perfectly, the IronRuby example displays my class name, the datatemplate…

---

## [.NET Remoting with IronRuby 0.9.2](https://www.ruby-forum.com/t/net-remoting-with-ironruby-0-9-2/178807)

<div class="topic-metadata">

**Author:** [@Patrick\_Brown](https://www.ruby-forum.com/u/Patrick_Brown)\
**Replies:** 2\
**Last updated:** [November 27, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/net-remoting-with-ironruby-0-9-2/178807 "2009-11-27T18:02:05Z")

</div>

Hello Has anyone been able to get Remoting to work? I get the following exception when attempting to make a call. I am rather new to IronRuby but believe my code should work, I converted a very simple snippit of w…

---

## [Fft for Ruby?](https://www.ruby-forum.com/t/fft-for-ruby/179516)

<div class="topic-metadata">

**Author:** [@Dalthon\_SBR](https://www.ruby-forum.com/u/Dalthon_SBR)\
**Replies:** 2\
**Last updated:** [November 27, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/fft-for-ruby/179516 "2009-11-27T18:00:54Z")

</div>

Anyone know any library for Ruby that implements low level fft n- dimensional algorithm? Dalthon

---

## [Pattern match to fail if two periods in a row](https://www.ruby-forum.com/t/pattern-match-to-fail-if-two-periods-in-a-row/179521)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 9\
**Last updated:** [November 27, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/pattern-match-to-fail-if-two-periods-in-a-row/179521 "2009-11-27T14:02:51Z")

</div>

Ok … I really tried. And I used http://rubular.com/ (really nice) And I read and reread the pickaxe book section on regular expressions. In other words … I tried. So … How does one create an expression that fails …

---

## [Ruby & Physical Computing](https://www.ruby-forum.com/t/ruby-physical-computing/178894)

<div class="topic-metadata">

**Author:** [@omran\_n](https://www.ruby-forum.com/u/omran_n)\
**Replies:** 4\
**Last updated:** [November 27, 2009, 11:25am UTC](https://www.ruby-forum.com/t/ruby-physical-computing/178894 "2009-11-27T11:25:52Z")

</div>

Hello, I’ll keep this short(ish) and sweet. Can anyone give any advice on possible prototyping kits I can buy for my experiments that can be programmed using Ruby. So far I have found two ideal candidates. Both have …

---

## [jRuby program exiting abruptly](https://www.ruby-forum.com/t/jruby-program-exiting-abruptly/179529)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 1\
**Last updated:** [November 27, 2009, 9:03am UTC](https://www.ruby-forum.com/t/jruby-program-exiting-abruptly/179529 "2009-11-27T09:03:04Z")

</div>

Hi All, I am writing a RTMP client using red5 java apis. What I observe is that after some time by jruby client exits abruptly, none the exit paths that I know of gets executed. The reason for this exit is that I do…

---

## [\[Bug #2405\] Test::Unit.run$B$N\>r7oH=Dj$,5U(B?](https://www.ruby-forum.com/t/bug-2405-test-unit-run-b-n-r7oh-dj-5u-b/179496)

<div class="topic-metadata">

**Author:** [@Sho\_H](https://www.ruby-forum.com/u/Sho_H)\
**Replies:** 1\
**Last updated:** [November 27, 2009, 8:21am UTC](https://www.ruby-forum.com/t/bug-2405-test-unit-run-b-n-r7oh-dj-5u-b/179496 "2009-11-27T08:21:30Z")

</div>

Bug #2405: Test::Unit.rune$B$N\>r7oH=Dj$,5Ue(B? http://redmine.ruby-lang.org/issues/show/2405 e$B5/I\<\<Te(B: Sho H. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) Test::Uni…

---

## [Do the inplace edit without backup file generated](https://www.ruby-forum.com/t/do-the-inplace-edit-without-backup-file-generated/179527)

<div class="topic-metadata">

**Author:** [@Hongyi\_Zhao](https://www.ruby-forum.com/u/Hongyi_Zhao)\
**Replies:** 1\
**Last updated:** [November 27, 2009, 8:20am UTC](https://www.ruby-forum.com/t/do-the-inplace-edit-without-backup-file-generated/179527 "2009-11-27T08:20:55Z")

</div>

Hi all, Can I do the inplace edit without backup file generated by using ruby? Best regards.

---

## [The Best gift for this year christmas day!](https://www.ruby-forum.com/t/the-best-gift-for-this-year-christmas-day/179530)

<div class="topic-metadata">

**Author:** [@Brandfashion](https://www.ruby-forum.com/u/Brandfashion)\
**Replies:** 0\
**Last updated:** [November 27, 2009, 7:10am UTC](https://www.ruby-forum.com/t/the-best-gift-for-this-year-christmas-day/179530 "2009-11-27T07:10:41Z")

</div>

The Best gift for this year christmas day! Designer True religion man jeans and women jeans at (www.mikobrandfashion.org) Save your money asps, 70% off. brand new come with the own bag and tags. Please see it…

---

## [Help with regex](https://www.ruby-forum.com/t/help-with-regex/179522)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 4\
**Last updated:** [November 27, 2009, 2:38am UTC](https://www.ruby-forum.com/t/help-with-regex/179522 "2009-11-27T02:38:31Z")

</div>

Hello everyone. I’m trying to match the following pattern: Text1\\n Text2\\n Text3— Please note that Text3 can contain \\n. I tried using this regex: /(.?)\\n(.?)\\n(.\*?)—/ The pattern matches and I have three matches…

---

## [Net::Telnet - How to send keystrokes like ESC](https://www.ruby-forum.com/t/net-telnet-how-to-send-keystrokes-like-esc/179511)

<div class="topic-metadata">

**Author:** [@rajbabu](https://www.ruby-forum.com/u/rajbabu)\
**Replies:** 2\
**Last updated:** [November 26, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/net-telnet-how-to-send-keystrokes-like-esc/179511 "2009-11-26T21:46:53Z")

</div>

Hi Could you pls let me know how I can send in keystrokes such as ENTER and ESC to a telnet session. I have the session created using Net::Telnet.new().

---

## [Module.nesting strangeness](https://www.ruby-forum.com/t/module-nesting-strangeness/179514)

<div class="topic-metadata">

**Author:** [@alexandremutel](https://www.ruby-forum.com/u/alexandremutel)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/module-nesting-strangeness/179514 "2009-11-26T15:53:40Z")

</div>

Hi, i’m encountering a weird behavior of the Module.nesting methodd. Here is my testcase from the irb: class A class B def test() puts "Module.nesting : " + Module.nesting \* “,” end end end =\> nil b = A::B.ne…

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

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