126283-127888

126063-130484 subjects 126427-127927

extending/embedding ruby (callbacks) [LONG]
126283 [peter.schram] I try to implement an interface for fuse with ruby but fail to a strange
+ 126302 [cmills@fr es] look
| 126311 [peter.schram] getdir
| 126321 [cmills@fr es] registered
+ 126408 [decoux@mo lo] try it with
  126413 [decoux@mo lo] This is wrong :-(((
  126459 [peter.schram] Yes... that's it. It wasn't ruby's fault at all but some kind of race

Why "pre" AND "code" tags in Textile Markup?
126284 [as@co pu er ] I use Instiki and Soks ("Soks rocks." TM by James Britt ;-)) as personal
126293 [mental@gm il] I haven't tried what you asked but, I think they actually meant use
126296 [as@co pu er ] Yes ... "code" could is an inline tag and "pre" a block tag. However,
126357 [patrick.spen] I'd like to clarify a few things. The <pre> tag's purpose is to
127027 [as@co pu er ] Thanks for your clarification! So <pre> saves the whitespace (tested in

HTML Entitities in Instiki: was Re: [ANN] Soks - Yet Another Wiki
126288 [rhkramer@fa ] Alex,

Proliferation of web frameworks
126292 [carlwork@yc ] I don't know about you guys, but I'm starting to be overwhelmed by the
+ 126294 [petite.abeil] Ahhh... choice... choice... so much choice...
+ 126298 [george.mosch] the
| 126303 [mailinglists] But only very few of them are a good choice, and thats a bad thing.
| 126304 [petite.abeil] Why? The fact that there are so much choice, both good and bad, force
| + 126318 [rampant@gm i] It might be more productive if there could be a way for people to more
| | + 126334 [carlwork@yc ] That was kind of my thought.  Choice is good, but perhaps all this
| | + 126365 [david@lo dt ] Actually, I think many are. I just did a quick count in the changelogs
| + 126344 [sera@fh an .] Some people probably want some help in their decisions, and that's a
| | 126445 [sroberts@un ] Yes, the choice may be good - but the lack of docs and lack of summary
| | 126451 [sera@fh an .] All true. So instead of asking people to code less, we should probably
| | + 126458 [alang@cr no ] I think for some projects it's not a matter of documentation quantity
| | | 126476 [ehames@gm il] How about putting up a page in the Ruby wiki stating tha capabilities
| | | 126491 [vanweerd@gm ] I would expect that someone might have the experience to do this
| | + 126519 [jamesUNDERBA] That's crazy talk!
| + 126389 [theebh@gm il] Take a look at the python side of things. The plethora of web
| | + 126407 [zimba.tm@gm ] There is a difference, I think, in the ruby community. It is that it's
| | | + 126414 [rff_rff@re o] well, I think this is actually done by the developer themselves. I.e.
| | | | + 126418 [mneumann@nt ] Often it's easier to write a new application from scratch then
| | | | | 126421 [petite.abeil] Beside "writing your own" as a learning experience, another thing not
| | | | | 126432 [mcl-ruby-tal] Seems to me that web sites are often highly customized animals, as well.
| | | | | + 126442 [mneumann@nt ] Yes, exactly. It is fun, and you can learn a lot of things in doing so.
| | | | | + 126520 [jamesUNDERBA] Quite true.  Often  it takes far less time to just write the code than
| | | | + 126539 [zimba.tm@gm ] IMHO there is no framwork that support that level of protocol
| | | |   126541 [rff_rff@re o] I understand this. I nevere felt the need for it, anyway :)
| | | + 126415 [ptkwt@ar cn ] But it appears that the Ruby community is experiencing (or is about to
| | | | 126426 [rff_rff@re o] It is a general framework for writing asynchronous stuff, including
| | | | 126430 [aglarond@gm ] From what I just quickly read on
| | | + 126525 [patrick@he a] I think maybe the writers of the different frameworks should meet
| | |   126537 [george.mosch] I think you are overreacting.
| | + 126791 [martindemell] +1
| + 126404 [bob.news@gm ] "PA" <petite.abeille@gmail.com> schrieb im Newsbeitrag
|   126444 [glenn.parker] I think it's pretty pointless to ask the world to stop writing free
|   126455 [bob.news@gm ] "Glenn Parker" <glenn.parker@comcast.net> schrieb im Newsbeitrag
+ 126299 [djberg96@ho ] the
| + 126300 [petite.abeil] Or writing yet another email client :o)
| + 126373 [rff_rff@re o] actually, I think it's worth considering that some of the existing
+ 126376 [john.carter@] Open Source Development moves very slowly, but on a very broad front.

The IP of a XMLRPC-Caller
126305 [hen_WEG_dami] is there any way to get the caller's IP in my XMLRPC-method?
126326 [slr2777@cs r] I don't know the answer to this, but I would also like to know. But I'm curious
126331 [djberg96@ho ] I'm curious
126394 [hen_WEG_dami] That doesn't help me, though, because I have to connect to the caller to
126447 [sroberts@un ] Have the caller tell you his IP?
126602 [hen_WEG_dami] That's a possibility, but the caller probably sits behind a NAT so he

Re: Segfault in timer.rb (segfault: message 13 of 20)
126308 [junkblocker@] +segfault+ruby-talk+d8ad413ff4.segfault.ruby-talk#spamgourmet.com@spamgourmet.com
126312 [decoux@mo lo] With such a name, ruby can only segfault and it do this just to be

Mutable strings
126315 [mystifier@us] ...
+ 126317 [halostatue@g] "Foo Bar".to_sym
+ 126325 [cmills@fr es] trying to
+ 126346 [mailing-list] Python has immutable strings.  If you want 'em, use Python.
| 126391 [mystifier@us] Dear Charles,
| + 126448 [flgr@cc n. e] They are mostly immutable. I'd still consider them value objects. In
| + 126452 [halostatue@g] Um. That's not the same at all. Symbols themselves are immutable.
|   126457 [mystifier@us] Dear Austin,
|   126461 [halostatue@g] Yes. The intrinsic value of a symbol is immutable -- and it doesn't
|   126464 [bob.news@gm ] "Austin Ziegler" <halostatue@gmail.com> schrieb im Newsbeitrag
|   126466 [mystifier@us] It says that immutable string class is necessary in VM because instead of
|   + 126469 [decoux@mo lo] Read this message [ruby-talk:113107]
|   | 126471 [mystifier@us] Thanks.
|   | + 126473 [decoux@mo lo] Mailing list post, see
|   | + 126474 [transami@ru ] Mailing posts I would think though I sure would like it if an actual link was
|   |   126478 [mystifier@us] Uff! I did it again. Need to go to school back!
|   + 126501 [mailing-list] Ruby doesn't have an immutable string class, that's final.  Ruby has a
+ 126406 [bob.news@gm ] "Mystifier" <mystifier@users.berlios.de> schrieb im Newsbeitrag
+ 126453 [halostatue@g] All the time.
+ 126504 [drbrain@se m] $ ruby

Where to install non-ruby files in ruby module
126319 [dan@ep rk ab] I am creating my first rbuy app - porting FPDF (PHP used to create PDF
126327 [halostatue@g] I have actually ported Cpdf to PDF some time back. It's PDF::Writer.

Mozilla binding
126320 [alex.martin@] Anyone knows if it exists some Ruby binding to Mozilla?
126324 [pabs@pa lo r] There's a gtkmozembed binding on RAA at
+ 126330 [rb@ra hi ou ] I can only recommend using Ruby with the QtBindings if you can use it.
| 126384 [jeffrey.dik@] As far as I know, there aren't any ruby bindings to Mozilla.  However,
| 126405 [alex.martin@] I did before the post, but it seems to be abandonware.
+ 126436 [alex.martin@] It could be a good way.

[Q] Web Testing in Ruby
126332 [laurent__nos] Sorry if this question has already been asked 200 times... I'm trying
+ 126335 [alex@ve k. n] First of all, there is Net::HTTP library in the Ruby standard library
+ 126337 [stevetuckner] I am currently working on one (when time permits). My idea is to use a
  126338 [rasputnik@he] did you find webunit? it's designed to allow unit testing of webapps, but
  + 126339 [alex@ve k. n] To clarify: the test framework available in Rails is very
  | 126340 [rasputnik@he] Does this not do what i think it does then?
  + 126348 [stevetuckner] ...
    + 126363 [eero.saynatk] Don't want to sound like a fanboy, but www.narf-lib.org has a
    + 126416 [rasputnik@he] You've already got further than me then :) I installed it a while back but

Seeing a definition
126333 [pete@pe ta t] Is there a way to get Ruby to print the definition of a class or method,
126341 [halostatue@g] Not without some parsing of the text involved as it's being handled or
126358 [pete@pe ta t] So does Forth (sorry to be referring to such an obscure language, but

Re: Web Testing in Ruby
126336 [djberg96@ho ] browser
126345 [kohljonathan] There is Chris Morris' IEC and the new Watir library. Currently both
+ 126349 [kohljonathan] page by sending messages to objects."
+ 126379 [jim@we ri hh] I just stumbled across watir from a posting on Brian Maricks blog and am
  + 126381 [alex@ve k. n] For a non-MS based solution, there is an OSS project by some
  + 126390 [kohljonathan] <snipped>
  + 126393 [bret@pe ti h] We have plans for just this situation.
  | 126496 [nathaniel@ta] Couldn't a client-side HTTP proxy be used to remove the need for
  | 126733 [bret@pe ti h] We've built at least one prototype for this and have been discussing other
  + 126514 [patrick@he a] ~ Patrick
  + 127870 [cjs@cy ic ne] I've got a simple little framework that I use for testing my web-based

ruby-gnome2 : problem with signal "insert-text"
126343 [no@in yo r- ] i have a problem with the signal "insert-text", the signal was
+ 126429 [mcl-ruby-tal] Are you sure? insert-text should be getting called for every text
+ 126434 [peter.stuifz] widget.signal_connect_after("nsert-text") do
  126454 [no@in yo r- ] Thanks.
  126538 [no@in yo r- ] Humm, after many test, I see my code is executed immediately.
  126554 [mcl-ruby-tal] I've never noticed any sort refresh issues with the text
  126564 [no@in yo r- ] It don't work.
  126569 [mcl-ruby-tal] Do you have a short working example that demonstrates
  126574 [no@in yo r- ] #!/usr/bin/ruby1.8
  + 126587 [mcl@an so or] I guess in this case update_window isn't going to have an effect because
  + 126591 [joaopedrosa@] require 'gtk2'
    + 126597 [joaopedrosa@] require 'gtk2'
    | 126607 [no@in yo r- ] 2.times{
    | 126610 [joaopedrosa@] No problem. :-)
    | 126616 [no@in yo r- ] buffer.signal_connect_after('insert-text') do |a,iter,text,length|
    | 126617 [joaopedrosa@] Cool. :-)
    | + 126618 [no@in yo r- ] So you're the developper of aeditor ?
    | | 126620 [joaopedrosa@] It's not professional and I do not want to release it to the public in
    | | 126623 [no@in yo r- ] Hum good :-)
    | | 126801 [peter.stuifz] this is kinda weird, I'm trying to develop an editor, too. But instead
    | + 126805 [ruby-lists@l] take a look at ruvi. and gruvi.
    + 126605 [no@in yo r- ] Thanks.

Method Dispatching
126347 [transami@ru ] I've touched on this before with the idea of a "pre" method missing, but it
126368 [matz@ru y- a] It is too low level for AOP.  It is difficult to manage multiple
126375 [transami@ru ] Good points. Although I point out that what I'm working on is the low-level

[ANN] Tar2RubyScript 0.4.3
126351 [pan@er kv en] Tar2RubyScript 0.4.3 is released!

[ANN] RubyScript2Exe 0.3.1
126352 [pan@er kv en] RubyScript2Exe 0.3.1 is released!
126355 [flgr@cc n. e] Thanks a lot for adding this! Can absolute paths be used?
126366 [pan@er kv en] fromfile = File.expand_path(dll, fromdir)
+ 126367 [pan@er kv en] I want a better newsreader! Now! The only handicap of Pan is
| 126371 [flgr@cc n. e] Came through just fine for me on two lines. (Mozilla Thunderbird)
+ 126751 [horacio.lope] So can I use this to bundle a Windows XP manifest file?
  126757 [pan@er kv en] All files in RUBYSCRIPT2EXE_DLLS are copied to the directory in

system? exec? fork? thread?  Help managing external process
126361 [chris.mcmaho] I'm new to Ruby and I need some help with managing an external
126370 [billk@ct .c ] system ("start C:\\filewatcher.exe file_to_be_handled_by_outside_process.txt")
126387 [mcl-ruby-tal] IO.popen perhaps? That would allow you to read or write directly to
126396 [vjoel@PA H. ] Just doing the system call in a thread works on windows,

DRb: Using an existing auth mecha
126369 [kig@mi fi in] Is there a (easy) way to use existing authentication mechanisms with

Re:
126380 [johnwilger@g] Why on earth would you want to do that? ;-)

[ANN] EasyPrompt 0.1.0
126388 [sera@fh an .] I've just released EasyPrompt 0.1.0, the initial release of a new

A patch for irb, where to submit?
126392 [csaba@ph ny ] I hacked irb/completion.rb such that now it does filename completion (not
+ 126397 [vjoel@PA H. ] I wonder if it is possible to restructure completion.rb so that instead
| 126422 [csaba@ph ny ] Well, as for now you can require 'irb/completion' and the completion
| 126468 [vjoel@PA H. ] I didn't even remember saying that until I looked it up on google, and
| + 126472 [transami@ru ] It has certainly been said before. Who originated the statement I do not know.
| | 126497 [vanweerd@gm ] Ruby has been described as a dialog of lisp, with infix notation.
| + 126558 [csaba@ph ny ] Well, that certainly couldn't make it into my "qoute of the week" even if
+ 126425 [mcl-ruby-tal] Wow. I've never had method-name completion until I read this post and thought
| 126440 [csaba@ph ny ] I'm glad to have at least one user :)
+ 126485 [discordantus] Thank you! I have missed the filename completion ever since I turned
+ 126505 [drbrain@se m] ruby-core@ruby-lang.org
  126560 [csaba@ph ny ] Ah, thx.

request for times, step, upto...
126400 [botp@de mo t] 1. I am a Integer#times fan :-) So you see my (and my kids) nuby codes
+ 126402 [transami@ru ] Whether these make it into Ruby core or not (I'm all for it) I will definitely
+ 126409 [bob.news@gm ] "Pea, Botp" <botp@delmonte-phil.com> schrieb im Newsbeitrag
| 126417 [pit@ca it in] I thought he just wanted to change the values passed into the block. Instead of
+ 126423 [kristof@vl e] I agree that Integer#step looks a bit odd.  The most
  126530 [botp@de mo t] //> "Pea, Botp" <botp@delmonte-phil.com> schrieb im Newsbeitrag

Duck Typing and automated Conversions
126411 [bob.news@gm ] conversion of method parameters seems to be a quite common scenario,
+ 126419 [pit@ca it in] Interesting idea. I think it's very readable.
+ 126420 [dblack@wo bl] I personally don't like the '.' notation used for anything other than
| + 126424 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
| | 126435 [dblack@wo bl] def obj.times(&block)
| | 126441 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
| | 126446 [dblack@wo bl] I thought that their main purpose was to be defined on objects that
| + 127872 [cjs@cy ic ne] I don't see why there would be a need to add documentation indicating
|   127888 [bob.news@gm ] "Curt Sampson" <cjs@cynic.net> schrieb im Newsbeitrag
+ 126428 [kig@mi fi in] Not to argue against possible syntatic sugar, but you can already do
| + 126433 [bob.news@gm ] "Ilmari Heikkinen" <kig@misfiring.net> schrieb im Newsbeitrag
| + 126437 [dblack@wo bl] silly_example("hi", 1, "hello", 2)
|   126438 [kig@mi fi in] Could argue that it's wanted behavior.. "if you want to hack this
|   126443 [dblack@wo bl] You asked whether you could already do what Robert was proposing, by
+ 126439 [rff_rff@re o] Yes, one. See RCR 280, add this, and you get quite far in replicating
| 126449 [bob.news@gm ] "gabriele renzi" <rff_rff@remove-yahoo.it> schrieb im Newsbeitrag
| 126456 [rff_rff@re o] Yes, I did not intend to say they implicate each other in some way, It
+ 126460 [itsme213@ho ] I like this, and believe it can be generalized to be quite broadly useful.
| + 126462 [transami@ru ] I think this is the problem with your suggestion. You want to put a lot of
| | 126467 [itsme213@ho ] I think it is better to consider the proposed functionality separately from
| | 126508 [flgr@cc n. e] I fear I'm not smart enough to understand all this pattern matching
| | 126529 [itsme213@ho ] Looks like it uses eval, which only takes a string, so I'm not sure ... Do
| | 126561 [flgr@cc n. e] Mostly. But you would need to initialize the variables x, y and z to nil
| + 126463 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
|   + 126465 [itsme213@ho ] def f (str.to_str, count.to_int)
|   + 126475 [itsme213@ho ] The fact that String#to_str returns self, and Fixnum.to_int returns self, is
|     126487 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
|     126493 [itsme213@ho ] self,
|     126548 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
|     + 126576 [itsme213@ho ] The property is not central to either proposal, imo. I'm interested in what
|     + 126582 [itsme213@ho ] private_obj = ...
+ 126479 [discordantus] I could count on one hand the number of times I've converted arguments
  126488 [bob.news@gm ] "Mark Hubbart" <discordantus@gmail.com> schrieb im Newsbeitrag
  126512 [discordantus] I think I probably was somewhat unclear in my other post. I wasn't
  126550 [bob.news@gm ] "Mark Hubbart" <discordantus@gmail.com> schrieb im Newsbeitrag
  126556 [dblack@wo bl] $ grep '\.to_str' `find . -name "*.rb"` | grep -v to_string | wc -l
  + 126573 [itsme213@ho ] def meth (a, b = a.join(","))
  | 126578 [dblack@wo bl] Yes -- a big difference, in my view.  Mainly I meant that there's is,
  + 126721 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
    126731 [dblack@wo bl] I would tend to want to match /\.to_\w+/, though I guess some things
    126839 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
threads.html
top