201866-203614

201720-204985 subjects 202148-236689

gem plist not found ???
201866 [pere.noel@la] Could not find plist (> 0) in the repository
+ 201868 [pere.noel@la] *** REMOTE GEMS ***
| 201870 [pere.noel@la] ~%> gem query --remote
+ 201872 [snacktime@gm] I think the repository is messed up.  I get the same thing no matter
| + 201874 [pere.noel@la] thanks, i'm not too drunky on july 14th ;-)
| + 201883 [pere.noel@la] ~%> gem install plist --remote --source
+ 201954 [collinsj@se ] ...
  201978 [yvonthoraval] ...

how to use Plist ???
201875 [pere.noel@la] #!/usr/bin/env ruby
201876 [pere.noel@la] also i should say i have the same prob running "test_plist.rb" included
201887 [pere.noel@la] in fact, this has nothing to do with ruby nor ruby_gems, it comes from
201920 [ces.fci@gm i] Try
201922 [yvonthoraval] ...

Receiving faxes and interacting with them in ruby?
201877 [bjohnson@co ] ...

Return parsed object from REXML::StreamListener
201879 [endlessinfin] I've successfully created a Listener class that creates a number of

About MyClass#my_method
201885 [zimba.tm@gm ] I always see the # notation in the docs to design instance_methods.
+ 201890 [transfire@gm] It has it's merits. I have to agree, since we use the notation all the
| 201904 [zimba.tm@gm ] Yes but Matz said to optimize breakage for 2.0 so this might be worthwile.
| + 201907 [transfire@gm] I would be even better if they retained state too.
| + 202131 [chneukirchen] Assuming you mean me, I dare you call me a "lisp guy".  Thank you. ;-)
|   + 202149 [zimba.tm@gm ] Hehe, no it's not you. I'm looking in ruby-talk but can't seem to find
|   + 202156 [transfire@gm] There would be a difference actually.
+ 201894 [dblack@wo bl] That syntax is already taken, for comments.
  + 201908 [transfire@gm] We already have theat ambiguity though. That's why we have to append ()
  + 201914 [zimba.tm@gm ] I know but other characters are used differently in various
    201924 [dblack@wo bl] OK, then let me put it differently: repurposing comment syntax is a
    201955 [zimba.tm@gm ] Yeah your point is really valid :-) Nonetheless, how often do you
    201958 [dblack@wo bl] It doesn't matter.  There's no time limit: comments should have their
    202118 [transfire@gm] But I would think this would be sufficient in the cases of capitalized
    202124 [zimba.tm@gm ] Nobody else want to join the discussion ?

GOLF (and improve) #instance_interception
201896 [transfire@gm] I have been working on this and was hoping maybe others would like to
+ 201906 [dblack@wo bl] module A;def f;"F";end;def g;"G";end;end
+ 202059 [ryand-ruby@z] It looks an awful lot like MuffDaddy to me.
  202076 [transfire@gm] 'Fraid MuffDaddy'z not so "ultimate" -- It's not dynamic.

subclassing assertions.rb
201899 [patrick@pk p] I need to subclass Test::Unit::Assertions so I can log the assertions as
201966 [drbrain@se m] You can only subclass a class.

rubywebdialog
201901 [rajib.chakra] This is rajib a ruby nub...e .
+ 201915 [fermikami@gm] Because "$SAFE = 2"  in ev/rwd.rb:59.
| 202089 [rajib.chakra] ========
| 202111 [fermikami@gm] The simplest solution could be installation of ruby 1.8.2,
| 202462 [rajib.chakra] Oh ... it is working now..
| 202588 [erikveen@gm ] That's because FireFox was already running. Instead of starting
+ 201930 [erikveen@gm ] If you set the environmental variable RWDBROWSER to nothing

[QUIZ] Negative Sleep (#87)
201903 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 202243 [robert.dober] ...
| 202249 [hawkman.gelo] ...
| 202259 [mrotondo@gm ] ...
| 202263 [Pierre.Barbi] ...
| 202266 [rubytalk@ea ] ...
| 202268 [dingsi@mi tb] be too
+ 202272 [mitchell@ko ] Alright, I basically took that definition of negative sleep, although
| 202273 [hal9000@hy e] This has to be the most useless Ruby Quiz I've ever seen.
+ 202363 [pit@ca it in] This is not a submission, I just wanted to show that with some evil
| 202372 [james@gr yp ] But now we all want to see the code so we are curios why you didn't
| 202387 [pit@ca it in] Yeah, I think I shouldn't have posted it, but I couldn't resist to make
+ 202409 [adam.shelly@] When I read this quiz, it reminded me of the time I was working on a
  202461 [robert.dober] ...
  202518 [adam.shelly@] oops. It's been about 10 years since I used Unix regularly, and I was
  202558 [robert.dober] ...
  202574 [robert.dober] ...
  202585 [james@gr yp ] The mailing list link requires a little work to extract it from,
  + 202612 [bonefry@gm i] I am a beginner, so please forgive my newbish skills :)
  + 202646 [robert.dober] ...

