103907-105211

103639-104983 subjects 104128-104514

Testing a post with an attachment
103907 [NoOne@No he ] Here's an attempt to reply with a 15-byte attachment.  Let's see whether
103908 [NoOne@No he ] Well Daz,

[OT] RE: require vs require_gem
103910 [assaph@av ya] the
103911 [sean@ce so t] I find it's better to spread out the requires (not too liberally), so you only
103912 [rich@in oe h] I second that, and actually put some 'require' statements in methods right
+ 103922 [batsman.geo@] Running Debian GNU/Linux Sid (unstable)
+ 103924 [flori@ni e. ] Another possibility would be to

Building FxRuby with Borland CC 55
103927 [dmitry_n_orl] Please, teach me how to build FxRuby with BCC?
103932 [mailinglists] First step building FOX is easy.
105211 [dmitry_n_orl] I try to do it. :(

[RCR]  introducing Hash-like mixin
103930 [surrender_it] If you ever wanted to subclass hash but it was too hard..
+ 103938 [martindemell] Indexable?
| 103945 [ahoward@no a] Array.
+ 103946 [ahoward@no a] HashEnabled?
  103947 [surrender_it] the point is that a Map(temporary name) object can look like ruby's
  + 103948 [gsinclair@so] Map or Dictionary are the only real choices, AFAIC.  I really like Map
  | 103953 [mneumann@nt ] Instead of the suffix -able (as in Enumerable), a -Mixin suffix is another
  | 103982 [jim@we ri hh] Or MapMethods and/or HashMethods.
  | 104033 [mneumann@nt ] Yes, I like it. That sound much more natural and tells what's actually
  + 103957 [ahoward@no a] well, what are the 'requirements'?  O(1) lookup, insertion and deletion?  key
  | 104027 [surrender_it] from the rcr: "provide a mixin for key->value mappings"
  + 103969 [billk@ct .c ] PairAssociative?
    + 103971 [discord@ma .] PairAssociable? Associable? :)
    | 103973 [rt@al m. pi ] associable
    | + 103978 [burtdav@ho m] No, it's not right - the container itself is an associator; it associates
    | + 103990 [gsinclair@so] s = FooBar.new
    + 104032 [wsdngtmp@on ] Boost (a collection of C++ template libraries) works with tupels

Emacs Ruby mode & indentation with the tab key wish/bug
103933 [moritz@bu ku] Heya,
103937 [alex@de et .] I think there's an already option for what you want, I think; the
103939 [moritz@bu ku] Doesn't help. In fact I don't see a difference with these three cases
103949 [alex@de et .] Sorry, my mistake. The variable you want is ruby-deep-indent-paren. Set
103950 [moritz@bu ku] =20

sqlrelay and dbi
103940 [raphael.baud] I'm accessing a mssql server through sqlrelay and dbi.

ri, String and RedCloth
103944 [Stephan.Kaem] I seem to have problems with ri and Strings & RedCloth (2.0.11).
+ 104053 [ruby-talk@wh] I have a fix for this which will appear shortly in RedCloth 2.0.12.
| 104064 [Stephan.Kaem] You're great. Thanks a lot.
+ 104353 [dave@pr gp o] It looks as if the RedCloth installation missed off the --merge option

[RCR] More enumerator functionality
103954 [kristof@vl e] I have finally posted my RCR for more enumerator
+ 103964 [mneumann@nt ] Can you give some more examples, where and how enum_if could be useful?
| 104043 [kristof@vl e] the analysis).  It could be useful as a replacement for
| 104044 [mneumann@nt ] (0..4).enum_if { |i| i[0] == 0 }.to_a
| 104049 [kristof@vl e] You have a good point.  I changed it.
| 104119 [mneumann@nt ] I don't know what enum_for is doing, but select_lazy is the same as
| 104137 [kristof@vl e] Currently enum_for (and its alias to_enum) creates an enumerable
+ 104047 [matz@ru y- a] Hmm, how about making Enumerator#select etc. (methods that return
  104108 [nobu.nokada@] Then Enumerator#select actually is equivalent to enum_if?

instiki 0.9.1 available through rpa-base (was: Re: [ANN] rpa-base 0.1.0 "kitanai")
103955 [batsman.geo@] I had packaged madeleine, bluecloth, redcloth and rubyzip separately

[OT] Re: Ruby /.'ted
103958 [jamesUNDERBA] Odd.  This is the first time I've ever heard it used to mean anything
+ 103959 [rcoder@gm il] I've found it interesting that other sites (Fark, BoingBoing, etc.)
| 103963 [mailing-list] I think of the "slashdot-EFFECT" as being a server-trashing, and being
| 103970 [usenet@hy .i] ...
+ 103961 [dhtapp@se _s] I appreciate the correction on the use of the term.  I haven't been a
+ 103991 [gsinclair@so] Or those who think "loose" is the opposite of "find"?
  104011 [nick@ac iv h] I think the change probably makes sense- I think most sites now handle

