# Ruby

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

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

---

## [Multiple Trees in a better\_nested\_set Table](https://www.ruby-forum.com/t/multiple-trees-in-a-better-nested-set-table/126046)

<div class="topic-metadata">

**Author:** [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 12:34am UTC](https://www.ruby-forum.com/t/multiple-trees-in-a-better-nested-set-table/126046 "2008-01-15T00:34:11Z")

</div>

Hi All, I also sent this message out to the better\_nested\_set mailing list so I’ll update this thread if that yields a response. I’m having trouble configuring a table to be able to accommodate multiple trees. I …

---

## [Regular expression](https://www.ruby-forum.com/t/regular-expression/125985)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 14\
**Last updated:** [January 15, 2008, 12:25am UTC](https://www.ruby-forum.com/t/regular-expression/125985 "2008-01-15T00:25:25Z")

</div>

hey im lookiing to be able to write a regular expressions which deals with 10 letter strings which end in either “ed” or “ing” any help would be much appreciated thanks

---

## [Design patterns in ruby: any good?](https://www.ruby-forum.com/t/design-patterns-in-ruby-any-good/125371)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 16\
**Last updated:** [January 14, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/design-patterns-in-ruby-any-good/125371 "2008-01-14T23:30:11Z")

</div>

Has anybody read it? Does it come recommendafied? I still haven’t found a great tech bookstore in Los A. so I haven’t browsed it. – Giles B. Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogs…

---

## [Ruby-wmi 0.2.2 Released](https://www.ruby-forum.com/t/ruby-wmi-0-2-2-released/126041)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/ruby-wmi-0-2-2-released/126041 "2008-01-14T23:19:53Z")

</div>

Subject: \[ANN\] ruby-wmi 0.2.2 Released ruby-wmi version 0.2.2 has been released! http://ruby-wmi.rubyforge.org/ removed\_email\_address@domain.invalid ruby-wmi is an ActiveRecord style interface for Microsoft’s …

---

## [Refactoring request](https://www.ruby-forum.com/t/refactoring-request/125829)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 9\
**Last updated:** [January 14, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/refactoring-request/125829 "2008-01-14T19:57:45Z")

</div>

Hi, I’ve stalled out on making this simpler, and I’m seeking help pairing this beast down… Given unused is a hash of arrays where each array has repeated elements, make elements unique in each array and remove all n…

---

## [A wrapper for logging the executables' usage](https://www.ruby-forum.com/t/a-wrapper-for-logging-the-executables-usage/126022)

<div class="topic-metadata">

**Author:** [@Max\_Bret](https://www.ruby-forum.com/u/Max_Bret)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/a-wrapper-for-logging-the-executables-usage/126022 "2008-01-14T19:27:52Z")

</div>

Hi, Does anyone have a script which will log in the dates, times and usernames for any particular executable run on a system? Can this be done by callbacks? Your help will be greatly appreciated. Thanks, Max …

---

## [Regex help partial code](https://www.ruby-forum.com/t/regex-help-partial-code/125928)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [January 14, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/regex-help-partial-code/125928 "2008-01-14T19:00:10Z")

</div>

Hello I have with great effort started on teh regex implemention and am stuck at one point. here is my code (add)\\s+\\S+\\s+\[i|s|f\]\\s+\[pei\]?\\s+ The string is as follows and the tokens are equavalent to 1 token=Add 2…

---

## [Thin v0.5.2 Cheezburger released](https://www.ruby-forum.com/t/thin-v0-5-2-cheezburger-released/125857)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 8\
**Last updated:** [January 14, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/thin-v0-5-2-cheezburger-released/125857 "2008-01-14T18:06:59Z")

</div>

Hey all, Version 0.5.2 (codename Cheezburger) of the fastest Ruby server is out! Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history: the Mongrel parser: the root of Mongrel spe…

---

## [1.9 significantly slower than 1.8 on Mac](https://www.ruby-forum.com/t/1-9-significantly-slower-than-1-8-on-mac/125863)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 6\
**Last updated:** [January 14, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/1-9-significantly-slower-than-1-8-on-mac/125863 "2008-01-14T18:04:03Z")

</div>

I know 1.9.0 is still a work in progress, but I was expecting to see some benefit from YARV already. However, this simple script showing a typical bit of logfile processing takes over 70% LONGER under Ruby 1.9 on a Ma…

---

## [Counting Cards (#152)](https://www.ruby-forum.com/t/counting-cards-152/125723)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 10\
**Last updated:** [January 14, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/counting-cards-152/125723 "2008-01-14T17:18:46Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Using ruby.h to generate C++ vectors and maps](https://www.ruby-forum.com/t/using-ruby-h-to-generate-c-vectors-and-maps/125759)

<div class="topic-metadata">

**Author:** [@el2king](https://www.ruby-forum.com/u/el2king)\
**Replies:** 6\
**Last updated:** [January 14, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/using-ruby-h-to-generate-c-vectors-and-maps/125759 "2008-01-14T16:59:10Z")

</div>

I am trying to use ruby.h to extend Ruby with C/C++. I understand how to deal with numbers and strings, but I am having trouble finding documentation about vectors and maps. Let’s say I have this function for exampl…

---

## [Encoding.compatible? and dummy encodings](https://www.ruby-forum.com/t/encoding-compatible-and-dummy-encodings/125878)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 9\
**Last updated:** [January 14, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/encoding-compatible-and-dummy-encodings/125878 "2008-01-14T15:44:21Z")

</div>

e$B$3$s$K$A$Oe(B sheepman e$B$G$9!#e(B ISO-2022-JP e$B$JJ8;zNs$He(B EUC-JP e$B$JJ8;zNs$,e(B compatible e$B$He(B e$B$J$j$^$9$,$3$l$O0U?^$5$l$?$3$H$G$7$g$&$+!#e(B dummy e$B%(%s%3!\<%G%#%s%0$@$H$3$&$$$&Iw$K$J$k$b$N$J$N$G$…

---

## [JRuby vs MRI vs POSIX locale - does it matter?](https://www.ruby-forum.com/t/jruby-vs-mri-vs-posix-locale-does-it-matter/125993)

<div class="topic-metadata">

**Author:** [@jochen\_hayek](https://www.ruby-forum.com/u/jochen_hayek)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/jruby-vs-mri-vs-posix-locale-does-it-matter/125993 "2008-01-14T15:17:59Z")

</div>

A note in advance: I am still trying hard to avoid offenses. Pls forgive me, if I fail once in a while! Now that we got a little surprised by Matz’s statement on Dow ruby's strftime not attempt POSIX-compliance? - Ru…

---

## [Setting string width](https://www.ruby-forum.com/t/setting-string-width/125967)

<div class="topic-metadata">

**Author:** [@hurcan\_solter](https://www.ruby-forum.com/u/hurcan_solter)\
**Replies:** 7\
**Last updated:** [January 14, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/setting-string-width/125967 "2008-01-14T14:21:14Z")

</div>

Hi there,Just a quick question … I’d like to insert newlines into a string around every 80ish character and those newlines shouldnt cut the words in the middle. Can anybody post a snippet how to do that TIA hurcan

---

## [Stream Parsing with REXML](https://www.ruby-forum.com/t/stream-parsing-with-rexml/125836)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 12\
**Last updated:** [January 14, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/stream-parsing-with-rexml/125836 "2008-01-14T14:18:07Z")

</div>

Hi (again, sort of) :slight\_smile: I am still on my quest to write a program that parses a large XML file. After having tried to do it in tree mode, I had to realize that the performance was simply abysmal. So back to…

---

## [Is iif available](https://www.ruby-forum.com/t/is-iif-available/125917)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 8\
**Last updated:** [January 14, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/is-iif-available/125917 "2008-01-14T12:43:11Z")

</div>

is there a IIF equavalent in Ruby. I could not find one I am looking for something like result=IIF(left==right,returntrueval, returnfalseval) I can wriet a quick function to do it but if something exists, i dont want…

---

## [Two dimention arrays and accessing syslog](https://www.ruby-forum.com/t/two-dimention-arrays-and-accessing-syslog/125961)

<div class="topic-metadata">

**Author:** [@Sean\_Murphy](https://www.ruby-forum.com/u/Sean_Murphy)\
**Replies:** 2\
**Last updated:** [January 14, 2008, 10:01am UTC](https://www.ruby-forum.com/t/two-dimention-arrays-and-accessing-syslog/125961 "2008-01-14T10:01:12Z")

</div>

All, A newby question, only been using Ruby for about 2 days. Is there a better way of creating a two dimention array, than the code used below def create\_world x, y row = Array.new y.times { |j| col = Array.new …

---

## [GNU Emacs + Ruby (not RoR)](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [January 14, 2008, 9:35am UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833 "2008-01-14T09:35:50Z")

</div>

Hi everyone, I’m trying to setup GNU Emacs (Aquamacs) for developing with Ruby, not Ruby on Rails. I’m having a hard time since I’m newbie to Emacs and almost all references I’ve found deal with RoR setup, not Ruby. …

---

## [IO#gets with limit](https://www.ruby-forum.com/t/io-gets-with-limit/125966)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 9:32am UTC](https://www.ruby-forum.com/t/io-gets-with-limit/125966 "2008-01-14T09:32:19Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B IO#gets e$B$Ke(B limit e$B$rIU$1$F8F$V$He(B valid\_encoding e$B$8$c$J$$e(B e$BJ8;zNs$,JV$C$F$-$^$9!#e(B $ cat test.txt e$B$$$m$Oe(B $ cat t.rb #-- coding: euc-jp -- io = open…

---

## [Malaysia.rb January 2008 Meetup](https://www.ruby-forum.com/t/malaysia-rb-january-2008-meetup/125962)

<div class="topic-metadata">

**Author:** [@kamal](https://www.ruby-forum.com/u/kamal)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 9:23am UTC](https://www.ruby-forum.com/t/malaysia-rb-january-2008-meetup/125962 "2008-01-14T09:23:27Z")

</div>

Hi all, Malaysia.rb is kicking off 2008 with a bang! The January 2008 Meetup is happening this Thursday and it’s gonna seriously rock. Four reasons why you shouldn’t miss this meetup: Meeting room with AV facilities…

---

## [ANN: Babel 0.1.1 Released](https://www.ruby-forum.com/t/ann-babel-0-1-1-released/125923)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 3\
**Last updated:** [January 14, 2008, 8:11am UTC](https://www.ruby-forum.com/t/ann-babel-0-1-1-released/125923 "2008-01-14T08:11:17Z")

</div>

Babel 0.1.1 has just been released. Babel is a tiny library for translating between languages using Google’s automatic language translation. More information about Google’s automatic translation can be found here: ht…

---

## [Regualr expression (need help)](https://www.ruby-forum.com/t/regualr-expression-need-help/125907)

<div class="topic-metadata">

**Author:** [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Replies:** 14\
**Last updated:** [January 14, 2008, 7:47am UTC](https://www.ruby-forum.com/t/regualr-expression-need-help/125907 "2008-01-14T07:47:16Z")

</div>

Hi all, anybody an idea how to transform the date out of this string Not After : Apr 3 11:13:11 2008 GMT to 2008-4-3 Help is very apreciated!! Thx. Henry

---

## [FXText.new](https://www.ruby-forum.com/t/fxtext-new/125677)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 3\
**Last updated:** [January 14, 2008, 5:19am UTC](https://www.ruby-forum.com/t/fxtext-new/125677 "2008-01-14T05:19:24Z")

</div>

My FXText is multiple line text box. How the FXText.new always show the last line?

---

## [Re: Counting Cards (#152)](https://www.ruby-forum.com/t/re-counting-cards-152/125939)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 1\
**Last updated:** [January 14, 2008, 1:07am UTC](https://www.ruby-forum.com/t/re-counting-cards-152/125939 "2008-01-14T01:07:20Z")

</div>

I opted to take the lazy route this time, and just print out the names of the cards. However, I did leave in code for another counting system. (Before anyone critiques the presence of cartesian\_product, I am well awar…

---

## [Gems docs project?](https://www.ruby-forum.com/t/gems-docs-project/125832)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 6\
**Last updated:** [January 13, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/gems-docs-project/125832 "2008-01-13T23:00:56Z")

</div>

Is there a project to keep Gems documentation up to date? Seems like gems troubleshooting occurs a lot here and at least some of the questions are FAQ. (For example, the “fix gems! no, fix debian!” argument that seems…

---

## [Stupid question. I'm in deadend](https://www.ruby-forum.com/t/stupid-question-im-in-deadend/125920)

<div class="topic-metadata">

**Author:** [@sublime](https://www.ruby-forum.com/u/sublime)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/stupid-question-im-in-deadend/125920 "2008-01-13T22:49:25Z")

</div>

I’m newbie. Please, help. I suppose it’s easy :slight\_smile: I have admin controller which is working ok and with usual controller I have trouble. This is app/controllers/team\_controller.rb class TeamController \< Ap…

---

## [Known api for mbtrading](https://www.ruby-forum.com/t/known-api-for-mbtrading/125924)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/known-api-for-mbtrading/125924 "2008-01-13T21:25:41Z")

</div>

are there any known ruby api/gem to interface with mbtrading sdk

---

## [Problem in rbx](https://www.ruby-forum.com/t/problem-in-rbx/125919)

<div class="topic-metadata">

**Author:** [@visage](https://www.ruby-forum.com/u/visage)\
**Replies:** 4\
**Last updated:** [January 13, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/problem-in-rbx/125919 "2008-01-13T20:08:05Z")

</div>

Hi, all, I’m new to the list, as I’m interested in getting involved in the IronRuby project (combine my two loves: ruby and C#). I followed John’s video on downloading and installing it, and I noticed one major diffe…

---

## [Re: Float parsing is culture dependent (patch	included)](https://www.ruby-forum.com/t/re-float-parsing-is-culture-dependent-patch-included/125904)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/re-float-parsing-is-culture-dependent-patch-included/125904 "2008-01-13T17:26:58Z")

</div>

Yes it is. But its a trivial one-line patch that doesn’t have any clear alternative implementation, so it’s ok. John Sent from my phone

---

## [Time.rb](https://www.ruby-forum.com/t/time-rb/125801)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/time-rb/125801 "2008-01-13T16:41:44Z")

</div>

time.rb e$B$O!"e(BTime e$B$r7Q\>5$7$?:\]$K$&$^$/5!G=$7$J$$$h$&$K;W$$$^$9!#e(B e$B$?$H$($P!"e(B $ cat t2.rb require ‘time’ class Time2 \< Time; end e$B$H$7$?\>l9g!"F1$8e(B httpdate e$B$G$b!"7A\<0$N0c$$$K$h$j!"e(BTime e$…

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

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