# Ruby

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

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

---

## [Filtering blocks](https://www.ruby-forum.com/t/filtering-blocks/155136)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 1\
**Last updated:** [December 8, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/filtering-blocks/155136 "2008-12-08T17:35:19Z")

</div>

Is it possible to filter blocks, online, in an elegant way? for instance if I have the block class Integer def divisors (1…self).each{ |i| yield i if self % i == 0 } end end and I want to pass this block through a…

---

## [Proximity searches in Ruby](https://www.ruby-forum.com/t/proximity-searches-in-ruby/154948)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 13\
**Last updated:** [December 8, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/proximity-searches-in-ruby/154948 "2008-12-08T15:57:52Z")

</div>

Does Ruby have the ability to perform proximity searches on data. For example find the word “hello” and the word “world” within 10 words of eachother and print out some data? Thanks a lot

---

## [Invalid byte sequence by pack format 'A' or 'a'](https://www.ruby-forum.com/t/invalid-byte-sequence-by-pack-format-a-or-a/154911)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 3\
**Last updated:** [December 8, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/invalid-byte-sequence-by-pack-format-a-or-a/154911 "2008-12-08T15:23:06Z")

</div>

Yuguie$B$G$9!#e(B pack formate$B$Ne(B’A’e$B$He(B’a’e$B$,%j%U%!%l%s%9%^%K%e%"%k$N!Ve(BASCIIe$BJ8;zNs!W$H$$$&@bL@e(B e$B$KH?$7$FJ8;zNs$rC1$K%P%$%HNs$H$7$F8D?tJ,$@$1\>CHq$7$F$$$^$9!#e(B str = “\\xe3\\x81\\x82”.force\_encodin…

---

## ['\*' parameter in pack format 'M', 'm', or 'P' acts oddly](https://www.ruby-forum.com/t/parameter-in-pack-format-m-m-or-p-acts-oddly/155024)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [December 8, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/parameter-in-pack-format-m-m-or-p-acts-oddly/155024 "2008-12-08T14:17:40Z")

</div>

Yuguiã§ã™ã€‚ Array#packã«ãŠã„ã¦ã€"M"ã‚„"m"ã¯å‡ºåŠ›ã®1è¡Œã®é•·ã•ã‚’ã€ "P"ã¯å¯¾å¿œã™ã‚‹æ–‡å­—åˆ—(ãƒã‚¤ãƒˆåˆ—)ã®é•·ã•ã‚’è¡¨ã—ã¾ã™ã€‚ ã«ã‚‚ã‹ã‹ã‚ã‚‰ãšã€"M\*"ã‚„“m\*”, "P\*"ã‚’æŒ‡å®šã™ã‚‹ã¨ã‚¢ã‚¹ã‚…

---

## [Unable to find the elements related to window](https://www.ruby-forum.com/t/unable-to-find-the-elements-related-to-window/155127)

<div class="topic-metadata">

