74399-75302

74208-74900 subjects 74646-75376

Re: [OT] The Free Market
74399 [B.Candler@po] If I choose to fly kites at the weekend, I cross-finance that activity from

Ruby/Java integration through JNI: working implementation
74413 [batsman.geo@] This is the idea that popped out during the last discussion in Euruko03.
+ 74436 [tran55555@ya] ...
| + 74438 [J.Hawkeswort] I'm sure you will let the list know when you have something you want to
| + 74439 [a.bokovoy@sa] Why do you think so?
| + 74440 [batsman.geo@] This approach is *very* different from JRuby. I am accessing Java
| + 74442 [james_b@ne r] Not quite, and the JNI route may have an advantage.
| | 74446 [batsman.geo@] You can always use JNI the other way around, to expose for instance
| | + 74450 [rodrigob@in ] Ok, so in theory we can start developing our GUI applications using the SWT
| | | 74451 [batsman.geo@] Right now I'm linking against Blackdown 1.4.1, but AFAIK JNI is defined
| | | 74452 [rodrigob@in ] Ok. A thought just occurred me. By using the proxies infrastructure in the
| | | 74455 [batsman.geo@] You mean using java.lang.reflect.Proxy?
| | | 74458 [rodrigob@in ] Exactly.
| | + 74475 [james_b@ne r] Given the choice, that would be mine, but I'm thinking of cases where
| + 74445 [tran55555@ya] ...
+ 74463 [armin@xs .d ] You are a star!!!

ruby debugger
74453 [cleeker@gm .] This is a rather simple question. I'm writing a program
74467 [matz@ru y- a] The debugger itself uses stdin/stdout.  You have to open file

API for Ruby/Java integration through JNI (feedback needed!)
74454 [batsman.geo@] OK, I'm going quite fast so I need now to decide how Java classes and
+ 74483 [rich@in oe h] First of all, this is a most perfect project.  To be able to "script" a
| 74631 [angus@qu va ] I second that.
+ 74555 [surrender_it] here we are
  74557 [batsman.geo@] it's just a variable name :) Now, if you don't like Reflect, I can still
  + 74558 [walter@mw ew] That is awesome!
  | 74563 [mailinglists] Performance can become very fast completely unuseable. The latest Java
  + 74569 [surrender_it] <snip of cool samples>

