384370-390213 subjects 384999-385647

[ANN] kgio 2.5.0 - kinder, gentler I/O for Ruby!
384767 [normalperson] kgio 2.5.0 - a minor feature update

Re: weasel words
384770 [petite.abeil] Nice preemptive strike :)

384773 [snert@ho ma ] ...
384778 [stu@ru yp og] I agree. The more I work with it the more I discover how well thought

REWORK - Task: Unify behaviour of by-literal-instantiated Objects
384784 [ilias@la ar ] (Note: This task is part of the RUBY REWORK, which has (among other
+ 384785 [ilias@la ar ] Clarification (for those which start to send legal nonsense via
+ 384832 [ilias@la ar ] This is now obsolete, no assistance needed.
+ 384858 [ilias@la ar ] obsolete, no assistance needed
+ 384904 [ilias@la ar ] met
  384905 [ryand-ruby@z] Where's the code?

How to order a hash based on its keys?
384800 [ibc@al ax ne] [[1, "1"], [2, "2"], [3, "3"]]
+ 384802 [adam@ap es o] When you hear "order" and "hash" in the same sentence, you should
+ 384804 [vikhyatk@gm ] Hash[h.sort] seems to be the best way.
| 384810 [ibc@al ax ne] 0.787590503692627
+ 384805 [josh.cheek@g] (Resending this b/c it looks like it got blocked or the server crashed the
| 384807 [anurag08priy] Or maybe a rb tree (red-black tree) from the rbtree gem. Haven't used
+ 384808 [shortcutter@] See Adam's and Josh's replies: a Hash is generally unordered.
| + 384809 [bfleischer@g] though true a hash doesn't maintain order, you can sort the keys and
| + 384813 [ibc@al ax ne] Iaki Baz Castillo
|   384814 [ibc@al ax ne] Sorry, my dog pressed "sent mail".
|   + 384833 [shortcutter@] LOL That's what our cat didn't manage yet - although he is trying hard
|   | 384837 [ibc@al ax ne] Ok. I get some data and convert it into a Hash whose key is a priority
|   | + 384839 [cmdjackryan@] I suspect you want to output this hash ordered by priority, correct?
|   | | 384841 [ibc@al ax ne] Not exactly. Well, not at all in fact :)
|   | | 384842 [cmdjackryan@] [snip explanation & design constraints]
|   | + 384843 [shortcutter@] Well, in that case an Array would be much more efficient.  You just
|   |   384846 [ibc@al ax ne] Interesting approach :)
|   |   384847 [shortcutter@] Hm...  Now I am not sure any more whether you need a associative
|   |   384849 [ibc@al ax ne] Step 1)
|   |   + 384851 [chastell@ch ] iority=3D1, @weight=3D50, @port=3D5062>
|   |   | 384852 [ibc@al ax ne] The problem is that a SRV record with priority 1 and weight 20 must
|   |   + 384855 [shortcutter@] Aha!  This is how I'd probably do it.
|   |     384856 [ibc@al ax ne] It's really cool :)
|   |     384869 [shortcutter@] Oh, thank you!
|   |     + 384871 [ibc@al ax ne] I was not able to do it with a loop, neither writing the algorithm in
|   |     | 384887 [shortcutter@] That was certainly not an effect of the recursion.  You probably
|   |     | 384913 [ibc@al ax ne] Yes, and still I'm looking for the introduced bug :)
|   |     | 384970 [shortcutter@] unfortunately I don't have time to follow up in detail just now.
|   |     | 385050 [ibc@al ax ne] Thanks a lot.
|   |     + 384872 [ibc@al ax ne] I know that my code is not very "ellegant" and does not follow Ruby's fashion :)
|   |       384886 [shortcutter@] Still the readability argument applies.  Imagine you have to maintain
|   + 384834 [anurag08priy] Since we are talking about performance benchmarks too, Ruby 1.9's
|     384836 [ibc@al ax ne] My benchmark was tested using Ruby 1.9 ;)
+ 384811 [adam@ap es o] I guess you didn't mind doing then? :)
  384812 [ibc@al ax ne] Well, I wanted to avoid doing more stuff in Ruby, as using

[OT]Once click, one (OO) life...
384801 [davcori80@gm] I would like to share a youtube clip...one click costs nothing while can

