133923-136785

133683-170548 subjects 134079-136629

Stable sort?
133923 [hal9000@hy e] Questions for you guys...
+ 133925 [phurley@gm i] Yup
| 133926 [hal9000@hy e] Yes, I see what you mean.
| 133927 [ruby-ml@ma i] Looks like the invaluable Bruno R Preiss has quite a few algorithms
| 133928 [hal9000@hy e] I was just looking at that... but I don't yet get it.
| 133940 [martindemell] def sort(ary, from, to)
+ 133930 [matz@ru y- a] I think. so.
+ 133943 [surrender_it] AFAIK, python's sort is based on a alghoritm named something like
| 133946 [alyx@fo .n c] unsubscribe
+ 134470 [matju@sy pa ] a=people.sort(:name)
  134991 [jeffm@gh st ] here's another one for no other reason than I need to write one. Has

Re: One-click installer for win32utils
133929 [djberg96@ho ] case it

regex question
133933 [joevandyk@gm] line = "some line of stuff"
+ 133935 [logancapaldo] match_data = line.match(/regular expression/)
| 133939 [assaph@gm il] careful, match_data can be nil itself if there was no match.
+ 133936 [vjoel@PA H. ] "foo bar"[/foo/]
+ 133937 [ruby-ml@ma i] You could use String#scan.
+ 133938 [assaph@gm il] and

new language shootout
133959 [martin.anker] the available shootouts focus mostly on performance benchmark, I want
+ 133961 [surrender_it] BTW, I wonder how do you think to rate the time required to implement
| 133964 [martin.anker] I don't really know right now, but any suggestion is very welcome. Maybe
| 133969 [robert.mcgov] Get the creator of each language to write the code? Really come up
| + 133973 [curt@hi bs c] Nice idea! Don't forget Alan Kay (Smalltalk), as well as OCAML and Haskell
| | 133975 [phurley@gm i] 1. Also suggest to the language designer that they can delegate the
| + 133978 [martin.anker] Well I think it will work better as a community-thing. I try to write
|   134008 [robert.mcgov] I don't think it would work better as a community thing because you
+ 133980 [premshree.pi] Interesting, but they are too subjective to be trivial.
+ 133997 [cpine@he lo ] Interesting comparisons.
+ 134077 [michael.camp] It's a clever idea, but the beauty of benchmarks is that they are

[ANN] Nitro + Og 0.13.0
133965 [george.mosch] new versions of Nitro and Og were just released.

[ANN] Pimki 1.6
133966 [assaph@gm il] Have just released Pimki 1.6. Pimki is a PIM (Personal Information
133974 [jason.sweat@] Do you have any example screenshots or a URL to a live site to look at?

Ruby mentions at Microsofts Competitive Influentials Summit
133967 [gordonhartle] Just noticed a couple of references to ruby in Matt Raible rss feed
133968 [joaopedrosa@] I hope Don was sobber when he said that. :-)

Suggestions for RDoc
133972 [mailing-list] 1.  Object#[] doesn't get documented, at least not in C sources.
134003 [drbrain@se m] $ ruby
134017 [mailing-list] Badly written, sorry.  Object was supposed to be <object>, as in any