Don't understand :: in ActionController::Base
201910 [pal@pa be gs] I understand the concept of classes and subclasses thanks to the
+ 201912 [pal@pa be gs] Btw, I'm told that I can find the answer in chapter 9, starting at page
| 201947 [jp@je fp it ] I'm a newbie too.  I'll stick my neck out and answer here just so as to
| + 201965 [logancapaldo] Everything but sentence was perfect. You can't inherit modules.
| + 201994 [pal@pa be gs] Thanks for the effort Jeff. A good trick :-)
+ 201913 [dblack@wo bl] ...
+ 201980 [gwtmp01@ma .] This seems to be a common source of confusion when learning Ruby
  201995 [pal@pa be gs] Thanks. That helped.

HELP IMPROVE #instance_interception
201911 [transfire@gm] Well, okay. I guess golf isn't exactly what I mean. Just *improve"

File::FNM_CASEFOLD doesn't work for Dir.glob?
201917 [transfire@gm] Dir.glob('[fF][oO][oO][dD][iI][rR]/*')
+ 201927 [one.three@gm] martins@thno:~/tmp$ touch file.txt
| 201940 [transfire@gm] Oddness...
+ 201939 [nobu@ru y- a] Seems nice to be backported from the trunk.
  201941 [matz@ru y- a] Yes, please.

[QUIZ][SOLUTION] Re: Sokoban (#5)
201932 [m_goldberg@a] Here is one more solution to the Sokoban quiz. I think people might
202055 [james@gr yp ] Welcome to Ruby, Morton, and thanks for sharing your code with us!  ;)

RubyCocoa problem on Mac OS X
201956 [h.dunnil@gm ] I downloaded the binary version of RubyCocoa
+ 201959 [pere.noel@la] if i remeber well i had months ago something like that...
+ 201963 [logancapaldo] The RubyCocoa packages for whatever reason use the Apple supplied

Re: how to download a file ?
201970 [Christopher.] To follow up on the excellent suggestion by Kenosis ;) Here is how

Re: Nuby Q: Daemonize SOLVED
201999 [rogueamateur] problem solved, or so it appears.  thank you, ALL of you, for your most

Populate Gtk::TreeView?
202006 [yottskry@gm ] I'm in need of a Gtk::TreeView in an application. I create the treeview
+ 202011 [kenosis@gm i] Posting the code could help us to help you.
+ 202135 [detlef.reich] there could different faults.

Handling cookies with Net::HTTP?
202033 [bjohnson@co ] ...
202035 [cdc@cy he s.] How about using mechanize so you don't have to worry about handling cookies
202038 [bjohnson@co ] ...

[ANN] Ruby Win32 SSPI 0.0.1 - Enabling NTLM/Negotiate proxy authentication
202037 [jgbailey@gm ] ...

Help making a ruby module
202039 [mcgoverp@la ] I am working on making a ruby module to wrapper the xsan quota fctl calls.
+ 202095 [decoux@mo lo] See ext/etc/etc.c in the ruby distribution to see how create and return a
+ 202104 [nobu@ru y- a] Seems module functions better.
  203614 [mcgoverp@la ] Thanks for the help, i also figured it out using SWIG, though it's just

[ANN - Resend] Ruby Win32 SSPI 0.0.1 - Enabling NTLM/Negotiate proxy authentication
202040 [jgbailey@gm ] ...

