# Ruby

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

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

---

## [Ruby Idioms (TextMate Bundle)](https://www.ruby-forum.com/t/ruby-idioms-textmate-bundle/57730)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 13\
**Last updated:** [April 26, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/ruby-idioms-textmate-bundle/57730 "2006-04-26T18:56:52Z")

</div>

Just a short note here, for TextMate users. I’ve made my bundle of Ruby goodies available at: bundle-for-textmate Enjoy. James Edward G. II

---

## [How to make compiler independent extension library on Window](https://www.ruby-forum.com/t/how-to-make-compiler-independent-extension-library-on-window/58860)

<div class="topic-metadata">

**Author:** [@Park\_H](https://www.ruby-forum.com/u/Park_H)\
**Replies:** 0\
**Last updated:** [April 26, 2006, 5:13pm UTC](https://www.ruby-forum.com/t/how-to-make-compiler-independent-extension-library-on-window/58860 "2006-04-26T17:13:36Z")

</div>

Hello, I know there are some issues with various compiler versions of ruby distribution and extension library. Mainly VC++6.0 and VC++7.1 conflict. I guess many people have VC++7.1 and want to make extension library …

---

## [Re: Ruby Idioms (TextMate Bundle)](https://www.ruby-forum.com/t/re-ruby-idioms-textmate-bundle/94245)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [April 26, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/re-ruby-idioms-textmate-bundle/94245 "2006-04-26T17:04:16Z")

</div>

Let me clarify that I understand a plain text file would not generate code interactively in another editor. I guess I’m seeking a collection of all the idioms you have gathered that could be used for study and copy/p…

---

## [Re: Ruby Idioms (TextMate Bundle)](https://www.ruby-forum.com/t/re-ruby-idioms-textmate-bundle/58853)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [April 26, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/re-ruby-idioms-textmate-bundle/58853 "2006-04-26T16:29:36Z")

</div>

Hi James, Would you consider also making the bundle available as a plain text file that does not depend on a particular editor or OS? Regards, Jamal

---

## [Re: Hash#getopt](https://www.ruby-forum.com/t/re-hash-getopt/58849)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [April 26, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/re-hash-getopt/58849 "2006-04-26T15:51:19Z")

</div>

h.ignore\_key\_case = true # or whatever globally for hashes requires a good bit of code to make by sticking to access of options only it’s possible to provide an easy way to do the normal thing in 98% of cases. as …

---

## [How i can to parse string](https://www.ruby-forum.com/t/how-i-can-to-parse-string/58836)

<div class="topic-metadata">

**Author:** [@Jonh](https://www.ruby-forum.com/u/Jonh)\
**Replies:** 7\
**Last updated:** [April 26, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/how-i-can-to-parse-string/58836 "2006-04-26T15:07:26Z")

</div>

I have this string: store\[name\]=Ilyas store,store\[phone\]= 4999-233-2923, store\[fax\]= 80233923293,store\[description\]=lkjklsdaj,save=save,cancel=cancel need with regexp, put it’s in Hash object

---

## [Convert from UseMod to Soks wiki](https://www.ruby-forum.com/t/convert-from-usemod-to-soks-wiki/58841)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 0\
**Last updated:** [April 26, 2006, 2:05pm UTC](https://www.ruby-forum.com/t/convert-from-usemod-to-soks-wiki/58841 "2006-04-26T14:05:00Z")

</div>

Hello, I have an existing UseMod wiki that I’d like to convert to a Soks wiki (which uses RedCloth markup). Does anyone know of an existing translator? Thanks,

---

## [File.open not reading full file when repeatedly called](https://www.ruby-forum.com/t/file-open-not-reading-full-file-when-repeatedly-called/58792)

<div class="topic-metadata">

**Author:** [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Replies:** 4\
**Last updated:** [April 26, 2006, 11:47am UTC](https://www.ruby-forum.com/t/file-open-not-reading-full-file-when-repeatedly-called/58792 "2006-04-26T11:47:26Z")

</div>

I have a trange situation… I have a read method which uses the syntax: data = File.open(myFile) data.each\_line { |line| # read in the file } data.close The file is 6311 lines long. If I read in file\_A and write i…

---

## [Behavior Driven Development](https://www.ruby-forum.com/t/behavior-driven-development/58518)

<div class="topic-metadata">

**Author:** [@Jake\_McArthur](https://www.ruby-forum.com/u/Jake_McArthur)\
**Replies:** 1\
**Last updated:** [April 26, 2006, 11:34am UTC](https://www.ruby-forum.com/t/behavior-driven-development/58518 "2006-04-26T11:34:56Z")

</div>

Does/has anybody here practice(d) behavior driven development (as opposed to test driven development)? If so, would you like to share your experiences? I’ve been looking into it, and I must say that, though I haven’t …

---

## [Ruby 1.8.4 RC1 for Windows debugger problem?](https://www.ruby-forum.com/t/ruby-1-8-4-rc1-for-windows-debugger-problem/93567)

<div class="topic-metadata">

**Author:** [@john\_peter](https://www.ruby-forum.com/u/john_peter)\
**Replies:** 1\
**Last updated:** [April 26, 2006, 10:57am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rc1-for-windows-debugger-problem/93567 "2006-04-26T10:57:35Z")

</div>

i’m trying out my first ruby debugging session from a DOS prompt, but am running into a weird problem as shown below. anyone knows what’s happening? i can’t list my program (ptest.rb) from inside the debug session; al…

---

## [RADRails and Ruby 1.8.4 RC1 for Windows debugger problem](https://www.ruby-forum.com/t/radrails-and-ruby-1-8-4-rc1-for-windows-debugger-problem/93570)

<div class="topic-metadata">

**Author:** [@john\_peter](https://www.ruby-forum.com/u/john_peter)\
**Replies:** 2\
**Last updated:** [April 26, 2006, 10:04am UTC](https://www.ruby-forum.com/t/radrails-and-ruby-1-8-4-rc1-for-windows-debugger-problem/93570 "2006-04-26T10:04:06Z")

</div>

i’m using RADRails 0.61 on Windows XP for both Rails and plain Ruby coding. In my first plain ruby code debugging session, i encountered the following problem: ruby 1.8.4 debugger listens on port 2385 This applicati…

---

## [unpack("M")](https://www.ruby-forum.com/t/unpack-m/94179)

<div class="topic-metadata">

**Author:** [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Replies:** 1\
**Last updated:** [April 26, 2006, 10:02am UTC](https://www.ruby-forum.com/t/unpack-m/94179 "2006-04-26T10:02:41Z")

</div>

e$B$H$\_$?$G$9!#e(B e$B%P%0$+;EMM$+$O$o$+$i$J$$$s$G$9$,!"2~9T%3!\<%I$,e(B CRLF e$B$N;~$Ke(B unpack(“M”) e$B$,$A$c$s$HF/$-$^$;$s!#e(B % ruby -ve ‘puts “aaa=\\nbbb”.unpack(“M”)’ ruby 1.8.4 (2005-12-24) \[i686-linux\] aaab…

---

## [Adding time](https://www.ruby-forum.com/t/adding-time/94237)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 4\
**Last updated:** [April 26, 2006, 6:13am UTC](https://www.ruby-forum.com/t/adding-time/94237 "2006-04-26T06:13:54Z")

</div>

is it possable to do this: “$submit\_time = Time.now $rfpp = 3 $rfpp.times do $submit\_time.hour += 1 end” I get error because you can’t add time like that, so what do I do?

---

## [Re: ruby eventlog monitor for windows](https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/94234)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [April 26, 2006, 3:04am UTC](https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/94234 "2006-04-26T03:04:18Z")

</div>

Berger, Daniel \[mailto:removed\_email\_address@domain.invalid\] of win32 team wrote last Wednesday, April 26, 2006 1:45 AM: require ‘win32/eventlog’ include Win32 # Tail the event log EventLog.open(‘Application’).tai…

---

## [Safe Mode Lowering](https://www.ruby-forum.com/t/safe-mode-lowering/58793)

<div class="topic-metadata">

**Author:** [@Jake\_McArthur](https://www.ruby-forum.com/u/Jake_McArthur)\
**Replies:** 7\
**Last updated:** [April 26, 2006, 1:04am UTC](https://www.ruby-forum.com/t/safe-mode-lowering/58793 "2006-04-26T01:04:34Z")

</div>

I am aware that the safe mode in Ruby can only be set higher, not lower. This makes sense, as unsafe code should not be able to lower the safe mode. However, is there a way to lower it at all, as I can think of many t…

---

## [Mailing list Admin](https://www.ruby-forum.com/t/mailing-list-admin/94224)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 26, 2006, 12:58am UTC](https://www.ruby-forum.com/t/mailing-list-admin/94224 "2006-04-26T00:58:26Z")

</div>

Hi, Who’s the ruby-talk mailing list admin? I set an email to removed\_email\_address@domain.invalid and haven’t heard back. Thanks, T.

---

## [Practices](https://www.ruby-forum.com/t/practices/94044)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 8\
**Last updated:** [April 26, 2006, 12:20am UTC](https://www.ruby-forum.com/t/practices/94044 "2006-04-26T00:20:49Z")

</div>

Is there anything of a best practices on how to use your own modules? I’ve been doing a LOT of this in perl and have just started to play with it in Ruby. Some things I am transistioning from are: use lib – how do I …

---

## [Organizing Ruby code](https://www.ruby-forum.com/t/organizing-ruby-code/58192)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 2\
**Last updated:** [April 26, 2006, 12:17am UTC](https://www.ruby-forum.com/t/organizing-ruby-code/58192 "2006-04-26T00:17:46Z")

</div>

Hi all! I have now completed two web projects using Ruby On Rails in The Real World and I am very happy about it. Woohoo to me! In RoR all the components have been assigned a location in the project tree and I find …

---

## [Win32ole](https://www.ruby-forum.com/t/win32ole/94218)

<div class="topic-metadata">

**Author:** [@yeungsprite](https://www.ruby-forum.com/u/yeungsprite)\
**Replies:** 1\
**Last updated:** [April 25, 2006, 11:52pm UTC](https://www.ruby-forum.com/t/win32ole/94218 "2006-04-25T23:52:39Z")

</div>

Hello, I am new to Ruby and Windows programming and have a question regarding the WIN32OLE. The following sample code is used to launch MS Internet Explorer. require ‘win32ole’ ie = WIN32OLE.new(‘InternetExplorer.Ap…

---

## [Re: Segmentation Fault](https://www.ruby-forum.com/t/re-segmentation-fault/94228)

<div class="topic-metadata">

**Author:** [@McDevittS\_Chris](https://www.ruby-forum.com/u/McDevittS_Chris)\
**Replies:** 0\
**Last updated:** [April 25, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/re-segmentation-fault/94228 "2006-04-25T23:49:26Z")

</div>

Thanks, I am getting the same error. That’s ok, I see there is a new version available, I will try ver 15. -Chris

---

## [Google Calendar lib?](https://www.ruby-forum.com/t/google-calendar-lib/58608)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [April 25, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/google-calendar-lib/58608 "2006-04-25T23:43:07Z")

</div>

I’ve been hacking around with the Google calendar API, but before I reinvent another wheel, I wanted to see if anyone has assembled anything already. There is Google calendar project on RubyForge, but it appears to be …

---

## [FANN bindings](https://www.ruby-forum.com/t/fann-bindings/94226)

<div class="topic-metadata">

**Author:** [@Simon\_KrSSSSger](https://www.ruby-forum.com/u/Simon_KrSSSSger)\
**Replies:** 0\
**Last updated:** [April 25, 2006, 11:18pm UTC](https://www.ruby-forum.com/t/fann-bindings/94226 "2006-04-25T23:18:36Z")

</div>

Hi list, i was looking for a fast neural network simulation just yesterday and found FANN (which is nice) - there was also a link to a site with ruby bindings \[1\] (which is even better). Unfortunately this link was do…

---

## [Re: String interpretation](https://www.ruby-forum.com/t/re-string-interpretation/94222)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [April 25, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/re-string-interpretation/94222 "2006-04-25T22:38:22Z")

</div>

The eval technique works for now–thanks! Is there also a way I can reverse the conversion, i.e., getting a string with standard (not RegExp) tokens from a string variable that has the actual characters, themselves? J…

---

## [Re: win32ole](https://www.ruby-forum.com/t/re-win32ole/94220)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 0\
**Last updated:** [April 25, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/re-win32ole/94220 "2006-04-25T21:17:39Z")

</div>

Unfortunately, I do not think Windows Explorer (the file and folder manager as opposed to web browser) hosts a COM server and object model. It can be automated to some extent by sending messages to its child windows, …

---

## [String interpretation](https://www.ruby-forum.com/t/string-interpretation/58774)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 2\
**Last updated:** [April 25, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/string-interpretation/58774 "2006-04-25T20:28:26Z")

</div>

First, I’m curious why a string delimited with apostrophe characters is not interpreted completely literally. Why does the language make an exception for the backslash character so that it needs to be doubled there a…

---

## [Re: Hash#getopt](https://www.ruby-forum.com/t/re-hash-getopt/94216)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [April 25, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/re-hash-getopt/94216 "2006-04-25T20:22:11Z")

</div>

some\_method arg, “key” =\> “value” or some\_method arg, :key=\>:value are idiomatic ruby. let’s just support it directly and be done with it: I’d rather have a class or instance level method that let me define this …

---

## [Re: ruby eventlog monitor for windows](https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/58770)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [April 25, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/58770 "2006-04-25T19:47:45Z")

</div>

Something like an event viewer yet very powerful, require ‘win32/eventlog’ include Win32 Tail the event log EventLog.open(‘Application’).tail{ |log| p log } Read an event log EventLog.read(‘Application’){ |log| …

---

## [Id3lib-ruby 0.1.0 (first release)](https://www.ruby-forum.com/t/id3lib-ruby-0-1-0-first-release/58693)

<div class="topic-metadata">

**Author:** [@rschuil](https://www.ruby-forum.com/u/rschuil)\
**Replies:** 1\
**Last updated:** [April 25, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/id3lib-ruby-0-1-0-first-release/58693 "2006-04-25T18:45:21Z")

</div>

Hi, I’m glad to announce the first release of id3lib-ruby. It’s a project I started some time ago and thought someone else may find useful, so here it is :slight\_smile: http://id3lib-ruby.rubyforge.org/ == Descripti…

---

## [Blocking Sockets Vulnerability on Ubuntu?](https://www.ruby-forum.com/t/blocking-sockets-vulnerability-on-ubuntu/58659)

<div class="topic-metadata">

**Author:** [@Ben\_Gribaudo](https://www.ruby-forum.com/u/Ben_Gribaudo)\
**Replies:** 2\
**Last updated:** [April 25, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/blocking-sockets-vulnerability-on-ubuntu/58659 "2006-04-25T17:31:19Z")

</div>

Hi Folks, Ubuntu sent out a security announcement re Ruby 1.8 this morning: http://www.ubuntu.com/usn/usn-273-1 I am trying to find background information on this to aid in analyzing its impact on our Web operations.…

---

## [Log4r - context (NDC)](https://www.ruby-forum.com/t/log4r-context-ndc/77505)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 2\
**Last updated:** [April 25, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/log4r-context-ndc/77505 "2006-04-25T13:41:20Z")

</div>

Is there anyway to set a context for log4r? log4j has somethign like NDC Basically, in a web app, I’d like to correlate messages for the same client. I’d like to do something like context = “#{user.ip} #{user.name}” …

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

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