149286-150708

149049-170709 subjects 149447-151292

Local Instance Methods
149286 [transfire@gm] I know there are plans to give Ruby private instance variables, but I'm
+ 149287 [matz@ru y- a] The idea has been considered for several times, but I haven't come up
| + 149335 [transfire@gm] Yes, "right" is the hard part. I suppose we could break down the
| | + 149336 [dblack@wo bl] Please... no creeping punctuation :-)  I think this concept of local
| | | + 149338 [transfire@gm] I tend to agree.
| | | | 149344 [dblack@wo bl] def f
| | | | 149347 [transfire@gm] Agreed.
| | | + 149339 [gwtmp01@ma .] I tend to view this as way of minimizing namespace pollution and
| | |   + 149341 [eric_mahurin] Another way you could accomplish this would be to have a
| | |   | 149349 [transfire@gm] I like this, but I imagine it would return an anonymous module. That'll
| | |   + 149399 [B.Candler@po] One way is to choose method names which are highly unlikely to clash.
| | + 149385 [daniel@br ck] I'm not incredibly turned on by that syntax; unfortunately,
| |   149396 [transfire@gm] That' how I felt at first too, but it grows on you. The other option we
| + 149395 [transfire@gm] It occurs to me that there is a way to create psuedo-local methods if
|   149439 [daniel.amela] +1 Nice reuse of existing symbol that has the same flavor.
+ 149288 [ news@ja .f ] transfire@gmail.com says...
| 149295 [dblack@wo bl] class C
+ 149290 [twifkak@co c] That's interesting... what's a use case for that?
| 149292 [surrender_it] I guess the point would be to avoid breaking something when inheriting,
| 149299 [twifkak@co c] Ah. Right. Hehe, I program Java* for a living, but couldn't recognize a
+ 149313 [lthiryidontw] Ruby will have private instance variables? What a good idea! But how
  + 149315 [gfb@to es ft] Private in Ruby means that methods declared private may be called
  | 149318 [lthiryidontw] Ok, I think I understand. It's a kind of "cheap" private mechanism.
  + 149317 [clr6.10.rand] class F
  + 149334 [dblack@wo bl] ...

Gem hangs => TCPSocket.write hangs
149296 [timshadel@gm] Well, I tried deleting the cache and that didn't work.  So I dug in
149327 [mulperi@cc h] Do you happen to have zonealarm or some other personal firewall installed.

How to build qtruby on qt4?
149300 [meruby@gm il] I have install qt4 on my linux machine and like to play with qtruby on
149464 [Richard_Dale] Um.. I'm afraid the QtRuby port from Qt3 to Qt4 isn't finished yet. I've got
149465 [meruby@gm il] Richard,

Build one-click-installer version prerequisites
149301 [wonado@do ne] I am looking for all necessary things to build a tailored version (should use Onigurama) of the
+ 149303 [wonado@do ne] "Wolfgang N?dasi-Donner" <wonado@donnerweb.de> schrieb im Newsbeitrag news:3kfhoeFu0kjaU1@uni-berlin.de...
+ 149308 [curt@hi bs c] Oracle81Stub.zip should be there, but I'm having problems with my web
  149353 [wonado@do ne] "Curt Hibbs" <curt@hibbs.com> schrieb im Newsbeitrag news:42E2AA32.20408@hibbs.com...
  + 149356 [pythonmailin] As I last checked the VC 2003 Toolkit compiler had this bat file included.
  + 149359 [curt@hi bs c] Its located at "%VS71COMNTOOLS%vsvars32.bat" where %VS71COMNTOOLS% is an
    149404 [wonado@do ne] Its located at "%VS71COMNTOOLS%vsvars32.bat" where %VS71COMNTOOLS% is an

Any interest in writing gui library on top of qtruby?
149302 [meruby@gm il] wax is a gui written on top of wxPython. It allows seamless integration
+ 149304 [hal9000@hy e] It sounds like an interesting idea. Please explain more.
| 149306 [meruby@gm il] Hal,
| + 149307 [hal9000@hy e] OK, good. I agree with you, just wanted to be sure I understood.
| | 149309 [meruby@gm il] I am not qt expert, but I don't mind becoming qtruby expert. It's great
| | 149350 [dave.m@em il] I think you should talk with Richard Dale and help the qt-ruby project.
| + 149310 [rhkramer@gm ] I'm quite a newbie to Ruby (but interested in Qt and QtRuby)--all of that is
| + 149314 [mail@s- ol t] it would be great to have a generic api for gui toolkits like qt,
| | + 149326 [hal9000@hy e] I can't remember who worked on it or how far the project went.
| | + 149329 [martindemell] I'm working on a thinlet [http://thinlet.sourceforge.net/] to gtk
| | + 149361 [pythonmailin] There is something like this for Python - anygui. Well, it.. failed because
| |   149466 [meruby@gm il] When you try to create a gui which encompasses everything, you end up
| + 149467 [Richard_Dale] I've just been reading about wax, and it seems to be about addressing the
+ 150209 [qerub@ho e. ] I'm very much interested in this too. I know Ruby pretty well and I've toyed
  150212 [reyn.vlietst] I'm using qt ruby myself.
  + 150230 [jpshack@gm i] An excellent place to start would be helping to get QtRuby runnning
  | 150255 [mailinglists] QT is quite expensive (US$ 6000 + US$ 2000 yearly mantainance) so
  | 150263 [dave.m@em il] charset="iso-8859-1"
  + 150287 [qerub@ho e. ] Yes, that's the real question. :-)