the new great computer language shootout
103974 [ptkwt@ar cn ] the Debian groups.  It's been updated to use the latest
103975 [rcoder@gm il] Part of the speedup appears to be from their use of the Psyco JIT
103986 [drbrain@se m] This is because of the use of Numeric#step.  The implementation is
+ 103992 [drbrain@se m] Never mind, I am smoking crack.
| + 103994 [rcoder@gm il] To be honest, some of the numbers seem highly suspect to me. For
| | 103998 [michael.camp] Are you using psyco?  As has been mentioned, it looks as if the python
| | + 104001 [rcoder@gm il] The Sieve results I got weren't using Psyco; using it, the difference
| | | + 104002 [michael.camp] No disputes from me, I was just mentioning I think that's what they
| | | + 104031 [mneumann@nt ] Hmm, if we'd had namespace selectors in Ruby, such optimizations (e.g.
| | |   104034 [batsman.geo@] They are actually possible with the current language; you'd "only"
| | |   104036 [mneumann@nt ] Hm, but isn't that much harder to implement? And you need all these
| | |   104038 [batsman.geo@] ========================
| | + 104005 [ptkwt@ar cn ] Isn't psycho kind of a special varient of Python?  Is it fair to compare
| |   + 104006 [carl.youngbl] I agree that they really should stick strictly to Python code if they
| |   + 104022 [Mike@De et T] You may be thinking of Pyrex, a Python dialect that compiles to C and lets
| |     + 104025 [joaopedrosa@] That's a lot of pythons. :-)
| |     + 104072 [ptkwt@ar cn ] Kind of like Rubyinline  http://www.zenspider.com/ZSS/Products/RubyInline/
| |       104109 [Mike@De et T] Each of these lets you write C code inline in a quoted string, with
| + 103997 [discord@ma .] surprisingly, using += on line 18 give a 12% speedup on my box.
|   104040 [dmertz@fr e.] It is not so surprising += is always faster in Ruby (from my
|   104071 [discord@ma .] hmmm... actually, 12% speed increase (actually a 12.7% time decrease,
|   + 104127 [surrender_it] did you submitted the proposed change to the authors ?
|   + 104172 [xlucid@us rs] Is there a new definition of speed that's not as a linear function of
+ 104020 [GGarramuno@a] Huh?  In what way is it flawed?  While there you can use slicing for
  + 104021 [dross@co e- ] In what way is it flawed? The whole thing is flawed. It is not fair to judge
  + 104082 [drbrain@se m] E96045@segment7.net>...

Is this possible using SVG::Graph for Ruby?
103976 [piir@ea th i] I need to use the voice dictation software "Dragon NaturallySpeaking"

How to make generic #== method?
103977 [zakaria@su r] Currently I got many simple class which is just a simple record-like.
+ 104008 [vjoel@PA H. ] module ContentEquality
| + 104023 [zakaria@su r] Thank you Joel for the answer.
| | 104026 [gsinclair@so] You probably need hash, and should define it (see below).  About eql?, I'm
| | + 104062 [zakaria@su r] Could someone explain why?
| | | + 104063 [tom@in oe he] Yours,
| | | + 104079 [chr_mail@gm ] Also checkout [ruby-talk :48114] (+ google) and
| | + 104074 [rcoder@gm il] This makes sense, as both hashes are mutable. Their contents may be
| |   104105 [g_ogata@op u] So are Arrays and Strings (and plently else), but they can be hashed.
| + 104054 [flgr@cc n. e] Moin!
| | 104056 [gsinclair@so] Because this discards the instance variable names, some pathological
| + 104055 [pbrannan@at ] I like this, and since content is ordered, it's possible to write this
+ 104028 [bob.news@gm ] "Zakaria" <zakaria@suarametro.com> schrieb im Newsbeitrag

while(1) and threads
103979 [paul.rogers@] I have many threads that I leave running, doing things in the
+ 103980 [khaines@en g] Do you just want a different looping construct?
+ 103981 [gfb@to es ft] loop do

Wiki engine used by Ruby Wiki?
103988 [no_replies@f] Is it available for download and use by others?  If so, link please.
+ 104012 [chadfowler@g] It's in Perl, unfortunately.  Anyone want to help add search and
| 104015 [austin@ha os] Change history is on its way -- I can't give a target, because I just
+ 104527 [pan@er kv en] Just two clicks from the main page... You could have seen the

YAML and Windows newlines
103989 [jgb3@em il b] # a = "something: >\r\n  Some text with a\r\n  newline in it.\r\n"
104013 [dooby@d1 .k ] I think your description is consistent with reading
104014 [jgb3@em il b] Arg! You're right, of course. Gotta love Windows.

Generating "real-time" 2D line plots in Windows 2k?
103993 [piir@ea th i] I need to use the voice dictation software Dragon NaturallySpeaking
+ 103999 [rich@li hi o] Have you tried the FXCanvas in FXRuby?
+ 104000 [tim@ba es id] Heh. Pre-emptively fending off the "switch to Linux!" calls. I like it.
| 104003 [dross@co e- ] IBM ViaVoice for Linux is pretty good. Haven't used it in a long time. I think
+ 104048 [rich@li hi o] Here's code that generates a 'real-time' 2d pseudo bar chart (it wouldn't be
  104100 [piir@ea th i] I first must apologize.  I am using the voice dictation software
  + 104106 [rich@li hi o] Don't worry.
  + 104112 [piir@ea th i] WOW!  Thanks your code I am finally able to create and display a graph
    104131 [rich@li hi o] ... installation is super simple - just follow the README.en.rd file

Data acquisition software in Windows 2000
103996 [piir@ea th i] Could anyone point me to data acquisitions software that can use with
104029 [Stephan.Kaem] What's the source of the data (from the PC point of view) - RS232
104099 [piir@ea th i] The hardware will be determined upon what the capabilities of the
104103 [steven.jenki] If you're really stuck with Windows, I don't have any good suggestions.
+ 104184 [piir@ea th i] Unfortunately, I have been extremely difficult time typing.  They're
+ 104185 [piir@ea th i] Steve,

Net::SMTPFatalError: 550 Administrative prohibition
104010 [stedak@ch rt] ...
104018 [dross@co e- ] What OS are you using? Try a port beyond 1024.
104066 [stedak@ch rt] I have a hosted web account that uses sendMail. It is Linux 7.2.
104070 [rcoder@gm il] I believe that David was trying to establish whether the code was
104092 [stedak@ch rt] Our SMTP servers are configured as secure relays. This means that you cannot simply reference "mail.yourdomain.com" as an Outgoing mailserver unless you successfully log in via one of your pop3 accounts at "mail.yourdomain.com' before you try to send. This is a mandatory setting to prevent spammers from using our mailservers as havens for unsolicited email. If you are getting a "relaying prohibited" or "disconnected by administrator" error, it means that you haven't logged into the pop3 server at your domain before you tried to send through the smtp server at your domain. To log in, you need to check for mail first.
+ 104094 [dross@co e- ] well whoops. Thats what I get for getting language libraries confused (and not
+ 104095 [rcoder@gm il] You'll need to use the Net::POP library
  104107 [stedak@ch rt] Worked like a charm!

ruby-lang.org virtual hosts down - where else to get mod_ruby?
104016 [mreed@th re ] Apparently the virtual host config was lost as part of the
+ 104017 [jeffrey.dik@] I love google.
+ 104019 [shugo@ru y- ] I fixed it.

What is a binding for Ruby?
104024 [piir@ea th i] I need to use voice dictation software Dragon NaturallySpeaking on
+ 104058 [discord@ma .] A binding (in this context) is an interface that lets Ruby use a
+ 104059 [brett_willia] A "binding" indicates that the underlying software library (usually

Which classes are installed on my system?
104035 [piir@ea th i] Even though these seem extremely silly and simple questions, I haven't
104060 [discord@ma .] If you have ri installed, run `ri -c` to get a list of known classes.
104075 [rcoder@gm il] ObjectSpace.each_object(Class) do |c|
104076 [discord@ma .] This will give a list of loaded classes. Complex, for instance will not
104085 [Stephan.Kaem] So much is true, however if you 'require "whatever"' and "whatever" is
104148 [ng@jo nw on ] ...

extension problem with the one-click installer
104039 [quixoticsyco] Could someone confirm the following segfault for the one-click Windows
104266 [quixoticsyco] To the one-click installer team (or anyone else), have you

Drb graceful shutdown
104041 [han.holl@po ] As far as I can see from the source, there is no other way to end the connection
104083 [drbrain@se m] Nope!  There's no way to gracefully disconnect a DRb session, since you
104084 [carl.youngbl] So how do you gracefully shutdown your application?
104091 [drbrain@se m] You must be careful when designing an application that uses DRb so that
104232 [han.holl@po ] [ cut ]
104268 [drbrain@se m] K96045@segment7.net>...
104324 [han.holl@po ] You get back a NoMethodError, no such method for nil (NilClass).

ruby hosting
104045 [csshsh@st uc] im searching for ruby hosting. shared hosting would be great, since
+ 104046 [kingsley@ic ] www.kattare.com
+ 104052 [aredridel@nb] My company does this -- anything you like within reason is okay.
+ 104057 [pbrannan@at ] I'm using linode.com; it costs a little more than web hosting ($20/mo),
+ 104081 [dave@da ed m] Not sure about fastcgi, but http://rootr.net is the host I use, and my

ruby one-click installer issue with extensions
104050 [curt@hi bs c] I'm cross-posting this to see if anyone here can offer more concrete and/or
+ 104051 [curt@hi bs c] ...
| 104073 [quixoticsyco] I was shocked to see my private email appear in the ML, but I'll respond to
| 104090 [joaopedrosa@] The 1.8.1.13 version of the Ruby installer has some
+ 104080 [dooby@d1 .k ] *Just* an opinion ...
  104088 [quixoticsyco] Do you mean compiling extensions, or installing them?  To compile them
  + 104089 [quixoticsyco] Just to be pedantic, this should be $sitearchdir
  + 104096 [dooby@d1 .k ] Given those two alternatives, I'd say both.
    104138 [quixoticsyco] It isn't :)
    104144 [dooby@d1 .k ] Thanks, Jeff.

[ANN] wxRuby 0.4.0 has been released!
104061 [curt@hi bs c] wxRuby 0.4.0 has been released and is now available for download from

compiling ruby under windows (+ gtk stuff, is the gtk list dead?)
104069 [kgergely@mc ] mingw 3.1.0
104086 [quixoticsyco] I don't use msys but I can tell you how I compile mingw32-ruby
104087 [joaopedrosa@] Masao has a guide on compiling Ruby and, most

JRuby: How does one keep Java objects as Java objects so they can be used in method calls?
104097 [steve.drach@] I'm trying to use JDOM and JRuby (yes I know about RexML).  In the following
104102 [enebo@ac .o ] java_alias :JFile, :File
104139 [steve.drach@] Ok, I think I understand.  It's because the constant File was already
104154 [enebo@ac .o ] yep.  I was not the designer of the java integration so I can only

[ANN] cs/Template 0.1.2
104098 [sean@ce so t] cs/Template 0.1.2
+ 104101 [dooby@d1 .k ] name : Sean O'Dell
+ 104386 [careck@ci cl] very nice template library! I like it because the syntax is xml agnostic
  104391 [sean@ce so t] You can make the template object a class @@variable, instance @variable or a

Syntax/Highligth rules for Jasspa Microemacs
104111 [Meino.Cramer] does anyone know of a syntax and highlight scheme, which can be used

comp.lang.ruby,comp.cad.autocad,comp.org.user-groups.meetings,comp.os.linux.setup,comp.sys.laptops
104113 [nocker@an ma] comp.lang.ruby,comp.cad.autocad,comp.org.user-groups.meetings,comp.os.linux.setup,comp.sys.laptops

Problems with FileUtils in Rake
104116 [cc1@ce .w st] task :examples do
104117 [nobu.nokada@] rm_rf File.expand_path(%{~/.ruby_inline})
104118 [cc1@ce .w st] Ah.  Hmm.  Is there a way to force it to do tilde expansion if the
104121 [nobu.nokada@] Which application do you mention about, Rake?

Comparison of GLs for plotting (x,y,z) pts?
104120 [piir@ea th i] I need to use Dragon NaturallySpeaking on Windows 2000 and I haven't
104169 [alex@de et .] In WxRuby you could use a Device Context to draw lines, points, fills,
104213 [piir@ea th i] While that's pretty easy.  Thanks for showing me that!

[ANN] EuRuKo 2004 News
104122 [mneumann@nt ] We have very good news!
+ 104178 [chadfowler@g] Congrats on finalizing the conference.  Only a week after I leave Munich! :(
| + 104180 [armin@xs .d ] - EasyJet,
| + 104183 [jamesUNDERBA] I'm expecting to be near Munich (Kempten, actually) around September :(,
|   104187 [armin@xs .d ] Bavaria in fall is nice. Stay longer if you can :-).
+ 104235 [armin@xs .d ] Sponsors?
+ 104236 [armin@xs .d ] Is there a core-ruby programmer in Europe around
  104237 [surrender_it] I'd say Guy Decoux :)
  104241 [armin@xs .d ] good idea. I send him an email;

Problems with Rake
104123 [cc1@ce .w st] How come if a project has a dependency of task clean, which kills all
104130 [jim@we ri hh] If you have tasks that create tilde files (i.e. file names ending in ~),
104142 [cc1@ce .w st] No task creates ~ files in my rakefile, however, if my editor leaves ~
104152 [jim@we ri hh] Can I see an example rakefile that does this?
104159 [jim@we ri hh] Just a quick update in case anyone is interested.  Charles sent me his

Convert binary to decimal and hex numbers
104125 [piir@ea th i] I would like to convert binary numbers to decimal and hex numbers.
104126 [tim@ba es id] When you're dealing with numbers internally to Ruby, it doesn't matter
104214 [piir@ea th i] Thanks for showing me that!  I think I've got it now.
threads.html
top