171759-178464

171593-392013 subjects 171949-173170

oddity with block argument passing
171759 [grddev@gm .n] In my latest project, I was a bit surprised by the way arguments to
172224 [angus@qu va ] [Gustav Munkby <grddev@gmx.net>, 2005-12-20 21.40 CET]
172555 [grddev@gm .n] thanks for this explanation, now i really understand why there's a

Posted my newbie code
171765 [rosco@ro co ] Well, I've been playing with Ruby now for a couple of months, and I'm
+ 171787 [cyclists@nc ] Thanks, Ross!
| 171810 [kibleur.chri] Very nice stuff to study, thanks a lot Roos.
+ 171813 [shadarach@gm] Thanks alot Ross.....Do you mind if I add a link to my n00b blog about
| 171823 [rosco@ro co ] Sure, that'd be great. Thanks :)
| 171827 [shadarach@gm] added :)
+ 171819 [acangiano@gm] Ross,
| 171826 [rosco@ro co ] Thanks :) (to everyone too)
+ 171825 [ezmobius@gm ] Very cool Ross.

X-Chat Ruby
171771 [jrjung@gm il] I have been looking all over for documentation on writing X-Chat scripts
171772 [jamis@37 ig ] Note that XChat-Ruby has not been updated in ages, and may not even
171773 [neil@ha ub .] It works fine here.  I use it, using a combination of the included

Re: [grammarians] shortcut to self.class ?
171784 [mental@ry ia] I think what I'm going to do at this point is go ahead and start on
171786 [Daniel.Berge] Then ditch heredocs.  I can't think of a case where I desperately needed
+ 171791 [surrender_it] +1
+ 171814 [mental@ry ia] That's the point of doing a subset grammar to begin with -- we can leave
| 171824 [rosco@ro co ] Just to chime in, I have to agree on that - AFAIU the reason for wanting
+ 171941 [halostatue@g] I use heredocs often. A grammar that doesn't support heredocs won't be
  171944 [ara.t.howard] agreed.  it's extremely difficult to do any serious metaprogramming without

DRbUndumped and Marshal
171790 [blargity@gm ] I'm using DRb with quite a few objects marked as DRbUndumped.  Some of these
171816 [james@gr yp ] obj_to_share = DRbObject.new( my_object )  # will be shared by proxy

=~ vs match - Some benchmarks.
171797 [john.carter@] While profiling some code I noticed =~, String.match and Regexp.match
+ 171821 [wilsonb@gm i] Huh. Interesting.  Why is
| + 171822 [agorilla@gm ] Thanks for running these, and posting them.  Wonder if there shouldn't
| | 171832 [nobuyoshi.na] No, the check is done at the compilation phase, so Resulted
| + 171841 [john.carter@] I suspect they are the same to within the experimental error. ie. No
+ 171890 [acangiano@gm] Interesting test, John. :)

Test failures with snapshot
171804 [surrender_it] I was doing some small tests compiling the latest snapshot, and with

rexml - get raw xml of elements and text
171806 [ammon.christ] ...
+ 171808 [james_b@ne r] to_s ?
+ 172102 [gavin@re in ] irb(main):001:0> require 'rexml/document'

Does webrick support the http PUT command?
171818 [acechase@gm ] The subject line pretty much sums it up. I'm having trouble finding
171846 [rosco@ro co ] ===[server.rb]===