[SUMMARY] Quoted Printable (#23)
133976 [james@gr yp ] It was pointed out, first in private email and later on Ruby Talk, that your

[REVISED SOLUTION] Quoted Printable (#23)
133977 [flgr@cc n. e] ...

Maximum stack depth
133981 [glenn.parker] It would be useful to have a Ruby command-line option to specify a
+ 133982 [bob.news@gm ] "Glenn Parker" <glenn.parker@comcast.net> schrieb im Newsbeitrag
| 133985 [glenn.parker] On the Solaris platform (and probably other pthreads-friendly
| 134029 [tone_hole@ya] Sorta off-topic now, but FYI, you can't do this.
+ 133984 [matz@ru y- a] Ruby uses C stack, so that you need to use ulimit to specify a limit
| 133993 [glenn.parker] Thank you for the tip, but I'm afraid ulimit is not an option under
| 134009 [paulha@ar cn] (Showing my ignorance:) I thought windows apps had an automatically
| 134010 [horacio.lope] The Birth of a Thread: CreateThread
| 134011 [billk@ct .c ] There must be tools out there that will tweak the .exe header to increase
+ 133987 [horacio.lope] 1891 levels in my old redhat linux 7.3 box, ruby 1.8.2 built from source
| 134055 [bob.news@gm ] "vruz" <horacio.lopez@gmail.com> schrieb im Newsbeitrag
| + 134065 [glenn.parker] For the simple test, my system stops at 1299 levels while yours goes all
| | + 134071 [bob.news@gm ] "Glenn Parker" <glenn.parker@comcast.net> schrieb im Newsbeitrag
| | + 134095 [ruby-ml@ma i] I think you may be able to use EDITBIN to change the stack size on
| + 134127 [csaba@ph ny ] In my ruby installations under gentoo, there is no "stack level too
| | 134145 [tim@ba es id] I get the same thing (also on Gentoo), except with 1GB of RAM and 2GB of
| | 134156 [eric@af ik u] I'm on gentoo and here is the output of my system. I haven't changed any
| | 134157 [spoooq@gm il] I used to run gentoo (and will again), and I always turned
| + 134150 [tom.hurst@cl] 49165
|   + 134151 [gavin@re in ] Man, you are all awesome compared to MacOS X :|
|   + 134161 [matz@ru y- a] It should be safe, since exception rewinds C stack using longjmp(3).
|   + 134162 [premshree.pi] from -e:1:in `t'
+ 133990 [binkley@al m] Does Ruby not do tail recursion optimization?  That would remove any
  + 133992 [matz@ru y- a] Not yet, but planned.
  | 134068 [chneukirchen] +1 *very* good idea. :-)
  + 134063 [surrender_it] 8189
    134066 [glenn.parker] YARV certainly does sound terrific.  I wish we could do something more

Concerning "class instance variables"
133983 [hal9000@hy e] Here's a slight reality check.
133986 [jim@we ri hh] I believe the term comes from Smalltalk, which has exactly the same

*cloth and ToC
133991 [guslist@fr e] Is there a way to extract a table of content of a text with redcloth of
+ 133994 [aredridel@nb] Sounds like it would be better implemented as an output filter -- a
| 134028 [guslist@fr e] ...
| 134044 [guslist@fr e] ...
+ 133995 [tamc2@ca .a ] Not in Redcloth at the moment AFAIK.
+ 134005 [badcherry@ma] I did this exact thing in a wiki I'm writting.  Here is the code for what I

saving a OpenSSL::X509::Certificate as PKCS#12?
133998 [magnus@bo in] I want to create a X.509 certificate and save it as PKCS#12.
+ 134196 [magnus@bo in] I guess I can't?
+ 134206 [gotoyuzo@no ] function.
  134389 [magnus@bo in] Thanks. This worked perfectly!

Free Rails hosting?
133999 [braempje@ne ] I know a lot of free hosters who support PHP etc. but I'd rather try Rails.
+ 134016 [rasputnik@he] Nope. If you just want to try it, why not get a Linux distro and run it on that?
| + 134061 [surrender_it] because it also runs just fine on other platforms ;)
| + 134064 [braempje@ne ] It works on a local machine, but I'd like to have a site running on Rails.
|   134070 [wildwildwes@] A free shell account will do the job if you're willing to sacrifice some speed.
+ 134019 [mailinglists] Please remember that Rails is from a CPU/Memory cost perspective
| + 134136 [drbrain@se m] 43 Things averages 46661 KB/Rails process (we peak at 200,000
| | + 134140 [mailinglists] I think you didn't understand the intention of my posting.
| | + 134165 [doug@be ve .] i'm surprised you're using so much memory.  is the 46MB number just
| |   + 134315 [drbrain@se m] Since a running Ruby process doesn't fork() to spawn new children
| |   + 134360 [wyhaines@gm ] No, you have it backwards.  With Ruby, the shared portion between processes
| |     134391 [doug@be ve .] ah, you're right, i sometimes forget that the requires are at runtime.
| |     + 134401 [mailinglists] How should a forking modell help with memory here ?
| |     | 134410 [doug@be ve .] i didn't include enough details before...
| |     | 134412 [mailinglists] Yes seems that you got my point. A lot of the ruby data part will
| |     + 134505 [wyhaines@gm ] Yep yep.  Meaningful benchmarks can be hard.
| + 134313 [jim@fr ez .o] Although not free, mod_ruby will work on a verio shared host (verio.com).
|   134325 [mailinglists] Sure. But thats not what you normally call shared hosting (yes it is
+ 134047 [wildwildwes@] account (which is free!)
| 134053 [martindemell] Fascinating project. In practice, is there an actual community built up
| 134069 [wildwildwes@] In my experience it's a bunch on individual users. However, it's been
+ 134049 [robby@pl ne ] Free is going to be difficult to find at the moment. If you're smart,
+ 134326 [braempje@ne ] So conclusion: unless you're willing to play around with shells it's not

Re: xml schema api
134004 [fkchang2000@] I've written something similar to what you've

Rhizome.org seeking software consultant
134014 [sera@fh an .] I'll be hiring a freelance programmer for Rhizome.org, the arts
135607 [ryand@ze sp ] Hey Francis,
135617 [sera@fh an .] Mmmmaybe, if whoever you're thinking of can get me his/her resume by

Asyn sockets
134015 [eustaquioran] Is there some feature in Ruby like the Java SocketChannels or Python
134060 [surrender_it] I guess you are thinking of IO#select(). Notice that ruby threads are
+ 134062 [eustaquioran] Thanks! :-)
+ 135113 [ed@wi dg os ] What about non-blocking connects though?
  135116 [ysantoso-rub] The current ruby implementation silently switch the IO operating mode
  135229 [ed@wi dg os ] So lets get specific...
  135378 [ysantoso-rub] The word "your" above is misleading (and wrong?). It should be "the
  135407 [norealaddres] Aha.  Well in that case I would call this a "blocking" connect.  The

selected objects
134018 [joevandyk@gm] I have a bunch of shapes in a GnomeCanvas object.

Re: Pimki 1.6
134020 [assaph@gm il] at?

encapsulating rubygems so that my users don't need to be aware of it
134022 [csaba@ph ny ] Say in appfoo I use lib_a, lib_b and lib_c.
134023 [csaba@ph ny ] %w(lib_a lib_b lib_c).each {|lib|
+ 134025 [vjoel@PA H. ] Is testing the return value of require what you want?
| 134033 [csaba@ph ny ] Yes, you are right. I've already posted the correction.
+ 134027 [csaba@ph ny ] Um, sorry.
  134032 [assaph@gm il] If the user has *no* version of the lib (i.e. not the gem and not the
  134038 [csaba@ph ny ] Again, the critique is correct. Then forget all except my first and
  134039 [assaph@gm il] the
  134043 [csaba@ph ny ] Thanks... at least I'm assured that in this case not I'm the one who

Using C++ libraries in Ruby
134042 [thedcm@gm il] How/is this possible?
134058 [mailing-list] nikolai

making use of a coredump?
134046 [csaba@ph ny ] I'm just wondering...
134050 [matz@ru y- a] When you have core
134125 [csaba@ph ny ] #0  0xff2a0190 in _libc_kill () from /usr/lib/libc.so.1

Re: One-click installer for win32utils
134051 [djberg96@ho ] The
134144 [djberg96@ho ] because
134152 [botp@de mo t] //I think I've narrowed this one down.  I appears that the

Ruby/DL and libc's localtime
134052 [drbrain@se m] I'm trying to wrap localtime from libc, and am having no luck.
134057 [ttate@tt ky ] Please use StructTm to create a proxy as follows.
134114 [drbrain@se m] Works perfect!

Wanted: A nice clean ruby app to disect
134073 [curt@hi bs c] We've started a new Ruby Users Group in Saint Louis, Missouri (US). We had our first get together last night over dinner (many thanks to Dave Thomas who also came since he was in town).  About 90% of our members are new to Ruby, and we decided that a good way to get started would  be to dissect the code of a Ruby app to learn Ruby and its idioms first-hand from *real* code.
+ 134082 [james@gr yp ] I sure learn a lot reading the Ruby Quiz submissions every week.
| 134163 [curt@hi bs c] Thanks, I'll take a look.
+ 134085 [se@di it le ] Rails?
| 134164 [curt@hi bs c] Surely you don't mean Rails, itself. That would be way too complex.
+ 134166 [mike@cl rk a] Have you looked at RubLog (http://rubyforge.org/projects/rublog)?
  134191 [curt@hi bs c] Thanks, I'll take a look.

Crobjob problem with ruby script.
134074 [andreas.cahe] Hopefully this is the right place to post my problem.. any help is
+ 134081 [jamesUNDERBA] What shebang line are you using?
| 134089 [andreas.cahe] None... do I need to add one to my ruby scripts?
| 134090 [bob.news@gm ] <andreas.cahen@gmail.com> schrieb im Newsbeitrag
| + 134100 [jamesUNDERBA] I've has issues with cron jobs because of assorted mismatched
| + 134106 [andreas.cahe] I get a huge difference between executing this command on the shell and
|   + 134109 [polyergic@gm] I've had problems with paths in cronjobs even just running shell
|   | 134110 [aredridel@gm] As have I. I am routinely annoyed by the lack of environment
|   | 134113 [polyergic@gm] Most cron daemons?  Is there one that doesn't have that problem?
|   + 134454 [bob.news@gm ] <andreas.cahen@gmail.com> schrieb im Newsbeitrag
+ 134138 [jostein.bern] /usr/bin/ruby /backups/scripts/delete_old.rb
| 134172 [andreas.cahe] I tried it like that but it didn't work :/
| 134176 [premshree.pi] Try putting that line in a shell script, and add sh
+ 134260 [probertm@ac ] My experience with root cronjobs and ruby says that you should explicitly
| 134353 [andreas.cahe] Unfortunately it didn't help at all..
| 134378 [bob.news@gm ] <andreas.cahen@gmail.com> schrieb im Newsbeitrag
| 134388 [andreas.cahe] first
| 134455 [bob.news@gm ] <andreas.cahen@gmail.com> schrieb im Newsbeitrag
+ 134445 [andreas.cahe] I finally found out how to use my rubyscripts as a cronjob..

[EVALUATION] - E03 - jamLang Evaluation Case Applied to Ruby
134078 [ilias@la ar ] [EVALUATION] - E02 - Nitro, a Ruby Based WebFramework
+ 134092 [martindemell] Okay, that's a neat bit of work. Here's a quick solution (ruby makes
| + 134365 [ilias@la ar ] I apologize for the late answer.
| | + 134406 [rampant@gm i] You can think of the whole file as "main". The code will be read from
| | | 134488 [ilias@la ar ] I understand.
| | | 134494 [martin.anker] Ruby is not strictly OO, but not for the reason you think. Here is a
| | | 134553 [ilias@la ar ] impressive.
| | + 134460 [martindemell] The ruby interpreter is one-pass insofar as it takes a single pass through
| |   134493 [ilias@la ar ] [...] - (interpreter, dynamic mixins, ...)
| + 134977 [ilias@la ar ] The application main code will be alternatively entered in a seperate
| | 135050 [lukfugl@gm i] Put the code for the Talker class in a separate file then 'require'
| | + 135052 [james@gr yp ] =begin
| | + 135053 [martin.anker] You can use e.g.
| | + 136483 [ilias@la ar ] ok
| + 135091 [ilias@la ar ] omitting "self" (puts class.name) leads to an error
|   135249 [ilias@la ar ] [from an answer which showed up as a seperate thread]
|   135256 [flgr@cc n. e] Note that it is quite large and not too pretty, though.
|   135278 [ilias@la ar ] with which tool have you generated this?
|   135548 [flgr@cc n. e] Graphviz and a custom Ruby script which uses Ruby's introspection for
|   135790 [ilias@la ar ] if it is not very long, can you please post it here?
|   135804 [martin.anker] martinus
|   136039 [ilias@la ar ] very nice work.
+ 134768 [ilias@la ar ] The first result is available.
| 134787 [tom@in oe he] Yours,
| 136493 [ilias@la ar ] I was surprised from the quality of the distribution.
| 136509 [lucsky@ma .c] A mac user does not install Ruby, because Mac OS X already has it
| 136516 [ilias@la ar ] intresting.
+ 135795 [ilias@la ar ] To save some time, I would like to reverse the process (first the ruby
| 135858 [james@gr yp ] Probably because it's too general a topic.  The word "metadata" changes
| 136040 [ilias@la ar ] ok
| 136101 [james@gr yp ] Correct, but it certainly provides ample tools to build whatever you
| 136246 [ilias@la ar ] I'm just writing the situation down.
+ 136462 [ilias@la ar ] how can I add runtime-accessible [meta]data to a ruby function definition?
| 136466 [bob.news@gm ] "Ilias Lazaridis" <ilias@lazaridis.com> schrieb im Newsbeitrag
| 136472 [ilias@la ar ] I don't understand.
| + 136480 [glenn.parker] Does anybody else see an analogy to "Blind Man's Bluff" in this thread?
| + 136525 [bob.news@gm ] "Ilias Lazaridis" <ilias@lazaridis.com> schrieb im Newsbeitrag
|   136605 [ilias@la ar ] the above is essentially "class metadata".
|   + 136607 [aengstrom@gn] [snipp]
|   | 136613 [ilias@la ar ] def meta()      # use of "()" is optional
|   + 136608 [bob.news@gm ] "Ilias Lazaridis" <ilias@lazaridis.com> schrieb im Newsbeitrag
|   | 136611 [ilias@la ar ] ok
|   + 136612 [csaba@ph ny ] If you want metadata for the _function_, then it's not exactly the way
|     + 136628 [ilias@la ar ] [...] - (several other suggestions)
|     | 136631 [ruby-ml@ma i] talker.sayYourName.meta[:author] = "it's just me"
|     | 136640 [ilias@la ar ] This behaviour seems non logical.
|     | 136643 [ruby-ml@ma i] You are not accessing the method, you are _calling_ the method.
|     | 136695 [bob.news@gm ] "Saynatkari" <ruby-ml@magical-cat.org> schrieb im Newsbeitrag
|     | 136702 [csaba@ph ny ] Hmm, that's interesting. Good to know of it. So then methods are not
|     | + 136713 [ilias@la ar ] Thank's to all replies.
|     | | + 136718 [bob.news@gm ] "Ilias Lazaridis" <ilias@lazaridis.com> schrieb im Newsbeitrag
|     | | | 136734 [ilias@la ar ] [...] - (some examples)
|     | | | 136738 [bob.news@gm ] "Ilias Lazaridis" <ilias@lazaridis.com> schrieb im Newsbeitrag
|     | | | 136745 [ilias@la ar ] [...] - (some examples)
|     | | + 136727 [csaba@ph ny ] You can find something like this at
|     | | | 136749 [ilias@la ar ] ok, but this is too less information
|     | | + 136729 [james@gr yp ] There are nice diagrams of this relationship in Programming Ruby
|     | | | 136733 [george.mosch] ri Class
|     | | | 136739 [ilias@la ar ] Is this book available online?
|     | | | 136744 [james@gr yp ] The first edition of the book (now in its second edition) is available
|     | | | 136754 [ilias@la ar ] sad.
|     | | | 136764 [james@gr yp ] Never sad to support good authors in their craft so they can keep
|     | | | 136771 [ilias@la ar ] please!
|     | | | 136779 [florgro@gm i] The question is whether those evaluations will indeed be useful to the
|     | | | 136785 [ilias@la ar ] [...] - (several comments)
|     | | + 136737 [csaba@ph ny ] You can attach metadata to a certain method object, it's just not what
|     | |   136760 [ilias@la ar ] [...] - (thorough elaboration)
|     | + 136726 [james@gr yp ] If the metadata has anything to do with method execution, say tracking
|     + 136637 [ilias@la ar ] after the other message and some more tests I understood you objections
+ 136492 [ilias@la ar ] I hope you like the results so far.
  136618 [ilias@la ar ] open command window
  136620 [ruby-ml@ma i] Local variables evaluated during a require() are not accessible
  136626 [ilias@la ar ] I understand.
threads.html
top