251140-269951

250959-252004 subjects 251337-256435

ri
251140 [seebs@se bs ] So, I loaded Ruby on a NetBSD box, using whatever the defaults are
251142 [botp@de mo t] # I have 'ri', but it doesn't know about any of the standard library
251148 [dangerwillro] Does ri know the path to your docs ?
251154 [seebs@se bs ] It seems to.
251157 [dangerwillro] Sometimes packages are unreliable. It's a pain, but manual installs

from REALbasic > Terminal > RUBY ?!
251143 [carcass.dev@] This might seem weird, I just started Ruby, so don't know much about it,
+ 251145 [bino@in oa s] I did this ... well not a topnotch one.
| 251149 [carcass.dev@] Certainly don't have better knowledge, I have no idea what you are
| 251156 [bino@in oa s] Honestly .. I also a dumb newbie in ruby world .. thats what I mean..
| 251161 [carcass.dev@] Actually I just know the basics of REALbasic and Ruby, but I started to
+ 251152 [botp@de mo t] # HOW CAN I PASS ARGUMENTS AS A STRING FROM A UNIX TERMINAL INTO A RUBY
| 251155 [carcass.dev@] Thanks!! it may be just what I needed.
| 251158 [dangerwillro] You could also simply create a temp file or some kind of data store
+ 251165 [B.Candler@po] For small arguments you can stick them on the command line, and they will be
  251203 [carcass.dev@] Finally!!!

DRb connection error with more than 250+ DRb services
251175 [9ruvie@gm il] class TestServer
+ 251180 [B.Candler@po] What does ulimit -a show? Particularly look at max open files
| 251183 [9ruvie@gm il] dev@seoul$ ulimit -a
| + 251184 [9ruvie@gm il] looks like max open files is 1024
| + 251185 [B.Candler@po] Hmm. Should be enough, unless you're opening other file-like objects in your
|   251186 [9ruvie@gm il] Thanks Brian.
|   251189 [B.Candler@po] You have to be root to increase it.
|   251190 [B.Candler@po] brian           hard    nofile          2048
|   251191 [9ruvie@gm il] Thanks, Brian.
+ 251438 [swistak@ma l] question probably everyone want's to ask.why the hell you need 1000
| 251440 [hramrach@ce ] It's been said that it's some 250 connections. For one, the
| + 251458 [dangerwillro] But aren't most socket-type connections really two file descriptors
| | 251484 [B.Candler@po] No - a socket is bi-directional.
| | 251488 [dangerwillro] Ok. I had that mixed up then with some other networking thing...
| + 251496 [tom.hurst@cl] How would you propose to avoid letting users exhaust system resources
| | 251527 [hramrach@ce ] Sure it is avoidable. In a system where memory is allocated to users
| + 251537 [garbagecat10] ...
|   251547 [hramrach@ce ] Of course, the FDs are only to organize your IO. You can use TCP ans
|   + 251567 [B.Candler@po] If you want to run your own TCP stack you'll need to open a raw socket, and
|   | 251782 [hramrach@ce ] Of course, using UDP is not the same as implementing your own TCP
|   + 251570 [garbagecat10] ...
|     251784 [hramrach@ce ] Note that accessing the partition and bypassing the filesystem layer
+ 251786 [shortcutter@] Do you actually have 1000 client /processes/ or just 1000 client /objects/?

How to stop the ML sending my mails back to me?
251179 [felipe.contr] I don't want to receive the messages I send, it screws my Gmail display.
+ 251182 [ecomba@ma .c] You could mark yourself as spam ;)
+ 251220 [agorilla@gm ] It's actually somewhat of a 'feature' of gmail.  Before they added
  + 251223 [gregory.t.br] You know, it annoyed me at first until I recognized it as a ping-back
  + 251259 [gdonald@gm i] None of the other 7 lists I'm subscribed to using Gmail exhibit this behavior.
    + 251264 [alexander@fo] dear sender,
    + 251271 [agorilla@gm ] Not sure how to answer that one, but it seems it may have to do with
      251293 [DPhillips@cy] Most ML software has an option to not send a message that you sent to
      252066 [felipe.contr] Yeah, that's what I thought.

