# Ruby

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

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

---

## [Hash and Arrays](https://www.ruby-forum.com/t/hash-and-arrays/92807)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [April 25, 2007, 9:50am UTC](https://www.ruby-forum.com/t/hash-and-arrays/92807 "2007-04-25T09:50:48Z")

</div>

I receive from yahoo weather an Hash like this one, response =\> {“xmlns:geo”=\>“http://www.w3.org/2003/01/geo/wgs84\_pos#”, “xmlns:yweather”=\>“http://xml.weather.yahoo.com/ns/rss/1.0”, “version”=\>“2.0”, “channel”=\>\[{“t…

---

## [URL Splitting](https://www.ruby-forum.com/t/url-splitting/92629)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 25, 2007, 9:25am UTC](https://www.ruby-forum.com/t/url-splitting/92629 "2007-04-25T09:25:45Z")

</div>

Hai I am new to Ruby now i have one situation that,I need to get the url from database dependding upon user id i have stored the url in database and also stored the parameter keys in database but my problem is ,i c…

---

## [Retrieving Groups from a DSQUERY](https://www.ruby-forum.com/t/retrieving-groups-from-a-dsquery/92819)

<div class="topic-metadata">

**Author:** [@anon1m0us](https://www.ruby-forum.com/u/anon1m0us)\
**Replies:** 6\
**Last updated:** [April 25, 2007, 8:07am UTC](https://www.ruby-forum.com/t/retrieving-groups-from-a-dsquery/92819 "2007-04-25T08:07:40Z")

</div>

I need a list of all the groups a user is part of. When I do the DSQuery in returns a bunch of groups. I need to capture the group names. All groups start with CN=group name and end with a comma. How to I capture the…

---

## [Anyone in contact with Bryan Evans (of DrySQL fame)?](https://www.ruby-forum.com/t/anyone-in-contact-with-bryan-evans-of-drysql-fame/92868)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 7:40am UTC](https://www.ruby-forum.com/t/anyone-in-contact-with-bryan-evans-of-drysql-fame/92868 "2007-04-25T07:40:38Z")

</div>

I’ve made some substantial improvements to the database reverse-engineering capabilities of DrySQL, but Bryan isn’t reading his gmail. Can anyone who’s in contact with him ask him to contact me on my gmail address pl…

---

## [Documentation for HTMLParser](https://www.ruby-forum.com/t/documentation-for-htmlparser/92859)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 5:35am UTC](https://www.ruby-forum.com/t/documentation-for-htmlparser/92859 "2007-04-25T05:35:31Z")

</div>

Hi, I have a few questions about parsing HTML: The default docs (rdoc) for HTMLParser (the one that comes with the Win32 binary distribution) in Ruby are very poor. Where can I find some good documentation of the m…

---

## [Ruby and C](https://www.ruby-forum.com/t/ruby-and-c/92773)

<div class="topic-metadata">

**Author:** [@smc\_smc](https://www.ruby-forum.com/u/smc_smc)\
**Replies:** 13\
**Last updated:** [April 25, 2007, 2:56am UTC](https://www.ruby-forum.com/t/ruby-and-c/92773 "2007-04-25T02:56:23Z")

</div>

Would it be easier to learn ruby if i knew C/C+/C++ or the other way around?

---

## [Exception and $!](https://www.ruby-forum.com/t/exception-and/92778)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 9\
**Last updated:** [April 25, 2007, 1:29am UTC](https://www.ruby-forum.com/t/exception-and/92778 "2007-04-25T01:29:18Z")

</div>

the pickaxe tells me that the last exception is available in $!, but c:\>irb irb(main):001:0\> raise “Its all bad!” RuntimeError: Its all bad! from (irb):1 irb(main):002:0\> puts $! nil =\> nil same thing happens fro…

---

## [Concatenate 2 PDF documents](https://www.ruby-forum.com/t/concatenate-2-pdf-documents/92813)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 3\
**Last updated:** [April 25, 2007, 12:56am UTC](https://www.ruby-forum.com/t/concatenate-2-pdf-documents/92813 "2007-04-25T00:56:15Z")

</div>

Hi. Anyone know if there’s a library out there that supports concatenation of 2 PDF documents? Basically I need to append b.pdf to a.pdf. Br, Morten

---

## [Closing file descriptors](https://www.ruby-forum.com/t/closing-file-descriptors/92848)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 12:29am UTC](https://www.ruby-forum.com/t/closing-file-descriptors/92848 "2007-04-25T00:29:13Z")

</div>

Here’s a question I never thought I’d have to ask – how do I close a file descriptor opened via IO.sysopen ? -mental

---

## [FLTK 2.0 for Ruby - beta](https://www.ruby-forum.com/t/fltk-2-0-for-ruby-beta/102758)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/fltk-2-0-for-ruby-beta/102758 "2007-04-24T23:18:06Z")

</div>

Just to announce a beta update to the FLTK2 swig wrappings. This has been in development for some time, but has not yet been advertised. Getting closer to a v1.0 (or is it 0.1? :slight\_smile: release. Currently, it…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229122 "2007-04-24T23:17:06Z")

</div>

Begin forwarded message:

---

## [FLTK 2.0 for Ruby - beta](https://www.ruby-forum.com/t/fltk-2-0-for-ruby-beta/92844)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/fltk-2-0-for-ruby-beta/92844 "2007-04-24T23:16:06Z")

</div>

Just to announce a beta update to the FLTK2 swig wrappings. This has been in development for some time, but has not yet been advertised. Getting closer to a v1.0 (or is it 0.1? :slight\_smile: release. Currently, it…

---

## [Cards Class](https://www.ruby-forum.com/t/cards-class/92762)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 10\
**Last updated:** [April 24, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/cards-class/92762 "2007-04-24T23:14:03Z")

</div>

Hi, I’m an utter newbie to Ruby (and OOP!) and I thought I’d share my very first project. It’s nothing special - just a simple class that simulates a deck of cards, but I’d like to get your comments to see if there’s …

---

## [Question about tempfile.rb - Ruby vs C](https://www.ruby-forum.com/t/question-about-tempfile-rb-ruby-vs-c/92838)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [April 24, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/question-about-tempfile-rb-ruby-vs-c/92838 "2007-04-24T22:55:01Z")

</div>

Hi all, Just curious - why was Ruby’s temporary file handling class (tempfile.rb) written in pure Ruby instead of using the tmpfile() function? That function appears to be supported on most platforms, including MS Wi…

---

## [Question about ruby graphics](https://www.ruby-forum.com/t/question-about-ruby-graphics/92832)

<div class="topic-metadata">

**Author:** [@zedenator](https://www.ruby-forum.com/u/zedenator)\
**Replies:** 1\
**Last updated:** [April 24, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/question-about-ruby-graphics/92832 "2007-04-24T20:24:48Z")

</div>

Hello Rubyists, some background: I am looking into using Ruby for my university project, the outcome of which is an application capable of displaying tree-like structures given a specific set of data and populated by…

---

## [JRuby 0.9.9 Released](https://www.ruby-forum.com/t/jruby-0-9-9-released/92768)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 7\
**Last updated:** [April 24, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/jruby-0-9-9-released/92768 "2007-04-24T19:42:41Z")

</div>

The JRuby community is pleased to announce the release of JRuby 0.9.9. Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ This release has largely been a stabilization release where we have spe…

---

## [Arrow operator with dash instead of equals (-\>)](https://www.ruby-forum.com/t/arrow-operator-with-dash-instead-of-equals/92682)

<div class="topic-metadata">

**Author:** [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Replies:** 15\
**Last updated:** [April 24, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/arrow-operator-with-dash-instead-of-equals/92682 "2007-04-24T19:07:35Z")

</div>

Hi, all, Is it possible to use -\> as a method name in Ruby? This code: class A def -\>(arg) puts arg end end foo = A.new foo -\> "dummy\_argument" Produces: ~/test2.rb:2: syntax…

---

## [Best way to create a string with gap (0x00's) in the middle?](https://www.ruby-forum.com/t/best-way-to-create-a-string-with-gap-0x00s-in-the-middle/92824)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 2\
**Last updated:** [April 24, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/best-way-to-create-a-string-with-gap-0x00s-in-the-middle/92824 "2007-04-24T18:16:31Z")

</div>

I’m trying to build a packet to send to UDPSocket::send. Send requires a string, but I’m not sure of the best way to build this string. The packet’s structure requires two strings: one beginning at byte 0 and the ot…

---

## [Question regarding design of the String Class](https://www.ruby-forum.com/t/question-regarding-design-of-the-string-class/92696)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 20\
**Last updated:** [April 24, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/question-regarding-design-of-the-string-class/92696 "2007-04-24T17:33:21Z")

</div>

Was there a reason the string class was implemented with str\[i\] returning the code of position i in str? The reason I ask this is that in other languages str\[i\] returns the string starting at position i. For example …

---

## [Getting user input at command line when script also takes ar](https://www.ruby-forum.com/t/getting-user-input-at-command-line-when-script-also-takes-ar/92820)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 1\
**Last updated:** [April 24, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/getting-user-input-at-command-line-when-script-also-takes-ar/92820 "2007-04-24T17:25:20Z")

</div>

I’ve got this short script that scans a directory of files for a particular phrase that’s input by the user at the command prompt. I’m not sure if I’m getting the user input correctly because I’ve noticed that Ruby l…

---

## [Tesing in Rails](https://www.ruby-forum.com/t/tesing-in-rails/92822)

<div class="topic-metadata">

**Author:** [@vijay](https://www.ruby-forum.com/u/vijay)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/tesing-in-rails/92822 "2007-04-24T17:14:12Z")

</div>

Hi I am very new to Ruby on Rails, now i am working in Testing the Ruby on Rails platform.I need to know what are the Tools available for automated testing tools? If you find anything kindly let me know . actually …

---

## [Problems with installing the ruby libnet module](https://www.ruby-forum.com/t/problems-with-installing-the-ruby-libnet-module/92818)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 1\
**Last updated:** [April 24, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/problems-with-installing-the-ruby-libnet-module/92818 "2007-04-24T15:55:52Z")

</div>

Hi, I tried to install the Ruby Libnet module from http://rubyforge.org/projects/ruby-libnet/ . So I downloaded it with svn update to my local machine and wanted to install it with:ruby extconf.rb . But this just gi…

---

## [+@ and -@ methods?](https://www.ruby-forum.com/t/and-methods/92809)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 24, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/and-methods/92809 "2007-04-24T14:35:43Z")

</div>

Hi all, Mostly when I do instance.methods.sort in irb, the list contains +@ and -@ what are these methods and how used. I’ll appreciate if someone helps me with this. Reagrds Gaurav V Bagga

---

## [Problem with test:units:rcov](https://www.ruby-forum.com/t/problem-with-testrcov/92799)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 1\
**Last updated:** [April 24, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/problem-with-testrcov/92799 "2007-04-24T14:19:38Z")

</div>

I’m posting this problem here as I’m not sure whether it’s to do with rcov, rails\_rcov, rails, rake, or my own application :slight\_smile: I had rails\_rcov working perfectly last week. Now when I try it again on the …

---

## [Unix zcat with ruby?](https://www.ruby-forum.com/t/unix-zcat-with-ruby/92730)

<div class="topic-metadata">

**Author:** [@music](https://www.ruby-forum.com/u/music)\
**Replies:** 13\
**Last updated:** [April 24, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/unix-zcat-with-ruby/92730 "2007-04-24T13:45:32Z")

</div>

I have to read in many files. I prefer to concat those files and reading only one large file. There is a way like unix zcat?

---

## [Get infomation of printers from OS](https://www.ruby-forum.com/t/get-infomation-of-printers-from-os/92806)

<div class="topic-metadata">

**Author:** [@rubycar](https://www.ruby-forum.com/u/rubycar)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/get-infomation-of-printers-from-os/92806 "2007-04-24T13:32:20Z")

</div>

hi, everyone, i am newbie on Ruby, is there anyway that i can get info about printers (such as the default one and change the settings.) from the OS. Thanks.

---

## [Can Ruby read emails?](https://www.ruby-forum.com/t/can-ruby-read-emails/92699)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 6\
**Last updated:** [April 24, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/can-ruby-read-emails/92699 "2007-04-24T12:34:11Z")

</div>

I know Ruby can do a lot of neat stuff, I was just wondering if someone has found a way to read emails from a gmail account. The reason is I’m hoping to create a system that a user can email an account with a command,…

---

## [HTTP requests](https://www.ruby-forum.com/t/http-requests/92787)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 9\
**Last updated:** [April 24, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/http-requests/92787 "2007-04-24T12:27:11Z")

</div>

Hi all, Im trying to retrieve an xml document from a website but all i get is the html I know their is a way to get this same page via xml require ‘net/http’ require “rexml/document” url = ‘Browse projects - Creat…

---

## [Tracking down a garbage collection problem](https://www.ruby-forum.com/t/tracking-down-a-garbage-collection-problem/92606)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 11\
**Last updated:** [April 24, 2007, 11:40am UTC](https://www.ruby-forum.com/t/tracking-down-a-garbage-collection-problem/92606 "2007-04-24T11:40:38Z")

</div>

I’m trying to work out ways to reduce the memory use of one of my projects, but I don’t know what methods are available to the Ruby programmer for profiling memory use and tracking down garbage collection problems. T…

---

## [Can File::join be used on Windows?](https://www.ruby-forum.com/t/can-file-join-be-used-on-windows/92788)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 2\
**Last updated:** [April 24, 2007, 11:10am UTC](https://www.ruby-forum.com/t/can-file-join-be-used-on-windows/92788 "2007-04-24T11:10:34Z")

</div>

I use File::join perfect on Linux, but when I use it on Windows, it still use “/” to separate file path rather than “”. Does it mean File::join can not be used on Windows?

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

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