irb readline issue (windows)
149311 [GGarramuno@a] I just installed the latest one-click installer on windows which comes

Strange SWIG behaviour
149320 [zoso@fo on e] I'm doing some experiments with SWIG (trying to make a Ruby interface for
149440 [steven.jenki] I played around with this a little yesterday afternoon and saw exactly
+ 149476 [zoso@fo on e] Thanks for trying :-)
+ 149697 [zoso@fo on e] The only conclusion I've reached is that a function named "error" can't be

[JOB] Need help with a small Windows GUI app
149321 [derek@de ek ] ...

Lisp on Lines
149322 [lduncalfe@em] Read on the comp.lang.lisp group that someone is developing 'Lisp on Lines'
149343 [Ara.T.Howard] cheers.
+ 149363 [lduncalfe@em] Yes, I've read Paul Graham's book "Hackers and Painters", which is what
+ 149366 [w_a_x_man@ya] How much less powerful than Lisp is Ruby?
  + 149442 [code@jo ch n] I've only had passing experience with Lisp but the macro facility seems
  | 149475 [zak.wilson@g] def accgen (n)
  | + 149480 [code@jo ch n] Perhaps I'm misunderstanding here, please bear with me.  Ruby doesn't
  | | + 149483 [khaines@en g] a = "test".method(:length)
  | | + 149484 [zak.wilson@g] It's the same in Lisp. In your first example, "test".length gets
  | |   149517 [code@jo ch n] (setf a #'length)
  | |   149533 [daniel@br ck] Ruby has both methods and functions, but methods are more
  | |   + 149557 [twifkak@co c] class Symbol
  | |   | 149632 [daniel@br ck] Wow, I really like it!  Why didn't I think of that?
  | |   | 149658 [twifkak@co c] You weren't being challenged by someone showing you a code snippet
  | |   | 149662 [daniel@br ck] Hmm, yeah, I guess that would've done it. :-)
  | |   + 149579 [code@jo ch n] Interesting--that's the first I've heard of it.  Do you have a link to
  | + 149512 [twifkak@co c] Perhaps we need a new term. According to Google, "First class
  |   + 149513 [daniel@br ck] On line 3, a reference to the method body that was defined
  |   + 149521 [Ara.T.Howard] irb(main):001:0> a = lambda{ p 42 }
  |   | 149529 [joevandyk@gm] Is 1.9 going to be 2.0 when it's released?
  |   + 149531 [zak.wilson@g] I think what's going on here is that it's making a copy of the method
  |   | 149536 [daniel@br ck] Actually, since methods are themselves immutable, making a
  |   + 150651 [gavin@re in ] What do you call patrician hooberglobbers that can be invoked with
  |     150667 [lists@so rc ] As a relative newcomer to Ruby, I would appreciate hearing you elaborate
  |     150708 [transfire@gm] Search the ruby-talk archives and you'll find a good bit about it.
  + 149482 [dfayram@gm i] Lisp has many more features, in fact the entire language could be
  | 149505 [lduncalfe@em] Thanks Dave for the interesting post. Would these problems be solved if
  | + 149507 [brianm@ap ch] Er, there are quite a few open source CL implementations
  | | 149540 [mailinglists] Unfortunately there is no good plattform independent CL
  | + 149508 [zak.wilson@g] Common Lisp is an open standard. There are implementations of it that
  | + 149518 [mreed@th re ] Huh?  Is GNU Common Lisp not actually an implementation of Common Lisp?
  | | 149541 [mailinglists] Here, in an image based system like LISP, free in the GPL sense is a very very
  | | 149657 [joevandyk@gm] What do you mean by "image based system"?  And what does that have to
  | | 149664 [hutch@re ur ] In an image based system, like lisp or smalltalk, all software is
  | | 149674 [mailinglists] The question is what is the runtime ?
  | | 149739 [zak.wilson@g] SBCL and CMUCL are mostly public domain, those parts that are not are
  | + 149760 [dfayram@gm i] It already is, but the quality of open source implementations varies
  + 149672 [listen@ma cr] Might be challenging...
    149679 [surrender_it] no, but there were some scheme implementations in ruby ;)

