# Ruby

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

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

---

## [Where to ruby tk in gem format?](https://www.ruby-forum.com/t/where-to-ruby-tk-in-gem-format/184708)

<div class="topic-metadata">

**Author:** [@Raven\_Z](https://www.ruby-forum.com/u/Raven_Z)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 4:05am UTC](https://www.ruby-forum.com/t/where-to-ruby-tk-in-gem-format/184708 "2010-03-12T04:05:47Z")

</div>

Wondering, where can I find ruby tcl/tk in gem format? Thank you, -Robin

---

## [\[ANN\] weakling 0.0.1 - a reference queue and weak ID hash for JRuby](https://www.ruby-forum.com/t/ann-weakling-0-0-1-a-reference-queue-and-weak-id-hash-for-jruby/185031)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 2:49am UTC](https://www.ruby-forum.com/t/ann-weakling-0-0-1-a-reference-queue-and-weak-id-hash-for-jruby/185031 "2010-03-12T02:49:05Z")

</div>

Hi all! JRuby 1.5 will soon be released, in which ObjectSpace.\_id2ref does not function unless ObjectSpace is turned on. Since the typical pattern for \_id2ref is to have a weak-valued hash of numeric IDs to objects, …

---

## [Beware prelink and compiling ruby from source](https://www.ruby-forum.com/t/beware-prelink-and-compiling-ruby-from-source/185030)

<div class="topic-metadata">

**Author:** [@dougal](https://www.ruby-forum.com/u/dougal)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 2:07am UTC](https://www.ruby-forum.com/t/beware-prelink-and-compiling-ruby-from-source/185030 "2010-03-12T02:07:32Z")

</div>

All, Putting this in the ruby-talk ML just to have it searchable in case others run into this problem. On some redhat based distros, if you compile ruby 1.9.1 from source and install it as /usr/bin/ruby and have the…

---

## [NameError - confused gems?](https://www.ruby-forum.com/t/nameerror-confused-gems/185006)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 11:06pm UTC](https://www.ruby-forum.com/t/nameerror-confused-gems/185006 "2010-03-11T23:06:15Z")

</div>

I have 2 gems installed: ruby-opengl and rubygame. Both gems contain their own gl.rb file. When just ruby-opengl is installed, I can require it fine: require ‘opengl’ =\> true Once I install rubygame, I get the Nam…

---

## [Simple SMTP server in ruby](https://www.ruby-forum.com/t/simple-smtp-server-in-ruby/184983)

<div class="topic-metadata">

**Author:** [@mad\_joker](https://www.ruby-forum.com/u/mad_joker)\
**Replies:** 2\
**Last updated:** [March 11, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/simple-smtp-server-in-ruby/184983 "2010-03-11T23:05:29Z")

</div>

Hi, I was trying a simple mail smtp server in ruby. I tried the code in the following link http://snippets.dzone.com/posts/show/3932 I am unable to send mail to my gmail account from the server. Can you please te…

---

## [Each\_char](https://www.ruby-forum.com/t/each-char/185017)

<div class="topic-metadata">

**Author:** [@murloc](https://www.ruby-forum.com/u/murloc)\
**Replies:** 5\
**Last updated:** [March 11, 2010, 11:01pm UTC](https://www.ruby-forum.com/t/each-char/185017 "2010-03-11T23:01:58Z")

</div>

Hello Im new to ruby and programming and I saw a guy do this on a tutorial video: “Hello”.each\_char do |x| puts x end The result was that it printed one letter in the string at a time until it had printed the whol…

---

## [Reading an UTF-8 encoded file](https://www.ruby-forum.com/t/reading-an-utf-8-encoded-file/184932)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 12\
**Last updated:** [March 11, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/reading-an-utf-8-encoded-file/184932 "2010-03-11T23:00:48Z")

</div>

if i read and output to terminal an UTF-8 encoded file, i do not have the same result with ruby 1.8.x and ruby 1.9 with 1.8 i get “é” correctly, with 1.9 i get it wrong “Ã©” even if i specify the encoding by : open(F…

---

## [Code Review: InvalidNames](https://www.ruby-forum.com/t/code-review-invalidnames/185021)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:43pm UTC](https://www.ruby-forum.com/t/code-review-invalidnames/185021 "2010-03-11T22:43:14Z")

</div>

tfpt review “/shelveset:InvalidNames;REDMOND\\tomat” Comment : Adds filtering of invalid names from the lists that are produced by methods, instance\_methods, constants, etc. Fixes Dev.bat. Environment variables are i…

---

## [The Proper way to detect the Windows Platform in Ruby](https://www.ruby-forum.com/t/the-proper-way-to-detect-the-windows-platform-in-ruby/185020)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 4\
**Last updated:** [March 11, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/the-proper-way-to-detect-the-windows-platform-in-ruby/185020 "2010-03-11T22:40:19Z")

</div>

Thought I’d share this with everyone: http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/ From one of the JRuby core team. http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windo…

---

## [SOCKSSocket working?](https://www.ruby-forum.com/t/sockssocket-working/184900)

<div class="topic-metadata">

**Author:** [@Ricardo\_Amorim](https://www.ruby-forum.com/u/Ricardo_Amorim)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/sockssocket-working/184900 "2010-03-11T21:35:54Z")

</div>

Hello, I compiled ruby-1.8.7-p249 with --enable-socks and package libsocks4 installed in Debian lenny. Well, i’m trying to get SOCKS working with Net::FTP. I started “ssh -N -D 8000 user@otherhostip” and configured S…

---

## [Convert s to i, then + 1](https://www.ruby-forum.com/t/convert-s-to-i-then-1/184811)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 9\
**Last updated:** [March 11, 2010, 8:20pm UTC](https://www.ruby-forum.com/t/convert-s-to-i-then-1/184811 "2010-03-11T20:20:54Z")

</div>

Hi all, I am very to new to ruby and am having trouble writing a very simple program: basically i just want to ask for an integer then return the integer +1 here is my code: puts ‘what’s your favorite number?’ var1 =…

---

## [RCov](https://www.ruby-forum.com/t/rcov/182108)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 6\
**Last updated:** [March 11, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/rcov/182108 "2010-03-11T19:15:20Z")

</div>

I know everyone is using IronRuby for their testing, but what about code coverage? Has anyone tried RCov with a .NET app? Ryan R. Email: removed\_email\_address@domain.invalid LinkedIn: http://www.linkedin.com/in/ryanr…

---

## [Rails deployment in IIS](https://www.ruby-forum.com/t/rails-deployment-in-iis/185000)

<div class="topic-metadata">

**Author:** [@Matthew\_Snyder](https://www.ruby-forum.com/u/Matthew_Snyder)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 6:11pm UTC](https://www.ruby-forum.com/t/rails-deployment-in-iis/185000 "2010-03-11T18:11:31Z")

</div>

I’m looking into using IronRuby.Rack (http://github.com/tenball/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack/ ) to deploy a Ruby on Rails app on an IIS server. However there appears to be a project file missin…

---

## [Building ruby 1.9.1: miniruby failure](https://www.ruby-forum.com/t/building-ruby-1-9-1-miniruby-failure/184992)

<div class="topic-metadata">

**Author:** [@wonderdog](https://www.ruby-forum.com/u/wonderdog)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/building-ruby-1-9-1-miniruby-failure/184992 "2010-03-11T16:12:38Z")

</div>

Building on a SuSE 9 box. Not sure how to troubleshoot. Any advice? Thanks gcc -O2 -g -Wall -Wno-parentheses -L. -rdynamic -Wl,-export- dynamic main.o dln.o dmyencoding.o miniprelude.o array.o bignum.o class.o co…

---

## [Time#round](https://www.ruby-forum.com/t/time-round/184969)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 8:47am UTC](https://www.ruby-forum.com/t/time-round/184969 "2010-03-11T08:47:47Z")

</div>

e$BA0$K$A$g$C$H=q$-$^$7$?$,!"e(BTime#round e$B$rDI2C$9$k$N$O$I$&$G$7$g$&!#e(B e$B$3$l$O!"ICL$K~$N;~9o$r4\]$a$k%a%=%C%I$G$9!#e(B e$B$A$g$&$Ie(B \[ruby-core:28602\] e$B$K$b$"$j$^$7$?$,!“e(B Time e$B%\*%V%8%’%/%HFb$K8m:9$r4…

---

## [Ruby::DL vs Ruby::FFI](https://www.ruby-forum.com/t/ruby-dl-vs-ruby-ffi/184784)

<div class="topic-metadata">

**Author:** [@Aston](https://www.ruby-forum.com/u/Aston)\
**Replies:** 15\
**Last updated:** [March 11, 2010, 6:38am UTC](https://www.ruby-forum.com/t/ruby-dl-vs-ruby-ffi/184784 "2010-03-11T06:38:27Z")

</div>

Ruby.DL and FFI libraries are great for programmers like me who are not internet programmers, but are more interested in scientific and number processing etc. I really like FFI, though I started with DL since at that …

---

## [Ruby (not rails) internationalization](https://www.ruby-forum.com/t/ruby-not-rails-internationalization/184961)

<div class="topic-metadata">

**Author:** [@amishera](https://www.ruby-forum.com/u/amishera)\
**Replies:** 2\
**Last updated:** [March 11, 2010, 6:37am UTC](https://www.ruby-forum.com/t/ruby-not-rails-internationalization/184961 "2010-03-11T06:37:52Z")

</div>

I have some web page which contains accented words (in french/italian etc) which I need to parse/extract and display. But the internationalization is not being taken into consideration so crazy characters are being sh…

---

## [Rubytest.vim 1.0.0 Released](https://www.ruby-forum.com/t/rubytest-vim-1-0-0-released/184966)

<div class="topic-metadata">

**Author:** [@flowerborn](https://www.ruby-forum.com/u/flowerborn)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 6:05am UTC](https://www.ruby-forum.com/t/rubytest-vim-1-0-0-released/184966 "2010-03-11T06:05:06Z")

</div>

Hi All, Rubytest.vim is a vim (http://www.vim.org) plugin, which helps you to run tests/specs/features in vim, in order to accelerate your red-green development circle. Within this realease, rubytest.vim supports al…

---

## [RabbitMQ and SSH behind firewall](https://www.ruby-forum.com/t/rabbitmq-and-ssh-behind-firewall/184963)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:59am UTC](https://www.ruby-forum.com/t/rabbitmq-and-ssh-behind-firewall/184963 "2010-03-11T03:59:12Z")

</div>

I have some computers behind a firewall, the only ports i can use is 80 and 443, http and https. Ive made a script using RabbitMQ that uses port 5673 i thin and SSH that use port 22. But how can i use them behind the…

---

## [Iterate through an @Array](https://www.ruby-forum.com/t/iterate-through-an-array/184960)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 2:58am UTC](https://www.ruby-forum.com/t/iterate-through-an-array/184960 "2010-03-11T02:58:17Z")

</div>

New to ruby If I have an Array @sample\_array How do I display the attr\_accessors in a table This doesnâ€™t seem to be the right way as it repeats the table each time it iterates through the array. Thanks, John @s…

---

## [Side-effects from STDIN.reopen?](https://www.ruby-forum.com/t/side-effects-from-stdin-reopen/184943)

<div class="topic-metadata">

**Author:** [@cainlevy](https://www.ruby-forum.com/u/cainlevy)\
**Replies:** 2\
**Last updated:** [March 11, 2010, 12:30am UTC](https://www.ruby-forum.com/t/side-effects-from-stdin-reopen/184943 "2010-03-11T00:30:33Z")

</div>

I’m encoding videos from a background process and found a video where the audio sync is off … but only when the encoder is run inside a daemon. After some work boiling down the Daemons code, I was able to reduce the e…

---

## [Aliasing a class method](https://www.ruby-forum.com/t/aliasing-a-class-method/184954)

<div class="topic-metadata">

**Author:** [@Ricardo\_Amorim](https://www.ruby-forum.com/u/Ricardo_Amorim)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 11:42pm UTC](https://www.ruby-forum.com/t/aliasing-a-class-method/184954 "2010-03-10T23:42:13Z")

</div>

Hi, I’ve made some changes to net/http that allows me to bind to a local IP address using TCPSocket. The changes are in a separate script that i require after net/http. Problem is that several warnings of redefined m…

---

## [What appears to be a really sneaky bug related to loading assemblies (System::Action is temporarily](https://www.ruby-forum.com/t/what-appears-to-be-a-really-sneaky-bug-related-to-loading-assemblies-system-action-is-temporarily/184952)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 1\
**Last updated:** [March 10, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/what-appears-to-be-a-really-sneaky-bug-related-to-loading-assemblies-system-action-is-temporarily/184952 "2010-03-10T23:38:07Z")

</div>

Intro: Using IronRuby 1.0 rc2; .NET 3.5SP1 on windows XP sp3 I have some code which is using DynamicMethod / GetILGenerator to create statically typed methods at runtime, so I can call IUnknown-based COM objects from …

---

## [End of file reached displaying while sending email in Jruby](https://www.ruby-forum.com/t/end-of-file-reached-displaying-while-sending-email-in-jruby/160873)

<div class="topic-metadata">

**Author:** [@uma07](https://www.ruby-forum.com/u/uma07)\
**Replies:** 4\
**Last updated:** [March 10, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/end-of-file-reached-displaying-while-sending-email-in-jruby/160873 "2010-03-10T21:33:47Z")

</div>

Hi all, while sending email in jruby 1.1.6 with rails 2.2.2 with tlsmail using gmail.com as domain Error: End of file reached error displaying but mail content is there in log file D:/jruby-1.1.6RC1/lib/ruby/gems/1.…

---

## [Sequel migrations](https://www.ruby-forum.com/t/sequel-migrations/184945)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 1\
**Last updated:** [March 10, 2010, 9:25pm UTC](https://www.ruby-forum.com/t/sequel-migrations/184945 "2010-03-10T21:25:16Z")

</div>

Hi. I’ve just started to use Sequel and discovered that they removed the migration mechanism in the last version of this ORM. What happened with migrations in Sequel? They replaced them with a new technic of building…

---

## [What has happened to rubygarden.org?](https://www.ruby-forum.com/t/what-has-happened-to-rubygarden-org/125867)

<div class="topic-metadata">

**Author:** [@mercan01](https://www.ruby-forum.com/u/mercan01)\
**Replies:** 7\
**Last updated:** [March 10, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/what-has-happened-to-rubygarden-org/125867 "2010-03-10T20:56:01Z")

</div>

Is the rubygarden.org site still in operation? The URL is taking me to a domain park. – Bill Rutiser

---

## [Install ruby 1.9-p243 from source in /usr/bin, ubuntu 9.04](https://www.ruby-forum.com/t/install-ruby-1-9-p243-from-source-in-usr-bin-ubuntu-9-04/174682)

<div class="topic-metadata">

**Author:** [@tick](https://www.ruby-forum.com/u/tick)\
**Replies:** 5\
**Last updated:** [March 10, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/install-ruby-1-9-p243-from-source-in-usr-bin-ubuntu-9-04/174682 "2010-03-10T20:05:39Z")

</div>

What I expected: Ruby should install in /usr/bin and /usr/lib where the previous ruby installation already is. What happened: Ruby installed in /usr/local What I did: download ruby1.9-p243 unpack ./configure make …

---

## [IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid](https://www.ruby-forum.com/t/ironruby-0-9-and-ironpython-2-6-beta2-in-debian-sid/184944)

<div class="topic-metadata">

**Author:** [@C.JSAdams-Collier](https://www.ruby-forum.com/u/C.JSAdams-Collier)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/ironruby-0-9-and-ironpython-2-6-beta2-in-debian-sid/184944 "2010-03-10T20:05:04Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [A "How to" about installing Ruby/TK for the Windows RubyInstaller](https://www.ruby-forum.com/t/a-how-to-about-installing-ruby-tk-for-the-windows-rubyinstaller/184940)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/a-how-to-about-installing-ruby-tk-for-the-windows-rubyinstaller/184940 "2010-03-10T18:10:57Z")

</div>

HOW TO INSTALL RUBY/TK FOR THE WINDOWS RUBYINSTALLER (“NEW” ONE-CLICK-INSTALLER) ============ Introduction If you want to use Ruby/Tk with the “new” One-Click-Installer for Windows (i.e. the “RubyInstaller”) from h…

---

## [Calculation of means in Narray objects](https://www.ruby-forum.com/t/calculation-of-means-in-narray-objects/184917)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 6\
**Last updated:** [March 10, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/calculation-of-means-in-narray-objects/184917 "2010-03-10T15:34:53Z")

</div>

I’m trying to perform some calculations on data held in NArray objects but it is not entirely clear to me how this ought to be done (I’ve looked here: http://narray.rubyforge.org/SPEC.en). The data consist of 3-dimens…

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

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