Inconsistent rand() results with MySQL Ruby (long)
74459 [thealmightyd] Using MySQL Ruby for a website, and trying to use the built-in RAND()
+ 74497 [kh.wild@wi o] I've tried with dbd and dbi-mysql
+ 74498 [bob.news@gm ] "Dave Dembinski" <thealmightydaev@hotmail.com> schrieb im Newsbeitrag
+ 74533 [paul@sn ke n] [summary: ORDER BY RAND() * 10 doesn't seem very random]
  74572 [thealmightyd] Aha!  I've 3.23.55.  Well, I guess that explains part of the problem.

Ruby 1.8.0-preview3 for PLD-nest/pre-AC
74462 [aredridel@nb] I've just made packages of Ruby 1.8.0-preview3 for PLD's nest (unstable)

DBD for Oracle9i
74465 [list@ji ca n] the latest features, including collections, object navigation and so on,
+ 74469 [sdate@ev re ] Yes, I am interested ... will it be possible to release in under the same
| 74485 [list@ji ca n] I will consider using a more open license. However, I believe that it's
| 74489 [sdate@ev re ] Thank you for your consideration.
+ 74482 [djberg96@ho ] (Hopefully this isn't a double post - browser problems)
| 74486 [list@ji ca n] I expect that the basic functionality will be backward-compatible, but
| 74487 [list@ji ca n] Oops, I forgot to address the other requests. I am planning to make
| 74490 [sdate@ev re ] That will be positively smashing ! Please keep us informed.
+ 74501 [mneumann@nt ] Why not extend this for 9i functionalities?
  + 74523 [kubo@ji ba .] IMHO that OCI8 extention is too complex to add new features.
  | 74547 [list@ji ca n] Speaking of OCI::Date and OCI::Number, this is similar to what I did
  | 74598 [kubo@ji ba .] Last one question about the licence. Will you release your ruby-Oracle
  | 74628 [list@ji ca n] The LGPL allows linking into a non-free program, and only changes to the
  | + 74629 [djberge@qw s] Back to the subject of the driver behavior itself, can you please make
  | + 74666 [kubo@ji ba .] I've been sure that. A non-free program which links to the LGPLed
  |   74669 [list@ji ca n] Such a contradiction means you cannot use both them and the Library
  |   74670 [list@ji ca n] Oh, I should have added... a copyright-holder using the LGPL, or even
  |   74672 [kubo@ji ba .] For an executable, the required form of the "work that uses the
  |   + 74680 [sroberts@un ] But if your DBD is used by somebody to build an application for a client,
  |   + 74694 [list@ji ca n] Such a contradiction means you cannot use both them and the Library
  |     74756 [guslist@fr e] I am not a specialist of law by any mean. But here, just reading the
  |     74782 [list@ji ca n] In the case of distribution, you have at least three entities that are
  + 74527 [list@ji ca n] Actually I did read through a lot of that code to figure the Ruby way of
    74565 [stedak@ch rt] We use OTL from http://otl.sourceforge.net/ and find it to be very satisfactory. At the time it was the only decent library we could find. I had been curious
    74567 [list@ji ca n] I remember reading about this back in 2000 when I started working on my

RPM for 1.8.0
74478 [john.carter@] I would like to get / build a Mandrake 9.1 RPM for Ruby-1.8.0 Preview 3
74479 [aredridel@nb] ...

Re: RPM for 1.8.0 - uninitialized constant CONFIG
74481 [john.carter@] Aredridel's .spec file was a good start. It seems to be a RedHat rather
+ 74484 [ian@ca ib n.] Ian
| 74492 [john.carter@] Unfortunately Mandrake 9.1 seems to have diverged too far from RedHat for
| 74495 [martindemell] How hard would it be to write a ruby program that generated a set of
| 74528 [aredridel@nb] That's what the .spec file is -- a set of instructions for packaging a
+ 74488 [nobu.nokada@] What does %configure2_13?  1.8.0 needs autoconf 2.50 or later.
  + 74491 [john.carter@] ...
  | 74493 [nobu.nokada@] It's a bug of ruby.  Could you show us the stack trace?
  | 74494 [john.carter@] Sorry, thats all there is. There is no stack trace. Nothing more than that
  | 74496 [nobu.nokada@] Try
  | 74560 [john.carter@] bt
  + 74504 [mike@ra do .] One thing which tripped me up for a while in mandrake was that I needed
  | + 74530 [aredridel@nb] PLD takes another stance -- instead of installing both, they patch all
  | + 74561 [john.carter@] rpm -qa | grep autoconf
  + 74529 [aredridel@nb] My PLD spec file uses %configure2_13 until I can figure out why the 2.5

icfp03
74505 [tpeters@un -] Besides the wiki page, there is also a mailing list by now.

String#split(' ') and whitespace (perl user's surprise)
74506 [mike@ra do .] I have to confess that I use a lot of Perl, and some of its idioms are
+ 74511 [michael_s_ca] I'd agree, FWIW.  Ruby even appears internally inconsistent; why does
| 74516 [bob.news@gm ] "Michael Campbell" <michael_s_campbell@yahoo.com> schrieb im Newsbeitrag
+ 74512 [wjl@ic ca er] I don't know if it's intentional or not, but I do see the following at
| 74513 [decoux@mo lo] Well, to see what it do
| 74515 [michael_s_ca] Does that sound like a bug to you?
| 74548 [nobu.nokada@] Yes, to me.
| 74583 [matz@ru y- a] To me, as well.  Commit the fix, please.
+ 74514 [wjl@ic ca er] '    A     50       3 for 130'.split(' ', 3).map { |x| x.strip }
  74518 [mike@ra do .] Thanks.  A minor nit is that this will destroy trailing spaces on the
  74521 [tran55555@ya] ...
  74522 [wjl@ic ca er] irb(main):002:0> "   I    like   broccolli   ".squeeze
  74524 [tran55555@ya] ...
  74532 [wjl@ic ca er] I was referring to the [sometimes unintended] effect of squeeze by
  74543 [tran55555@ya] ...

net::imap extension
74509 [spam@de k. k] I recently made a small web-interface to some mail administration, it

File upload and mod-ruby
74510 [ gm@na el gr] oops my mistake, thanx!

[OT] Re: REXML and double, rather than single quotes
74520 [ser@ge ma e-] If I may digress, I'd like to re-make on observation about software

[WIN32OLE] Outlook Automation Question
74531 [STUCKNER@MU ] ...
74559 [shanko_date@] That is because you are not "saving" the changes ;-)
74564 [STUCKNER@MU ] Thanks, that worked great!

Re: REXML and Namespaces.
74535 [aredridel@nb] May I offer the suggestion of a "context" object that defines /all/ the
74652 [ser@ge ma e-] This is an interesting idea.  I was thinking along the same lines, but
74664 [sroberts@un ] This seems similar to APIs in XOM, which I've been reading about. Have

have_library fails on SunOS 5.8 sun4u ??
74537 [ahoward@fs .] rubyists-
74539 [decoux@mo lo] The problem is not in have_library
74546 [ahoward@fs .] gcc -o conftest -I/usr/local/lib/ruby/1.6/sparc-solaris2.8 -g -O2

Euruko 03: some slides and photos are online.
74553 [armin@xs .d ] I put the slides and pics I got so far online.
74632 [armin@xs .d ] linux-enterprise (German linux journal) has published a short summary
74663 [botp@de mo t] google translates it well...

Who's going to OSCON?
74566 [ptkwt@sh ll ] OK, OSCON is coming up in a couple of weeks and I'd like to figure out if
+ 74568 [list@ji ca n] Mmm, Oregon beer. Greet the Rogue folks if you see any, and drink a
+ 74574 [rich@in oe h] i'll be there...
| 74610 [gsinclair@so] In Sydney, the two are often indistinguishable.
| 74637 [ptkwt@sh ll ] Actually, they're not distinguishable here in Portland either especially
+ 74638 [dave@pr gp o] I'm giving a full-day Ruby tutorial on Tuesday, and Thursday has a
| 74874 [ptkwt@sh ll ] Since the Ruby track is on Thursday, What do people think about getting
| 74901 [matz@ru y- a] I'll be there.
+ 74875 [dan@si he or] FWIW, there's a semi-unofficial OSCON wiki at

Using & for arrays of objects
74573 [kpdole@uc av] I'm having trouble using the & (intersection) method on two arrays of
+ 74597 [0bz63fz3m1qt] [snip code]
| 74600 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
| 74603 [0bz63fz3m1qt] I was refering to the code posted in the root of this thread.
| 74612 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
| 74613 [0bz63fz3m1qt] OK.. What I meant with "no intersection method" was: That his class did
| + 74633 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
| | 74636 [0bz63fz3m1qt] OK.. I wasn't aware that Ruby does the job for you (for free) :-)
| + 74648 [hal9000@hy e] Apparently the only problem is that you are both
|   + 74650 [0bz63fz3m1qt] True..
|   | 74656 [androflux@so] Hey, don't feel bad. I think you did a good job of explaining why you want
|   | + 74657 [batsman.geo@] No silver bullets.
|   | + 74659 [0bz63fz3m1qt] I only feel bad about my english skills. Otherwise I feel good :-)
|   + 74735 [bob.news@gm ] "Hal E. Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
|     + 74738 [denshimeiru-] Not too loud, otherwise Matz might start pretending he isn't good at
|     | 74796 [ jupp@gm .d ] Saluton!
|     | 74819 [martindemell] def i_think
|     | 74820 [vjoel@PA H. ] def i_think
|     | 74942 [bob.news@gm ] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag
|     | 74999 [denshimeiru-] Not really... that's not Ruby.
|     | 75050 [bob.news@gm ] "Rudolf Polzer" <denshimeiru-sapmctacher@durchnull.ath.cx> schrieb im
|     | 75099 [denshimeiru-] Beer = Be-er = someone who is ^_^
|     | + 75113 [bob.news@gm ] "Rudolf Polzer" <denshimeiru-sapmctacher@durchnull.ath.cx> schrieb im
|     | + 75132 [ jupp@gm .d ] Saluton!
|     |   75168 [denshimeiru-] Hm... really?
|     |   75302 [jjenning@fa ] yes - fashion it from bits so to speak. perhaps perl is more onto things
|     + 74761 [guslist@fr e] #! /usr/local/bin/perl -w
|     | 74809 [ jupp@gm .d ] Saluton!
|     | 74870 [damian@co wa] It sure is. It's the singular masculine vocative perfect passive participle
|     | + 74880 [hal9000@hy e] participle
|     | | 74882 [dan@si he or] parallel. (In constant time, of course)
|     | + 75004 [ jupp@gm .d ] Saluton!
|     + 74795 [ jupp@gm .d ] Saluton!
+ 74614 [nobu.nokada@] Array#& uses Hash internally due to performance, so you need to
| 74618 [guslist@fr e] I barely dare asking this because I know how tedious of a task
+ 74655 [androflux@so] & uses hashes under the hood. You need to define #hash and #eql? for your

