153215-154102

153001-154863 subjects 153449-154820

C extension with Ruby extras; preferred naming?
153215 [no@sp m. le ] I recently published the OneWire module, which wraps parts of
+ 153217 [cyclists@nc ] Hmmm...RMagick does exactly what you describe: RMagick.rb loads
+ 153295 [nobuyoshi.na] Requiring with explicit ".so" suffix should load an extension

WTF is Struct? Oh! [was Re: Ruby beginner question 2]
153219 [gavin@re in ] Wait wait wait...I never grokked Struct before.
153220 [gavin@re in ] ...

Re: beaten to the punch, and a request
153294 [jeff.darklig] ...

Re: server.rb with a Manager and Job Class?
153296 [drbrain@se m] exec "ruby server.rb" # use rbconfig.rb to find ruby

Named Arguments
153299 [kevin.olbric] I was working through the new version of the pickaxe tonight and decided to
+ 153300 [brian.takita] ...
| + 153301 [brian.takita] ...
| + 153306 [jtregunna@bl] Just as a supplementary note, the hash literals aren't required. You
+ 153308 [ruby.brian@g] I do not know of such a feature and can't find it mentioned in the
  153312 [rhkramer@gm ] Pgs 84 and 85 of Pickaxe 2 discuss / describe hash arguments consisting of key
  153313 [kevin.olbric] Actually the section that got me working on this is page 256.  Of course at
  153336 [brian.takita] ...

Re: Meta programming basics
153302 [brian.takita] ...
153304 [brian.takita] ...

Automatic check of RDoc documentation
153307 [lucas@lu as ] I've documented my project with RDoc, but I have a problem : how do I know
+ 153311 [botp@de mo t] #If not, I'd look at coding this. I was thinking of adding a
+ 153333 [mailinglists] You can try ArachnoRuby. The class browser does take the data from the

Re: No Keys, nor other hash methods on multidimensional hash
153309 [ruby.brian@g] Ruby does what you ask it to do. Just as an example I took my

OS independent way to read/write paths?
153316 [lists@so rc ] Guys,
153324 [halostatue@g] winpath = rubypath.gsub(%r{/}, "\\")
153332 [Daniel.Berge] See pathname2, available on the RAA.  It will preserve your slashes as
153504 [caldridge@gm] require 'rbconfig'
153508 [Daniel.Berge] I'm going OT here, but...
+ 153519 [nobu.nokada@] In 1.9, ENV["HOME"] will be set to %HOMEDRIVE%%HOMEPATH%,
+ 153531 [caldridge@gm] Cool! Thanks for sharing the correct way of doing it :-)
  153559 [Daniel.Berge] I can't think of a good reason not to.  Unless anyone objects, I say

Embedding ruby in a multi-threaded host application
153319 [om-lists@ti ] I would like to host ruby interpreter in an application to bring in a
153394 [om-lists@ti ] Hmm. I could not find evidence that this is being worked on, nor even
153396 [lyndon.samso] ...

Very strange GC behaviour
153323 [Geert.Fannes] ...
+ 153326 [ruby.brian@g] The Garbage Collector is conservative. If the address of an object
| 153328 [Geert.Fannes] Can these registers be cleared without doing much damage before doing
| 153330 [ruby.brian@g] Why do you need this. Maybe you are tackling the problem from the
| 153331 [simon.kroege] I had some troubles (and still having some) with the gc also.
| 153399 [Geert.Fannes] I implemented a sparse matrix class for loading a calling network (vertices are mobile phone users and edges are calls. The rows are held by a Hash and each row is an AVLTree, containing the information to where some customer called and how much (total duration). These AVLTrees are balanced trees that allow fast lookup and insertion, I used the C package "C AVL Tree generic package" from Walt Karas for this and converted it to a ruby class.
| 153451 [skaes@gm .n ] You can try my GC patch, which allows one to specify the initial heap
+ 153413 [ruby.brian@g] The next version of ruby will contain another GC. IIRC it will be a
  + 153410 [ruby.brian@g] One gotcha I've only seen after sending the other mail is, that moving
  | 153421 [simon.kroege] True, but
  | 153491 [ruby.brian@g] That was exactly what I wanted to show ;-/
  + 153440 [ mfp@ac .o g] two *bit* refcounting
    153492 [ruby.brian@g] on this mailing list that claimed hashes where trees. But I never

what is the equivalent of "Effective Ruby"
153337 [rsanheim@gm ] Is there an equivalent book to Meyers' "Effective C++" series and
+ 153338 [robby.lists@] ;-)
| 153339 [rsanheim@gm ] I've already "done my time" with why's guide.  Its a fun read but I'm
| 153347 [joevandyk@gm] Try printing it in Firefox.  Set the margins to 0 and turn off all
| 153351 [gaston.garci] ...
+ 153342 [lyle.johnson] I'll add a "ditto" for "The Ruby Way". It's not laid out in the same
  + 153398 [rasputnik@gm] 'me three' - felt like 'the ruby cookbook' to me. Hal's got a nice
  + 153400 [the.mindstor] #: Lyle Johnson changed the world a bit at a time by saying on  8/23/2005 6:23 PM :#