Sending stdout to multiple handles
149323 [djberg96@gm ] How can I make it so that when I print to stdout, it actually prints to
149324 [nobu.nokada@] Without redefining anything?

How do I convert an absolute path into a relative path
149332 [nigel@wa pz ] I have an absolute path to a specific file but I want to convert it to a
149333 [langstefan@g] irb(main):003:0> require 'pathname'
149462 [nigel@wa pz ] Thanks

Re: Where to put self-contained Custom Libraries
149337 [transfire@gm] Try looking a the RPA wiki site. They have some good documents that

DRb and unknown_methods
149348 [Stephan.Kaem] I just ran into this situation: There's a module which uses DL to
149391 [drbrain@se m] You can super here.
149398 [Stephan.Kaem] Thanks for the tip, now I do.

Re: Need help with a small Windows GUI app
149351 [transfire@gm] Why now make it a small web app?
149444 [derek@de ek ] The app needs to write files the the user's machine and change
149568 [transfire@gm] T.

Using a class namespace for subclasses
149354 [transfire@gm] Wondering the general feeling about using the class namespace for
+ 149355 [cyclists@nc ] module Hash
| + 149357 [james@gr yp ] Na, there's already a Hash constant defined in Ruby, so that wouldn't
| | 149368 [surrender_it] +1
| | 149403 [george.mosch] As I said in the Nitro mailing list I like your idea!
| | 149581 [transfire@gm] Getting there. Just a couple more things, then I just have to go
| + 149358 [vjoel@pa h. ] irb(main):001:0> module Hash; end
|   149400 [B.Candler@po] True, but I think the only way to be 100% sure of avoiding that is to use a
+ 149365 [Ara.T.Howard] i'd do
  149373 [transfire@gm] You would keep it seperate. Why so?
  149432 [Ara.T.Howard] i dunno - some namespaces aren't likely to get polluted because there not that

Rake or Rant
149360 [the_mindstor] For quite a while i was looking for something to start using Ruby on. I am doing 99% of the my
+ 149362 [the_mindstor] #: by Alexandru Popescu's words the mind was *winged* :#
+ 149364 [langstefan@g] I don't know if you have found it yet, but all Rant features
+ 149369 [seanairt@gv ] I'm a rake guy myself -- but then I was always a makefile guy too. I
| 149374 [the_mindstor] #: by Shaun's words the mind was *winged* :#
| 149386 [lthiryidontw] Rails uses Rake.
| 149394 [the_mindstor] #: by Lionel Thiry's words the mind was *winged* :#
+ 149413 [jim@we ri hh] * Basic Rake documentation is here:  http://rake.rubyforge.org/

Interest in a wrapper for the Dallas/Maxim OneWire Public Domain API?
149370 [no@sp m. le ] I'm writing some stuff to handle a couple of different IButtons
149380 [ptkwt@ar cn ] Sounds cool!  I don't have time to play with it right now, but definitely
149383 [no@sp m. le ] Will do. The IButton thermometers are excellent for this purpose, all
149953 [no@sp m. le ] Rubyforge now has a "onewire" project with source in CVS that will

Stats comp.lang.ruby (last 7 days)
149376 [bsd.SANSPAM@] Stats comp.lang.ruby (last 7 days)

IDE with incermental evaluation
149378 [zak.wilson@g] I've gotten a bit spoiled using Emacs with SLIME while learning Lisp.

IDE with incremental evaluation
149379 [zak.wilson@g] I've gotten a bit spoiled using Emacs with SLIME while learning Lisp.
149387 [daniel@br ck] The Emacs mode that comes with Ruby does this.
149392 [zak.wilson@g] Thanks. I'd blame myself for not reading the documentation, but there
149881 [thorin@th sh] Emacs lisp packages typically have the documentation in the elisp
149944 [zak.wilson@g] When I tried that, shortly pefore posting my original question, it gave

ide like gambas
149382 [botp@de mo t] anyone knows a ruby gui ide like gambas (http://gambas.sourceforge.net/) ?
149477 [Richard_Dale] I've been trying to get both gambas-1.0.9 and gambas2-1.9.13 working today,

Ruby OSCON related activities
149384 [ptkwt@ar cn ] If you're coming to OSCON, consider also coming to FOSCON :)
149390 [ezra@ya im -] This is awesome! I can't afford to go to OSCON but I will definitely

Ruby on Rails Windows  ActiveRecord::StatementInvalid Select COUNT(*)
149393 [silver442n-g] If you are trying to setup ruby on rails on Windows using mysql and you

[ANN] Nitro + Og 0.21.0 Compiler, Og custom joins, Og dynamic injection, new builder
149397 [george.mosch] new versions of Nitro and Og were just released.
+ 149407 [eduardo.yane] Does Og support Sybase?
+ 149420 [surrender_it] wow this is cool :)
| + 149424 [mneumann@nt ] t.transform(Elements).transform(Localization).transform(Markup)
| + 149470 [chneukirchen] t= t | Elements | Localization | Markup
|   149473 [brianm@ap ch] The bitshift conflict is less than ideal, but tsam I like that pipe!
+ 149425 [mneumann@nt ] Great release George. Thanks!

