# Ruby

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

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

---

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

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 22, 2009, 4:46am UTC](https://www.ruby-forum.com/t/rmacro-0-1-1-a-macro-utility-like-the-one-of-common-lisp-for-ruby/172478 "2009-07-22T04:46:48Z")

</div>

– 2009.7.22 Update Utilities are added, which transform XML into s-expressions and s- expressions into XML. Now you can treat AST as both XML and s-expressions. This means you can manipulate s-expressions as familiar…

---

## [RubyGems 1.3.5](https://www.ruby-forum.com/t/rubygems-1-3-5/172474)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 6\
**Last updated:** [July 22, 2009, 4:45am UTC](https://www.ruby-forum.com/t/rubygems-1-3-5/172474 "2009-07-22T04:45:37Z")

</div>

rubygems-update version 1.3.5 has been released! http://rubygems.rubyforge.org/ http://rubyforge.org/projects/rubygems http://rubygems.org/ RubyGems is a package management framework for Ruby. This gem is an update f…

---

## [HTTPClient::SSLConfig uses "puts" Â¿?Â¿?](https://www.ruby-forum.com/t/httpclient-sslconfig-uses-puts-a-a/172448)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [July 22, 2009, 4:15am UTC](https://www.ruby-forum.com/t/httpclient-sslconfig-uses-puts-a-a/172448 "2009-07-22T04:15:49Z")

</div>

Hi, I’m using HTTPClient which uses OpenSSL. I’ve realized that HTTPClient includes a class SSLConfig which prints to the standard and error output when verifying a SSL certificate, i.e: # Default callback for verifi…

---

## [Class.class = class](https://www.ruby-forum.com/t/class-class-class/172248)

<div class="topic-metadata">

**Author:** [@ruby\_newbie\_72](https://www.ruby-forum.com/u/ruby_newbie_72)\
**Replies:** 6\
**Last updated:** [July 22, 2009, 4:05am UTC](https://www.ruby-forum.com/t/class-class-class/172248 "2009-07-22T04:05:52Z")

</div>

I understand that when you define a new class itÂ´s an instance of Class… class Test end So you can treat “Test” as an object and asks its class : Test.class Class Is this Class itself an object ? Because when i …

---

## [Trouble Counting Words, Sentences and Paragraphs](https://www.ruby-forum.com/t/trouble-counting-words-sentences-and-paragraphs/172473)

<div class="topic-metadata">

**Author:** [@maxnorman](https://www.ruby-forum.com/u/maxnorman)\
**Replies:** 6\
**Last updated:** [July 22, 2009, 2:56am UTC](https://www.ruby-forum.com/t/trouble-counting-words-sentences-and-paragraphs/172473 "2009-07-22T02:56:33Z")

</div>

I’m working on the first example application from ‘Learning R., from Novice to Professional,’ a text analyzer that counts the number of characters (with and without spaces), lines, words, sentences and paragraphs in a…

---

## [Problems reading a text file with unusual encoding](https://www.ruby-forum.com/t/problems-reading-a-text-file-with-unusual-encoding/172456)

<div class="topic-metadata">

**Author:** [@owossoborn](https://www.ruby-forum.com/u/owossoborn)\
**Replies:** 1\
**Last updated:** [July 22, 2009, 2:53am UTC](https://www.ruby-forum.com/t/problems-reading-a-text-file-with-unusual-encoding/172456 "2009-07-22T02:53:59Z")

</div>

I have a pcap file that I simply changed the file extension to text on. It can be seen here: http://69.4.224.185/output.txt When I try to load the file into Ruby, some parts of it come out, while others don’t. For e…

---

## [Mean method](https://www.ruby-forum.com/t/mean-method/172431)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 18\
**Last updated:** [July 22, 2009, 2:35am UTC](https://www.ruby-forum.com/t/mean-method/172431 "2009-07-22T02:35:51Z")

</div>

I’m working on a lot of math in my projects so I thought I would convert over a few methods I used in other languages that I created and port them to ruby. Here’s a mean method which allows you to return either: a) a…

---

## [Standard Deviation question regarding EDOM errors](https://www.ruby-forum.com/t/standard-deviation-question-regarding-edom-errors/172469)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 8\
**Last updated:** [July 22, 2009, 2:27am UTC](https://www.ruby-forum.com/t/standard-deviation-question-regarding-edom-errors/172469 "2009-07-22T02:27:05Z")

</div>

Okay, Take a very close look at the two (one is a class, the other is a method): class Stdev def initialize(arr) @arr = arr @size = @arr.to\_a.size end def sum @arr.inject {|a,b| a + b } end def product @arr.i…

---

## [Client local time](https://www.ruby-forum.com/t/client-local-time/172471)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 0\
**Last updated:** [July 22, 2009, 1:25am UTC](https://www.ruby-forum.com/t/client-local-time/172471 "2009-07-22T01:25:44Z")

</div>

Hi folks ^^ Ok think it’s gonna be pretty easy but can’t find any solution on internet…I need to get the client local time in order to get database informations in function of the client time and not the server one. …

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/172417)

<div class="topic-metadata">

**Author:** [@vikas\_deep](https://www.ruby-forum.com/u/vikas_deep)\
**Replies:** 1\
**Last updated:** [July 22, 2009, 12:57am UTC](https://www.ruby-forum.com/t/unsubscribe/172417 "2009-07-22T00:57:40Z")

</div>

unsubscribe Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. Yahoo browser extensions - news, sports and finance

---

## [Simple problem with Regular Expression](https://www.ruby-forum.com/t/simple-problem-with-regular-expression/172459)

<div class="topic-metadata">

**Author:** [@maxnorman](https://www.ruby-forum.com/u/maxnorman)\
**Replies:** 9\
**Last updated:** [July 22, 2009, 12:36am UTC](https://www.ruby-forum.com/t/simple-problem-with-regular-expression/172459 "2009-07-22T00:36:03Z")

</div>

This simple application is an extension of an exercise from Peter Cooper’s ‘Beginning Ruby, from Novice to Professional.’ Its purpose is simple: to collect the name of a fruit and print a sentence describing the fruit…

---

## [Define\_method in inheritance](https://www.ruby-forum.com/t/define-method-in-inheritance/172462)

<div class="topic-metadata">

**Author:** [@Juston\_Davies](https://www.ruby-forum.com/u/Juston_Davies)\
**Replies:** 2\
**Last updated:** [July 22, 2009, 12:03am UTC](https://www.ruby-forum.com/t/define-method-in-inheritance/172462 "2009-07-22T00:03:19Z")

</div>

I had a quick question about something I had read in a book “The Ruby Way.” The author talks about different ways to dynamically define methods during runtime using something similar to the snippet below. def define\_m…

---

## [Black/Kastner Ruby training: for non-beginners?](https://www.ruby-forum.com/t/black-kastner-ruby-training-for-non-beginners/172464)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/black-kastner-ruby-training-for-non-beginners/172464 "2009-07-21T23:26:30Z")

</div>

Hi all – If you’re thinking about taking our Ruby training (me and Erik Kastner) but you’re not a Ruby beginner… …or should I say, if you’re not a beginner and therefore NOT thinking about taking our Ruby training… ……

---

## [Ri\_cal 0.7.4 Released](https://www.ruby-forum.com/t/ri-cal-0-7-4-released/172461)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/ri-cal-0-7-4-released/172461 "2009-07-21T23:01:56Z")

</div>

ri\_cal version 0.7.4 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

---

## [Sunspot 0.9 released](https://www.ruby-forum.com/t/sunspot-0-9-released/172457)

<div class="topic-metadata">

**Author:** [@mat\_b](https://www.ruby-forum.com/u/mat_b)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/sunspot-0-9-released/172457 "2009-07-21T22:00:32Z")

</div>

Sunspot version 0.9 has been released! DESCRIPTION Sunspot is an expressive library for indexing and searching persistent Ruby objects using the Solr search server. All interaction with Solr is done using a pure-Ru…

---

## [Ip ftp](https://www.ruby-forum.com/t/ip-ftp/172453)

<div class="topic-metadata">

**Author:** [@ilivni](https://www.ruby-forum.com/u/ilivni)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/ip-ftp/172453 "2009-07-21T20:39:13Z")

</div>

The idea of this script is: Download ftp file. Mail to some user (have not done that yet (yes this is essentially my first script) I am trying to incorporate some error handling so the script needs To test if machi…

---

## [Ruby oriented JavaCC-like parser generator?](https://www.ruby-forum.com/t/ruby-oriented-javacc-like-parser-generator/172409)

<div class="topic-metadata">

**Author:** [@Eric\_Tucker](https://www.ruby-forum.com/u/Eric_Tucker)\
**Replies:** 4\
**Last updated:** [July 21, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/ruby-oriented-javacc-like-parser-generator/172409 "2009-07-21T19:57:48Z")

</div>

I’m looking for a really solid parser generator where I can write my own grammar like in JavaCC or Lex/Yacc to parse files in a custom built language. The more portable and more efficient the better (two mutually excl…

---

## [Data Binding to IronRuby Objects in WPF](https://www.ruby-forum.com/t/data-binding-to-ironruby-objects-in-wpf/172288)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 3\
**Last updated:** [July 21, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/data-binding-to-ironruby-objects-in-wpf/172288 "2009-07-21T19:48:31Z")

</div>

Hi there, I’m trying to databind IronRuby objects to a WPF listbox with no success My data is a Ruby array of objects. The array seems to be bound fine as I see the expected number of rows in the listbox. However, eve…

---

## [\[Bug #1556\] irb does not save history from 1.8.7-p83 and later](https://www.ruby-forum.com/t/bug-1556-irb-does-not-save-history-from-1-8-7-p83-and-later/169337)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 10\
**Last updated:** [July 21, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/bug-1556-irb-does-not-save-history-from-1-8-7-p83-and-later/169337 "2009-07-21T19:36:45Z")

</div>

Bug #1556: irb does not save history from 1.8.7-p83 and later http://redmine.ruby-lang.org/issues/show/1556 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.7 (2009-01-12 pat…

---

## [\*%w\[..lib\]](https://www.ruby-forum.com/t/w-lib/172441)

<div class="topic-metadata">

**Author:** [@wsdickerson](https://www.ruby-forum.com/u/wsdickerson)\
**Replies:** 3\
**Last updated:** [July 21, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/w-lib/172441 "2009-07-21T19:09:16Z")

</div>

Hi All, $:.unshift File.join(File.dirname(FILE), \*%w\[… lib\]) what does \*%w mean in the line above? Thanks for the help the curious one

---

## [\[RCR\] Thread.abort\_on\_exception default to true](https://www.ruby-forum.com/t/rcr-thread-abort-on-exception-default-to-true/172389)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 10\
**Last updated:** [July 21, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/rcr-thread-abort-on-exception-default-to-true/172389 "2009-07-21T17:56:17Z")

</div>

Background: currently if you have a thread that “dies” without being cleaned up Thread.new { raise ‘you never see this message’ } sleep The error messages are basically swallowed, which I always find surprising–th…

---

## [Please help me with your vote](https://www.ruby-forum.com/t/please-help-me-with-your-vote/172438)

<div class="topic-metadata">

**Author:** [@Loredana\_Popescu](https://www.ruby-forum.com/u/Loredana_Popescu)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/please-help-me-with-your-vote/172438 "2009-07-21T16:20:49Z")

</div>

please help me with your vote here http://www.infoturism.ro/acorda-puncte/82406/ just press “VOTEAZA”, and i can win with your help, a trip. plz, plz thx You must vote everyday

---

## [A proposal for announcing a release of ruby to ruby distributors](https://www.ruby-forum.com/t/a-proposal-for-announcing-a-release-of-ruby-to-ruby-distributors/171718)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [July 21, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/a-proposal-for-announcing-a-release-of-ruby-to-ruby-distributors/171718 "2009-07-21T15:58:01Z")

</div>

Yuguie$B$G$9!#e(B e$B@hF|$Ne(BDebian Ruby 1.9e$B2q5D$K$F!"$d$^$@$5$s$+$i!V%j%j!\<%9A0$K9pCN$7$FM\_$7e(B e$B$$!W$H$$$&MWK\>$,$"$j$^$7$?!#e(B e$B$D$^$j!"%;%-%e%j%F%#%U%#%C%/%9$N$?$a$N%j%j!\<%9$J$I$G$O@H\<e@-$N3+\<(8e$K!“e(B …

---

## [XML output (urgent)](https://www.ruby-forum.com/t/xml-output-urgent/172410)

<div class="topic-metadata">

**Author:** [@hvmai](https://www.ruby-forum.com/u/hvmai)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/xml-output-urgent/172410 "2009-07-21T14:25:35Z")

</div>

Hi all, t = {‘type’ =\> ‘abc’, ‘numbers’ =\> {‘number’ =\> \[333\], ‘src’ =\> ‘glasses’}} =\> {“type”=\>“abc”, “numbers”=\>{“number”=\>\[333\], “src”=\>“glasses”}} puts XmlSimple.xml\_out({“policyDetails” =\> t},{“KeepRoot” =\> t…

---

## [Inheritance problem with dynamic methods](https://www.ruby-forum.com/t/inheritance-problem-with-dynamic-methods/172425)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/inheritance-problem-with-dynamic-methods/172425 "2009-07-21T13:59:15Z")

</div>

Hello, I’m tying to create a method which would allow me to get and set instance variables having the same name as the class. And this should be true even for classes inheriting it. For instance class Mother …

---

## [DelegateClasså…ƒã®ã‚¯ãƒ© ã‚¹ã®protectedãƒ¡ã‚½ãƒƒ ãƒ‰ãŒå‘¼ã³å‡ºã› ãªã„](https://www.ruby-forum.com/t/delegateclassa-a-a-a-a-a-protecteda-a-a-a-a-oea-a-a-a-a-a/172406)

<div class="topic-metadata">

**Author:** [@Akira\_M](https://www.ruby-forum.com/u/Akira_M)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 2:17am UTC](https://www.ruby-forum.com/t/delegateclassa-a-a-a-a-a-protecteda-a-a-a-a-oea-a-a-a-a-a/172406 "2009-07-21T02:17:19Z")

</div>

æ¾ç”°ã¨ç”³ã—ã¾ã™ã€‚ Ruby 1.9.2ã‹ã‚‰ã€DeletgateClasså…ƒã®protectedãƒ¡ã‚½ãƒƒãƒ‰ã‚’ å‘¼ã³å‡ºã—ãŸéš›ã®æŒ™å‹•ãŒå¤‰ã‚ã£ã¦ã„ã‚‹ã‚ˆã†ã«è¦‹ãˆã‚‹ã®ã§ ã™ãŒã€ ã“ã‚Œã¯1.9.2ã‹ã‚‰ä»•æ§˜å¤‰æ›´ãŒã‚ã£ãŸ…

---

## [Getting char from string as fixnum in 1.8 and 1.9](https://www.ruby-forum.com/t/getting-char-from-string-as-fixnum-in-1-8-and-1-9/172384)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 9\
**Last updated:** [July 20, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/getting-char-from-string-as-fixnum-in-1-8-and-1-9/172384 "2009-07-20T22:27:34Z")

</div>

What’s the best way to write this program so that it will run correctly on both 1.8 and 1.9? This works, but I’m just curious if there’s anything better, preferably without the RUBY\_VERSION test, without adding method…

---

## [Ruby 1.9.1 One-Click Installer](https://www.ruby-forum.com/t/ruby-1-9-1-one-click-installer/172353)

<div class="topic-metadata">

**Author:** [@rohitchauhan802](https://www.ruby-forum.com/u/rohitchauhan802)\
**Replies:** 4\
**Last updated:** [July 20, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-one-click-installer/172353 "2009-07-20T19:56:49Z")

</div>

Latest Ruby 1.9.1 One-Click Installer with No-Hassle Rails Installation Filename :Ruby O.-Click Installer for Ruby Version 1.9.1 Author : Rohit C. Installation : Click to Install Ruby . Follow Instructions . To Inst…

---

## [Test::Unit run order](https://www.ruby-forum.com/t/test-unit-run-order/172154)

<div class="topic-metadata">

**Author:** [@Dylan](https://www.ruby-forum.com/u/Dylan)\
**Replies:** 9\
**Last updated:** [July 20, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/test-unit-run-order/172154 "2009-07-20T19:38:01Z")

</div>

Hey there! I had a question about the order tests are run in Test::Unit. I have a class with about 10 tests and I’d like to be able to better control the order they run in. Right now they just run alphabetically, and …

---

## [How to strip inner whitespace in rails](https://www.ruby-forum.com/t/how-to-strip-inner-whitespace-in-rails/172352)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 10\
**Last updated:** [July 20, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/how-to-strip-inner-whitespace-in-rails/172352 "2009-07-20T18:22:35Z")

</div>

I want to strip any whitespace that more than 1 to be 1 For example “A B C” ===\> “A B C” "Very Important" ===\> "Very Important"

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

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