Debian, SQL Server 7, and Ruby
153341 [ng@jo nw on ] For some time now we have used custom compiled versions of SQL Relay
153362 [corey.ssf.la] There is a freeware/opensource ODBC stack that will connect to MSSQL
153373 [ng@jo nw on ] Are you referring to iODBC?

ri - what does it know?
153355 [r.mark.volkm] It's unclear to me what I can expect ri to know about. Does this
153357 [drbrain@se m] ri should know about just about everything in the core.  It should
+ 153360 [r.mark.volkm] It doesn't seem to know about everything in the standard library. For
| 153365 [drbrain@se m] That's because lib/.document and ext/.document mention only a handful
| 153372 [james_b@ne r] * The code does not redefine any other classes (as this tends to boink
| 153385 [drbrain@se m] I think if the documentation mentions where non-core methods come
| 153389 [james_b@ne r] The issue is not user confusion, but rdoc/ri obliterating the proper ri
+ 153367 [mailinglists] No. At least not the ri database that comes with the one-click-installer.
  153381 [drbrain@se m] I don't see any bugs matching that description in the rdoc bug or
  153402 [mailinglists] Okay i added this, but what sense does it make as long as nobody is
  153464 [drbrain@se m] Ryan Davis (and myself) have taken over maintainership.

about sockets recv() method.
153358 [pirata@gm il] the input i did this.
153368 [akr@m1 n. rg] recv() waits some data from the socket.

[ADV] Shameless plug (Re: hacker logo)
153371 [james_b@ne r] I've added bags and buttons, too.
153375 [jamal.hansen] Funny you would post this.  I just bought one of the speed metal long
154031 [julian@co et] I really don't like the logo on those...
+ 154058 [james_b@ne r] It's meant to be humorous.  Except when trying to spook your Java
+ 154067 [shalev@si pl] Mmmm, my Rails sweatshirt should be in any day now.

Re: [QUIZ] Sodoku Solver (#43) [SOLUTION]
153378 [ruby_talk@sh] ...
+ 153382 [gavin@re in ] numbers = str.scan( /[\d_]/ ).collect{ |char| char.to_i }
| 153409 [james@gr yp ] line.delete!("+-| ")
| 153415 [gavin@re in ] ...
| 153446 [ruby_talk@sh] These are all new to me.  I learned Ruby by skimming the manual for the
| 153475 [james@gr yp ] Sure, feel free to repost.  However, I've already edited that method
+ 153418 [mohit.muthan] Ahem... Mine used array subtraction too. Sorry.
  + 153450 [ruby_talk@sh] Doh!  I apologize for the oversight.
  + 153482 [ruby_talk@sh] Our algorithms are essentially similar.  One optimization I made is that
    153493 [mohit.muthan] Interesting... thanks... :-)

The Chainsaw Infanticide Logger Manuever
153380 [zedshaw@ze s] One of the things that's really great about agile languages is they give you the power to do anything.  One of the most horrible things about agile languages is they give every other idiot the same power to stab you in the back with a rusty pitchfork.
+ 153383 [gavin@re in ] [... snip an awesome tirade...]
+ 153390 [james_b@ne r] I take it you first tried to contact the author of the offending code
+ 153391 [nseckar@gm i] Zedas, here's concept as discussed in #ruby-lang... Take note that I've
+ 153395 [drbrain@se m] Oh? You think that's bad?
| 153436 [ruby_talk@sh] Guys,
| 153477 [drbrain@se m] I don't understand why I'm supposed to test a standard library I'm
| + 153485 [ruby_talk@sh] Me either.  I thought Logger was your own code.  I agree that you
| | + 153487 [jeff.darklig] I'm not saying you need to test Logger ... I'm simply stating that you
| | + 153520 [julian@co et] ...
| + 153937 [surrender_it] talking about silence_warning in tests.. I actually found the need to
+ 153439 [billk@ct .c ] I was bitten recently by a change to the CGI module.  I don't
| 153445 [jeff.darklig] My feelings are in-line with the review of Dave's session as OSCON @
| + 153452 [billk@ct .c ] Dudes, I do have tests.  How in blazes would you write a test
| | + 153455 [jeff.darklig] The truely iterative & testing-complete way to build software is to
| | | 153459 [the.mindstor] #: Jeff Wood changed the world a bit at a time by saying on  8/24/2005 7:06 PM :#
| | + 153457 [jeff.darklig] So,
| |   + 153465 [billk@ct .c ] Jeff,
| |   | + 153471 [jeff.darklig] Ok, my set of tests for my application would include asserting that if
| |   | | + 153564 [gavin@re in ] ... which would lead you on the 3 hour hunt that Zed was complaining
| |   | | + 153609 [dfayram@gm i] At some point--and that point approaches us very quickly on anything
| |   | + 153480 [ruby_talk@sh] I find that the hardest tests to write are the ones that I overlooked
| |   |   153490 [billk@ct .c ] Thanks for your thoughtful reply.
| |   + 153466 [Daniel.Berge] As Alexander mentioned, the point of the email was not that he couldn't detect
| + 153462 [halostatue@g] I think the real problem is when this is done in released code. If
| | + 153495 [jim@we ri hh] Well said.
| | + 153943 [transfire@gm] Seems this thread just come over the fixed gateway? Seems to have
| + 153469 [mailing-list] Violence is surely the road to enlightenment,
+ 153944 [rampant@gm i] Could all these problems be solved by a require_into_namespace?
  + 153952 [transfire@gm] Douglas,
  + 154048 [surrender_it] IMHO this problems could be sloved by just running ruby by default with

Problems with the Jamis RDoc format
153384 [jim@we ri hh] I've been using the jamis rdoc format for some time.  Recently I noticed that
+ 153387 [jamis@37 ig ] If someone has a fix, I'll be happy to apply it to my copy.
+ 153388 [vjoel@pa h. ] I noticed the exact same problem this morning.
  153408 [jim@we ri hh] works for me.
  + 153461 [vjoel@pa h. ] Yay, method links are working again.
  | 153498 [jamis@37 ig ] Yah, I designed the template for use with inline-source, and never
  + 153494 [jamis@37 ig ] Whew. Good to know. Thanks for the follow-up, Jim.

Postgrey
153392 [shugo@ru y- ] I installed Postgrey (http://isg.ee.ethz.ch/tools/postgrey/)

Recurring dates in ruby
153393 [snacktime@gm] Is there an existing module out there for calculating recurring dates?
153404 [Mlipper@do t] Not sure if this'll do, but there's: http://runt.rubyforge.org . This is
153479 [snacktime@gm] Thanks Matt.  Looks like that would work.  I'll let you know if I run

Ruby and socket.so
153405 [peter@ea ys ] When I "require socket" in my application I get following error.
153454 [vjoel@pa h. ] ldd /usr/local/lib/ruby/1.8/x86_64-linux/socket.so

Searching Google vith SOAP4R
153406 [dali@in ul .] Does anybody use SOAP4R to access Google search service?
153441 [ mfp@ac .o g] batsman@tux-chan:/tmp$ cat ggl.rb
153486 [dali@in ul .] Thanks. Your code works although only with the version 1.5.4. The 1.5.3

determining the attribute names of an object
153414 [r.mark.volkm] The way to determine the names of the attributes of objects created
+ 153417 [dblack@wo bl] instance variables are not the same as attributes.  Attributes can be,
| 153419 [r.mark.volkm] I really don't get this. Can you give a definition of each of the
| + 153423 [james@gr yp ] class Name
| | 153516 [julian@co et] Yeah,
| + 153424 [dblack@wo bl] They may be the same in other languages.  In Ruby they're related but
|   153425 [r.mark.volkm] Ah ... thanks for the explanation!  Had I been paying attention, I
|   + 153432 [dblack@wo bl] If anything, I would say members correspond to attributes, not to
|   + 153530 [hal9000@hy e] Well, Structs are not implemented by using instance variables (well,
|     153535 [dblack@wo bl] What if you wanted to add methods to the class, or one or more
|     153536 [hal9000@hy e] Granted, but that's the opposite problem from the one I
|     + 153556 [r.mark.volkm] That's certainly what I hoped was the case for both Struct and OpenStruct.
|     + 153560 [dblack@wo bl] I'm just not sure where you would experience a need for that.  What
|       + 153563 [gavin@re in ] I think you're correct; I think the problem is simply one of
|       + 153578 [r.mark.volkm] Okay, I'll revise my statement. ;-)
+ 153420 [mohit.muthan] Attributes are not the same as instance variables. Attributes really

Good cross-platform IDE / multiple document text editor for ruby / rails?
153422 [brockweaver@] I apologize for the cross-post, but I thought it would spur a good
+ 153426 [akulbe@gm il] ...
| + 153433 [mando.escami] ...
| | 153897 [joevandyk@gm] How does the keyword completion in vim work?
| | + 153899 [dbatml@gm .d] 1. Whole lines                                     |i_CTRL-X_CTRL-L|
| | + 153917 [dougkearns@g] There will be an erb syntax file (eruby.vim) in the next release of
| + 153437 [jeff.darklig] Also, I know that Lothar is working on multiple platform support in
|   153448 [tiefox@gm il] ...
|   153453 [merkoth@gm i] just a little note: SciTe DOES SUPPORT tabbed mdi (disabled by
+ 153428 [mneumann@nt ] QT4) they will be available on Windows, too.
| + 153435 [vicente.reig] I have been using jEdit (http://www.jedit.org) too for all my projects
| + 153533 [jamal.hansen] I made the move to Linux on my home PC about 3 months ago and felt
| | 153534 [cbueno81@gm ] ...
| + 153608 [chriscodes@g] I've added basic rails syntax support for Editors that make use of
+ 153429 [eric_mahurin] I been using jedit for several years now because it is a very
+ 153431 [the.mindstor] #: Brock Weaver changed the world a bit at a time by saying on  8/24/2005 4:51 PM :#
+ 153458 [zimba.tm@gm ] It seems that not lot of people know Mondrian IDE. I'm wondering why
| + 153460 [merkoth@gm i] yup, totally forgot about it. but it's a great choice if you're
| + 153463 [runlevel7@gm] I'd like to use it, but had a hard time getting it installed.  Or,
+ 153470 [rob.02004@gm] If you're checking out jEdit, don't miss it's Ruby Editor Plugin which
| 153483 [rhkramer@gm ] I wasn't going to mention nedit (my favorite editor for five years now, since
| + 153488 [brockweaver@] Thank you everybody for your responses.  I'm sure I'll waste a few
| + 153489 [vjoel@pa h. ] I've put some ruby-related nedit stuff, including syntax hilighting, at
|   153496 [rhkramer@gm ] I don't know, but I have a thought.  I'm at my Mandrake 10 system right now--I
+ 153532 [james_b@ne r] Maybe OT, but one possible issue with such cross-posting is that not
| 153576 [rhkramer@gm ] You are absolutely right that that is one of the problems with crossposting.
| 153584 [james_b@ne r] Um, no, other than to perhaps make a point of periodically summarizing
| 153600 [rhkramer@gm ] That makes sense, and maybe we should even start suggesting that as an
| 153619 [zimba.tm@gm ] What I suggest is that people don't cross-post, but rather choose one
| + 153622 [brockweaver@] Thank you everybody for the active discussion.
| | 153685 [zimba.tm@gm ] I would have posted on the rails ML first.
| + 153645 [rhkramer@gm ] That also makes sense, probably even more sense!
+ 153548 [snowzone5@ho] can't speak for anyone else, but i'm envious :)
  153570 [rhkramer@gm ] And, Off Point for this post, I guess if I was going to ask for a snappy
  + 153712 [snowzone5@ho] then i think it was relevant. i've tried all the ide's on a PII/350
  | 153727 [rhkramer@gm ] Thanks!  (I use nedit, works great!)
  | 153740 [snowzone5@ho] ah, i thought you were looking for a cross-platform ide...
  | 153766 [rhkramer@gm ] Ahh, sorry for the confusion, that was the OP (somewhere back in the dawn of
  + 153793 [mailinglists] Sounds like a challenge. But please contact me, if you want to
    153842 [rhkramer@gm ] I'll start by saying "maybe".
    + 153843 [rhkramer@gm ] Hmm, maybe I should have said something about why I'm not considering nedit
    + 153869 [mailinglists] I think there is not very much except Scintilla.
      + 153879 [rhkramer@gm ] I had started to look at Scintella just a few days ago.  I'll look for the
      + 153891 [the.mindstor] #: Lothar Scholz changed the world a bit at a time by saying on  8/28/2005 3:30 AM :#
      | 153894 [rhkramer@gm ] What can I say?  ;-) I use it everyday (in nedit with my macros), and expect
      | 153977 [rhkramer@gm ] See http://twiki.org/cgi-bin/view/Wikilearn/NmTWikiFold, I think it's all
      + 153918 [neoneye@gm i] Sorry, AEditor is completely dead for this moment (I have converted to
      | 153923 [rhkramer@gm ] Simon,
      + 153974 [thunder@gm i] You may be referring to SynEdit although that project forked IIRC
      + 154088 [snowzone5@ho] i think i'm in the camp of more ruby specfic features. i registered it
        154097 [mailinglists] Yes, i'm not trying to do a general editor.
        154102 [snowzone5@ho] i'd find xml and html specific features handy. as it is now i do all

Gateway issue (24-Aug-2005)
153444 [Daniel.Berge] Looks like the ruby-talk/comp.lang.ruby gateway is busted again.  I'm seeing
threads.html
top