# Ruby

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

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

---

## [URL format](https://www.ruby-forum.com/t/url-format/175515)

<div class="topic-metadata">

**Author:** [@rereis](https://www.ruby-forum.com/u/rereis)\
**Replies:** 5\
**Last updated:** [September 15, 2009, 5:21am UTC](https://www.ruby-forum.com/t/url-format/175515 "2009-09-15T05:21:59Z")

</div>

I have the following hash myhash { “inter” =\> “team”, “shirt” =\> “stripe” } desired output inter=team&shirt=stripe I tried url\_for myhash but got undefined method \`url\_for’ for thanks

---

## [Tyrantmanager 1.2.0 Released](https://www.ruby-forum.com/t/tyrantmanager-1-2-0-released/175448)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 2\
**Last updated:** [September 15, 2009, 4:47am UTC](https://www.ruby-forum.com/t/tyrantmanager-1-2-0-released/175448 "2009-09-15T04:47:27Z")

</div>

tyrantmanager version 1.2.0 has been released. {{ Release notes for Version 1.2.0 }} have TyrantInstance use TyrantTable or Tyrant as appropriate for the connection WARN if the configured lua extension file is mi…

---

## [Normalizing newlines](https://www.ruby-forum.com/t/normalizing-newlines/175427)

<div class="topic-metadata">

**Author:** [@amoeen](https://www.ruby-forum.com/u/amoeen)\
**Replies:** 11\
**Last updated:** [September 15, 2009, 2:58am UTC](https://www.ruby-forum.com/t/normalizing-newlines/175427 "2009-09-15T02:58:00Z")

</div>

I have a script that processes text from the clipboard. Depending on the application the text is copied from, (even on the same platform) lines sometimes end in lf, cr, or possibly cr/lf. What’s the best way of norma…

---

## [(Bayesian) Linguistic Analysis](https://www.ruby-forum.com/t/bayesian-linguistic-analysis/175426)

<div class="topic-metadata">

**Author:** [@jphastings](https://www.ruby-forum.com/u/jphastings)\
**Replies:** 7\
**Last updated:** [September 15, 2009, 1:41am UTC](https://www.ruby-forum.com/t/bayesian-linguistic-analysis/175426 "2009-09-15T01:41:20Z")

</div>

I’ve found some interesting libraries (Classifier, Bishop) that will help you classify a given phrase once you’ve trained it with a suitable number of guided test phrases, but I’m looking for something a little differ…

---

## [Week number](https://www.ruby-forum.com/t/week-number/114977)

<div class="topic-metadata">

**Author:** [@bankai](https://www.ruby-forum.com/u/bankai)\
**Replies:** 6\
**Last updated:** [September 15, 2009, 12:06am UTC](https://www.ruby-forum.com/t/week-number/114977 "2009-09-15T00:06:25Z")

</div>

Hi All, Iâ€™m newbie on Ruby and I like to know how I can manage to print out the week numbers(counting from monday or sunday). Till now, I canâ€™t find any method for it. Can somebody please help. Many Thanks

---

## [Problem: Installing Curb in Mac OS Leopard](https://www.ruby-forum.com/t/problem-installing-curb-in-mac-os-leopard/175425)

<div class="topic-metadata">

**Author:** [@bedomax](https://www.ruby-forum.com/u/bedomax)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/problem-installing-curb-in-mac-os-leopard/175425 "2009-09-14T23:47:26Z")

</div>

Hello everyone IÂ´m trying to install Curb in Mac OSX Leopard, but I get a rake install error when you perform the following port install curl gem update gem install curb So far so good but at the time of rake instal…

---

## [Scruffy is outputting 4x2 blank images](https://www.ruby-forum.com/t/scruffy-is-outputting-4x2-blank-images/174310)

<div class="topic-metadata">

**Author:** [@den1jay](https://www.ruby-forum.com/u/den1jay)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/scruffy-is-outputting-4x2-blank-images/174310 "2009-09-14T20:30:54Z")

</div>

I’m having some difficult getting Scruffy to render properly. I don’t seem to have any gem issues, and the example code: require ‘rubygems’ require ‘scruffy’ graph = Scruffy::Graph.new graph.title = “Comparative Age…

---

## [Ruby 1.9 as the distro default](https://www.ruby-forum.com/t/ruby-1-9-as-the-distro-default/175492)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/ruby-1-9-as-the-distro-default/175492 "2009-09-14T19:34:33Z")

</div>

arch linux just upgraded the default ruby to 1.9.1p129. any other distros done so yet? martin

---

## [The standard terminal commands has disappeared in irb](https://www.ruby-forum.com/t/the-standard-terminal-commands-has-disappeared-in-irb/175475)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 7\
**Last updated:** [September 14, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/the-standard-terminal-commands-has-disappeared-in-irb/175475 "2009-09-14T19:28:59Z")

</div>

Hi. When I use the irb console the standard terminal key-commands such as Ctrl+l to clear the screen, â†‘ or â†“ to select the previous commands doesn’t work. What is the reason of this issue? How can I fix it? Debi…

---

## [Password on code - what's the best way to obfuscate it?](https://www.ruby-forum.com/t/password-on-code-whats-the-best-way-to-obfuscate-it/175345)

<div class="topic-metadata">

**Author:** [@rbermejo](https://www.ruby-forum.com/u/rbermejo)\
**Replies:** 8\
**Last updated:** [September 14, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/password-on-code-whats-the-best-way-to-obfuscate-it/175345 "2009-09-14T16:10:32Z")

</div>

Dear fellows /. I’ve been in the need to crate applications which require to make use of another program which requires authentication. As everyone who has tried to solve this problem with a script lang (no compiled,…

---

## [Rdoc\_chm 2.4.1 Released](https://www.ruby-forum.com/t/rdoc-chm-2-4-1-released/175473)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/rdoc-chm-2-4-1-released/175473 "2009-09-14T13:44:11Z")

</div>

rdoc\_chm version 2.4.1 has been released! \<{RDoc\_CHM Project Page}\[GitHub - vertiginous/rdoc\_chm: A Microsoft Compiled HTML Help generator for RDoc.\]\> \<{RDoc\_CHM Bug Tracker}\[Issues · vertiginous/rdoc\_chm · GitHub\]\> A…

---

## [Web site synch/publishing/via proxy tool - any ideas?](https://www.ruby-forum.com/t/web-site-synch-publishing-via-proxy-tool-any-ideas/175470)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/web-site-synch-publishing-via-proxy-tool-any-ideas/175470 "2009-09-14T12:59:42Z")

</div>

Hi, Question - Anyone know of a ruby tool that does this? (or something close to it)…or else http/web libraries that might be a good start to building this if nothing exists? (or even a non-ruby tool if you know of …

---

## [Can't do "gem update --system" - libcrypto.so.4: cannot open shared object file: No such file or di](https://www.ruby-forum.com/t/cant-do-gem-update-system-libcrypto-so-4-cannot-open-shared-object-file-no-such-file-or-di/175065)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/cant-do-gem-update-system-libcrypto-so-4-cannot-open-shared-object-file-no-such-file-or-di/175065 "2009-09-14T12:51:30Z")

</div>

Hi, I’ve update the software on my linux box ( v4 to v5.0 http://clarkconnect.com/ ) upgrade something has gone screwy with my Ruby installation on the machine. Any ideas? My ruby/rails installation was working fine …

---

## [Finding difference in a number range](https://www.ruby-forum.com/t/finding-difference-in-a-number-range/175461)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/finding-difference-in-a-number-range/175461 "2009-09-14T12:51:05Z")

</div>

This is my problem. I have a scale from 0 to 15 and five different elements with their own position on that scale. How can I understand if they are spread all over the scale, have different positions on the scale, or …

---

## [Cannot run : caterpillar portlets](https://www.ruby-forum.com/t/cannot-run-caterpillar-portlets/175469)

<div class="topic-metadata">

**Author:** [@simo](https://www.ruby-forum.com/u/simo)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 11:52am UTC](https://www.ruby-forum.com/t/cannot-run-caterpillar-portlets/175469 "2009-09-14T11:52:33Z")

</div>

Hi, I am newbie to ROR and rails portlet. I try to create this example-Rails-portlets (http://rails-portlet.rubyforge.org/example.html): $ rails example $ $ cd example $ ./script/generate controller bear hungry $ …

---

## [Global Mutex?](https://www.ruby-forum.com/t/global-mutex/174377)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 7\
**Last updated:** [September 14, 2009, 11:06am UTC](https://www.ruby-forum.com/t/global-mutex/174377 "2009-09-14T11:06:08Z")

</div>

Is there any thing in ruby that acts as a global mutex? For example, across multiple mongrels each running the same application, is there anyway for them to communicate between them and do something like global\_semap…

---

## [Using Data\_Make\_Struct for incomplete type](https://www.ruby-forum.com/t/using-data-make-struct-for-incomplete-type/175397)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 7\
**Last updated:** [September 14, 2009, 10:17am UTC](https://www.ruby-forum.com/t/using-data-make-struct-for-incomplete-type/175397 "2009-09-14T10:17:32Z")

</div>

Hi all I am writing a Ruby wrapper for a C library. I can wrap some of the C structs with Data\_Make\_Struct but for one of them I get “invalid application of sizeof to incomplete type”. I expect this has something to …

---

## [How to wait for web page containing frame](https://www.ruby-forum.com/t/how-to-wait-for-web-page-containing-frame/175454)

<div class="topic-metadata">

**Author:** [@shraddha\_dalvi](https://www.ruby-forum.com/u/shraddha_dalvi)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 8:30am UTC](https://www.ruby-forum.com/t/how-to-wait-for-web-page-containing-frame/175454 "2009-09-14T08:30:01Z")

</div>

Hi, We have scripted web based application in which some of pages contains frames.If the frame in page takes 1 sec to download,script throws out the pop up.We have tried by using following code :- $ie.frame(:name,“fr…

---

## [Ruby Hangman Tournament](https://www.ruby-forum.com/t/ruby-hangman-tournament/175347)

<div class="topic-metadata">

**Author:** [@slagyr](https://www.ruby-forum.com/u/slagyr)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 7:06am UTC](https://www.ruby-forum.com/t/ruby-hangman-tournament/175347 "2009-09-14T07:06:06Z")

</div>

For anyone interested in putting their ruby skills to the test, check out the Ruby Hangman Tournament. http://slagyr.github.com/sparring/ We’ve been having a lot of fun with it. It only takes an hour or two to code a…

---

## [Win32-api \[build, compile error?\]](https://www.ruby-forum.com/t/win32-api-build-compile-error/175444)

<div class="topic-metadata">

**Author:** [@i8igmac](https://www.ruby-forum.com/u/i8igmac)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 3:12am UTC](https://www.ruby-forum.com/t/win32-api-build-compile-error/175444 "2009-09-14T03:12:29Z")

</div>

http://raa.ruby-lang.org/project/win32-api/ im on windows vista, im not sure how to create this library… here is what my ruby tree looks like… C:\\Program Files\\Metasploit\\Framework3\\lib\\ruby\\1.8\\

---

## [IronRuby VS Project Messed up my Visual Studio](https://www.ruby-forum.com/t/ironruby-vs-project-messed-up-my-visual-studio/175437)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 12:03am UTC](https://www.ruby-forum.com/t/ironruby-vs-project-messed-up-my-visual-studio/175437 "2009-09-14T00:03:34Z")

</div>

Hi, I tried to build the IronRuby project and it gave the following error while opening the project. visual C# 2008 compiler could not be created. I tried to reset the settings but it did not work! Any ideas??

---

## [Net::Telnet login() intercept authentication error](https://www.ruby-forum.com/t/net-telnet-login-intercept-authentication-error/175237)

<div class="topic-metadata">

**Author:** [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Replies:** 4\
**Last updated:** [September 13, 2009, 10:23pm UTC](https://www.ruby-forum.com/t/net-telnet-login-intercept-authentication-error/175237 "2009-09-13T22:23:13Z")

</div>

CODE: user\_login=‘user1’ user\_paswd=‘xxxxxx’ … tserv = Net::Telnet::new(“Host” =\> “192.168.1.5”, “Timeout” =\> 1, “Prompt” =\> /\[$%#\>\] \\z/n) begin ans=tserv.login(user\_login,user\_paswd) rescue =\> err puts err en…

---

## [Ruby 1.8.6 p287 and p383 crashing in WIN32OLE\_EVENT.message\_loop](https://www.ruby-forum.com/t/ruby-1-8-6-p287-and-p383-crashing-in-win32ole-event-message-loop/174826)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 9\
**Last updated:** [September 13, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p287-and-p383-crashing-in-win32ole-event-message-loop/174826 "2009-09-13T18:02:56Z")

</div>

Sorry for the long subject. I wanted to make sure folks interested in WIN32OLE stuff saw it. Anyway, I am doing some application automation on Windows using the WIN32OLE classes. In this particular case, I have regist…

---

## [No such file to load -- rexml\_helper (LoadError)](https://www.ruby-forum.com/t/no-such-file-to-load-rexml-helper-loaderror/175409)

<div class="topic-metadata">

**Author:** [@rubynoob](https://www.ruby-forum.com/u/rubynoob)\
**Replies:** 4\
**Last updated:** [September 13, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-rexml-helper-loaderror/175409 "2009-09-13T17:49:26Z")

</div>

Hi, I am facing the above error. I am having Ubuntu 9.04 system with Ruby 1.8 running. Please advice. Thanks in advance. Best Regards, Active Noob

---

## [GTK2 on ubuntu](https://www.ruby-forum.com/t/gtk2-on-ubuntu/174652)

<div class="topic-metadata">

**Author:** [@rubynoob](https://www.ruby-forum.com/u/rubynoob)\
**Replies:** 3\
**Last updated:** [September 13, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/gtk2-on-ubuntu/174652 "2009-09-13T17:21:29Z")

</div>

Dear all… I am trying to write a program using ruby and GTK2 on a Ubuntu system. I have successfully got my Ruby installed, but I have no idea how to go about installing the GTK2. Please advice. Thank you. Best Rega…

---

## [All the core function are buit-in?](https://www.ruby-forum.com/t/all-the-core-function-are-buit-in/175414)

<div class="topic-metadata">

**Author:** [@freekickr](https://www.ruby-forum.com/u/freekickr)\
**Replies:** 6\
**Last updated:** [September 13, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/all-the-core-function-are-buit-in/175414 "2009-09-13T16:37:28Z")

</div>

Before posting, I went thru the offical doc and some searching forum, still hvn’t found how to view the ruby core component source code. For example, I’d like to know how the Enumerable implemented the iterator, from …

---

## [Ruby in 50 milliseconds or less](https://www.ruby-forum.com/t/ruby-in-50-milliseconds-or-less/172270)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 10\
**Last updated:** [September 13, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/ruby-in-50-milliseconds-or-less/172270 "2009-09-13T13:27:50Z")

</div>

If you use ruby 1.8 for quick command line tasks, and you use gems, you may notice that the interpreter has an execution overhead that is small but noticeable and irritating when repeated often enough. $ time RUBYOPT=…

---

## [Choosing a module name at runtime](https://www.ruby-forum.com/t/choosing-a-module-name-at-runtime/175404)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [September 13, 2009, 1:07am UTC](https://www.ruby-forum.com/t/choosing-a-module-name-at-runtime/175404 "2009-09-13T01:07:59Z")

</div>

My application chooses at runtime the input format of some data, for example :xml or :mysql. Then, the app instantiates a DataManager. The DataManager class should ‘include’ the appropriate Module (either DataIOXML or…

---

## [FileUtils.mv Pointless Errno::ENOENT](https://www.ruby-forum.com/t/fileutils-mv-pointless-errno-enoent/175025)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [September 12, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/fileutils-mv-pointless-errno-enoent/175025 "2009-09-12T22:09:15Z")

</div>

Noticed that when $DEBUG=true, any FileUtils.mv call produces two (rescued) exceptions: $ ls sim-1.0.0.zip $ irb $DEBUG=true =\> true FileUtils.mv(‘sim-1.0.0.zip’, ‘sm.zip’) Exception Errno::ENOENT' at /usr/li…

---

## [Backtracking through a file](https://www.ruby-forum.com/t/backtracking-through-a-file/175395)

<div class="topic-metadata">

**Author:** [@atreides](https://www.ruby-forum.com/u/atreides)\
**Replies:** 4\
**Last updated:** [September 12, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/backtracking-through-a-file/175395 "2009-09-12T21:44:12Z")

</div>

IO.gets steps through a file one line at a time. However, I cannot figure out how to (once i find something i need in the file) go backwards line by line through that file until i find something else. I thought possib…

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

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