**Author:** [@naveeng](https://www.ruby-forum.com/u/naveeng)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/unable-to-find-the-elements-related-to-window/155127 "2008-12-08T13:37:02Z")

</div>

Hi I am novice to ruby ,I am using to test my application.My problem is that if you can see the attachment when I try to create a new GUEST ,a new WINDOW DIALOGUE appears and where I am not able to use IE Developer …

---

## [A quetion about ruby string](https://www.ruby-forum.com/t/a-quetion-about-ruby-string/155114)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 6\
**Last updated:** [December 8, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/a-quetion-about-ruby-string/155114 "2008-12-08T13:36:43Z")

</div>

How can I change a string to regular expression? Take this method for an example: def match(pattern) … end This method accepts one parameter as a regular expression pattern, when I invoke this method by match(/…/) …

---

## [Include module in module](https://www.ruby-forum.com/t/include-module-in-module/155107)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 2\
**Last updated:** [December 8, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/include-module-in-module/155107 "2008-12-08T13:10:35Z")

</div>

Hi, I have a situation like this: module M … end class C1 include M … end class C2 include M … end Now I want to add methods to C1 and C2 and whatever other class includes M. My first approach was: module…

---

## [Invalid packee for pack format "B"](https://www.ruby-forum.com/t/invalid-packee-for-pack-format-b/154910)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 2\
**Last updated:** [December 8, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/invalid-packee-for-pack-format-b/154910 "2008-12-08T12:31:44Z")

</div>

Yuguie$B$G$9!#e(B pack format "B"e$B$K$\*$$$F!"Fs?JI=5-$G$J$$Ho%Q%C%/J8;zNs$r\<uM}$9$k$N$O;EMMe(B e$B$G$7$g$&$+!#e(B \[“bcde”\].pack(“B\*”) == \[“0101”\].pack(“B\*”) #=\> true

---

## [Pack format 'H' when the packee has insufficient and odd digits](https://www.ruby-forum.com/t/pack-format-h-when-the-packee-has-insufficient-and-odd-digits/154944)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [December 8, 2008, 9:55am UTC](https://www.ruby-forum.com/t/pack-format-h-when-the-packee-has-insufficient-and-odd-digits/154944 "2008-12-08T09:55:15Z")

</div>

Yuguie$B$G$9!#e(B pack format 'H’e$B$K$\*$$$F!“Ho%Q%C%/%G!\<%?$,e(B16e$B?J$G4q?t7e$G$”$k\>l9g!"@8@.$5e(B e$B$l$k%P%$%HNs$ND9$5$K!V%8%c%s%W!W$,8+$i$l$^$9!#e(B \[“FFF”\].pack(“H1”) #=\> “\\xF0” \[“FFF”\].pack(“H2”) #=\> “\\xFF…

---

## [Not enough space error on windows](https://www.ruby-forum.com/t/not-enough-space-error-on-windows/153614)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 5\
**Last updated:** [December 8, 2008, 8:30am UTC](https://www.ruby-forum.com/t/not-enough-space-error-on-windows/153614 "2008-12-08T08:30:19Z")

</div>

I get a ‘Not enough space’ error on windows. The disk has plenty of space and it looks like this is happening when writing a message to the screen. I saw somewhere that python has such an error because it is using a …

---

## [\[Bug #831\](Closed) make clean $B$,%(%i!\<$K$J$k(B](https://www.ruby-forum.com/t/bug-831-closed-make-clean-b-i-k-j-k-b/155105)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 7:51am UTC](https://www.ruby-forum.com/t/bug-831-closed-make-clean-b-i-k-j-k-b/155105 "2008-12-08T07:51:42Z")

</div>

e$B%A%1%C%He(B #831 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B Applied in changeset commit: 20565. http://redmine.ruby-lang.or…

---

## [Confusing problem while using Mechanize to submit a form wit](https://www.ruby-forum.com/t/confusing-problem-while-using-mechanize-to-submit-a-form-wit/155106)

<div class="topic-metadata">

**Author:** [@angusguan](https://www.ruby-forum.com/u/angusguan)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 5:44am UTC](https://www.ruby-forum.com/t/confusing-problem-while-using-mechanize-to-submit-a-form-wit/155106 "2008-12-08T05:44:35Z")

</div>

i have met a very confusing problem while using Mechanize to submit a form with a file return. how should i save the file? thanks a lot for any response :slight\_smile: code here: url = "http://xxxx.com/abc.aspx?CurD…

---

## [Rubyists Wanted!](https://www.ruby-forum.com/t/rubyists-wanted/155101)

<div class="topic-metadata">

**Author:** [@shamael](https://www.ruby-forum.com/u/shamael)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 3:37am UTC](https://www.ruby-forum.com/t/rubyists-wanted/155101 "2008-12-08T03:37:29Z")

</div>

Rubyists wanted, growing software company in Melbourne. Remuneration to commensurate experience. Make a new start for the New Year! This is a great opportunity, email me with your updated cv to discuss further. Look…

---

## [Building IronRuby under Mono](https://www.ruby-forum.com/t/building-ironruby-under-mono/155038)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 4\
**Last updated:** [December 8, 2008, 12:49am UTC](https://www.ruby-forum.com/t/building-ironruby-under-mono/155038 "2008-12-08T00:49:06Z")

</div>

Hello, I’m trying to compile IronRuby under Mono, but I’m receiving a few errors. Any ideas? $ uname -a Linux zen 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86\_64 GNU/Linux $ mono --version Mono JIT co…

---

## [ANN: FirePHRuby 0.2.1 released](https://www.ruby-forum.com/t/ann-firephruby-0-2-1-released/155097)

<div class="topic-metadata">

**Author:** [@T.N.T](https://www.ruby-forum.com/u/T.N.T)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/ann-firephruby-0-2-1-released/155097 "2008-12-07T23:55:49Z")

</div>

Hello I just released an update of my FirePHRuby script for AJAX development with Firebug/FirePHP. It can display all basic Ruby types now as an experimental option. Have a look at a nice screenshot on http://firephr…

---

## [Searching for research internship](https://www.ruby-forum.com/t/searching-for-research-internship/155098)

<div class="topic-metadata">

**Author:** [@dmjb](https://www.ruby-forum.com/u/dmjb)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/searching-for-research-internship/155098 "2008-12-07T23:54:10Z")

</div>

Hi, I’m a computer science student and, as part of my formation at Ecole Polytechnique in Paris, I need to do a research internship of at least 11 weeks between April and August 2009. This could be any research proje…

---

## [Prawn mini-hackfest, Sunday evening (2008.12.07)](https://www.ruby-forum.com/t/prawn-mini-hackfest-sunday-evening-2008-12-07/155033)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/prawn-mini-hackfest-sunday-evening-2008-12-07/155033 "2008-12-07T23:34:11Z")

</div>

Hi folks, I’ll be running another Prawn\[0\] mini-hackfest Sunday, from about 5pm to 11pm EST in #prawn on irc.freenode.net The focus is still working to clear the issue queue for the Prawn 0.3 milestone: http://prawn…

---

## [Rake-compiler 0.3.0 Released](https://www.ruby-forum.com/t/rake-compiler-0-3-0-released/155095)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/rake-compiler-0-3-0-released/155095 "2008-12-07T22:17:28Z")

</div>

rake-compiler version 0.3.0 has been released! http://github.com/luislavena/rake-compiler http://rubyforge.org/projects/rake-compiler = rake-compiler rake-compiler aims to help Gem developers while dealing with Ruby …

---

## [How to Write to csv file to create bulk address book](https://www.ruby-forum.com/t/how-to-write-to-csv-file-to-create-bulk-address-book/155077)

<div class="topic-metadata">

**Author:** [@iPerfect](https://www.ruby-forum.com/u/iPerfect)\
**Replies:** 2\
**Last updated:** [December 7, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/how-to-write-to-csv-file-to-create-bulk-address-book/155077 "2008-12-07T22:14:55Z")

</div>

Hi , I am new to ruby, I am working on script which would create ‘n’ number address book entries into a csv file which would be used to import into a address book. I need suggestions for the same The fileds for csv …

---

## [New revisions](https://www.ruby-forum.com/t/new-revisions/155018)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 18\
**Last updated:** [December 7, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/new-revisions/155018 "2008-12-07T20:47:36Z")

</div>

Git has been pushed. SVN is coming shortly. JD http://blog.jredville.com

---

## [Create XML document using XSD schema](https://www.ruby-forum.com/t/create-xml-document-using-xsd-schema/155088)

<div class="topic-metadata">

**Author:** [@GSSSSbor\_SebestySSS](https://www.ruby-forum.com/u/GSSSSbor_SebestySSS)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/create-xml-document-using-xsd-schema/155088 "2008-12-07T19:27:07Z")

</div>

What is the best way to generate XML from a specific schema? I have a set of path =\> value assignments which I want to transform to XML. Is there a good ruby tool for this task or what is the process of doing such a t…

---

## [Very Basic Question](https://www.ruby-forum.com/t/very-basic-question/155064)

<div class="topic-metadata">

**Author:** [@gilmangunn](https://www.ruby-forum.com/u/gilmangunn)\
**Replies:** 5\
**Last updated:** [December 7, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/very-basic-question/155064 "2008-12-07T19:05:05Z")

</div>

Hi all, I have a very basic question… what does “=\>” mean? Two books I have looked at started using it without explaining and it is filtered in most searches. My guess is that it has something to do with assignment b…

---

## [What i liked most about rails 2.2](https://www.ruby-forum.com/t/what-i-liked-most-about-rails-2-2/155073)

<div class="topic-metadata">

**Author:** [@khelll](https://www.ruby-forum.com/u/khelll)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/what-i-liked-most-about-rails-2-2/155073 "2008-12-07T19:04:14Z")

</div>

Hi, i’m already done of blogging a posthttp://www.khelll.com/blog/ror/what-i-liked-most-about-rails-22/on what i liked about rails 2.2, I have mentioned jruby in brief and how it enhances the overall performance of …

---

## [Creating a DSL: adding random methods](https://www.ruby-forum.com/t/creating-a-dsl-adding-random-methods/155081)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/creating-a-dsl-adding-random-methods/155081 "2008-12-07T18:57:11Z")

</div>

hi - I’m trying to create a simple DSL, using method missing. i want to be able to add different event logic for different instances, defined in their own files. trivial example: eg in fred.rb event :say do “hi thi…

---

## [Class vrs. method](https://www.ruby-forum.com/t/class-vrs-method/155070)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 8\
**Last updated:** [December 7, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/class-vrs-method/155070 "2008-12-07T18:06:09Z")

</div>

I’ve been thinking about this question for days, and have yet to come up with a satisfactory answer. I have deep respect for the “smarts” available on this list, so I’ll toos the question out here. I’ve been programmi…

---

## [Code Review: ScopesAndCrossRuntime](https://www.ruby-forum.com/t/code-review-scopesandcrossruntime/155047)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [December 7, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/code-review-scopesandcrossruntime/155047 "2008-12-07T17:15:09Z")

</div>

tfpt review “/shelveset:ScopesAndCrossRuntime;REDMOND\\tomat” DLR, Python, JS: A little bit of code context cleanup and dead code removal. Ruby: Removes RubyScope \<: CodeContext inheritance relationship. Implemen…

---

## [/opt/build/ruby/lib/ruby/1.8/mkmf.rb:345:in \`%': numbered(1) after unnumbered(1) (ArgumentError)](https://www.ruby-forum.com/t/opt-build-ruby-lib-ruby-1-8-mkmf-rbin-numbered-1-after-unnumbered-1-argumenterror/155076)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/opt-build-ruby-lib-ruby-1-8-mkmf-rbin-numbered-1-after-unnumbered-1-argumenterror/155076 "2008-12-07T15:49:28Z")

</div>

The error in the subject happens to me on HP-UX. What does it mean? Thanks, Ittay

---

## [Problems with opening and reading data from a file](https://www.ruby-forum.com/t/problems-with-opening-and-reading-data-from-a-file/155072)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/problems-with-opening-and-reading-data-from-a-file/155072 "2008-12-07T14:26:17Z")

</div>

I am trying to read keywords and phrases from a .txt file and run these words against a given directory structure. I seem to be having a few problems, when I run my code i get the following error: C:\\Documents and Set…

---

## [ONLINE JOB 18,000$ Per Month](https://www.ruby-forum.com/t/online-job-18-000-per-month/155074)

<div class="topic-metadata">

**Author:** [@kat](https://www.ruby-forum.com/u/kat)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/online-job-18-000-per-month/155074 "2008-12-07T13:10:37Z")

</div>

The World’s Biggest new Company KINGFISHER FROM NEWZELAND Brings Part Time Jobs all over the world. No Investment. 100% Guaranteed Income. Proofs & Details On 18,000$ Per Month. http://fishery.homestead.com/

---

## [Non-profit Start-up](https://www.ruby-forum.com/t/non-profit-start-up/155022)

<div class="topic-metadata">

**Author:** [@maarnold](https://www.ruby-forum.com/u/maarnold)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/non-profit-start-up/155022 "2008-12-07T12:06:07Z")

</div>

Hi, I am a student at MIT founding a non-profit, with the mission to increase the number of college students who do meaningful community service. We are a young team, and looking for individuals with more rails exper…

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

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