Mac OSX Ruby Configuration Question
202042 [steverummel@] I recently installed Ruby 1.8.4 on my iMac, running OSX 10.4. Ruby,
+ 202043 [drbrain@se m] mv /usr/bin/ruby /usr/bin/ruby182-orig
| + 202044 [curi@cu i. s] won't that mess up anything that tries to use the system version?
| | 202047 [steverummel@] Thank you for the help -
| | + 202049 [curi@cu i. s] oh oops.
| | + 202065 [nobu@ru y- a] /usr/local/bin is after /usr/bin.  The order is significant.
| |   202138 [steverummel@] Thank you for your reply - I updated my .bash_profile and it worked great.
| |   + 202142 [Rob@Ag le on] ...
| |   + 202145 [curi@cu i. s] I believe if you have a .bash_profile, then .profile isn't run unless
| + 202045 [steverummel@] Thanks for the fast reply - if I read this correctly, I am literally
+ 202057 [devlists-rub] As Elliot suggests, re-order your path.  The system looks for programs
  202079 [schapht@gm i] Just to speak on this point, I've been safely using the replacement
  202108 [devlists-rub] Sometimes modifying /usr/bin is the only option left - but sooner or

Alternate initializers or alternate class?
202050 [transfire@gm] Jan Molic recently contacted me about a slighlty modified version of
+ 202069 [sean.ohalpin] I generally find it easier to remember what general kind of thing I
+ 202073 [logancapaldo] The second implemented in terms of the first?
| 202078 [transfire@gm] Hmmm... I like the "taste" of that ;-)
| 202097 [sean.ohalpin] +1 - having cake and eating it is a thing devoutly to be wished for ;)
| 202228 [transfire@gm] Well, it seemed all well and good but now I find myself having to
| 202279 [sean.ohalpin] You don't have to write the code yourself! :)
+ 202093 [daniel.schie] I actually favor a third approach; keyword argument options.
  202098 [sean.ohalpin] I'm a big proponent of keyword arguments (which we implement in the
  202100 [daniel.schie] Who said anything about multiple classes?
  202130 [sean.ohalpin] Fair enough - I was thinking about the original implementation and

Configuring eruby with apache
202052 [eric.duminil] Sorry if this not the right place to post, please tell me where I
202054 [collinsj@se ] Have you set up your httpd2.conf file?
+ 202080 [schapht@gm i] Also, if you get that running, I really like that you can plunk this
+ 202094 [eric.duminil] Thanks a lot for your reply Justin!
  202099 [eric.duminil] Ok!
  202143 [collinsj@se ] Glad you got it working, I'm not an expert on it or anything :)

Re: Mac OSX Ruby Configuration Question - solved
202056 [steverummel@] I learned something new today. Your solution worked.

Hash.new(obj) of any signifficant value?
202060 [transfire@gm] Is this form of Hash initialization really very useful?
+ 202063 [ryand-ruby@z] I use Hash.new(0) constantly...
| 202074 [transfire@gm] Okay, I can see that.
+ 202085 [m_goldberg@a] I found the following useful

Some questions about Ruby and it's environment...
202067 [ihatespam@ro] I have two issues in Ruby which are bugging me.
202070 [drbrain@se m] On Jul 14, 2006, at 6:55 PM, Just Another Victim of the Ambient
+ 202083 [collinsj@se ] Well, it does look in the directory from which the script is run, which
| 202157 [ihatespam@ro] I'm pretty sure the "#!" line is meaningless on Windows and the shell
| + 202166 [jwkenne@at g] The shell doesn't. (However, Apache, when running under Windows, does,
| | 202170 [james.britt@] But it's configurable if you want Apache to use the Windows-associated
| + 202171 [wrecklass1@g] However, the .rb file extension is associated with Rocket eBook Reader.
| + 202173 [logancapaldo] On Jul 15, 2006, at 5:10 PM, Just Another Victim of the Ambient
+ 202084 [ihatespam@ro] Thanks, I went with the environment variable.  It's what I was looking
  202090 [drbrain@se m] On Jul 14, 2006, at 10:41 PM, Just Another Victim of the Ambient
  202154 [ihatespam@ro] Ah, indeed, system didn't work.  Windows does know how to execute PERL

possible DIR["**"] anomaly
202068 [mdurham@pe p] If you see DEFINITION of DIR["**"] and DIR["*"] below it suggests there
202072 [transfire@gm] Try Dir['**/*'], it only applies this way.
+ 202077 [mdurham@pe p] Thanks a lot.
+ 202086 [ara.t.howard] i've settled on
| 202165 [langstefan@g] I use Dir['**/*'].
+ 202175 [mdurham@pe p] using "**/*" doesn't seem to get all dirs, it misses the hidden ones
  + 202214 [Pierre.Barbi] The convention in file globbing is always to ignore the hidden files,
  | + 202215 [nobu@ru y- a] Dir.glob("**/lib/**/*.rb")
  | + 202216 [alex@bl ck e] Like this?
  |   202230 [Pierre.Barbi] Indeed ^^
  |   202233 [transfire@gm] +1
  + 202222 [langstefan@g] Dir.glob("**/*", File::FNM_DOTMATCH)