ruby-gnome on gnome-2.10
149401 [joevandyk@gm] I'm running Ubuntu Hoary.   I've compiled and installed Ruby 1.8.2 and
+ 149402 [joevandyk@gm] Not sure how relevant it is, but the perl bindings work fine.
+ 149446 [mutoh@hi hw ] Today, I installed Ubuntu 5.04 and try ruby-gnome2 and canvas.rb.
  149456 [joevandyk@gm] I figured so.  I'd like to help fix this problem.  Where should I

self.x=(value) in private?
149405 [clr6.10.rand] class Foo
149408 [daniel@br ck] An expression that looks like °∆identifier = value°« always
+ 149414 [clr6.10.rand] Daniel,
| + 149416 [hal9000@hy e] A writer method (ending in =) is a bit of a special case.
| + 149418 [james@gr yp ] What's wrong with the Pickaxe II here?  Can you point to the problem
|   149422 [clr6.10.rand] Oh, I see, I misread the example. I was talking about 'Variable/Method
+ 149896 [r.mark.volkm] I just want to make sure I fully understand this.
  149899 [langstefan@g] Often it has the same effect.
  149900 [langstefan@g] #   self.text = nil

Ruby and threads
149406 [lists@so rc ] Guys,
+ 149441 [daniel.amela] Quick answer: There are plans (and people working on them right now)
+ 149530 [ysantoso-rub] I can come up with only two significant downsides of green threading
  149898 [thorin@th sh] This certainly isn't an inherent problem with native threads; there is
  150019 [ysantoso-rub] Adam,
  150043 [thorin@th sh] Hmm, I just tried on an 8p ia64 machine running Linux, with python 2.3.
  150179 [gene.tani@gm] ...

Re: Nitro + Og 0.21.0 Compiler, Og custom joins, Og dynamic injection, new builder
149410 [george.mosch] Not yet, but it is quite easy to add a new Store implementation. If you
+ 149434 [george.mosch] Nice idea,
| 149474 [george.mosch] this is a bit unreadable though :) Ie, it looks a lot like OR's.
| 149573 [chneukirchen] No, it looks like pipes. :-)
| 149608 [zoso@fo on e] I agree with George. If I'm programming in Ruby, when I see vertical bars I
+ 149551 [eduardo.yane] What would I need?

Deploying to A2 Hosting from Windows
149421 [jasonecartwr] I am admittedly a Ruby Newbie and I am inexperienced in *nix/Apache
149426 [curt@hi bs c] Depending on what version of MySQL you are using, you might be running
149556 [jasonecartwr] Tech support at A2 has been increasingly helpful. They resolved the

Newby question 'unless'
149423 [eduardo.yane] print an attribute if a condition is fulfilled.
+ 149427 [belorion@gm ] def to_s
| 149431 [eduardo.yane] I'll take this one, in this case the ternary operator
+ 149428 [dblack@wo bl] If it doesn't print anything then presumably it's not printing @b.  Or
| 149429 [dblack@wo bl] I think I figured out what you want :-)  You always want @a, and you
| 149433 [eduardo.yane] Yes :)
| 149539 [martindemell] #{} can contain an arbitrarily complex expression, the result of which
+ 149430 [james@gr yp ] def to_s
+ 149435 [clr6.10.rand] def to_s
  149443 [dblack@wo bl] Conditionals give you nil when they're not met, and nil.to_s is an
  149454 [clr6.10.rand] -:4:in `+': cannot convert nil into String (TypeError)
  149461 [dblack@wo bl] Whoops, I thought I was being helpful by showing an intermediate step

[RubyGems] require fails the first time called and works the second time
149436 [brian.takita] The first time I try to require a library, I get a "No such file to

Re: require fails the first time called and works the second time
149437 [brian.takita] Arg...Theres something wrong with my rake file. I'll post the real
149438 [brian.takita] AFAICT the problem is that I did not have a file named dataview.rb in

www.ruby-lang.org down?
149445 [alang@cr no ] Just an FYI, the domain resolves but the site just hangs when trying to
149468 [greg.kujawa@] Same here when I try. A few hours later than your attempt as well...
149495 [matz@ru y- a] Now it's up again.  Thank you.
+ 149504 [dooby@d1 .k ] Very slow, though  (cvsweb).
+ 149593 [greg.kujawa@] How cool is Ruby? Some folks notice that the main site is unresponsive
threads.html
top