7335-8382

7077-7781 subjects 7484-8460

^ Image manipulation in Ruby?
7335 [badassgeek e] I'm a newbie to Ruby, and I'm wondering if there's a way to manipulate

^ alloca() doesn't seem to be defined under WinNT builds of ruby 1.6.1
7341 [jsmall laser] I have Ruby 1.6.1 built configured for WinNT using VC++.

^ Different id's for the Object meta class?
7345 [jsmall laser] In a Ruby extension if I execute the following three lines I get
7347 [aleksi.nieme] I know nothing about these things, so I'm just guessing. Beware.
7350 [aleksi.nieme] John Small also commented me privately, but I noticed some errors in my
7431 [decoux moulo] Perhaps you don't want to know (it will be useless) :-)))
7432 [decoux moulo] Not really. rb_to_id() work only with a symbol, if you try

^ Ruby performance question
7354 [EricCrampton] key_1=val_1,key_2=val_2,...key_n=val_n
+ 7356 [aleksi.nieme] I was doing just about the same (I had '&' as a pair separator), and had to
+ 7357 [Dave Thomase] What happens if you disable garbage collection before you start, and
  7358 [EricCrampton] I'm (generally) reading more data than could fit in physical memory,
  + 7360 [aleksi.nieme] No wonder, although I can't show any math to back me up (I'm shamed of my
  + 7361 [Dave Thomase] OK, this is tacky, and probably not worth it, but it knocks about 15%
    7367 [dblack candl] (Oh, for Array#to_h!  Wouldn't: "h = line.to_h" be nice?)
    + 7368 [dblack candl] I mean: h = a.to_h  (even better :-)
    + 7371 [joe vpop.net] Very cool David!
      7376 [dblack candl] Right y'are.  I'd assumed that it was not doing the tr! that had
      7384 [phasis hanan] def dt_readfile
      7394 [joe vpop.net] It is faster, but I don't think it is putting anything in the
      7398 [joe vpop.net] color me wrong.  I must have had a typo when testing.  It sure does
      7401 [joe vpop.net] I take it back (again).  it does not appear that an array
      + 7403 [Dave thomase] But you can use the [] constructor
      | + 7406 [joe vpop.net] Ahhh, I've got to read up on that asterisk thing.
      | | + 7407 [Dave thomase] And a wonderful example of a great thread in which four or five people
      | | + 7408 [Dave thomase] You could speed this up a bit more... you don't need the h.clear
      | | | 7410 [joe vpop.net] Righto!
      | | | 7415 [gotoken math] I should write terms about NO WARRANTY :-)
      | | + 7564 [hgs dmu.ac.u] while line = file.readline
      | |   7565 [decoux moulo] If you want to use scan() you must not use \A(?:)+\Z otherwise you have
      | |   7568 [hgs dmu.ac.u] I added those because I only seemed to get the last value anyway.:-)
      | |   7569 [decoux moulo] pigeon% cat b.rb
      | + 7427 [dblack candl] Oh yeah :-)  Now I remember the train of thought that led from Hash[]
      + 7426 [dblack candl] The argument to Hash.new becomes the default value for non-existent

^ FYI: "Why I Hate Advocacy" by Mark-Jason Dominus
7359 [schneik us.i] FYI -- I thought this might be applicable to Ruby Brains as well. :-)

^ Ruby IDE (again)
7365 [dsafari para] I'm going to bring up the topic of a Ruby IDE yet again (as I notice it
7391 [kevins14 pac] I'm going to bring up the topic of a Ruby IDE yet again (as I notice it
+ 7393 [dsafari para] Comments are below.
| 7400 [kevins14 pac] Nope. I just want the VC++ feature where you can point to the line
| 7402 [dsafari para] Ok I gotcha.
| 7416 [kevins14 pac] is done in a language I
| 7422 [dsafari para] Thats an interesting point of discussion. Would it really be slow? Has anyone
| + 7425 [schneiker ju] the
| + 7430 [steve deaf.o] I'm following the discussion, just not saying much because I'm not sure
|   7437 [RichardASchu] Does Gtk+ provide a sophisticated table widget, for
|   + 7440 [rcalco corte] Although I'm (very) new to Ruby, I have some experience building IDE's. I
|   | 7447 [mjais web.de] will CLX open source and when which license will be used?????
|   | 7450 [rcalco corte] The honest answer is a.) I don't know, and b.) come to think of it, probably
|   | 7457 [mfp students] See www.borland.com/kylix for details, but quoting a Nov 13 article
|   | 7478 [schneiker ju] IDE;
|   | 7482 [elderburn mi] Stirctly speaking, nothing in the GPL precludes making money from software
|   + 7451 [jweirich one] I don't know what you would call *sophisticated*, but it does supply a
+ 7537 [jcusickc hom] Not being much of a programmer (more a hobbyist), I'm not sure

