# Ruby

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

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

---

## [Ruby plugin 0.8.1 and JEdit 4.3pre9](https://www.ruby-forum.com/t/ruby-plugin-0-8-1-and-jedit-4-3pre9/91432)

<div class="topic-metadata">

**Author:** [@Robert\_Shiplett](https://www.ruby-forum.com/u/Robert_Shiplett)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 1:14am UTC](https://www.ruby-forum.com/t/ruby-plugin-0-8-1-and-jedit-4-3pre9/91432 "2007-04-09T01:14:37Z")

</div>

While looking for a Ruby IDE I tried the latest Ruby plugin in JEdit 4.3 pre9 I found I had to tweak ruby.xml ( a bogus ‘;’ syntax error that is a missing value for a ‘filesize=’ ) so I removed the offending ‘filesi…

---

## [Re: Getting to 100 (#119)](https://www.ruby-forum.com/t/re-getting-to-100-119/91430)

<div class="topic-metadata">

**Author:** [@Harrison\_R](https://www.ruby-forum.com/u/Harrison_R)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 1:13am UTC](https://www.ruby-forum.com/t/re-getting-to-100-119/91430 "2007-04-09T01:13:37Z")

</div>

On Apr 6, 6:55 am, Ruby Q. removed\_email\_address@domain.invalid wrote: Extra Credit: Write your program to accept an arbitrary number and ordering of digits, an arbitrary set of operators (but allowing the same opera…

---

## [Hacking mkmf.rb](https://www.ruby-forum.com/t/hacking-mkmf-rb/90813)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 1:11am UTC](https://www.ruby-forum.com/t/hacking-mkmf-rb/90813 "2007-04-09T01:11:36Z")

</div>

I’m in the process of replacing RMagick’s configure/make/make install process with a pure-Ruby solution using just setup.rb or RubyGems and extconf.rb. I’ve been able to successfully replace configure.ac with extconf.…

---

## [Running Mondrian under Ruby 186 and Fox 168](https://www.ruby-forum.com/t/running-mondrian-under-ruby-186-and-fox-168/91428)

<div class="topic-metadata">

**Author:** [@Robert\_Shiplett](https://www.ruby-forum.com/u/Robert_Shiplett)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 12:51am UTC](https://www.ruby-forum.com/t/running-mondrian-under-ruby-186-and-fox-168/91428 "2007-04-09T00:51:35Z")

</div>

Hi re: Mondrian under latest Ruby and Fox I am running the Mondrian editor ( V 1 beta 8, 2005) under current Ruby Fox. There were really very few changes to Mondrian needed … a few in SourceBrowser.rb I am down to…

---

## [How to write a toy interpreter](https://www.ruby-forum.com/t/how-to-write-a-toy-interpreter/91415)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 2\
**Last updated:** [April 8, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/how-to-write-a-toy-interpreter/91415 "2007-04-08T23:36:28Z")

</div>

Hi, I was reading today this post \[1\], and i would like to write my own toy interpreter. The simplest example possible (with or without ruby). Can anyone recommend me some start points ? (URLs, tutorials, or books ) T…

---

## [What's the problem with array.include?](https://www.ruby-forum.com/t/whats-the-problem-with-array-include/91421)

<div class="topic-metadata">

**Author:** [@music](https://www.ruby-forum.com/u/music)\
**Replies:** 6\
**Last updated:** [April 8, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/whats-the-problem-with-array-include/91421 "2007-04-08T23:17:26Z")

</div>

Here is my code: class MyNewClass @hash = {} @arr = \[\] @a = \[\] IO.foreach(“file.txt”) do |riga| codice,cognome,nome,servizio,mail = riga.chomp.split(/\\t/) @hash.store("#{mail}","#{cognome} #{nome}") end IO.forea…

---

## [RubyObjC rake failed](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 8, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350 "2007-04-08T21:46:39Z")

</div>

Hey all ! after downloading and installing “RubyObjC. A Ruby/Objective-C bridge.” http://www.rubyobjc.com/ i did the simplest try-out “myapp” and rake failed, see trace below : ~/work/RubyObjC/myapp%\> rake --trace …

---

## [Trying to GET google with socket....problem](https://www.ruby-forum.com/t/trying-to-get-google-with-socket-problem/91379)

<div class="topic-metadata">

**Author:** [@r3madi](https://www.ruby-forum.com/u/r3madi)\
**Replies:** 16\
**Last updated:** [April 8, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/trying-to-get-google-with-socket-problem/91379 "2007-04-08T21:17:10Z")

</div>

Well I don’t know why the socket can’t connect to Google. Here is my source code: require ‘socket’ h = TCPSocket.new(‘www.google.ca’,80) h.print “GET /index.html HTTP/1.0\\n\\n” a = h.read puts a I tried changing th…

---

## [ImageScience saving to database?](https://www.ruby-forum.com/t/imagescience-saving-to-database/91419)

<div class="topic-metadata">

**Author:** [@brez](https://www.ruby-forum.com/u/brez)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/imagescience-saving-to-database/91419 "2007-04-08T20:12:03Z")

</div>

Anyone have experience using ImageScience with database persistence \[and not file system\] - seems like it should be possible but couldn’t find / figure out a solution - thanks in advance.

---

## [Win32 comdlg32(.dll) wrapper in ruby?](https://www.ruby-forum.com/t/win32-comdlg32-dll-wrapper-in-ruby/91412)

<div class="topic-metadata">

**Author:** [@yang\_cao](https://www.ruby-forum.com/u/yang_cao)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/win32-comdlg32-dll-wrapper-in-ruby/91412 "2007-04-08T19:03:43Z")

</div>

hello everyone, I’m a newbee. Is there any ruby wrapper for win32 comdlg32(.dll)? I noticed that swin(http://raa.ruby-lang.org/project/swin/) have a few. But its openFilename method can’t return full file names when I…

---

## [Proposal: Yet another Date method](https://www.ruby-forum.com/t/proposal-yet-another-date-method/91404)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 3\
**Last updated:** [April 8, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/proposal-yet-another-date-method/91404 "2007-04-08T18:36:39Z")

</div>

Hi, I would like the Date class to be extended by this: require “date” class Date class \<\<self def easter\_western year # This is after Donald E. Knuth and it works for both # Julian (before 1583) and Gregorian (af…

---

## [Call For Lightning Talks: RubyKaigi2007](https://www.ruby-forum.com/t/call-for-lightning-talks-rubykaigi2007/91414)

<div class="topic-metadata">

**Author:** [@KAKUTANI\_Shintaro](https://www.ruby-forum.com/u/KAKUTANI_Shintaro)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/call-for-lightning-talks-rubykaigi2007/91414 "2007-04-08T18:27:38Z")

</div>

Call For Lightning Talks: RubyKaigi2007 We’re looking for Lightning Talk presentations for the upcoming RubyKaigi 2007( http://jp.rubyist.net/RubyKaigi2007/english.html ). If you’ve got something to say about Ruby, a …

---

## [ActiveWarehouse 0.7.0 Released](https://www.ruby-forum.com/t/activewarehouse-0-7-0-released/91410)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/activewarehouse-0-7-0-released/91410 "2007-04-08T18:00:35Z")

</div>

I’ve just released the latest version of the ActiveWarehouse ETL (Extract-Transform-Load) component, a gem from the ActiveWarehouse collection of tools that helps build ETL processes for extracting data from operation…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/196901)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 4:18pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/196901 "2007-04-08T16:18:29Z")

</div>

Begin forwarded message:

---

## [Format string to hex](https://www.ruby-forum.com/t/format-string-to-hex/91403)

<div class="topic-metadata">

**Author:** [@rubytest](https://www.ruby-forum.com/u/rubytest)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/format-string-to-hex/91403 "2007-04-08T14:52:21Z")

</div>

hello,boys I have a problem,I want to format the string to hex ,just like format abc to 0x616263 ,but I don’t know how to do it , Can you help me,and give me a code? thx

---

## [Finding last date](https://www.ruby-forum.com/t/finding-last-date/91294)

<div class="topic-metadata">

**Author:** [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Replies:** 7\
**Last updated:** [April 8, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/finding-last-date/91294 "2007-04-08T14:46:19Z")

</div>

Hi, Is there any instance method in Ruby for Date type, to find previous date. For example if I have date - “04/05/07” in an object “date”, then something like “date.previous” returns me date - “04/04/07”.

---

## [Different between Door::new and Door.new](https://www.ruby-forum.com/t/different-between-door-new-and-door-new/91397)

<div class="topic-metadata">

**Author:** [@Ming\_en\_C](https://www.ruby-forum.com/u/Ming_en_C)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/different-between-door-new-and-door-new/91397 "2007-04-08T13:25:14Z")

</div>

may i know what is the different between Door::new and Door.new i seem to work the same.

---

## [Why can't I use assert\_respond\_to with some objects?](https://www.ruby-forum.com/t/why-cant-i-use-assert-respond-to-with-some-objects/91387)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 3:56am UTC](https://www.ruby-forum.com/t/why-cant-i-use-assert-respond-to-with-some-objects/91387 "2007-04-08T03:56:48Z")

</div>

Hi This question is w/i the context of Rails, but I think it relates more to how pretty printer works then Rails. I’m extending the built in AbstractRequest class in Rails, and trying to test it. The following test …

---

## [How to convert a string's charset?](https://www.ruby-forum.com/t/how-to-convert-a-strings-charset/91357)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 3\
**Last updated:** [April 8, 2007, 3:07am UTC](https://www.ruby-forum.com/t/how-to-convert-a-strings-charset/91357 "2007-04-08T03:07:46Z")

</div>

I want to convert a string’s charset from GB2312 or BIG5 to UTF-8. How can i do this?

---

## [To\_yaml method](https://www.ruby-forum.com/t/to-yaml-method/91369)

<div class="topic-metadata">

**Author:** [@simonr](https://www.ruby-forum.com/u/simonr)\
**Replies:** 5\
**Last updated:** [April 8, 2007, 12:55am UTC](https://www.ruby-forum.com/t/to-yaml-method/91369 "2007-04-08T00:55:39Z")

</div>

Hello, In order to learn Ruby, I am trying to write a Getting Things Done manager in Ruby+YAML. So, here is where I am : Parked at Loopia Be carefull… Store#to\_yaml is realy ugly ! So, how can I make this method pre…

---

## [Method constant arguments](https://www.ruby-forum.com/t/method-constant-arguments/91351)

<div class="topic-metadata">

**Author:** [@airmind](https://www.ruby-forum.com/u/airmind)\
**Replies:** 7\
**Last updated:** [April 7, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/method-constant-arguments/91351 "2007-04-07T22:31:27Z")

</div>

Hi, I’m new to ruby, and I’m loving it so far. I want to call a method with some parameters that would indicate a state, so most of them would be only a true or false value, however that’s not very good to read when c…

---

## [Listning to port 80?](https://www.ruby-forum.com/t/listning-to-port-80/91361)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 4\
**Last updated:** [April 7, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361 "2007-04-07T22:19:41Z")

</div>

Hello there, I want to receive all the response headers I get from any browser I have on my computer? Could socket class handle that? or must I develop something like proxy server to do the job? Can somebody point m…

---

## [About functional programming](https://www.ruby-forum.com/t/about-functional-programming/91278)

<div class="topic-metadata">

**Author:** [@gaoxtwarrior](https://www.ruby-forum.com/u/gaoxtwarrior)\
**Replies:** 9\
**Last updated:** [April 7, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/about-functional-programming/91278 "2007-04-07T21:12:23Z")

</div>

when it comes the method needs two block to accomplish a task,how the ruby do which? for example , the classical sum(filter,mapping,iterator)(I have forgotten the style, maybe,the one can search it in SICP)

---

## [Can I save relationship using hasmanythrough](https://www.ruby-forum.com/t/can-i-save-relationship-using-hasmanythrough/91271)

<div class="topic-metadata">

**Author:** [@jack.tang](https://www.ruby-forum.com/u/jack.tang)\
**Replies:** 3\
**Last updated:** [April 7, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/can-i-save-relationship-using-hasmanythrough/91271 "2007-04-07T18:28:08Z")

</div>

Hi In the classic hasmanythrough example: class Group \< ActiveRecord::Base has\_many :memberships has\_many :users, :through =\> :memberships end class User \< ActiveRecord::Base has\_many :memberships has\_many :group…

---

## [How do you post data with a socket?](https://www.ruby-forum.com/t/how-do-you-post-data-with-a-socket/91367)

<div class="topic-metadata">

**Author:** [@r3madi](https://www.ruby-forum.com/u/r3madi)\
**Replies:** 4\
**Last updated:** [April 7, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/how-do-you-post-data-with-a-socket/91367 "2007-04-07T17:59:02Z")

</div>

I’m trying to make a little program that goes to a page and posts your username and password using a ruby socket but I don’t know how to post data with a socket. I only know how to get data. I googled and haven’t foun…

---

## [Gem and uninitialized constant](https://www.ruby-forum.com/t/gem-and-uninitialized-constant/91264)

<div class="topic-metadata">

**Author:** [@John\_Franey](https://www.ruby-forum.com/u/John_Franey)\
**Replies:** 6\
**Last updated:** [April 7, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/gem-and-uninitialized-constant/91264 "2007-04-07T17:43:59Z")

</div>

I want to use NetAddr 1.2 with gems 0.9.2 and ruby 1.8.5 on Suse 10.2. The lines of code: require ‘rubygems’ gem ‘netaddr’ ipadd = NetAddr::CIDR.create(“192.9.200.0/24”) The error: uninitialized constant NetAddr (Na…

---

## [Class hierarchy with rdoc](https://www.ruby-forum.com/t/class-hierarchy-with-rdoc/91359)

<div class="topic-metadata">

**Author:** [@Googy](https://www.ruby-forum.com/u/Googy)\
**Replies:** 4\
**Last updated:** [April 7, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/class-hierarchy-with-rdoc/91359 "2007-04-07T17:25:50Z")

</div>

Hi, I am newbie to ruby, I have extensive experience in java & with javadoc, javadoc shows class hierarchy i.e. its parent classes and interfaces in a tree view, so you can easily understand the whole hierarchy but w…

---

## [Win32Ole firefox](https://www.ruby-forum.com/t/win32ole-firefox/91360)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 1\
**Last updated:** [April 7, 2007, 2:34pm UTC](https://www.ruby-forum.com/t/win32ole-firefox/91360 "2007-04-07T14:34:32Z")

</div>

Hello there, I want to know how to play with other applications then Internet Explorer? I already have ole viewer (bottom page) http://homepage1.nifty.com/markey/ruby/win32ole/index\_e.html I

---

## [Everything is a object?](https://www.ruby-forum.com/t/everything-is-a-object/91040)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 40\
**Last updated:** [April 7, 2007, 11:24am UTC](https://www.ruby-forum.com/t/everything-is-a-object/91040 "2007-04-07T11:24:14Z")

</div>

Hello, I understood everything is a object, and the base class for all objects is object :slight\_smile: so when I try to write just that this line below in my code i get an error? puts just\_something.class.to\_s und…

---

## [Newbie question - ruby equivalence of for loop?](https://www.ruby-forum.com/t/newbie-question-ruby-equivalence-of-for-loop/91337)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 7, 2007, 9:01am UTC](https://www.ruby-forum.com/t/newbie-question-ruby-equivalence-of-for-loop/91337 "2007-04-07T09:01:00Z")

</div>

is there an equivalence in Ruby for the nested “for loop” in java. i want to complete the following: i is 0 j is 2 j is 4 j is 6 j is 8 i is 1 j is 2 j is 4 j is 6 j is 8 i is 2 j is 2 j is 4 j is 6 j is …

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

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