# Ruby

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

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

---

## [Problems installing RRDtool gem under Windows](https://www.ruby-forum.com/t/problems-installing-rrdtool-gem-under-windows/133426)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 4\
**Last updated:** [March 31, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/problems-installing-rrdtool-gem-under-windows/133426 "2008-03-31T18:28:43Z")

</div>

Team, I am trying to install RRDtool under MS Windows/XP. I tried to install the gem and got the following errors: C:$user\\downloads\\Ruby and Friends\>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] C:$…

---

## [Mark, alloc and free functions in C extensions](https://www.ruby-forum.com/t/mark-alloc-and-free-functions-in-c-extensions/133339)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 5\
**Last updated:** [March 31, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/mark-alloc-and-free-functions-in-c-extensions/133339 "2008-03-31T18:11:35Z")

</div>

I have a class A written in C that contains a C structure. I have defined the functions mark, alloc and free. I have another class B, written in C, that derives from class A and adds another piece of C data. Should t…

---

## [Punch-0.0.2 - i can has time tracking](https://www.ruby-forum.com/t/punch-0-0-2-i-can-has-time-tracking/133273)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 6\
**Last updated:** [March 31, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/punch-0-0-2-i-can-has-time-tracking/133273 "2008-03-31T17:45:27Z")

</div>

NAME punch SYNOPSIS punch (in|out|log|clock|status|list|total|delete|dump|parse) \[options\]+ DESCRIPTION i can has time tracking! punch is a k.i.s.s. tool for tracking the hours spent on various projects. it supp…

---

## [GSoC student application deadline extended](https://www.ruby-forum.com/t/gsoc-student-application-deadline-extended/133438)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/gsoc-student-application-deadline-extended/133438 "2008-03-31T17:28:10Z")

</div>

http://groups.google.com/group/google-summer-of-code-announce/browse\_thread/thread/9fa88f31aa401f70/369ed1ac860cd233#369ed1ac860cd233 The new deadline for student applications is Monday, April 7 This is a great chance …

---

## [Google Gadget / inspectorgadget](https://www.ruby-forum.com/t/google-gadget-inspectorgadget/133434)

<div class="topic-metadata">

**Author:** [@ernsttanaka](https://www.ruby-forum.com/u/ernsttanaka)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/google-gadget-inspectorgadget/133434 "2008-03-31T16:33:34Z")

</div>

I want to start to write some Google Gadgets with Ruby. Can you please give me some url’s with documentation /examples My google searches come up empty. Except for the gem inspectorgadget but that one is without any e…

---

## [Instant Messenger?](https://www.ruby-forum.com/t/instant-messenger/133425)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 5\
**Last updated:** [March 31, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/instant-messenger/133425 "2008-03-31T16:12:59Z")

</div>

Hello. I want use Ruby to make Instant Messenger. Where can I study about how to make it?? It can possible to make?? thank you for the answer :’)

---

## [Unit test filename convention](https://www.ruby-forum.com/t/unit-test-filename-convention/133315)

<div class="topic-metadata">

