# Ruby

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

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

---

## [Return in iterator in lambda](https://www.ruby-forum.com/t/return-in-iterator-in-lambda/169368)

<div class="topic-metadata">

**Author:** [@bterkuile](https://www.ruby-forum.com/u/bterkuile)\
**Replies:** 5\
**Last updated:** [June 3, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/return-in-iterator-in-lambda/169368 "2009-06-03T20:19:15Z")

</div>

I want to create a conditional mathematical function as a lambda structure. Therefore it may be the case that inside an iterative loop, the result of the function is known and should be returned. By implementing this …

---

## [Rubygems](https://www.ruby-forum.com/t/rubygems/169338)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 13\
**Last updated:** [June 3, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/rubygems/169338 "2009-06-03T19:42:51Z")

</div>

I have a curious question… My normal install is C:\\Ruby and C:\\Ruby\\bin is located in my windows path. If I do ruby -v (correct version shows) If I do gem -v (correct version shows) If I do gem list (correct list sh…

---

## [Gserver hogging CPU](https://www.ruby-forum.com/t/gserver-hogging-cpu/169385)

<div class="topic-metadata">

**Author:** [@sclaerhout](https://www.ruby-forum.com/u/sclaerhout)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/gserver-hogging-cpu/169385 "2009-06-03T19:33:40Z")

</div>

I’m running a server on Mac OS 10.5.7, Ruby 1.8.6, that’s almost exactly the same as the one in Peter C.'s Beginning Ruby book. When I run the Activity Monitor it shows Ruby is consuming about 98% of one of my CPUs wh…

---

## [\[Bug #1564\] a typo in base64.rb](https://www.ruby-forum.com/t/bug-1564-a-typo-in-base64-rb/169419)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/bug-1564-a-typo-in-base64-rb/169419 "2009-06-03T19:28:03Z")

</div>

Bug #1564: a typo in base64.rb http://redmine.ruby-lang.org/issues/show/1564 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: DOC, Target version: 1.9.x ruby -v: ruby 1.9.2dev (2009…

---

## [Monitoring memory leaks in JRuby](https://www.ruby-forum.com/t/monitoring-memory-leaks-in-jruby/169438)

<div class="topic-metadata">

**Author:** [@chiefgeek](https://www.ruby-forum.com/u/chiefgeek)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/monitoring-memory-leaks-in-jruby/169438 "2009-06-03T19:10:27Z")

</div>

We are having some memory leak issues in our production environment, so I took some memory dumps and I’m trying to evaluate them with MAT(Nick had a great blog post). Its not clear what the jruby java class objects r…

---

## [Goodbye Ruby - Hello Earth](https://www.ruby-forum.com/t/goodbye-ruby-hello-earth/165088)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 169\
**Last updated:** [June 3, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/goodbye-ruby-hello-earth/165088 "2009-06-03T18:08:50Z")

</div>

Hello Fellow Humans, I want to keep this short, but I could write a book if I wanted to. I am the author of DRP a relatively unpopular and decaying GEM. I am not a very frequent poster to the list and not a particul…

---

## [PacketFu troubles](https://www.ruby-forum.com/t/packetfu-troubles/169422)

<div class="topic-metadata">

**Author:** [@nathanael](https://www.ruby-forum.com/u/nathanael)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/packetfu-troubles/169422 "2009-06-03T16:23:57Z")

</div>

hello, I’ve got a lot of trouble with PacketFu (from Google Code Archive - Long-term storage for Google Code Project Hosting.).All I wanted to do was a bit of network sniffing but everytime I want to use packetfu I ge…

---

## [Convert 2D array to cute text table with | pipes?](https://www.ruby-forum.com/t/convert-2d-array-to-cute-text-table-with-pipes/169348)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/convert-2d-array-to-cute-text-table-with-pipes/169348 "2009-06-03T14:26:02Z")

</div>

Ruboids: I have only started googling I will report back here what I find or write. Does anyone have a code snippet which reads a 2D array and outputs a cute formatted text table, like this? | concept | …

---

## [Compile Error: ldap.c:424: error: â€˜LDAP\_OP T\_X\_TLS\_PROTOCOLâ€™ undeclared (first use in this fun](https://www.ruby-forum.com/t/compile-error-ldap-c-error-a-ldap-op-t-x-tls-protocola-undeclared-first-use-in-this-fun/169381)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 11:02am UTC](https://www.ruby-forum.com/t/compile-error-ldap-c-error-a-ldap-op-t-x-tls-protocola-undeclared-first-use-in-this-fun/169381 "2009-06-03T11:02:31Z")

</div>

root@leopard:~/libldap-ruby-0.9.7# make gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I. -DUSE\_OPENLDAP2 -DUSE\_OPENLDAP -DLDAP\_DEPRECATED -D\_REENTRANT -DHAVE\_LDAP\_H -DHAVE\_LBER\_H -DHAVE\_LDAP\_INIT -DHAVE\_LDAP\_SET\_…

---

## [Autotest-rails 4.1.0 Released](https://www.ruby-forum.com/t/autotest-rails-4-1-0-released/169403)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 10:27am UTC](https://www.ruby-forum.com/t/autotest-rails-4-1-0-released/169403 "2009-06-03T10:27:18Z")

</div>

autotest-rails version 4.1.0 has been released! http://rubyforge.org/projects/zentest This is an autotest plugin to provide rails support. It provides basic rails support and extra plugins for migrations and fixtures…

---

## [Win32-process on jruby](https://www.ruby-forum.com/t/win32-process-on-jruby/169400)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 9:33am UTC](https://www.ruby-forum.com/t/win32-process-on-jruby/169400 "2009-06-03T09:33:36Z")

</div>

hello does any know how to install win32 gem in jruby i am getting an error thanks anyway

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/169397)

<div class="topic-metadata">

**Author:** [@Scott\_Yao](https://www.ruby-forum.com/u/Scott_Yao)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 9:12am UTC](https://www.ruby-forum.com/t/no-subject/169397 "2009-06-03T09:12:31Z")

</div>

unsubscribe

---

## [Ruby 1.9 splat in return statement, bug or feature?](https://www.ruby-forum.com/t/ruby-1-9-splat-in-return-statement-bug-or-feature/85880)

<div class="topic-metadata">

**Author:** [@pfharlock](https://www.ruby-forum.com/u/pfharlock)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 8:30am UTC](https://www.ruby-forum.com/t/ruby-1-9-splat-in-return-statement-bug-or-feature/85880 "2009-06-03T08:30:27Z")

</div>

What’s going on with splat in 1.9? $ ruby -e ‘def foo; return \*\[1\]; end; p foo’ 1 $ ruby-1.9 -e ‘def foo; return \*\[1\]; end; p foo’ \[1\] Gary W.

---

## [JRuby stuff on CafePress](https://www.ruby-forum.com/t/jruby-stuff-on-cafepress/169390)

<div class="topic-metadata">

**Author:** [@Hirotsugu\_A](https://www.ruby-forum.com/u/Hirotsugu_A)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 7:50am UTC](https://www.ruby-forum.com/t/jruby-stuff-on-cafepress/169390 "2009-06-03T07:50:52Z")

</div>

I have a few questions. Who’s in charge of JRuby products on CafePress? Seeing that there is a JIRA ticket (http://jira.codehaus.org/browse/JRUBY-3347), I assume it is official. Is anyone buying? Where does the mone…

---

## [Slides from Hacking JRuby talk](https://www.ruby-forum.com/t/slides-from-hacking-jruby-talk/169388)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 7:13am UTC](https://www.ruby-forum.com/t/slides-from-hacking-jruby-talk/169388 "2009-06-03T07:13:20Z")

</div>

Hey, You can now find the slides for my talk Hacking JRuby at JavaOne at http://dist.codehaus.org/jruby/dist/HackingJRuby.pdf Cheers – Ola B. (http://olabini.com) Ioke creator (http://ioke.org) JRuby Core Develope…

---

## [Do I need self in this method definition](https://www.ruby-forum.com/t/do-i-need-self-in-this-method-definition/169382)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 5:40am UTC](https://www.ruby-forum.com/t/do-i-need-self-in-this-method-definition/169382 "2009-06-03T05:40:45Z")

</div>

Hello everyone, I have two hashes. They have the same keys but different or the same values. I want to loop through one hash and print out the values in both hashes for the same key.I add a method to class Hash. …

---

## [Code Review: AstGen1](https://www.ruby-forum.com/t/code-review-astgen1/169383)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 4:45am UTC](https://www.ruby-forum.com/t/code-review-astgen1/169383 "2009-06-03T04:45:47Z")

</div>

tfpt review “/shelveset:AstGen1;REDMOND\\tomat” Comment : Refactors AstGenerator so that we can use its new instance for each compiled method. This is a preparation for lazy method compilation. Tomas

---

## [Question about embedding ruby 1.9 and handling exceptions](https://www.ruby-forum.com/t/question-about-embedding-ruby-1-9-and-handling-exceptions/169379)

<div class="topic-metadata">

**Author:** [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 2:44am UTC](https://www.ruby-forum.com/t/question-about-embedding-ruby-1-9-and-handling-exceptions/169379 "2009-06-03T02:44:00Z")

</div>

I’m embedding ruby 1.9, and so far everything works almost ok: there is a problem with the exception handling when one is raised from code evaluated in ruby code (or ruby-c code) referenced from plain-c code. I’ll try…

---

## [Error While Install Gem](https://www.ruby-forum.com/t/error-while-install-gem/169364)

<div class="topic-metadata">

**Author:** [@nabusman](https://www.ruby-forum.com/u/nabusman)\
**Replies:** 7\
**Last updated:** [June 3, 2009, 2:25am UTC](https://www.ruby-forum.com/t/error-while-install-gem/169364 "2009-06-03T02:25:52Z")

</div>

I am trying to install Mechanize on a WinXP machine, and I am getting this error: ERROR: Failed to build gem native extension ruby extconf.rb install mechanize extconf.rb:3:in \`\`’: No such file or directory - uname -…

---

## [Hoe 2.0.0 Released](https://www.ruby-forum.com/t/hoe-2-0-0-released/169377)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 1:47am UTC](https://www.ruby-forum.com/t/hoe-2-0-0-released/169377 "2009-06-03T01:47:53Z")

</div>

hoe version 2.0.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a rake/rubygems helper for project Rakefiles. It helps gene…

---

## [Code Review: VisibilityFixes1](https://www.ruby-forum.com/t/code-review-visibilityfixes1/169375)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 12:23am UTC](https://www.ruby-forum.com/t/code-review-visibilityfixes1/169375 "2009-06-03T00:23:03Z")

</div>

tfpt review “/shelveset:VisibilityFixes1;REDMOND\\tomat” Fixes bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1184: public(:foo) does not work correctly for mixed-in methods http://ironruby.codeplex.…

---

## [My rubygems is completely broken (EOFErrors)](https://www.ruby-forum.com/t/my-rubygems-is-completely-broken-eoferrors/169298)

<div class="topic-metadata">

**Author:** [@Doug\_McBride](https://www.ruby-forum.com/u/Doug_McBride)\
**Replies:** 6\
**Last updated:** [June 3, 2009, 12:21am UTC](https://www.ruby-forum.com/t/my-rubygems-is-completely-broken-eoferrors/169298 "2009-06-03T00:21:16Z")

</div>

Here’s my environment followed by what I’m seeing. I dug into the code and found out that the “bad URI” it’s complaining about is nil, which is indeed pretty bad for a URI. I’ve searched for an answer in vain. I’ve…

---

## [MagickWand for Ruby 0.1.0](https://www.ruby-forum.com/t/magickwand-for-ruby-0-1-0/169300)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 2\
**Last updated:** [June 2, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/magickwand-for-ruby-0-1-0/169300 "2009-06-02T23:44:55Z")

</div>

I’ve just uploaded the first beta release of MagickWand for Ruby, my new binding to ImageMagick. MagickWand for Ruby is a complete rethinking of RMagick. I call it “RMagick rebooted.” MagickWand for Ruby objects are m…

---

## [\<, \>, and ranges in a case statement](https://www.ruby-forum.com/t/and-ranges-in-a-case-statement/169326)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 15\
**Last updated:** [June 2, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/and-ranges-in-a-case-statement/169326 "2009-06-02T23:29:05Z")

</div>

I feel like this should be simple but i can’t figure it out. In a case statement, i know how to use ranges to compare against the given variable. But how do i use \< or \> ? eg i want to do this: age = 25 category = …

---

## [Something Not going with my LDAP using SSL](https://www.ruby-forum.com/t/something-not-going-with-my-ldap-using-ssl/168878)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 20\
**Last updated:** [June 2, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/something-not-going-with-my-ldap-using-ssl/168878 "2009-06-02T21:09:29Z")

</div>

I have the following working with cleartext LDAP: #!/usr/bin/ruby require ‘ldap’ begin ldap\_host = ‘myldaphost’ ldap\_port = 389 ldap\_conn = LDAP::Conn.new(ldap\_host,ldap\_port) puts “trace 2 ldap\_conn: #{ldap\_con…

---

## [Threadify not handling hashes inside of array correctly](https://www.ruby-forum.com/t/threadify-not-handling-hashes-inside-of-array-correctly/168929)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 1\
**Last updated:** [June 2, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/threadify-not-handling-hashes-inside-of-array-correctly/168929 "2009-06-02T20:39:24Z")

</div>

I wanted to use threadify to iterate over my data structure, where inside array I have hashes, but it seems that threadify produces different results than #each. Here is code sample: require ‘threadify’ a = \[\] b = …

---

## [Proc in ruby 1.8.6 and 1.8.7](https://www.ruby-forum.com/t/proc-in-ruby-1-8-6-and-1-8-7/169347)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 1\
**Last updated:** [June 2, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/proc-in-ruby-1-8-6-and-1-8-7/169347 "2009-06-02T19:13:10Z")

</div>

In Ruby 1.8.7 it is possible to do such thing: pr = Proc.new do |arg, &block| block.call end pr.call(123) do puts “xyz” end xyz =\> nil When calling proc another block can be given as parameter. Is there any way t…

---

## [Code Review: ClrInteropBugFixes](https://www.ruby-forum.com/t/code-review-clrinteropbugfixes/169303)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [June 2, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/code-review-clrinteropbugfixes/169303 "2009-06-02T18:29:14Z")

</div>

tfpt review “/shelveset:ClrInteropBugFixes;REDMOND\\tomat” Simple DLR changes Ruby bug fixes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1345: load\_assembly(\<partial\_name\>) should work http://ironruby…

---

## [Lose 45 lbs in just 30 days easily!](https://www.ruby-forum.com/t/lose-45-lbs-in-just-30-days-easily/169345)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/lose-45-lbs-in-just-30-days-easily/169345 "2009-06-02T18:11:03Z")

</div>

Lose 45 lbs in just 30 days easily ! Lady Doctor Gets Death Threats for Revealing TOP SECRET Fat Loss Secret to General Public! New Breakthrough Secret discovered by lady doctor has other doctors baffled! Find out h…

---

## [Failing tests from Mechanize gem](https://www.ruby-forum.com/t/failing-tests-from-mechanize-gem/169342)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [June 2, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/failing-tests-from-mechanize-gem/169342 "2009-06-02T17:56:22Z")

</div>

Chaps, I’m using the Mechanize gem and it’s all good. However there are some tests that fail within /lib/ruby/gems/1.9.1/gems/mechanize-0.9.2/test/. Nothing too major at the mo, just stuff about radio buttons. In the …

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

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