Hoe and gems: How to handle deps?
251188 [damphyr@fr e] I got into using Hoe, my projects were starting to get ou t of control
251249 [tim.pease@gm] When a user wants to run tests on your package via "gem check -t" then
251462 [chneukirchen] hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }

[ANN] Ramaze 0.1.0
251193 [m.fellinger@] This is a one-time post to announce the creation of the Ramaze project, an open
251266 [roland.mai@g] ...
+ 251272 [m.fellinger@] Yes, that is true for the examples like the Blog - which we just
+ 251277 [kashia.buch@] yeap, that it is indeed.  I have been following it since its

Problem with Mutex: Threads don't wakeup
251194 [laurent.fran] I am writting an application that runs about 100-200 threads that share
+ 251260 [mental@ry ia] It's actually best to require both thread and fastthread, catching the LoadError in the second case if fastthread is not installed (not all Ruby versions support or need fastthread).
+ 251515 [shortcutter@] Yes, pleast post sme code - ideally a small sample that reproduces the

ANN: RubyGems 0.9.3 Released
251195 [jim@we ri hh] = Announce: RubyGems Release 0.9.3
+ 251261 [akulbe@gm il] Has the "clean" option, which would remove all the outdated versions,
+ 251262 [ezmobius@gm ] I'm not sure if it was intentional or not. But this release of
| 251350 [luc@ho k- on] I'm pretty sure it was not intentional. Having a look at the diff
| 251554 [jim@we ri hh] Yep.  It was unintentional.  We will get a fix in soon and make a new
| 251625 [aquasync@gm ] I've updated to the new version, but I still get buffer errors at times.
+ 251360 [deanwampler@] ...
| 269887 [simonfms@ya ] Successfully built RubyGem
| 269951 [drbrain@se m] I don't see any errors here.
+ 251789 [yakumo9275@g] now I get this doing an update;

