# Ruby

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

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

---

## [Class\_eval and braces](https://www.ruby-forum.com/t/class-eval-and-braces/98057)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 10:35pm UTC](https://www.ruby-forum.com/t/class-eval-and-braces/98057 "2006-01-27T22:35:52Z")

</div>

Hi, as I notice there is a difference between \`class\_eval’ called with a block or with a string. Why? Bertram VERSION = :braces module M def self.included c case VERSION when :braces then c.class\_eval {@@m = ra…

---

## [Csv help](https://www.ruby-forum.com/t/csv-help/98064)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/csv-help/98064 "2006-01-27T22:26:45Z")

</div>

Can anyone point me to a good tutorial on csv files and ruby. I’ve read the docs that go along with the standard csv library but it’s hard to put it all together. I’m trying to write a simple timekeeper application u…

---

## [Developing UI applications](https://www.ruby-forum.com/t/developing-ui-applications/96827)

<div class="topic-metadata">

**Author:** [@Navya\_A](https://www.ruby-forum.com/u/Navya_A)\
**Replies:** 3\
**Last updated:** [January 27, 2006, 10:11pm UTC](https://www.ruby-forum.com/t/developing-ui-applications/96827 "2006-01-27T22:11:40Z")

</div>

Hi, I am a beginner in ruby. I want to know if there any way to develop a UI application(similar to the winforms in .net) in Ruby. I also want to know if there is bridge where in I can write .net code in ruby or vi…

---

## [Re: Find.find or Dirwith spaces in filenames?](https://www.ruby-forum.com/t/re-find-find-or-dirwith-spaces-in-filenames/98058)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/re-find-find-or-dirwith-spaces-in-filenames/98058 "2006-01-27T21:32:31Z")

</div>

\-----Original Message----- From: Ezra Z. \[mailto:removed\_email\_address@domain.invalid\] Sent: Friday, January 27, 2006 1:03 PM To: ruby-talk ML Subject: Find.find or Dir\[\*\*/\*\] with spaces in filenames? @count\_co…

---

## [Find.find or Dirwith spaces in filenames?](https://www.ruby-forum.com/t/find-find-or-dirwith-spaces-in-filenames/98056)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 0\
**Last updated:** [January 27, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/find-find-or-dirwith-spaces-in-filenames/98056 "2006-01-27T21:05:12Z")

</div>

Friends- I have a bunch of automation built using ruby and highline(thanks James and Greg!!!) set up for processing text and image files for the classified and obituaries at the newspaper I work for. But I am trying …

---

## [Rubycocoa embedded ruby interpreter](https://www.ruby-forum.com/t/rubycocoa-embedded-ruby-interpreter/53090)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 3\
**Last updated:** [January 27, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/rubycocoa-embedded-ruby-interpreter/53090 "2006-01-27T20:16:45Z")

</div>

rubies- I have asked before but it got lost in the shuffle. I am working on a bunch of rubycocoa apps for the newspaper I work for. And it is time to deploy them on other machines. I would really like to be able to e…

---

## [Net::SSH 1.0.7](https://www.ruby-forum.com/t/net-ssh-1-0-7/97973)

<div class="topic-metadata">

**Author:** [@jamis](https://www.ruby-forum.com/u/jamis)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/net-ssh-1-0-7/97973 "2006-01-27T18:30:46Z")

</div>

Net::SSH is a pure-ruby library for writing SSH2 clients. There have been a few unannounced releases, culminating in 1.0.7. The summary of changes since 1.0.3 (the last announced release): 1.0.4: mostly fixes to brok…

---

## [Two Lines of C in Ruby Source](https://www.ruby-forum.com/t/two-lines-of-c-in-ruby-source/64367)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 7\
**Last updated:** [January 27, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/two-lines-of-c-in-ruby-source/64367 "2006-01-27T18:27:44Z")

</div>

Hello, Can somebody tell me what these lines of code mean? extern int snprintf \_\_((char \*, size\_t n, char const \*, …)); extern int vsnprintf \_((char \*, size\_t n, char const \*, va\_list)); I am confused over what \_, \_\_…

---

## [Problems compiling Ruby extension in MSVC](https://www.ruby-forum.com/t/problems-compiling-ruby-extension-in-msvc/96973)

<div class="topic-metadata">

**Author:** [@Sriyansa](https://www.ruby-forum.com/u/Sriyansa)\
**Replies:** 2\
**Last updated:** [January 27, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/problems-compiling-ruby-extension-in-msvc/96973 "2006-01-27T15:59:32Z")

</div>

I am trying to compile my ruby extension under Windows with the MSVC compiler shipped with Visual Studio 2003. I have followed the steps outlined here: http://www.koontzfamily.org/david/blog/?p=230 However on doing n…

---

## [Ruby Homepage Redesign](https://www.ruby-forum.com/t/ruby-homepage-redesign/97909)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/ruby-homepage-redesign/97909 "2006-01-27T15:26:20Z")

</div>

Hi I was throwing myself about the net and came across a Ruby homepage redesign site and was just wondering what the status of the redesign was as it was 2005 the last post and there’s been nothing since. http://redh…

---

## [Need help setting up SDL with Ruby](https://www.ruby-forum.com/t/need-help-setting-up-sdl-with-ruby/96899)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 2\
**Last updated:** [January 27, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-sdl-with-ruby/96899 "2006-01-27T14:24:47Z")

</div>

Hello everyone, Can anybody help me set up SDL with Ruby? What do I need to get in order to have SDL with Ruby? Thanks

---

## [Subselecting hash back into hash (oneliner?)](https://www.ruby-forum.com/t/subselecting-hash-back-into-hash-oneliner/53154)

<div class="topic-metadata">

**Author:** [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Replies:** 6\
**Last updated:** [January 27, 2006, 8:23am UTC](https://www.ruby-forum.com/t/subselecting-hash-back-into-hash-oneliner/53154 "2006-01-27T08:23:52Z")

</div>

Going through pick-axe and was just wondering if there was a one liner for something such as this that I may have missed: h2 = Hash.new h1 = {“foo1”=\>“bar1”, “foo2”=\>“bar2”} query = h1.select { |k,v| v == “bar2” } q…

---

## [Ruby user group in/near Wilmington, DE? Interest in starting](https://www.ruby-forum.com/t/ruby-user-group-in-near-wilmington-de-interest-in-starting/53168)

<div class="topic-metadata">

**Author:** [@Obie\_F](https://www.ruby-forum.com/u/Obie_F)\
**Replies:** 0\
**Last updated:** [January 27, 2006, 7:02am UTC](https://www.ruby-forum.com/t/ruby-user-group-in-near-wilmington-de-interest-in-starting/53168 "2006-01-27T07:02:34Z")

</div>

In early February, me and several other ThoughtWorkers\* are starting a substantial Ruby and Rails project at a bank in Wilmington, DE and we will be commuting weekly to the area for at least a few months. I tried to f…

---

## [CGI::Cookie.parse problem?](https://www.ruby-forum.com/t/cgi-cookie-parse-problem/97413)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 6:44am UTC](https://www.ruby-forum.com/t/cgi-cookie-parse-problem/97413 "2006-01-27T06:44:29Z")

</div>

Hi, I’m interfacing with a site that is sending me back a cookie like the following, in the HTTP ‘set-cookie’ field. require 'cgi' raw\_cookie = "ID=867.5309; path=/; domain=site.com, " + "SESS\_mem=deleted; expire…

---

## [Pass References To Methods As Arguments?](https://www.ruby-forum.com/t/pass-references-to-methods-as-arguments/53165)

<div class="topic-metadata">

**Author:** [@wegzumir](https://www.ruby-forum.com/u/wegzumir)\
**Replies:** 6\
**Last updated:** [January 27, 2006, 5:40am UTC](https://www.ruby-forum.com/t/pass-references-to-methods-as-arguments/53165 "2006-01-27T05:40:57Z")

</div>

Hey all. I am trying to determine the Ruby syntax for passing a reference to a method. I want to actually pass the reference itself as an argument to another method. Consider the following simplified Perl example. …

---

## [Release notes?](https://www.ruby-forum.com/t/release-notes/97877)

<div class="topic-metadata">

**Author:** [@ryantate](https://www.ruby-forum.com/u/ryantate)\
**Replies:** 1\
**Last updated:** [January 27, 2006, 2:51am UTC](https://www.ruby-forum.com/t/release-notes/97877 "2006-01-27T02:51:35Z")

</div>

I must be a real dolt. I have been search around at http://www.ruby-lang.org/en/ and I cannot find the release notes for Ruby anywhere. I am looking for the file that outlines changes from the prior version, particula…

---

## [Grid Folding (#63)](https://www.ruby-forum.com/t/grid-folding-63/52930)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 27\
**Last updated:** [January 27, 2006, 2:19am UTC](https://www.ruby-forum.com/t/grid-folding-63/52930 "2006-01-27T02:19:05Z")

</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: …

---

## [Design problems (beginner)](https://www.ruby-forum.com/t/design-problems-beginner/53135)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 3\
**Last updated:** [January 27, 2006, 1:49am UTC](https://www.ruby-forum.com/t/design-problems-beginner/53135 "2006-01-27T01:49:51Z")

</div>

I’m working on a medium-sized project and feel like I either: A. Still don’t understand object-oriented programming -or- B. Am duplicating Ruby syntax which I’m not familiar with First, a little background, (kept mer…

---

## [Textilize and Markdown and URLs](https://www.ruby-forum.com/t/textilize-and-markdown-and-urls/53160)

<div class="topic-metadata">

**Author:** [@Robert\_CSMannl](https://www.ruby-forum.com/u/Robert_CSMannl)\
**Replies:** 4\
**Last updated:** [January 27, 2006, 1:42am UTC](https://www.ruby-forum.com/t/textilize-and-markdown-and-urls/53160 "2006-01-27T01:42:55Z")

</div>

Hi! I’m stumped, maybe someone can explain this to me: Neither Textilize nor Markdown seem to turn plain old URLs into links. That is, I can use their proprietary Syntax to create a link, e.g.: “Google”:http://google…

---

## [WIN32OLE InternetExplorer SaveAs command](https://www.ruby-forum.com/t/win32ole-internetexplorer-saveas-command/97875)

<div class="topic-metadata">

**Author:** [@Derek\_Haskin](https://www.ruby-forum.com/u/Derek_Haskin)\
**Replies:** 0\
**Last updated:** [January 27, 2006, 1:39am UTC](https://www.ruby-forum.com/t/win32ole-internetexplorer-saveas-command/97875 "2006-01-27T01:39:54Z")

</div>

I’ve been trying to use the WIL32OLE to call the InternetExplorer.ExecCommand SaveAs command. I’ve been able to get it to work in the interface mode where it displays a dialogue browser to save the file, but have bee…

---

## [DRb, remote host](https://www.ruby-forum.com/t/drb-remote-host/96900)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 2\
**Last updated:** [January 26, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/drb-remote-host/96900 "2006-01-26T23:54:18Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I am trying to get DRb to work between two different hosts, but I am unable to. I have followed the PickAxe and …

---

## [class\_eval(aString) vs class\_eval(aBlock)](https://www.ruby-forum.com/t/class-eval-astring-vs-class-eval-ablock/96519)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 1\
**Last updated:** [January 26, 2006, 11:24pm UTC](https://www.ruby-forum.com/t/class-eval-astring-vs-class-eval-ablock/96519 "2006-01-26T23:24:04Z")

</div>

Hi, why does class\_eval behave differently is you pass a string or a block to it? This simple test | class A | def test\_str; p self.class.class\_eval("@@v"); end | def test\_blk; p self.class.class\_eval { @@v }; …

---

## [Need a ruby math genius - potential ruby bug](https://www.ruby-forum.com/t/need-a-ruby-math-genius-potential-ruby-bug/53157)

<div class="topic-metadata">

**Author:** [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Replies:** 4\
**Last updated:** [January 26, 2006, 11:01pm UTC](https://www.ruby-forum.com/t/need-a-ruby-math-genius-potential-ruby-bug/53157 "2006-01-26T23:01:17Z")

</div>

Please forgive the longish post, I’ve tried to boil down a bug to its minimum and my hair is now nearly entirely pulled out. The below code should be executable and requires only the “matrix.rb” library that comes wit…

---

## [Module Eval Syntax](https://www.ruby-forum.com/t/module-eval-syntax/53155)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 1\
**Last updated:** [January 26, 2006, 10:53pm UTC](https://www.ruby-forum.com/t/module-eval-syntax/53155 "2006-01-26T22:53:51Z")

</div>

class MyModule; end =\> nil MyModule.class\_variables =\> \[\] MyModule.module\_eval do ?\> @@test = true end =\> true @@test =\> true MyModule.module\_eval “@@weird = true” =\> true @@weird NameError: …

---

## [Code that will returns dates from a recurrence rule?](https://www.ruby-forum.com/t/code-that-will-returns-dates-from-a-recurrence-rule/97809)

<div class="topic-metadata">

**Author:** [@dwightschrute](https://www.ruby-forum.com/u/dwightschrute)\
**Replies:** 0\
**Last updated:** [January 26, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/code-that-will-returns-dates-from-a-recurrence-rule/97809 "2006-01-26T22:12:24Z")

</div>

Given a recurrence rule, for example iCal RRULE (see iCalendar spec: 4.8.5.4 Recurrence Rule), does anyone have code that will provide that valid dates for the rule?

---

## [Subprocess on Windows](https://www.ruby-forum.com/t/subprocess-on-windows/97662)

<div class="topic-metadata">

**Author:** [@interceptpoint](https://www.ruby-forum.com/u/interceptpoint)\
**Replies:** 3\
**Last updated:** [January 26, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/subprocess-on-windows/97662 "2006-01-26T22:08:32Z")

</div>

Whenever my Windows rubyw script launches a subprocess, a command window pops up and immediately disappears. How can I keep this from happening? Details: I keep a daily log of what I do at work. At the command line,…

---

## [Thread local variables](https://www.ruby-forum.com/t/thread-local-variables/97768)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 0\
**Last updated:** [January 26, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/thread-local-variables/97768 "2006-01-26T21:27:20Z")

</div>

Hi Folk, I have a program that creates threads in a loop like so: file.each{|line| ti = getThreadIndex() threads\[ti\] = thread(line) { |line| do\_stuff(line) } } It appears from my observation that the value passed…

---

## [Painfully slow Ruby download](https://www.ruby-forum.com/t/painfully-slow-ruby-download/97766)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 1\
**Last updated:** [January 26, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/painfully-slow-ruby-download/97766 "2006-01-26T21:22:15Z")

</div>

I’m trying to download ruby182-15.exe from Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. and it curr…

---

## [Can't rescue this (http-access2)](https://www.ruby-forum.com/t/cant-rescue-this-http-access2/53097)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 1\
**Last updated:** [January 26, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/cant-rescue-this-http-access2/53097 "2006-01-26T20:55:48Z")

</div>

I have a code like this def connect(redirect=3) # Do we have a url to process do we?? if not simply return if not @uri return nil end begin @clnt = HTTPAccess2::Client.new() @clnt.set\_cookie\_store("cookie.da…

---

## [Threading sync](https://www.ruby-forum.com/t/threading-sync/97176)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 6\
**Last updated:** [January 26, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/threading-sync/97176 "2006-01-26T20:31:40Z")

</div>

Hello, I was thinking of writing my first threaded app in Ruby. One thread should fetch data from the database, another should write it to a file. I would like to use an array, which has hash elements. I append new e…

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

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