72433-72844 subjects 72882-75398
[OT] mandelbrot, was: Binary Tree vs. Hash
72661 [schatten@no ] [snip Array lookup problem]
72696 [mneumann@nt ] Regards,
PHP serialize()/unserialize() module, and a dotlocker
72664 [tom.hurst@cl] Might be handy to some of those web guys using Ruby backends to PHP
72684 [tom.hurst@cl] Struct's are now handled, along with (in theory) any other PHP object
72665 [jason_watkin] 1.) Write ruby in the interactive interpreter
+ 72667 [billk@ct .c ] I'm a huge fan of irb. I primarily seem to do 2. but perhaps
+ 72668 [mwilson13@co] I do both, though I use 1. mostly for small programs (no new classes).
+ 72669 [phlipcpp@ya ] 3.) Pure Test Driven Development, from RubyUnit.
+ 72671 [dooby@d1 .k ] If you never run Ruby under Windows, skip this post!
+ 72672 [ahoward@fs .] i always have an irb window open, but code in files (sometimes i even have
How to structure a program for unit testing
72685 [jj5412@ea th] The time has come. I'm tired of that unsure feeling when I'm about to
+ 72687 [0bz63fz3m1qt] my ruby files is about 250 lines.
+ 72688 [jweirich@on ] The best way to learn about unit testing is to ... do unit testing.
| + 72690 [billk@ct .c ] There's also a nice translation of the "pink book" test-first
| + 72731 [sdate@ev re ] but looks like it is not yet moved to your new website.
| | 72740 [jweirich@on ] No it hadn't been moved yet. I've moved off of the Nuvox (nee OneNet)
| | 72767 [sdate@ev re ] Aha! Great ... I always refer to it from time to time. Haven't yet mastered
| + 72869 [frank.schmit] There's a nice book online available at
+ 72698 [lyle@us rs s] Others have already given you good advice about unit testing itself, and
72699 [Peter.Booth@] The Kent Beck book Test Driven Development: By Example explains this in
72686 [jbshaldane@h] I am using net/telnet.rb in ruby 1.8 with Telnetmode = false.
72691 [matz@ru y- a] Yes. Thank you for reminding us.
ANN: Reminder Phoenix eXtreme Programming User Group Meeting - June 9th
72701 [jay.turpin@i] ...
Programming generators with threads
72702 [ gv@cs uu nl] Callcc. He then gave an example with Calcc. Works fine. Here is my
72714 [pbrannan@at ] I tend to prefer using callcc for generators, because there are fewer
2003 Scheme Workshop - Call for Papers
72709 [mflatt@cs ut] .. 2003 Scheme Workshop
[ANN] FXRuby Users Mailing List Now Available
72715 [lyle@kn lo y] All,
72716 [vjoel@PA H. ] Glad to hear it. I've already subsribed to the discussion list. I assume
72723 [lyle@us rs s] I will cross-post all of my announcements to both fxruby-announce and
Unit Testing Style
72717 [emschwar@po ] I know I should have written my tests first, but I didn't, so now I'm
+ 72718 [michael_s_ca] In the general sense, I have a number of tests (in java, mind you)
+ 72719 [walter@mw ew] see inline...
+ 72736 [jweirich@on ] Just remember that the test method will terminate with the first failing
| 72739 [jim@fr ez .o] So Jim, do you have a short example of using rake to
| 72743 [jweirich@on ] I was wondering if anyone would catch the Rake reference.
| 72746 [jim@fr ez .o] Thanks for the example.
+ 72747 [phlipcpp@ya ] The best way to do this (in my exalted opinion) is to point the tests at an
72779 [emschwar@po ] Unfortunately, that works out to effectively rewriting the code from
72724 [dcoshel@ma .] I'd love to do it, but my technical vocabulary is too pathetic for
With Utmost Sincerity
72728 [derricknyeme] DR DERRICK NYEMEGOH,
CALL FOR ASSISTANCE
72729 [ikecollins@n] MR.IKE COLLINS
With Utmost Sincerity
72730 [derricknyeme] DR DERRICK NYEMEGOH,
case of sub! not working
72732 [ian@ca ib n.] [ianmacd@baghdad]$ irb
+ 72734 [vjoel@PA H. ] ENV is not exactly a Hash, but a singleton that behaves kinda like one.
| 72744 [ian@ca ib n.] Thanks for the explanation. This definitely violates the principle of
| + 72749 [hal9000@hy e] A surprise but not a bug. Things that interact with
| + 72752 [matz@ru y- a] Never say that. You had two assumptions
| | 72755 [emmanuel.tou] value.
| | + 72757 [vjoel@PA H. ] ENV['foo'] = 'bar'
| | | 72758 [emmanuel.tou] of
| | | 72797 [ jupp@gm .d ] Saluton!
| | + 72763 [matz@ru y- a] Do you mean freezing strings from ENV? Hmm, maybe.
| | 73018 [lists@za a. ] don't take this seriously...
| | + 73019 [lists@za a. ] sorry, i meant .
| | + 73020 [hal9000@hy e] of
| + 72769 [michael_s_ca] Can someone mention *why* this is like it is? (ENV keys are copies
| 72787 [hal9000@hy e] I'll take a stab at it. I can't promise that
| + 72789 [michael_s_ca] I gotcha. Ruby is doing this to avoid having to track the actual
| | 72801 [ian@ca ib n.] In my program, however, I would have been quite happy to have sub! just
| | + 72802 [Ephaeton@gm ] Which again needs the setenv() call to actually alter the value in the
| | | 72806 [michael_s_ca] Oh lord, now I realize I only half understood what was going on.
| | | 72807 [hal9000@hy e] Yes, except there's really no ENV##sub! method, if you know
| | + 72805 [matz@ru y- a] I understand what you feel, but still, environment variables are
| | 72808 [ian@ca ib n.] I understand your reasoning, but why is = any different to sub! ?
| | 72809 [hal9000@hy e] It's not really =, it's =.
| | 72813 [ian@ca ib n.] That's a very lucid explanation and I find I can now appreciate the
| | 72814 [hal9000@hy e] No problem. Explaining is the best way to
| + 72860 [sroberts@un ] Somebody suggested that strings returned by ENV# be frozen,
+ 72856 [flgr@cc n. e] ...
setuid/setgid ruby scripts
72735 [wjl@ic ca er] ...
72741 [nobu.nokada@] A perl script creates such wrappers can be found in Camel book.
72754 [matz@ru y- a] A wrapper is a friend of you.
72756 [nedry@ma l. ] Thank you, for that totally ridiculous image at 8:00am... that made my morning!
72737 [georgeowen1@] Reply to firstname.lastname@example.org
72738 [georgeowen1@] Reply to email@example.com
Win $50,000 Towards Your New Home
72742 [giveaways@ze] Zehomes is giving you the chance to win $50,000 towards your new home!
FXRuby question - Getting the SEL_CHANGED event to work
72745 [colotechpro@] I'm trying to test if a combo box field in FXRuby has changed, to warn
72770 [lyle@us rs s] The combo box sends a SEL_CHANGED message to its message target
72904 [colotechpro@] Thanks, Lyle. I took the 1st approach.
Dynamically scoped variables
72748 [dave@pr gp o] Just as a bit of fun I posted a piece on implementing dynamically scoped
+ 72750 [vjoel@PA H. ] Very cool!
+ 72751 [vjoel@PA H. ] And, a variant that allows nested contexts to be cumulative, at the cost
+ 72753 [akr@m1 n. rg] def with_context(params)
72759 [bob.news@gm ] "Tanaka Akira" <firstname.lastname@example.org> schrieb im Newsbeitrag
this is for you
72760 [onyia_1@ju o] Dear sir,
Ruby Weekly News
72761 [Dave@Pr gm t] Ruby Weekly News: 06/03/2003
German mailing-list still alive
72762 [mneumann@nt ] Is ruby-de still alive?
72796 [ jupp@gm .d ] Saluton!
72821 [mneumann@nt ] Does this really work on your machine?
file I/O: how can I disable auto-convert of the 2-byte sequence 0x0D, 0x0A into a single byte '\n'?
72764 [frank.polsch] ...
+ 72766 [ oct@zo .o g] Have you tried switching to binary mode ?
+ 72786 [tcfelker@mt ] Tom Felker
+ 72811 [dooby@d1 .k ] file I/O: how can I disable auto-convert of the 2-byte sequence 0x0D, 0x0A into a single byte '\n'?
good & cheap mp3 player, USB Flash disk, cd/vcd/mp3 player and digital camera etc
72765 [hechun1978@s] My dear friend,
FTP (with extended uri) package available?
72768 [erik@so id o] SFTP.cp '/tmp/foo', 'johndoe:email@example.com/somedir/'
72795 [sera@fh an .] Did you try using Net::FTP?
Ruby install question
72771 [jim@fr ez .o] I have asked this question before, long ago, but did not
72772 [B.Candler@po] A lateral answer which is probably not what you want: but if you configure
72773 [jim@fr ez .o] My initial knee jerk response is that /opt/ruby is not guaranteed to exist.
72774 [B.Candler@po] Call it /foo/bar if you like. Just on the target machine, create it as a
72775 [djberge@qw s] My initial knee jerk response is that /opt/ruby is not guaranteed to exist.
72777 [jim@fr ez .o] Can't get the latest from these guys.
72835 [jim@fr ez .o] I thought I would post the results of a study recently done on
which book ?
72776 [Pierre.Bru@s] I already have "Programming Ruby: A Pragmatic Programmer's Guide" but
72791 [info@mj is d] I think both "The Ruby Way" and "Ruby Developer's Guide" are great books.
ruby-dev summary 20201 - 20315
72778 [ksaito@ur nu] This is a summary of ruby-dev mailing list.
+ 72827 [batsman.geo@] Why not do
| 72841 [pbrannan@at ] IMO, this is indicative of a more general problem than just IRB. If
| + 72845 [chad@ns .c a] This topic came up at RubyConf 2001 during David Black's Ruby Behaviors
| | 72851 [dan@si he or] It's actually not all that difficult under some circumstances, but
| | 72862 [chadfowler@c] Could you whip us up a quick working prototype so we can see how it
| + 72846 [ahoward@fs .] module FooBar
+ 72839 [pbrannan@at ] What exactly does this mean? Do both forms of '*' now use the same
72840 [decoux@mo lo] svg% cat b.rb
Looking for Mail file parser for netscape mail
72781 [jim@fr ez .o] Is there a mail parser for netscape mail files.
72783 [emschwar@po ] Netscape just uses mbox format for its mail files. This *should* be
72782 [jmccall64@ho] you sent an e-mail on 29 april 2002 at 11:02 pm, can you remember where that
Scam? Re: sent e-mail
72784 [khindenburg@] What type of scam is this?
+ 72790 [lyle@us rs s] This is a new one to me too. I just forwarded it to snopes.com since I
+ 72792 [wkb@ai ma l.] They're probably just trying to get you to validate your email address
72832 [robert.j.lal] You get people's e-mail address nicely sorted by location. Direct mailers
Saving the results of Eruby::import in a string instead of just printing them?
72785 [sera@fh an .] Does anybody know if it's possible to have Eruby::import return its
72995 [kwatch@ly os] Use a class 'ERuby::Compiler'.
manufacturer of garments and bags in China
72788 [rachel@pu li] ...
Re: Ruby Weekly News [OT]
72793 [wkb@ai ma l.] Not to mention an unprecedented 203.8 million dollars in six separate
72824 [dsafari@pa a] You have lost me, which scam are you referring to?
72850 [wkb@ai ma l.] Holden,
72861 [jj5412@ea th] The scam may also involve kidnapping, imprisonment in Nigeria, death, and
[OT] GC benchmarks and comparison (and What GC we're using now?)
72798 [surrender_it] I know that there are Programmer here from ADA to zsh, so I thought I
72822 [matz@ru y- a] Just because the original Python GC was a mere hack.
Test::Unit::MockObject not working
72799 [sdate@ev re ] [05-31 20:35 test-unit-mock Mock objects for Test::Uni..
72848 [pit@ca it in] Here you said you expect two method calls...
Hasta 10 cargas de impresora por 1
72803 [ma@ea yi kj ] Este mensaje se renvia una sola vez
ruby-1.8.0 (cvs) build failed on HP-UX 11.11
72804 [waisun.chia@] Looks like it's having problem building the socket extension. I tried to
72810 [eban@os ri .] Could you show us ext/socket/mkmf.log ?
72817 [waisun.chia@] ...
72823 [matz@ru y- a] In addition, show us lines from 484 to 490 of
72828 [waisun.chia@] ...
72834 [eban@os ri .] It is GCC's problem.
Should the rescue modifier take a block?
72812 [hal9000@hy e] Would something like this make sense?
+ 72815 [vjoel@PA H. ] def boom
+ 72816 [dooby@d1 .k ] I thought rescue modifier was for the current line.
RCR: Enhancing matrix.rb
72818 [mneumann@nt ] Following three methods would make Ruby's Matrix class (matrix.rb) more
72826 [matz@ru y- a] Keiju will make final decision. I will forward your proposal to him.
72923 [matz@ru y- a] Keiju and others feel reluctant against making Matrix mutable. I
+ 72933 [mneumann@nt ] No problem, as I can still extend Matrix locally in my own applications.
| 72936 [0bz63fz3m1qt] How about adding it to rubygarden ?
| 72942 [mneumann@nt ] Didn't knew about this great link. I'll add it there.
| 72943 [hal9000@hy e] applications.
+ 72955 [pbrannan@at ] I do not understand their reluctance. I see no good reason for Matrix
File retrieval problems
72825 [kingsley@ic ] go to a url
72829 [pierre_b@ep ] you can use rubyzip to access data in your zip files
72830 [nvivek@nc t.] Get the html file
72831 [kingsley@ic ] The main problem there is that I have no clue how to do step
72836 [nvivek@nc t.] Yes, you do. Just take all the data that you get and write it to the file.
72909 [kingsley@ic ] Thank you so much - that worked perfectly !
72833 [rasputin@sh ] can anyone get it ? I've been trying all week.
73225 [akimichi@mb ] My http server had been down for weeks.
72837 [omorodioneki] ...
72842 [djberge@qw s] Searched the archives but didn't quite find what I was looking for.
+ 72843 [decoux@mo lo] You can remove the method only in the class where this method is defined
+ 72847 [B.Candler@po] class Bar
72852 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
72867 [B.Candler@po] class Bar
72870 [decoux@mo lo] What do you think that undef_method do ?
72872 [B.Candler@po] Well, I don't know exactly :-) It doesn't define a dummy method if one does
+ 72873 [decoux@mo lo] It define a dummy method, but ruby know this :-)) This is why it give an
+ 72877 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
72878 [B.Candler@po] Not really - just pointing out that it's being a bit cleverer than what I
72888 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
72849 [ gm@na el gr] I was wondering if Matz or another Ruby hacker has a tentative release
72924 [matz@ru y- a] I will release preview3 soon after REXML is checked in to the CVS.
73011 [slumos@un v.] Is the TODO file in CVS intended to be for 1.8.0? I've been checking
73017 [surrender_it] I suppose it is more general purpose.. I just asked matz about the
More set methods
72853 [mwilson13@co] I've added some additional draft set methods to the Ruby Garden Wiki at
Ruby web hosting survey.
72854 [wkb@ai ma l.] All,
+ 72855 [frank@no pa ] Absolutely, however your costs are through the roof! $250 per month (plus
| 72871 [m_libby@an s] Virtual hosting with Ruby CGI & MySQL costs $9/month from rootr.net.
| 72875 [Jamey.Cribbs] I heartily second the praise of RootRoute! They host my website and my
+ 72881 [harold@1s -s] When I joined JaguarPC as my virtual host , they did not have Ruby
+ 75155 [james_b@ne r] What setup costs? Does it take that long to install Ruby and add
75214 [volker_grabs] Usually not ...
75237 [aredridel@nb] Well, mod_ruby and suexec are mutually exclusive -- mod_ruby runs things
Ruby Windows Installer "ruby180-9"/yaml
72857 [yura@op r. o] ...
72859 [ruby-talk@wh] included in Ruby 1.8.0. Send me the parse error(s) and we'll get the new
72865 [yura@op r. o] ...
Re: Test::Unit::MockObject not working (like _I_ want it to)
72858 [sdate@ev re ] My bad !
72864 [pit@ca it in] Sorry for telling you the obvious.
72879 [sdate@ev re ] Aha ! Perfect ... exactly what I wanted.
ios.gets doesn't seem to work as advertised
72863 [RichardLMull] I've got the following script in a Win2000SP3 environment running Ruby
+ 72866 [dooby@d1 .k ] You're re-opening the file each time and reading
| 72885 [RLMuller@co ] but for your explanation of the flaw in my approach.
+ 72880 [RLMuller@co ] I solved one part of my problem, i.e. how to loop through individual
72903 [RLMuller@co ] I forgot to look at the hex version of the file before posting the
A unit testing problem...
72868 [hal9000@hy e] I'm trying to figure out how to test something
+ 72874 [B.Candler@po] Could you use a couple of IO.pipe objects instead, and run your mock object
| 72890 [hal9000@hy e] object
+ 72876 [jweirich@on ] Agreed.
| 72891 [hal9000@hy e] Yes, that assumption is valid.
+ 72993 [sdate@ev re ] require 'test/unit/mock'
72997 [hal9000@hy e] That is very interesting... I've never used