# Ruby

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

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

---

## [Aborting a rake task which uses a subprocess](https://www.ruby-forum.com/t/aborting-a-rake-task-which-uses-a-subprocess/82101)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/aborting-a-rake-task-which-uses-a-subprocess/82101 "2007-01-17T12:40:04Z")

</div>

Hi all, I’ve got a rake file which I use to deploy a website. This rakefile involves running a bunch of backticked subprocesses (like ssh sessions, lftp sessions and so on). Often, I can spot that something has gone …

---

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

<div class="topic-metadata">

**Author:** [@Anjum\_P](https://www.ruby-forum.com/u/Anjum_P)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/no-subject/82098 "2007-01-17T12:04:52Z")

</div>

Unsubscribe Anjum P.

---

## [Ruby on Linux with date extension](https://www.ruby-forum.com/t/ruby-on-linux-with-date-extension/82090)

<div class="topic-metadata">

**Author:** [@R.Smits](https://www.ruby-forum.com/u/R.Smits)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 11:40am UTC](https://www.ruby-forum.com/t/ruby-on-linux-with-date-extension/82090 "2007-01-17T11:40:47Z")

</div>

Hello, I want to compile ruby on Redhat Enterprise 3 with the “date” and “net/smtp” extensions. But when I enable them in ext/Setup, I get an error. Does anyone know what this means ? compiling date make\[1\]: Enteri…

---

## [Socket errors](https://www.ruby-forum.com/t/socket-errors/82078)

<div class="topic-metadata">

**Author:** [@midnightcoder](https://www.ruby-forum.com/u/midnightcoder)\
**Replies:** 1\
**Last updated:** [January 17, 2007, 11:39am UTC](https://www.ruby-forum.com/t/socket-errors/82078 "2007-01-17T11:39:47Z")

</div>

Howdy, The documentation for Socket#accept gives an example of a ruby script to bind to a socket and listen for incoming connections. Unfortunately the script fails with the bind method. Here is the script with the a…

---

## [Ruby/Password Windows](https://www.ruby-forum.com/t/ruby-password-windows/82085)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 11:10am UTC](https://www.ruby-forum.com/t/ruby-password-windows/82085 "2007-01-17T11:10:42Z")

</div>

Hi guys, I’d like to use the package Ruby/Password. But i’m using WinXP. How can I install this package there? Thanks Peter

---

## [Problem with login example in Agile Web Development with Rub](https://www.ruby-forum.com/t/problem-with-login-example-in-agile-web-development-with-rub/82001)

<div class="topic-metadata">

**Author:** [@chhenning](https://www.ruby-forum.com/u/chhenning)\
**Replies:** 5\
**Last updated:** [January 17, 2007, 10:42am UTC](https://www.ruby-forum.com/t/problem-with-login-example-in-agile-web-development-with-rub/82001 "2007-01-17T10:42:37Z")

</div>

Hi all, this is the first time I’m posting to this list or all Ruby on Rails lists, at all. If I’m wrong here please let me know where the best place is to put my question. I’m doing the authentication example in the …

---

## [Mysql error handle](https://www.ruby-forum.com/t/mysql-error-handle/82077)

<div class="topic-metadata">

**Author:** [@bebitzaa](https://www.ruby-forum.com/u/bebitzaa)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 10:10am UTC](https://www.ruby-forum.com/t/mysql-error-handle/82077 "2007-01-17T10:10:43Z")

</div>

Hello, I am making an connection with mysql Mysql.real\_connect(“127.0.0.1”,“root”,"",“f\_juso”,“3306”) The problem is when the user and pass is correct it works very well but when the user and pass is wrong it display…

---

## [Solutions for deep class paths](https://www.ruby-forum.com/t/solutions-for-deep-class-paths/82042)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 7\
**Last updated:** [January 17, 2007, 10:04am UTC](https://www.ruby-forum.com/t/solutions-for-deep-class-paths/82042 "2007-01-17T10:04:31Z")

</div>

Hi all, I’ve currently got a very flat code structure in a large code base \[1\], and I’m looking at redoing the layout to make the functional lines more obvious. This redesign will add an extra constant to every clas…

---

## [External to internal conversion](https://www.ruby-forum.com/t/external-to-internal-conversion/81963)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 8\
**Last updated:** [January 17, 2007, 6:16am UTC](https://www.ruby-forum.com/t/external-to-internal-conversion/81963 "2007-01-17T06:16:02Z")

</div>

Hi, I have been following this list off and on but have not found the solution to my problem. I want to convert data supplied by a file into their corresponding internal values. I have an external file with data that…

---

## [Where to find info on ||= operator?](https://www.ruby-forum.com/t/where-to-find-info-on-operator/81947)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 9\
**Last updated:** [January 17, 2007, 4:23am UTC](https://www.ruby-forum.com/t/where-to-find-info-on-operator/81947 "2007-01-17T04:23:42Z")

</div>

I am using http://www.ruby-doc.org/docs/ProgrammingRuby/ a sa reference manual, but could not find info on that operator (how to use it…) tfyl joss

---

## [RubyCLR - passing in a parameter of UInt16](https://www.ruby-forum.com/t/rubyclr-passing-in-a-parameter-of-uint16/82020)

<div class="topic-metadata">

**Author:** [@bvanderw](https://www.ruby-forum.com/u/bvanderw)\
**Replies:** 2\
**Last updated:** [January 17, 2007, 3:05am UTC](https://www.ruby-forum.com/t/rubyclr-passing-in-a-parameter-of-uint16/82020 "2007-01-17T03:05:32Z")

</div>

I am trying to use RubyCLR to access an existing .NET assembly. When I try to call a method that takes a UInt16 (a C# ushort) parameter, I get a missing\_method error, presumably from RubyCLR, because it can’t match th…

---

## [Alternate URI escaping mechanisms?](https://www.ruby-forum.com/t/alternate-uri-escaping-mechanisms/82041)

<div class="topic-metadata">

**Author:** [@dwfrank](https://www.ruby-forum.com/u/dwfrank)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 2:05am UTC](https://www.ruby-forum.com/t/alternate-uri-escaping-mechanisms/82041 "2007-01-17T02:05:21Z")

</div>

URI#escape escapes to UTF-8. I need to escape to Latin-1 for Amazon’s REST API. Is there another library I can use? There doesn’t seem to be a way to change what URI#escape uses (at least, not from the skeleton std …

---

## [Extending RDoc with custom sections?](https://www.ruby-forum.com/t/extending-rdoc-with-custom-sections/81936)

<div class="topic-metadata">

**Author:** [@el-oy](https://www.ruby-forum.com/u/el-oy)\
**Replies:** 6\
**Last updated:** [January 17, 2007, 12:58am UTC](https://www.ruby-forum.com/t/extending-rdoc-with-custom-sections/81936 "2007-01-17T00:58:19Z")

</div>

Hello peeps! I’m in the process of converting Apple’s Cocoa reference docs to RubyCocoa style RDoc source/comments. This is working out rather well :slight\_smile: The only problem I have run into is that I need extra…

---

## [Time.parse("yyyy/mm")](https://www.ruby-forum.com/t/time-parse-yyyy-mm/81982)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [January 17, 2007, 12:56am UTC](https://www.ruby-forum.com/t/time-parse-yyyy-mm/81982 "2007-01-17T00:56:19Z")

</div>

e$B@\>;3OB9-$G$9!#e(B http://www.ruby-lang.org/ja/man/?cmd=view;name=diff;rev1=1;rev2=2;target=time e$B$,5$$K$J$C$F$A$g$C$H$@$1D4$Y$F$\_$?$H$3$m!"e(B % ruby1.6 -vr time -e ‘p Time.parse(“2002/1”)’ ruby 1.6.8 (2003-07-0…

---

## [Images in FXRuby](https://www.ruby-forum.com/t/images-in-fxruby/82046)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 12:54am UTC](https://www.ruby-forum.com/t/images-in-fxruby/82046 "2007-01-17T00:54:03Z")

</div>

I’m new to FXRuby, and I’m having a problem with displaying images. I’m simply trying to display an image in a vertical scroll window, with the end result being a program that shows multiple images with vertical scro…

---

## [RubyGems 0.9.0 and earlier installation exploit](https://www.ruby-forum.com/t/rubygems-0-9-0-and-earlier-installation-exploit/102648)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 12:45am UTC](https://www.ruby-forum.com/t/rubygems-0-9-0-and-earlier-installation-exploit/102648 "2007-01-17T00:45:17Z")

</div>

Problem Description: RubyGems does not check installation paths for gems before writing files. Impact: Since RubyGems packages are typically installed using root permissions, arbitrary files may be overwritten on-di…

---

## [Publishing a gem](https://www.ruby-forum.com/t/publishing-a-gem/82040)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 2\
**Last updated:** [January 17, 2007, 12:41am UTC](https://www.ruby-forum.com/t/publishing-a-gem/82040 "2007-01-17T00:41:17Z")

</div>

I have a gem, all packaged and ready for installation, on rubyforge. But I seems to be missing one step. I uploaded the first gem more than 24 hours ago and remote installation of the gem still fails. Is there someth…

---

## [The Ruby Soundtrack](https://www.ruby-forum.com/t/the-ruby-soundtrack/81911)

<div class="topic-metadata">

**Author:** [@Chris\_Lloyd](https://www.ruby-forum.com/u/Chris_Lloyd)\
**Replies:** 4\
**Last updated:** [January 16, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/the-ruby-soundtrack/81911 "2007-01-16T23:52:11Z")

</div>

I’m in no way promoting/affialiated this band or the site or anthing like that, but I thought it was a pretty cool song. When I’ve been working and my non-nerd friends ask where I am they all roll their eyes and say s…

---

## [Q: How can a Rake task know the caller's directory?](https://www.ruby-forum.com/t/q-how-can-a-rake-task-know-the-callers-directory/81868)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 19\
**Last updated:** [January 16, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/q-how-can-a-rake-task-know-the-callers-directory/81868 "2007-01-16T23:45:10Z")

</div>

I’m increasingly using rake files for common system tasks. Since Rake will search up a directory tree until it finds a Rakefile, I can have one in my home directory and call tasks from anyplace below that. But tasks …

---

## [RedCloth and Rails](https://www.ruby-forum.com/t/redcloth-and-rails/82032)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 16, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/redcloth-and-rails/82032 "2007-01-16T23:08:57Z")

</div>

With my hoster i don’t have the RedCloth gem. I’ve unpacked the gem in the vendor dir and thought that all automagically was functioning. :slight\_smile: But after googling i’ve added a line to my environment.rb : req…

---

## [Ruby .NET, RubyCLR, and Assemblies](https://www.ruby-forum.com/t/ruby-net-rubyclr-and-assemblies/82014)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [January 16, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/ruby-net-rubyclr-and-assemblies/82014 "2007-01-16T23:07:56Z")

</div>

My company is working on a piece of software right now that is using .NET. One of the features is a scripting console similar to IRB: the user may type in one-off commands and see the effect in the application. I want…

---

## [Calculate number of non-weekend days between two dates?](https://www.ruby-forum.com/t/calculate-number-of-non-weekend-days-between-two-dates/82004)

<div class="topic-metadata">

**Author:** [@chrismo](https://www.ruby-forum.com/u/chrismo)\
**Replies:** 3\
**Last updated:** [January 16, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/calculate-number-of-non-weekend-days-between-two-dates/82004 "2007-01-16T22:21:38Z")

</div>

Any date/time libraries out there (I can’t seem to find anything in the std libs) that handle calculations like number of non-weekend days between two dates, etc.?

---

## [Where can I get RubyCLR?](https://www.ruby-forum.com/t/where-can-i-get-rubyclr/81980)

<div class="topic-metadata">

**Author:** [@bvanderw](https://www.ruby-forum.com/u/bvanderw)\
**Replies:** 3\
**Last updated:** [January 16, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/where-can-i-get-rubyclr/81980 "2007-01-16T22:10:35Z")

</div>

Can someone please tell me where I can get more information about and download RubyCLR? I’ve tried: www.rubyclr.com www.thinkchiro.com but they all fail to load. Thanks… –Bruce

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/82011)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 16, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/82011 "2007-01-16T21:14:28Z")

</div>

Begin forwarded message:

---

## [Rubygems soap/wsdlDriver issue](https://www.ruby-forum.com/t/rubygems-soap-wsdldriver-issue/82010)

<div class="topic-metadata">

**Author:** [@chucky](https://www.ruby-forum.com/u/chucky)\
**Replies:** 2\
**Last updated:** [January 16, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/rubygems-soap-wsdldriver-issue/82010 "2007-01-16T21:02:01Z")

</div>

Hi guys, Recently I discover one problem into one of my Ruby scripts. These are the steps that I made: require ‘rubygems’ require ‘soap/wsdlDriver’ wsdl=“http://localhost:8080/axis/ServiceTest.jws?wsdl” driver=SOAP…

---

## [What is dup?](https://www.ruby-forum.com/t/what-is-dup/81984)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 3\
**Last updated:** [January 16, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/what-is-dup/81984 "2007-01-16T20:31:24Z")

</div>

I am playing with an example in the ruby cookbook where a shuffle function is added to the array class: class Array def shuffle! each\_index do |i| j = rand(length-i) + i self\[j\], self\[i\] = self\[i\], self\[j\] end e…

---

## [Inspect...and modify a proc object?](https://www.ruby-forum.com/t/inspect-and-modify-a-proc-object/82002)

<div class="topic-metadata">

**Author:** [@kelly\_felkins](https://www.ruby-forum.com/u/kelly_felkins)\
**Replies:** 0\
**Last updated:** [January 16, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/inspect-and-modify-a-proc-object/82002 "2007-01-16T20:26:23Z")

</div>

I’m trying to understand proc objects. Can you inspect them? Is there anyway to walk through the original context? Is there anyway to identify the objects or classes involved, and what method is being invoked, with wh…

---

## [Simple editing. Works in IRB; not as script](https://www.ruby-forum.com/t/simple-editing-works-in-irb-not-as-script/81981)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 7\
**Last updated:** [January 16, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/simple-editing-works-in-irb-not-as-script/81981 "2007-01-16T20:23:38Z")

</div>

Hello, I’m trying to create a simple editing template for myself, just some code that I can use for future editing needs, where I open a file, change stuff, and then save the file. I created this simple little script…

---

## [Inotify](https://www.ruby-forum.com/t/inotify/81908)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [January 16, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/inotify/81908 "2007-01-16T20:13:20Z")

</div>

I am using ruby-inotify in a small script that I am writing, using ruby-inotify It needs to watch directories recursively for added files, and I cannot figure out how to make it watch more than 1 directory Setting up…

---

## [Array Default Values](https://www.ruby-forum.com/t/array-default-values/81994)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 5\
**Last updated:** [January 16, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/array-default-values/81994 "2007-01-16T20:12:31Z")

</div>

I’d like to have my array behave like this: If I add an item to a\[5\], a\[0…5\] will be equal to " " rather than nil. I tried to following: irb(main):001:0\> a=\[" “\] =\> \[” "\] irb(main):002:0\> a\[5\] = “test” =\> “test” ir…

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

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