# Ruby

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

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

---

## [Silverlight B3 - Positioning an element within a Canvas](https://www.ruby-forum.com/t/silverlight-b3-positioning-an-element-within-a-canvas/165810)

<div class="topic-metadata">

**Author:** [@eoin](https://www.ruby-forum.com/u/eoin)\
**Replies:** 4\
**Last updated:** [June 26, 2009, 11:43am UTC](https://www.ruby-forum.com/t/silverlight-b3-positioning-an-element-within-a-canvas/165810 "2009-06-26T11:43:22Z")

</div>

Hi there, I have a very simple hello-world type IronRuby+Silverlight application based on the AGDLR samples. It consists of a Canvas containing a single Rectangle. I am attempting to position the Rectangle within the …

---

## [Changing non-standard ASCII character casing (UTF-8)](https://www.ruby-forum.com/t/changing-non-standard-ascii-character-casing-utf-8/170970)

<div class="topic-metadata">

**Author:** [@dueckes](https://www.ruby-forum.com/u/dueckes)\
**Replies:** 1\
**Last updated:** [June 26, 2009, 9:51am UTC](https://www.ruby-forum.com/t/changing-non-standard-ascii-character-casing-utf-8/170970 "2009-06-26T09:51:25Z")

</div>

I’m looking for some information on changing the casing of non-standard ASCII UTF-8 characters in JRuby. In MRI, it appears the unicode gem is the recommended approach for this: http://ideaharbor.org/notes/technical/…

---

## [New-b question](https://www.ruby-forum.com/t/new-b-question/170475)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 11\
**Last updated:** [June 26, 2009, 9:49am UTC](https://www.ruby-forum.com/t/new-b-question/170475 "2009-06-26T09:49:02Z")

</div>

Hello all, I am a ruby novice who would really appreciate some guidance with the following: I am trying to calculate a 5 day weighted moving average based on a set of numbers in a data series. The most recent is give…

---

## [Trunk $B$G(B mswin32$BHG$N%S%k%I\<:GT(B](https://www.ruby-forum.com/t/trunk-b-g-b-mswin32-bhg-n-s-k-i-gt-b/171004)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 2\
**Last updated:** [June 26, 2009, 7:20am UTC](https://www.ruby-forum.com/t/trunk-b-g-b-mswin32-bhg-n-s-k-i-gt-b/171004 "2009-06-26T07:20:27Z")

</div>

e$BLZB\<$G$9!#e(B e$B8=:\_$3$A$i$N;v\>p$Ge(B redmine e$B7PM3$GEPO?$,$G$-$^$;$s$N$G%a!\<%k$GJs9p$5$;$F$$$?$@$-$^$9!#e(B #e$B;v8e$G$h$m$7$1$l$P$"$H$GEPO?$7$^$9$,e(B trunk e$B$Ne(B snapshot e$B$NF|IU$G8@$&$H!“e(B6/22 e$B”\*e…

---

## [Noob question on strings](https://www.ruby-forum.com/t/noob-question-on-strings/170960)

<div class="topic-metadata">

**Author:** [@styggentorsken](https://www.ruby-forum.com/u/styggentorsken)\
**Replies:** 8\
**Last updated:** [June 26, 2009, 4:06am UTC](https://www.ruby-forum.com/t/noob-question-on-strings/170960 "2009-06-26T04:06:26Z")

</div>

Would anyone care to explain what happens when the following is executed? (I already know what gets printed, but not why…) print \<\<-STRING1, \<\<-STRING2 Concat STRING1 enate STRING2 I’m sorry if it has been answere…

---

## [RubyWeekend #3 Game Contest: June 26-28](https://www.ruby-forum.com/t/rubyweekend-3-game-contest-june-26-28/170950)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 6\
**Last updated:** [June 26, 2009, 2:26am UTC](https://www.ruby-forum.com/t/rubyweekend-3-game-contest-june-26-28/170950 "2009-06-26T02:26:54Z")

</div>

After being on hiatus for nearly a year, the RubyWeekend game creation contest returns this weekend, June 26-28! The contest period runs for 72 hours this time, to allow everyone around the world plenty of time to cre…

---

## [Code Review: FuncDelegates](https://www.ruby-forum.com/t/code-review-funcdelegates/171075)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 1:08am UTC](https://www.ruby-forum.com/t/code-review-funcdelegates/171075 "2009-06-26T01:08:01Z")

</div>

tfpt review “/shelveset:FuncDelegates;REDMOND\\tomat” Replaces custom block delegates with Func delegates. Tomas

---

## [Ironruby.info updated](https://www.ruby-forum.com/t/ironruby-info-updated/171074)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 1:03am UTC](https://www.ruby-forum.com/t/ironruby-info-updated/171074 "2009-06-26T01:03:55Z")

</div>

Sorry it’s been so long. But it’s up to date again. JD …there is no try

---

## [Gtk interface (with glade) don't wanna run](https://www.ruby-forum.com/t/gtk-interface-with-glade-dont-wanna-run/171073)

<div class="topic-metadata">

**Author:** [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 12:55am UTC](https://www.ruby-forum.com/t/gtk-interface-with-glade-dont-wanna-run/171073 "2009-06-26T00:55:44Z")

</div>

Hi all, well I’m not really good with User interface, and I decided to make one for this little program: #!/usr/bin/ruby class Programming\_menu #show a menu offering programming utilities def show\_menu() puts "1…

---

## [Code critique?](https://www.ruby-forum.com/t/code-critique/171067)

<div class="topic-metadata">

**Author:** [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Replies:** 1\
**Last updated:** [June 26, 2009, 12:37am UTC](https://www.ruby-forum.com/t/code-critique/171067 "2009-06-26T00:37:01Z")

</div>

Hi - very new here (1st post). I looked in the categories, but I didn’t see a section for possible code critiques. Is there a good place for such a thing here? Thanks, John

---

## [Multibyte and Gems](https://www.ruby-forum.com/t/multibyte-and-gems/170820)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 4\
**Last updated:** [June 26, 2009, 12:25am UTC](https://www.ruby-forum.com/t/multibyte-and-gems/170820 "2009-06-26T00:25:53Z")

</div>

I’ve tracked down a problem with a Gem I am trying to use. It turns out that it has some non-ascii characters in it; for example the second quote in the regular expression below is not an ASCII character: parts = sel…

---

## [Smtp\_tls 1.0.2 Released](https://www.ruby-forum.com/t/smtp-tls-1-0-2-released/171072)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 12:21am UTC](https://www.ruby-forum.com/t/smtp-tls-1-0-2-released/171072 "2009-06-26T00:21:46Z")

</div>

smtp\_tls version 1.0.2 has been released! http://seattlerb.rubyforge.org/smtp\_tls Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+). Simply require ‘smtp\_tls’ and use the Net::SMTP#enable\_starttls …

---

## [Rmacro - a macro utility like the one of Common Lisp for Ruby](https://www.ruby-forum.com/t/rmacro-a-macro-utility-like-the-one-of-common-lisp-for-ruby/171069)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/rmacro-a-macro-utility-like-the-one-of-common-lisp-for-ruby/171069 "2009-06-25T23:40:45Z")

</div>

This utility includes ‘gensym, macro\_expand, bq(backquote of Lisp), c (comma of Lisp), …’. You can require a file which use macros by ‘require\_with\_macro (required\_name, delete\_expanded\_file, \*macro\_objs)’ I made thi…

---

## [Ruby Output Problem](https://www.ruby-forum.com/t/ruby-output-problem/171050)

<div class="topic-metadata">

**Author:** [@Mikem94590](https://www.ruby-forum.com/u/Mikem94590)\
**Replies:** 5\
**Last updated:** [June 25, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/ruby-output-problem/171050 "2009-06-25T23:20:51Z")

</div>

Hello all. I am new to Ruby, and am created a simple program that takes a name, and outputs "Hello " + name + “.”. My problem is that this is putting the output on multiple lines. e.g: Hello Mike . What am I doing…

---

## [RubyGems Missing, frustation with Solaris CoolStack and Jruby](https://www.ruby-forum.com/t/rubygems-missing-frustation-with-solaris-coolstack-and-jruby/171048)

<div class="topic-metadata">

**Author:** [@chiefgeek](https://www.ruby-forum.com/u/chiefgeek)\
**Replies:** 6\
**Last updated:** [June 25, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/rubygems-missing-frustation-with-solaris-coolstack-and-jruby/171048 "2009-06-25T22:49:11Z")

</div>

I’m having growing doubts about Solaris Coolstack tomcat, it has a lot of weird timing issues with Jruby. Were seeing an issue where ‘sometimes’ when you startup tomcat it will give you this error : Rails requires Ru…

---

## [Getting final URL during HTTP redirection](https://www.ruby-forum.com/t/getting-final-url-during-http-redirection/171060)

<div class="topic-metadata">

**Author:** [@ohboyotero](https://www.ruby-forum.com/u/ohboyotero)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/getting-final-url-during-http-redirection/171060 "2009-06-25T22:46:15Z")

</div>

I need URL resolution for some software I’m working on. Better put, I want to figure out the final URL at which you land when requesting some initial URL. I have no interest in the page data itself. Properly handling …

---

## [Jruby and actionwebservice](https://www.ruby-forum.com/t/jruby-and-actionwebservice/171056)

<div class="topic-metadata">

**Author:** [@dalton](https://www.ruby-forum.com/u/dalton)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/jruby-and-actionwebservice/171056 "2009-06-25T21:36:20Z")

</div>

Hello again, I still have the problem that I do not get running jRoR with ActionWebService. I mentioned all the relevant points in the first mails. Is anyone using ActionWebService with jRoR? Thanks in advance. Gre…

---

## [PermGen OutOfMemory, JRuby 1.2.0](https://www.ruby-forum.com/t/permgen-outofmemory-jruby-1-2-0/170575)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/permgen-outofmemory-jruby-1-2-0/170575 "2009-06-25T21:30:27Z")

</div>

Hi List, We have been pushing our application with some performance testing of late and during these tests we are experiencing some PermGen out-of-memory problems using JRuby 1.2.0 + Rails 2.2.2. Our application is a …

---

## [Code Review: bugfixes](https://www.ruby-forum.com/t/code-review-bugfixes/171053)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/code-review-bugfixes/171053 "2009-06-25T20:59:58Z")

</div>

tfpt review “/shelveset:bugfixes;REDMOND\\jdeville” Comment : Regression tests to close Codeplex bugs: Access is allowed to internal fields from http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1521 File.e…

---

## [Max of an array?](https://www.ruby-forum.com/t/max-of-an-array/171032)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 3\
**Last updated:** [June 25, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/max-of-an-array/171032 "2009-06-25T20:45:52Z")

</div>

what is the maximum size of elements can a ruby array hold and ‘process’ comfortably for a 1GB RAM machine? Sorry if this sounds obvious

---

## [Javascript.new](https://www.ruby-forum.com/t/javascript-new/171026)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/javascript-new/171026 "2009-06-25T20:19:27Z")

</div>

Object.prototype\[‘new’\]=function(){ var params=\[\]; var argc=arguments.length; for(var i=0;i\<argc;i++){ params.push(‘arguments\[’+i+’\]’); } var code=‘return new this(’+params.join(’,’)+’);’; return new Function(code…

---

## [Access to old versions of Ruby core documentation?](https://www.ruby-forum.com/t/access-to-old-versions-of-ruby-core-documentation/171044)

<div class="topic-metadata">

**Author:** [@Lee\_Hinman](https://www.ruby-forum.com/u/Lee_Hinman)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/access-to-old-versions-of-ruby-core-documentation/171044 "2009-06-25T19:57:07Z")

</div>

Hey Ruby-talk, I was wondering, is there a way I can access older versions of the Ruby core documentation? I’m trying to debug an issue with Kernel.select on Ruby 1.8.1 (that works fine with 1.8.6 and 1.9.1), and I w…

---

## [Review: Misc ActiveRecord bug fixes](https://www.ruby-forum.com/t/review-misc-activerecord-bug-fixes/171047)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/review-misc-activerecord-bug-fixes/171047 "2009-06-25T19:38:57Z")

</div>

---

## [Execute Ruby script over HTTP protocol as Java Script](https://www.ruby-forum.com/t/execute-ruby-script-over-http-protocol-as-java-script/170819)

<div class="topic-metadata">

**Author:** [@karthick](https://www.ruby-forum.com/u/karthick)\
**Replies:** 12\
**Last updated:** [June 25, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/execute-ruby-script-over-http-protocol-as-java-script/170819 "2009-06-25T17:10:40Z")

</div>

Hi All, Am a newbie to this Ruby forum. I need a strong help from you people since i am not well experienced in Ruby. I need to execute Ruby script on internet (web pages). Is it possible to execute the ruby code ove…

---

## [Errors running flay](https://www.ruby-forum.com/t/errors-running-flay/171038)

<div class="topic-metadata">

**Author:** [@jdrietz](https://www.ruby-forum.com/u/jdrietz)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/errors-running-flay/171038 "2009-06-25T16:55:47Z")

</div>

Hello All, I am trying to run Flay against my code base but am getting an error. I suspect it is related to the version compatibility but am not entirely sure. Any helpful ideas would be appreciated. C:\\prosrm\_2\\atf\\w…

---

## [Mark GPS coordinates on image file](https://www.ruby-forum.com/t/mark-gps-coordinates-on-image-file/170535)

<div class="topic-metadata">

**Author:** [@nexflo](https://www.ruby-forum.com/u/nexflo)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/mark-gps-coordinates-on-image-file/170535 "2009-06-25T13:31:00Z")

</div>

Hey everybody, I am looking for a way to create a map with GPS coordinates. I have a list with coordinates and I would like to display each of them as a small little dot in an image showing the earth (similar to tho…

---

## [Self.\_\_send\_\_(:test\_method) passing parameter to this](https://www.ruby-forum.com/t/self-send-test-method-passing-parameter-to-this/171025)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [June 25, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/self-send-test-method-passing-parameter-to-this/171025 "2009-06-25T13:21:51Z")

</div>

Hi How can I pass parameters to the method, test\_method And also would like to know what is \_\_ in send ? Thanks

---

## [Minitest 1.4.2 Released](https://www.ruby-forum.com/t/minitest-1-4-2-released/171018)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 11:35am UTC](https://www.ruby-forum.com/t/minitest-1-4-2-released/171018 "2009-06-25T11:35:22Z")

</div>

minitest version 1.4.2 has been released! http://rubyforge.org/projects/bfts minitest/unit is a small and fast replacement for ruby’s huge and slow test/unit. This is meant to be clean and easy to use both as a regul…

---

## [HTML dom](https://www.ruby-forum.com/t/html-dom/170860)

<div class="topic-metadata">

**Author:** [@tabassman](https://www.ruby-forum.com/u/tabassman)\
**Replies:** 8\
**Last updated:** [June 25, 2009, 8:50am UTC](https://www.ruby-forum.com/t/html-dom/170860 "2009-06-25T08:50:41Z")

</div>

Hi, I’m trying to build a HTML page indexer in ruby and I’d like to be able to use DOM and or XPath on a document. The application is currently using REXML, but that seems to be a bit too strict and any deviation fro…

---

## [No module api file after generating ruby core api](https://www.ruby-forum.com/t/no-module-api-file-after-generating-ruby-core-api/171001)

<div class="topic-metadata">

**Author:** [@bleers](https://www.ruby-forum.com/u/bleers)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 5:05am UTC](https://www.ruby-forum.com/t/no-module-api-file-after-generating-ruby-core-api/171001 "2009-06-25T05:05:57Z")

</div>

I want to generate a local version of ruby core api. And I am using the hanna tool(GitHub - mislav/hanna: More than just a new RDoc template) to generate the api. I downloaded the newest version of ruby 1.9.1 and unco…

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

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