# Ruby

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

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

---

## [Can't Marshal.dump a Java object (from using Rjb)](https://www.ruby-forum.com/t/cant-marshal-dump-a-java-object-from-using-rjb/88048)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 7, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/cant-marshal-dump-a-java-object-from-using-rjb/88048 "2007-03-07T22:05:00Z")

</div>

All, I have a Ruby object that actually encapsulates a Java object - I got it by using Rjb to talk to a Java library. When I attempt to marshal it, I get the following error: “can’t dump anonymous class” If Rjb retu…

---

## [Safe override of Class#new?](https://www.ruby-forum.com/t/safe-override-of-class-new/87763)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [March 7, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/safe-override-of-class-new/87763 "2007-03-07T21:40:56Z")

</div>

class Class alias :create :new def new(\*a,&b) obj = allocate obj.extend advice obj.send(:initialize,\*a,&b) return obj end end Note #advice is a sprcisl module that provides AOP features. Like to get the opin…

---

## [How to do INTERESTING things with Ruby sockets?](https://www.ruby-forum.com/t/how-to-do-interesting-things-with-ruby-sockets/87948)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/how-to-do-interesting-things-with-ruby-sockets/87948 "2007-03-07T20:10:42Z")

</div>

I’ve done quite a bit of reading about socket programming in Ruby, but most of the examples show simple cases of accepting a socket connection, spitting out some fixed bit of data, and then closing. What about socket …

---

## [Make it faster](https://www.ruby-forum.com/t/make-it-faster/87688)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 7, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/make-it-faster/87688 "2007-03-07T19:54:40Z")

</div>

you know those threads where someone posts a bit of slow ruby code, then people rework it until it’s orders of magnitude faster? what’s the BEST one you can remember? thanks. -a

---

## [Google Summer of Code](https://www.ruby-forum.com/t/google-summer-of-code/88050)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/google-summer-of-code/88050 "2007-03-07T19:30:30Z")

</div>

Google’s Summer of Code is almost upon us. Ruby Central is once again planning to act as the mentoring organization for Ruby. For Ruby to be represented again this year, we need mentors. If you’re interested in help…

---

## [rSQLiteGUI 0.2](https://www.ruby-forum.com/t/rsqlitegui-0-2/88030)

<div class="topic-metadata">