Gateway Shutting Down
384819 [james@gr ys ] We have long maintained a gateway between the comp.lang.ruby Usenet
+ 384821 [james@gr ys ] It should be offline now.
+ 384822 [kmandpjlynch] Thank you for all of your hard work...
+ 384823 [martindemell] Thanks for your work in keeping it up and running. Also, as a
| 384835 [shortcutter@] James, thank you for the gateway maintenance through past years!  I
| + 384838 [josh.cheek@g] I think that as noble as it is to hope people can be mature enough to not
| + 384840 [ryand-ruby@z] I'm afraid the numbers just don't bear out. You only posted once via =
|   384844 [shortcutter@] et over the last week (out of 8 posts). :P
|   384845 [james@gr ys ] The gateway was formed to join the then two small online Ruby
|   384848 [shortcutter@] Thanks for clarifying, James!  Now I get the point - and I understand
|   384850 [cmdjackryan@] Considering the ridiculously low numbers of messages from usenet: *Is*
+ 384853 [james.britt@] Very true.

[ANN] celluloid 0.1.0: a concurrent object framework for Ruby
384820 [tony.arcieri] Celluloid is a concurrent object framework for Ruby inspired by Erlang and
+ 384825 [normalperson] I initially had one question/concern with this release I answered for
+ 384993 [tony.arcieri] Hey, not sure why but I didn't get that email. Are you posting through

Re: OT - Test thread for behaviour of comp.lang.ruby <-> ruby-talk
384830 [ilias@la ar ] posted to comp.lang.ruby and ruby-talk@ruby-lang.org

[ANN] hoe 2.9.5 Released
384831 [ryand-ruby@z] hoe version 2.9.5 has been released!

[ANN] hoe 2.9.6 Released
384860 [ryand-ruby@z] hoe version 2.9.6 has been released!

[ANN] minitest 2.3.1 Released
384861 [ryand-ruby@z] minitest version 2.3.1 has been released!

[ANN] rake-remote_task 2.0.4 Released
384862 [ryand-ruby@z] rake-remote_task version 2.0.4 has been released!

[ANN] vlad 2.2.1 Released
384863 [ryand-ruby@z] vlad version 2.2.1 has been released!
384866 [ibc@al ax ne] most of the link in the right column, in "Doco!!" section, are wrong (404).
+ 384867 [ibc@al ax ne] Also, the screencast (http://rubyhitsquad.com/Screencast.html) is not
| + 384868 [ibc@al ax ne] After inspecting the JS code I was able to download the video from
| | 384924 [ryand-ruby@z] it
| + 384870 [serialhex@gm] umm... i don't know what browser you are using, but using chromium on
+ 384923 [ryand-ruby@z] (404).

Ruby embed called from a pthread
384864 [luizluca@gm ] I'm writing a opensync metamodule in order to allow opensync modules
+ 384865 [ko1@at ot ne] No.
| 384876 [luizluca@gm ] Thanks for your help but it still does not work.
+ 384877 [whitequark@w] We've solved this problem, which arised while trying to launch MRI as a
  + 384879 [luizluca@gm ] Thanks, I'll take a look.
  + 385360 [luizluca@gm ] Wow Peter, what a pretty hack :-) It really works! Thanks again.

Explicitly setting compiler to C++ in extconf.rb...
384873 [mcpierce@gm ] I'm trying to setup a Ruby gem that bundles the Swig-generated bindings
384882 [terceiro@so ] require 'rbconfig'
384883 [adgar@ca bo ] require 'mkmf'
+ 384884 [mcpierce@gm ] Hrm, no joy. It's still failing with the same error in mkmf.log.
| 384885 [adgar@ca bo ] stdc++
| + 384888 [mcpierce@gm ] stdc++
| + 384889 [mcpierce@gm ] stdc++
+ 384890 [terceiro@so ] c++
  384895 [ryand-ruby@z] 'g++')
  384949 [mcpierce@gm ] That did the trick! I added "-x c++" to my $CFLAGS and the system looked

Honoring #to_ary and such
384891 [transfire@gm] Well, for about the first time I am writing a library that has to be
+ 384892 [jeremyheiler] It depends. Do you want to? I suppose the only disadvantage would be
| 384893 [transfire@gm] No, I don't really ;-) But... I've always been under the impression
| 384898 [jeremyheiler] That sounds reasonable, but I still think it depends on what you're
+ 384894 [ryand-ruby@z] def foo= foo
| 384896 [transfire@gm] Ah, Sweet! Forgot about that.
| 384897 [aaron@te de ] Be careful with strings.  Array() may not do what you want depending on
| 384900 [transfire@gm] On Jun 24, 5:56=A0pm, Aaron Patterson <aa...@tenderlovemaking.com>
+ 384937 [leslieviljoe] I am interested to know why it has to be strict about types?
  384940 [transfire@gm] Very simple, I am writing the code to read in and validate and very

