# Ruby

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

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

---

## [Re: Rake Regression](https://www.ruby-forum.com/t/re-rake-regression/142227)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/re-rake-regression/142227 "2008-07-04T20:45:37Z")

</div>

What version of the git repos is this? I did some fixes last night that should fix some of the failures.

---

## [Rake Regression](https://www.ruby-forum.com/t/rake-regression/142229)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/rake-regression/142229 "2008-07-04T20:08:41Z")

</div>

Is the regression supposed to pass with 100%? I get 1 fail and 20 errors (r121): D:\\dev\\ruby\\ironruby\\head\>rake regression (in D:/dev/ruby/ironruby/head) array: 71 files, 485 examples, 1592 expectations, 0 failures…

---

## [Stored Procedure + sql server 2005 + insertion](https://www.ruby-forum.com/t/stored-procedure-sql-server-2005-insertion/142198)

<div class="topic-metadata">

**Author:** [@sumantacaptain](https://www.ruby-forum.com/u/sumantacaptain)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/stored-procedure-sql-server-2005-insertion/142198 "2008-07-04T18:05:36Z")

</div>

hi… can any body help me? i want to insert data into sql server(2005)database… i have a int value to pass… how can i send it to the stored procedure … here IndID is the integer value but when i want to pass it… it i…

---

## [Thoughts on a more generic Array#partition function](https://www.ruby-forum.com/t/thoughts-on-a-more-generic-array-partition-function/142068)

<div class="topic-metadata">

**Author:** [@Rudi\_C](https://www.ruby-forum.com/u/Rudi_C)\
**Replies:** 15\
**Last updated:** [July 4, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/thoughts-on-a-more-generic-array-partition-function/142068 "2008-07-04T17:35:08Z")

</div>

An experiment in a more generic partition function. The current Array#partition function takes a code block and interprets the result in a boolean way to create two lists. What if the user wants to create more than …

---

## [How to install/use ruby and tk on winxp?](https://www.ruby-forum.com/t/how-to-install-use-ruby-and-tk-on-winxp/82901)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 8\
**Last updated:** [July 4, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/how-to-install-use-ruby-and-tk-on-winxp/82901 "2008-07-04T16:27:14Z")

</div>

Hello Im a newby with ruby. Im trying to do some user interface with tk. I have Ruby 1.8.5-21 and it’s working fine. I also installed activestate tcl 8.5.0.0 beta-6. From there on, I don’t really know how to bind Rub…

---

## [Pseudo-randomize an array in a consistent order](https://www.ruby-forum.com/t/pseudo-randomize-an-array-in-a-consistent-order/142119)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 23\
**Last updated:** [July 4, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/pseudo-randomize-an-array-in-a-consistent-order/142119 "2008-07-04T13:56:16Z")

</div>

Does anyone know how to pseudo-randomize an array (eg with a seed) so that you get the same order every time you do it? thanks max

---

## [Deadlock detection for 1.9](https://www.ruby-forum.com/t/deadlock-detection-for-1-9/140080)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 13\
**Last updated:** [July 4, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/deadlock-detection-for-1-9/140080 "2008-07-04T12:59:55Z")

</div>

é è—¤ã§ã™ã€‚ 1.9 ã®ã‚¹ãƒ¬ãƒƒãƒ‰ã«ãƒ‡ãƒƒãƒ‰ãƒ­ãƒƒã‚¯æ¤œå‡ºã‚’å®Ÿè£…ã—ã¦ã¿ã¾ã—ãŸã€‚ $ ./ruby -e ‘Thread.new { Thread.stop }; Thread.stop’ -e:1:in stop': deadlock detected (fatal) from -e:1:in’ ã¡ã‚‡ã£ã¨ã…

---

## [Ranges and Enumerable problems](https://www.ruby-forum.com/t/ranges-and-enumerable-problems/142015)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 23\
**Last updated:** [July 4, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/ranges-and-enumerable-problems/142015 "2008-07-04T12:58:09Z")

</div>

Okay so when I play with “!”…"~" wrong things happen. ("!"…"~").include?(“W”) true ("!.."~").include?(" ") false so far so good, however. ("!"…"~").each do |c| puts c end ! " $ % & ’ ( ) \* + , . / 0 …

---

## [Webrick + threadify issue](https://www.ruby-forum.com/t/webrick-threadify-issue/142196)

<div class="topic-metadata">

**Author:** [@ddirk](https://www.ruby-forum.com/u/ddirk)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/webrick-threadify-issue/142196 "2008-07-04T12:50:18Z")

</div>

Hi, the attached stresstest works without problems on mri (1.8.5), but throws the following error on the first request: jruby-1.1.2$ jruby websrv.rb \[2008-07-04 12:33:37\] INFO WEBrick 1.3.1 \[2008-07-04 12:33:37\] I…

---

## [Tk Table and Rails](https://www.ruby-forum.com/t/tk-table-and-rails/141726)

<div class="topic-metadata">

**Author:** [@ponravikumar](https://www.ruby-forum.com/u/ponravikumar)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 8:21am UTC](https://www.ruby-forum.com/t/tk-table-and-rails/141726 "2008-07-04T08:21:00Z")

</div>

Hi, I want to use the TkTable in Rails application. For the tables in HTML editing and add the flash mode are not possible. I want to use these functionalities in my rails application. How do I achieve it. If any o…

---

## [How to duplicate elements in array?](https://www.ruby-forum.com/t/how-to-duplicate-elements-in-array/142153)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 6\
**Last updated:** [July 4, 2008, 3:21am UTC](https://www.ruby-forum.com/t/how-to-duplicate-elements-in-array/142153 "2008-07-04T03:21:28Z")

</div>

Hi, something I couldn’t quite figure out (sorry for posting so soon after my last question)… a = \[\[“ABC”, “30”, “1”\]\] I want to duplicate/copy the element. This is what I’m trying to get: a2 = \[\[“ABC”, “30”, “1”\], …

---

## [Extract local variables from a block?](https://www.ruby-forum.com/t/extract-local-variables-from-a-block/142169)

<div class="topic-metadata">

**Author:** [@jfrench](https://www.ruby-forum.com/u/jfrench)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 2:35am UTC](https://www.ruby-forum.com/t/extract-local-variables-from-a-block/142169 "2008-07-04T02:35:50Z")

</div>

Is it possible to extract local variables from within a block, while standing outside said block? Here’s an example which might illustrate what I’m trying to do: def local\_vars\_from(&block) eval(‘local\_variables’, bl…

---

## [Running every file](https://www.ruby-forum.com/t/running-every-file/142168)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 2:02am UTC](https://www.ruby-forum.com/t/running-every-file/142168 "2008-07-04T02:02:17Z")

</div>

Hi, I need to open every file in the folder matching the same pattern… basically, open every file matching “report” in folder Thanks!

---

## [Keyboard events](https://www.ruby-forum.com/t/keyboard-events/142162)

<div class="topic-metadata">

**Author:** [@fw59](https://www.ruby-forum.com/u/fw59)\
**Replies:** 3\
**Last updated:** [July 4, 2008, 12:25am UTC](https://www.ruby-forum.com/t/keyboard-events/142162 "2008-07-04T00:25:48Z")

</div>

Hallo again people, Im trying to write a script, which shall outputs data when a button from the keyboard is pressed. Only the button, without pressing . I was searching in the gems-list, but i did not find the right…

---

## [How to wrap text in an Excel cell?](https://www.ruby-forum.com/t/how-to-wrap-text-in-an-excel-cell/142028)

<div class="topic-metadata">

**Author:** [@leshak](https://www.ruby-forum.com/u/leshak)\
**Replies:** 4\
**Last updated:** [July 3, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/how-to-wrap-text-in-an-excel-cell/142028 "2008-07-03T23:56:44Z")

</div>

Hello, could you pls suggest how i can wrap text in Excel cell (row, column also)? I’m using win32ole library for working with excel format. Thanks.

---

## [OT: Charlie's Twitters](https://www.ruby-forum.com/t/ot-charlies-twitters/142144)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/ot-charlies-twitters/142144 "2008-07-03T23:50:05Z")

</div>

Hi, Just wanted to thank Charles for the twitters. I enjoyed the recent trip to Japan. Made me feel quite nostalgic. I’m not quite sure where twitter will end up being useful, but it certainly is a medium that has it…

---

## [Statistician I (#167)](https://www.ruby-forum.com/t/statistician-i-167/142132)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 3\
**Last updated:** [July 3, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/statistician-i-167/142132 "2008-07-03T22:31:37Z")

</div>

The heart of this problem, as suggested in the quiz description, is pattern matching. Essentially, we want to turn user-created rules into Ruby regular expressions, or at least some other method for comparing data ag…

---

## [Lost with OptionParser](https://www.ruby-forum.com/t/lost-with-optionparser/142061)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 7\
**Last updated:** [July 3, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/lost-with-optionparser/142061 "2008-07-03T22:05:13Z")

</div>

I’m having a real problem understanding OptionParser – the docs in pickaxe are rather cryptic, Ruby Way doesn’t even talk about it, and all the Q&A I can find on the web doesn’t clear it up for me. I’ve gotten this fa…

---

## [Is this a YAML problem, and How do I fix it?](https://www.ruby-forum.com/t/is-this-a-yaml-problem-and-how-do-i-fix-it/142146)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/is-this-a-yaml-problem-and-how-do-i-fix-it/142146 "2008-07-03T21:36:05Z")

</div>

I was doing my merry thing, slowly learning ralis by doing some tutorials, and then this happened: =\> Ctrl-C to shutdown server \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Starting Rails with development environ…

---

## [Beginner: Add/merge arrays](https://www.ruby-forum.com/t/beginner-add-merge-arrays/142141)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 2\
**Last updated:** [July 3, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/beginner-add-merge-arrays/142141 "2008-07-03T21:10:18Z")

</div>

Hi, just started working with Ruby (and, well, programming in general :-)… I have two arrays in Ruby that I’d like to merge: Array 1: \[“7.99”, “6.99”, “10.99”, “5.97”\] Array 2: \[\[“A”, “5”\], \[“B”, “5”\], \[“C”, “4”\], …

---

## [HOME and USERPROFILE aliasing under Windows](https://www.ruby-forum.com/t/home-and-userprofile-aliasing-under-windows/141954)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 6\
**Last updated:** [July 3, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/home-and-userprofile-aliasing-under-windows/141954 "2008-07-03T21:00:41Z")

</div>

MRI currently expects the HOME environment variable to be set under Windows. Various operations involving ~ and Dir will fail if HOME is not defined. However, HOME is rarely defined under Windows by default. Instead …

---

## [Mac OS X 10.5.4 - no new Ruby?](https://www.ruby-forum.com/t/mac-os-x-10-5-4-no-new-ruby/141951)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 7\
**Last updated:** [July 3, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/mac-os-x-10-5-4-no-new-ruby/141951 "2008-07-03T20:50:45Z")

</div>

The Mac OS X 10.5.4 update came out yesterday, but it did not update the installed Ruby to 1.8.7. I thought the idea that this sort of thing would happen was part of the promise of keeping Ruby in a system library fra…

---

## [Embedded usage message, ascii terminal output, markup](https://www.ruby-forum.com/t/embedded-usage-message-ascii-terminal-output-markup/142073)

<div class="topic-metadata">

**Author:** [@smprather](https://www.ruby-forum.com/u/smprather)\
**Replies:** 2\
**Last updated:** [July 3, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/embedded-usage-message-ascii-terminal-output-markup/142073 "2008-07-03T20:49:18Z")

</div>

Hi everybody– I’m trying to do something I thought would be simple. I’m trying to do what Perl’s Pod::Usage can do. How do I embed a usage message and mark up a word I want to be bold, such that when it renders to a …

---

## [Install/Enable openssl for ruby 1.8.6?](https://www.ruby-forum.com/t/install-enable-openssl-for-ruby-1-8-6/142062)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 11\
**Last updated:** [July 3, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-ruby-1-8-6/142062 "2008-07-03T20:20:47Z")

</div>

I was trying to install Redmine on rails 2.0.2 (this is not a rails question) and I received the following error message: no such file to load – openssl I went to /ruby-1.8.6/ext/openssl and typed make and received th…

---

## [Likely bug in Mechanize 0.7.6](https://www.ruby-forum.com/t/likely-bug-in-mechanize-0-7-6/142087)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 2\
**Last updated:** [July 3, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/likely-bug-in-mechanize-0-7-6/142087 "2008-07-03T20:17:15Z")

</div>

I was trying to use Mechanize when it kept throwing an exception at me. After trying to debug it, I found this code snippet starting at line 441 of mechanize.rb: url = ((base && base.uri && base.uri.absolute?) ? bas…

---

## [Unhandled listen loop exception - InstantRails 2.0](https://www.ruby-forum.com/t/unhandled-listen-loop-exception-instantrails-2-0/142136)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/unhandled-listen-loop-exception-instantrails-2-0/142136 "2008-07-03T19:31:28Z")

</div>

Greetings, I’ve downloaded InstantRails 2.0. Run it (with default server and dbase) Created new project, run “Start with Mongrel” and tried to access it through http://localhost:port/ Unfortunatelly It returns: Un…

---

## [NUM2xxx](https://www.ruby-forum.com/t/num2xxx/128675)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [July 3, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/num2xxx/128675 "2008-07-03T19:27:22Z")

</div>

e$B$U$He(B NUM2xxx e$B$,\<u$1IU$1$kCM$NHO0O$rD4$Y$?$s$G$9$,!"e(Bunsigned e$B$J$N$,Ii$NCM$r\<u$1IU$1$k$N$C$F$=$&$$$&$b$N$J$s$G$7$?$C$1e(B? int = long = 32bit, long long = 64bit e$B$J4D6-e(B NUM2INT: -0x80000000 … …

---

## [Rawr install error](https://www.ruby-forum.com/t/rawr-install-error/142134)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/rawr-install-error/142134 "2008-07-03T19:25:36Z")

</div>

Greetings, using: rawr install -d path\_to\_project gives following output: rawr.rb:133: uninitialized constant Rawr::Generator(NameError) Any suggestions ?? Thank You

---

## [Check version](https://www.ruby-forum.com/t/check-version/142123)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [July 3, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/check-version/142123 "2008-07-03T19:20:39Z")

</div>

How do I check what version of Ruby I have, besides ruby -v? I’m trying to figure out what version of 1.8.6 I have.

---

## [Logging 0.8.0](https://www.ruby-forum.com/t/logging-0-8-0/142131)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/logging-0-8-0/142131 "2008-07-03T18:58:36Z")

</div>

logging version 0.8.0 by Tim P. http://logging.rubyforge.org/ == DESCRIPTION Logging is a flexible logging library for use in Ruby programs based on the design of Java’s log4j library. It features a hierarchical lo…

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

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