70358-84125 subjects 70736-71958

"Collage" of images -- more pychological randomness
70575 [hal9000@hy e] Lately I have posted an occasional coding challenge
+ 70576 [dcarrera@ma ] grid and images.  Are you interested in the specific solution for this
| 70577 [hal9000@hy e] I'm flexible.
| 70580 [dcarrera@ma ] Yeah, I didn't realize the random-looking scenario.  You see, the optimal
| 70586 [B.Candler@po] I thought *'s were 2-squares - should the fourth line end '1 1 1' ?
+ 70589 [ahoward@fs .] n_3x3 = 0 or n_3x3 >= 2
  70590 [hal9000@hy e] unit;

70578 [unet@re x. o] I notice that in Ruby 1.8 preview2, GC.start no longer
70581 [matz@ru y- a] % ri garbage_collect
70583 [hal9000@hy e] As for me, I still had to visit the docs before I
70592 [unet@re x. o] I think that was it.  Thanks for the help, guys.

Problems with Test::Unit and Ruby 1.8?
70584 [ptkwt@sh ll ] I've got some unit tests that run fine in 1.6.8, but don't work under

Urgent Assistance
70587 [federicksavi] Good Day,

FreeRIDE and irb
70593 [surrender_it] Is there some plugin somewhere to allow the use of IRB in FR the way
70600 [curt@hi bs c] I'm not aware of any such plugin. I think it has been mentioned as a
70639 [surrender_it] possibly useless, but it does'nt seem a wishlist...
70676 [curt@hi bs c] Hmmm, I sure didn't remember that! But I do know that nothing lasting came