Is there a Unit test tool distributed with 1.6?
74575 [gsemones@tr ] I know there are several unit test tools (runit, lapidary, etc.) that
+ 74576 [mwilson13@co] ...
| 74624 [gsemones@tr ] Thanks to everyone for the feedback.  It looks like Test::Unit is
+ 74580 [androflux@so] Not to my knowledge.

why can't I use $3somevar for global variable in ruby 1.8.0?
74579 [donglai@MI .] preview3.  I noticed that I can no longer define global variables like
74582 [dcarrera@ma ] Huh?
74584 [eban@os ri .] Your ruby is too old.
74585 [donglai@MI .] There must be a reason why $1ve is disallowed in 1.8.0 but I can't
74586 [eban@os ri .] [ruby-core:00945]
74601 [bob.news@gm ] "WATANABE Hirofumi" <eban@os.rim.or.jp> schrieb im Newsbeitrag
+ 74617 [michael_s_ca] I'd agree with this point.
+ 74647 [hal9000@hy e] But $3var doesn't start with a 3; it starts with a $.
  74736 [bob.news@gm ] "Hal E. Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
  74740 [B.Candler@po] The character definitely _is_ part of the name. For example, try doing

method overloading?
74587 [donglai@MI .] Is there a way to implement method overloading in ruby?  Naively I just
+ 74589 [dcarrera@ma ] def my_method(*args)
| 74590 [donglai@MI .] Yes, this would solve the problem but it's not ideal or elegant, the
| + 74592 [dcarrera@ma ] Well, I guess that using a case statement would help a little.
| + 74596 [batsman.geo@] Why not
+ 74591 [rpav@nw in .] <shameless plug>
| + 74593 [donglai@MI .] What is RAA?  Is there any documentation for it?  Thanks.
| | 74594 [dcarrera@ma ] Ruby Application Archive.
| + 74619 [kgergely@ml ] But this also doesn't allow one to later add a new case...
|   74622 [nobu.nokada@] def foo(arg)
+ 74602 [bob.news@gm ] "Donglai Gong" <donglai@MIT.EDU> schrieb im Newsbeitrag
  74626 [john.platte@] John Platte

