# Ruby

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

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

---

## [Mall 0.0.1 Released](https://www.ruby-forum.com/t/mall-0-0-1-released/169889)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/mall-0-0-1-released/169889 "2009-06-09T23:59:50Z")

</div>

mall version 0.0.1 has been released! http://bogomips.org/mall This library provides access to the mallinfo(3) and mallopt(3) functions. mallinfo(3) is used for reporting malloc statistics and mallopt(3) can be use…

---

## [FCSV importing file to Excel](https://www.ruby-forum.com/t/fcsv-importing-file-to-excel/166746)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 8\
**Last updated:** [June 9, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/fcsv-importing-file-to-excel/166746 "2009-06-09T23:42:17Z")

</div>

I have a csv file that I am inputting into an excel spreadsheet. One of the fields is a hyperlink: =HYPERLINK(“http://www.radiofreetexas.org/","ClickHere”) When FCSV comes across the file to process it and insert pass…

---

## [\[ANN\] monkeypatch-0.1.2 (alpha)](https://www.ruby-forum.com/t/ann-monkeypatch-0-1-2-alpha/168817)

<div class="topic-metadata">

**Author:** [@zimbatm](https://www.ruby-forum.com/u/zimbatm)\
**Replies:** 10\
**Last updated:** [June 9, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/ann-monkeypatch-0-1-2-alpha/168817 "2009-06-09T23:34:04Z")

</div>

monkeypatch is a new ruby projects that tries to protect you from patch collisions. == Project info monkeypatch introduces a small API that you can use when you want to fix external libraries. The mechanism is mean…

---

## [Prettier stack traces](https://www.ruby-forum.com/t/prettier-stack-traces/169883)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/prettier-stack-traces/169883 "2009-06-09T23:17:39Z")

</div>

Hi When I use the console i get pretty error messages or at least error messages without the stacktrace of IronRuby internal calls. How do I get this pretty stack trace when hosting IronRuby in my own application? Me…

---

## [Is this considered functional?](https://www.ruby-forum.com/t/is-this-considered-functional/169875)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/is-this-considered-functional/169875 "2009-06-09T22:31:14Z")

</div>

I am reading stuff about functional programming in ruby. what i do more lately is this: var = ? “val1” : "val2: instead of: ? var=“val1” : var=“val2” is the first line also an example of functional programming?

---

## [An Issue with CLR Delegates](https://www.ruby-forum.com/t/an-issue-with-clr-delegates/169841)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 4\
**Last updated:** [June 9, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/an-issue-with-clr-delegates/169841 "2009-06-09T22:07:22Z")

</div>

Hi, Today I’m playing with CLR delegates :slight\_smile: I’ve run into a strange behavior. Take a look at the next C# block: public class Printer { public delegate void PrintValue(string value); } Assuming the abo…

---

## [CLR interop bug?](https://www.ruby-forum.com/t/clr-interop-bug/169874)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/clr-interop-bug/169874 "2009-06-09T22:04:13Z")

</div>

Hi What is the nitty gritty around monkey patching CLR classes. When I’m monkey patching I should be able to get to the protected members of a class right? And the private members too (I see it kind of like partial …

---

## [Get input type in mechanize](https://www.ruby-forum.com/t/get-input-type-in-mechanize/169880)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/get-input-type-in-mechanize/169880 "2009-06-09T22:01:46Z")

</div>

Hello, when looping through form.fields, how can I find the type of the current field? Docs here http://mechanize.rubyforge.org/mechanize/WWW/Mechanize/Form/Field.html say “following input tags found in a form: text, …

---

## [Can't install racc](https://www.ruby-forum.com/t/cant-install-racc/169848)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 4\
**Last updated:** [June 9, 2009, 9:21pm UTC](https://www.ruby-forum.com/t/cant-install-racc/169848 "2009-06-09T21:21:56Z")

</div>

Hello, I’m trying to install the mechanize gem on ruby 1.8.6, and it requires nokogiri and racc. When trying to install racc, I get the following error C:\\Documents and Settings\\roddik\>gem install racc Building nativ…

---

## [Call a ruby program clicking a button on a web page](https://www.ruby-forum.com/t/call-a-ruby-program-clicking-a-button-on-a-web-page/169861)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/call-a-ruby-program-clicking-a-button-on-a-web-page/169861 "2009-06-09T20:48:56Z")

</div>

How is possible to call a ruby program clicking a button on a web page? Thank you.

---

## [Thread#wakeup in JRuby 1.3.0](https://www.ruby-forum.com/t/thread-wakeup-in-jruby-1-3-0/169855)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 6\
**Last updated:** [June 9, 2009, 7:53pm UTC](https://www.ruby-forum.com/t/thread-wakeup-in-jruby-1-3-0/169855 "2009-06-09T19:53:40Z")

</div>

Thread#wakeup does not appear to be working in JRuby 1.3.0 $\> cat test.rb STDOUT.sync = true Thread.abort\_on\_exception = true t = Thread.new { start = Time.now loop { puts ‘sleeping’ sleep 5 puts “wake up {Time.…

---

## [Ruby in Android - Android Scripting Environment](https://www.ruby-forum.com/t/ruby-in-android-android-scripting-environment/169853)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/ruby-in-android-android-scripting-environment/169853 "2009-06-09T18:06:11Z")

</div>

Some news I came across, check out: http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html John. --- The Android Scripting Environment (ASE) brings scripting languages to Android by all…

---

## [JRuby 1.3.0 issue with memcache](https://www.ruby-forum.com/t/jruby-1-3-0-issue-with-memcache/169688)

<div class="topic-metadata">

**Author:** [@Darren\_Boyd](https://www.ruby-forum.com/u/Darren_Boyd)\
**Replies:** 10\
**Last updated:** [June 9, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0-issue-with-memcache/169688 "2009-06-09T18:03:14Z")

</div>

I’ve been trying to get our Rails application working with JRuby. I just upgraded to JRuby 1.3.0, and came across an error with memcache. I would love to debug this, but I’m not even sure where to start. Any thought…

---

## [Module methods](https://www.ruby-forum.com/t/module-methods/169418)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 8\
**Last updated:** [June 9, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/module-methods/169418 "2009-06-09T16:57:43Z")

</div>

I am trying to do this: ==== File: good.rb ==== module Good def init\_module @var = “good” end def life\_is\_good puts “life is #{@var}” end \[… more methods …\] end include X init\_module ======== and in a differ…

---

## [Ruby-prof for WATIR testcase calls WIN32OLE#method\_missing](https://www.ruby-forum.com/t/ruby-prof-for-watir-testcase-calls-win32ole-method-missing/169845)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/ruby-prof-for-watir-testcase-calls-win32ole-method-missing/169845 "2009-06-09T16:22:36Z")

</div>

Hi all, I generated ruby profile for my test suite. In my profile i observed that 10% of my test time is taken by WIN32OLE#method\_missing. It was called 60077 times. Can anyone please help me understand when and why …

---

## ["puts"ing an array](https://www.ruby-forum.com/t/puts-ing-an-array/169843)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 6\
**Last updated:** [June 9, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/puts-ing-an-array/169843 "2009-06-09T15:50:01Z")

</div>

Hi, In the “pickaxe” book I see how to use a “puts” to populate a file with data. I try the same thing, and, it works, but, it’s listing the data as an array. How can I get separate lines for each item in the array? …

---

## [Simple threading](https://www.ruby-forum.com/t/simple-threading/169836)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/simple-threading/169836 "2009-06-09T15:21:28Z")

</div>

Hi all, I wanted to write a program that request stock quotes say every second. So I started to write a thread like this: require ‘rubygems’ require ‘yahoofinance’ thread=Thread.new do YahooFinance::get\_historical…

---

## [Nokogiri 1.3.0 Released](https://www.ruby-forum.com/t/nokogiri-1-3-0-released/169182)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 31\
**Last updated:** [June 9, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/nokogiri-1-3-0-released/169182 "2009-06-09T15:15:37Z")

</div>

nokogiri version 1.3.0 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://rubyforge.org/mailman/listinfo/nokogiri-talk …

---

## [Linkparser 1.0.4](https://www.ruby-forum.com/t/linkparser-1-0-4/169842)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/linkparser-1-0-4/169842 "2009-06-09T14:46:53Z")

</div>

Version 1.0.4 of linkparser has been released. LinkParser is a Ruby binding for the link-grammar library, a syntactic parser of English. See Link Grammar for more information about the Link Grammar, and http://www.ab…

---

## [How to write a DSL](https://www.ruby-forum.com/t/how-to-write-a-dsl/169835)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 5\
**Last updated:** [June 9, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/how-to-write-a-dsl/169835 "2009-06-09T14:28:02Z")

</div>

Hi there, I’m new to DSLs and wanted to know if someone could tell me some good and deep sources (books, long articles, examples, tutorials, etc.) for how to write DSLs with Ruby. Of course you get some hits with Go…

---

## [Redirect gets to get input from a file insted of from the us](https://www.ruby-forum.com/t/redirect-gets-to-get-input-from-a-file-insted-of-from-the-us/169664)

<div class="topic-metadata">

**Author:** [@kga85](https://www.ruby-forum.com/u/kga85)\
**Replies:** 5\
**Last updated:** [June 9, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/redirect-gets-to-get-input-from-a-file-insted-of-from-the-us/169664 "2009-06-09T13:55:31Z")

</div>

I have this small program, or something like it as this just bigger: test.rb def testing t = gets puts t k = gets puts k end test2.rb testing When I run test2.rb it asks for user input. But I want the program t…

---

## [Ruby dup unexpected behaviour](https://www.ruby-forum.com/t/ruby-dup-unexpected-behaviour/169830)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 2\
**Last updated:** [June 9, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/ruby-dup-unexpected-behaviour/169830 "2009-06-09T12:30:11Z")

</div>

Hi, I got no answer on ubuntu entry at so I resend it here. Does someone have any clues on this ? Thanks, david Hi, got some strange result in ruby1.8 (1.8.7.72-3) on jaunty (up to date). Don’t know if I use cor…

---

## [Ruby OS](https://www.ruby-forum.com/t/ruby-os/169484)

<div class="topic-metadata">

**Author:** [@sparkymat](https://www.ruby-forum.com/u/sparkymat)\
**Replies:** 15\
**Last updated:** [June 9, 2009, 11:46am UTC](https://www.ruby-forum.com/t/ruby-os/169484 "2009-06-09T11:46:12Z")

</div>

I was considering porting the Ruby 1.9 VM to bare metal (something similar to Cleese - Google Code Archive - Long-term storage for Google Code Project Hosting.). I was wondering if someone is already working on this. T…

---

## [Wurfl 1.1.0 Released](https://www.ruby-forum.com/t/wurfl-1-1-0-released/169821)

<div class="topic-metadata">

**Author:** [@Paul\_McMahon](https://www.ruby-forum.com/u/Paul_McMahon)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 10:04am UTC](https://www.ruby-forum.com/t/wurfl-1-1-0-released/169821 "2009-06-09T10:04:49Z")

</div>

wurfl 1.1.0 has been released! http://wurfl.rubyforge.org/ wurfl is a collection of libraries and tools for using and manipulating the WURFL, an XML file containing mobile device information. (http://wurfl.sourceforg…

---

## [SQLite3 and ruby / shoes gui](https://www.ruby-forum.com/t/sqlite3-and-ruby-shoes-gui/169764)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 9:34am UTC](https://www.ruby-forum.com/t/sqlite3-and-ruby-shoes-gui/169764 "2009-06-09T09:34:24Z")

</div>

I am feeling constricted and frustrated! I have had I believe a very good sniff on google trying to find some help with my problem (namely using SQLite). got and printed off the FAQ from sqlite-ruby.rubyforge.org/sql…

---

## [How to sort array ascending, except zero?](https://www.ruby-forum.com/t/how-to-sort-array-ascending-except-zero/169754)

<div class="topic-metadata">

**Author:** [@Paganoni](https://www.ruby-forum.com/u/Paganoni)\
**Replies:** 23\
**Last updated:** [June 9, 2009, 9:19am UTC](https://www.ruby-forum.com/t/how-to-sort-array-ascending-except-zero/169754 "2009-06-09T09:19:38Z")

</div>

Hello, I need to sort \[1,4,2,0,8,9\] to \[1,2,4,8,9,0\] A simple ascending sort but with the zero values to the end I really don’t see how to do Thanks for your help

---

## [Ruby and MS WORD](https://www.ruby-forum.com/t/ruby-and-ms-word/87397)

<div class="topic-metadata">

**Author:** [@terix](https://www.ruby-forum.com/u/terix)\
**Replies:** 18\
**Last updated:** [June 9, 2009, 8:30am UTC](https://www.ruby-forum.com/t/ruby-and-ms-word/87397 "2009-06-09T08:30:59Z")

</div>

Hello! I’m new to Ruby and just wanted to ask if it had any means to create or edit MS Word documents. It so happened that I need to write a simple script filling templates with given data, but using C++ or Delphi is …

---

## [New to Programming: Value of gets for just "Enter"](https://www.ruby-forum.com/t/new-to-programming-value-of-gets-for-just-enter/169689)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 8\
**Last updated:** [June 9, 2009, 4:41am UTC](https://www.ruby-forum.com/t/new-to-programming-value-of-gets-for-just-enter/169689 "2009-06-09T04:41:32Z")

</div>

Hello, I am new to programming in general, and I was having a difficult time figuring out the solution to this problem as well as thinking of good key words that would help me find the solution online. My problem is …

---

## [Httpclient/2.1.5](https://www.ruby-forum.com/t/httpclient-2-1-5/169809)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 4:38am UTC](https://www.ruby-forum.com/t/httpclient-2-1-5/169809 "2009-06-09T04:38:01Z")

</div>

Hi all, httpclient/2.1.5 has been released. This release includes IMPORTANT update for HTTPS(SSL) connection. Trusted CA bundle file included in httpclient \<= 2.1.4 expires in Nov 2009. Please update to 2.1.5 by Oct…

---

## [Strip doesn't take a character set?](https://www.ruby-forum.com/t/strip-doesnt-take-a-character-set/169804)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 5\
**Last updated:** [June 9, 2009, 12:16am UTC](https://www.ruby-forum.com/t/strip-doesnt-take-a-character-set/169804 "2009-06-09T00:16:03Z")

</div>

I wanna do something like newstr = str.strip(/\\D/) I know I could do newstr = str.sub(/^\\D\*/,’’).sub(/\\D\*$/,’’), but is there any better way? xc

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

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