**Author:** [@mitchell](https://www.ruby-forum.com/u/mitchell)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/rsqlitegui-0-2/88030 "2007-03-07T17:36:09Z")

</div>

Hi, It’s been a while, but a new release of rSQLiteGUI is out! http://rubyforge.org/projects/rsqlitegui rSQLiteGUI 0.2 features copy and paste functionality for rows thanks to Benjamin Bock. The \*BSD platform is also…

---

## [Can someone point me in the right direction? Pipe Delimited](https://www.ruby-forum.com/t/can-someone-point-me-in-the-right-direction-pipe-delimited/88022)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 7\
**Last updated:** [March 7, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/can-someone-point-me-in-the-right-direction-pipe-delimited/88022 "2007-03-07T17:33:08Z")

</div>

Hello all, I have a file that is not a normal csv or tab delimited file. It is delimited with the pipe | character. I Googled and found someone had posted how to parse it… That’s all fine and well, but now I need to…

---

## [Reading unsigned byte](https://www.ruby-forum.com/t/reading-unsigned-byte/88023)

<div class="topic-metadata">

**Author:** [@warhero](https://www.ruby-forum.com/u/warhero)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/reading-unsigned-byte/88023 "2007-03-07T17:20:58Z")

</div>

I’m experiencing unexpected behavior when reading an byte… as apposed to PHP which is returning expected results. this is how I’m reading the byte in ruby: int = somedata.unpack(‘c’).first the result I’m getting in r…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/88024)

<div class="topic-metadata">

**Author:** [@christophertasma](https://www.ruby-forum.com/u/christophertasma)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/no-subject/88024 "2007-03-07T17:01:02Z")

</div>

unsubscribe

---

## [Win32OLE trouble (custom ocx)](https://www.ruby-forum.com/t/win32ole-trouble-custom-ocx/87237)

<div class="topic-metadata">

**Author:** [@bvwj](https://www.ruby-forum.com/u/bvwj)\
**Replies:** 10\
**Last updated:** [March 7, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/win32ole-trouble-custom-ocx/87237 "2007-03-07T16:51:46Z")

</div>

I’m trying to make calls to an OCX we developed in house. The OCX is an interface to a FireWire network. Currently we use this OCX mostly for C# programs. It’s several years old and fairly stable. I have been able …

---

## [Using win32ole to print .txt, .pdf, .xps files](https://www.ruby-forum.com/t/using-win32ole-to-print-txt-pdf-xps-files/87972)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 7, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/using-win32ole-to-print-txt-pdf-xps-files/87972 "2007-03-07T16:46:56Z")

</div>

good afternoon to all. i am creating a simple script to automate the printing of pdf, txt, and xps files. i’m using this exercise as my first step in learning ruby. i am able to print doc, xls, and ppt files using co…

---

## [Mkmf and environment variables](https://www.ruby-forum.com/t/mkmf-and-environment-variables/88021)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/mkmf-and-environment-variables/88021 "2007-03-07T16:40:54Z")

</div>

Hi all, I need to set an environment variable before building a Ruby C extension: MACOSX\_DEPLOYMENT\_TARGET=10.2 export MACOSX\_DEPLOYMENT\_TARGET For simplicity and robustness I’d rather this happened automatically w…

---

## [Libxml's SaxParser and UTF-8 problem](https://www.ruby-forum.com/t/libxmls-saxparser-and-utf-8-problem/87394)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/libxmls-saxparser-and-utf-8-problem/87394 "2007-03-07T15:06:32Z")

</div>

I’ve written a small script to parse an xml doc with SaxParser and everything goes well until the parser encounters a Unicode character. For example, in the for the following snippet: Name90’s Music In case it doesn’…

---

## [RDoc: XML Generate Method List](https://www.ruby-forum.com/t/rdoc-xml-generate-method-list/87993)

<div class="topic-metadata">

**Author:** [@Kristian\_Kristensen](https://www.ruby-forum.com/u/Kristian_Kristensen)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 11:45am UTC](https://www.ruby-forum.com/t/rdoc-xml-generate-method-list/87993 "2007-03-07T11:45:54Z")

</div>

Hi, I’ve been trying to extract the list of methods per class to XML with no success. If I run “rdoc -f xml” I get an XML file with no method list. If I run “rdoc -f html -1” I get a file with no method lists. Howeve…

---

## [Set operations on arrays of non-trivial objects](https://www.ruby-forum.com/t/set-operations-on-arrays-of-non-trivial-objects/87970)

<div class="topic-metadata">

**Author:** [@Jon\_Egil\_Stand](https://www.ruby-forum.com/u/Jon_Egil_Stand)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 9:30am UTC](https://www.ruby-forum.com/t/set-operations-on-arrays-of-non-trivial-objects/87970 "2007-03-07T09:30:31Z")

</div>

MAIN QUESTION Is there a nice and fast way to do set operations on arrays of non-trivial objects. BACKGROUND Set operations are beatiful: a = \[1,2,3,4,5\] b = \[2,4,6,8,10\] (a & b) =\> \[2,4\] When comparing lists, which i…

---

## [Why does Exception#backtrace hate me so?](https://www.ruby-forum.com/t/why-does-exception-backtrace-hate-me-so/87974)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 9:18am UTC](https://www.ruby-forum.com/t/why-does-exception-backtrace-hate-me-so/87974 "2007-03-07T09:18:30Z")

</div>

Hi, I’m compiling a lot of ruby code via eval, and running parts of it in $SAFE=4, and I’m noticing large gaps in the Exception backtraces. (I’ve done experiments with Kernel#caller, and the gaps are usually there, …

---

## [\[ANN\] Ruby-IXP 2.0.0](https://www.ruby-forum.com/t/ann-ruby-ixp-2-0-0/87969)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 8:18am UTC](https://www.ruby-forum.com/t/ann-ruby-ixp-2-0-0/87969 "2007-03-07T08:18:26Z")

</div>

= Version 2.0.0 (2007-03-06) Ruby-IXP is an implementation of the 9P2000 protocol designed for use with Window Manager Improved. It is written in pure Ruby to avoid periodical calling of the wmiir command, thus improv…

---

## [Mssqlclient returns nil for money, decimal, numeric fields](https://www.ruby-forum.com/t/mssqlclient-returns-nil-for-money-decimal-numeric-fields/87860)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 7:39am UTC](https://www.ruby-forum.com/t/mssqlclient-returns-nil-for-money-decimal-numeric-fields/87860 "2007-03-07T07:39:22Z")

</div>

Only real and float field types return values as they should. Since I haven’t found nothing on the subject on net I wonder if it’s only me. by TheR

---

## [Memcache-client 1.3.0 Released](https://www.ruby-forum.com/t/memcache-client-1-3-0-released/102704)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 6:20am UTC](https://www.ruby-forum.com/t/memcache-client-1-3-0-released/102704 "2007-03-07T06:20:16Z")

</div>

memcache-client version 1.3.0 has been released! dev.robotcoop.com memcache-client is a pure-ruby client to Danga’s memcached. Changes: = 1.3.0 Apply patch #6507, add stats command. Submitted by Tyler K… Apply…

---

## [Remove duplicates of array of object based on a attribute](https://www.ruby-forum.com/t/remove-duplicates-of-array-of-object-based-on-a-attribute/87866)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 10\
**Last updated:** [March 7, 2007, 12:53am UTC](https://www.ruby-forum.com/t/remove-duplicates-of-array-of-object-based-on-a-attribute/87866 "2007-03-07T00:53:53Z")

</div>

hi all, how to remove duplicates of an array of objects based a attribute of the object. For ex i am having an array of ruby beans named diagnoses . i want remove duplicates from the based on the diagnoses id. assum…

---

## [Komodo XPI Challenge](https://www.ruby-forum.com/t/komodo-xpi-challenge/87940)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 12:20am UTC](https://www.ruby-forum.com/t/komodo-xpi-challenge/87940 "2007-03-07T00:20:51Z")

</div>

All, For the folks out there who use Komodo for your Ruby programming (which I do from time to time), this may interest you: In short, create a useful project template or XPI extension, then share it with other use…

---

## [Garbage collection parameters and statistics](https://www.ruby-forum.com/t/garbage-collection-parameters-and-statistics/87782)

<div class="topic-metadata">

**Author:** [@vinoddas](https://www.ruby-forum.com/u/vinoddas)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/garbage-collection-parameters-and-statistics/87782 "2007-03-06T23:54:48Z")

</div>

hi, i was wondering whether there is a mechanism in ruby where we can tune certain GC params like heap size etc and collect the stats like pause times etc in ruby. i would like to analyze the GC performance of ruby w…

---

## [Soap4r](https://www.ruby-forum.com/t/soap4r/87928)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/soap4r/87928 "2007-03-06T23:51:14Z")

</div>

Not sure if this is a problem with the soap4r library, or the web service I’m connecting to. Looking for some direction. Currently using Ruby 1.8.5 and Soap4r 1.5.5 connecting to BMC Action Request System. The web s…

---

## [Automatic Benchmark Iterations](https://www.ruby-forum.com/t/automatic-benchmark-iterations/87921)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/automatic-benchmark-iterations/87921 "2007-03-06T23:23:45Z")

</div>

When performing a benchmark comparison of several techniques, this idiom is very common for me: N = 1\_000\_000 Benchmark.bmbm{ |x| x.report( ‘foo’ ){ N.times{ # foo code } } x.report( ‘bar’ ){ N.times{ # bar co…

---

## [Gem install mysql failure](https://www.ruby-forum.com/t/gem-install-mysql-failure/87786)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/gem-install-mysql-failure/87786 "2007-03-06T23:06:43Z")

</div>

I’ve been using Ruby with Watir for a few months now to scrape data off of internal web pages where I work. I’m fairly happy with the results, although I want to improve these processes. I want to put this data int…

---

## [Metaprogramming and module question](https://www.ruby-forum.com/t/metaprogramming-and-module-question/87919)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/metaprogramming-and-module-question/87919 "2007-03-06T22:59:38Z")

</div>

Hi Yesterday , i’d made an example for fun, after read \[1\]. that let me introduce pre o post behavior to an method with this easy sintax class Foo pre(:my\_method) { #some\_code} end but i ve a proble when i try to m…

---

## [Nuby ?: How to create XML request with Ruby](https://www.ruby-forum.com/t/nuby-how-to-create-xml-request-with-ruby/87907)

<div class="topic-metadata">

**Author:** [@donald](https://www.ruby-forum.com/u/donald)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/nuby-how-to-create-xml-request-with-ruby/87907 "2007-03-06T21:25:28Z")

</div>

Hi Guys, I’m trying to figure out how to create an XML request using Ruby. I need to define a set amount of fields within the request and post it to a specific host and port. I’m new to Ruby and am not really sure o…

---

## [Attributing an old time stamp for a new file](https://www.ruby-forum.com/t/attributing-an-old-time-stamp-for-a-new-file/87867)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 11\
**Last updated:** [March 6, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/attributing-an-old-time-stamp-for-a-new-file/87867 "2007-03-06T21:21:27Z")

</div>

Hello, I need to read some data from some older files and put that info. into simple ASCII text files. But, I want those new text files to have the same time stamp as the original files that the data came from. Is the…

---

## [Parallel installations of 1.8 and gems](https://www.ruby-forum.com/t/parallel-installations-of-1-8-and-gems/87913)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/parallel-installations-of-1-8-and-gems/87913 "2007-03-06T21:19:26Z")

</div>

I’m trying to get both ruby1.8.5 and ruby1.8.6 installed on the same machine, but I’m running into problems now finding gems. I’ve got the libs for 1.8.5 in /usr/local/ruby/site\_ruby/1.8.5 And for 1.8.6 in /usr/loca…

---

## [Commandline gem](https://www.ruby-forum.com/t/commandline-gem/87789)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [March 6, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/commandline-gem/87789 "2007-03-06T21:02:24Z")

</div>

i think it was jim freeze that realased a gem for quickly building commandline applications, does anyone remember where it’s gone too? i only found a dead project on rubyforge… thanks. -a

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

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