copy methods from one module to another, with a twist
251197 [dchelimsky@g] to another (actually subclasses of Module because I don't want to
+ 251394 [rrafje@gm il] Before including module mod2 in class Other, extend module mod2 with
+ 251396 [rrafje@gm il] Erm, actually forget my previous reply, it's all much simpler: simply

[QUIZ] Huffman Encoder (#123)
251200 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 251227 [martin@sn wp] I'd like to comment on and regularize a few of the "extra credit"
| 251245 [matthew.moss] Another alternative is to do an adaptive Huffman encoding, which does
+ 251353 [martin@sn wp] I'll note that this phrase includes 16 distinct characters (" ", "!",
| 251455 [aquasync@gm ] Very simplistic solution. recursively partitions sorted frequencies to
+ 251478 [caifara.subs] [QUIZ] Huffman Encoder (#123)
+ 251548 [martin@sn wp] And here's mine.  Instead of adding something to each character
+ 251579 [rrafje@gm il] ...
+ 251747 [donald.ball@] it's overly long, but I wanted some practice messing around with bit
  + 251749 [rrafje@gm il] Perhaps because the file you want to encode already contains your
  | 251750 [donald.ball@] That was my first thought, but I threw in a check for the existence of
  | 251751 [rrafje@gm il] $ ruby -w paste-61871.rb -b -f paste-61871.rb | ruby -w paste-61871.rb
  + 251788 [martin@sn wp] As someone else has already been successful at this task with your

Is there a possibility to include methods of a class?
251201 [burnt99@ho m] first of all: this list and you rock! I know that there is no multiple
+ 251204 [wijetldz@gm ] Yes, You can use evil ruby http://rubyforge.org/projects/evil
| + 251207 [djbearhand@g] I just thought, if there is a possibility to do dynamic inheritance like
| + 251239 [djbearhand@g] I think that would be the ruby way, following the principle of least
+ 251224 [B.Candler@po] I would use delegation for one class or the other.
  + 251225 [ecomba@ma .c] That would actually be a so called Bridge Design Pattern... I like it
  + 251230 [djbearhand@g] This is the workaround I just had so far, and now I want to get rid of
    251243 [B.Candler@po] You seem to be doing something very strange in the above code. You are
    251248 [B.Candler@po] P.S. Something which may be relevant as an example is ActiveResource.

Dyla'07: 3rd Workshop on Dynamic Languages and Applications
251205 [alexandre.be] Dear colleague,

shebang - what's the point?
251211 [promos@bu ch] I've written a few hundred scripts now, and not once have I ever coded a
+ 251213 [ecomba@ma .c] Basically so that instead of
+ 251214 [gdonald@gm i] The shebang line makes scripts look and act similarly to regular executables.
+ 251216 [agorilla@gm ] Unix/Linux and the Apache webserver (among others) use it to determine
+ 251219 [sepp2k@go gl] The point of the shebang line is not to have to tell the computer to open
| 251232 [promos@bu ch] OK, that all makes perfect sense.   I figured there was a point, but in
+ 251234 [dinkel@pi pr] Say you have a script that does some kind of sorting. You rename your
| 251237 [Jonathan.Hop] Probably best not to call a script by the same name as a unix command.
| 251247 [dinkel@pi pr] Very true, my bad! So rename it to 'steroidsort' and (the other thing I
+ 251263 [martin@sn wp] There's one more advantage to using a #! line that applies when you're
| 251280 [promos@bu ch] I had absolutely no idea you could do that!   How handy!!
+ 251282 [bkudria@em .] I've always heard a slightly different, and in my opinion, logical
| 251283 [promos@bu ch] An excellent reason to have them!
+ 251291 [ben@be at in] Todd,

Design own wallet!
251217 [scandicprinc] Found a cool page: www.wildwallets.com

Any JRUBY programmers out there? Problems specifying RUBYLIB with jruby.
251222 [ronald.fisch] I would like to run jruby on either pure Windows, or Cygwin. This works
+ 251238 [martin@sn wp] Which version of jruby are you using?  This is something that is
+ 251516 [ronald.fisch] Thank you very much.

LOOKING FOR RUBY PROGRAMMER
251235 [shawnstuben@] My Business Partner and I are looking for a programmer who is proficient
+ 251244 [xeno@es im .] You probably already have lots of takers.  I am not the most experienced
+ 251319 [pbooth@no oi] SHawn,

software testing articles
251252 [micke.hale@g] Have you ever been interested in software testing? Giving you an in

Creating and adding new methods in runtime
251254 [konryd@gm il] accomplish this in ruby?
+ 251251 [lopx@ga et .] module Operators
+ 251255 [kbloom@gm il] Just overrode MyClass#coerce, and the numeric operators on other classes

How to create a new scripted language with Ruby ?
251257 [user@do ai .] language.
251253 [shortcutter@] Ruby is not a meta language - Ruby is a normal programming language as

Code Redistribution
251268 [transfire@gm] On my further considerations of code redistribution (from my

Reading materials
251276 [sadamo@co co] I've recently been turned on to Ruby and Rails, and after some
+ 251278 [seebs@se bs ] No.  The "pickaxe" is the book with a pickaxe on the cover, titled
+ 251279 [bulliver@ba ] The 'pickaxe book' is "Programming Ruby: The Pragmatic Programmers' Guide" by
+ 251281 [agorilla@gm ] Ruby for Rails
+ 251307 [dinkel@pi pr] As you probably have read already, the PickAxe Book is "Programming
  251318 [rick.denatal] And make sure that you get the second edition of each.
  251326 [dangerwillro] I think you chose a good book for learning Ruby. And THE book for

example of Net:HTTP::Put ?
251306 [christopher.] I've been trying to use Net::HTTP:Put.  My server isn't returning any
251327 [eden.li@gm i] Here's a quick and dirty one.  You can find more about Net::HTTP via
252437 [christopher.] Sorry for the late reply...
252439 [c.groner@gm ] Hope that helps,

Installing eRuby/Erubis to use with Apache on Mac OS X
251310 [zotobi@gm il] So I'm pretty new to Ruby and I really like the idea of it and the

Need help
251311 [Aaron2Ti@gm ] I got this error in Ubuntu when i wanted to use parseexcel .
+ 251317 [dzwell@gm il] Aaron,
| 251489 [renard@nc rr] did you install parseexcel manually using the tarball or via
+ 251372 [mando81@pr d] Aaron havent tried replicating this issue but are you sure you have

ANN: Swiftiply 0.5.0
251320 [khaines@en g] I'd like to announce the first public release of Swiftcore Swiftiply, a
251373 [rick.denatal] This looks promising, but I don't seem to see a way to use
251384 [khaines@en g] By multiple instances per app, I assume that you mean multiple backend
251392 [rick.denatal] Okay, I missed that, so swiftipy_mongrel_rails is really a substitute
251408 [khaines@en g] Maybe?  It was contributed by Ezra Z. and really just represents a

Absolute Beginner - Where to run program?
251321 [MichaelCucul] i am an absolute beginner, so my question might seem rather silly.  i
+ 251323 [list.push@gm] You can type 'ruby -v' in at the command prompt.
+ 251324 [spamtrap@do ] Start Menu -> /Programs/Accessories/Command Prompt
+ 251325 [list.push@gm] I'm not familiar with that tutorial, but have you already created your
+ 251330 [zotobi@gm il] What you need is the command prompt. If you can't find it with what
+ 251331 [lloyd@2l ve ] I suggest that you use eclipse.
+ 251333 [cliffrowley@] Click Start -> Run, type 'cmd' (without quotes) and hit enter :-)
+ 251364 [dinkel@pi pr] First of all, let me say that the following terms you might find in
+ 251459 [agorilla@gm ] I completely agree with John.  Over time, you'll probably end up with

compare between languages
251322 [paytam@gm il] what is the advantages and disadvantages of ruby vs. other programming
+ 251334 [cliffrowley@] What are the advantages and disadvantages of apples vs. other fruits such as
+ 251336 [sxain@ho ma ] see
+ 251374 [rick.denatal] Programming languages are like shoes.
+ 251387 [akbarhome@gm] ...
+ 251442 [xymip@co ca ] Using terminal with ruby I encountered a problem
  + 251444 [sepp2k@go gl] tcsh doesn't have a puts command and never had. Ruby has a puts command, but
  | 251503 [xymip@co ca ] On May 13, 9:15 am, Sebastian Hungerecker <sep...@googlemail.com>
  | 251504 [martindemell] Edit the file with your favourite text editor, save it with a .rb
  | 251509 [sepp2k@go gl] Well, if it's a program that you are going to run a lot, I'd suggest
  + 251447 [philip-f@ru ] philip@jupiter:~$ irb

Why was the "Symbol is a String"-idea dropped?
251335 [sven613go@su] I was exited when I heard that
+ 251363 [B.Candler@po] The two objects have very different behaviours, so why should one be a
| + 251382 [transfire@gm] 1)  No need to do x.to_s.some_string_method.to_sym
| | 251390 [rick.denatal] Well, let's see. Why do we do symbol.to_s ?
| | + 251426 [robert.dober] I think that would be the most useful.
| | | 251427 [fxn@ha hr f.] Just wanted to point out that the original question is why Ruby core
| | | + 251428 [robert.dober] That is indeed a good idea
| | | | 251431 [fxn@ha hr f.] I think that if a couple of simple arguments make clear both classes
| | | | 251485 [robert.dober] I have the highest respect for the community that works on Ruby2.0.
| | | + 251460 [matz@ru y- a] We once changed Symbol as subclass of String to see how it goes, and
| | |   251574 [transfire@gm] That's unfortunate. IMHO it's generally bad practice to functionally
| | |   + 251626 [sven715rt@su] Thank you all for your replies.
| | |   | + 251644 [B.Candler@po] The programs for which it makes sense to convert strings (received from some
| | |   | | 251651 [sven715rt@su] Yes, I agree.
| | |   | | 251681 [B.Candler@po] But then what you want are not symbols, but true immutable strings. By that
| | |   | | 251686 [robert.dober] But of course we have immutable strings already :)))
| | |   | | + 251690 [shortcutter@] What advantages does this have over using "freeze" directly?
| | |   | | | 251693 [robert.dober] Dunno :)
| | |   | | | 251706 [shortcutter@] Corrent.  And since #frozen? is defined in Kernel you can skip the first
| | |   | | | + 251713 [robert.dober] No, you are an optimist Robert ;)
| | |   | | | + 251714 [robert.dober] Your conclusions are jumped ;)
| | |   | | + 251699 [B.Candler@po] Yes, but it's not a singleton.
| | |   | |   + 251702 [B.Candler@po] P.S. I'm aware of Symbol#to_i, but to_i and object_id appear to be
| | |   | |   | 251728 [rick.denatal] Here's part of the ruby1.8.5 code which computes an objects object_id
| | |   | |   + 251710 [gwtmp01@ma .] You've stated or implied a couple of times in this discussion that
| | |   | |     251732 [B.Candler@po] No, that's not exactly what I meant, but sorry for not being more precise.
| | |   | |     251780 [sven715rt@su] Although not a lot from the Ruby-Core specialists,
| | |   | |     251783 [transfire@gm] While I think Symbol probably could use at least few of String's
| | |   | |     251785 [logancapaldo] Well there is precendent, 2 == 2.0 and so on
| | |   | |     + 251787 [robert.dober] Honestly I prefer to write
| | |   | |     + 251794 [dblack@wo bl] With symbols being as integer-like as they are string-like, though,
| | |   | |       251826 [logancapaldo] I don't think symbols are integer like. (I don't know that they are
| | |   | |       251978 [gwtmp01@ma .] This is the 'equivalence is defined by identity' idea again.  I think
| | |   | |       251980 [dblack@wo bl] Yes, it's the immutable/immediate thing that symbols have in common
| | |   | |       252076 [pbrannan@at ] Frozen strings are immutable.
| | |   | |       252154 [rick.denatal] But not immediate.
| | |   | |       252161 [robert.dober] What about
| | |   | |       252186 [rick.denatal] That's the immutable part, but
| | |   | |       + 252199 [robert.dober] Ah I see, I got confused, I did not understand the meaning of
| | |   | |       + 252207 [B.Candler@po] Perhaps it varies based on the Ruby version you're running; it's not like
| | |   | |         252246 [rick.denatal] You can't really see the internal bit representations from ruby, since
| | |   | |         252271 [B.Candler@po] AFAIK, the object_id is the in-memory pointer to the structure of the object
| | |   | |         252330 [rick.denatal] Not starting with 1.8.5
| | |   | + 251649 [shortcutter@] Which is not a bad thing in itself.
| | |   | | 251660 [sven715rt@su] I see.
| | |   | | 251662 [shortcutter@] Yeah, maybe.  So where are you using symbols where one normally would
| | |   | | 251669 [sven715rt@su] Like option-names, used as hash keys but also as names and labels for
| | |   | + 251653 [robert.dober] I really have not taken offense. However if you are interested in that
| | |   |   251666 [sven715rt@su] Ooops!
| | |   |   251671 [robert.dober] Sure that was exactly the thing I wanted to discuss and suddenly
| | |   |   251692 [rick.denatal] Not responding to any particular posting.
| | |   |   251694 [robert.dober] <lots of interesting stuff snipped>
| | |   |   251720 [rick.denatal] I don't know. Probably not motivated, but on the other hand it no
| | |   + 251652 [robert.dober] I really like the idea of using symbols as parameter keys exclusively,
| | + 251470 [rett@cl ss c] Rick,
| + 251383 [rick.denatal] More a dilemma with languages which force implementation inheritance
+ 251437 [swistak@ma l] basic reason - as stated in ruby hacking guide is that Symbol internally is
threads.html
top