108686-109329 subjects 109074-110829
What are people using Ruby for?
108937 [j_m_h@co .n ] I'm not currently a Ruby user but have heard about it for a
+ 108938 [khaines@en g] All of the above. My biggest use of Ruby is for writing web applications
+ 108940 [madsen@li le] The short answer is 'yes'. ;-)
+ 108941 [drossruby@ya] I recently created a commercial application which was
+ 108943 [ahoward@no a] * satelite image processing using combinations of ImageMagick, Mmap, and
+ 108951 [se@he at x. ] And of course the famous site: http://www.rubygarden.org/ruby?RealWorldRuby
| 108969 [lists@za a. ] One area which amazingly hasn't been conquered after years and years is
| + 108970 [martindemell] I've noted that ruby developers seem to prefer wrting libraries to
| | + 108980 [neoneye@ad l] I like making generate patterns with ruby
| | + 108982 [khaines@en g] I don't think that is true. People write libraries because the libraries
| | + 109018 [hal9000@hy e] Quite true. I wonder if there is a (Rubyland) cultural explanation?
| | 109022 [jamesUNDERBA] It might jut be a practical matter, and maybe a Good Development Practice.
| + 108976 [bob.news@gm ] "David Garamond" <email@example.com> schrieb im Newsbeitrag
| + 109027 [aredridel@nb] I'm writing a mailing list manager, there's rublog and several other
| 109059 [j_m_h@co .n ] Well, I'd say the group covered all the bases spectacularly!
+ 108953 [ptkwt@ar cn ] ....which doesn't really fit into any of the above catagories ;-)
| + 108956 [rcoder@gm il] Nothing so cool as quantum computing libraries for me...mostly just
| + 108957 [drossruby@ya] Nice. I thought about doing scientific computations,
| 109023 [ptkwt@ar cn ] I'm definately going to have to re-implement some of the matrix functions
+ 108961 [martindemell] Everything I possibly can :) Mostly parsing and code generation these
+ 108968 [lists@za a. ] Personally, I've started to use Ruby for things that I used to use Perl
+ 108984 [joaopedrosa@] I use Ruby-GTK for my GUI apps. For example, there is
Interesting Ruby anomaly
108944 [hal9000@hy e] I ran across an interesting bit of behavior, and I'm not sure I
+ 108945 [jamesUNDERBA] MegaStruct
| + 108946 [carl.youngbl] How bout UberStruct? (JK)
| + 108947 [hal9000@hy e] Har har... yeah, I've also thought of
| 108948 [madsen@li le] ObStruct
| 108972 [ jani@iv ro] grep -i struct /usr/share/dict/words
| 108978 [madsen@li le] That wouldn't give you anything with "truck" and "abstruct"/"abstract"
| 109009 [jamesUNDERBA] I'm pretty sure that "beat this" was a facetious, not serious, challenge.
| 109020 [hal9000@hy e] That makes more sense than some of the RCRs I have seen.
+ 108952 [nobu.nokada@] `len' is length of `args' to messod_missing at first, not
| 109013 [hal9000@hy e] Of course! That is so clear now.
+ 108962 [bob.news@gm ] "Hal Fulton" <firstname.lastname@example.org> schrieb im Newsbeitrag
+ 108963 [bob.news@gm ] "Robert Klemme" <email@example.com> schrieb im Newsbeitrag
+ 109016 [hal9000@hy e] Actually, it might. The code does need simplifying.
Random variable library?
108954 [gsinclair@so] Folks,
+ 108960 [martindemell] martin
| + 108964 [drossruby@ya] Oh neat. Is this in a tarball anwhere? I guess its
| + 109054 [vjoel@PA H. ] Nice, but it is based on Kernel.rand.
| | 109061 [khaines@en g] I have a Ruby implementation of the ISAAC cryptographically secure random
| | 109066 [vjoel@PA H. ] That's great! I hope it ends up in RAA :)
| | 109069 [gsinclair@so] The work I'm doing now doesn't strictly require, but would benefit from a
| | 109098 [batsman.geo@] You can do that easily by taking a uniform random variable and feeding
| | 109261 [gsinclair@so] Thanks for the tip. How do you write a distribution function?
| | + 109263 [batsman.geo@] Well, that's more or less what the rand.rb mentioned somewhere else in
| | | 109287 [cmills@fr es] If your really interested in how to use a uniform random variable to
| | + 109303 [paulNO@SP M.] Actually that's the inverse of the distribution function.
| | 109314 [gsinclair@so] That's fine and understood. I'm not looking for distributed random
| | 109411 [mghallNO@SP ] - run Rand.rb and it will show you sample distributions of all the distributions it knows. Maybe one will be close to what you're looking for.
| + 109096 [m3ha11@rc .c] Heh... I was going to say that. :-)
| 109302 [vjoel@PA H. ] Not that there's anything wrong with Kernel.rand--it uses MT19937, which
| 109304 [feldt@ce ch ] This has been discussed/proposed before so isn't it time someone patched
| 109305 [cmills@fr es] Could you explain this more?
| 109306 [vjoel@PA H. ] It was a bad idea. After looking more closely at ruby's random.c, I
| 109307 [khaines@en g] Just as an FYI, I've requested a RubyForge project for Crypt::ISAAC. As
+ 108971 [dmertz@fr e.] the gsl library has a lot of random distribution generators. There are
ruby-dev summary 23971-24053
108967 [ko1@at ot ne] [ruby-dev:23973] overwrite parameters and 'super'
Curly syntax for muliline blocks...
108973 [radley25@gm ] I've seen a mix between the curly syntax and the normal syntax for
+ 108975 [bob.news@gm ] "Radley Smith" <firstname.lastname@example.org> schrieb im Newsbeitrag
+ 108977 [madsen@li le] Anders K. Madsen --- http://lillesvin.linux.dk
+ 108983 [ljz@as as .c] I always thought that the curly syntax _was_ the normal syntax. :)
+ 108988 [mneumann@nt ] I agree with Jim, but don't know if I always follow these rules ;-)
108991 [radley25@gm ] That seems like a good idea. Thanks!
108974 [ruby-lists@l] in the very near future i'll be releasing ruvi 0.4.11.
109053 [carl.youngbl] This would probably be a departure from vi, but one thing that I've
+ 109055 [batsman.geo@] ruvi does this already.
| + 109057 [mailinglists] Modern displays have many columns (my framebuffer has 132) so people
| | + 109058 [carl.youngbl] I too prefer the file/buffer list on the side, especially considering
| | | 109060 [botp@de mo t] tried rpa-ing...
| | | + 109065 [chadfowler@g] I don't believe curses works on the Windows install of Ruby. It's
| | | | 109088 [ruby-lists@l] actually ruvi works just fine in win32 as long as you
| | | + 109089 [ruby-lists@l] curses is part of default install on unix and thusly imo
| | | + 109099 [batsman.geo@] There is a limit to what RPA can provide before becoming a cross-OS
| | | 109105 [botp@de mo t] Yes, you're right, sir batsman, and I'm sorry (but if you can package win
| | | 109113 [batsman.geo@] hehe, that's something I had thought of actually :)
| | + 109091 [ruby-lists@l] the multiple statusbar thing was really just a quick personal
| + 109063 [aredridel@nb] After viewing the screenshot, I tried to close the browser tab with :q.
+ 109064 [djkea2@mu ca] There are a number of vim plugins that provide this functionality such
109090 [ruby-lists@l] minibufexpl (with a few minor local changes that i made - different
how to think in Ruby way
108981 [hjleochen@ho] I'm new with developping with Ruby, When i deal with a problem ,always
108986 [bob.news@gm ] "H.J.LeoChen" <email@example.com> schrieb im Newsbeitrag
[proto-rcr] Blocks: default arguments and method signatures
108987 [tunah.usenet] and then got told that the issue had already been addressed in plans for
+ 108993 [bob.news@gm ] "Sam McCall" <firstname.lastname@example.org> schrieb im Newsbeitrag
| 109000 [tunah.usenet] Thus the reason block_given? should return false when the default value
| 109007 [bob.news@gm ] "Sam McCall" <email@example.com> schrieb im Newsbeitrag
+ 108995 [dblack@wo bl] I can definitely see the point of the default assignment, but I
| 109005 [tunah.usenet] That was a typo :-#
+ 109026 [discord@ma .] Since most of the problems in here have been hashed over already by
[Q] ActiveRecord - Sqlite
108996 [npoly_iki@ya] First of all is there an activerecord tutorial available anywhere?
108998 [gsinclair@so] I'm working on one with SQlite. It's a phonebook database with four
gem remote installation does not work
109001 [th.uehlinger] I'm trying to remote install some gems, but i only get
+ 109002 [madsen@li le] I know this is kinda the bad way to answer, since it involves installing
| 109010 [jamesUNDERBA] The RPA page says, "RPA will be a controlled repository of Ruby
| 109014 [batsman.geo@] A qualified 'no', but read on...
| 109570 [mmirra@li er] This is very important. The main reasons I like rpa are that it does
| 109597 [batsman.geo@] And many more goodies planned for 0.3.0 :-))
| 109736 [mmirra@li er] Speaking of taking Debian things for granted, it seems you simply did
| 109742 [batsman.geo@] I've been thinking about renaming rpa-base for some time; your
+ 109003 [chadfowler@g] I'm not able to reproduce this problem, and I'm in a kind of limited
+ 109028 [jim@we ri hh] Hmmm... I've not tried gems on 1.9. That _could_ be the problem. I'll
+ 109032 [th.uehlinger] Yes, that could be. I found out that it works correctly on 1.8.1.
+ 109115 [jim@we ri hh] Seems to be a YAML problem 1.9. I've sent a message to Why to confirm.
109221 [th.uehlinger] With a 1.9 checkout from today it works. (in contrast to a checkout some
109223 [chadfowler@g] Thanks for following up (and for your patience), Thomas.
Feedback on Iowa installation?
109015 [khaines@en g] Is anyout out there who has tried Iowa out via the Rubyforge download
109030 [mneumann@nt ] Only tried with webrick. I'd love if it would become easier to run an
109034 [khaines@en g] Ask and ye shall receive. Working on it right now.
109040 [mneumann@nt ] Cool ;-)
Implementation ideas? Flexible string matching
109017 [khaines@en g] Here is the puzzle. You have a string. You have a list of strings and/or
+ 109021 [martindemell] If you only need to know that there is a match, rather than what
| 109029 [khaines@en g] a
| 109038 [bob.news@gm ] "Kirk Haines" <firstname.lastname@example.org> schrieb im Newsbeitrag
| 109043 [flgr@cc n. e] ...
| 109106 [bob.news@gm ] "Florian Gross" <email@example.com> schrieb im Newsbeitrag
| 109173 [khaines@en g] I would love to see your script, Robert. I was flirting in my head with the
| 109182 [bob.news@gm ] ...
+ 109042 [mjkay@st nf ] ...
Reasons for precedence? (Was: Curly syntax for muliline blocks...)
109019 [discord@ma .] This is how I do it...
109025 [jim@we ri hh] [... examples elided ...]
How about a String#chars method?
109024 [WBrown@is ft] With all of the recent discussions on String#each_char, I have been
109031 [ahoward@no a] something like this
109035 [WBrown@is ft] Ara,
+ 109037 [hal9000@hy e] And anyhow, some of this will be addressed in 2.0, so I'm not sure
+ 109039 [bob.news@gm ] "Warren Brown" <WBrown@isoft.com> schrieb im Newsbeitrag
109044 [lewisd@f0 f.] unsubscribe
Online Ruby interpreter somewhere?
109052 [mneumann@nt ] I know there's the great www.ruby.ch online interpreter. But is the code
109262 [ s@xs .d ] Well, we have the Sandbox class in Appendix F of our Ruby book, IIRC.
109264 [mneumann@nt ] Yes of course ;-)
Ruby as Windows Service
109062 [assaph@av ya] I almost got to the point where I can install any ruby program as a
+ 109067 [chadfowler@g] Not exactly what you're asking for, but there used to be a program
+ 109110 [pan@er kv en] It's probably due to the fact that the Ruby interpreter
| 109122 [assaph@av ya] Thanks, will google for it :)
| 109124 [assaph@av ya] Who is the self in this case? TCPServer?
| 109133 [pan@er kv en] def trap(signal)
+ 109126 [rc@va ca er ] I have successfully used FireDaemon to run things as a service. Free for a
109130 [lenya@ch ms ] I second the recommendation of FireDaemon - been using it for a month to
Installing newer Ruby on a shared webserver
109068 [rubyguru@ho ] My webhost currently has 1.6.8 installed, along with eRuby, mod_ruby and
+ 109139 [halostatue@g] Your ISP would be the one required to place it globally -- that would
+ 109203 [rcoder@gm il] Chris,
109371 [rubyguru@ho ] Thanks. That's pretty much the answer I got from them, eventually.
109376 [david@lo dt ] You can easily run Rails in CGI-mode like this, but that's not really
Relationship between classes
109070 [luke@ma st p] I think this is a ruby question, as my problem is written in ruby, but it
+ 109134 [dblack@wo bl] Maybe create some classes to wrap all of this in, so that you would
| 109230 [luke@ma st p] Hmm. I'll look into that; after sending my email out last night, I think
+ 109150 [bob.news@gm ] "Luke A. Kanies" <firstname.lastname@example.org> schrieb im Newsbeitrag
109162 [bob.news@gm ] "Robert Klemme" <email@example.com> schrieb im Newsbeitrag
RubyForge project and gem distriubtion
109071 [jamesUNDERBA] I seem to recall a mention at some point that if a project on rubyforge
109072 [rich@in oe h] Release the file like you would any file (in the Files tab). RubyForge
+ 109073 [jamesUNDERBA] Excellent! Thanks.
| 109075 [drossruby@ya] Heres food for thought..
| + 109076 [rich@in oe h] Should we remove your rubyforge account now?
| | 109079 [drossruby@ya] Heh, I didn't say I was going to do it. I was thinking
| | + 109082 [chadfowler@g] <BIGSNIP/>
| | | 109086 [drossruby@ya] I did, they wouldn't catch it immediately :)
| | + 109087 [rich@in oe h] OK...so you want to bet I can write malicious Ruby code that a QA person
| | | 109104 [ruby-lists@l] [ummm wish i could get send hooks to change my from addr]
| | | + 109119 [batsman.geo@] Right.
| | | + 109138 [dave@pr gp o] Or do what I do, and install everything non-root... There's nothing
| | | + 109140 [rich@in oe h] You don't need to run as root, only if you want to install in a system-wide
| | | 109154 [batsman.geo@] Please read http://ruby-talk.com/blade/109119.
| | + 109097 [jim@we ri hh] [... attack scenario elided ...]
| | | 109100 [batsman.geo@] IIRC both the extconf.rb and the Makefiles supplied with the gem will
| | | + 109117 [jim@we ri hh] I stand corrected. I forgot about extension builds.
| | | + 109136 [dave@pr gp o] Absolutely, exactly the same as anything downloaded off the web, or off
| | | + 109143 [ruby-lists@l] i must say this is erm. confusing me a tad.
| | | | 109160 [curt@hi bs c] I think you missed the point about the orimary functionality of rpa being
| | | | + 109163 [ruby-lists@l] *baffled*
| | | | + 109164 [drossruby@ya] I have to disagree. Batsman has plans for rpa-base and
| | | | | 109174 [curt@hi bs c] I stand corrected!
| | | | + 109167 [horacio.lope] Please count the lines of code Mauricio Fernandez has kindly
| | | | + 109171 [chadfowler@g] I was going to make this point. It's kind of ridiculous to go
| | | | + 109175 [curt@hi bs c] No doubt, this is excellent and commendable!
| | | | + 109176 [chadfowler@g] The project description on RubyForge could actually be taken as a
| | | | | 109183 [horacio.lope] oh I was sure you were going to make this point.
| | | | + 109181 [horacio.lope] I was going to make this point, it's ridiculous to go counting lines in order
| | | | + 109185 [chadfowler@g] Agreed. Though it was, as I mentioned, a matter of timing. We were
| | | | + 109187 [jamesUNDERBA] I confess to not having the time to read every message on ruby-talk, so
| | | | 109189 [chadfowler@g] something new going on in the hotel bar. To me, that's one of the
| | | | + 109190 [dblack@wo bl] And we haven't reached 50 yet, so there are still free Pickaxe2 copies
| | | | | 109191 [walter@mw ew] Just out of curiosity, how many people normally attend these conferences?
| | | | + 109206 [jamesUNDERBA] Well, I'm giving a presentation, so I expect to be there. :)
| | | | 109210 [chadfowler@g] I meant join us in coding. I knew you were going to be there of course :)
| | | | 109212 [jamesUNDERBA] Well, I'll have to periodically acknowledge my S.O., who'll be traveling
| | | + 109147 [drossruby@ya] I often have a phrase
| | | + 109161 [horacio.lope] "How do you get to be a great musician? It helps to know the theory,
| | | | 109188 [dave@pr gp o] But musicians typically don't release their practice sessions.
| | | | + 109193 [horacio.lope] I'm lost, who is the apprentice musician here ?
| | | | | 109195 [dave@pr gp o] No, no no!!
| | | | | + 109197 [chadfowler@g] What isn't really coming out in this thread is that (at least)
| | | | | | 109202 [drossruby@ya] It wasn't knocking, it was stating that there need not
| | | | | + 109198 [drossruby@ya] This can't happen, chad already said he had different
| | | | | 109200 [chadfowler@g] QA'ing other people's code and filtering out the bad stuff is not a
| | | | + 109196 [ahoward@no a] i think the great ones realize there is nothing else but practice sessions.
| | | + 109168 [halostatue@g] I thought I read somewhere that Gems will be using something similar
| | | + 109169 [drossruby@ya] They are both too early to even be considered to be a
| | | + 109172 [rich@in oe h] So, with gems you can have multiple versions of a single library installed
| | + 109135 [dave@pr gp o] There are a fair number of people with commit access to ruby-lang. I,
| | 109137 [drossruby@ya] No motive. I for one don't want to run RubyGems as
| | + 109142 [dave@pr gp o] Of course, but you'd be irresponsible to run _any_ open source
| | | + 109144 [decoux@mo lo] How do you know that /usr/local is owned by root ?
| | | | 109146 [dave@pr gp o] Another good point: changing /usr/local to be writable by the install
| | | + 109159 [Ruben.Vandeg] I hope you wouldn't "just install" a gem "for fun" on such a box. Such
| | + 109145 [dblack@wo bl] That's fine; just don't single RubyGems out as any more or less
| | 109149 [drossruby@ya] In my world, everything is insecure. There is a little
| | 109151 [billk@ct .c ] I had to look it up myself, neat word: (er, phrase :)
| + 109077 [jamesUNDERBA] Possible, perhaps. Maybe in unit test code. I believe that the code
| | + 109080 [sean@ce so t] What's the difference between relying on a third-party designated to look out
| | | + 109084 [drossruby@ya] Batsman said it was in the plans after a 0.3 release.
| | | + 109102 [batsman.geo@] Debian is a major source of inspiration; keep in mind that RPA is in
| | + 109081 [drossruby@ya] Well there is an answer of having a QA team.
| + 109078 [chadfowler@g] This is not a design flaw. It's an add-on feature for RubyForge. It
| 109083 [drossruby@ya] hmm. Okay, not design flaw, security flaw. I always
| + 109085 [chadfowler@g] So, this is the equivalent of having two release streams: the
| + 109333 [sera@fh an .] A remarkable statement, that. Life would be a lot easier if all sorts
| + 109334 [ruby-lists@l] oh come on.
| + 109335 [hal9000@hy e] Thank you, Francis. A quite sensible reply.
| | 109339 [jamesUNDERBA] Yes. I might add that, the more someone tells me that I should be happy
| | 109343 [drossruby@ya] Wow, you must be suspicious of all developers then,
| | 109365 [lymans@gm il] Mr. Ross,
| | 109369 [drossruby@ya] I happen to be right on many points, it would be a
| | 109370 [drossruby@ya] Okay, dig through my bad grammar. I need to learn how
| + 109473 [nick@ac iv h] I can't agree with that. That's exactly how life works. Progress and
+ 109315 [sdmitry@mu a] Richard, aside of all that RubyGems security/design flaws flame, I want to thank you and Tom
109316 [drossruby@ya] Flame? no critique, you don't care about your
109317 [sdmitry@mu a] Oh, sorry.. I do care. But the fact that I care means that I prefer to check