^ GUIs for Rubies
7366 [schneik us.i] Thought I'd switch the subject line to the subject at hand.
+ 7372 [RichardASchu] You may be right, but before we jump to closure on this
| 7392 [hal9000 hype] of
| 7399 [kevins14 pac] FOX looked ok at a glance when I was evaluating GUI packages for C++
| 7405 [yashi yashi.] I don't know why we need a framework inside of a framework.  Ruby
+ 7375 [neilh scinti] The benefit from Mozilla here is that providing XPCOM support in Ruby
+ 7380 [Dave thomase] Before we shut the door, I wouldn't mind some discussion on FOX. I've
| + 7409 [elderburn mi] I just DL'd FOX as well, but won't get to playing with it until Saturday
| | + 7411 [matt msg.ucs] using an X server from Tenon called XTools.  so, GTK on OSX isn't a
| | + 7428 [Dave Pragmat] I agree 100% with this sentiment. However, it may be that there are
| + 7412 [mcbreenp cad] On NT the FOX DLL shows up as a .pyd file, but windows claims it is an
| + 7414 [patrickdloga] message news:m2ae9x12vu.fsf@zip.local.thomases.com...
| + 7421 [schneiker ju] "Dave Thomas" <Dave@thomases.com> writes
| | 7429 [Dave Pragmat] I'm not convinced by those arguments either. As we're wrapping it, we
| | + 7433 [jweirich one] I've done a medium sized project using GTK in Eiffel.  The Eiffel
| | | + 7434 [chadfowler y] I'm with Jim on this one.  GTK+ (and they underlying
| | | | 7435 [Dave Pragmat] Just to make sure we're all on the same page here, could someone
| | | + 7438 [falis gnat.c] Right.  The same holds for GtkAda (libre.ACT-Europe.fr), which has a
| | |   7439 [chadfowler y] At a very high level, you have GLIB, which defines
| | + 7480 [schneiker ju] I think that's perfectly fine (actually I think that's *great*)--but that
| |   7494 [Dave Pragmat] I'd see the InstallShield working slightly differently in
| + 7423 [schneiker ju] You mean play from C++ or from Python? Or were there self-contained demos in
+ 7444 [js adept.co.] Is there a module for ruby like python-glade?
  + 7446 [yashi yashi.] I think DaVinci is writing it.  there is a toy module that I
  | + 7448 [kevins14 pac] wxWindows? One drawback
  | + 7498 [bombadil wan] My initial intention is writing wrapper for libglade. First investigation
  |   7578 [hgs dmu.ac.u] We seem to be discussing which GUI to tie ruby into, to ensure
  |   7599 [schneik us.i] # We seem to be discussing which GUI to tie ruby into, to ensure the
  |   7605 [schneik us.i] I've changed the subject line to reflect the current topic.....
  |   7612 [schneik us.i] (Changed subject line.)
  |   + 7614 [dsafari para] "I'd like to see this too"
  |   | 7617 [schneik us.i] Coincidentally, I was wondering the same thing myself. Here is what I
  |   | + 7621 [Dave Pragmat] Please. I'm sitting on about 70 page proofs right now,so it might be
  |   | | 7624 [schneik us.i] # Please. I'm sitting on about 70 page proofs right now,so it might
  |   | | + 7627 [Dave Pragmat] Not that the two are necessarily correlated...
  |   | | | + 7628 [ben_tilly ho] Dave Thomas <Dave@PragmaticProgrammer.com>
  |   | | | | 7631 [Dave Pragmat] Well, that's a wonderful way to waste four hours. First I go through
  |   | | | | 7644 [sent quality] In one sense, that's what each of these cross-
  |   | | | | 7686 [hgs dmu.ac.u] The windows metaphor is pretty standard.  They all have
  |   | | | + 7630 [dblack candl] But I don't think Unix is.  Or is that distinction not (legally)
  |   | | + 7650 [elderburn mi] ruby?
  |   | |   + 7654 [ben_tilly ho] Just lucky.  I just remembered an O'Reilly book complaining about
  |   | |   + 7660 [matz zetabit] Call it Ruby please.
  |   | |     7662 [schneik us.i] #
  |   | + 7649 [falis gnat.c] I've had a copy of RH7 release for over a month.
  |   + 7693 [ljohnson res] I know that Jeroen would welcome work on a Macintosh port, we just don't
  |     7713 [jens irs-net] do you mean GDK ? GTK is the toolkit and GDK it's underlying
  |     7728 [sent quality] You are correct that GTK+ hides GDK. I was
  |     7730 [sent quality] But they have some pretty different ideas, too.
  |     7756 [hgs dmu.ac.u] Does the Strategy pattern help here?
  |     7775 [jshields Art] For me, it is really important for the toolkit that I use to create
  |     + 7791 [schneik us.i] #
  |     | 7810 [MICHAEL.W.WI] (At Conrad's request, I'll try to respond after the actual post
  |     | 7813 [jshields Art] #
  |     | 7816 [schneik us.i] # (At Conrad's request, I'll try to respond after the actual post
  |     | 7819 [jens irs-net] Perl/Qt is not maintained anymore. At least it seems like that.
  |     | + 7820 [ben_tilly ho] Perl's lack of stable threading makes it unsuitable for all
  |     | | + 7822 [schneik us.i] Ben Tilly writes,
  |     | | | + 7825 [Dave Pragmat] Is that an offer to write it? ;-)
  |     | | | + 8210 [claird starb] Mr. Tilly has mentioned its reliance on events rather
  |     | | + 8209 [claird starb] I don't get your point.  I agree that Perl's threading
  |     | + 8208 [claird starb] There's some strange cultural clash involved in Perl/wxWindows.
  |     + 7838 [tonys mysple] this true for tk from v8.0 onwards (i believe it's 8.0 and later)
  |       7879 [ben_tilly ho] The link to http://www.bitmover.com/talks/cliq/slide01.html
  |       + 7902 [schneik us.i] Dave Thomas writes,
  |       | + 7909 [schneik us.i] Ben Tilly writes,
  |       | | + 7912 [Dave Pragmat] Because GUI work implies stuff in the client domain. For developers,
  |       | | | 8212 [claird starb] A few unsolicited comments:  first, all honor to the
  |       | | | 8220 [Dave Pragmat] And don't take this as me being negative. I just don't want to jump the
  |       | | | 8226 [schneik us.i] # >
  |       | | | + 8229 [ben_tilly ho] Well judging from the rants and complaints on p5p,
  |       | | | | 8231 [sent quality] If I understand our terminology here, wx has
  |       | | | | 8260 [ben_tilly ho] I am opposing multi-threading to cooperative
  |       | | | | 8269 [claird starb] You're right.  I confront that sort of thing
  |       | | | | 8382 [schneik us.i] to
  |       | | | + 8265 [claird starb] Thanks, by the way, for the privilege of
  |       | | + 7916 [steve deaf.o] What are the chances of using the Perlmonks code to set up the same
  |       | |   7918 [ben_tilly ho] Very good to excellent.  The PerlMonks code is based on
  |       | + 7910 [Dave Pragmat] I've been thinking about that. There's already a Wiki-like thing
  |       |   8115 [ljohnson res] Dave,
  |       |   8119 [Dave Pragmat] Some people behind firewalls report not being able to get out to port
  |       + 8211 [claird starb] [lots of true and
  + 7461 [elderburn mi] AFAIK not as yet (but maybe in progress?) At any rate, glade uses an xml .glade
    7473 [schneiker ju] # >

^ building ruby on an SGI
7369 [raja cs.indi] Has anyone successuflly built Ruby on an SGI under Irix?
+ 7513 [raja cs.indi] I tried hand patching a few of the .c files but it started getting out of
+ 7524 [matz zetabit] Show me your config.log file.

^ BUG? IO.seek conflicts with IO.sysread
7370 [rread datari] I'm writing a simple tool to test a disk driver.  I want to write lots
7396 [matz zetabit] Hmm, the simple case like
7472 [rread datari] Yes, I should have mentioned it wasn't a problem until about the

^ Getting name of OS ruby was built on
7374 [ptkwt user2.] Anybody know how I would be able to get a string that contains the name of
+ 7378 [andy toolshe] require 'rbconfig'
| 7486 [ptkwt user2.] Thanks!  That works.
+ 7381 [Dave thomase] The constant RUBY_PLATFORM gives you the platform used to build the
+ 7388 [dsafari para] Perhaps this is what you want?

^ sending messages from Perl to Druby
7377 [ptkwt user2.] I just received the "Ruby Programming" book today.  I tried out the
7382 [Dave thomase] You could use XML, or CORBA, or transport XML over HTTP and make the test
+ 7385 [chadfowler y] How about SOAP?  There's already some work done on
+ 7487 [ptkwt user2.] Actually there are no firewall issues.  All of the machines are connected

^ finding the file size
7383 [hensh math.m] Here's a quick question.
7386 [Dave thomase] The class method is there because you don't have to open a file to
7462 [matju cam.or] You mean File.stat(name).size right? File.size(name) is pretty much
7493 [Dave Pragmat] File.size("/etc/passwd")		# => 2271
7724 [matju cam.or] You say the class method (.size) is there because you don't have to open a

^ Off topic: numbered Subject headers on this list
7404 [renaud waldu] Are the numbered "Suject:" headers on this list absolutely necessary?
7413 [matt msg.ucs] It's not ideal for "mutt" either.  Subjects are displayed for all messages
+ 7424 [schneiker ju] this
+ 7445 [js adept.co.] That is why I terminated my subscribtion to the mailing list.  I am
| + 7475 [matt msg.ucs] I've become so frustrated with USENET that I've practically given up on it.
| + 7496 [RichardASchu] Is there a one-one relationship between the mailing list and
|   7553 [schneik us.i] Richard Schulman writes,
+ 7459 [huber alum.w] set reply_regexp=\
  7474 [matt msg.ucs] Much better.  Many thanks.  :)

^ Is Ruby interpreted or byte-compiled?
7417 [brannon lnc.] Is Ruby interpreted or byte-compiled?
7420 [crouton weat] What you mean by the words interpreted / byte-compiled?

^ Re: Smalltalk and Python
7418 [aleaxit yaho] I'd put it another way: the _models_ we build in our minds

^ Unicode Issues (was: "A Java Developer's Wish List for Ruby")
7436 [RichardASchu] Matz
7443 [matz zetabit] Not important yet.  But future addition to JIS standard will probably
+ 7488 [neilh scinti] Are you planning on a string being a sequence of differently encoded
| + 7491 [Dave Pragmat] And will we be able to set up syntax tables a la emacs?
| | 7504 [matz zetabit] Regexp shall be encoding aware, so that \w etc. will be treated
| + 7503 [matz zetabit] The latter.  Sorry.  Switching encodings in the middle of strings will
+ 7515 [RichardASchu] Processing overhead and developer pain is considerable in
  7523 [matz zetabit] Yes, possible future is that Unicode rules, except a few field where

^ question: 'A'..'k'
7449 [matju cam.or] k=0; ("A".."k").each{|x|k+=1}; k
+ 7452 [decoux moulo] why 11 ?
| 7468 [matju cam.or] Oops, nearly a brain fart. That's not 11 I wanted to write, it's 37, that
| 7469 [joe vpop.net] Thanks to Mark for explaining that ? makes it a character.  The
| 7499 [decoux moulo] pigeon% ruby -e 'p "()".succ'
| 7509 [ben_tilly ho] Cute. :-)
| 7510 [decoux moulo] Yes, try this
+ 7453 [gotoken math] k=0; ("A".."k").each{|x|p x; k+=1}
+ 7454 [joe vpop.net] It looks like ranges can't "jump" from uppercase to lowercase.
+ 7455 [ms iastate.e] k=0; (?A..?k).each{|x|k+=1}; k
  + 7456 [decoux moulo] Try
  + 7460 [joe vpop.net] Can you explain why that works please?
    + 7463 [ms iastate.e] ?A specifies the single character 'A' as opposed to a string.  These are
    + 7464 [huber alum.w] This works because ?<char> is the ASCII value, not the string, so
      7465 [ben_tilly ho] I would assume that is because both Perl and Ruby use the same

