# Ruby

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

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

---

## [Sax parsing](https://www.ruby-forum.com/t/sax-parsing/136918)

<div class="topic-metadata">

**Author:** [@shweta\_kadam](https://www.ruby-forum.com/u/shweta_kadam)\
**Replies:** 3\
**Last updated:** [May 7, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/sax-parsing/136918 "2008-05-07T19:08:59Z")

</div>

hi all, Has anybody used sax parsing in ruby

---

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

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 13\
**Last updated:** [May 7, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/code-review-socket2/136705 "2008-05-07T19:06:02Z")

</div>

tfpt review /shelveset:socket2;REDMOND\\jflam Overall - looks good! We really want to turn on tests for this stuff. Jim’s looking at getting the latest rubinius specs running so we can deprecate our current spec snapsh…

---

## [Getting pipe return codes from SYSTEM command](https://www.ruby-forum.com/t/getting-pipe-return-codes-from-system-command/136955)

<div class="topic-metadata">

**Author:** [@russellquinn](https://www.ruby-forum.com/u/russellquinn)\
**Replies:** 6\
**Last updated:** [May 7, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/getting-pipe-return-codes-from-system-command/136955 "2008-05-07T18:53:25Z")

</div>

I’m trying to find the return codes from bash for piped commands. i.e. system(“ls”) puts("#{$?.exitstatus}") This returns the return code of ls system(“ls | bzip2 -c \> ./out.txt”) how can I still get the return cod…

---

## [Script not working](https://www.ruby-forum.com/t/script-not-working/136801)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/script-not-working/136801 "2008-05-07T18:38:47Z")

</div>

HI All I am having a script which is not working when I am writing it inside a method def addcomment. But when I am writing it outside the method; it starts working. Can somebody explain me why this is so? the scrip…

---

## [Problem cross compiling ruby 1.9](https://www.ruby-forum.com/t/problem-cross-compiling-ruby-1-9/136950)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/problem-cross-compiling-ruby-1-9/136950 "2008-05-07T17:58:52Z")

</div>

Hi,I get the following error on make cross compiling ruby for an arm processor: /Desktop/ruby-1.9.0-0# make ./lib/fileutils.rb:1532:in public': undefined methodcommands’ for class Module' (NameError) from ./lib/fileu…

---

## [Plain english to condition?](https://www.ruby-forum.com/t/plain-english-to-condition/136895)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/plain-english-to-condition/136895 "2008-05-07T17:55:16Z")

</div>

Hi All, I wanna to do something like as: Use will type plain English in text box like designation equals PM or designation = PM. 2.Then i have to save this rule in DB and i have to made some function to verify thi…

---

## [Re: Trouble opening IronRuby.sln](https://www.ruby-forum.com/t/re-trouble-opening-ironruby-sln/136946)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/re-trouble-opening-ironruby-sln/136946 "2008-05-07T16:38:20Z")

</div>

Thanks. Hopefully who ever had the problem get the answer as well. ----- Original Message ---- From: Peter Bacon D. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Wednesday, May 7…

---

## [MutableString == operator](https://www.ruby-forum.com/t/mutablestring-operator/136938)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/mutablestring-operator/136938 "2008-05-07T16:38:20Z")

</div>

I just noticed that MutableString does not implement the == operator (and of course != operator). This could be confusing because CLR string does implement this operator to be a value comparison, rather than the def…

---

## [Re: Interesting result of a newbie mistake](https://www.ruby-forum.com/t/re-interesting-result-of-a-newbie-mistake/136937)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/re-interesting-result-of-a-newbie-mistake/136937 "2008-05-07T16:35:59Z")

</div>

\----- Original Message ---- From: VICTOR GOLDBERG removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Wednesday, May 7, 2008 1:10:17 PM Subject: Interesting result of a n…

---

## [Help with net-ssh 2.0](https://www.ruby-forum.com/t/help-with-net-ssh-2-0/136943)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/help-with-net-ssh-2-0/136943 "2008-05-07T16:31:54Z")

</div>

Hi…, I am trying to use net-ssh for executing unix level commands using net-ssh across many servers. I am looking for an example that would allow me to use net-ssh similar to EXPECT. As a first step I tried the follo…

---

## [Re: Trouble opening IronRuby.sln](https://www.ruby-forum.com/t/re-trouble-opening-ironruby-sln/136940)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/re-trouble-opening-ironruby-sln/136940 "2008-05-07T16:30:07Z")

</div>

I am not sure anyone looked at this issue. I was able to open the project successfully in my laptop and this morning, when I tried in mydesktop I got the same error (I am using VS2008). This is what I found, 5 differe…

---

## [Plans for compiling Ruby to binary bytecode?](https://www.ruby-forum.com/t/plans-for-compiling-ruby-to-binary-bytecode/136714)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [May 7, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/plans-for-compiling-ruby-to-binary-bytecode/136714 "2008-05-07T15:37:54Z")

</div>

Greetings, My understanding is that Ruby internally uses a custom VM (virtual machine) to execute. This VM has its own set of instructions (bytecode). I was wondering whether or not there were any plans to allow on…

---

## [Display the cover page of a pdf document in jpg or png](https://www.ruby-forum.com/t/display-the-cover-page-of-a-pdf-document-in-jpg-or-png/136845)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 2\
**Last updated:** [May 7, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/display-the-cover-page-of-a-pdf-document-in-jpg-or-png/136845 "2008-05-07T15:24:49Z")

</div>

I would like to display in my app the image of the cover page af an pdf document produced internnally within my app ( wich plugin should be better … ? pdfwrite ?.. generally it will be a less than 2 pages document) o…

---

## [Rails progress summary](https://www.ruby-forum.com/t/rails-progress-summary/136611)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 2\
**Last updated:** [May 7, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/rails-progress-summary/136611 "2008-05-07T15:12:04Z")

</div>

Following release of revision 99 and a few of my own minor patches applied, progress is as follows … Note: I reduced my test suite to only those modules that MRI can independently loading without error - that reduced …

---

## [Installing jruby on mac leopard](https://www.ruby-forum.com/t/installing-jruby-on-mac-leopard/136789)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 9\
**Last updated:** [May 7, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/installing-jruby-on-mac-leopard/136789 "2008-05-07T13:58:13Z")

</div>

hi according to the wiki the installation process should be straight foreward, no env variables should be set manually. http://wiki.jruby.org/wiki/Getting\_Started#Installing\_JRuby The problem is, that when I - like I…

---

## [Interesting result of a newbie mistake](https://www.ruby-forum.com/t/interesting-result-of-a-newbie-mistake/136925)

<div class="topic-metadata">

**Author:** [@VICTOR\_GOLDBERG](https://www.ruby-forum.com/u/VICTOR_GOLDBERG)\
**Replies:** 3\
**Last updated:** [May 7, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/interesting-result-of-a-newbie-mistake/136925 "2008-05-07T13:39:23Z")

</div>

Instead of writing a = %w{ ant cat dog } I wrote a = %{ ant cat dog } puts a\[2\] --\> 110 I didn’t find an explanation for this result in Dave T.’ book Anybody volunteers a response? Thanks, Víctor

---

## [Where to start if I want to print to](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 5\
**Last updated:** [May 7, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906 "2008-05-07T13:16:52Z")

</div>

Linux (CUPS) printers Windows printers by TheR

---

## [Timestamp](https://www.ruby-forum.com/t/timestamp/136914)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 11:59am UTC](https://www.ruby-forum.com/t/timestamp/136914 "2008-05-07T11:59:56Z")

</div>

i want attaches a timestamps to file for this i doing Time.now\_filename but it gives error because time has a space sum it so i need some another mechanism using which i generate timestamps and attached to timestamps…

---

## [Create a new file name by appending timestamp to original](https://www.ruby-forum.com/t/create-a-new-file-name-by-appending-timestamp-to-original/136905)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 4\
**Last updated:** [May 7, 2008, 11:39am UTC](https://www.ruby-forum.com/t/create-a-new-file-name-by-appending-timestamp-to-original/136905 "2008-05-07T11:39:36Z")

</div>

i want a new file name from existing file name but with attaching time stamp but gives error invalid argument type please tell simple way for doing this

---

## [London Ruby User Group - 12th May 2008](https://www.ruby-forum.com/t/london-ruby-user-group-12th-may-2008/136917)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 11:37am UTC](https://www.ruby-forum.com/t/london-ruby-user-group-12th-may-2008/136917 "2008-05-07T11:37:14Z")

</div>

Hi all, The next meeting of the London Ruby U. Group is on Monday the 12th of May. Date: Monday, 12th May, 2008 Time: 6:30 for the talks, 8:00pm (ish) for the pub Location: 1 Sekforde Street\[1\] for the talks, The Cr…

---

## [How to use to\_yaml\_style?](https://www.ruby-forum.com/t/how-to-use-to-yaml-style/136911)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 10:55am UTC](https://www.ruby-forum.com/t/how-to-use-to-yaml-style/136911 "2008-05-07T10:55:29Z")

</div>

I search on Google a bit, I only found this usage: def a.to\_yaml\_style :fold end What is the other to\_yaml\_style can I use?

---

## [Attr\_accessor for class variable?](https://www.ruby-forum.com/t/attr-accessor-for-class-variable/136693)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 9\
**Last updated:** [May 7, 2008, 9:43am UTC](https://www.ruby-forum.com/t/attr-accessor-for-class-variable/136693 "2008-05-07T09:43:23Z")

</div>

Hi, Is there an equivalent for attr\_acessor for the class varialbles? or I have to write a function each time I wish to exppse the class varaible to other clasess? Thanks you very much Sayoyo

---

## [Get current user logged-in to local computer](https://www.ruby-forum.com/t/get-current-user-logged-in-to-local-computer/136885)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 1\
**Last updated:** [May 7, 2008, 9:25am UTC](https://www.ruby-forum.com/t/get-current-user-logged-in-to-local-computer/136885 "2008-05-07T09:25:10Z")

</div>

Dear all, Would it be possible to get the current user that logged into local computer with Ruby? I’m building an intranet apps and would like to get the username that logged into the computer they are using. Thank…

---

## [Trouble opening IronRuby.sln](https://www.ruby-forum.com/t/trouble-opening-ironruby-sln/136841)

<div class="topic-metadata">

**Author:** [@Aaron\_Blondeau](https://www.ruby-forum.com/u/Aaron_Blondeau)\
**Replies:** 2\
**Last updated:** [May 7, 2008, 7:55am UTC](https://www.ruby-forum.com/t/trouble-opening-ironruby-sln/136841 "2008-05-07T07:55:44Z")

</div>

I am having trouble opening the latest (rev 101) IronRuby with VisualStudio 2005. Nothing happens at all when I try to open IronRuby.sln - not even an error message. I have been able to open the individual .csproj …

---

## [Delegation question, where I want prototype style delegation](https://www.ruby-forum.com/t/delegation-question-where-i-want-prototype-style-delegation/136768)

<div class="topic-metadata">

**Author:** [@samrus](https://www.ruby-forum.com/u/samrus)\
**Replies:** 4\
**Last updated:** [May 7, 2008, 7:49am UTC](https://www.ruby-forum.com/t/delegation-question-where-i-want-prototype-style-delegation/136768 "2008-05-07T07:49:13Z")

</div>

I want to make an object that behaves like another object would, if that object had had it’s #each method redefined. I can do this with extend(), but that permanently damages the object. I can do it with delegate/meth…

---

## [Jruby 1.1.1 and oracle thin client](https://www.ruby-forum.com/t/jruby-1-1-1-and-oracle-thin-client/136501)

<div class="topic-metadata">

**Author:** [@nfe](https://www.ruby-forum.com/u/nfe)\
**Replies:** 2\
**Last updated:** [May 7, 2008, 7:18am UTC](https://www.ruby-forum.com/t/jruby-1-1-1-and-oracle-thin-client/136501 "2008-05-07T07:18:11Z")

</div>

Hi, I have done the following: installed JRuby 1.1.1 (added the JAVA\_HOME variable to the PATH) installed the Oracle 8 Thin client files (and added the appropriate location to the PATH system variable) installed the …

---

## [Re: external contribution question](https://www.ruby-forum.com/t/re-external-contribution-question/136889)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 5:07am UTC](https://www.ruby-forum.com/t/re-external-contribution-question/136889 "2008-05-07T05:07:42Z")

</div>

I will start working on the Files method implementation. Once I complete reasonable amount of work with all tests, I will let you all know. Thanks. ----- Original Message ---- From: John L. (IRONRUBY) removed\_email\_a…

---

## [RE: Active-Record JDBC Driver](https://www.ruby-forum.com/t/re-active-record-jdbc-driver/136883)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 4:03am UTC](https://www.ruby-forum.com/t/re-active-record-jdbc-driver/136883 "2008-05-07T04:03:56Z")

</div>

Hi Matt, I’m using SQL server as the backend. That’s why I used Active-Record JDBC since it’s easier (I think) to install than plain Active-Record if using SQL Server as the backend. Best regards,

---

## [RE: Active-Record JDBC Driver](https://www.ruby-forum.com/t/re-active-record-jdbc-driver/136881)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 4:03am UTC](https://www.ruby-forum.com/t/re-active-record-jdbc-driver/136881 "2008-05-07T04:03:21Z")

</div>

Hi Guys, This works. Thank you very much. This Active-Record JDBC is a very great work indeed. I’m lovin it. Best regards

---

## [Yet another question about extending ruby with C](https://www.ruby-forum.com/t/yet-another-question-about-extending-ruby-with-c/136800)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 2\
**Last updated:** [May 7, 2008, 4:02am UTC](https://www.ruby-forum.com/t/yet-another-question-about-extending-ruby-with-c/136800 "2008-05-07T04:02:11Z")

</div>

Hello all, I’m still working on figuring how how to extend ruby with C libraries. Hope someone can help me with this one! Say I have the following: typedef struct { char\* name; } Foo; static VALUE rb\_cBar; static…

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

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