63841-64686

63614-65935 subjects 64070-64716

[OT] Re: Error in Complex
63841 [batsman.geo@] We do already use i for current intensity.

Re: %, % revisited
63851 [batsman.geo@] In Ruby <<-EOF means that EOF can be indented.
63852 [dossy@pa op ] Ah, so this is where Ruby's here-doc implementation deviates from the
+ 63854 [transami@tr ] oh yea! add more PERLisms to the fire! ;-)
+ 63855 [dblack@ca dl] But with a chance to show off how cool the non-need for /gm can be :-)
  63856 [transami@tr ] str = <<EOE.tabto(0)
  63967 [dossy@pa op ] I'd rather control the add-on processing than bloat the lexer to
  63973 [transami@tr ] Nobu, did your patch bloat the parser?
  63976 [nobu.nokada@] Well, 139 lines larger, including both styles of '<<|' and

Probs with 1.8.0 on Solaris 2.9
63860 [hgs@dm .a .u] I got a failure with yesterday's snapshot of ruby 1.8.0.
63867 [decoux@mo lo] With this
63918 [hgs@dm .a .u] OK, maybe it was fixed between 4 and 5.....<so I get the latest
+ 63964 [matz@ru y- a] Oops, replace ".5" with "0.5"; I changed the syntax.  I updated
| 63985 [hgs@dm .a .u] Thank you.  I'll try again.
| 63988 [hgs@dm .a .u] So I did:  I regot the snapshot but it is -06 (When it is
+ 63983 [decoux@mo lo] Well, rubicon must be modified but there are problems specific to Solaris

How do I do automated testing of class dependencies?
63861 [sera@fh an .] I've been using RubyUnit for my automated testing, and I'm happy with
64000 [sera@fh an .] To follow up on my own question: I ended up writing a script to take

Blogging software
63862 [martindemell] Anyone done any work on a ruby-powered weblog?
+ 63864 [rich@in oe h] James Britt's site (http://www.rubyxml.com/) is powered by Blogtari,
| 63875 [daniel@ci cu] Anyone know how to get in touch with him? His RSS feed returns a 500 Server error...
| 64066 [jbritt@ru y-] Sadly, there are number of problems with the site, and I haven't the wherewithal to fix things at the moment.  I hope to get settled
+ 63868 [chrismo@cl b] ruby-lang.org uses tdiary, link at the bottom of the ruby-lang home page.
| 63871 [mike_thomas@] I'll second the ref to James Britt's blogtari.  I'm working on a
| 64065 [jbritt@ru y-] www.jamesbritt.com
+ 63890 [dave@pr gm t] pragprog.com/pragdave is Ruby powered (thinking about it, it should
  63945 [wjl@ic ca er] Any chance that you'd make the code availible? It would be interesting
  63998 [dave@pr gm t] Cheers
  64004 [wjl@ic ca er] Very cool. =) I actually am most interested in your CVS stuff. I'm

VIRUS NOTIFICATION
63866 [anti-virus@d] ################# VIRUS NOTIFICATION #################

Bug in dbd_mysql
63873 [dave@la dr t] There is a bug in the dbd_mysql package.
63935 [paul@sn ke n] It'll be fixed soon.

pipe.close -> Broken pipe/DRb madness
63874 [ahoward@fs .] system ruby'ists-

Forum/community sites la phpbb2 in/with Ruby?
63876 [feldt@ce ch ] Related to the blogging software request does anyone know of some

warning: split (...) interpreted as method call
63880 [lists@de on ] #!/usr/bin/ruby -w
63882 [gsinclair@so] - you asked for it (with the -w flag)
63883 [lists@de on ] ah, thanks much. I thought the parser would just take care of that

Returning a class.
63892 [dcarrera@ma ] Is it possible to generate a class at run-time and return it?
63896 [nemo@he lo r] Is it possible to generate a class at run-time and return it?
63900 [dcarrera@ma ] $ irb

[ANN] sys-uname 0.4.0
63903 [djberge@qw s] I'm happy to announce the release of sys-uname 0.4.0, an interface to

setting an instance variable
63904 [nemo@he lo r] If I have a string `str', is there a way to set an instance variable with
63958 [nobu.nokada@] No methods like Module#const_set for instance variables.

IMPORT REQUEST.
63905 [SANNIAHMED@W] DR.SANNI AHMED

The way of the Gentoo
63906 [mikkelfj-ant] I recently tried (as in not yet succeeded) to step into the world of Linux,
+ 63910 [fmccor@in or] Yes, much of it is in Python.
| 63914 [transami@tr ] presto! ;0)
| 63930 [mikkelfj-ant] could you foward to ruby-talk? some people might like to know this.
| 63939 [bard@pr sm l] I'm setting up a project at Sourceforge.  It is taking a little
| 63957 [mikkelfj-ant] If you write some informative documentation on your new sourceforge page, I
| 64452 [citizen428@c] Seeing my favourite Operating System (Gentoo) an my new favourite
+ 63915 [alwagner@tc ] For even more control, next time you might try LFS.
+ 63919 [ysantoso@je ] This has been hashed out numerous times in this list. There are
| 63936 [mikkelfj-ant] Actually I can only see to languages for a Ruby installer: Ruby and C. On
+ 63920 [ptkwt@sh ll ] Gentoo is wonderful - I'm typing this on a Gentoo'ed laptop.  However, it
| 63929 [mikkelfj-ant] True, it's beside the point because isolated from the other Linux stuff, the
| 64218 [roberto@RE O] Nope, no kernel rebuild for sound under FreeBSD. Just load the snd_pcm
| 64229 [mikkelfj-ant] kernel
+ 63993 [surrender_it] <snip/>
  64219 [roberto@RE O] Yes and no. Yes it can work that way but the logic in names is fixed (by a
  64227 [transami@tr ] speaking of Gentoo. i am a long time Debian user, but i am tired of being so
  + 64228 [dsafari@pa a] My personal experience with Gentoo has been great. I want to try Lunar out as
  + 64232 [ahoward@fs .] our group is looking at moving from redhat to gentoo.  my sysop swears by it.
  | 64236 [wmoxam@kl ck] well?
  + 64237 [mikkelfj-ant] well?

What does IRB's "=>" show?
63926 [dcarrera@ma ] I don't quite understand what irb's "=>" is showing.  In particular, I'd like to
+ 63927 [drbrain@se m] d like to=20
| 63933 [dcarrera@ma ] Thanks.  That was easy enough.
| 63950 [gsinclair@so] =>>
+ 63928 [gfb@to es ft] It calls 'inspect' on the result of an expression and displays it. You can

RUNIT and fork
63931 [ahoward@fs .] runit testers-

Private lvalue methods unusable?
63938 [steven.smoli] I'm learning Ruby, and trying to grasp the non-declarative concept with
+ 63949 [gsinclair@so] Hmmm.... so self.dollars = 100 doesn't work, eh?  Only answer I can
| 63956 [steven.smoli] It's as ugly as sin, but it works as advertised. :-)
| + 63960 [gsinclair@so] There's a newcomers list that documents gotchas, but it doesn't
| | 63972 [billtj@y. lu] Are you sure this belongs in the newcomers list?  I never use
| | 63975 [gsinclair@so] Not sure, no, since this is the first time it has come up.  It is
| + 63984 [dblack@ca dl] Only Matz can tell you, because POLS in Ruby is specifically defined
+ 63965 [matz@ru y- a] No way, except using "send", e.g.
  63966 [dim@co eb tc] I'm assuming there's some good reason for this that isn't apparent to (at
  + 63969 [matz@ru y- a] "private" does mean "can only be called without explicit receiver".
  | 63979 [nobu.nokada@] It it a bad idea to relax the restriction, "can only be called
  | 63981 [matz@ru y- a] Hmm, interesting.  Let me consider this issue.
  | 63982 [nobu.nokada@] Forgot an example.  Error if the receiver isn't literally
  + 63970 [steven.smoli] Private methods can't have an explicit receiver (i.e., you can't do

[JT] Re: Pickaxe book
63944 [mike@os n. r] Aha!  Mine one just arrived after a month and a half astray!

Re: Forum/community sites ? la phpbb2 in/with Ruby?
63946 [mike@os n. r] Umm... yes.  We're standing in front of osdn.org.ua and wouldn't

Re: Blogging software.  RubyJournal
63952 [ggirton@ma .] I use rubyjournal for my daily weblog, thedailychannel.com.

drb and signals
63963 [ahoward@fs .] if one has an object with a method similar to
64003 [drbrain@se m] Where is this getting locked?
64005 [ahoward@fs .] try_lock : ref.try_lock -> true or false
64009 [drbrain@se m] ah-ha!  You really want #synchronize, it does the waiting for you, and
64013 [ahoward@fs .] not in my case actually :  i have an Array of PGconns, iff i cannot obtain the
+ 64016 [drbrain@se m] n the
+ 64083 [batsman.geo@] Might not be completely pertinent, but have you seen

[ANN] Text::Format 0.61
63974 [austin@ha os] Minor update to fix the installer. The files are text/format.rb, not

cgi and pdf/xml
63978 [leechie@gm .] How to return xml or pdf files via cgi interface?
63980 [B.Candler@po] Just generate the right MIME headers. For XML see RFC 3023, most likely you

Assessment on resource leakage
63989 [batsman.geo@] Below is the result of a 10 minutes hack to create a simple HTTP-connect
63995 [matz@ru y- a] Correct.

Gtk and locale
63990 [steink@pi g.] I found irb behaving weird with german locale and gtk. It seems to me the
63996 [matz@ru y- a] This is a bug, and fixed in 1.6.8, which uses its own strtod().

Borges future
63991 [ML@Hn li a. ] I'm playing with Borges 0.1.0.  I'm just slowly going into.
64006 [drbrain@se m] Congratulations!  You're the first person to send email about Borges!

NilClass and automatic conversion question [long]
63992 [surrender_it] (even if I read the ng/list for some month, I never saw this
+ 64001 [wkb@ai ma l.] Gabriele,
| 64035 [surrender_it] yes, I got this, I just pointed that puts uses to_s and String.+ does
+ 64002 [B.Candler@po] Same question asked recently, see thread starting at [ruby-talk:63340]
  64036 [surrender_it] <super-snip/>

[ANN] Digest::CRC32 0.1.0
63994 [feldt@ce ch ] I'm sure there is already code around for crc32 in Ruby but I couldn't

Q: Ruby ML software? (was: The way of the Gentoo)
63997 [mike@os n. r] No, it's just as awful as their other perls :(

loading (bmp) textures to OpenGL
63999 [meinrad.rech] i dont want to write a reader for bmp files in ruby, so
+ 64017 [peter.thoman] For my GL game I use RUDL (http://froukepc.dhs.org/rudl/), it can load
+ 64084 [meinrad.rech] by the way,
  64158 [martin@ma si] I converted some of the NeHe OpenGL tutorials to Ruby using the RUDL

Ruby "Procedures" & their return values
64008 [austin@ha os] [Please note that I am way behind on my ruby-talk reading. If you need a quick response, email me directly.]
+ 64010 [mike@wy r. r] If the method fails, it should raise an exception. In which case the
+ 64090 [gsinclair@so] But if you're not going out of your way to actually return a value,

[ANN] bdb
64011 [decoux@mo lo] I hate make announcement.

catching super() with method_missing
64012 [bhilton@vp p] class Outer
+ 64014 [ahoward@fs .] class Outer
+ 64015 [matz@ru y- a] No, I couldn't think of a case like this.  It will be fixed.

easy access for CGI query
64018 [wakou@ru y- ] require "cgi"
+ 64022 [ahoward@fs .] ??
| 64030 [wakou@ru y- ] Oh!
| 64037 [wakou@ru y- ] require "cgi"
+ 64026 [drbrain@se m] <input name=3D"params">
  64034 [wakou@ru y- ] It's ok.
  + 64038 [drbrain@se m] But still magic and can be confusing, it smells of PHP's register_globals
  | 64043 [wakou@ru y- ] Yes, therefore This plan is not use globals and not pollute other
  | 64046 [drbrain@se m] ls
  | 64049 [wakou@ru y- ] No, it not polutes the CGI namespace.
  | 64052 [wakou@ru y- ] and, Is not there a supporter?
  + 64073 [matz@ru y- a] "params" is OK, but "print" does not work, since "method_missing" will
    64079 [wakou@ru y- ] ?? It's work. CGI.new.query is a CGI::Query object. Not a CGI object.
    64088 [matz@ru y- a] Every object has private "print" method.

ruby & bitmaps
64021 [dandan@ao .a] I'm working on a script which is using OpenGL.

Photo Gallery
64024 [usenets@ny .] I'm wondering if there is a photo gallery package using ruby. I've seen some
+ 64057 [billk@ct .c ] Not sure how useful it would be to you, but I can send you the
+ 64074 [bruce@co ed ] Have you looked at RubyPhoto?
+ 64085 [hessmann@sp ] web-server that allows you to rotate images in your browser.
+ 64165 [cjh_nospam@m] I built one for my own use, available (with sample output) at
  64178 [usenets@ny .] one question though, does your tools have the capabilities to extract
  + 64190 [r-tam@fs ne ] I am developping EXIF tag parsing library written in _pure_ ruby.
  + 64257 [cjh_nospam@m] It uses the Debian jpeginfo package which extracts exif image info

generalized object inspection ??
64028 [meinrad.rech] How can i get a list of all invokable methods of an object from the
+ 64032 [chadfowler@c] puts Object.new.methods
+ 64033 [rpav@nw in .] Use #methods or #public_methods.  It returns a list of methods, with
+ 64050 [surrender_it] open irb and fire

Dir.pushdir and Dir.popdir
64040 [wjl@ic ca er] I don't know if this functionality is included somewhere else and I just
+ 64041 [wjl@ic ca er] Doh! Typo! ;)
+ 64042 [mwilson13@co] The standard library includes this functionality in shell.rb.
| 64045 [wjl@ic ca er] Thanks! That's pretty handy .. I haven't really ever used anything in
+ 64071 [nobu.nokada@] In 1.7 or later, Dir.chdir accepts a block, and `push'es the

PVM library for ruby?
64044 [ysantoso@je ] Is there a PVM library for ruby?
64051 [ptkwt@sh ll ] What's your application?

Where is Math.PI ??
64054 [dcarrera@ma ] $ ruby -v
64055 [ms@ia ta e. ] ...
64056 [dcarrera@ma ] Oh.
+ 64058 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://segment7.net
+ 64059 [joelh@jo lh ] I think for Methodcalls there is no different but PI is not a Method it is a
| 64061 [cyclists@nc ] I think I remember reading on this n.g. that :: for method calls is a
+ 64060 [ms@ia ta e. ] For what it's worth, I think you can use '::' in place of '.' whenever
  64138 [jason@jv eg ] I've read somewhere that matz recommends using :: for class methods and
  64139 [gsinclair@so] I prefer . for class methods because it's the same mechanism.  You are

http://raa.ruby-lang.org/list.rhtml?name=pgconngroup
64062 [ahoward@fs .] Announcement of the PGconnGroup prototype.  This is a package implementing

Tortured by the Dependency Daemons
64063 [jonathan.w.s] The instructions for installation state, "In RWiki package for your
64133 [m_seki@mv .b] Sorry, I made the mistake. I included the obsolete document
+ 64141 [jonathan.w.s] Thank-you. An admission of an error seems to be a rare thing in the
+ 64142 [jonathan.w.s] I still am having a problem. It seems to start with Step 3 of RWiki
  64145 [m_seki@mv .b] Yes. You have to set up.
  64206 [jonathan.w.s] easy to be misunderstood.
  + 64357 [jonathan.w.s] Still unable to get RWiki to run
  + 64369 [jonathan.w.s] I copied rwiki.rb and rwconfig.rb to the ~/lib directory and went
    64465 [m_seki@mv .b] It seems that the server has started.
    + 64502 [jonathan.w.s] I did NOT try to open rw-cgi.rb. I did notice that, rather than being
    + 64503 [jonathan.w.s] Today when I try to start the server, 'ruby -dv rwiki.rb', I get the
    | 64550 [m_seki@mv .b] Probably, a library path is lacking.
    | 64686 [jonathan.w.s] That fixed it! Thank-you.
    + 64554 [jonathan.w.s] I again looked at rw-cgi.rb, rw-config.db and the installation

help overloading operators
64064 [dcarrera@ma ] I'm trying to overload Float#+, but I'm doing it wrong and it's breaking
+ 64072 [nobu.nokada@] I can't reproduce your error.
+ 64086 [nemo@he lo r] Well, it's 3am and I can't sleep, so if this makes no sense, just try to be
| 64103 [dcarrera@ma ] Yeah.  Line 216 is actually the Fixnum one.
+ 64106 [dcarrera@ma ] I'm still having trouble overloading operators.  Here is a minimal example
+ 64108 [dcarrera@ma ] "require 'test'".  But the error is definitelly here.  Here it is again
  64109 [nemo@he lo r] require 'complex'
  64112 [dcarrera@ma ] Thanks Chris.  That solved the problem.  Though I don't really understand
  64114 [nemo@he lo r] I wouldn't have know it, either, had you not asked the original question.
  64129 [gsinclair@so] If more questions on "coerce" come up (I know I've been meaning to

ANN: FXRuby-1.0.19 Now Available
64067 [lyle@us rs s] All,

Relative performance of Ruby templating systems
64068 [egabriel@io ] I decided to run Siege against Mod Ruby, ERuby, Amrita, PageTemplate,
+ 64069 [transami@tr ] thank you so much for this! very valuable. i had no idea that eruby was so
+ 64075 [bruce@co ed ] What version of Amrita did you use?  The alpha for 2.0 (1.8.0) released just a
| 64078 [egabriel@io ] I used 1.0.2 of Amrita.  Maybe sometime in the future I will revisit all
| 64100 [ysantoso@je ] Gabriel,
| 64101 [egabriel@io ] That's a fine suggestion, and you are right, the purpose is not
+ 64076 [matt@li ke .] Were all of these run under mod_ruby?
| 64077 [egabriel@io ] Yes, all of these used mod_ruby.  I will go back and add that information.
+ 64081 [ahoward@fs .] for postgres but didn't find anything other solutions out there.
  64163 [roberto@RE O] [courtesy cc of this posting sent to cited author via email]
threads.html
top