^ manuals
7458 [lewb007 emai] I am a C++ developer who likes what I've seen of Ruby, but can't seem to get
7466 [kevins14 pac] Try right-clicking on the link, and when the
7467 [lewb007 emai] Kevin, That is what I did (as usual for .gz files) with the VRML result.

^ flatten_by(n)
7471 [dblack candl] In honor of all the stuff about flattening in the thread ostensibly
7476 [ben_tilly ho] Yup, watching...
+ 7477 [dblack candl] user     system      total        real
+ 7505 [dblack candl] And, what's more....
  + 7507 [decoux moulo] "I know I'm on the right track when by deleting code I'm adding
  + 7508 [dblack candl] def flatten_once
    7511 [dblack candl] Yes.  I can.  It doesn't handle nil correctly; it compacts
    7521 [dblack candl] I don't know about the rest of you, but I've learned a lot today about
    7526 [ben_tilly ho] Strings turn into arrays of characters?  I think I
    + 7531 [dblack candl] String#to_a splits the string (inclusively) at $/ (\n by default).  To
    | 7549 [aleksi.nieme] To me idiom str += other looks slower than str.concat other. The reason is
    | 7559 [matju cam.or] a.concat(b) could mean either "concatenate b in a" or "concatenation of
    + 7554 [steve deaf.o] irb(main):024:0> "".to_a             -=> []
      7555 [schneik us.i] David Alan Black writes,
      + 7557 [barry_shultz] use the wiki for this?
      + 7567 [dblack candl] I would love to see something like that -- a sort of dynamic Ruby
      + 7572 [Dave Pragmat] An excellent idea, but I'm not sure it fits comfortably with the
        7574 [ben_tilly ho] I strongly suspect that in the end the best solution will turn
threads.html
top