# Ruby

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

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

---

## [Ruby/Python/REXX as a MUCK scripting language](https://www.ruby-forum.com/t/ruby-python-rexx-as-a-muck-scripting-language/77200)

<div class="topic-metadata">

**Author:** [@gr0k](https://www.ruby-forum.com/u/gr0k)\
**Replies:** 17\
**Last updated:** [December 1, 2006, 10:27am UTC](https://www.ruby-forum.com/t/ruby-python-rexx-as-a-muck-scripting-language/77200 "2006-12-01T10:27:06Z")

</div>

I’m interested in using an off-the-shelf interpreted language as a user-accessible scripting language for a MUCK. I’m just not sure if I can find one that does everything I need. The MUCK must be able to call the in…

---

## [openSSL signs](https://www.ruby-forum.com/t/openssl-signs/77815)

<div class="topic-metadata">

**Author:** [@josegalvan](https://www.ruby-forum.com/u/josegalvan)\
**Replies:** 1\
**Last updated:** [December 1, 2006, 10:11am UTC](https://www.ruby-forum.com/t/openssl-signs/77815 "2006-12-01T10:11:03Z")

</div>

I’ve wrote a simple script to sign and verify some text and generate a PKCS7 using OpenSSL. require ‘openssl’ include OpenSSL data = ‘abcdefghijklmnsopqrstuvwxyz\\n’ cert = X509::Certificate.new( File::read(“my\_cert.…

---

## [How can someone see my webserver if I have a wireless router](https://www.ruby-forum.com/t/how-can-someone-see-my-webserver-if-i-have-a-wireless-router/102597)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 1, 2006, 10:01am UTC](https://www.ruby-forum.com/t/how-can-someone-see-my-webserver-if-i-have-a-wireless-router/102597 "2006-12-01T10:01:02Z")

</div>

Here is my question. I have a laptop and I run a ruby/rails based web brick server which serves up html pages. I have emailed people a way to access this webserver through a URL that looks sort of like: http://201.120…

---

## [Simple question, looping through each character in a string](https://www.ruby-forum.com/t/simple-question-looping-through-each-character-in-a-string/77813)

<div class="topic-metadata">

**Author:** [@warhero](https://www.ruby-forum.com/u/warhero)\
**Replies:** 17\
**Last updated:** [December 1, 2006, 6:36am UTC](https://www.ruby-forum.com/t/simple-question-looping-through-each-character-in-a-string/77813 "2006-12-01T06:36:50Z")

</div>

how can I accomplish something like this in ruby: pseudo code: word = “picture” for( i = 0; i \< word.length; i++ ) { puts( word.substr(i,1) ) } ruby? I’ve tried something like: word = “picture” word.each { |cha…

---

## [Execute/Run the Ruby (.rb) files from browser](https://www.ruby-forum.com/t/execute-run-the-ruby-rb-files-from-browser/77877)

<div class="topic-metadata">

**Author:** [@rajug](https://www.ruby-forum.com/u/rajug)\
**Replies:** 0\
**Last updated:** [December 1, 2006, 5:44am UTC](https://www.ruby-forum.com/t/execute-run-the-ruby-rb-files-from-browser/77877 "2006-12-01T05:44:30Z")

</div>

Hello ruby users, I am not new at all for ruby because i have studied for a month about ruby. Actually i need to create a heatmap (the overlay image that shows the click locations in my web page) for my site using rub…

---

## [Ruby advent calendar](https://www.ruby-forum.com/t/ruby-advent-calendar/77865)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 0\
**Last updated:** [December 1, 2006, 2:46am UTC](https://www.ruby-forum.com/t/ruby-advent-calendar/77865 "2006-12-01T02:46:21Z")

</div>

It’s that time of year again folks, time to get into the festive spirit. Check out Peter C.'s ruby advent calendar :slight\_smile: http://www.rubyinside.com/advent2006/

---

## [Floating point problem... floating indeed :(](https://www.ruby-forum.com/t/floating-point-problem-floating-indeed/77862)

<div class="topic-metadata">

**Author:** [@teeshift](https://www.ruby-forum.com/u/teeshift)\
**Replies:** 3\
**Last updated:** [December 1, 2006, 2:36am UTC](https://www.ruby-forum.com/t/floating-point-problem-floating-indeed/77862 "2006-12-01T02:36:20Z")

</div>

I recently wrote a code and haven’t been found the bug and start suspecting that it was the floating computation that causing the problem. I did a little experiement and found the following phenomena: I am using Li…

---

## [DictionaryMatcher (#103)](https://www.ruby-forum.com/t/dictionarymatcher-103/77849)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 1, 2006, 12:19am UTC](https://www.ruby-forum.com/t/dictionarymatcher-103/77849 "2006-12-01T00:19:52Z")

</div>

As stated in the quiz, this question comes up quite a bit. There are a few ways to address including a fairly simple approach. Let’s examine Jamie Macey’s rather short solution for an example of that: class Dictio…

---

## [Capistrano Connection Caching Question](https://www.ruby-forum.com/t/capistrano-connection-caching-question/77793)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 2\
**Last updated:** [December 1, 2006, 12:11am UTC](https://www.ruby-forum.com/t/capistrano-connection-caching-question/77793 "2006-12-01T00:11:51Z")

</div>

Hi, I’m trying to clear up my understanding of how some of the Capistrano connection stuff works. In the Capistrano manual, I found the following “All |run| does is attempt to execute the given command on all associa…

---

## [Uneval,mtime,hash - Meta programming](https://www.ruby-forum.com/t/uneval-mtime-hash-meta-programming/77832)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [November 30, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/uneval-mtime-hash-meta-programming/77832 "2006-11-30T23:37:47Z")

</div>

I often do things that take far too much time. So I create “make” like scripts that understand dependencies and targets and when things need to be remade or not. This saves me heaps and heaps of time. So I just had t…

---

## [How to input info in fields on a HTTP page?](https://www.ruby-forum.com/t/how-to-input-info-in-fields-on-a-http-page/77665)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 4\
**Last updated:** [November 30, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/how-to-input-info-in-fields-on-a-http-page/77665 "2006-11-30T23:15:40Z")

</div>

I am trying to figure out how to retrieve reports from a web server. The problem is the reports dont just exist already, you have to fill in a bunch of info in a little java applet and the server generates it then you…

---

## [Help re deleting files please?](https://www.ruby-forum.com/t/help-re-deleting-files-please/77714)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [November 30, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/help-re-deleting-files-please/77714 "2006-11-30T23:03:38Z")

</div>

Hi, I have a small task which I was considering using ruby for - if anyone has a minute and could quickly type in the ruby code (assuming its a few lines) that would be fantastic. The spec is: Input Small ruby pr…

---

## [HTML cleanup task](https://www.ruby-forum.com/t/html-cleanup-task/77775)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 7\
**Last updated:** [November 30, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/html-cleanup-task/77775 "2006-11-30T22:41:35Z")

</div>

Hi all. Sorry, if the question seems dumb. My task is: I have some HTML fragment; no limitations on it correctness, except of there can’t be tag cutted: This is possible: \[…\] (fragment starts with closing tag) This …

---

## [Need a range, but not getting it. . .](https://www.ruby-forum.com/t/need-a-range-but-not-getting-it/77679)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 32\
**Last updated:** [November 30, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/need-a-range-but-not-getting-it/77679 "2006-11-30T22:05:29Z")

</div>

Hello, I’m going nuts with the simplest stuff here. I just want to take in array data and make it into a range. Here’s my test script, called test1.rb: files = \[ARGV\] files.to\_s.gsub!(/-/, “…”) puts files Here’s m…

---

## [Simple screen scraper using scrAPI](https://www.ruby-forum.com/t/simple-screen-scraper-using-scrapi/77592)

<div class="topic-metadata">

**Author:** [@doog](https://www.ruby-forum.com/u/doog)\
**Replies:** 14\
**Last updated:** [November 30, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/simple-screen-scraper-using-scrapi/77592 "2006-11-30T21:29:21Z")

</div>

I’m a Ruby novice. Does anyone have an example of a simple screen scraper in Ruby that uses scrAPI (and works on Mac OS X)? All I need it to do is: Go to a specified web page Use a CSS selector to grab and print out …

---

## [Creating directory "http://example.com"](https://www.ruby-forum.com/t/creating-directory-http-example-com/77713)

<div class="topic-metadata">

**Author:** [@comforteagle](https://www.ruby-forum.com/u/comforteagle)\
**Replies:** 15\
**Last updated:** [November 30, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/creating-directory-http-example-com/77713 "2006-11-30T20:57:54Z")

</div>

How do I create a directory ‘http://example.com’ without it getting broken up because of the '/'s ? url = ‘http://example1.com’ Dir.mkdir(url)

---

## [Download a file piece by piece](https://www.ruby-forum.com/t/download-a-file-piece-by-piece/77807)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 4\
**Last updated:** [November 30, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/download-a-file-piece-by-piece/77807 "2006-11-30T19:40:53Z")

</div>

Hello people :-), i have a question about downloading files. I want to download a file and print out how many bytes are downloaded. That’s important to me, because i want to have a progress bar later. The problem is …

---

## [WMI usage in Ruby to get file size, beginners question](https://www.ruby-forum.com/t/wmi-usage-in-ruby-to-get-file-size-beginners-question/77783)

<div class="topic-metadata">

**Author:** [@zweibein](https://www.ruby-forum.com/u/zweibein)\
**Replies:** 2\
**Last updated:** [November 30, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/wmi-usage-in-ruby-to-get-file-size-beginners-question/77783 "2006-11-30T18:59:07Z")

</div>

Hello, sorry if the question is so stupid as I assume. I try to get the size of a file by using wmi (because I want to collect the size of various files on Microsoft boxes all over the network later). I try: requir…

---

## [Wrong results using named arguments](https://www.ruby-forum.com/t/wrong-results-using-named-arguments/77719)

<div class="topic-metadata">

**Author:** [@vinsonizer](https://www.ruby-forum.com/u/vinsonizer)\
**Replies:** 11\
**Last updated:** [November 30, 2006, 6:08pm UTC](https://www.ruby-forum.com/t/wrong-results-using-named-arguments/77719 "2006-11-30T18:08:27Z")

</div>

Source: \[a.rb\] class A attr\_accessor :id attr\_accessor :name def initialize(id = nil, name = nil) @id = id @name = name end end \[test.rb\] require ‘a’ a1 = A.new(:name =\> “test”) …

---

## [Ruby and Oracle on Win XP](https://www.ruby-forum.com/t/ruby-and-oracle-on-win-xp/77553)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 5\
**Last updated:** [November 30, 2006, 2:39pm UTC](https://www.ruby-forum.com/t/ruby-and-oracle-on-win-xp/77553 "2006-11-30T14:39:58Z")

</div>

Hello, I’m currently trying to make run a Rails webapp over Oracle XE (Express Edition 10g) I started to : Install Ruby 1.8.5 (One Click Installer) for Windows Install Rails 1.1.6 Install ruby-oci8 (Windows ruby sc…

---

## [Ruby-talk: I think some posts get lost](https://www.ruby-forum.com/t/ruby-talk-i-think-some-posts-get-lost/77772)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 30, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/ruby-talk-i-think-some-posts-get-lost/77772 "2006-11-30T13:53:44Z")

</div>

I posted somehting about wanting code that can mimic cron behaviour a couple of days back. I actually posted it twice before I realised that I had accidentally pushed my pc clock a month forward. I reset the clock an…

---

## [Validating atom and rss locally?](https://www.ruby-forum.com/t/validating-atom-and-rss-locally/77756)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 1\
**Last updated:** [November 30, 2006, 12:39pm UTC](https://www.ruby-forum.com/t/validating-atom-and-rss-locally/77756 "2006-11-30T12:39:35Z")

</div>

I was wondering if there are libraries to validate rss 2.0 and atom locally, for testing purposes? I am aware of FeedValidator gem, but I’d like to validate w/o having to make a web service call to the “official” val…

---

## [Why doesn't Timeout work with String#=~](https://www.ruby-forum.com/t/why-doesnt-timeout-work-with-string/77682)

<div class="topic-metadata">

**Author:** [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Replies:** 1\
**Last updated:** [November 30, 2006, 6:40am UTC](https://www.ruby-forum.com/t/why-doesnt-timeout-work-with-string/77682 "2006-11-30T06:40:49Z")

</div>

Sorry for the length, but I hope that will a running test case, someone can explain this one. I’m running this on Mac OS X 10.4.8 and with ruby 1.8.4 Apple’s ruby is still present, but shouldn’t be used rab:ruby $ w…

---

## [Overwhelmed by emails](https://www.ruby-forum.com/t/overwhelmed-by-emails/77734)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 11\
**Last updated:** [November 30, 2006, 6:22am UTC](https://www.ruby-forum.com/t/overwhelmed-by-emails/77734 "2006-11-30T06:22:44Z")

</div>

This list has way too many messages for the amount of free time I have. Does someone, by any chance, know of email software with filtering (bayesian, user-based, etc) to help you ferret out the interesting stuff? Kind…

---

## [Array#group\_by](https://www.ruby-forum.com/t/array-group-by/77648)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 8\
**Last updated:** [November 30, 2006, 4:50am UTC](https://www.ruby-forum.com/t/array-group-by/77648 "2006-11-30T04:50:29Z")

</div>

I posted this on the Rails list, but then I realised it would make more sense over here: Just thought I’d share a function which has been really useful to me, for 2 reasons It could easily help someone else Peopl…

---

## [Download only http headers](https://www.ruby-forum.com/t/download-only-http-headers/77727)

<div class="topic-metadata">

**Author:** [@nguyen](https://www.ruby-forum.com/u/nguyen)\
**Replies:** 2\
**Last updated:** [November 30, 2006, 3:10am UTC](https://www.ruby-forum.com/t/download-only-http-headers/77727 "2006-11-30T03:10:17Z")

</div>

Hi folks, I’m writing a small app which needs to list all HTML pages (only HTML pages, no image, no CSS, pdf, gif etc.) from a starting page. Given any link, I use Net::HTTP to download the content and examine the c…

---

## [I'm a process-spawning idiot](https://www.ruby-forum.com/t/im-a-process-spawning-idiot/77625)

<div class="topic-metadata">

**Author:** [@twifkak](https://www.ruby-forum.com/u/twifkak)\
**Replies:** 7\
**Last updated:** [November 30, 2006, 2:50am UTC](https://www.ruby-forum.com/t/im-a-process-spawning-idiot/77625 "2006-11-30T02:50:12Z")

</div>

I’m looking for a method that, like Kernel#and IO::popen, allows me to call out to the system and grab its stdout. However, I'd like it to accept multiple args (like Kernel#system), so I don't have to worry about filenam…

---

## [Re: drawing borders in excel](https://www.ruby-forum.com/t/re-drawing-borders-in-excel/77731)

<div class="topic-metadata">

**Author:** [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Replies:** 0\
**Last updated:** [November 30, 2006, 2:14am UTC](https://www.ruby-forum.com/t/re-drawing-borders-in-excel/77731 "2006-11-30T02:14:07Z")

</div>

Okay quick update… I figured out how to change the color of my border and it shows up: worksheet.Range(“a#{currRow}:d#{currRow}”).Borders\[‘ColorIndex’\] = 3 Buuuut when I try to change the line weight or style I get an…

---

## [Where to put data for a render partial rails](https://www.ruby-forum.com/t/where-to-put-data-for-a-render-partial-rails/77216)

<div class="topic-metadata">

**Author:** [@shawn\_bright](https://www.ruby-forum.com/u/shawn_bright)\
**Replies:** 1\
**Last updated:** [November 30, 2006, 1:34am UTC](https://www.ruby-forum.com/t/where-to-put-data-for-a-render-partial-rails/77216 "2006-11-30T01:34:04Z")

</div>

Hey there, i have a partial set aside for a xml based pie chart, i dont want to do the array building inside the rhtml file though because afik, it would violate mvc. So, if i do a \<%= render :partial =\> “pie\_chart…

---

## [Rubyforge 0.3.2 Released](https://www.ruby-forum.com/t/rubyforge-0-3-2-released/77726)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 30, 2006, 12:35am UTC](https://www.ruby-forum.com/t/rubyforge-0-3-2-released/77726 "2006-11-30T00:35:54Z")

</div>

rubyforge is a simplistic script which automates a limited set of rubyforge operations Install: gem install rubyforge Changes: Fixed file uploads for windows. Correctly scrape releases with funky characters. – Er…

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

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