**Author:** [@mman](https://www.ruby-forum.com/u/mman)\
**Replies:** 3\
**Last updated:** [March 31, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/unit-test-filename-convention/133315 "2008-03-31T15:59:39Z")

</div>

All, I’m just starting with Netbeans 6.1 after having used Eclipse RDT for a while. I was used to keep unit tests within the same file (delimited by if $0 == FILE), but now I guess there’s a shift towards separate fi…

---

## [How-to unmixin a module](https://www.ruby-forum.com/t/how-to-unmixin-a-module/133321)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/how-to-unmixin-a-module/133321 "2008-03-31T14:53:36Z")

</div>

Hi, How do you undo the mixing in of a module? Is it possible? I guess you would have to save the state (current methods) of the class before the mixin, then iterate through the methods and class variables of the m…

---

## [Is it me or Math::sqrt?](https://www.ruby-forum.com/t/is-it-me-or-math-sqrt/133408)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 8\
**Last updated:** [March 31, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/is-it-me-or-math-sqrt/133408 "2008-03-31T14:35:39Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list. I’m a bit stupefied by the different results of this algorithm I implemented (Euclidean distance for 3 dimensions): Calculates the relative distance\_to an a…

---

## [Ruby 1.9 - ArgumentError: incompatible encoding regexp match (US-ASCII regexp with ISO-2022-JP strin](https://www.ruby-forum.com/t/ruby-1-9-argumenterror-incompatible-encoding-regexp-match-us-ascii-regexp-with-iso-2022-jp-strin/133412)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/ruby-1-9-argumenterror-incompatible-encoding-regexp-match-us-ascii-regexp-with-iso-2022-jp-strin/133412 "2008-03-31T12:28:02Z")

</div>

Hiya all, I am testing TMail against the latest Ruby (1.9.0 downloaded last night), and have come up against this problem: ArgumentError: incompatible encoding regexp match (US-ASCII regexp with ISO-2022-JP string) N…

---

## [How to get a result value from a formula with parseexcel](https://www.ruby-forum.com/t/how-to-get-a-result-value-from-a-formula-with-parseexcel/133079)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 11:49am UTC](https://www.ruby-forum.com/t/how-to-get-a-result-value-from-a-formula-with-parseexcel/133079 "2008-03-31T11:49:33Z")

</div>

I’m using parseexcel for getting info from an excel file. The problem is when I try to get the result of a cell containing a formula. Do you know how to do it? thanks.

---

## [Highlight a particular word](https://www.ruby-forum.com/t/highlight-a-particular-word/133405)

<div class="topic-metadata">

**Author:** [@hemantaray](https://www.ruby-forum.com/u/hemantaray)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 11:31am UTC](https://www.ruby-forum.com/t/highlight-a-particular-word/133405 "2008-03-31T11:31:12Z")

</div>

I want to highlight a particular wold from a text… I don’t know where to write the code and what will be the code also. plz help with simple code

---

## [How does Array#- do comparisons?](https://www.ruby-forum.com/t/how-does-array-do-comparisons/133382)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 11:26am UTC](https://www.ruby-forum.com/t/how-does-array-do-comparisons/133382 "2008-03-31T11:26:27Z")

</div>

How does Array#- (as in, \[1, 2, 3, 1, 1\] - \[1\]) compare two objects to see if they are equal? I would think the .eql? method, but I’ve written a class that implements that method so that two different objects with th…

---

## [What's going on here? (weird Ruby 1.9 incompatibility)](https://www.ruby-forum.com/t/whats-going-on-here-weird-ruby-1-9-incompatibility/133284)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 6\
**Last updated:** [March 31, 2008, 10:25am UTC](https://www.ruby-forum.com/t/whats-going-on-here-weird-ruby-1-9-incompatibility/133284 "2008-03-31T10:25:17Z")

</div>

class A def a ‘yay’ end end class B def initialize(&meth) class \<\< self; self; end.send(:define\_method, :b, &meth) end end b = B.new &A.new.method(:a) p b.b Ruby 1.8 prints: “yay” Ruby 1.9 complains (on the…

---

## [Help on best way to gather/sort results \[Array/Hash\]?](https://www.ruby-forum.com/t/help-on-best-way-to-gather-sort-results-array-hash/133238)

<div class="topic-metadata">

**Author:** [@tonydm](https://www.ruby-forum.com/u/tonydm)\
**Replies:** 17\
**Last updated:** [March 31, 2008, 10:17am UTC](https://www.ruby-forum.com/t/help-on-best-way-to-gather-sort-results-array-hash/133238 "2008-03-31T10:17:37Z")

</div>

Greetings ruby fans, I’m a greenhorn at this cool lang ruby. Much to learn. Perhaps you chaps could help me with an issue I have. I’ve read through a number of the post on sorting Arrays and Hashes. And yet I can’…

---

## [Ruby Programming for the Absolute Beginner](https://www.ruby-forum.com/t/ruby-programming-for-the-absolute-beginner/133381)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 9:59am UTC](https://www.ruby-forum.com/t/ruby-programming-for-the-absolute-beginner/133381 "2008-03-31T09:59:20Z")

</div>

My son has just asked me about game programming. He is 9 years old. I see a book about Python under the same title that gets good reviews. Does anyone have any experience with the Ruby version? Supposedly it teaches b…

---

## [Strange behavior of Kernel::system](https://www.ruby-forum.com/t/strange-behavior-of-kernel-system/132350)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 9:10am UTC](https://www.ruby-forum.com/t/strange-behavior-of-kernel-system/132350 "2008-03-31T09:10:54Z")

</div>

Hi I am running Ruby on Ubunutu 7.10. I have a shell script building my software (doFullBuild) with one Parameter (the SVN revision number). When I call this script directly from Linux terminal (e.g. ./ doFullBuild -…

---

## [Log\_buddy released - your helpful dev and debug buddy](https://www.ruby-forum.com/t/log-buddy-released-your-helpful-dev-and-debug-buddy/133386)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 3\
**Last updated:** [March 31, 2008, 7:22am UTC](https://www.ruby-forum.com/t/log-buddy-released-your-helpful-dev-and-debug-buddy/133386 "2008-03-31T07:22:20Z")

</div>

LogBuddy is your friendly little log buddy at your side, helping you dev, debug, and test. It plays well with Rails and plain old Ruby projects. To use it, sudo gem install log\_buddy, then require ‘log\_buddy’ and call…

---

## [FILEUTILS cp/cp\_r rm/rm\_r on Windows XP](https://www.ruby-forum.com/t/fileutils-cp-cp-r-rm-rm-r-on-windows-xp/133375)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 4:15am UTC](https://www.ruby-forum.com/t/fileutils-cp-cp-r-rm-rm-r-on-windows-xp/133375 "2008-03-31T04:15:37Z")

</div>

I cannot seem to get these commands to work as expected in Windows XP pro SP2. Given this task :update do FileUtils.cp\_r File.join(File.dirname(FILE), ‘views/xyz/’), File.join(File.dirname(FILE), ‘…/…/…/app/views’) …

---

## [Instance variable access](https://www.ruby-forum.com/t/instance-variable-access/133338)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [March 31, 2008, 3:30am UTC](https://www.ruby-forum.com/t/instance-variable-access/133338 "2008-03-31T03:30:27Z")

</div>

After hee-hawing about with Facets’ instance variable extension methods, notably #instance\_assign, and looking at Rails own hee-hawing – #instance\_values and #instance\_variable\_names, and further conceiving of a coupl…

---

## [Rake Task: passing params and return values](https://www.ruby-forum.com/t/rake-task-passing-params-and-return-values/132059)

<div class="topic-metadata">

**Author:** [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 2:51am UTC](https://www.ruby-forum.com/t/rake-task-passing-params-and-return-values/132059 "2008-03-31T02:51:10Z")

</div>

Is there a way to pass params to a rake task and have it return values? I have seen the ENV var being used to pass in the args to rake. Is it thread safe? Are there any unintended consequences if two controllers …

---

## [Running a rake task from a controller (pass/return values)](https://www.ruby-forum.com/t/running-a-rake-task-from-a-controller-pass-return-values/132052)

<div class="topic-metadata">

**Author:** [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 2:45am UTC](https://www.ruby-forum.com/t/running-a-rake-task-from-a-controller-pass-return-values/132052 "2008-03-31T02:45:18Z")

</div>

I’m a RoR noob. I have a controller that receives data from a view. I want to save that data into a DB, which is fine. After saving the data, I want to run a rake task on it to get more data to save it in the DB. The…

---

## [Hrpicot - cant extract what i want from page](https://www.ruby-forum.com/t/hrpicot-cant-extract-what-i-want-from-page/133142)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 8\
**Last updated:** [March 31, 2008, 2:27am UTC](https://www.ruby-forum.com/t/hrpicot-cant-extract-what-i-want-from-page/133142 "2008-03-31T02:27:08Z")

</div>

Hi im starting to use hrpicot and im having problems extracting descriptions of various concert events from a page. Here is a sample of the html Concerts POPULAR Middle Field! Vol.4 Featuring electric-pop ba…

---

## [Using Dynamic Languages in Silverlight with Visual Studio](https://www.ruby-forum.com/t/using-dynamic-languages-in-silverlight-with-visual-studio/133374)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 1:11am UTC](https://www.ruby-forum.com/t/using-dynamic-languages-in-silverlight-with-visual-studio/133374 "2008-03-31T01:11:29Z")

</div>

http://blogs.msdn.com/webnext/archive/2008/03/30/silverlight-dynamic-languag es-in-visual-studio.aspx For all those who have been asking about Visual Studio support, Laurence Moroney just posted about using Dynamic La…

---

## [Merb â€“ All You Need, None You Don't - Sl ide Deck Now Availabe in Web Version (S9)](https://www.ruby-forum.com/t/merb-a-all-you-need-none-you-dont-sl-ide-deck-now-availabe-in-web-version-s9/133373)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 1:05am UTC](https://www.ruby-forum.com/t/merb-a-all-you-need-none-you-dont-sl-ide-deck-now-availabe-in-web-version-s9/133373 "2008-03-31T01:05:02Z")

</div>

Hello, FYI: I’ve created a web version (using S9) of Ezra Z.’ (Engine Y.) original PDF slide deck \[1\] from the Mountain West RubyConf 2008 talk titled “Merb – All You Need, None You Don’t”. Slides include: Guiding …

---

## [Extrange behaviour using "if XXX ..." and "XXX if ..."](https://www.ruby-forum.com/t/extrange-behaviour-using-if-xxx-and-xxx-if/133313)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [March 30, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/extrange-behaviour-using-if-xxx-and-xxx-if/133313 "2008-03-30T23:28:10Z")

</div>

Hi, note the difference in those both cases: a) if a=“QWEQWE” : a end =\> “QWEQWE” b) a if a=“QWEQWE” NameError: undefined local variable or method \`a’ for main:Object I know that the behaviour in a) is no recommen…

---

## [Testing speed of xml parsing in MRI and JRuby](https://www.ruby-forum.com/t/testing-speed-of-xml-parsing-in-mri-and-jruby/133363)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [March 30, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/testing-speed-of-xml-parsing-in-mri-and-jruby/133363 "2008-03-30T23:03:28Z")

</div>

FYI: I’m hoping to use Hpricot for general XML processing instead of Rexml or Libxml in some projects and I wanted to find out the speeds of different XML parsers in MRI and JRuby. I was very impressed by how much fa…

---

## [How to uninstall locally installed ruby?](https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361)

<div class="topic-metadata">

**Author:** [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Replies:** 2\
**Last updated:** [March 30, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361 "2008-03-30T22:55:01Z")

</div>

Linux. Why there is no target ‘uninstall’ in Makefile (generated by ./configure)? How to uninstall locally installed ruby? I just compiled and locally installed version 1.9 and want to roll back to 1.8 Thanks! Ar…

---

## [Ruby 1.9 named arguments](https://www.ruby-forum.com/t/ruby-1-9-named-arguments/133351)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 30, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/ruby-1-9-named-arguments/133351 "2008-03-30T21:24:58Z")

</div>

When I run the following in the irb session, I am getting an error. Any ideas why? TIA. irb(main):036:0\> { :a =\> 1, :b =\> 4 } =\> {:a=\>1, :b=\>4} irb(main):037:0\> { :x 2, :y 6 } SyntaxError: (irb):37: syntax error, un…

---

## [Rutema 0.6.4 Released](https://www.ruby-forum.com/t/rutema-0-6-4-released/197173)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [March 30, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/rutema-0-6-4-released/197173 "2008-03-30T20:13:36Z")

</div>

rutema version 0.6.4 - the Euruko 2008 release! Never update your gems right before a presentation :). DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes car…

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

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