Port Knocking
171828 [sven.schott@] Has anyone seen (or written) any port knocking implementations in Ruby?
+ 171842 [caldridge@gm] Pretty neat.. I was interested in doing this a while back but never
| 171849 [sven.schott@] Port knocking is normally TCP and UDP although there are a number of
| + 171855 [wilsonb@gm i] Check out Timeout, part of the standard library.
| | 171868 [sven.schott@] Thanks for the tip. I've been wanting to implement a proper timeout.
| | 173105 [ dez@ma .c m] To dump packets to/from the loopback, you need to tell tcpdump to
| + 171869 [adelcambre@g] If you are wanting to test, hping ( http://www.hping.org/ ) can send
+ 171902 [pabs@pa lo r] Probably.  I've been using Ruby more and more frequently in place of

The "ruby way" to break apart a name?
171830 [cohen.jeff@g] Switching from C# to Ruby, and learning to write "the Ruby way"... is
+ 171833 [discordantus] ... where 0 and -1 are array indices.
+ 171837 [nobuyoshi.na] What should be returned if fullname has no space?
+ 171838 [dave@bu t. d] class String
+ 171870 [marcel@ve ni] In Ruby you can open up any class and modify/extend it at any time. Even the
| 171887 [lyndon.samso] Well, you cant after String.freeze :-)
| + 171937 [cohen.jeff@g] Thanks for the help, everyone.  All of the suggestions have been
| + 171987 [ruby-forum-r] Ha! Maybe you can  String = String.dup ! :)
+ 172006 [meta@po ox c] Well, I think the bigger issue is that your assumptions are wrong. :-)
  + 172016 [james@gr yp ] Amen.  Names are much trickier than you think...
  | + 172113 [greg.kujawa@] I second that sentiment. I recall a college buddy of mine. His full
  | + 172117 [chneukirchen] Full Ack, James II.
  | | 172141 [lukfugl@gm i] I thought that was a spoonerism at first and wondered what you had
  | + 172122 [dblack@wo bl] ...
  |   173522 [cohen.jeff@g] HEY YOU GUYS! :-)  I was originally asking for the best way to return
  + 173538 [gerardo.sant] We had a similar problem at work.
    + 173562 [wilsonb@gm i] This reminds me of U.S. street addresses.  I (on and off) do work that
    | + 173596 [chneukirchen] And what's the point of storing that in different fields?
    | | + 173603 [wilsonb@gm i] One reason is to be able to say things like "Who else lives on the
    | | + 173716 [klancaster19] I'm working on a system that interfaces with a GIS mainframe system
    | + 173608 [blargity@gm ] De donde fue Texaco Viejo 1/2 C al E, 2 c al S
    |   173616 [wilsonb@gm i] That's insane. You win. Wow.
    |   174347 [rm_rails@ch ] Even in the US it gets tricky.  Consider what the US Postal Service
    + 173605 [slitt@ea th ] I've always wondered about this, both in Spanish names and American hyphenated
      173618 [gerardo.sant] This is the one.
      173623 [dca.gis@gm i] And the only problems arise when one or both of paterno or materno is

problem with gem
171844 [beeplove@gm ] I am trying to make a gem package for one of my library that I am
171894 [jim@we ri hh] Sounds like you built the gem on a Ruby 1.8.3 system and are trying to
171940 [beeplove@gm ] Thanks a lot for your reply.
171954 [rosco@ro co ] I think there shouldn't be any need to do that just for the Yaml issue -

When are attr_reader type  methods called?
171847 [krishna.vive] I couldnt get a proper subject for the post but here is my question.
+ 171852 [phurley@gm i] class Foo
| + 171854 [daniels@pr n] class A
| + 172087 [krishna.vive] Ok ..sorry for the wrong code.What I meant was do have a class
|   172092 [phurley@gm i] ri Class
|   172099 [rosco@ro co ] I have a feeling you're not far from discovering Ruby magic  - stick with
+ 171861 [rosco@ro co ] It's top to bottom, as you'd expect. Does the following surprise you?

