81588-82068

81347-82004 subjects 81833-83236

RubyConf, Ruby Central, Ruby Garden temporary outage
81588 [dblack@su er] Just to let everyone know that there's a network outage at
81601 [chad@ch df w] FYI, this appears to be resolved.

Extract methods in a class to mixin?
81589 [flori@ni e. ] I just tried to extract the methods defined in a class and make a mixin
81591 [decoux@mo lo] Try this
81704 [flori@ni e. ] Line 23 ^^^
81705 [decoux@mo lo] With your *patched* version
81707 [flori@ni e. ] Oh, that isn't really optimal. :)
81708 [decoux@mo lo] What do you do with all embedded applications which run code written by

Re: Calling fun taking struct and not pointer to struct?
81590 [nathaniel@NO] 1) The act of using a struct in the declaration of another
81594 [feldt@ce ch ] This is what I'm asking.
81596 [nathaniel@NO] Hmmm... I may end up doing that for now, but it's just so ugly. It sure
81597 [feldt@ce ch ] I agree it seems pretty straightforward and useful. It still depends
81603 [nathaniel@NO] Well, I'm very much a C novice, but from my limited understanding of how
+ 81608 [wkb@ai ma l.] Nathaniel,
| + 81609 [aredridel@nb] ess
| + 81610 [nathaniel@NO] Thanks for the info!
+ 81622 [Tim.Hunter@s] Would that this were true. However, the ANSI C standard doesn't
  + 81625 [nathaniel@NO] Hmmm... so the question is, is there any way to determine how the compiler
  | 81658 [cyclists@nc ] Well, a starting point would be offsetof().
  | 81662 [nathaniel@NO] Hmmm... but is offsetof() portable? :-/
  + 81661 [nathaniel@NO] After doing some more googling, and looking more closely at the DL source,
    81665 [cyclists@nc ] A compiler is free to align a structure on a boundary that is stricter
    81681 [steven.jenki] Correct. ISO C further guarantees that a pointer to a structure may be

posting multipart form through http.rb
81599 [chrismo@cl b] [snip ... file data]
81602 [decoux@mo lo] with
81604 [chrismo@cl b] Yeah, I just realized this ... I'd misassumed the Content-Type and

ruby-dev summary 21295-21366
81600 [aamine@lo er] This is a summary of ruby-dev ML in these days.

