313884-334446

313676-370160 subjects 314055-350564

Where to learn rdoc?
313884 [bjohnson@bi ] I know this is a noob question but I decided ot start documenting all of
+ 313886 [keeperotphon] ...
| 316181 [tony.strauss] Actually, http://rdoc.sourceforge.net is outdated (we're working to
+ 316182 [tony.strauss] Try http://rdoc.rubyforge.org.

Is Red Dead?
313888 [transfire@gm] Is Red dead?

How do I quickly search the end of a huge text file?
313890 [gallagherjb@] I am trying to create a ruby script that will search a maya ascii file
+ 313891 [keeperotphon] ...
| 313892 [gallagherjb@] Thanks for your input... I actually tried using SEEK_END - couldn't get
+ 313895 [botp@de mo t] # I am trying to create a ruby script that will search a maya ascii file
  313896 [gallagherjb@] It's slow because the script is going to integrated into the companies
  + 313900 [botp@de mo t] # It's slow because the script is going to integrated into the
  + 313903 [etaern@ya oo] begin
    313904 [etaern@ya oo] I meant the rest of the lines . Sorry .
    313929 [gallagherjb@] Thank you very much!! That's exactly what I was looking for!
    + 313933 [botpena@gm i] if i'm not mistaken, that would  be
    + 313934 [jreidthompso] 50 megabytes = 52 428 800 bytes

Digest Authentication in Rack
313893 [btrichardson] Has anyone been able to figure out how to use the digest authentication

FeedTools
313894 [jos.trem@gm ] While I've got some code working on my Ubuntu machine, trying to get

Need a 40 LOC (ignoring comments) to be shorter -- suggestions wanted
313897 [RichardDummy] Within 10 minutes, Use the digits 3 to 7 in any order
+ 313899 [botp@de mo t] cool daughter. me, only sons, very terrible when they fight each other =
+ 313902 [rubytraining] On Sep 4, 9:40=A0pm, RichardOnRails
| + 313909 [RichardDummy] .org/266447
| + 313912 [larsch@be un] (3..7).to_a.permutation.sort_by { |a| a[0..2].to_s.to_i *
|   + 313916 [robert.dober] (i) A trivial trick is to replace (3..7).to_a with [*3..7]
|   + 314085 [RichardDummy] If this were the Olympics for succinct Ruby,  you=92d get the Gold!!
+ 313905 [phasis@gm il] Here is a simple and stupid solution.
+ 313907 [robert.dober] I believe it can easily be seen that a number of form xy or abc where
| + 313908 [B.Candler@po] Verbose and inefficient, but there was a 10 minute limit :-)
| | 313911 [B.Candler@po] Damn this is annoying :-)
| | 313915 [B.Candler@po] My final offering, inspired by Park Heesob's solution.
| + 313951 [brabuhr@gm i] #!/usr/bin/env ruby
|   313958 [rhkramer@gm ] Is using a computer a requirement?
+ 313931 [w_a_x_man@ya] On Sep 4, 11:40 pm, RichardOnRails

anyone having issues with rubyforge at the moment?
313898 [greg.hauptma] Is anyone having trouble with rubyforge at the moment?
313977 [greg.hauptma] Updating installed gems

about critical section
313901 [difeiz@gm il] Greetings all,
313910 [tpreal@gm il] I think you can use Mutex. First

[solved] Re: about critical section
313906 [difeiz@gm il] man 2 open, there is a O_EXCL

How to fetch images from web page with relative path
313913 [yzheng@ta ho] here is the code, it works when the image has a full path, but I met
313914 [yzheng@ta ho] BTW, I use rmagick.
313918 [etaern@ya oo] What do you use to get the links ?
313924 [etaern@ya oo] Would you consider switching to mechanize ? It can handle relative links
314128 [yzheng@ta ho] Thanks Lex, I will try.
334446 [jazzezravi@g] Get all images from given URL

method chaining via symbols
313919 [snacktime@gm] If this is too strange just say so.  Tonight I was working with a
+ 313920 [jcoglan@go g] ...
+ 313921 [jcoglan@go g] ...

how to read digits in a number
313923 [jsnit@js it ] I would like to read all the characters in a string. For example
+ 313926 [ jupp@gm .d ] For strings use
| 313928 [shortcutter@] For me, glasses work extremely well. ;-)
+ 313932 [botpena@gm i] => "1234"