384901 [transfire@gm] class Symbol
+ 384902 [ninja@sl ph ] Maybe. It makes things somewhat ambiguous if I wanted to only compare a Symbol
+ 384903 [josh.cheek@g] I suppose it is indicative of how case statements were thought about during
+ 384910 [robert.dober] No, but too invasive...
  384915 [transfire@gm] lol. let me "fix" it for you
  384971 [shortcutter@] Maybe, maybe not...  The two of me can't really agree... :-)
  + 384972 [shortcutter@] P.S.: I believe it must be
  + 384973 [robert.dober] Thx for fixing it;)
    384975 [josh.cheek@g] I think it is best the way it is. They want a function, you're providing
    + 384994 [robert.dober] Duly noted ;) I do not change my POV but I will not evangelize of course.
    + 384995 [robert.dober] Ohh that makes me think of this, I am working with rails2.3.9 in the

SPDX (and the glazing of ones eyes)
384907 [transfire@gm] Never ceases to amaze me how complicated "enterprisey" peoples can
+ 384908 [josh.cheek@g] Lol, what are you working on, Trans? Why the typecasting and the XML?
| 384918 [transfire@gm] In this case, how best to detail copyright and license info in my
| 384920 [code@ap th o] Have you considered a LICENSE or COPYING file?
| 384922 [transfire@gm] Yes, of course. But there is no consistent structure to them. Though I
| 384941 [transfire@gm] I should note that it was Phillip that basically suggested this
| 384942 [cmdjackryan@] You are welcome. However, it's merely the distillation of what I've
+ 384909 [cmdjackryan@] That's over 70 licenses. So, off the top of your head: How many, and
  + 384911 [robert.dober] Sorry for that OT post, but that kind of sounds the most anti agile
  | + 384912 [code@ap th o] =2E . . unless you take it as meaning "There is no such thing as a perfect
  | | 384914 [robert.dober] Good point, I guess I am too upset with Rusell's and Hilbert's way of
  | + 384916 [josh.cheek@g] As a domain, Software Engineering probably fails the antecedent.
  + 384917 [transfire@gm] On Jun 25, 11:54=A0am, Phillip Gawlowski <cmdjackr...@googlemail.com>
    384919 [cmdjackryan@] And how do you propose such a dependency list is generated? Remember
    384921 [code@ap th o] On the other hand, disk space sometimes serves well as a rule of thumb
    384925 [cmdjackryan@] Not when I'm using a computer for data storage and retrieval. Calling
    384926 [transfire@gm] On Jun 25, 7:04=A0pm, Phillip Gawlowski <cmdjackr...@googlemail.com>

Single Responsibility Question
384927 [mikbe.tk@gm ] I'm trying to figure out who's responsible for a resource.
+ 384928 [javadba@gm i] If the code/logic on the listener side were lightweight then you may permit
+ 384930 [robert.dober] Tend to agree with your analysis, even so far that I believe you might
| 384932 [mikbe.tk@gm ] Thanks for the replies guys.
+ 384943 [shortcutter@] This is the an implementation of the observer pattern.  Ruby's
  384948 [mikbe.tk@gm ] Thanks Robert, you always have excellent feedback.
  384968 [shortcutter@] Thank you!
  384969 [cmdjackryan@] Not to mention: the fastest code is the code that never gets executed,

Rubicle, the unofficial Ruby mascot, released?=
384931 [info@ru ic e] Ruby mascot.