Strange IRB Syntax Error
74599 [bob.news@gm ] irb(main):001:0> RUBY_VERSION
74615 [nobu.nokada@] It's too old, and fixed already.
74635 [bob.news@gm ] <nobu.nokada@softhome.net> schrieb im Newsbeitrag

Magic at class-definition time
74604 [cjh_nospam@m] In an interview on http://www.codegeneration.net/>, Pragmatic Dave
74640 [dave@pr gp o] def Table.field(type, name, *options)

FileUtils - :preserve does not preserve mtime of directories on Windoze
74611 [grzegorz@pi ] I have been trying to copy whole directory trees while preserving
74616 [nobu.nokada@] It works on NT series.
74729 [grzegorz@pi ] I have tested it on three different Win2000 boxes. On one it works

\s in regex
74620 [internetlett] what I want is to remove beginning and trailing spaces from lines.
+ 74621 [michael_s_ca] Not the answer to your question necessarily, but try String#strip (or its
+ 74623 [0bz63fz3m1qt] How about String#strip!   ?
| 74630 [B.Candler@po] irb(main):001:0> "\n".sub(/^\s+/,"")
+ 74625 [mike@ra do .] One approach might be to use String#strip as suggested by another
+ 74634 [ahoward@fs .] /usr/home/howardat/eg/ruby > cat blank.rb
| 74649 [batsman.geo@] batsman@tux-chan:~$ ruby -v
| 74658 [ahoward@fs .] damn!  back to the drawing board...
+ 74639 [wkb@ai ma l.] s,

dbi -> sqlrelay -> mssql performance
74627 [raphael.baud] We have to migrate an mssql database to Postgres and plan to do it with the
74849 [    s@xs .d ] This is *waaaay* too slow.

Gtk::Entry::SIGNAL_?????
74641 [rodrigo.berm] I am experimenting with ruby /gtk  and so far it looks so nice & easy
74645 [rodrigo.berm] and the mental power of this list gave me the answer    .....

where to put private/raa libraries?
74642 [donglai@MI .] How does ruby looks up a class/module when you use 'require'?  Does it
74644 [rodrigo.berm] Your require path is the current directory, the $RUBYLIB  (on your ENV)

Dutch user group updated
74643 [danny@la me ] At http://rubygarden.org/ruby?DutchGroup you can see an effort to combine
threads.html
top