75301-77288

75024-75935 subjects 75432-76886

^ calling eruby from code?
75301 [fxn hashref.] I've found documentation for running eruby(1) from the command line and
+ 75306 [matz ruby-la] You can use ERB, pure Ruby implementation of eRuby.
+ 75377 [ws johnwlong] Yes it is possible. Take a look at the "apache/eruby-run.rb" file. This ruby

^ Need regex to match "^\n"
75307 [jim freeze.o] I am looking for a regex that will match a line with a single
+ 75309 [B.Candler po] or caret :-)
+ 75310 [jjenning fas] (fwiw, that's 'caret' :)
+ 75312 [dossy panopt] You've gotten some other workable suggestions, but in case this one's
| 75314 [aredridel nb] line =~ /^[^]$/
| 75316 [jim freeze.o] % cat caret
| + 75317 [samuel alien] puts ("^\n" =~ /^[^]/)
| | 75337 [jim freeze.o] Actually, it doesn't matter, but Matz prefers the regex on the left.
| | 75354 [samuel alien] Heh.  Learn something new every day.
| | 75356 [michael_s_ca] I always wondered about that.  It "reads" funny to my brain that way but I
| | + 75357 [B.Candler po] I think regex-on-right is a perlism, but even in Ruby if you use =~ on two
| | | 75360 [samuel alien] That's certainly where I picked it up.
| | + 75358 [dossy panopt] Maybe it has to do with Matz being used to reading RTL and not LTR like
| + 75318 [aredridel nb] Oh, right.  I knew that.  /^\^/.
|   75324 [B.Candler po] Which was in Jim's original posting :-)
+ 75328 [bob.news gmx] irb(main):011:0> line = "^\n"

^ Turining off the read_from_command_line in CGI
75322 [samuel alien] Looking through the code, there doesn't seem to be a way to turn off

^ Threading / sockets bug
75323 [kingsley ice] Where do I report this bug?
75367 [sdate everes] I don't  think it is a bug ... just a limitation of light-weight threading

^ trapping compile time errors
75325 [ gv cs.uu.nl] I want to catch compile time errors with my own method.
75326 [B.Candler po] It's correct though - need an 'eval' because you must have a working
+ 75330 [ gv cs.uu.nl] Allright.  This is good.  Still, I hope it is possible to report
| + 75333 [ccos alphali] hey,
| + 75339 [bob.news gmx] "Gerard A.W. Vreeswijk" <gv@cs.uu.nl> schrieb im Newsbeitrag
+ 75331 [B.Candler po] No, there cannot be such a solution.

^ Re: trapping compile time errors -- alas
75332 [ gv cs.uu.nl] check tail of http://www.oreilly.com/catalog/pperl3/chapter/ch18.html
75335 [B.Candler po] I'd say Ruby's model is much cleaner. It's very clear which is the parsing

^ Ruby books
75336 [jolsen mailm] What is the best book for learning Ruby (Ruby specifically, not
+ 75338 [maik.schmidt] Thatt depends on the reader, of course :-)
| 75342 [mailinglists] But don't expect it to be a complete reference otherwise you will be
+ 75344 [mike ratdog.] You might consider looking at

^ Problem with coerce and SWIG
75341 [J.P.Fletcher] I am attempting to use coerce to be able to do calculations like
75388 [J.P.Fletcher] This problem is resolved an will be reported on the SWIG list.

^ Marshaling objects partially
75343 [  rhp dse.nl] I've got a question about streaming objects with Marshal.
75350 [matz ruby-la] Yes.
75381 [  rhp dse.nl] Thanks, this works fine.
75382 [  rhp dse.nl] On second tought... it does not seem to work fine for cycles. The
75389 [decoux moulo] Well, you must do like marshal. Try something like this (*not tested*)
75439 [matz ruby-la] Ah, let me think....
75443 [akr m17n.org] When object A and B refer each other, which _load is called first?
75493 [decoux moulo] I must say that I've not understood
75495 [akr m17n.org] This works well because an object is allocated before child object is
75580 [swap gmx.net] if I run Guys example through a fairly well tested (- the thread part;-)
75584 [swap gmx.net] Oh well never mind, I just read the beginning of the thread ...

^ - Are you learning English?
75347 [mandrews nom] This is a multi-part message in MIME format
+ 75349 [mdh depraved] Quabo!  I never will have the intentions any of learning the language
+ 75351 [B.Candler po] gsub!(/[/,'a')

^ ModRuby / Apache2.0 worker mpm
75352 [ gm navel.gr] I am trying to use modruby1.1.1 with Apache2.0 and the worker mpm. I

^ drb + ruby 1.8.0 preview3
75355 [ gm navel.gr] I tried to use the drb lib that comes with 1.8.0 preview3. I got the

^ tantalizing wxruby.org update
75359 [john.platte ] now has a discussion of Kevin's experiences writing an email client

^ - Are you learning English?
75361 [mandrews no-] This is a multi-part message in MIME format

^ [ANN]: Ruby-GStreamer 0.1.1
75362 [laurent data] The subject is self explanatory ;-)

^ People in/near Austin, Texas?
75363 [hal9000 hype] Who here is in or near Austin, Texas?
75371 [internetlett] You mean next ruby conference will be in Austin?
75374 [hal9000 hype] Correct. November 14-16. Be there!
75375 [dossy panopt] Damn you people, setting RubyConf over my birthday weekend.  Plus, it's
75391 [lyle users.s] Dossy,
+ 75392 [dossy panopt] Gee, I don't know if I could pass up this opportunity.  Have to get it
| 75393 [jim freeze.o] So it's tough to get a Sat/Sun free? Man, just how hard
+ 75400 [hal9000 hype] Perhaps even in more than one language.
  75440 [matz ruby-la] Yeah, definitely in Japanese.

^ Integer method?
75364 [internetlett] I found following exp from html_parser.rb
+ 75366 [cedric.foll ] In fact it's Kernel.Integer(name) cf
+ 75368 [sdate everes] This is a test 'ri'. Please report errors and omissions
  75379 [batsman.geo ] That's not the one he wants :)
  75390 [andrey.kulin] But don't forget that Integer( nil ) #=> 0

^ [WIN32OLE]: Using Events
75365 [STUCKNER MUL] This is a multi-part message in MIME format.
75397 [STUCKNER MUL] This is a multi-part message in MIME format.

^ Code Snippet: Array.shuffle
75369 [stefan.arent] Here is another small Ruby code snippet that extends the Array class. Use
+ 75370 [chadfowler c] Chad
+ 75372 [androflux so] => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
+ 75380 [B.Candler po] rand(x) gives a number between 0 and x-1, so I think you should use
  75407 [joegw hal-pc] Array class. Use
  75413 [B.Candler po] $ irb
  75419 [joegw hal-pc] including
  75453 [B.Candler po] irb(main):001:0> a = Array[1,2,3,4,5]
  75480 [joegw hal-pc] rid
  75485 [B.Candler po] Certainly. Ruby is case-sensitive. You need to call method [] of 'Array',
  75486 [batsman.geo ] It's not Array.[], but Kernel#Array.
  75487 [B.Candler po] Array(5)   #>>  [5]
  75504 [batsman.geo ] Shouldn't have asserted this so strongly as it turns out... I was wrong :-P
  75507 [B.Candler po] Ah, I see:  foo[bar]     =>    foo.[] (bar)

^ how to make extension lib in windows?
75373 [internetlett] my ruby is win 1.7.3-6 in win2k.
77288 [dooby d10.ka] That's pretty much it.

^ ANN: Phoenix eXtreme Programming User Group Meeting - July 14th
75378 [jay.turpin i] This is a multi-part message in MIME format.

^ "Apply" method to array?
75384 [samul web.de] Is there a way to apply (as in Lisp, Scheme and the like) a method/block
75385 [kentda stud.] Like this?
75386 [samul web.de] Excellent. Thanks a lot.

^ Picture generation on-the-fly
75394 [bsanyi sunse] is there any library for Ruby, that can generate gif/
+ 75396 [dcarrera mat] Take a look at gRuby.  It's a Ruby hook for the GD library, so you need that.  I
+ 75492 [flifson cs.u] There's also RMagick http://home.nc.rr.com/rmagick/ which can do some

^ Donation for the lord
75395 [margret surv] PLEASE ENDEAVOUR TO USE IT FOR THE CHILDREN OF GOD.

^ Array.each
75402 [rodrigo.berm] a=(1..10)
+ 75403 [0bz63fz3m1qt] Sorry.. I don't know if there is any ruby-girls around ?
| 75405 [djberge qwes] With this code, 'a' becomes a single Range.  Try: a = *1..10.
| 75406 [guslist free] Something like that?
+ 75416 [B.Candler po] For that kind of thing I tend to do the quick-and-dirty
  75458 [botp delmont] cool, but why not use #arity for block's param count, no? I would then use
  75464 [B.Candler po] That's cool, and I hadn't thought of doing it that way. I still don't trust
  75465 [decoux moulo] I don't understand : do you want something like this ?
  + 75466 [botp delmont] lol :-))
  + 75468 [B.Candler po] I guess that would do it :-) As long as I remembered to set -w ...
    75470 [decoux moulo] I've used -v just to show the version
    + 75475 [B.Candler po] No, I wasn't suggesting that it be changed now - just that this is one of a
    + 75497 [guslist free] Is there a way to voluntary make the warnings errors. For example, a
      75499 [decoux moulo] I don't think actually : 1.8.0 has a global function #warn but internally
      75500 [B.Candler po] The fact that the error is not trapped at the earliest possible point, but
      75501 [decoux moulo] a warning is not an error.
      + 75502 [B.Candler po] But it could be an indication of one. You can write your code in such a way,
      + 75505 [guslist free] Same idea as when I program in C: I do gcc -Wall ... Some warnings are