Merging two Word documents with Ruby?
171851 [denvermike@c] I've got a bugger of a problem and I thought I'd toss it out there to
+ 171880 [gandalfmeist] Several points
| 171904 [denvermike@c] Thanks for your thoughts on this Graham.  By "merge", I meant appending
| + 171929 [edder@tk sp ] Microsoft word has something called a master document. Maybe you could
| + 171935 [wilsonb@gm i] This can actually be extremely complex, because a named style (such as
| + 171999 [dca.gis@gm i] If your documents are properly structured using styles (which is rare)
| + 172331 [groups@gr nd] Does it still need to be a Word document when you're done? An entirely
|   172342 [dca.gis@gm i] OpenOffice.org can do the .doc to pdf conversion. I like your idea very
|   172365 [groups@gr nd] Probably. If you have a program that lets you overlay one PDF page on
|   175648 [dsisnero@co ] abiword can be used from the command line.  See http://
|   176148 [hari_k26@re ] i have got  a doubt .hopeu guy can help
+ 171881 [edder@tk sp ] The only way I see is to use openoffice. There must be a script
+ 171903 [pabs@pa lo r] [snipped]
+ 171948 [marathoner@s] If you have a choice, don't use Word document. Use RTF format instead.
+ 176019 [hari_k26@re ] i have got  a doubt .hopeu guy can help

Rails DB convention info is a big fat secret??
171853 [groups@gr nd] I started learning Ruby in part so I could do some web scripting, and
+ 171859 [daniels@pr n] Then off through the second "read more" to learn about associations.
+ 171860 [twifkak@co c] My recommendation: Use DarwinPorts to install Ruby, RubyGems, and your
+ 171862 [wilsonb@gm i] In general you'll have better luck on the Rails mailing list, but..

[OT] - Requesting Feedback on IEMP Definition
171856 [ilias@la ar ] Some of the reader may have wondered about the evaluation of Ruby early
172984 [ilias@la ar ] any feedback is welcome.

Help with object scope
171863 [listrecv@gm ] I'm having a really tough time with Ruby's scope (modules, include,
171871 [daniels@pr n] module M
171907 [listrecv@gm ] I see.
+ 171914 [cyclists@nc ] A little bit of both, actually. Here's a good description of what a
+ 171921 [florgro@gm i] A module is a set of instance methods and constants. It can either be
  172065 [listrecv@gm ] I see.

How are people making use of Iconv?
171864 [wilsonb@gm i] Since Iconv jumped out of the pond and chewed on my leg the other
171885 [f@an re s- .] Well, that's all that Iconv is supposed to be used for.
171916 [pabs@pa lo r] [snipped]
+ 171933 [wilsonb@gm i] <snip interesting code>
| 171955 [pabs@pa lo r] can
+ 171969 [chneukirchen] Can't you just use //IGNORE?
  + 171970 [pabs@pa lo r] an=20
  + 171972 [pabs@pa lo r] an=20

Regex with multiple returns
171865 [listrecv@gm ] boringstuff(returnthisplease)notthis(butthis)dontwantthis(butIdowantthisnomatterhowmanyparenthiesisthereare)
+ 171866 [daniels@pr n] "boringstuff(returnthisplease)notthis(butthis)dontwantthis(butIdowantthi
+ 171884 [bob.news@gm ] boringstuff(returnthisplease)notthis(butthis)dontwantthis(butIdowantthisno
  171899 [w_a_x_man@ya] p "junk(keep)trash(this)detritus(text)".scan(/\((.*?)\)/).flatten

Re: How do I do this in ruby?
171867 [Russty01@ao ] ...

Ruby - Any help
171872 [kjb@wi ty co] - I was just wondering if there is any where planned for indepth advice/
+ 171873 [admin@tu bo ] set up for this exact purpose - There arent many posts I dont think but
+ 171874 [james_b@ne r] Right here at ruby-talk.

Ruby Weekly News 12th - 18th December 2005
171878 [timsuth@ih g] Ruby Weekly News 12th - 18th December 2005

Multibyte regexps...
171882 [hsanson@mo g] I am having some issues with regular expressions when working with japanese
+ 171889 [chesschintan] ...
+ 171898 [matz@ru y- a] The encoding seems to be Shift_JIS. You have to specify encoding
  172533 [hsanson@mo g] Thanks a lot...  this seems to work ok.
  172534 [hsanson@mo g] I found some documentation about this. Thanks.

Best lexer/parser for Ruby language itself
171888 [anatol.pomoz] ...

A interesting obervation about object_id method
171891 [hankgong@gm ] ...
+ 171892 [chesschintan] ...
+ 171896 [setrodox@us ] [SNIP]
+ 171900 [dandiebolt@y] ...
| 171998 [drbrain@se m] Using pointers to odd memory addresses a common way of representing
+ 171905 [twifkak@co c] That's because Fixnums are "immediate." So are Symbols. It's a
  172011 [ruby-forum-r] Even without going to implementation details, the code

How can I get soap4r to work with digest authentication?
171893 [yonatan_avra] I used wsdl2rb.rb to create a SOAP client and got it to work with basic
172500 [yonatan_avra] Security alert:  Don't use my code as-is!  I checked with a sniffer and
172556 [yonatan_avra] I fixed the problem of always sending the password in the clear by
178464 [nakahiro@sa ] Sorry I couldn't reply sooner.

Scarce Resources (was: Bruce Eckel and Ruby)
171901 [hutch@re ur ] This is an interesting point that deserves some consideration. This

Nitro + Og 0.26.0: New auto admin, scaffolding, morphing, sweeper, revisable, searchable
171906 [george.mosch] Dear devs,

ruby videos
171908 [doctlo-usene] Aside from the Rails demo, are there any ruby videos online?
+ 171911 [james@gr yp ] Some Nitro/Og videos now, but I'm not aware of any generic Ruby videos.
| + 171912 [george.mosch] more to follow...
| + 171913 [dandiebolt@y] ...
| | + 171917 [james@gr yp ] I use Snapz Pro X, on Mac OS X.
| | | 171923 [f@an re s- .] vnc2swf seems to produce much smaller files.
| | | + 171938 [mictro@gm il] Hoi
| | | + 171967 [rodrigo.berm] Amazing !
| | + 171924 [james_b@ne r] I've used Microsoft's Media Encoder.  Free, good results, easy to use.
| |   171934 [dandiebolt@y] ...
| + 171931 [pat.eyler@gm] I've started playing with screencasts, and have put a short video up
|   171957 [james@gr yp ] I think this is great stuff, though we probably want content with
+ 171958 [Bil.Kleb@NA ] I have a feeling I don't fully understand your question
| 172072 [doctlo-usene] I'm not sure. I was thinking more of the Ruby on Rails tutorial or of
| 172114 [Bil.Kleb@NA ] Agreed; things are fragmented: Ezra has the audio and videos[1],
+ 172775 [jeffrey.dik@] I personally thought the RubyZilla

Key-mapping
171909 [gunnar.larss] I know this is not a Ruby thing, but I try anyhow.
171977 [leavengood@g] That functionality is provided by the readline library, which I don't
171994 [gunnar.larss] Ryan

Re: RRobots (#59)
171915 [voxvam@sh w.] Oh, that's cool.

OT: Mac configuration
171918 [tim@co le ti] I am switching from Windows to Mac specifically for Ruby development.
+ 171930 [cyclists@nc ] I've been very (make that _extraordinarily_) happy with my 15" G4
| 171952 [rdm@cf l. om] Actually, the XCode package contains lots more than
| 172335 [groups@gr nd] Agreed. LOTS of little tools and widgets get installed. GetFile and
+ 171965 [penryu@sa yi] The dev tools include Xcode, gcc4, an X server that works well
  171978 [logancapaldo] ...
  171988 [penryu@sa yi] penryu@kotoko:~>% type -a ruby
  172258 [tim@co le ti] Thanks for all the info.  New Mac arrives next week!
  172301 [jrjung@gm il] I like using either...

Hash Keys in WEBrick config.rb
171922 [explosiv0SX@] While searching for Ruby app configuration best practices, I came
171932 [phurley@gm i] Largely a matter of style - plus you have to type one less letter :-)

Looking for better Ruby/Tk references...
171926 [chris.dagnon] ... or better GUI APIs for Ruby.
+ 171963 [zhengyi@an r] ... well, without stepping into that minefield...
| 171997 [chris.dagnon] That is a much better reference than what I've found so far - gives both
| 175523 [rubytalk@gm ] ...
| 175555 [nagai@ai ky ] Did you see the sample "ext/tk/sample/tkcombobox.rb" on
| 175597 [rubytalk@gm ] ...
+ 175615 [cameron.math] Gtk can be used w/ glade (it works wonderfully for me).  I'm not sure

signing a gem package
171942 [beeplove@gm ] I would like to sign my gem package that I am going to distribute soon.
171968 [pabs@pa lo r] I had hoped some sort of Rubygems public key infrastructure (PKI) would

Why not Python? (No, no, I am not a spy)
171943 [tolgacavdar@] First of all and very first of all, I must state that I am not an enemy
+ 171945 [pat.eyler@gm] Well, there has already been a lot of discussion around this.  To me it
+ 171947 [jeff.darklig] ...
+ 171950 [halostatue@g] Whichever one makes you happier.
| 171974 [logancapaldo] ...
| 171984 [halostatue@g] Sure, I guess ;)
+ 171951 [james_b@ne r] Pick the language that makes you happy, that best fits your brain while
+ 171959 [steffen@gn h] What exactly did make you feel happy?
| 171975 [slitt@ea th ] What makes me happy about Python is subordination by indentation.
| 172221 [rcs@bg ar .n] Sorry, but the indentation feature of Python (along with the mandatory
| + 172225 [ryansobol@gm] Excuse my newbi-ness, but isn't that "self rule" for class methods
| | + 172240 [binary42@gm ] OR
| | | 172244 [dblack@wo bl] class A
| | | 172248 [gene.tani@gm] let's not forget
| | | 172250 [dblack@wo bl] Oh, let's :-)  I really wish :: as a synonym for the dot would
| | | 172251 [gene.tani@gm] if "::" is used exclusively for class constants, i guess it's slightly
| | | 172434 [dblack@wo bl] For constant lookup it seems perfectly fine.  I just don't know what
| | + 172272 [jeff.darklig] ...
| + 172317 [w3gat@nw ag ] Three years ago I wanted to put all of the medical records of my office
+ 171960 [oliver.andri] Well, I have been using Python a lot for a long time, and I guess I will
| 172084 [krishna.vive] I am not really experienced in python but somehow the  whitespace
| 172120 [jim@fr ez .o] I've heard this mentioned and assume it is true, but maybe the Python
+ 171966 [rcoder@gm il] Tolga,
| 171986 [tolgacavdar@] Thank you all for your replies. I think, I've learned how to find my
+ 171971 [ptkwt@ar cn ] We have similar interests, I think.  I've used Ruby for programming various
+ 172129 [pauldacus@gm] I actually recently tried to pick up Python, by reading 'Dive Into
+ 172131 [gene.tani@gm] I don't have much to add, you can google for 750 k hits for "ruby vs
| + 172133 [gene.tani@gm] ...
| | 172143 [jeff.darklig] ...
| + 172144 [slitt@ea th ] If you read between the lines in this thread, you notice that only
|   + 172146 [jeff.darklig] ...
|   | + 172291 [chneukirchen] I'd be really curious about what you asked there. :-)
|   | | 172312 [jeff.darklig] ...
|   | | 172344 [chneukirchen] I see, the iterative version at
|   | | 172347 [jeff.darklig] ...
|   | | + 172348 [jeff.darklig] ...
|   | | | 172353 [flori@ni e. ] return 1 if x <= 1
|   | | + 172350 [lukfugl@gm i] def factorial( x )
|   | | | 172354 [jeff.darklig] ...
|   | | + 172432 [chneukirchen] There are no loops in Scheme.  (while is syntactic sugar.)
|   | + 172297 [greg.kujawa@] I agree. After communicating in various communities I have found Ruby
|   |   172313 [jeff.darklig] ...
|   + 172461 [snail@ob me ] <slitt@earthlink.net> writes
+ 172198 [martindemell] Whenever I'm asked for a one-word answer to why I prefer Ruby to Python,
threads.html
top