Bug in the YAML library: #dump fails for certain multi-line strings
313925 [jtrupiano@gm] Hey guys,
313959 [jtrupiano@gm] Just upping this because I think it's particularly important.  Is

Extend OpenStruct's functionality with explicit default value
313930 [shortcutter@] I just had a use case where I wanted to have several counters and not
+ 313939 [transfire@gm] I recently submitted a patch that allowed OpenStruct to take a self
| 314054 [shortcutter@] Sorry, somehow I seem to have forgotten to send this earlier.
| 314101 [transfire@gm] Glad you agree. Hell of a lot faster then send(key) and
| 314120 [robert.dober] I followed this discussion rather loosely, but sometimes that gives a
| 314121 [robert.dober] and implement defaulted also as a self returning instance method to
+ 313950 [ara.t.howard] why not simply
  314006 [botp@de mo t] # why not simply
  314007 [ara.t.howard] in all fairness that's *probably* not true.  aka, if the code reads
  314009 [botp@de mo t] #...

How to use a template library class using rubyclr
313940 [harshad@gs a] I have a created a dll using c# .net. The dll contains a few function

[QUIZ] Equation Graphing (#176)
313942 [matthew.moss] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 314240 [brabuhr@gm i] I didn't follow the requirements, but inspired by the quiz did a
+ 314409 [martindemell] Here's my solution, using _why's wonderful little shoes toolkit. Run like
+ 314573 [hramrach@ce ] ...

ruby based mysql sniffer
313944 [junkone1@gm ] therei sone in perl. i am looking for a equavalent in ruby. i just
+ 313957 [joost@ze ka ] 1. why don't you just turn on logging in mysql and check out the query
+ 313969 [phlip2005@gm] If you use ActiveRecord, try assert_latest{}. It returns an array of arrays

how to search a website
313945 [chen_li3@ya ] I want send a query to a website(which has a search button), wait for
+ 313948 [mikeisgreat@] check out curb. http://curb.rubyforge.org/
+ 313953 [james.britt@] Look at Mechanize.
  313960 [chen_li3@ya ] I download gems for both "mechanize" and "hoe" but still have problems
  313961 [brabuhr@gm i] If you are downloading the gems to install locally, you also need to
  313962 [brabuhr@gm i] ...
  313963 [adamtemporar] regarding mechanize, ive been tinkering with it and i want to knwo if
  313967 [etaern@ya oo] agent.page.body ( or whatever method you want to call on it )
  314092 [adamtemporar] excellent lex that did the trick. I checked the core but that method
  314114 [etaern@ya oo] which method Adam ?

Who's Charles angry at?
313946 [jballanc@gm ] Mymymy...such vitriol! Look, I've never had anything against JRuby. In
313983 [charles.nutt] I don't think there was any vitriol at all. I avoided that kind of rant
+ 313993 [billk@ct .c ] Every time I see one of the JRuby team's posts on ruby-talk about a
| 313999 [james.britt@] In fact, Charlie, Tom, et al, have broken several Kick-ass-O-meters.
+ 313996 [AEtzold@gm .] Dear Charles, dear Joshua,
+ 314004 [jballanc@gm ] True. Vitriol was probably too strong. What caught me most was the form
  + 314012 [billk@ct .c ] My feeling as a lurker on ruby-core, is that all implementations (and
  | 314017 [matz@ru y- a] +1 They have declared they'd follow "Ruby", and we have good
  + 314014 [dblack@ru yp] Matz gets to say. There's never been any ambiguity about that.
  + 314018 [matz@ru y- a] It's our bad.  We just forgot the set up the date for the next one at
    314019 [charles.nutt] Yes, absolutely. I can meet next week, but the following two might be
    314021 [charles.nutt] I should also say that although I might not be available the last two

alias_accessor
313949 [transfire@gm] I don't understand why something like this isn't in core.

camping web framework question
313952 [his2000x@gm ] my camping server is strage.

Why use __FILE_, __LINE__ in class_eval?
313954 [bjohnson@bi ] class_eval src
313955 [ara.t.howard] raise an error inside the eva'd code and see

closing DialogBox in FXRuby
313966 [MAwiniarski@] Greetings,
313984 [lyle@ly ej h] getApp().stopModal(dialogBox, true)

[ANN] wordnet 0.0.5
313971 [ged@Fa ri MU] Version 0.0.5 of Ruby-WordNet has been released.
313988 [fophillips@f] y, an

accessor methods for class methods
313972 [jason.lillyw] It seems odd that cattr_* (i.e. cattr_accessor, cattr_reader,
+ 313973 [ibc@al ax ne] class MyClass
+ 313974 [dblack@ru yp] I can't answer that directly, but I can tell you why I'm glad it
  313987 [shevegen@li ] I can not answer this but personally I have stopped using class
  313989 [jason.lillyw] Thanks. That makes sense. I want to do what is simplest, but it seems
  313990 [dblack@ru yp] You're not actually using any class variables in your example. If you

String sanitizing
313975 [twarlick@gm ] I have implemented a sanitize! method into the String class to
+ 313976 [dblack@ru yp] I know that's not an answer to your question, but I'm not sure about
+ 314026 [robert.dober] ),
+ 314035 [shortcutter@] Copies won't be affected.  E.g. if you do
  + 314036 [dblack@ru yp] But what would String#sanitize and String#sanitize_robert_paranoia do?
  | 314118 [robert.dober] Assuming a conservative GC and Memory Management, also assuming that
  + 314079 [twarlick@gm ] ry),

is it possible to turn a private method into a public one?
313980 [etaern@ya oo] hey guys !
314045 [fxn@ha hr f.] Sure.

Re: is it possible to turn a private method into a public on
313981 [tpreal@gm il] class K
313982 [etaern@ya oo] Thank you ! This will come in handy !
314028 [davebass@mu ] Also, it's possible to bypass the protection using the Object#send

Gateway Down (was Re: Parsing a CSV file column-wise)
313985 [james@gr yp ] It has been brought to my attention that the gateway is misbehaving.
314279 [james@gr yp ] This was my fault.  I tried to upgrade TMail on the gateway server and

Singular vs Shared Development of Ruby projects
313986 [shevegen@li ] This may be an awkard question.

dynamically assigning class constants
313992 [phodgson@ly ] class Level
313994 [phodgson@ly ] Apologies, s/Comparable/Level/ in the example code.
314000 [azimux@gm il] there might be a method for specifically creating constants,but if not
314003 [fxn@ha hr f.] module M
314005 [phodgson@ly ] Wonderful, thank you Xavier!

How to parse <pubDate> in RSS
313995 [rubyongirl@g] Is there another way to get a valid date from pubDate in RSS like this
+ 313998 [AEtzold@gm .] require "date"
+ 314008 [botp@de mo t] # Is there another way to get a valid date from pubDate in RSS like this

Request: arguments by reference
313997 [ei04065@gm i] Would be possible to include the option to pass arguments by reference
+ 314020 [tpreal@gm il] I think not. In Java you cannot pass by reference, and that's not
| + 314022 [tpreal@gm il] Sorry. What I said is not what I meant, and is not correct. This
| + 314027 [ei04065@gm i] This is obviously a "solution" but with considerable performance
|   314029 [tpreal@gm il] Well, of course there is some performance penalty, but I guess it is not
|   314037 [ei04065@gm i] 1 - Everything is supposed to be an object;
|   314039 [tpreal@gm il] So I think that the best solution could be not to add syntax for passing
+ 314051 [ruby@an hr p] First off, you're talking about a rare need. It's generally poor practice
+ 314213 [shortcutter@] Maybe.

Why is Ruby dynamic?
314001 [youhaodeyi@g] People say Ruby is a dynamic language. I don't understand what the
+ 314048 [james@la ya ] Essentially, yes. You might consider it sort-of-opposite to a
| 314053 [shortcutter@] There are several aspects to Ruby's dynamism: methods and classes can
| 314088 [youhaodeyi@g] It is also same for other scripts like perl, python, so they are all
| 314102 [avdi@av i. r] Yup.
| 314107 [lists@be tr ] class Time
| 314286 [perrin@ap th] Python is "dynamic" compared to, say, C or Java.  People tend to want to
+ 314288 [phlip2005@gm] class Narcissus
  314293 [ninja@sl ph ] A nitpick, but... string evals considered harmful!
  314320 [phlip2005@gm] I recently tried define_method and it didn't work, so I fell back to eval. (Note
  + 314323 [dblack@ru yp] define_method is a private instance method of Module, so a typical use
  + 314344 [ninja@sl ph ] This is worth bearing. I don't have a problem with eval, only with string

Is Ruby good at GUI develop?
314002 [youhaodeyi@g] I want to choose a script to develop a GUI program. I want to know more
+ 314011 [james.britt@] There are assorted C-based options for GUI toolkits (Tk, Fox, wx, GTK,
| 314395 [cameronjc200] I must say I'm not totally happy with _any_ of the current offerings
| + 314411 [james.britt@] NetBeans.  Built in GUI editor that Just Works.  Cross-platform.  Free.
| + 314412 [farrel.lifso] You can use Glade to do this with Ruby-GNOME2.
| | 314413 [pilz@os -d .] You can use Aptana IDE with Ruby for the Code, the Qt Assistant for
| + 314414 [logustus@gm ] Jason,
| + 314417 [huw@da kn on] Don't fight it ;-)
|   314432 [youhaodeyi@g] I do not quite care about the developing IDE for ruby GUI. What I want
|   314434 [pilz@os -d .] qt4-qtruby is kinda wrapper for Qt4, GUI is nearly same speed as with
|   314444 [cesare.diaz@] You can use Glade. I made a software with Ruby + ActiveRecord + Glade
|   314465 [cameronjc200] Wow.  Quite the storm!  Oh well.
|   314483 [logustus@gm ] ...
|   314674 [cameronjc200] I've got to remember to start with small projects before I go for big
|   314682 [logustus@gm ] All of your files should be named with underscores
|   314788 [cameronjc200] I followed the example on the site and created a working app.  I tried
+ 314501 [timrandg@gm ] It won't work for linux users, but I am interested in macruby--an ruby/
  314506 [f3ler0x69@gm] ...

Question About TCPServer & TCPSocket classes
314010 [poeticjustic] I've been messing around with socket programming in Ruby lately, and I've
+ 314013 [vjoel@pa h. ] This method reads until newline, and binary data (such as Marshal.dump
+ 314016 [shortcutter@] Steve, you are mixing #read, #write on one side and #readline on the
  + 314057 [vjoel@pa h. ] Good point. I forgot that the output of Marshal records how long the
  + 314084 [poeticjustic] Robert,

restarting design meeting (Re: Who's Charles angry at?)
314023 [matz@ru y- a] I am available on September 11th, 18th, 19th (in JST).  As usual, they
314031 [charles.nutt] 10th/11th only will work for me, but other JRubyists can probably cover
314032 [matz@ru y- a] I always feel bad for European people about the timezone issue.
314033 [charles.nutt] Moving the meetings to evening JST would help the Europeans out I
314034 [matz@ru y- a] JST midnight (0:00) corresponds to

Frustrated: System call timeouts
314025 [raasdnil@gm ] I am having some (un)fun with timing out a database calls.
314040 [ara.t.howard] try this
314300 [raasdnil@gm ] Ara, thank you _so_ much for this.
+ 314307 [martindemell] I agree, that was very clever :) Bookmarked in case I ever need this.
+ 314324 [hramrach@ce ] Since you are using popen anyway you can just have your ruby process
| 314339 [ara.t.howard] correct.  this is basically how systemu does it, which you could use
+ 314340 [ara.t.howard] i keep meaning to turn this into a library but have not.  any other
| 314397 [raasdnil@gm ] No, the pid issue is the only thing... it sometimes misses.
| 314398 [ara.t.howard] oh that's good!  i can give you commit rights to codeforpeople and we
+ 314502 [rogerpack200] There's also a timeout replacement lib [though I haven't tried it].
  314545 [raasdnil@gm ] Thanks for that, I had already tried it.  This doesn't _always_ catch

[ANN] JVMScript
314030 [charles.nutt] In honor of the new project-hosting site kenai.com, I've spun off a

TCP Socket Programming
314038 [magic07@re i] I am trying to establish communication between 2 applications.
314058 [vjoel@pa h. ] Different ports :) And I'm not sure the string '1025' will be
314065 [magic07@re i] sorry...that was a mistake..typo error.

attr_*, *variables_*
314041 [ei04065@gm i] It wouldn't be nice if all these methods respect a unique arguments
+ 314043 [dblack@ru yp] I guess so. I don't really care too much.
| 314046 [ei04065@gm i] Of course this is a minor detail in how methods process their arguments.
+ 314056 [tpreal@gm il] (Did you mean 'uniform'? Or I don't understand this sentence.)
  314059 [dblack@ru yp] attr_accessor :@a is ultimately confusing, though, because the

[ANN]  September Phoenix Ruby User Group Meeting
314044 [james.britt@] September Phoenix Ruby Users Group Meeting
threads.html
top