Why is PHP so popular?  What can we learn from the PHP camp?
70594 [ptkwt@sh ll ] ....and what can we learn from PHP's rapid rise to success?
+ 70595 [rich@li hi o] that level of 'extra' functionality. Sure, it could be done.. but it has yet
| + 70616 [lone-star@ho] <?php php code ?>
| + 70617 [nemo@he lo r] that level of 'extra' functionality. Sure, it could be done.. but it has yet
|   + 70628 [ptkwt@sh ll ] I'll check it out... SE 17th and what's the cross street?
|   | + 70631 [rodrigo.berm] Actually The Mexican Independence is on  September 15th.
|   | + 70632 [nemo@he lo r] Why
|   | + 71892 [paul@pr sc d] PHP was designed specifically to solve a problem that a bunch of people
|   + 70681 [bob.news@gm ] "Chris Pine" <nemo@hellotree.com> schrieb im Newsbeitrag
+ 70596 [brian@co ln ] [ snipping a fair number of good points ]
| 70598 [prell@cf .r ] Good evening all,
| 71130 [spam@de k. k] <shameless plug>
+ 70604 [news-1@no pa] My guess, PHP has a lot of the same syntax as C, most functions (of
+ 70605 [B.Candler@po] I don't know if PHP was actually first with the concept of "embedding code
| 70817 [rasputin@sh ] A massive user base, for starters :)
| 70824 [bob.news@gm ] "Rasputin" <rasputin@shrike.mine.nu> schrieb im Newsbeitrag
+ 70606 [spectra@de i] That's easy!
| + 70609 [james_b@ne r] The P also refers to Perl and Python; LAMR hasn't the same ring.
| | 70612 [austin@ha os] And the best information comes up.
| + 70620 [mvondung@gm ] I actually think this is exactly the key.
| + 70849 [dwerder@gm .] This is the main reason why I'm still using PHP for web development. I
| + 70933 [dwerder@gm .] This is the main reason why I'm still using PHP for web development. I
+ 70608 [james_b@ne r] Libraries and lots of full-featured, professional-grade apps.
| + 70613 [jgreer@mi so] I agree, James, even though many of them seem to be one-off variants of
| + 70623 [kgergely@ml ] Yes, and we don't have good tutorials to make a web portal.
+ 70622 [mailinglists] Reasons for success
| + 70627 [B.Candler@po] StringIO? A pair of threads? IO.popen('-')?
| + 70630 [aredridel@nb] It's also far easier to port a C-based library to another functional
| | + 70641 [usenet@an re] Oh yes, that's true. I once tried to use non-blocking sockets... they
| | | 70668 [paul@sn ke n] That's an easy bandwagon to jump on, and (though you may be an exception),
| | | + 70672 [mwilson13@co] Put together a standard distribution of Ruby that permits someone with
| | | + 70698 [usenet@an re] I'm not only talking about exploits like buffer overflows, but also
| | |   + 70706 [idan@id ns .] This is no longer true, it is possible, but should only be enabled in
| | |   + 70713 [paul@sn ke n] Could you explain this a bit more?  I'm not clear on why having a
| | |     70730 [usenet@an re] This is what I meant. It is now disabled in the default distribution,
| | |     70732 [paul@sn ke n] That will happen by default whether you run Ruby/PHP as a module or as
| | + 71884 [jason_watkin] PHP got where it is mostly by being old, and not being perl. While we
| |   71885 [ptkwt@sh ll ] I'm wondering if perhaps we already have lots of documentation out there,
| |   + 71895 [james_b@ne r] I confess to not having the desired time to do all the things
| |   + 71904 [jason_watkin] Hrmm... good point. What I was talking about is more that the accepted open
| |     71955 [surrender_it] Some time ago (~a month) daemonnews.org (bsd ezine) posted a call for
| + 70682 [bob.news@gm ] Although I'd agree most of your statements, I'd like to challenge two of
|   70695 [mailinglists] Because a CGI script (or better any non application server like
|   + 70700 [paul@sn ke n] If you're going to make statements like that, you must expect to be
|   | 70715 [mailinglists] I'm sorry. I typed to fast. Of couse i mean MySqlAdmin, the PHP
|   | 70716 [paul@sn ke n] Ah.  Okay.  I didn't quite get how MySQL itself came into this.
|   | 70763 [surrender_it] completely OT: some hint about when arachnoRuby could be out ?
|   | 70794 [mailinglists] I'm sorry: i can't say anything. Its still in the business plan,
|   | 70851 [ptkwt@sh ll ] What is AracnoRuby?
|   | + 70868 [mailinglists] You can read about the plans at http://www.ruby-ide.com .
|   | | + 70873 [rodrigo.berm] I would buy it    !
|   | | + 70874 [lyle@us rs s] As do the screenshots for Arachno PHP, Arachno Python and Arachno Perl ;)
|   | |   70880 [mailinglists] Yes i know and i'm sorry for this.
|   | + 70869 [surrender_it] still vapor, but you can look at the Arachno* suite
|   |   70888 [ptkwt@sh ll ] so it looks like a commercial Ruby 'distro' with an IDE.  I had no idea
|   + 70729 [bob.news@gm ] "Lothar Scholz" <mailinglists@scriptolutions.com> schrieb im Newsbeitrag
|     70755 [emschwar@po ] I have to say that one of the things I like most about using Ruby for
+ 70636 [emiel@il fo ] Just wanted to mention that in all the replies so far no one has
  70637 [B.Candler@po] I would disagree there - I have never seen *any* Java application which is
  + 70640 [idan@id ns .] I have to disagree here, good enough JITing would provide execution speed
  + 70662 [aredridel@nb] Agreed.  I usually end up waiting for pages ending in .jhtml.. could be
  + 70826 [rasputin@sh ] Client side Java - particularly GUI code - is absolutely awful.
    + 70879 [hvtijen@h0 m] I beg to differ. You get many requests per second. So you need a thread or
    | 70894 [rasputin@sh ] I don't use MySQL, but I doubt that forking off a subshell to run a CGI
    | 70925 [B.Candler@po] Perhaps he was referring to Apache + mod_ruby? There is no fork involved to
    + 70887 [B.Candler@po] I've seen some *real* bad server-based Java/servlet/Tomcat applications -

Pure ruby stream compression library?
70597 [lists@za a. ] Anybody know of one? Compression speed or ratio is not important. Need
70633 [dcarrera@ma ] -  Why do you not want external libraries?
+ 70634 [dcarrera@ma ] Oh, and one more question, do you only need it to work on Ruby strings?
+ 70708 [lists@za a. ] The application is to likely be deployed on a shared hosting server
  70710 [B.Candler@po] If it's a shared hosting server that lets you upload Ruby scripts, then I
  70774 [ jupp@gm .d ] Saluton!
  70786 [B.Candler@po] So, compile whatever you want on another box and upload it. Shared libraries

welcome to our website
70599 [sophia-zhang] Dear madam/sir,

Problem using FXFileStream
70603 [thomas@th ma] I'm having problems using FXFileStream in FXRuby. I want so save an
70614 [lyle@us rs s] I don't see anything wrong with your code, but I also don't understand
70626 [thomas@th ma] This is exactly what I was wondering about.
70832 [lyle@us rs s] Yes, I just confirmed this under Windows 2000 as well, but I still don't

70611 [alexalie@o2 ] From Mr Alex Kargbo Alie

ruby and mdk 9.1
70619 [egius.falk@t] with ruby. But when i try to install fox in Mandrake 9.1 i'm fall in
70621 [mike@ra do .] I have had reasonable success on Mandrake 9.1, but I compile everything
70807 [egius.falk@t] What is CVS?
+ 70821 [jgreer@mi so] CVS = Concurrent Versions System.
| 70949 [egius.falk@t] Thank you, Giuseppe.
+ 70852 [mike@ra do .] CVS is the source code control system used by the Ruby developers as a

