# Ruby

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

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

---

## [Ruby socket support](https://www.ruby-forum.com/t/ruby-socket-support/133989)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 10:36am UTC](https://www.ruby-forum.com/t/ruby-socket-support/133989 "2008-04-06T10:36:22Z")

</div>

Hello all, I’m getting this error trying to use use gems /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in \`gem\_original\_require’: no such file to load – socket (LoadError) ruby and ruby gems is built agai…

---

## [GC help](https://www.ruby-forum.com/t/gc-help/133359)

<div class="topic-metadata">

**Author:** [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Replies:** 14\
**Last updated:** [April 6, 2008, 4:08am UTC](https://www.ruby-forum.com/t/gc-help/133359 "2008-04-06T04:08:31Z")

</div>

I am still running out of memory with my ruby application. For some reason, there are objects that are not getting reclaimed long after their use is up. I understand the mark and sweep GC algorithm. Is there a method…

---

## [April Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/april-phoenix-ruby-user-group-meeting/133981)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 6, 2008, 1:03am UTC](https://www.ruby-forum.com/t/april-phoenix-ruby-user-group-meeting/133981 "2008-04-06T01:03:40Z")

</div>

April Phoenix Ruby U. Group Meeting Date: Monday, April 14, 2008 Time: 6:00 pm - Socializing 6:30 pm - Official start of meeting Place: Rising Tide Software 4643 E. Thomas Rd, Suite #3 Phoenix, AZ 85018 (602) 71…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/133976)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 1\
**Last updated:** [April 5, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/no-subject/133976 "2008-04-05T23:59:51Z")

</div>

The Gondor Library enables users of the Ruby language (on the MRI, JRuby or IronRuby) to quickly implement agents for all kinds of situations (for example game AI, or stock market modeling), while focusing on the tas…

---

## [SNMP support](https://www.ruby-forum.com/t/snmp-support/133973)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/snmp-support/133973 "2008-04-05T22:46:01Z")

</div>

Hello I am the author of NetHorus, a Network Management System written in Ruby, using Rails, and originally written in PHP/perl. There are several limitations in Ruby’s SNMP support, most notably in MIB parsing. F…

---

## [MVM interface draft](https://www.ruby-forum.com/t/mvm-interface-draft/133781)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 12\
**Last updated:** [April 5, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/mvm-interface-draft/133781 "2008-04-05T20:50:24Z")

</div>

e$B$J$+$@$G$9!#e(B e$B@h!9=5$K$J$j$^$9$,!"$5$5$@$5$s$H$$$m$$$mOC$79g$$$7$F$-$^$7$?!#$=e(B e$B$N$&$A!"e(BMVMe$B$Ne(BCe$B%$%s%?!\<%U%’!\<%9$KIU$$$F$N7o$G$9!#e(B e$B$^$@O3$l$J$I$"$k$+$b$7$l$^$;$s$,!"$H$j$"$($:!#e(B = VM C…

---

## [Paramix](https://www.ruby-forum.com/t/paramix/133968)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/paramix/133968 "2008-04-05T19:05:07Z")

</div>

I’ve just finished restoring paramix.rb to Facets library. You can expect it in 2.4.2 which I will release soon. (Note that the version included in 2.4.1 is a work in progress and should not be used). Just to let peop…

---

## [Wc-lib 0.8.6 Released](https://www.ruby-forum.com/t/wc-lib-0-8-6-released/133965)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/wc-lib-0-8-6-released/133965 "2008-04-05T18:39:55Z")

</div>

Today i’ve released a new version of wc-lib. Home http://det.cable.nu/wclib/index.rbx About Wc-lib is a library to use webcams with ruby under linux. It supports video4linux in both version (I+II) and autodetects th…

---

## [Is there any Ruby parser for command inline parameters (ARGV\[\])?](https://www.ruby-forum.com/t/is-there-any-ruby-parser-for-command-inline-parameters-argv/133959)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [April 5, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/is-there-any-ruby-parser-for-command-inline-parameters-argv/133959 "2008-04-05T18:00:29Z")

</div>

Hi, I usually do Ruby scripts for some tasks and many of them allow inline parameters, for example: ./script1.rb -n -vv -o file.out filein Is there any Ruby library/gem to parse inline parameters easily? this is, p…

---

## [Does YAML allow TAB for indentation?](https://www.ruby-forum.com/t/does-yaml-allow-tab-for-indentation/133961)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [April 5, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/does-yaml-allow-tab-for-indentation/133961 "2008-04-05T17:59:19Z")

</div>

Hi, I’m trying YAML with Ruby and it allows TAB for indentation, but it seems that it shouldn’t be allowed (at least Wikipedia says that). Is then TAB allowed or not for indentation in YAML format? Maybe Ruby YAML al…

---

## [Help with iCalendar Gem](https://www.ruby-forum.com/t/help-with-icalendar-gem/133839)

<div class="topic-metadata">

**Author:** [@cparticle](https://www.ruby-forum.com/u/cparticle)\
**Replies:** 3\
**Last updated:** [April 5, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/help-with-icalendar-gem/133839 "2008-04-05T17:47:27Z")

</div>

Hi, Does anyone have any experience with the iCalendar Gem. I’m having trouble understanding how to make changes to my ics once its been read in and I’ve found and the event I want to change. #read events from ics fi…

---

## [London Ruby User Group - 14th April 2008](https://www.ruby-forum.com/t/london-ruby-user-group-14th-april-2008/133951)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-14th-april-2008/133951 "2008-04-05T14:19:31Z")

</div>

Hi all, The next meeting of the London Ruby U. Group is on Monday the 14th of April. Date: Monday, 14th April, 2008 Time: 6:30 for the talks, 8:00pm (ish) for the pub Location: 1 Sekforde Street\[1\] for the talks, Th…

---

## [Atom & the Standard Library RSS Module](https://www.ruby-forum.com/t/atom-the-standard-library-rss-module/133918)

<div class="topic-metadata">

**Author:** [@grant](https://www.ruby-forum.com/u/grant)\
**Replies:** 4\
**Last updated:** [April 5, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/atom-the-standard-library-rss-module/133918 "2008-04-05T14:15:26Z")

</div>

I need to parse RSS 1.0, 2.0 and ATOM feeds. I upgraded my RSS module to the latest version (0.2.4) to get ATOM support. The strange thing is that the data structure returned for ATOM feeds is ugly and wildly inconsis…

---

## [Rubytorrent, interrogate](https://www.ruby-forum.com/t/rubytorrent-interrogate/133950)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/rubytorrent-interrogate/133950 "2008-04-05T14:05:29Z")

</div>

does anyone know if rubytorrent can be used to interrogate a torrent ? (get the peers and the filesize for example) I have looked but I cant see a way to get that info without downloading rubytorrent downloading the f…

---

## [How to call a dll file using ruby code](https://www.ruby-forum.com/t/how-to-call-a-dll-file-using-ruby-code/133948)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/how-to-call-a-dll-file-using-ruby-code/133948 "2008-04-05T14:01:19Z")

</div>

HI, In my application i have a requirement to call a dll file. How to call a dll file using ruby code… Thanks, Ratnavel.

---

## [JRuby 1.1 Released](https://www.ruby-forum.com/t/jruby-1-1-released/133947)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/jruby-1-1-released/133947 "2008-04-05T13:14:15Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1 is the second major release for our project. The main goal for…

---

## [\[regexp\] How to extract](https://www.ruby-forum.com/t/regexp-how-to-extract/133928)

<div class="topic-metadata">

**Author:** [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Replies:** 5\
**Last updated:** [April 5, 2008, 11:08am UTC](https://www.ruby-forum.com/t/regexp-how-to-extract/133928 "2008-04-05T11:08:27Z")

</div>

From: #header h1 a { display: block; background: url(images/wordpress-logo.png) center left no-repeat; width: 301px; height: 88px; text-indent: -9999px; float: left; } #header ul li#download a { background: #d5…

---

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

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 6\
**Last updated:** [April 5, 2008, 4:25am UTC](https://www.ruby-forum.com/t/win32-service/197215 "2008-04-05T04:25:58Z")

</div>

Hello, I’m trying to add a application as a service in Windows XP Pro I’m using the following code grabbed from KirbyBase: svc = Service.new(“localhost”) svc.create\_service do |s| s.service\_name = “TBWin32ReportingA…

---

## [\[$B\<ALd#2E@(B\] C $B$+$i$NDj?t;2\>H(B & thread switching $B%3%9%H$NDc8:(B](https://www.ruby-forum.com/t/b-ald-2e-b-c-b-i-ndj-t-2-h-b-thread-switching-b-3-9-h-ndc8-b/132974)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 3\
**Last updated:** [April 5, 2008, 3:22am UTC](https://www.ruby-forum.com/t/b-ald-2e-b-c-b-i-ndj-t-2-h-b-thread-switching-b-3-9-h-ndc8-b/132974 "2008-04-05T03:22:50Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B e$B$9$\_$^$;$s$,!$#2E@\<ALd$5$;$F$/$@$5$$!%e(B e$B$^$:#1E@L$G$9!%e(B —\[e$B\<ALd#1e(B\]----------------------------------------------------- C e$B8@8l$G=q$+$l$?4X?t$Ke(B “::AAA::BBB::CCC” e$…

---

## [Using a string as executable code](https://www.ruby-forum.com/t/using-a-string-as-executable-code/133830)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 13\
**Last updated:** [April 5, 2008, 1:56am UTC](https://www.ruby-forum.com/t/using-a-string-as-executable-code/133830 "2008-04-05T01:56:53Z")

</div>

I need to store one line method calls as strings in my db and then apply them to an object. For example, I would store “name.upcase” in the db and then somehow call person.name.upcase. Any idea how I might pull this o…

---

## [DSL implementation question](https://www.ruby-forum.com/t/dsl-implementation-question/133836)

<div class="topic-metadata">

**Author:** [@tender\_flake](https://www.ruby-forum.com/u/tender_flake)\
**Replies:** 2\
**Last updated:** [April 5, 2008, 1:55am UTC](https://www.ruby-forum.com/t/dsl-implementation-question/133836 "2008-04-05T01:55:06Z")

</div>

Hello, I’m trying to write a simple DSL to define memory maps of hardware devices. Something like: cfg\_block “top\_device”, :depth =\> 16 do reg “ctrl\_reg”, :offset =\> 0, :mode =\> “RW” reg “status\_reg”, :offset =\> 1,…

---

## [New to RoR. Using text input as a parameter in query](https://www.ruby-forum.com/t/new-to-ror-using-text-input-as-a-parameter-in-query/133903)

<div class="topic-metadata">

**Author:** [@bensinc](https://www.ruby-forum.com/u/bensinc)\
**Replies:** 4\
**Last updated:** [April 4, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/new-to-ror-using-text-input-as-a-parameter-in-query/133903 "2008-04-04T22:36:36Z")

</div>

I’m new to RoR and I am trying to figure out how to use user input from a text field as a parameter in a query. I know this is probably simple but I have been messing around with it for a while and can’t figuire it ou…

---

## [Json gem error help please?](https://www.ruby-forum.com/t/json-gem-error-help-please/133908)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 1\
**Last updated:** [April 4, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/json-gem-error-help-please/133908 "2008-04-04T21:31:11Z")

</div>

Hi, Could someone please point me in the right direction, I need the json gem for an apps I am working on, Iâ€™m new to RoR been working with it for around 4 weeks now im instant rails on windows. i have been given a …

---

## [Funny date parsing](https://www.ruby-forum.com/t/funny-date-parsing/133905)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [April 4, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/funny-date-parsing/133905 "2008-04-04T21:05:55Z")

</div>

i enter 2008 and it becomes 0008 irb(main):009:0\> Date.parse(“04-Feb-08”).strftime(’%Y-%m-%d’) =\> “0008-02-04”

---

## [Is there any standard package to dump to ruby data structures](https://www.ruby-forum.com/t/is-there-any-standard-package-to-dump-to-ruby-data-structures/133856)

<div class="topic-metadata">

**Author:** [@adm](https://www.ruby-forum.com/u/adm)\
**Replies:** 7\
**Last updated:** [April 4, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/is-there-any-standard-package-to-dump-to-ruby-data-structures/133856 "2008-04-04T20:57:05Z")

</div>

Is there any standard package to dump ruby data structures into a string/stream? which can be eval’d back in ruby script. something like perl’s Data::Dumper?

---

## [Get datetime object](https://www.ruby-forum.com/t/get-datetime-object/133901)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [April 4, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/get-datetime-object/133901 "2008-04-04T20:45:51Z")

</div>

how to convert the string in this format =“Monday April, 3, 2006 10:34 AM” into a datetime object. When i use Date.parse, i lose the time on it. when i use ParseDate.parsedate(d) i get only a array. any help is apprec…

---

## [Problems Compiling IronRuby w/ Mono](https://www.ruby-forum.com/t/problems-compiling-ironruby-w-mono/133884)

<div class="topic-metadata">

**Author:** [@netshade](https://www.ruby-forum.com/u/netshade)\
**Replies:** 5\
**Last updated:** [April 4, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/problems-compiling-ironruby-w-mono/133884 "2008-04-04T20:44:06Z")

</div>

I’ve got the following build errors trying to compile IronRuby trunk w/ Mono 1.9 on OSX. Build output: (in /opt/src/mono/ironruby/trunk) Read in 49 resources from ‘/opt/src/mono/ironruby/trunk/src/microsoft.scriptin…

---

## [Lookup of Capitalized Methods](https://www.ruby-forum.com/t/lookup-of-capitalized-methods/133878)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 9\
**Last updated:** [April 4, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/lookup-of-capitalized-methods/133878 "2008-04-04T18:52:56Z")

</div>

Well, silly me, I just realized what I suppose is THE issue with capitalized methods serving as proxies for modules/classes. To put it in context, I was working on Parametric mixins, such that some #Includable() retur…

---

## [Convert day of year to month, day](https://www.ruby-forum.com/t/convert-day-of-year-to-month-day/133883)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 7\
**Last updated:** [April 4, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/convert-day-of-year-to-month-day/133883 "2008-04-04T18:32:08Z")

</div>

Hi, What’s the “ruby way” to go from a date/time format that is “Year Day\_of\_Year time” to “Year Month Day”. E.g. I want to convert year=2008, day\_of\_year=095, frequently represented as “2008-095” to it’s more usual…

---

## [Execute method at a certain time](https://www.ruby-forum.com/t/execute-method-at-a-certain-time/133812)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 9\
**Last updated:** [April 4, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/execute-method-at-a-certain-time/133812 "2008-04-04T18:04:46Z")

</div>

I have written a ruby script that needs to run all the time, then at a certain time of day it needs to execute a specific method. what is the best way of doing this ? I could have the first script dump its data to a f…

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

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