windows line termination
81605 [chrismo@cl b] Why does Ruby translate \n -> \r\n automagically when writing to/from
81606 [decoux@mo lo] try it with the `b' switch
81630 [chrismo@cl b] Dang it - forgot about that *again*. Thanks for the reminder :-)
81637 [fxn@ha hr f.] When you read/write a text file Ruby (as C or Perl) lets you see a
81667 [chrismo@cl b] Thanks, Xavier -- guess I just needed the confirmation to make sure I

What *are* variables? Which are nil now?
81612 [hgs@dm .a .u] Reading about reflection, ObjectSpace will give you the objects in
+ 81632 [austin@ha os] You mean @b1.nil? -- right?
| + 81635 [chad@ch df w] # > raise "@b1 is nil" if @b1.nil
| | 81700 [hgs@dm .a .u] Yes, I'd mistyped it.
| + 81659 [hgs@dm .a .u] Yes, didn't paste it because it was short!
|   81695 [bob.news@gm ] "Hugh Sasse Staff Elec Eng" <hgs@dmu.ac.uk> schrieb im Newsbeitrag
|   81706 [hgs@dm .a .u] [Nil#to_a]
|   + 81712 [bob.news@gm ] "Hugh Sasse Staff Elec Eng" <hgs@dmu.ac.uk> schrieb im Newsbeitrag
|   | 81724 [hgs@dm .a .u] That occurred to me later.  Originally I could not determine it was
|   + 81713 [decoux@mo lo] No, it call #to_ary
|     81725 [hgs@dm .a .u] I can't see that listed either in the windows copy of the Pickaxe,
|     81726 [decoux@mo lo] Because, like I've said, Array#+ call #to_ary and because I've defined
|     81727 [hgs@dm .a .u] Ah, that was the bit I missed.  Hmm, it's only Array that defines
|     81730 [decoux@mo lo] #compact! return nil if it don't modify the receiver : this is #compact!
+ 81654 [gsinclair@so] Variables are not objects; it's as simple as that.  They are sticky
| 81673 [hgs@dm .a .u] thanks, I missed that one.
| 81685 [gsinclair@so] Heh, all I had in mind was this: if you can get a Binding to another
| + 81686 [vjoel@PA H. ] Must be an irb thing. I don't see it when executing your code in ruby
| | 81687 [gsinclair@so] Ah, interesting.  My instinct is to ask: "how can irb inject a local
| + 81702 [hgs@dm .a .u] Oh, *nice*!  Yes, and I can roll that into the exception object I
+ 81696 [bob.news@gm ] "Hugh Sasse Staff Elec Eng" <hgs@dmu.ac.uk> schrieb im Newsbeitrag
  81709 [hgs@dm .a .u] This was debugging code, added after getting the error.  I wanted to

BUSINESS PROPOSAL
81613 [gregmakata@n] ...

Chasing a garbage collection bug
81623 [thomas@Fi st] I just discovered that I have a GC related bug, or that is to say it doesn't
81629 [thomas@Fi st] For starters, is there a way to make the GC print some information about the
81640 [vjoel@PA H. ] why GC wasn't freeing an object that I though it should). Also, it's for

stdout in embedded ruby in win32
81634 [wilmot@cl b-] I have just finished to convert my ruby embedded app from static ruby
+ 81638 [zdodson@zd d] In my experience, the results you describe above occur when you mix
+ 81678 [nobu.nokada@] Link with msvcrt.dll.
  81682 [sean@cS Pl o] Not sure if this solves your problem Thierry, but here's what I did in
  81746 [wilmot@cl b-] First , thanks all for your answers, ruby community is great !
  81819 [zdodson@zd d] What you state above is consistent with my experience.  You need

mod_ruby for Windows?
81650 [ccccccc@no e] I want to develop ruby web-apps on Windows. They'll probably be deployed

GC - PLEASE  set me straight
81651 [thomas@Fi st] Q1) I am wondering about the rb_gc_register_address/rb_gc_unregister_address
+ 81703 [decoux@mo lo] The best is to simplify your code to a few lines, and *post* it
+ 81711 [tpeters@un -] Ruby's GC will not recycle objects that are referenced from the stack.
+ 81737 [sean@cS Pl o] It uses the address, not the value.
  + 81752 [batsman.geo@] It would probably make sense to
  + 81760 [thomas@Fi st] That is exactly what I am doing I just wanted to spell out the scenario as
    81763 [sean@cS Pl o] Hmm ... I'm confused about that statement.
    81772 [thomas@Fi st] Well that wont do..
    81775 [sean@cS Pl o] You don't need to ALLOC the VALUE though.  You can just make it a
    81783 [thomas@Fi st] That need not be true for .net objects. If you hold references to .net
    81788 [sean@cS Pl o] Heh ... my last MS compiler is from MSVC 4.0, circa 1995.  That hasn't
    81789 [thomas@Fi st] Excellent idea. I for one had many questions after having read the chapter

[ANN] rcalc 2.2 (Was: [ANN] rcalc 2.1 (Ruby Calculator))
81655 [ jupp@gm .d ] Saluton!
+ 81660 [harryo@qi so] Great!  I'll give it a try.
+ 81664 [harryo@qi so] This is great!
| 81757 [ jupp@gm .d ] Saluton!
+ 81732 [ejb@th wo ld] ruby install.rb config
  + 81738 [michael_s_ca] Have you tried running "./configure --prefix=/cygdrive/c/ruby" (as
  | 81778 [ejb@th wo ld] Thanks, Michael.
  + 81813 [ jupp@gm .d ] Saluton!

Re: WEBrick and mod_ruby performances
81656 [dcorbin@ma h] But it doesn't abstract the response control for the three different environs.

Ruby regression testing
81668 [j_k_wd@be ls] Is Ruby regression tested?
81672 [surrender_it] for what I can remember, actually it is still incomplete , and there
81674 [j_k_wd@be ls] Perfect.  Thanks!

tramlaw@hotmail.com
81670 [vor_lord@ho ] Matt,

DBI/ODBC question: how to create DB programmatically?
81676 [davehal01@ha] I've been trying to figure out how to use ODBC with DBI.  So far, I have
+ 81723 [mneumann@nt ] There's no special command to create databases with DBI/ODBC. Usually,
+ 81748 [chrismo@cl b] cat = WIN32OLE.new('ADOX.Catalog')
  81808 [davehal01@ha] Thanks Chris.  That's what I was looking for.  I never thought of using

How are global methods defined?
81689 [androflux@so] How are global methods defined in Ruby? I know you can just
81692 [gsinclair@so] Top-level methods become private methods of Object, so I'm told.  That
81792 [androflux@so] But why not add just add private methods to Object if it has the same
81795 [gsinclair@so] Well, it doesn't cost anything, and it's a good separation of concerns.
81811 [androflux@so] Ah, okay.

Nested struct alignment summarized
81693 [feldt@ce ch ] So trying to distill the recent thread about C compilers
81698 [batsman.geo@] Expand the current method (list of structure types in dl.h (ALIGN_*)),
+ 81710 [feldt@ce ch ] Below is code to assist analysis of this. I'd be interested in the
+ 81790 [cjh_nospam@m] I solved the same problem for my C++ DDT (Dynamic Data Typing)

Sending messages to a queue
81715 [crauschuber@] Has anyone used Ruby to send a message to a message queue, ie
81719 [gsinclair@so] s/ie/eg

Socket.accept problem via Socket.for_fd($stdin.fileno)
81716 [kalante@nt w] I am experiencing a rather infuriating problem with Socket.accept on
81717 [nobu.nokada@] I guess this has been fixed already in CVS.

Ruby in Systems Administration
81718 [wmwilson01@h] I was just wondering if anyone had some really cool uses for Ruby in Systems
+ 81721 [hgs@dm .a .u] for some.
+ 81722 [d.borodaenko] Though not exactly what you're looking for, Rconf is an example of a
+ 81728 [bobgus@rc .c] There is always Expect
| 81750 [djberge@qw s] We use a tcp client-server app written in Ruby to monitor applications and
+ 81753 [batsman.geo@] You could try to reach jfontan at #ruby-lang (irc.freenode.net, European
| 81853 [rodrigo.berm] It need some improvements, but at the moment it has been very useful  to
+ 81844 [rodrigo.berm] It need some improvements, but at the moment it has been very useful  to
| 81845 [djberge@qw s] That looks very cool.  Please put it on RAA and RubyForge.  Thanks.
| 81846 [wmwilson01@h] I'd love to take a look.
+ 81932 [dagbrown@LA ] I use webrick all the time!
  81972 [martindemell] Nifty! I was actually planning to look into webrick and write this over

An article on using Ruby to drive a Java hourly build...
81720 [tom@in oe he] The more the merrier...
81747 [ jimm@io co ] And "Read iCal Data with Ruby" is on the O'Reilly MacDevCenter site at
81771 [surrender_it] Don't forget to send this links to James Britt (the ruby-doc.org guy)
81785 [jbritt@ru y-] I try to keep up on this list as well.  The two recent postings about

Re: Nested struct alignment summarized [LONG]
81731 [nathaniel@NO] Here are my results, as well as an updated version of the script that will

ruby 1.8 strange behavior
81733 [sdmitry@lr .] I've started making my own C extension to ruby, and found that strange
+ 81734 [decoux@mo lo] The modification is intentional.
+ 81756 [batsman.geo@] a = b[0] = 1

Re: Ruby 1.8.0 .pkg/installer for OS X?
81735 [ilant@ma .c ] Thanks digi!

re
81739 [lurunlei@ey ] 嶄忽二匍兆村寄畠斑低煤防迄協人薩

Localhost variability
81743 [gruby@sy ar ] @host = "127.0.0.1"
81773 [surrender_it] IMO

[ANN] DataVision 0.7.13 released
81751 [ jimm@io co ] DataVision 0.7.13 is now available from SourceForge at
81754 [michael_s_ca] This might be a personal nit, but package authors out there, please

Passing an Object Class from a method  to a caller
81755 [RLMuller@co ] ...
+ 81759 [mgarriss@ea ] Looks like your 'break' is passing the 'result' line and thus returning
| + 81762 [sean@cS Pl o] In other words, it looks like you have the last "result" expression
| + 81764 [dblack@su er] I think it's actually returning the result of break, which is nil
| | 81779 [mgarriss@ea ] def this
| + 81805 [RLMuller@co ] Thanks, Michael.
|   81850 [androflux@so] Why go to all this trouble when you can just do "obj.class.to_s"?
+ 81761 [drbrain@se m] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+ 81766 [ged@Fa ri MU] This happens because your break causes the value of the last evaluated
| + 81767 [dblack@su er] I think break (pre-1.8.0 or without explicit value in 1.8.0) evaluates
| | 81798 [ged@Fa ri MU] I stand corrected.
| + 81825 [RLMuller@co ] Thanks very much for your help, especially going the extra mile to
|   81959 [ged@Fa ri MU] You're quite welcome.
+ 81827 [RLMuller@co ] Thanks to all of the responders. Fundamentally, I had faulty logic

Correctly handling the deprecation of rb_enable_super
81758 [nathaniel@NO] I'm using a library (ruby-odbc 0.99 to be exact) that calls
81797 [nobu.nokada@] #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
81804 [nathaniel@NO] Thanks, Nobu! Worked like a charm.
81806 [nobu.nokada@] Now rb_{enable,disable}_super() are dummy macros, so you don't
81810 [decoux@mo lo] Well, some persons are trying to make their libraries work even with

Re: backup under privileged mode (unix permissions)
81768 [sean@cS Pl o] It gets complicated (I've been there), and sometimes you just have to
81769 [djberge@qw s] There's always 'sudo'.
81774 [sean@cS Pl o] What problem is that a solution for?

print out a variable's name and value?
81770 [ferenc@en ar] I want a comfortable debug function to which I can pass a variable, and
81776 [James.Weiric] def dbg(&block)
81856 [ferenc@en ar] WOW! Nice. :-))))

Global object instance?
81784 [sean@cS Pl o] I'm thinking, why do we have globals at all?  I wonder if it would be
81787 [gsinclair@so] Kinda nutty, yeah :)
81794 [sean@cS Pl o] Well, what I was hoping for was a way to do it WITHOUT modifying the
81821 [bg-rubytalk@] I'm often too much of a purity person, because of that, I've been using

ruby gc hook - is there such a thing?
81786 [thomas@Fi st] I just thought of something. This .net finalizer is called asynchronously
81791 [sean@cS Pl o] What you could do is create sort of a "global collector" object that is

キャッシングのご案内
81802 [yuutai_oriso] ☆お急ぎでしたら☆

Re: %y{} patch (was: ANN: MetaTags 1.0)
81807 [berk@up et r] Actually, I wouldn't want to creep the core language with various unrelated

Is modruby.net working?
81809 [surrender_it] I've been trying to download mod_ruby from modruby.net, but the
81816 [mgarriss@ea ] It's working for me as of this mails timestamp.  And I agree with you
81820 [tom@in oe he] I can certainly suggest a home for it... modruby.rubyforge.org is still

[PATCH] ROMP-0.1
81812 [moonwolf@mo ] ...

OO Challenge
81814 [nospam@al ia] Dear Ruby Community,
+ 81815 [feldt@ce ch ] Without any refactoring or rethinking of his "problem" here
| 81818 [bob.news@gm ] "Robert Feldt" <feldt@ce.chalmers.se> schrieb im Newsbeitrag
| 81822 [James.Weiric] I'll throw in my version.  Logically it is structured very much like Robert
| + 81826 [bob.news@gm ] "Weirich, James" <James.Weirich@FMR.COM> schrieb im Newsbeitrag
| | 81872 [nospam@al ia] Link is above there somewhere.
| | 82046 [bob.news@gm ] "Henry Gilbert" <nospam@alliancetec.com> schrieb im Newsbeitrag
| + 81829 [Richard_Dale] I like James' solution best because he has tax_classes 'collect'ing - which
| | 81832 [James.Weiric] Add the abstractions were fairly well identified by the OP as well.  What's
| + 81889 [jweirich@on ] Not to beat a dead horse or anything, but I love playing with variations
+ 81835 [drbrain@se m] Ok... Different groups of people
+ 81839 [sean@cS Pl o] For such a small variation, OO has little to offer.  Morphing is usually

ri request
81817 [chrismo@cl b] I'd love to see things like the sprintf, Time.strftime, etc.
81824 [jbritt@ru y-] You can use RImport[0] to add RDoc'ed files into ri.  Results, of
81880 [surrender_it] <sidenote>
81885 [gsinclair@so] I'm working on this and will hopefully have something released soon.

Functions in Kernel [Was Re: Global object instance?]
81823 [aredridel@nb] I don't think I ever use thse.

Including 'ri' in Ruby distribution (was: How are global methods defined?)
81828 [thelenm@cs u] I'll throw my two cents in too... I'm a complete nuby and have been reading the

Mthod redefinition
81830 [Meino.Cramer] I just want to know, whether there is a way to accomplish things like
+ 81841 [austin@ha os] You could use the StrongTyping module if you really need it.
| 81842 [Meino.Cramer] thank you for the reply ! :)
| 81857 [ferenc@en ar] class Foo
| 81864 [austin@ha os] Ferenc's code does, more or less, what Ryan Pavlik's StrongTyping module
| 81874 [Meino.Cramer] Thank you for the explanation of duck typing !
| + 81883 [gsinclair@so] There's no magic really.  In Ruby, you can only have one definition of
| + 81886 [dblack@su er] It's not a particular coding technique.  To quote Dave Thomas,
| + 81890 [jweirich@on ] I would disagree with this point of view.  I think it misses the point
+ 82045 [bob.news@gm ] "Meino Christian Cramer" <Meino.Cramer@gmx.de> schrieb im Newsbeitrag
  82068 [markjreed@ma] Actually, "redefinition" is a general term for defining a method which has

Re: Finer-grained modules (like Enumarable) for Collections?
81831 [bob.news@gm ] "Its Me" <itsme213@hotmail.com> schrieb im Newsbeitrag
81843 [batsman.geo@] This can be leveraged to ease Ruby-in-Ruby or to reimplement the
threads.html
top