Ruby Code Kata
70625 [marick@te ti] I'm getting together a bunch of people with varying degrees of Ruby
70629 [ptkwt@sh ll ] Brian,

Are you still swapping links?
70635 [linktrading@] Im not sure if you have a link page but if you do could we swap?

[Q] Binary data
70638 [dcarrera@ma ] Is it possible to store and manipulate binary data in Ruby?
+ 70642 [batsman.geo@] Bit operations w/ Fixnum, then Array#pack.
| 70643 [dcarrera@ma ] Could you explain to me how to use Array#pack?  PickAxe doesn't contain
| 70653 [B.Candler@po] It's in the Pickaxe, you just have to look a bit...
+ 70644 [billk@ct .c ] As I understand it, strings in Ruby store binary data, and can
| 70647 [djberge@qw s] x = "hello".unpack("b*").to_s ->
+ 70649 [ahoward@fs .] #!/usr/bin/env ruby
+ 70680 [laurent@da a] Array#pack

Unix timestamp -> Time object
70645 [usenet@an re] I get a DATETIME field from a MySQL DB and am looking for an easy way to
+ 70704 [flifson@cs u] Sounds like a job for the  ParseDate module, which is in the standard
+ 70792 [google@to pa] SELECT it from MySQL as a numeric field, then use Time.at

timestamp -> formatted date & time
70646 [usenet@an re] I get a DATETIME field from a MySQL DB and am looking for an easy way to
70650 [ahoward@fs .] don't know if DATETIME is numeric or text (i use postgresql) but convert to a

Sell NI-MH battery
70648 [sam@ru y- an] ...

[Q] How do you use Array#pack?
70651 [dcarrera@ma ] I know now that I need to use Array#pack, could someone please tell me
+ 70654 [gfb@to es ft] Most useful information contained in String#unpack description.
+ 70656 [billk@ct .c ] I see Brian's already replied with a link to the on-line
+ 70657 [ahoward@fs .] -a
+ 70663 [dooby@d1 .k ] The table of template characters for Array#pack may be found

