113762-114645

113561-114279 subjects 113946-116417

rdoc Question: How to document which exceptions a function raises
113762 [ruby@br an s] is there already a possibility in rdoc to document which exceptions a
113764 [halostatue@g] Best to write it out if you must document it. Having something more or

Uploading a multipart form with Net::HTTP
113765 [halostatue@g] Did anyone ever figure this out?
113774 [patrick@he a] Austin,
+ 113777 [patrick@he a] Also,
+ 113782 [halostatue@g] Thank you. What does Web::Mime::get_mime_type do? Perhaps you
  113791 [patrick@he a] extension.  It parses a copy of Apache's mime.types file.  It's not an

[SOLUTION] The Solitaire Cipher (#1)
113766 [flgr@cc n. e] ...
+ 113767 [jgb3@em il b] (Not sure how best to post my solution, so I'm just replying to
| + 113775 [flgr@cc n. e] Nice, I didn't know that #delete_at exists. It's a bit clearer than
| + 113789 [james@gr yp ] Sounds good to me.
|   113792 [flgr@cc n. e] Nice. Way better than doing multiple fetches and adding them together.
|   113793 [mmhohman@no ] [SOLUTION] The Solitaire Cipher (#1)
+ 113772 [angus@qu va ] [Florian Gross <flgr@ccan.de>, 2004-09-26 16.24 CEST]
| 113776 [flgr@cc n. e] Cool, I always used (?A .. ?Z).include?(b) for this.
+ 113781 [agorilla@gm ] and another one gets added to the pile... also class oriented, just
+ 113838 [t_leitner@gm] Very nice quiz!!! :-)
+ 113845 [niklas@ka i.] My solution.
| 113904 [noSpam@no pa] # Cool fun!  I found that the majority of my problems came from
| 113913 [james@gr yp ] That's probably largely my fault and I apologize.  That would be the
| 114044 [ jimm@io co ] YAQS (Yet Another Quiz Solution): I've created
+ 113943 [james@gr yp ] Help.  <laughs>  I'm trying to figure this code out...
| 114075 [flgr@cc n. e] Exactly. I think the same would be done if I had used a standalone
+ 114182 [dennis.ranke] ###

[ANN] Archive::Tar::Minitar 0.5.1
113770 [halostatue@g] I am pleased to announce the release of Archive::Tar::Minitar 0.5.1, a
113780 [batsman.geo@] I have just RPAfied it; while doing so, I found a problem in your
113783 [halostatue@g] since this is merely a packaging error (not affecting ANY files in the
113840 [eeklund@gm i] I am of the distinct opinion that ANY change to the release should
113854 [halostatue@g] Yet ... Mauricio suggested that this is little different than the

[ANN] Rubydium 0.1 - Tech Preview
113779 [ruby-lists@l] Whoa, say what?
113909 [batsman.geo@] How are you going to implement code cache invalidation? Will you just
113915 [ruby-lists@l] ouch, good question :P

Re: Proc / def / yield semantics
113786 [markus@re li] No.  Consider: you have something (in working code) that accepts
113796 [markus@re li] Perhaps.  I keep feeling that there is an "Ah ha!" lurking in here
113804 [discord@ma .] If Association is a subclass of Array or Values, then it should be

Array#dup,clone
113799 [ttate@tt ky ] 今日の時点のruby-1.9についてですが,
113802 [ttate@tt ky ] Sorry, I have sent the following mail to ruby-talk by mistake.

RPM of Ruby 1.8.x
113803 [matt@te hn r] I'm trying to find rpms for the latest released version of Ruby.  After I
+ 113805 [markus@re li] If all else fails, it's dirt simple to install from source,
| 113806 [matt@te hn r] Yeah, but I have another 16 systems that are scheduled to be installed.
| 113810 [gsinclair@so] I'm not suggesting you should do this, just curious as to what's
| 113812 [markus@re li] I gather making your own RPM fairly simple (disclaimer: I've
| + 113814 [guslist@fr e] Here is how I did my RPMs. I downloaded the ruby RPM for my
| | 113815 [guslist@fr e] ...
| + 113816 [matt@te hn r] Unfortunately, that violates the "Principle Of Least Surprise".  On a
|   113858 [carl.youngbl] Having a standard ruby RPM would do a lot to promote the wider
|   + 113860 [agorilla@gm ] Somebody who...
|   + 113862 [markus@re li] Just for the record, I (the original poster) didn't tell anyone to
|     113865 [agorilla@gm ] Your answer is a valid one, and may even be the best one for Matt's situation.
+ 113859 [mkhan@le tr ] you need to install ruby-lib-xxxx.rpm too.
| 113866 [matt@te hn r] Ummm, that's rather obvious.  However, it didn't seem to be on RubyForge.
+ 113901 [horacio.lope] You can also try Ian McDonald's personal repository of RPM files for Redhat
| 113910 [matt@te hn r] I made more progress, but those RPMs want libdb-4.2 and RedHat Enterprise
| 113920 [horacio.lope] optionally, you can always try to  --force --nodeps
| 113963 [markus@re li] I know I got micro-flamed for making this same suggestion earlier
| 113973 [matt@te hn r] You're absolutely correct, we should.  However, The systems adminstration
| 113984 [horacio.lope] Don't let that grind you down, you'll always find people willing to
| 113986 [matt@te hn r] It get tiresome at times.  I'm doing what I can to avoid leaving any weird
+ 114085 [aredridel@nb] I highly reccomend compiling from source RPMs if the distro the RPM was

non-blocking TCPServer ?
113807 [bitserf@gm i] maybe i'm understanding how this is meant to work incorrectly, but i
113813 [matz@ru y- a] It shouldn't.  I will fix.

ruby CD interfaces
113808 [daniel@da ie] I was just wondering has anyone been using ruby as an interface for
113821 [rcoder@gm il] This is exactly what I've been working on, and it's definitely doable.

Yield & associations (was Proc / def /yield semantics)
113811 [markus@re li] This looks to be very much along the lines I have been thinking,
113876 [discord@ma .] IIRC, Values is the encapsulation class for parameter lists and

{newb} Help with ref
113819 [Becker004@gm] ########################### code start
+ 113822 [assaph@av ya] <snip code>
| 113846 [B.Candler@po] I don't think that's strictly true - there's no shadowing going on. As far
+ 113823 [markus@re li] I will try tell you what I think want you want to know, rather than

[ANN] Copland 0.8.0
113820 [jgb3@em il b] Another release of Copland, the Inversion of Control container for Ruby!

Object#send and blocks/procs
113824 [assaph@av ya] I started to write this email as a question, but figured the answer in
+ 113825 [gsinclair@so] puts "aaa".send(:gsub, /./, &prc)
| 113827 [markus@re li] Gavin --
| 113828 [assaph@av ya] gsub?
+ 113826 [markus@re li] puts "aaa".send(:gsub, /./, &prc)
+ 113829 [g_ogata@op u] puts 'aaa'.send(:gsub, /./, &prc)

[ANN] ncache 0.9
113830 [george.mosch] n/cache
113831 [ruby@br an s] I don't have the time to check it out now, but I would be interested in
+ 113834 [george.mosch] The cached items are stored in a linked list to facilitate a
| 113839 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
| 113871 [george.mosch] Robert,
| 113999 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
| 114021 [george.mosch] is
| 114025 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
| + 114036 [george.mosch] This is a nice trick! Do you have any idea how I can get rid of the
| | 114042 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
| + 114041 [george.mosch] Hmm i can include the lru_key in this spare element too. Very nice
+ 113835 [george.mosch] The cached items are stored in a linked list to facilitate a

Rosie, "Rosie Server Pages" and twelvesoft.com
113833 [mmoura@gm il] i bumped into this today. it looks pretty much cool and simple.
114097 [aredridel@gm] Wow. Looks pretty spiffy. I may have to give it a (package|try)

ML services will be stop for maintenance
113837 [shugo@ru y- ] ML services will be stop for maintenance on Tue Sep 28 11:00 (UTC).
113842 [shugo@ru y- ] Sorry, it's not UTC but JST:(
+ 113844 [bob.news@gm ] While we're at it: I noticed that my newsreader (MS OE) showed an
| 113960 [shugo@ru y- ] Sorry, I don't know about the news gateway.
+ 113957 [shugo@ru y- ] The services are restarted. Thank you.

BlueCloth bug?
113841 [ruby@br an s] I'm toying around with BlueCloth, and wonder why I get the following
113847 [patrick.spen] The code you provide generated
113848 [ruby@br an s] Thanks for testing it. I used rpa to install bluecloth and assumed it
113849 [batsman.geo@] Bluecloth 1.0.0 is now in RPA (I had missed that release); just

[Rails] #has_and_belongs_to_many problem
113843 [sdmitry@lr .] I'm playing with Rails and I must say that it's really great framework. Web
+ 113856 [david@lo dt ] class Permission < ActiveRecord::Base
+ 113857 [usenet@an re] Foreign keys are supported in 4.x, but only with InnoDB tables.

vim code completion
113850 [roelandmoors] Is there a possibility to use code completion in vim for ruby?
113852 [jgb3@em il b] There's always the ^N/^P keys (used in insert mode). It's not quite code
113853 [roelandmoors] The problem is remembering methods.
113861 [jamesUNDERBA] The ruby-vim macro/menu thing (sorry, I forget the actual name) has a

Re: Ruby extconf.rb / autoconf (in?)compatibility
113851 [cilibrar@gm ] Unfortunately, Tim's solution is proving to be hard to understand; it
+ 113855 [howardat@uc ] ~/tmp > cat a.c
+ 113880 [hramrach@ce ] There is setup.rb which is used by some ruby extensions to do the
  114000 [cilibrar@gm ] Ah my faith in Ruby is restored.  Thanks for the make tip Howard;

RubyConf: Comfort Suites?
113873 [hal9000@hy e] Out of curiosity, is anyone else staying at the Comfort Suites? The
+ 113875 [matt@te hn r] I haven't made my reservations yet.  I just called the Holiday Inn and
| + 113881 [dblack@wo bl] I put up a roommate wiki at
| + 113882 [hal9000@hy e] That's interesting. I think they told me they had none at all. How high is
|   113895 [matt@te hn r] $179/night on Thursday and Sunday and $99/night Friday and Saterday.
+ 113883 [ptkwt@ar cn ] Reading the subject, I thought maybe someone had come up with a new unit

[Ruby Forum] irb feature suggestion
113877 [alex@ve k. n] How do you get the value of the last expression entered in irb?
+ 113878 [discord@ma .] I distinctly remembered this one from a few months back...
+ 113879 [dave@pr gp o] irb(main):001:0> 1 + 2

segfaulting in IO.popen()
113884 [dilinger@vo ] I'm having a problem w/ mod_xmlrpc segfaulting inside a call to
113922 [matz@ru y- a] Can you show us error reproducing script and how to run it?  Code
113958 [dilinger@vo ] de'

{newb} Each statements
113885 [Becker004@gm] Do each statements change the thing that they are using?
+ 113886 [halostatue@g] Try using #map instead.
| 113890 [Becker004@gm] data is  a string so ndata is a string as well correct? i am getting an error
+ 113887 [james@gr yp ] ndata.map! do |c|
| 113891 [Becker004@gm] nope
| 113892 [ruby@br an s] ndata = ndata.split(//).map { | c | ((c-97)+rand(10))%26 }.join
| + 113932 [Becker004@gm] ven.rb:27:in `encrypt': undefined method `-' for "a":String (NoMethodError)
| | + 113934 [assaph@av ya] (NoMethodError)
| | + 113935 [james@gr yp ] split() takes one String and makes many out of it.  You are trying to
| |   113952 [agorilla@gm ] That started to look a bit too perl like for me, so I decided to
| |   113955 [dblack@wo bl] I keep wondering what this 'a' is (I think it was in the original,
| + 114008 [B.Candler@po] ndata.gsub!(/./) { |c| ((c[0]-97+rand(10))%26+97).chr }
+ 113893 [agorilla@gm ] no, but map! and collect! do, but they only work on Arrays, not
  113894 [dblack@wo bl] That's a bit inefficient, because each time through you're creating a
  113896 [agorilla@gm ] hmmm...  hadn't thought of that.  Still have some old habits to break.

Any YARV pre-questions in RubyConf2004?
113888 [ko1@at ot ne] I will show presentation about "YARV - Yet Another RubyVM"
+ 113897 [jamesUNDERBA] Unless you've given this presentation before, time estimates can be hard
| + 113898 [james@gr yp ] ... or Parrot?
| + 113902 [dblack@wo bl] Perish the thought! :-)
| | 113912 [jgb3@em il b] presentation to my local RUG, and it went for almost exactly an hour...
| + 113924 [matz@ru y- a] Don't underestimate the language barrier. ;-)
| | + 113929 [chadfowler@g] Speaking for everyone I think, we'll be honored to have him as our
| | | 113940 [matz@ru y- a] I miss you all too.  But I shouldn't miss my wife and baby this year.
| | | 113945 [jamesUNDERBA] In Toronto!
| | | 113951 [dblack@wo bl] Probably not.  The west coast comes up in the rotation next year :-)
| | | 113954 [hal9000@hy e] Everything's west of somewhere.
| | | 113970 [halostatue@g] I'll push for 2006 :) I might be able to get some corporate
| | | 114111 [rff_rff@re o] join the damagecontrol army :)
| | + 113933 [jamesUNDERBA] Well, OK, since you asked so nicely.
| + 114081 [ko1@at ot ne] James Britt <jamesUNDERBARb@neurogami.com>
+ 113900 [eeklund@gm i] I won't be at RubyConf (unfortunately), but I've still got one
| 114082 [ko1@at ot ne] Eivind Eklund <eeklund@gmail.com>
| 114173 [rff_rff@re o] - how fast this would be?
+ 113918 [ruby-lists@l] i've got a large number of questions that you may find useful :)
+ 114115 [rff_rff@re o] thank you for yarv and for asking our feedback.. emh.. feedforward maybe..

keep changes in string outside of scope?
113899 [mrmargolis@w] The  code below is supposed to scan through a string and put a ','
+ 113903 [james@gr yp ] thestring.gsub!(/(\d{5})/, '\1')
| 113907 [james@gr yp ] Oops, forgot the period.  The replace string should be '.\1'.  Sorry
| 113990 [bob.news@gm ] "James Edward Gray II" <james@grayproductions.net> schrieb im Newsbeitrag
+ 113905 [dblack@wo bl] The thing is, each substring, as returned by #each, is a new object,
  113906 [dblack@wo bl] in one string :-)  Also make sure that you have no street numbers with
  + 113908 [mrmargolis@w] Excellent.  I didn't know that each returned new objects.  Thanks a
  | 113911 [dblack@wo bl] Just to clarify: it (each) doesn't always return new objects; it
  | 113921 [mrmargolis@w] Understood.
  + 113991 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag

safety of timeout()
113914 [bitserf@gm i] i've seen discussion previously regarding the safety of timeout,
+ 113925 [matz@ru y- a] Define 'safety' first.  Interpreter should not dump core by this
| 113953 [bitserf@gm i] i'm not too worried about the precision, more just concerned about
| 113959 [matz@ru y- a] Signal is received immediately (at the latest safe point), and is
+ 114011 [B.Candler@po] That's true. The problem is that the timeout thread raises an exception
  114052 [pbrannan@at ] I like your description of the problem, Brian.  I've tried to explain
  114060 [B.Candler@po] I think that's a broader problem, and not specific to Ruby timeouts.
  + 114071 [Ara.T.Howard] " Spread is a toolkit that provides a high performance messaging service that
  | 114133 [guslist@fr e] What does your patch fix/improve?
  | 114134 [Ara.T.Howard] a little core dump ;-)
  + 114077 [pbrannan@at ] I don't think sequencing messages is sufficient to solve the problem.
    114106 [bitserf@gm i] Thanks for the detailed elaborations, folks. Good to know I'm not

Getting the exit code in a SystemExit rescue block?
113916 [ljz@as as .c] begin
+ 113917 [assaph@av ya] p e.status
| 113919 [ljz@as as .c] Aha!  Thank you very much.
+ 113926 [matz@ru y- a] p e.status

Best name for "this method" ?
113923 [transami@ru ] Wondering what the conscensus is on the best name for "this method". Right now
+ 113927 [matz@ru y- a] Possible.  A good name for it is a must.
| 114638 [transami@ru ] What about 'operator'?
| 114641 [markus@re li] I don't like it.  "Operator" has a pretty specific set of
| 114645 [transami@ru ] moniker
+ 113928 [horacio.lope] How about  "me" ?
| 113948 [transami@ru ] My initial reaction was that it's too much like self. But now that I've given
| 113950 [dblack@wo bl] I think your initial reaction was right :-)  With things like this, I
| + 113964 [transami@ru ] I understand. Yet I can think of worse things to explain, like pg. 216 - 219
| + 113966 [markus@re li] Not seriously floating this (unless everyone loves it) but the
| | 113977 [transami@ru ] Do we now?  ;)
| + 113983 [horacio.lope] "me" should be pretty mnemotechnical for method
|   113992 [bob.news@gm ] "vruz" <horacio.lopez@gmail.com> schrieb im Newsbeitrag
+ 113930 [dblack@wo bl] If so, I hope it won't have the boolean flag.  I think those flags,
| + 113931 [gsinclair@so] Amen.  I can _never_ get a meaningful, predictable result out of those
| + 113942 [transami@ru ] Actually, I agree with you too. Since it's just a flag, perhaps using
|   + 113949 [gsinclair@so] Nice idea.  I'm considering putting a bit of effort into an API for
|   + 113994 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     + 114003 [gsinclair@so] I completely disagree, Robert.  Lots of related methods is a code smell
|     | + 114004 [botp@de mo t] +1
|     | + 114010 [bob.news@gm ] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
|     | + 114014 [transami@ru ] foo.methods { |m| m.private | m.singleton }
|     | | + 114016 [dblack@wo bl] What's wrong with h[:a] ?
|     | | | 114029 [transami@ru ] Blech?  No, it's okay.  Having to use three chars when one will do is not so
|     | | | 114038 [dblack@wo bl] I know it's tempting to want everything to be compressed, and to use
|     | | + 114022 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     | |   114027 [transami@ru ] I knew someone would show me that ;) I also have a simple #to_obj method for
|     | + 114117 [transami@ru ] This line's got me thinking... How does one define a class [] constructor? For
|     |   + 114121 [dblack@wo bl] class C
|     |   | 114128 [transami@ru ] Duh! Thanks, I don't know why I thought there was something special about it.
|     |   | 114132 [dblack@wo bl] I'm not getting the point of that.  Why do you need a wrapper like
|     |   | 114143 [transami@ru ] Sorry, I should explain better. Let me put it this way: Why would I want to
|     |   | + 114149 [james@gr yp ] I'm not a fan of Class(), but I have to agree with the above complaint.
|     |   | | 114233 [flgr@cc n. e] Array[] can be used to construct a new Array from values and Hash[] can
|     |   | | 114235 [james@gr yp ] For some reason, when you put it that way, it made a little more sense.
|     |   | + 114175 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     |   |   114220 [transami@ru ] I don't follow. Help you do what? It would still instantiate the factory.
|     |   |   + 114287 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     |   |   | 114301 [transami@ru ] And how does that get any better with Class[] ?
|     |   |   | 114302 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     |   |   + 114291 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     |   + 114130 [Ara.T.Howard] ...
|     |     114142 [transami@ru ] Oooo... me likes.
|     |     + 114158 [Ara.T.Howard] ...
|     |     + 114177 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
|     |       114239 [transami@ru ] I was waiting for this ;) See if you can break this one.
|     |       + 114240 [dblack@wo bl] I've lost track of where this is going a bit, but here you seem to be
|     |       + 114244 [Ara.T.Howard] class Object
|     + 114024 [halostatue@g] This sounds like a lovely RCR candidate, Robert :)
|       114093 [bob.news@gm ] "Austin Ziegler" <halostatue@gmail.com> schrieb im Newsbeitrag
+ 113936 [Ara.T.Howard] in C this is known as __FUNCTION__.  so perhaps 'function'.  this could be
| 113937 [dblack@wo bl] Hmmmm... then we'd have proc, Proc, lambda, block, closure, method,
+ 113938 [gavin@re in ] In Javascript, there is 'caller' (the method which called the current
+ 113939 [flgr@cc n. e] JavaScript uses callee for the first-class version.
  + 113941 [transami@ru ] Binding.of_caller? Could you explain this more? I'm not sure to what you are
  | 113962 [transami@ru ] Okay, I see. I did some research to understand. The problem I see with this is
  | 113998 [flgr@cc n. e] Why? As you can see from my trace_func implementation Ruby already knows
  | 114023 [transami@ru ] Well, that's my question. Does it just retrieve a reference or does it have to
  | 114073 [flgr@cc n. e] From my limited knowledge of the internals it would only have to tweak
  + 113944 [transami@ru ] Then what about #called for just the method name?
  | 113996 [flgr@cc n. e] Why not method_name? called() is a bit ambiguous IMHO...
  | 114151 [transami@ru ] Two downsides of method_name. The lesser is that it is not brief. The grater
  | + 114170 [rff_rff@re o] I think the groovy guys name it 'callee' or something similar.
  | + 114273 [transami@ru ] It occurs to me that technically the method name should be called the
  |   114275 [dblack@wo bl] Not necessarily.  Messages being sent to objects can result in methods
  |   114284 [markus@re li] I'm not sure I agree with this.  Of course, at one level it is
  + 113987 [jhaungs@ac .] I'll preface this with saying I don't know Ruby yet as well as I know
    114150 [transami@ru ] Did anyone ever respond to you? If no, we's very sorry.
threads.html
top