Re: Rubicle, the unofficial Ruby mascot, released
384934 [tony.arcieri] So this is Ruby-tan? (ala http://en.wikipedia.org/wiki/OS-tan)
384935 [serialhex@gm] something like that i guess... i kinda like it [tho i'm looking for a
+ 384936 [stu@ru yp og] or
+ 384938 [ninja@sl ph ] However, modern Konsole can have the entire window be translucent, or just the
  384939 [dido.sevilla] There was another Ruby-tan at some time if I recall correctly.

[ANN] raindrops 0.7.0 - FreeBSD fix, code cleanups
384944 [normalperson] Raindrops is a real-time stats toolkit to show statistics for Rack HTTP

[ANN] unicorn 4.0.0 - Rack HTTP server for fast clients and Unix
384945 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

[ANN] Rainbows! 4.0.0 - Unicorn for sleepy apps and slow clients
384946 [normalperson] MOAR concurrency for MOAR COARS!

[ANN] Zbatery 4.0.0 - Rack HTTP server without a fork stuck in it
384947 [normalperson] another Rainbows! resync

Understanding Threading...
384950 [mcpierce@gm ] I'm working on a use case where I need to spawn a thread that handles a
+ 384951 [luizluca@gm ] Is your block using some C extension? In ruby<1.9, threads in ruby do
| 384954 [mcpierce@gm ] Yep, C++.
| + 384955 [wyhaines@gm ] Yes, if you write your extension to take advantage of it.  Do some
| + 384957 [gwtmp01@ma .] An alternative, which may or may not be appropriate for your use case,
+ 384953 [wyhaines@gm ] ends

[ANN] Lone Star Ruby Conference V Registration is Now Open
384952 [jimfreeze@gm] Registration for Lone Star Ruby Conference V is now open!

[ANN] Mechanize 2.0
384956 [drbrain@se m] mechanize version 2.0 has been released!

[ANN] rdoc 3.7 Released
384959 [drbrain@se m] rdoc version 3.7 has been released!
384998 [matt@ti bi s] Could you give an example of what to say on the command-line to make
385008 [drbrain@se m] Regular users (via `gem install`) don't have this problem since the =

[ANN] net-http-persistent 1.8 Released
384960 [drbrain@se m] net-http-persistent version 1.8 has been released!

rescue_action in Rails 1.2.x not rendering my render
384963 [ed.howland@g] I am running Rails 1.2.6 and cannot get rescue)action to work like in the docs.
384964 [ryand-ruby@z] the docs.

How to test code that behaves conditionally based on gem existence?
384965 [josh.cheek@g] Working on https://rubygems.org/gems/bundler-bouncer, the problem is it uses
384974 [daniel@ri sp] I usually make sure the test for "use ANSI colour" is in a separate

Re: minitest 2.2.2 Released
384966 [transfire@gm] +1

clock-scheduled operations
384976 [code@ap th o] Obviously, scheduling something to happen every foo seconds is easy.
+ 384977 [ryand-ruby@z] cron
+ 384978 [cmdjackryan@] There is: Cron jobs on *NIX or Task Scheduler on Windows. You have no
+ 384980 [normalperson] You can install a signal handler and have cron signal the process.
| 384992 [code@ap th o] I need something a little more portable than the options you provided,
+ 384981 [sandor.szuec] to
  384991 [code@ap th o] Thanks.  I'll look into that.

AW: Re: clock-scheduled operations
384979 [mbj@se ni .n] Gesendet von meinem HTC

here docs: WTF am i doing wrong???
384982 [serialhex@gm] ok, so i'm trying to create a here doc for a little program i'm writing and
+ 384983 [ondemannen@g] irb(main):001:0> st = ""
| 384985 [serialhex@gm] thanks J-H!!  that works BEAUTIFULLY!!!  (though why that works and the
+ 384986 [josh.cheek@g] In the first case, puts is a method. In the second, str is a variable. You
| 384988 [serialhex@gm] ahh, ok, this explains things a lot better!  i thought it was a method or
+ 384987 [drbrain@se m] str << <<NUMS

[ANN] mechanize 2.0.1 Released
384984 [drbrain@se m] mechanize version 2.0.1 has been released!

OpenSSL in FIPS compliant mode leads to crashes
384989 [jjenning@gm ] When a Red Hat Enterprise Linux system is in FIPS compliant mode, the
384990 [cmdjackryan@] It's the Ruby bug tracker, and this is, if not a bug, a missing

A movie Renamer
384996 [mayank.kohal] I am trying to develop "A movie renamer" in ruby and wanted to get some
+ 385006 [sophrinix@gm] As for your answer. look to the file class in core.
+ 385007 [sduncan@we a] Please don't steal movies.
  + 385009 [josh.cheek@g] Lets just not even go here, please.
  + 385010 [code@ap th o] 1. http://tinyurl.com/3mapksl
    + 385011 [sduncan@we a] *sigh*
    | + 385012 [petite.abeil] helps you sleep at night.
    | | 385013 [sduncan@we a] Before this goes completely off the rails [sic], my points are;
    | | + 385014 [sophrinix@gm] or this thread could just end because I answered it in the first email.
    | | | 385016 [sduncan@we a] True enough. Add;
    | | | 385017 [epodojil@gm ] Maybe I'm thinking a bit amateurishly (only Rubying for a couple weeks now),
    | | + 385018 [code@ap th o] =2E . . or you could have pretended that's what it's called, and none of
    | + 385025 [ninja@sl ph ] Really didn't want to get into this, especially since it seems like everyone
    |   + 385026 [peric.joe@gm] RldJVywgSSBhZ3JlZSB0aGF0IHRoaXMgc2hvdWxkIGJlIGFib3V0IHJ1YnksIG5vdCBzbyBtdWNo
    |   + 385030 [josh.cheek@g] lol
    |     385045 [ninja@sl ph ] I actually have some ethical issues with this. If you're having this much
    |     + 385046 [josh.cheek@g] I honestly perceive this as "If someone needs help, that is evidence that
    |     + 385047 [spoon@ki le ] I saw one on a bidding website, the student had uploaded the problem as
    |     + 385049 [stu@ru yp og] With the assumption that the op really wants to learn how to parse and alter
    + 385015 [josh.cheek@g] I agree, lets leave the moral opinions out of it, this is a topic about how

[ANN] Inochi 6.1.0
384997 [sunaku@gm il] ...