A wishlist for a "Ruby Standard Library"
70652 [aredridel@nb] * REXML
+ 70655 [B.Candler@po] Perhaps ruby-sumo is a starting point? It's in the RAA. Doesn't look like
| + 70660 [aredridel@nb] Not quite included -- it's a separate package to compile and install.
| | 70692 [B.Candler@po] I meant 'included in ruby-sumo'
| | 70712 [aredridel@nb] Aha!  I had no idea that Ruby-sumo was that sort of "fat" distribution.
| | + 70714 [rodrigo.berm] Just one doubt, who is in charge to mantain the  ruby-lang.org  ?
| | | 70735 [aredridel@nb] This is true -- someone would have to actually /do/ it.  I'll not commit
| | | + 70747 [ptkwt@sh ll ] What is PLD?
| | | | 70756 [aredridel@nb] Sorry for the acronym -- Polish[ed] Linux Distribution.
| | | + 70830 [matz@ru y- a] We, www-admin@ruby-lang.org are doing the job.  See [ruby-talk:70685].
| | | + 71147 [qrczak@kn .o] Huh? PLD does carry Ruby.
| | |   + 71156 [childNOSPAM@] Yes, but only Ruby itself and very few libraries.
| | |   + 71162 [aredridel@nb] Only a couple packages -- everything else has to be installed manually,
| | + 70749 [ptkwt@sh ll ] raainstall
| + 70673 [mwilson13@co] [snipped many wonderful things.]
|   + 70711 [aredridel@nb] The problem with this is that in a shared-hosting environ, the chances
|   + 70722 [gsemones@tr ] To play devil's advocate here, I'd rather have more of a CPAN type of
|     + 70731 [usenet@an re] I think it would be good to have a package with only the interpreter
|     | 70733 [hal9000@hy e] There are multiple issues here as I see it.
|     | 70734 [aredridel@nb] I agree here -- have a way to strip the distribution to minimal size,
|     | 70819 [jgreer@mi so] [ I've had my morning coffee and I'm feeling a bit verbose... bear with
|     | 70899 [aredridel@nb] Pardon my somewhat off-topic reply, but package management is something
|     + 70748 [ptkwt@sh ll ] Same here.  But I think that part of the reason we're moving toward a
+ 70661 [ahoward@fs .] * YAML (it's almost insane how much better, for some things, this is than xml)
  70693 [0bz63fz3m1qt] Yes I like this voting idea :-)

Standard Library Idea
70659 [aredridel@nb] I haven't checked to see how easy this would be yet, but I was thinking
+ 70666 [ptkwt@sh ll ] Agreed, I've been thinking for some time now that Ruby would make a good
+ 70671 [mwilson13@co] For Ruby and Objective C, there is also RubyCocoa, by Fujimoto Hisa. See

Variable/Method ambiguity
70664 [bystr@ma .c ] ...
+ 70665 [gsinclair@so] Use self.name = "aaa" to call the method.  I'll leave it to others to
+ 70667 [dblack@su er] I don't think it's inconsistent.  I think it would be inconsistent,
| 70677 [bystr@ma .c ] These 2 cases would work the same, as actual execution happens after
+ 70670 [ahoward@fs .] use yaml - love yaml
| 70678 [bystr@ma .c ] I will consider using YAML any time soon, however in my case
+ 70683 [B.Candler@po] I don't. I think you want Ruby to be 'clever' in examining the object to

[Request] Something Like Dr. Scheme for Ruby
70674 [mwilson13@co] In my never ending quest for knowledge, I decided to learn scheme,

Suggestion: String#pack
70675 [austin@ha os] I have been working on some code recently where it would be very
+ 70684 [matz@ru y- a] Pack templates A, a, Z, B, b, H, h, u, m, P and p takes string
+ 70691 [B.Candler@po] Well, there are many other data types that you might want to pack (Fixnum
| 70707 [djberge@qw s] Be sure to read the comments.  Anyone want to submit a new RCR?
+ 70709 [dblack@su er] I approach this with trepidation, because (un)pack is one of these
  70761 [austin@ha os] I have to look up the template meanings most times, myself, but I
  + 70766 [B.Candler@po] OK, understood. But I'm sure you know to beware the disease known as
  + 70781 [sroberts@un ] packee = []

[ANN] www.ruby-lang.org article submitter wanted
70685 [matz@ru y- a] As you may know, http://www.ruby-lang.org/ is now blog-like style
+ 70688 [botp@de mo t] I would be happy to join but I am a nuby and has not attained the
+ 70740 [mwilson13@co] I would like to do so.
| 70742 [jim@fr ez .o] I looked at the site but did not see  how to submit articles.
| 70831 [matz@ru y- a] There's "update" link at the bottom of the left column, but you have
| 70876 [ jupp@gm .d ] Saluton!
| 70881 [emschwar@po ] Because stylesheets, as originally envisioned by Netscape, were
+ 70762 [austin@ha os] Certainly. What sort of articles and how often would updates be

case sensitive glob?
70694 [xrfang@ho ma] I found that Ruby dir glob (Dir["*.EXT"]) is case sensitive even on

[fxruby] create children
70696 [0bz63fz3m1qt] I want to add some widgets outside the constructor.
+ 70703 [0bz63fz3m1qt] I found out myself..  well inheriting from FXHorizontalFrame
+ 70720 [lyle@us rs s] When you call create() on an FXComposite widget (such as FXTabBook) it
  70724 [0bz63fz3m1qt] Thanks :-)

Module as namespace
70697 [jim@fr ez .o] I was wondering, is there a difference between the following
70702 [nobu.nokada@] In the former case, a constant defined in Fred can not be

SWIG and Ruby  (Was Re: SWIG on Solaris problem)
70699 [jim@fr ez .o] Ok, I have been reading the swig docs and I have
+ 70717 [putsch@mx m.] In a nutshell, yes. Basically, the C data structures used by
| 70723 [lyle@us rs s] I *was* wondering whose API Jim was working with ;)
+ 70719 [lyle@us rs s] We should probably add a standard typemap for converting a Ruby Array of

Changing interpreter options during runtime
70701 [jim@fr ez .o] Can the interpreter options be changed during runtime?
70705 [nobu.nokada@] Yes.

%w(foo) v.s. ['foo']
70718 [ahoward@fs .] rubyists-
+ 70721 [dcarrera@ma ] - year, month, day = %w(year month day).map{|k| cgi[k]}
| 70725 [gfb@to es ft] %w{year month day} and %w(year month day) are the same thing, you can use
| 70726 [dcarrera@ma ] I didn't know that.  Ruby rocks.
| 70728 [gfb@to es ft] I can't imagine either. It must be the same.
+ 70727 [matz@ru y- a] No idea.  Could you show us problem reproducing code snippet?
  70743 [ahoward@fs .] this is the offending script - i'm sure the problem must be elsewhere, i just
  + 70745 [gfb@to es ft] Your script has "%(year month day)" instead of "%w(year month day)". I
  + 70746 [gfb@to es ft] By the way, I just verified in IRB that %(year month day) is actually "year
    + 70750 [hal9000@hy e] "year
    + 70752 [dblack@su er] That's gotten quite a lot of play lately; you must have taken a