# Ruby

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

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

---

## [Mogilefs-client 1.2.1 Released](https://www.ruby-forum.com/t/mogilefs-client-1-2-1-released/111041)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 2, 2007, 3:39am UTC](https://www.ruby-forum.com/t/mogilefs-client-1-2-1-released/111041 "2007-08-02T03:39:49Z")

</div>

mogilefs-client version 1.2.1 has been released! http://seattlerb.org/mogilefs-client A Ruby MogileFS client. MogileFS is a distributed filesystem written by Danga Interactive. This client supports NFS and HTTP mod…

---

## [Using .Net SOAP service](https://www.ruby-forum.com/t/using-net-soap-service/110938)

<div class="topic-metadata">

**Author:** [@Hasham](https://www.ruby-forum.com/u/Hasham)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 3:22am UTC](https://www.ruby-forum.com/t/using-net-soap-service/110938 "2007-08-02T03:22:46Z")

</div>

Hi, I am getting this error while trying to access .NET based SOAP Web service #SOAP::Mapping::Object:0xb7c86218: System.Web.Services.Protocols.SoapException: Server was unable to process request. —\> System.NullRefe…

---

## [Requiring more than one file?](https://www.ruby-forum.com/t/requiring-more-than-one-file/106461)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 12\
**Last updated:** [August 2, 2007, 3:05am UTC](https://www.ruby-forum.com/t/requiring-more-than-one-file/106461 "2007-08-02T03:05:44Z")

</div>

require does accept ony word, which should be the name that has to be required. Since duck typing is en vogue, is it a bad idea to have require use something like this here instead? require %w( pp English pathname fil…

---

## [Re: parse xml file, put results in mysql db](https://www.ruby-forum.com/t/re-parse-xml-file-put-results-in-mysql-db/76174)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [August 2, 2007, 2:08am UTC](https://www.ruby-forum.com/t/re-parse-xml-file-put-results-in-mysql-db/76174 "2007-08-02T02:08:40Z")

</div>

— Kathy S. removed\_email\_address@domain.invalid wrote: That works fine. Below is the db stuff - can anyone figure out what I’m The last line is where it fails - if I put in values, it works fine, so I know the error …

---

## [Optimizing large-scale Markov chain handler](https://www.ruby-forum.com/t/optimizing-large-scale-markov-chain-handler/110739)

<div class="topic-metadata">

**Author:** [@Oblomov](https://www.ruby-forum.com/u/Oblomov)\
**Replies:** 6\
**Last updated:** [August 2, 2007, 1:21am UTC](https://www.ruby-forum.com/t/optimizing-large-scale-markov-chain-handler/110739 "2007-08-02T01:21:38Z")

</div>

Hello all, I’m building a Markov chain handler with a couple of twists over the usual naive handlers. First of all, I consider both words and non-words (separators), so the string scanner uses the regexp /\\w+|\\W/u …

---

## [Oddity with RegExp](https://www.ruby-forum.com/t/oddity-with-regexp/111022)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 1:13am UTC](https://www.ruby-forum.com/t/oddity-with-regexp/111022 "2007-08-02T01:13:23Z")

</div>

I’m clearly missing something! I have a log analysis application that is written in Ruby and which uses REs to decide how to process log records. I entered a pattern into one of my rules and it always failed to match …

---

## [Invoking a web service](https://www.ruby-forum.com/t/invoking-a-web-service/111021)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 12:43am UTC](https://www.ruby-forum.com/t/invoking-a-web-service/111021 "2007-08-02T00:43:36Z")

</div>

Im trying to connect to a webservice developed in java, but im getting this error: warning: peer certificate won’t be verified in this SSL session ignored element: {http://schemas.microsoft.com/soap-toolkit/wsdl-exte…

---

## [How to determine which file a method is defined in](https://www.ruby-forum.com/t/how-to-determine-which-file-a-method-is-defined-in/111012)

<div class="topic-metadata">

**Author:** [@ftravers](https://www.ruby-forum.com/u/ftravers)\
**Replies:** 2\
**Last updated:** [August 2, 2007, 12:41am UTC](https://www.ruby-forum.com/t/how-to-determine-which-file-a-method-is-defined-in/111012 "2007-08-02T00:41:36Z")

</div>

I would like to know if there is a way to definitively tell which file a given method was defined in. Basically I’m trying to understand what a method does and would like to look in the file that defines it to better …

---

## [RMagick 1.15.8](https://www.ruby-forum.com/t/rmagick-1-15-8/111026)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [August 2, 2007, 12:37am UTC](https://www.ruby-forum.com/t/rmagick-1-15-8/111026 "2007-08-02T00:37:35Z")

</div>

I’ve just uploaded RMagick 1.15.8. This release includes a fix for a bug in Image#composite. If both a gravity argument and x- and y-offsets are specified the composite image is positioned incorrectly. This fix also a…

---

## [Invoking a web service](https://www.ruby-forum.com/t/invoking-a-web-service/196414)

<div class="topic-metadata">

**Author:** [@capi](https://www.ruby-forum.com/u/capi)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 12:23am UTC](https://www.ruby-forum.com/t/invoking-a-web-service/196414 "2007-08-02T00:23:23Z")

</div>

Im trying to connect to a webservice developed in java, but im getting this error: warning: peer certificate won’t be verified in this SSL session ignored element: {http://schemas.microsoft.com/soap-toolkit/wsdl-exte…

---

## [Net::HTTP, inheritance + proxy problem](https://www.ruby-forum.com/t/net-http-inheritance-proxy-problem/110960)

<div class="topic-metadata">

**Author:** [@Rikard\_L](https://www.ruby-forum.com/u/Rikard_L)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 12:13am UTC](https://www.ruby-forum.com/t/net-http-inheritance-proxy-problem/110960 "2007-08-02T00:13:34Z")

</div>

Hi all, I am trying to create a child class from Net::HTTP and the following seems to work: class Connection \< Net::HTTP def initialize(addr, port) super(addr, port) end end I can now write: conn = Connection.new…

---

## [Railless ActiveRecord](https://www.ruby-forum.com/t/railless-activerecord/110928)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 16\
**Last updated:** [August 1, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/railless-activerecord/110928 "2007-08-01T22:30:24Z")

</div>

Hey all. More ActiveRecord trouble. So I have my ActiveRecord connection. All is good. I am connecting to an SQLite3 database, which is working out pretty well for me. I think. So my story is this: When I tried to use…

---

## [Ruby Array to Hash (a better way?)](https://www.ruby-forum.com/t/ruby-array-to-hash-a-better-way/110988)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 6\
**Last updated:** [August 1, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/ruby-array-to-hash-a-better-way/110988 "2007-08-01T21:15:15Z")

</div>

Hey Guys, I want to convert an array like the following to a hash. Below is my current code (I am assuming there is a better way). Thanks \[“foo”, “bar”, “foo1”, “bar1”,“foo2”, “bar2”\] convert to {“foo”=\>“bar”, “fo…

---

## [Flog 1.0.2 Released (read: I suck)](https://www.ruby-forum.com/t/flog-1-0-2-released-read-i-suck/111002)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/flog-1-0-2-released-read-i-suck/111002 "2007-08-01T20:54:13Z")

</div>

flog version 1.0.2 has been released! http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in. % ./bin/flog bin…

---

## [Performance diffrence between ifs and case](https://www.ruby-forum.com/t/performance-diffrence-between-ifs-and-case/110662)

<div class="topic-metadata">

**Author:** [@forgottenwizard](https://www.ruby-forum.com/u/forgottenwizard)\
**Replies:** 29\
**Last updated:** [August 1, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/performance-diffrence-between-ifs-and-case/110662 "2007-08-01T20:46:12Z")

</div>

What kind of diffrences are there, effectivly, between case and a series of if statements, like in this: if i=“hi” puts “hi” elsif i=“bye” puts “bye” else puts i end and case i when hi puts “hi” when bye pu…

---

## [How to substitute a string with different size](https://www.ruby-forum.com/t/how-to-substitute-a-string-with-different-size/110849)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [August 1, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/how-to-substitute-a-string-with-different-size/110849 "2007-08-01T20:12:59Z")

</div>

Hi all, I deal with a mixture of text and binary file. I want to search a pattern in the string and replace it with a new pattern, then write to a new file. I use the following script(only part of the script) str.gsu…

---

## [Flog 1.0.1 Released](https://www.ruby-forum.com/t/flog-1-0-1-released/110992)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/flog-1-0-1-released/110992 "2007-08-01T19:50:02Z")

</div>

flog version 1.0.1 has been released! http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in. % ./bin/flog bin…

---

## [Tk: setting window class](https://www.ruby-forum.com/t/tk-setting-window-class/110904)

<div class="topic-metadata">

**Author:** [@cinek](https://www.ruby-forum.com/u/cinek)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/tk-setting-window-class/110904 "2007-08-01T19:14:59Z")

</div>

I need to set (or at least have a sensible value of) X window class for all application’s windows, so that I can identify them for window manager (FVWM in this case, this is irrelevant though). What can I do to achiev…

---

## [Network failure with sms alert using RUBY project](https://www.ruby-forum.com/t/network-failure-with-sms-alert-using-ruby-project/110986)

<div class="topic-metadata">

**Author:** [@lorfaz](https://www.ruby-forum.com/u/lorfaz)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/network-failure-with-sms-alert-using-ruby-project/110986 "2007-08-01T19:10:58Z")

</div>

can i use ruby to make this project?

---

## [Variable-Length arg list and blocks](https://www.ruby-forum.com/t/variable-length-arg-list-and-blocks/110985)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/variable-length-arg-list-and-blocks/110985 "2007-08-01T19:05:07Z")

</div>

Hello, a short question: is it possible to use variable length argument lists and binding associated blocks to a method parameter at the same time? And if it is possible, how can I do it? I trief the following with R…

---

## [Count : array to array of hashes](https://www.ruby-forum.com/t/count-array-to-array-of-hashes/110982)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/count-array-to-array-of-hashes/110982 "2007-08-01T18:56:54Z")

</div>

Hi, I’m tryind to count distinct ids from an array (array\_of\_ids = \[1,2,3,1,2\]), and want a result array of hashes looking like it : result = \[{;id=\>1,:count=\>2},{;id=\>2,:count=\>2},{;id=\>3,:count=\>1}\] i tried it, but…

---

## [Flog 1.0.0 Released](https://www.ruby-forum.com/t/flog-1-0-0-released/110948)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [August 1, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/flog-1-0-0-released/110948 "2007-08-01T18:04:49Z")

</div>

flog version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in. % ./bin/flog bin…

---

## [Ruby Tidy API for HTML::Tag](https://www.ruby-forum.com/t/ruby-tidy-api-for-html-tag/110976)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/ruby-tidy-api-for-html-tag/110976 "2007-08-01T17:27:17Z")

</div>

I’m trying to use the scrAPI to scrape a website. It apparently uses Tidy and using a selector returns an HTML::Tag object. Anyone know where the API is for an HTML::Tag object? I can’t seem to figure out how to ge…

---

## [HTTP post constantly submitting](https://www.ruby-forum.com/t/http-post-constantly-submitting/110974)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/http-post-constantly-submitting/110974 "2007-08-01T17:01:42Z")

</div>

Hello all, I have a http request that I have to parse and re-submit to another form sitting on a web server on another machine. I use the following code to post the form Net::HTTP.post\_form(URI.parse(URL’), {‘Userna…

---

## [Installing json-1.1.1 gem on windows xp](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724)

<div class="topic-metadata">

**Author:** [@sumi](https://www.ruby-forum.com/u/sumi)\
**Replies:** 5\
**Last updated:** [August 1, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724 "2007-08-01T16:49:49Z")

</div>

Hi all, I was trying to install the json extension gem… but says ‘Error failed to create local extension/nmake …’ When I went through the conf file it showed it requires both mkmf (meant for extensions) and rbconfig… …

---

## [Why aren't filenames being lowercased?](https://www.ruby-forum.com/t/why-arent-filenames-being-lowercased/110959)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 6\
**Last updated:** [August 1, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/why-arent-filenames-being-lowercased/110959 "2007-08-01T15:12:44Z")

</div>

This is a simple script that I’m just using for something bigger in the near future, kind of a test. I’m looking in a directory of TIFF files, lower-casing the filenames, and then listing them with PDF named counterpa…

---

## [Candlestick charts in Ruby](https://www.ruby-forum.com/t/candlestick-charts-in-ruby/110897)

<div class="topic-metadata">

**Author:** [@amslonewolf](https://www.ruby-forum.com/u/amslonewolf)\
**Replies:** 4\
**Last updated:** [August 1, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/candlestick-charts-in-ruby/110897 "2007-08-01T14:59:24Z")

</div>

Hi - Do you know if there is an open-source package to do candlestick stock/technical charts using Ruby?

---

## [Rdoc allowing arbitrary HTML](https://www.ruby-forum.com/t/rdoc-allowing-arbitrary-html/110685)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 15\
**Last updated:** [August 1, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/rdoc-allowing-arbitrary-html/110685 "2007-08-01T14:43:23Z")

</div>

Hi all I just really needed this for footnotes and some fun in my rdoc. It is a very primitive patch allowing to write arbitrary HTML code in rdoc like this %html (1) … %html I thought I will share this patch whi…

---

## [TK for web application](https://www.ruby-forum.com/t/tk-for-web-application/110929)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 10\
**Last updated:** [August 1, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/tk-for-web-application/110929 "2007-08-01T13:21:09Z")

</div>

hello: Is TK suitable for rails “web” application?It seems that TK is for desktop application. If i want to use TK in “rails web application”,where should i put my files containing TK codes in the rails directory? t…

---

## [BUG(?): 1.8.6-p36 broke compiling C++ extensions](https://www.ruby-forum.com/t/bug-1-8-6-p36-broke-compiling-c-extensions/110759)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 10\
**Last updated:** [August 1, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/bug-1-8-6-p36-broke-compiling-c-extensions/110759 "2007-08-01T12:41:00Z")

</div>

Upgrading 1.8.6 to 1.8.6-p36 has stopped C++ extensions from compiling. If I create a file foo.cc containing: #include \<ruby.h\> and compile it with: $ g++ -I/usr/lib/ruby/1.8/i686-linux -c foo.cc then it works with…

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

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