150712-152010

150583-152510 subjects 151127-156207

a restricted send (was: Re: ruby-dev summary 26468-26661)
150712 [martinelzen@] Please, no!  A lot of those alternatives are just synonyms for 'send', IMO,
150713 [dblack@wo bl] Another possibility would be perhaps a "secret" (or something) level
150737 [chneukirchen] It's likely you forget a method then, though.

Possible bug, or just confusing documentation of class Icon in the Ruby standard library.
150731 [tirkal@gm il] docs lead one to believe that Iconv.conv is equivalent. As I'm going
150733 [tirkal@gm il] ...

question about symbol naming convention
150743 [erazor@mi oc] I'm glad to get so well founded help here, so here's another beginner
150744 [mrcode@ne ro] irb(main):001:0> class MyClass
150748 [erazor@mi oc] It's hard to understand, why i can't access the private singleton from
150763 [halostatue@g] They're not at all related. They look like they might be, but
150783 [acharlieblue] 1. The method #testing is an instance method. You can't call class
150965 [daniel@br ck] No, it's "cannot be called with an explicit receiver unless

FOSCON Photos
150758 [ptkwt@ar cn ] Last night in Portland we had a very good turnout for FOSCON (the Free
+ 150778 [jimfreeze@gm] Please describe more about this drb/irb.
| 150788 [ptkwt@ar cn ] He had people fire up irb and then displayed some code they would need to
| + 150792 [jimfreeze@gm] Cool.
| + 150795 [fxn@ha hr f.] Cool! That's really cool.
+ 150835 [ezra@ya im -] Yes _why's presentation was _very_ original :-) I loved it!   Modulaise!

Fwd: [Rails] Fwd: RMagick problem
150769 [joevandyk@gm] If you look again, you'll notice I have two resize methods.  One

[OT] Rails Wiki Spam
150770 [markus@re li] I know this is a little off-topic, but the Rails Wiki

Ruby on CodeZoo
150771 [ptkwt@ar cn ] Haven't seen this mentioned here, but O'Reilly's CodeZoo has added a Ruby
150839 [curt@hi bs c] It appears that they are spidering sites like RubyForge for info about
+ 150886 [tom@in oe he] Yeah, I guess so... maybe they're using the RSS feeds, not sure.
+ 150911 [curt@hi bs c] I'm forwarding this on behalf of Marc Hedlund from O'Reilly who was

Database choices?
150773 [probertm@ac ] Part of the project I am embarking upon will require an SQL database.
+ 150864 [kennethkunz@] Mark,
| 150867 [kennethkunz@] Mark,
+ 150873 [lyndon.samso] ...
+ 150885 [tom@in oe he] I've been using PostgreSQL 8.0, with the postgres-pr pure ruby driver,

Resizing bitmaps
150784 [eustaquioran] What is an easy way to resize, for example, a JPEG image using Ruby?
150790 [halostatue@g] ImageMagick/RMagick. You're not going to really get it any other way.

[ANN] Toronto Ruby User Group meeting 7 Aug 2005
150809 [mike@st k. o] TRUG are meeting at the Linux Caffe in Toronto at 1pm on Sunday 7th August

Need help with with Binding.of_caller
150811 [se@di it le ] (hoping that Florian is reading)
150837 [florgro@gm i] If in doubt CC, but I try to keep up with ruby-talk. (Not true for the
150851 [se@di it le ] Thanks for the fast response Florian.

Question about WIN32OLE_EVENT.
150845 [mkelly@el ve] ...
+ 150849 [dave@bu t. d] browserEvents.on_event {}
| 150878 [mkelly@el ve] @documentEventHandlers.each_value { |value| value.on_event( 'onclick'
+ 150983 [masaki.suket] Unfortunately, there is no way to detach from events.

Using Rails, Anyway to build ActiveRecord to Point at Hash?
150875 [peter@pe er ] I would like to build my own "business object" and have Rails point at

Please help make CodeZoo truly useful
150881 [curt@hi bs c] I just posted this on my blog (http://blog.curthibbs.us/), but I thought
+ 150890 [tom@in oe he] Yup, maybe RubyForge could start exporting that DOAP format that they
+ 150918 [james_b@ne r] Please excuse me if I am being denser than usual; I've got server issues
  + 150919 [alang@cr no ] While I basically agree with this, I think overall the fact that Ruby
  | 150920 [james_b@ne r] I also just now read Curt's forwarding of the explanation of CodeZoo
  | 150924 [curt@hi bs c] In fact, there isn't anyway to contribute something directly to CodeZoo.
  | 150938 [james_b@ne r] Which greatly simplifies things.
  + 150922 [threeve.org@] I sort of feel the same way.  I'm still relatively new to Ruby, and it
  | + 150929 [shalev@si pl] ...
  | | 150934 [tom@in oe he] Hm, is that on RubyForge?  If so, you can let me know and I'll delete
  | | 150989 [chneukirchen] Maybe you could make a "Ruby cemetery" where old projects can go to
  | | 151289 [adrianh@qu e] That would be nice.
  | + 150940 [james_b@ne r] But it appears that CodeZoo will help sort that out.  For example, if
  |   150968 [botp@de mo t] #Subject: Please help make CodeZoo truly useful
  |   150970 [curt@hi bs c] O'Reilly and RubyForge are discussing the possibility of setting up
  + 150923 [Ara.T.Howard] i feel your pain.

Newbie - Help with using puts to binary file
150900 [NoSpam@no pa] I am writing a templating system to replace tags and values in template
150902 [halostatue@g] #puts will add an LF if it isn't present at the end of the output.
+ 150903 [halostatue@g] By the way, it won't affect Unix or OS X, but please remember to open
+ 150906 [NoSpam@no pa] Thanks for your super quick response Austin, I'll give that a try!

A useful application of DRb
150909 [khaines@en g] Just thought I'd share this useful, simple application of DRb.

[QUIZ] Stock Portfolios (#41)
150914 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
150928 [peter@no no ] Regards,

YAML serialization of cyclic object classes
150930 [GGarramuno@a] I have a program that is trying to use YAML to save out its data,

Marshalling objects
150950 [nathan.smith] I'm trying to marshal an object and I get an error "<Classname>
150957 [james@gr yp ] Which particular <Classname> are we talking about here?  Can you show

interactively processing a line at a time
150963 [fkchang2000@] For the following code segement running on win32 ruby (1 click installer)
150967 [Ara.T.Howard] try this - it should/might work on windoze - i assume it inherits open file
+ 152005 [fkchang2000@] That did the trick.  Thanks.
| 152008 [Ara.T.Howard] great.  i wouldn't launch rockets with it ;-)
+ 152006 [fkchang2000@] I tried tweaking your code to use IO.win32_popen3 coz I wanted to
  152010 [Ara.T.Howard] require 'tempfile'

Ruby On Rails / ID question
150966 [peter@pe er ] I've got an outer join using postgres and am using the insert and update

Webrick newbie question
150969 [shanko_date@] I am playing with Webrick that comes with the latest one-click installer on Windows XP (Home).
151005 [mccarthyjame] Oh god I hate cgi, first make sure the directroy's you mention have

operator overloading (was: new block notation)
150972 [vikkous@gm i] On 8/5/05, Nikolai Weibull
+ 150973 [florgro@gm i] Which shows an important fact: Pragmatism wins. Same for Ruby allowing
+ 150993 [mailing-list] I've never thought it bad.  Operators are there to be used on whatever

Remote require
150974 [james_b@ne r] Assume there is actual code underneath (probably involving open-uri),
+ 150975 [daniel.amela] I hear ya brotha!
+ 150976 [transfire@gm] I believe somthing like that was done years ago, but haven't heard
| 150997 [james_b@ne r] Thanks!
| 151016 [khaines@en g] Caching isn't a hard problem to solve.  I have a Webcache class in my current
+ 150977 [ptkwt@ar cn ] Did something like this long ago in TaskMaster (Warning: I haven't

FCGI::Stream rewind
150984 [george.mosch] Is there a way to rewind a fastcgi stream like you can do using normal

AllInOneRuby 0.2.6
150986 [pan@er kv en] I just released AllInOneRuby 0.2.6.

[ANN] RubyScript2Exe 0.4.0
150987 [pan@er kv en] I just released RubyScript2Exe 0.4.0.
151036 [vjoel@pa h. ] Erik,

[OT] Re: Yet Another useless Ruby 2 Idea
150990 [dooby@d1 .k ] [Re: tabbing]
+ 150992 [sylvain.joye] And yet another troll on tabs vs. spaces ...
+ 151051 [mailing-list] Huh?  That's weird behavior.  Why not have backspace delete exactly the

[ANN] OSCON videos, medias
151017 [ruby-talk@wh] My friends, I've got my act together now and a BitTorrent tracker up
+ 151043 [ptkwt@ar cn ] Unfortuneately, while we at FOSCON had great podcasting dreams alas we did
| + 151183 [jim@we ri hh] Dang!  Me too!  I've been humming that one all week.
| | 151238 [ruby-talk@wh] Dedi Hubbard sent me a recording of Wednesday night, which is now up on
| | 151241 [ezra@ya im -] Thanks _why-
| | 151271 [jeff.darklig] Is there any copy of these sitting somewhere that doesn't require bit torrent?
| | 151288 [ezra@ya im -] I've downloaded the torrents of the MP3 files. I'm uploading them to
| | 151299 [ptkwt@ar cn ] Thanks!
| | 151312 [ezra@ya im -] Yeah I know. Thats the way _why put them up in the torrent as well.
| + 151412 [robert.mcgov] Thats a shame, I had hoped that those over here in Europe might get to
+ 151314 [lists@so rc ] Awesome...'cept...I can't see it.  I wish you Rubyist MacHeads would
  151333 [ptkwt@ar cn ] Actually, _why initially did them on Linux and (I'm pretty sure) was using
  + 151337 [jordan.elver] For the record, I'm on Linux and originally had problems until I
  | 151349 [dbatml@gm .d] Are you sure that you can play "The Least Surprised - The Red Scared.mov"
  | + 151361 [jordan.elver] I'll double check. I'm not at my Linux box right now.
  | | 151379 [jordan.elver] Sorry, stupidness alert :)
  | + 151401 [ruby-talk@wh] An AVI of this cartoon is up now.  This one's the very same that I
  + 151352 [Bil.Kleb@na ] I just became a MacHead last week (largely Kilmer's fault), and

polymorphism and/or named parameters: the ruby way?
151019 [d454d@we .d ] i am kind of a newbi, please forgive me if i am asking stale questions.
+ 151020 [james@gr yp ] We can ask for a variable number of arguments, then check for the
| 151028 [d454d@we .d ] Yes, thanks a lot. Though i think i like the approach using a hash
+ 151022 [eric_mahurin] What you are talking about is really method overloading not
  151029 [d454d@we .d ] Yes, I agree. :)
  151063 [eric_mahurin] I was thinking something like this (I don't think the above
  + 151064 [reyn.vlietst] Comming from a C++ background I was also facing the same issue with
  + 151082 [d454d@we .d ] You are right. My code was plain wrong. Without using self.new... the

STRING MANIPULATION: Marking syllables
151023 [basi_lio@ho ] 1. A c(c)v sequence is a syllable if followed by a cv sequence
+ 151039 [halostatue@g] There are a couple of syntax (human language syntax) libraries
| + 151046 [w_a_x_man@ya] After making the following change
| + 151059 [basi_lio@ho ] Yes, I did mean to inquire for references to human language parsing
+ 151042 [w_a_x_man@ya] CC = {}
  + 151045 [halostatue@g] Note that your CC['c'] will catch 0-9 and punctuation as well.
  + 151058 [basi_lio@ho ] Thank you very much for your help. This is great!

REGEXP: Creating character classes
151024 [basi_lio@ho ] I'm unable to find a way to create character classes. How might one
151040 [halostatue@g] See my other post, but you can't create custom character classes in

twincities.rb interest?
151025 [airboss@no e] If you live in or near Minneapolis/St. Paul, MN, USA, and are

windows sound
151026 [erne@po er a] I'm stuggling a little bit with playing a large .wav file.  It's a
151211 [chris.pine.f] I'm not sure what you're ultimately trying to do, but when I want to

ANN: Ruby support is (finally) in ActiveState Komodo on OS X
151038 [eric.promisl] Last week at OSCON ActiveState announced an alpha for Komodo 3.x, our
151052 [ptkwt@ar cn ] This is good news.  The Ruby community has been speculating about

wine and win32ole
151065 [Ara.T.Howard] any one out there thought of using wine to compile win32ole on *nix?  anyone
151244 [daniel.amela] I've never used wine for cross-compilation. I've always been happy
151249 [Ara.T.Howard] correct me if i'm wrong - but isn't this the solution for the opposite problem
151256 [daniel.amela] You said you were interested in 'using wine to compile win32ole on
151261 [Ara.T.Howard] i compiled from the latest wine source - and reason to prefer your appoach?
151290 [daniel.amela] I'm lazy :p
+ 151304 [Ara.T.Howard] amen brother!
+ 151503 [Ara.T.Howard] i ended up going this route for testing.  in installed cxoffice, the ruby one

Regexp Help for  \W less [.-_]
151067 [transfire@gm] Regexp help. How do I write "all non-alphanumeric characets except .
+ 151068 [dblack@wo bl] /[^\w.-]/
| 151074 [transfire@gm] Even better.
+ 151070 [Ara.T.Howard] re = %r/[^A-Za-z0-9._-]/
  + 151071 [transfire@gm] Thanks Ara. Worked.
  + 151072 [dblack@wo bl] You get all that A-Za-z0-9_ stuff for the price of admission with \w

Unpack binary files.
151075 [dave.m@em il] charset="us-ascii"
151076 [dooby@d1 .k ] tar = "i6\253m\251e"    # in:  binary content
151083 [dave.m@em il] charset="iso-8859-1"
151090 [dooby@d1 .k ] No.
+ 151093 [dave.m@em il] charset="iso-8859-1"
+ 151095 [pan@er kv en] I've once written this String#reformat. It might help you. I
  151102 [dave.m@em il] charset="iso-8859-1"
  151105 [pan@er kv en] Use the prefix: paragraphs.join("\n#{prefix}\n")

cartesian product
151080 [wkehowski@co] How would I create a function that will take list (array) of integers and
+ 151084 [intinig@gm i] a = [1, 2, 3]
| 151085 [wkehowski@co] Giovanni,
| 151086 [intinig@gm i] Remember that in Ruby you seldom have standalone functions. You should
| 151087 [wkehowski@co] Remember that in Ruby you seldom have standalone functions. You should
| + 151088 [dooby@d1 .k ] class Array
| + 151089 [intinig@gm i] if you want to create a new method for array just do
| + 151103 [bob.news@gm ] def cartprod(a,b)
|   151117 [martindemell] Or even better,
|   + 151121 [rhkramer@gm ] I'm sure you know what you're talking about, but I wonder how many others
|   | 151122 [hal9000@hy e] Haha... if it's this line you have trouble with
|   | 151126 [rhkramer@gm ] Hal,
|   + 151149 [wkehowski@co] Here's what I have so far, combining the previous suggestions of Robert
|   | + 151151 [dave@bu t. d] class Array
|   | | 151154 [wkehowski@co] If one defines
|   | | 151171 [dave@bu t. d] Walter,
|   | | 151331 [wkehowski@co] a=[1,2,3]
|   | | + 151338 [bob.news@gm ] You can do it a bit shorter.  Note that you don't need the "a=[]" and the
|   | | | + 151340 [wkehowski@co] Thanks. I have made those changes. Here's a version that finally behaves the
|   | | | + 151344 [wkehowski@co] class Array
|   | | | + 151383 [wkehowski@co] The two versions both work. Which is better?
|   | | + 151490 [snowzone5@ho] this is another one that should go in the 'numerical recipies in ruby'
|   | + 151187 [martindemell] My mistake, sorry. Should be (c ||= []) << [ae, be]
|   + 151150 [wkehowski@co] The following is not in the spirit of previous comments
|     151152 [dave@bu t. d] walter a kehowski...
+ 151330 [lists@be tr ] As long as you can be sure your arrays have the same length

Adding yet another Array.new form
151096 [mailing-list] Array.new{|array| block }
+ 151097 [gavri.fernan] On 8/7/05, Nikolai Weibull
+ 151099 [martindemell] I'd rather add another 'new' wrapper, that calls new, calls initialze,
+ 151110 [bob.news@gm ] But *what* are the initializations you cannot do nicely ATM?  Note, that
| 151113 [mailing-list] Huh?  Array#map and Array#inject operate on an array to produce another
| 151195 [bob.news@gm ] They are methods in Enumerable.  map returns an array and inject can be
| 151199 [mailing-list] Yes, yes, but as you say, you still need the enumerable collection.
+ 151114 [chneukirchen] I'd rather vote in favor of including #returning to the Ruby core.
  + 151119 [dblack@wo bl] It feels a bit side-effect-dependent-ish, as written.  It might be
  | + 151133 [khaines@en g] module Kernel
  | | + 151142 [mailing-list] That'd return the last value of the block, not the value passed to
  | | | 151143 [khaines@en g] Yeah.  I was typing from memory and I left off that important little last bit.
  | | + 151163 [dblack@wo bl] That only works by coincidence: tmp << 3 happens to return tmp :-)  If
  | + 151134 [mailing-list] True.  It's simple enough to write it that way as well.  In fact,
  |   151135 [vjoel@pa h. ] Why call it #returning and limit its usefulness? The method can be used
  |   151166 [dblack@wo bl] It's still "returning []" in the sense that it's going to return its
  |   151200 [mailing-list] True.
  |   151223 [Daniel.Berge] Conflicts with the current 4th form, unless you want a "no argument but
  |   151246 [mailing-list] Yes, that was the idea.
  + 151120 [mailing-list] [Array.new(size = nil){ block } suggestion]

(OT) Vintage Rubyists (was Re: Ruby momentum?
151107 [cyclists@nc ] I went to college in 1980. FORTRAN was my first pgmming language,

Any interest in a Ruby source code repository module modeled after DBI?
151118 [ceo@no pa .o] I posted this in the Perl c.l.p.misc and c.l.p.modules newsgroups, and
+ 151125 [mailinglists] I like the idea, even when i think it will be almost impossible to
| + 151155 [ceo@no pa .o] Hmmm, as someone else pointed out, it looks like in the Ruby world,
| + 151266 [Digikata@gm ] If the OP wants a look at a mature interface for unifying VCS
+ 151131 [vjoel@pa h. ] but I haven't used it.
| 151156 [ceo@no pa .o] So it seems.  I know of nothing like this in the Perl world.  But it
| 151164 [mental@gm il] Sorry for the short reply, I just wanted to let you know that svk uses
+ 151167 [julian@co et] I'm quite interested in that... it would make building a CMS on Rails
  151208 [jason@jv eg ] This sounds like WebDAV to me.
threads.html
top