Any ideas for candidates for HOPL-III?
202088 [james.britt@] "In 1978, the first History of Programming Language Conference (HOPL)
202110 [studlee2@gm ] James,
202112 [james.britt@] Further proof of the value of literacy.
202115 [studlee2@gm ] I'll be in a retirment home by then -- not really I'm 23 -- but that is

net/http performance
202091 [luke@bu to .] (notes: I posted this to comp.lang.ruby, figuring it would filter
202107 [gwtmp01@ma .] Why don't you swap out WEBrick for Mongrel and run the same tests?
202139 [zedshaw@ze s] Better yet, don't use a Ruby web server at all, and use another tool you
202182 [luke@bu to .] I neglected to mention in my post that I have already double checked
202187 [flori@ni e. ] I think you're right. In the GET case (for both open-uri and net/http) I
202223 [akr@fs j. rg] I guess the timeout() is slow.
202224 [flori@ni e. ] The main problem seems to be, that the read* methods of BufferedIO all
202269 [ mfp@ac .o g] RUBY_VERSION                         # => "1.8.5"
202277 [luke@bu to .] Thanks to the many thoughtful suggestions here, I have implemented an
+ 202278 [luke@bu to .] An addendum: testing with ruby 1.8.4 from a Locomotive bundle I had
+ 202296 [garbagecat10] It would be really interesting to get a record of the actual data sizes
| 202299 [garbagecat10] a = @socket.sysread(65536)
+ 202324 [martin@sn wp] Does this improve noticeably if you use the read_nonblock suggestion
  202406 [luke@bu to .] I tested this earlier ... but my version of Ruby doesn't have
  202440 [akr@fs j. rg] This should work with 1.8.2.

Who likes Sudoku?
202109 [studlee2@gm ] Here is the smallest Ruby Sudoku solver I could come up with.  I've
+ 202113 [dblack@wo bl] Has GOLF become a "backronym"?  I thought it was just "golf", but I
| 202116 [studlee2@gm ] I'm not really sure about the whole "GOLF" vs. "golf".  We'll say
| 202125 [studlee2@gm ] This is a little smaller.
| + 202127 [rubytalk@ea ] ...
| + 202128 [studlee2@gm ] $p = ARGV.shift.split(//)
|   + 202129 [rubyfan@gm i] change  h=Hash.new() to h={}
|   + 202132 [rubytalk@ea ] ...
|   | 202133 [rubytalk@ea ] ...
|   | 202150 [adam.shelly@] Yes, before we golf this further, does it even work?
|   | + 202159 [ihatespam@ro] Well, I've seen someone else on this newsgroup (or the mailing list)
|   | + 202163 [adam.shelly@] oops, my mistake.  I was giving it a filename containing a puzzle on
|   |   + 202172 [rubytalk@ea ] ...
|   |   + 202176 [daniel.schie] There's no need for the `return' keyword, nor for the semicolon.
|   |     + 202193 [studlee2@gm ] Thanks for all of the comments and suggestions.
|   |     + 202207 [rubytalk@ea ] ...
|   + 202144 [lopx@ga et .] ARGV to $*
|     202158 [daniel.schie] Personally, I'd much rather have more do..end and more lines. Terseness
|     202168 [dblack@wo bl] ...
|     202174 [devlists-rub] _Kevin
+ 202126 [daniel.schie] 1.upto(10){|i| ... }

how to acces a MySQL table with ActiveRecord
202134 [jsnit@js it ] # require AR
202242 [jsnit@js it ] Posted via http://www.ruby-forum.com/.

Devious or what? : hacking super : should this work?
202140 [jeremy@ch os] I've discovered that an unadorned call to "super" need *not* call the
202147 [dblack@wo bl] I assume it's a feature.  super should be pretty transparent; for
202160 [jeremy@ch os] True, but that's not what surprised me.  Given "def foo(*args) ..." I
202177 [dbatml@gm .d] This definitely is the case for Ruby 1.8 and I can't reproduce your
202219 [jeremy@ch os] I am running 1.8.5-preview1 .  If I downgrade to 1.8.4 I get the
threads.html
top