# Ruby

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

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

---

## [Problems with Net/HTTP](https://www.ruby-forum.com/t/problems-with-net-http/96702)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 2\
**Last updated:** [February 2, 2006, 12:02am UTC](https://www.ruby-forum.com/t/problems-with-net-http/96702 "2006-02-02T00:02:00Z")

</div>

Good evening, I’m having problems with Net/HTTP, in that it never seems to be able to complete a connection. I posted about a related problem a little bit ago (http://groups.google.com/group/comp.lang.ruby/browse\_thr…

---

## [Getting hostname from ruby](https://www.ruby-forum.com/t/getting-hostname-from-ruby/99406)

<div class="topic-metadata">

**Author:** [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/getting-hostname-from-ruby/99406 "2006-02-01T23:49:36Z")

</div>

Is there a cleaner way to get the host name from ruby other than hostname? phil

---

## [Strange print](https://www.ruby-forum.com/t/strange-print/99367)

<div class="topic-metadata">

**Author:** [@python](https://www.ruby-forum.com/u/python)\
**Replies:** 2\
**Last updated:** [February 1, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/strange-print/99367 "2006-02-01T23:46:34Z")

</div>

Hi all! I have some text in russian. Then I’ve print it with puts I saw beatiful text, but then use p operator text is “\\353\\317\\314\\314\\305\\304\\326”. How can I solve problem, because when using iconv the problem is s…

---

## [Inheritance from C object with different parameter count](https://www.ruby-forum.com/t/inheritance-from-c-object-with-different-parameter-count/53242)

<div class="topic-metadata">

**Author:** [@Geert\_F](https://www.ruby-forum.com/u/Geert_F)\
**Replies:** 2\
**Last updated:** [February 1, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/inheritance-from-c-object-with-different-parameter-count/53242 "2006-02-01T23:46:33Z")

</div>

Hello, I’m trying to create a derived class (ruby class) from a C-implemented class. Everything works fine, until I tried to add a parameter to the derived class. When I derive from a pure ruby base class, everything …

---

## [Re: Premature end of regular expression with non-ascii chara](https://www.ruby-forum.com/t/re-premature-end-of-regular-expression-with-non-ascii-chara/99145)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [February 1, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/re-premature-end-of-regular-expression-with-non-ascii-chara/99145 "2006-02-01T23:40:26Z")

</div>

When I read in a text with accents from a file under cygwin, these get converted to something like ‘\\352’. You can then search for these using regexps: a=“un texte extrÃªmement Ã©nervant” p splitted\_text=a.split(/(…

---

## [Date\_select no day field](https://www.ruby-forum.com/t/date-select-no-day-field/99994)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 0\
**Last updated:** [February 1, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/date-select-no-day-field/99994 "2006-02-01T23:37:20Z")

</div>

elow I need only to pick year and month ( no days ) how to do this I got like -\> \<%= date\_select(“date”, “”) %\> but it’s displaying year month and day thanks

---

## [Rails installation - incompatible rake?](https://www.ruby-forum.com/t/rails-installation-incompatible-rake/99986)

<div class="topic-metadata">

**Author:** [@Nirav](https://www.ruby-forum.com/u/Nirav)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 11:36pm UTC](https://www.ruby-forum.com/t/rails-installation-incompatible-rake/99986 "2006-02-01T23:36:46Z")

</div>

What do I need to do inorder to install rails? - Thx -ND C:\>gem install rails Attempting local installation of ‘rails’ ERROR: Error installing gem rails\[.gem\]: rails requires rake \>= 0.6.2 C:\>gem install rails-1.0.0…

---

## [Days in this month](https://www.ruby-forum.com/t/days-in-this-month/53337)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/days-in-this-month/53337 "2006-02-01T23:34:18Z")

</div>

How to get int of how many days got this month ?

---

## [Relative dates](https://www.ruby-forum.com/t/relative-dates/98656)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 13\
**Last updated:** [February 1, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/relative-dates/98656 "2006-02-01T23:31:13Z")

</div>

today = Time.now how can I do this? “last\_week = 7.days.ago” I know the above won’t work, but how can I get the date of last week?

---

## [\[SOLUTION\] #64: Text::Graph](https://www.ruby-forum.com/t/solution-64-text-graph/53338)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 0\
**Last updated:** [February 1, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/solution-64-text-graph/53338 "2006-02-01T23:31:12Z")

</div>

A port of Text::Graph, which generates pretty ascii bar graphs from numeric datasets, like aaaa : (1) bb :..\* (22) ccc :...\* (43) dddddd :…\* (500) ee :…(1000) f :… (300) ghi :…\* (50) It accepts dat…

---

## [Nil != \[\]](https://www.ruby-forum.com/t/nil/98322)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 12\
**Last updated:** [February 1, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/nil/98322 "2006-02-01T23:28:09Z")

</div>

OK. Here’s my second stupid question for today. What’s the rational behind having 0, \[\] and “” evaluate to true? “” and \[\], I could kind of see. But 0, how on Gods earth can 0 true? alex

---

## [Premature end of regular expression with non-ascii character](https://www.ruby-forum.com/t/premature-end-of-regular-expression-with-non-ascii-character/53226)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 5\
**Last updated:** [February 1, 2006, 11:25pm UTC](https://www.ruby-forum.com/t/premature-end-of-regular-expression-with-non-ascii-character/53226 "2006-02-01T23:25:06Z")

</div>

Hi, I’m trying to get regular expressions to work with a string that contains letters with accents. I have the following sentence: De kinÃ© weet Ã©Ã©n van hun patiÃ«nten te overtuigen om gekke dingen te doen. The re…

---

## [Local variable and closure](https://www.ruby-forum.com/t/local-variable-and-closure/99943)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/local-variable-and-closure/99943 "2006-02-01T23:19:01Z")

</div>

Hello, below is one little script that fails at ### \<\<\< line the output is Animal has properties Animal will be speakable Dog has properties Dog will be speakable Duck has properties Duck will be speakable …/dor…

---

## [Combining tags in URLs](https://www.ruby-forum.com/t/combining-tags-in-urls/99942)

<div class="topic-metadata">

**Author:** [@MidtownNinja](https://www.ruby-forum.com/u/MidtownNinja)\
**Replies:** 0\
**Last updated:** [February 1, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/combining-tags-in-urls/99942 "2006-02-01T23:06:47Z")

</div>

Hello, I had seen an example on a blog entry about how to combine multiple tags in the URL of a Web application that I think was written in Ruby on Rails. In the example there were two kinds of URLs: http://foo.bar.c…

---

## [Directory structure](https://www.ruby-forum.com/t/directory-structure/53251)

<div class="topic-metadata">

**Author:** [@Giedrius](https://www.ruby-forum.com/u/Giedrius)\
**Replies:** 2\
**Last updated:** [February 1, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/directory-structure/53251 "2006-02-01T23:06:47Z")

</div>

how to set working directory for irb? is there default or if not, could you share your own good coding practice where to put additional source files as: a) wsdl2ruby genereated files b) own classes, not controllers /…

---

## [Methods defined in main](https://www.ruby-forum.com/t/methods-defined-in-main/99941)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/methods-defined-in-main/99941 "2006-02-01T23:06:46Z")

</div>

Hello, I understand that everything in ruby is an object so a method defined in a file like this in a file def meth1 puts self end actually prints main. but when I run it in the debugger mode and do main.methods. …

---

## [Install\_qtruby\_on\_mac](https://www.ruby-forum.com/t/install-qtruby-on-mac/53245)

<div class="topic-metadata">

**Author:** [@SSSBE7LnSSB\_SSBN5BS](https://www.ruby-forum.com/u/SSSBE7LnSSB_SSBN5BS)\
**Replies:** 7\
**Last updated:** [February 1, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/install-qtruby-on-mac/53245 "2006-02-01T23:03:44Z")

</div>

Hi, I am Ryutaro Amano. I am using ruby-1.8.4 on Mac 10.4.4 with XCode-2.2 I have installed qtruby-1.0.10 the following steps after archiving qt-mac-free-3.3.6-snapshot-20060127.tar.bz2, mv / Developer/qt export QT…

---

## [The Seattle Brigade Chats with Bruce Eckel](https://www.ruby-forum.com/t/the-seattle-brigade-chats-with-bruce-eckel/97971)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/the-seattle-brigade-chats-with-bruce-eckel/97971 "2006-02-01T23:00:42Z")

</div>

Quite impressive. http://www.artima.com/weblogs/viewpost.jsp?thread=146091 – James B. “Blanket statements are over-rated”

---

## [Misunderstanding the Passing of references](https://www.ruby-forum.com/t/misunderstanding-the-passing-of-references/98699)

<div class="topic-metadata">

**Author:** [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Replies:** 6\
**Last updated:** [February 1, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/misunderstanding-the-passing-of-references/98699 "2006-02-01T22:54:37Z")

</div>

I’m to to ruby… Currently, I’m stuck in a situation where I’m changing values I’m not intending to and I don’t know how to correct it. I have… A class “Model” and a class “DataObject”. The “Data Object” class has a …

---

## [Loop weirdness](https://www.ruby-forum.com/t/loop-weirdness/98324)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 15\
**Last updated:** [February 1, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/loop-weirdness/98324 "2006-02-01T22:54:37Z")

</div>

Hi, I’m going ever so slightly crazy over some looping behaviour. Here’s a simplified test case I made: def categorise(items) categorised = \[\] add = proc { |item| categorised \<\< { :num =\> item\[:num\], :items =\> \[ i…

---

## [Ruby IPC](https://www.ruby-forum.com/t/ruby-ipc/98176)

<div class="topic-metadata">

**Author:** [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 10:45pm UTC](https://www.ruby-forum.com/t/ruby-ipc/98176 "2006-02-01T22:45:25Z")

</div>

Hello all, I’m very new to Ruby, so excuse me if this is a newbie question. I’ve can’t seem to find much information on different types of IPC in Ruby. I realize there’s sockets, but what about shared memory, mess…

---

## [FreeRide v1p19 glitch](https://www.ruby-forum.com/t/freeride-v1p19-glitch/53333)

<div class="topic-metadata">

**Author:** [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Replies:** 0\
**Last updated:** [February 1, 2006, 10:39pm UTC](https://www.ruby-forum.com/t/freeride-v1p19-glitch/53333 "2006-02-01T22:39:19Z")

</div>

Hi, On Windows XP Pro, 1GHz, 512M I installed the latest version of FreeRide after already having a version from the one click Ruby installer. Things have been going fine for the past week. Today though, I had a …

---

## [Template language similar to examples](https://www.ruby-forum.com/t/template-language-similar-to-examples/99891)

<div class="topic-metadata">

**Author:** [@elriba](https://www.ruby-forum.com/u/elriba)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/template-language-similar-to-examples/99891 "2006-02-01T22:30:13Z")

</div>

Hi, I would like to process a text file which contains property-tokens which are replaced appropiately by the template processing library. Property-tokens can be single value, or can be collection of values. The form…

---

## [IO and non-strings](https://www.ruby-forum.com/t/io-and-non-strings/53308)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 12\
**Last updated:** [February 1, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/io-and-non-strings/53308 "2006-02-01T21:17:28Z")

</div>

How can I write non-string data using the IO class? In particular, I’d like to write an integer across a socket connection. All the methods I see in IO for writing either only write strings or only write the to\_s vers…

---

## [Fwd: Feb BYU RUG meeting 1 week notice](https://www.ruby-forum.com/t/fwd-feb-byu-rug-meeting-1-week-notice/53326)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [February 1, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/fwd-feb-byu-rug-meeting-1-week-notice/53326 "2006-02-01T20:56:15Z")

</div>

The BYU Ruby U. Group will be holding its February meeting on Wednesday the 8th at 7PM. We’re meeting in room 120 of the Talmage Math & Computer Building (TMCB) – see http://map.byu.edu/Map.html for a map of campus i…

---

## [Webservi ce consumption over SSL](https://www.ruby-forum.com/t/webservi-ce-consumption-over-ssl/102808)

<div class="topic-metadata">

**Author:** [@Giedrius](https://www.ruby-forum.com/u/Giedrius)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/webservi-ce-consumption-over-ssl/102808 "2006-02-01T20:10:44Z")

</div>

Hi, as long as nobody answered to my previous question, i’ll try to write in another way. I have: webservice WSDL link (https://something?WSDL, that’s .net webservice) pem file (certificate, needed to authentificate …

---

## [PDF::Writer running out of memory](https://www.ruby-forum.com/t/pdf-writer-running-out-of-memory/99803)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/pdf-writer-running-out-of-memory/99803 "2006-02-01T19:58:38Z")

</div>

I have a bunch of XML files containing specifications and I want to create a PDF file with an overview of the description element from those XML files. I parse the XML and convert it into a Spec object than I create t…

---

## [Foo.h -\> foo.rb](https://www.ruby-forum.com/t/foo-h-foo-rb/53306)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 7:49pm UTC](https://www.ruby-forum.com/t/foo-h-foo-rb/53306 "2006-02-01T19:49:35Z")

</div>

anyone out there written a parser that makes ruby dl bindings for \*.h files? seems like such a beast would exist. regards. -a

---

## [Phoenix Ruby Users Group February Meeting](https://www.ruby-forum.com/t/phoenix-ruby-users-group-february-meeting/53320)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 1, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/phoenix-ruby-users-group-february-meeting/53320 "2006-02-01T17:57:33Z")

</div>

The February meeting of the Phoenix Ruby U. Group will be on: Monday, February 13 Held at: Cyclone Commerce. 8388 E Hartford Dr # 100 Scottsdale, AZ The meeting starts at 6:15 PM. Details may be found on the Refre…

---

## [Way to rexpect on windows](https://www.ruby-forum.com/t/way-to-rexpect-on-windows/99363)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 1\
**Last updated:** [February 1, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/way-to-rexpect-on-windows/99363 "2006-02-01T16:08:24Z")

</div>

Hi List, I am using ruby mostly for running my watir (Web automation tool written in ruby) scripts. However in this process I need to login to unix box and carry out some task before proceding with my test. I could …

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

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