# Ruby

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

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

---

## [Difference between StringScanner#scan and Regexp#match](https://www.ruby-forum.com/t/difference-between-stringscanner-scan-and-regexp-match/130007)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 5\
**Last updated:** [February 26, 2008, 5:02am UTC](https://www.ruby-forum.com/t/difference-between-stringscanner-scan-and-regexp-match/130007 "2008-02-26T05:02:00Z")

</div>

Hi, I’m planning to implement StringScanner in pure Ruby. But I found that it is hard to implement StringScanner#scan() in pure Ruby, because of the difference between Regexp#match() and StringScanner#scan(). String…

---

## [Specifying JRuby memory usage from command line](https://www.ruby-forum.com/t/specifying-jruby-memory-usage-from-command-line/130179)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 4:33am UTC](https://www.ruby-forum.com/t/specifying-jruby-memory-usage-from-command-line/130179 "2008-02-26T04:33:29Z")

</div>

Hi, I’ve been experimenting with JRuby on a Debian 4 based machine, installed the Sun java 5 sdk, works fine, compiles and executes java helloworld files. However, JRuby gives me: $ jruby Error occurred during init…

---

## [Adobe CS3](https://www.ruby-forum.com/t/adobe-cs3/130178)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 3:56am UTC](https://www.ruby-forum.com/t/adobe-cs3/130178 "2008-02-26T03:56:31Z")

</div>

Hey guys wondering, if you are using Adobe CS3 and do you think, if there are other alternatives to CS3. Would you recommend CS3 or wait for something else.

---

## [How to detect string charset](https://www.ruby-forum.com/t/how-to-detect-string-charset/130110)

<div class="topic-metadata">

**Author:** [@overclokkato](https://www.ruby-forum.com/u/overclokkato)\
**Replies:** 6\
**Last updated:** [February 26, 2008, 3:37am UTC](https://www.ruby-forum.com/t/how-to-detect-string-charset/130110 "2008-02-26T03:37:03Z")

</div>

Hi list, I run a deep search through this group and other resources online but I have been unable to find whether is there a way to guess the charset of a string in Ruby 1.8.6. I need to ensure a string is always UTF…

---

## [How does ruby](https://www.ruby-forum.com/t/how-does-ruby/186782)

<div class="topic-metadata">

**Author:** [@ronald](https://www.ruby-forum.com/u/ronald)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 3:24am UTC](https://www.ruby-forum.com/t/how-does-ruby/186782 "2008-02-26T03:24:44Z")

</div>

hi, i’m a noob to ruby and i have read a few things about it. id like to know how to make a program that sums two numbers by inserting them and then ruby displays them. if anyone can help, would be really apprecciated…

---

## [How does ruby](https://www.ruby-forum.com/t/how-does-ruby/130174)

<div class="topic-metadata">

**Author:** [@ronald](https://www.ruby-forum.com/u/ronald)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 3:01am UTC](https://www.ruby-forum.com/t/how-does-ruby/130174 "2008-02-26T03:01:52Z")

</div>

hi, i’m a noob to ruby and i have read a few things about it. id like to know how to make a program that sums two numbers by inserting them and then ruby displays them. if anyone can help, would be really apprecciated…

---

## [Ruby sans Rails job](https://www.ruby-forum.com/t/ruby-sans-rails-job/130170)

<div class="topic-metadata">

**Author:** [@Phillip\_Larson](https://www.ruby-forum.com/u/Phillip_Larson)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 12:52am UTC](https://www.ruby-forum.com/t/ruby-sans-rails-job/130170 "2008-02-26T00:52:20Z")

</div>

If you’re in the Los A. area, we’re looking for a ruby person to build/maintain some apps and systems for automated testing. http://tbe.taleo.net/NA1/ats/careers/requisition.jsp?org=J2GLOBAL&cws=1& rid=339 If you’re …

---

## [Ruby sans Rails job](https://www.ruby-forum.com/t/ruby-sans-rails-job/186778)

<div class="topic-metadata">

**Author:** [@Phillip\_Larson](https://www.ruby-forum.com/u/Phillip_Larson)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 12:52am UTC](https://www.ruby-forum.com/t/ruby-sans-rails-job/186778 "2008-02-26T00:52:20Z")

</div>

If you’re in the Los A. area, we’re looking for a ruby person to build/maintain some apps and systems for automated testing. http://tbe.taleo.net/NA1/ats/careers/requisition.jsp?org=J2GLOBAL&cws=1& rid=339 If you’re …

---

## [FXRuby example that employs FXColorWell wanted](https://www.ruby-forum.com/t/fxruby-example-that-employs-fxcolorwell-wanted/130062)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 12:45am UTC](https://www.ruby-forum.com/t/fxruby-example-that-employs-fxcolorwell-wanted/130062 "2008-02-26T00:45:51Z")

</div>

Hi All, I’ve got two questions: Where can I find an FXRuby example that employs FXColorWell? Does my Ruby installation have FXColorWell installed properly? I’m working through Lyle J.'s excellent (so far) tutorial on …

---

## [Another win32 service error](https://www.ruby-forum.com/t/another-win32-service-error/130165)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 12:25am UTC](https://www.ruby-forum.com/t/another-win32-service-error/130165 "2008-02-26T00:25:51Z")

</div>

Is there anything that my executable should do in order to be a service. i have created services before with vb and have not experienced issues. bat file is a simple one having this statemetn. thin start -e productio…

---

## [Bioruby-Name error: uninitialized constant](https://www.ruby-forum.com/t/bioruby-name-error-uninitialized-constant/129884)

<div class="topic-metadata">

**Author:** [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Replies:** 5\
**Last updated:** [February 26, 2008, 12:21am UTC](https://www.ruby-forum.com/t/bioruby-name-error-uninitialized-constant/129884 "2008-02-26T00:21:45Z")

</div>

I’m very new to both programming in general and to programming in Ruby. I have tried to write a programme in BioRuby: require ‘bio’ fasta = open(’…/sequence.fasta’) fasta\_string = fasta.read a = Bio::Alignment::Mult…

---

## [Towards gems - setup.rb](https://www.ruby-forum.com/t/towards-gems-setup-rb/129739)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/towards-gems-setup-rb/129739 "2008-02-25T23:12:57Z")

</div>

I thought I’d see how far I could get trying to execute gems setup.rb using IronRuby. The following lists the issues that I came across and how I fixed or worked around them: Encountered assertion error in MergeLoca…

---

## [Passing method references in python & ruby](https://www.ruby-forum.com/t/passing-method-references-in-python-ruby/126412)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 20\
**Last updated:** [February 25, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/passing-method-references-in-python-ruby/126412 "2008-02-25T22:37:02Z")

</div>

Hey all, Kind of an idle, syntax comparison question here… In python, you can apparently pass method references around very easily. So imagine you have these 2 functions defined: def firstWay(arg1, arg2) return ‘Ta…

---

## [Deprecated](https://www.ruby-forum.com/t/deprecated/130161)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/deprecated/130161 "2008-02-25T22:26:58Z")

</div>

This just occurred to me (for Java fans): class Module def deprecated \*meths meths.each do |me| aliased = “deprecate#{me}” alias\_method aliased, me class\_eval “def #{me}(\*a,&b) $stderr.puts ‘WARNING: deprecated me…

---

## [How to make the gem?](https://www.ruby-forum.com/t/how-to-make-the-gem/130159)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/how-to-make-the-gem/130159 "2008-02-25T22:15:41Z")

</div>

Hi all, I wanted to test thin at work, on Windows with VC++ 2005, but I can’t install it because I got an error with the compilation of em.cpp, because EINTR was not included in the “project.h”. I would like to test…

---

## [Rake task with arguments](https://www.ruby-forum.com/t/rake-task-with-arguments/130154)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/rake-task-with-arguments/130154 "2008-02-25T21:42:41Z")

</div>

I found an example (http://www.betweentherails.com/rake/) of passing arguments to a rake task in the new (0.8.n) version of rake. From this example, I created the following test: namespace :foo do desc ‘lol’ task :b…

---

## [Regex and lookahead to specific number of chars](https://www.ruby-forum.com/t/regex-and-lookahead-to-specific-number-of-chars/130151)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/regex-and-lookahead-to-specific-number-of-chars/130151 "2008-02-25T21:28:44Z")

</div>

If I have a string such as “I love ruby, i really do love ruby, oh yes i do blah blah blah” and i want to insert an asterix at every 10th char whether its a whitespace, digit whatever how do i go about it i was tryin…

---

## [Web archive for ruby newsgroup](https://www.ruby-forum.com/t/web-archive-for-ruby-newsgroup/130143)

<div class="topic-metadata">

**Author:** [@Ward\_B](https://www.ruby-forum.com/u/Ward_B)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/web-archive-for-ruby-newsgroup/130143 "2008-02-25T20:15:38Z")

</div>

Just live: Ruby Newsgroup Archive : A simple & searchable web-archive for comp.lang.ruby. (build with Ruby on Rails). Find only anwers because we do not show messages without a reply. :wink: ruby.equanimity.nl Regar…

---

## [Like Fxri](https://www.ruby-forum.com/t/like-fxri/186744)

<div class="topic-metadata">

**Author:** [@arevert](https://www.ruby-forum.com/u/arevert)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/like-fxri/186744 "2008-02-25T20:02:03Z")

</div>

Hi everybody!!! I’m programming a Ruby Aplication, like an Fxri Interactive console, so this application has two TextBox, that in one you put your Ruby Code, and in the other one shows you the results, like a put or…

---

## [Win32 service error](https://www.ruby-forum.com/t/win32-service-error/186749)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/win32-service-error/186749 "2008-02-25T19:50:43Z")

</div>

Hello I am trying out an example from http://rubyforge.org/docman/view.php/85/595/service.html and it errors out require “win32/service” include Win32 Create a new service Service.create(‘some\_service’, nil, :ser…

---

## [Monkeypatching the AI Mind](https://www.ruby-forum.com/t/monkeypatching-the-ai-mind/186740)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/monkeypatching-the-ai-mind/186740 "2008-02-25T19:35:58Z")

</div>

The recent discussion of “monkeypatching” in Ruby brings up the general idea of changing an AI Mind program “on the fly.” Does the “Java hotspot compiler” do the same thing for Java – “optimizing the airplane while y…

---

## [Local Ruby Gem Dependencies](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748)

<div class="topic-metadata">

**Author:** [@spiral](https://www.ruby-forum.com/u/spiral)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748 "2008-02-25T19:29:26Z")

</div>

My work environment is very controlled. We validate certain configurations of servers on our staging/QA servers before moving to production. Before updates to gems that are different than our validated version can be …

---

## [Local Ruby Gem Dependencies](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/130139)

<div class="topic-metadata">

**Author:** [@spiral](https://www.ruby-forum.com/u/spiral)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/130139 "2008-02-25T19:02:16Z")

</div>

My work environment is very controlled. We validate certain configurations of servers on our staging/QA servers before moving to production. Before updates to gems that are different than our validated version can be …

---

## [Win32 service error](https://www.ruby-forum.com/t/win32-service-error/130137)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/win32-service-error/130137 "2008-02-25T18:56:22Z")

</div>

Hello I am trying out an example from http://rubyforge.org/docman/view.php/85/595/service.html and it errors out require “win32/service” include Win32 Create a new service Service.create(‘some\_service’, nil, :ser…

---

## [Array#slice! bug?](https://www.ruby-forum.com/t/array-slice-bug/186746)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/array-slice-bug/186746 "2008-02-25T18:44:35Z")

</div>

irb(main):001:0\> y = \[1,2,3,4,5\] =\> \[1, 2, 3, 4, 5\] irb(main):002:0\> y.slice! -7, 7 =\> nil irb(main):003:0\> y =\> \[1, 2, 3\] irb(main):004:0\> y.slice! -7, 7 IndexError: index -4 out of array from (irb):4:in \`slice!…

---

## [Array#slice! bug?](https://www.ruby-forum.com/t/array-slice-bug/130134)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/array-slice-bug/130134 "2008-02-25T18:44:35Z")

</div>

irb(main):001:0\> y = \[1,2,3,4,5\] =\> \[1, 2, 3, 4, 5\] irb(main):002:0\> y.slice! -7, 7 =\> nil irb(main):003:0\> y =\> \[1, 2, 3\] irb(main):004:0\> y.slice! -7, 7 IndexError: index -4 out of array from (irb):4:in \`slice!…

---

## ["OneLiner" - replacement](https://www.ruby-forum.com/t/oneliner-replacement/186728)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 4\
**Last updated:** [February 25, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/oneliner-replacement/186728 "2008-02-25T18:16:52Z")

</div>

Hi, i have some replacement’s and would like to use the “in place operator”. How is it possible doing more than one repalcement, i thought i read something to hang the gsub method one after another, but it dosn’t w…

---

## [Like Fxri](https://www.ruby-forum.com/t/like-fxri/130131)

<div class="topic-metadata">

**Author:** [@arevert](https://www.ruby-forum.com/u/arevert)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/like-fxri/130131 "2008-02-25T18:11:31Z")

</div>

Hi everybody!!! I’m programming a Ruby Aplication, like an Fxri Interactive console, so this application has two TextBox, that in one you put your Ruby Code, and in the other one shows you the results, like a put or…

---

## [OT: Eigenclass down?](https://www.ruby-forum.com/t/ot-eigenclass-down/130095)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/ot-eigenclass-down/130095 "2008-02-25T17:47:55Z")

</div>

Sorry to ask here, but I don’t know where else to… Is Eigenclass.org down? For days now I have only been able to get 503: Service Not Available. If so, is there any mirror of the software there? It seems to be the on…

---

## [Monkeypatching the AI Mind](https://www.ruby-forum.com/t/monkeypatching-the-ai-mind/130129)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/monkeypatching-the-ai-mind/130129 "2008-02-25T17:10:40Z")

</div>

The recent discussion of “monkeypatching” in Ruby brings up the general idea of changing an AI Mind program “on the fly.” Does the “Java hotspot compiler” do the same thing for Java – “optimizing the airplane while y…

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

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