^ Integrations tests and $:
75404 [jim freeze.o] I have been writing unit tests lately and
+ 75417 [B.Candler po] 1. Modify myapp so it knows where to find its libraries. e.g. it could contain
| 75490 [jim freeze.o] Don't wont to have to modify the application before installation.
+ 75476 [nobu.nokada ] Try -I instead of -r.
| 75489 [jim freeze.o] Yes, Ara sent me a private email which made me realize my mistake.
+ 75510 [androflux so] ~$ echo '$var = "Hello, world!"' > /tmp/hello.rb
+ 75699 [ws johnwlong] system ("ruby -c ../lib myapp")

^ Accessing code blocks
75408 [grzegorz ee.] Cheers!
+ 75411 [bystr mac.co] block = proc { |arg|
| 75496 [brian shapes] Why not parse the string once, to produce a proc object? Then wrap the
+ 75412 [flori nixe.p] def foo(&bar) bar end
+ 75418 [B.Candler po] It's not silly at all, but the syntax isn't obvious if you haven't seen it
+ 75471 [kentda stud.] As others have pointed out, this is not possible, atleast not without

^ [BUG] Segmentation fault on Windows
75410 [shanko_date ] require 'win32ole'

^ mysqlsession version 0.1
75414 [samuel alien] I've just finished writing mysqlsession version 0.1.  I still have a

^ rubygarden.org FAQ broken
75415 [emschwar pob] I sent this mail to <webmaster@rubygarden.org>, but apparently that
+ 75422 [chadfowler c] Looks like we missed a sendmail configuration for that address to work.
+ 75423 [ jupp gmx.de] Saluton!
  75467 [rasputin ido] So do I, and it seems to work for me.
  75528 [emschwar pob] Mozilla Firebird 0.6, in Debian/unstable.

^ My brief and torrid affair with Ruby.
75420 [rgacote Appr] I've been a lurker here for about two weeks. In that time, I've been
+ 75421 [dcarrera mat] Well... since you are not linking or modifying the source code of these files I
| + 75425 [rgacote Appr] Thanks for your comments.
| | + 75426 [dcarrera mat] Well, it's not that simple.  Ruby modules are not linked into your program the way
| | | + 75428 [list jimcain] It's my understanding that the GPL requires anything that links to a
| | | | 75541 [sean REMOVEM] I don't believe the GPL is specific about the library sharing the same
| | | | 75559 [austin halos] The FSF isn't really the arbiter of this. Their claim that dynamic
| | | | 75741 [androflux so] Hmmmm....
| | | | 75783 [austin halos] *I* could. However, remember that the licence on my work doesn't apply to me -- I'm the copyright holder. The licence applies to those whom I give it to. If I have (unlikely) chosen to GPL something, I don't want to give anyone else the power to say "you're exposing this software over a network; I therefore have a right to the source code." That's what the Affero PL does and what a proposed GPL3 does. It changes the GPL from primarily a programmer's licence to a use licence as well.
| | | + 75430 [jj5412 earth] The problem is I can buy his app (or just copy it from someone's computer)
| | | + 75433 [tendzin.dorj] charset=US-ASCII;
| | | | + 75434 [dcarrera mat] The GPL is *not* viral.  It is a license.  You either take it or you don't.  The
| | | | + 75436 [list jimcain] The problem with the term *virus* is that it implies malevolence. A
| | | |   75437 [dcarrera mat] Exactly.  The GPL does not *impose* anything.  It sets a condition upon the use a
| | | |   75469 [rasputin ido] The term 'viral' refers to the fact that if you want to use GPLed code, your code
| | | |   75498 [list jimcain] They say good news travels fast, but good news is not a virus.
| | | |   + 75503 [michael_s_ca] To you, maybe.
| | | |   | 75521 [dcarrera mat] I'm not sure what you mean by your question.  I honestly interpret
| | | |   | 75552 [austin halos] I'm not the questioner, but I don't see anything malevolent in
| | | |   + 75511 [rasputin ido] Yeah, but if I hear good news, I can *choose* to pass it on.
| | | |     + 75514 [list jimcain] Right, and if you come across a GPLed library, you can *choose* whether
| | | |     + 75520 [dcarrera mat] This is exactly what people get wrong about the GPL!!!
| | | |       + 75527 [hal9000 hype] We're rather arguing semantics here.
| | | |       | 75529 [dcarrera mat] I don't think that we are arguing semantics.  There is a big difference
| | | |       | 75530 [michael_s_ca] *IS* the GPL "take it or leave it"?  Can you "take it" and keep your own
| | | |       | + 75531 [dcarrera mat] "take it"  -  include GPL code in your work and comply with the GPL.
| | | |       | | + 75536 [hal9000 hype] OK, let me back up a little.
| | | |       | | | 75538 [dcarrera mat] I can't imagine how I gave you that impression.
| | | |       | | | + 75539 [gfb tonesoft] OK, Daniel, let's put it this way: if you do not use something there's
| | | |       | | | | 75543 [dcarrera mat] Did you even bother to read my post?
| | | |       | | | | + 75544 [gfb tonesoft] It starts looking like flame, sorry for trying to clear things up (and yes,
| | | |       | | | | | 75549 [dcarrera mat] I have no desire for flames.  I did get frustrated because you were
| | | |       | | | | + 75545 [michael_s_ca] "forced" isn't relevant.
| | | |       | | | | | 75550 [dcarrera mat] You've misread me.  A virus can attack you, even if you don't want to.  A
| | | |       | | | | | 75656 [pbrannan atd] Does this mean that smallpox is not a virus, since the only way for me
| | | |       | | | | | 75657 [dcarrera mat] Don't split hairs.
| | | |       | | | | | 75661 [pbrannan atd] A male and a female reproducing together is sexual reproduction.  This
| | | |       | | | | | 75669 [dcarrera mat] The GPL is not a parasite.  Your definition of spreading only with
| | | |       | | | | + 75673 [xlucid users] If you use it in contact with your own code [and, to be be absolutely
| | | |       | | | |   75677 [dcarrera mat] Not it DOESN'T.  That's what I've been saying all along.
| | | |       | | | |   + 75685 [sean REMOVEM] viral.
| | | |       | | | |   | 75692 [dcarrera mat] I know very well how it works.  I have been familiar with the GPL for many
| | | |       | | | |   | 75702 [samuel alien] To pre-emptively clarify.  Of course you can remove the GPL'd code
| | | |       | | | |   | + 75704 [sean REMOVEM] does
| | | |       | | | |   | + 75705 [dcarrera mat] Well... what I am saying is that this case is actually quite important in
| | | |       | | | |   |   + 75720 [samuel alien] Well, to clarify further, then.  If I'm concerned about the licensing
| | | |       | | | |   |   | + 75721 [dcarrera mat] Fair enough.  But the fact that the alternatives are not appealing to you
| | | |       | | | |   |   | | 75725 [samuel alien] I probably should have been clearer in my clarification ;)
| | | |       | | | |   |   | | + 75728 [sean REMOVEM] you
| | | |       | | | |   |   | | | 75729 [tendzin.dorj] I repent of and otherwise apologize for ever having used the word
| | | |       | | | |   |   | | | 75738 [james_b neur] I keep waiting for somebody to compare the GPL to Hitler so this thing
| | | |       | | | |   |   | | | + 75739 [dcarrera mat] I'd like to propose that we halt this thread right now.
| | | |       | | | |   |   | | | + 75748 [nedry mail.b] Ok.  I'll do it for you...
| | | |       | | | |   |   | | | + 75857 [martindemell] assert ((GPL <=> Hitler) == 0)
| | | |       | | | |   |   | | + 75731 [dcarrera mat] I agree.  You and I only differ on how inappropriate we think the term
| | | |       | | | |   |   | | + 75775 [michael_s_ca] *laugh*  Give that a shot one day.  It's an experience.
| | | |       | | | |   |   | + 75733 [bystr mac.co] OK, how about this simple answer to the initial question: Why people do
| | | |       | | | |   |   + 75755 [B.Candler po] But not without breaking the law, unless your code is something which you
| | | |       | | | |   + 75689 [xlucid users] Read the 'If ... and' in my statement to which you then say 'no'.
| | | |       | | | |     75694 [dcarrera mat] I have read your If statement carefully.
| | | |       | | | |     + 75703 [sean REMOVEM] like.
| | | |       | | | |     | 75706 [dcarrera mat] You have misread my post.  This is a simple matter and I hope we can
| | | |       | | | |     | 75711 [sean REMOVEM] the
| | | |       | | | |     | 75712 [dcarrera mat] I think that we've made progress.  At least I've conveyed what piece of
| | | |       | | | |     | + 75714 [sean REMOVEM] the
| | | |       | | | |     | | 75717 [dcarrera mat] The fundamental reason why the GPL is not viral is that the GPL does not
| | | |       | | | |     | | 75722 [sean REMOVEM] real
| | | |       | | | |     | | 75723 [dcarrera mat] 1)  You were the one who offered the analogy.
| | | |       | | | |     | | 75727 [sean REMOVEM] not
| | | |       | | | |     | | 75734 [dcarrera mat] I have never agreed to be sick, but I have been sick many times.  The fact
| | | |       | | | |     | | 75742 [sean REMOVEM] say
| | | |       | | | |     | + 75736 [austin halos] lawyers at /. have suggested that SCO may have possibly included
| | | |       | | | |     |   75737 [dcarrera mat] I think you misunderstood what I said.  Allow me to illustrate.  Consider
| | | |       | | | |     |   75743 [sean REMOVEM] It sounds more like you are talking about "contagion."  How "contagious" the
| | | |       | | | |     |   75816 [dcarrera mat] No, I am not talking about how contagious it is.
| | | |       | | | |     |   75833 [sean REMOVEM] We seem to have come to a mutual understanding on everything else, except
| | | |       | | | |     |   + 75837 [dcarrera mat] I am really not sure of what your point is.  Instead of guessing, I'll ask
| | | |       | | | |     |   | 75844 [sean REMOVEM] Yes, you are misunderstanding me.  I never claimed the GPL was viral because
| | | |       | | | |     |   | 75847 [dcarrera mat] Good, we are clear on where we differ.
| | | |       | | | |     |   | + 75858 [hal9000 hype] English lesson for the day. You keep saying "weary,"
| | | |       | | | |     |   | | 75886 [dcarrera mat] Thanks.  If I had seen the two words side by side I would have known which
| | | |       | | | |     |   | + 75860 [sean REMOVEM] I don't think Bill Gates originally coined the term to refer to the GPL;
| | | |       | | | |     |   |   75887 [dcarrera mat] It's really frustrating that you say that about me when I just said that
| | | |       | | | |     |   + 75911 [xlucid users] Exactly so.
| | | |       | | | |     |     75912 [dcarrera mat] Btw, I do think that they are virii, and they *can* affect you against your
| | | |       | | | |     |     75939 [xlucid users] They can't affect you directly - they only attack bacteria  - hence
| | | |       | | | |     + 75713 [xlucid users] You seem to be ignoring the 'and' part of my post...
| | | |       | | | |       75715 [dcarrera mat] How am I ignoring it?
| | | |       | | | |       75757 [B.Candler po] 1. Throw your work away
| | | |       | | | |       75814 [dcarrera mat] Yes, I know.  We do agree on what the GPL says.
| | | |       | | | + 75560 [rasputin ido] Right, so you're saying because it doesn't hold a gun to my head to
| | | |       | | |   + 75563 [wkb airmail.] I think the main point of contention in this debate is the word "viral".
| | | |       | | |   | + 75566 [dcarrera mat] My definition of viral in this context is "something that forces its own
| | | |       | | |   | | 75589 [austin halos] Viral marketing. The "idea" is "infectious" and is spread by word of
| | | |       | | |   | | 75590 [dcarrera mat] I know.  I was giving my own example of how my definition of "viral" can apply to
| | | |       | | |   | + 75674 [xlucid users] Quite - when ad agencies use 'viral marketing' do they use actual
| | | |       | | |   + 75567 [dcarrera mat] I didn't say that.
| | | |       | | |     75569 [orion2480 ho] Viruses use "host cell" resources to reproduce, since they do not have the
| | | |       | | |     75578 [steven.jenki] A satisfactory resolution to this discussion will not come from arguing
| | | |       | | + 75547 [michael_s_ca] i) non-GPL-violation
| | | |       | |   75553 [aredridel nb] Not "gets tainted". You'll just have to choose to taint it or replace
| | | |       | + 75534 [batsman.geo ] Sure, but this implies that you keep the work for yourself (or your
| | | |       + 75551 [austin halos] Actually, it does. See my other message on this matter.
| | | + 75447 [james_b neur] Suppose, though, that you have a core application that allows the user
| | |   75448 [harryo qiqso] Of course, you could just tell the user that there's an open source library that might profitably be used *with* your product, which can be downloaded from your web site, where you generously provide a distribution point for ... a very select subset of :-) ... available open source libraries.
| | |   75509 [james_ james] Why not?
| | + 75427 [matt diephou] Actually, you're probably _not_ hiding your source code. Are you using
| | | 75431 [rgacote Appr] Well, no sooner do you complain about something and...
| | + 75435 [tim vegeta.a] Developers are aware of this in all language communities.  In
| |   75481 [rgacote Appr] I appreciate all the comments I've received on my earlier email.
| |   75525 [dcarrera mat] Ray,
| |   75537 [surrender_it] well, there are groups where just writing G,P and L in the  same line
| + 75506 [paul prescod] It seems to me that importing a module is a form of dynamic linking. I
| | 75542 [emschwar pob] Not at all; as copyright owner, you still have the right to license
| | 75582 [paul prescod] The discussion was about the use of GPLed components. My point was that
| | 75585 [emschwar pob] And my point is that they must do so under the terms of the GPL.  You
| | 75761 [paul prescod] We are in violent agreement.
| | 75803 [emschwar pob] You can replace the GPL component with a non-GPL component, or
| + 75540 [sean REMOVEM] If your program links to a GPL library or application using anything more
|   75655 [pbrannan atd] What about applications that can link with either readline or libedit?
|   75683 [sean REMOVEM] more
+ 75429 [list jimcain] I'm currently writing a Ruby library for accessing Oracle9i, and I've
threads.html
top