102435-103466 subjects 102938-104173

Another instiki question
102742 [carl@yo ng l] How come when I start instiki on my windows 2000 machine it returns to

Method Checks (was: Re: How to ducktype a Hash?)
102743 [bob.news@gm ] First of all I'd like to make clear that this is still not Duck Typing!

Implementing interface using classes (Re: Interfaces and semantics)
102746 [lists@za a. ] Let's say I want to implement interfaces using classes (so I can do
102758 [surrender_it] take a look at PyProtocols,
102763 [lists@za a. ] I took a look at PEAK & PyProtocols a few weeks ago. I've also seen

accessing class instance variable from instance method
102747 [lists@za a. ] class C
+ 102748 [assaph@av ya] class << self
+ 102749 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
| 102751 [lists@za a. ] Sorry. See subject. (To access class instance variable from inside
| + 102756 [assaph@av ya] tend
| | 102760 [lists@za a. ] Then perhaps Ruby should not provide a "nice" way to access @@var too :-)
| | 102777 [Austin.Ziegl] irb(main):001:0> class C
| + 102757 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
|   102759 [lists@za a. ] That's just for testing :-) (to make sure the right '@var' is printed).
+ 102780 [ahoward@no a] class C
  102862 [assaph@av ya] Ruby's all about niceness :-)
  102895 [lists@za a. ] Simply because @@var is shared between subclasses.
  102898 [nobu.nokada@] It was changed in 1.9.
  + 102917 [lists@za a. ] Thanks, Nobu. I'd love to use it now though :-)
  | 102921 [dblack@wo bl] I think it will be the same fundamental difference as now: instance
  + 102942 [ahoward@no a] so - does a concept of 'inherited class variable' exist in 1.9 then?  i
    102994 [vjoel@PA H. ] I did too, until I saw Nobu's note today. I'm going thru all my code and

[ANN] Ruby Refactoring Browser 0.0.3
102750 [ohai@km .g .] Ruby Refactoring Browser 0.0.3 has been released.

Re: [BUG?] Seqfault sorting array of Files by ctime
102761 [robertm@sp l] Warren,

[ANN] RubyGems 0.6.0
102771 [chad@ch df w] ...

Expressing intent in method calling...
102785 [rich@in oe h] This is not a continuation of the type thread other than trying to continue
+ 102791 [curt@hi bs c] This is a very interesting concept and, in general, I like it.
+ 102800 [dave@pr gp o] Isn't this effectively "to_name" or "as_name"?
| + 102803 [quixoticsyco] Whether it's name or to_name, he is seeking a way to differentiate
| | 102816 [rich@in oe h] Well, not necessarily conformant behavior.  Its so the caller can express
| + 102815 [rich@in oe h] I am not trying to coerce the object into another representation in general
|   + 102842 [jean_hugues_] I think that you are clear enough. x.<some_class>.some_method() means
|   + 102905 [bob.news@gm ] "Richard Kilmer" <rich@infoether.com> schrieb im Newsbeitrag
+ 102804 [dblack@wo bl] Could this metadata even be not class/module-oriented?  In other

ruby and mustard
102788 [Ara.T.Howard] what do you do when ruby just won't quite cut the mustard?
+ 102797 [jim@fr ez .o] It depends. For what you are doing, my preference is to use Ruby
| 102860 [ahoward@no a] good points - esp. bits about abstraction.  i have done that approch before
+ 102798 [eule@sp ce c] Do you know about psyco.sf.net ? You might try writing it in Python and
+ 102801 [gsinclair@so] If you've got a serious problem to solve, the dependency added by
| 102812 [aredridel@nb] Glib is the base library for GTK+ -- it's an object and signal toolkit
| 102859 [ahoward@no a] this is about where i'm at...  glib is really nice, but the ruby api is
+ 102850 [woodsc@f0 f.] Can you just use a faster computer?  If your working for a company its a
| + 102851 [bg-rubytalk@] Heh, look at his signature.  "@noaa.gov".  That may mean he has access
| | + 102858 [ahoward@no a] yes.
| | + 102885 [jamesUNDERBA] Timely for me, too, as I've been pondering writing a (potentially)
| + 102855 [ahoward@no a] ~ > cat /proc/cpuinfo | grep GHz
| + 102955 [carl@yo ng l] I think the problem here is that if they could get it to process 100
+ 102854 [surrender_it] have you considered using stuff like narray? (I have this strange
+ 102856 [quixoticsyco] Is it possible to somehow isolate the inner-loop functionality?  As long
| 102864 [ahoward@no a] mmap = Mmap.new 'huge', 'rw', Mmap::MAP_SHARED
+ 102886 [cc1@ce .w st] Have you taken a look at rubyinline?  It lets you embed compiled c
| 102961 [carl@yo ng l] All of this discussion about C also reminds me that C code can itself be
+ 103286 [segphault@sb] It may not be a practical solution now, because it will take you some time
  103409 [jean_hugues_] Last "Recent News" is september 2003. I wonder if that means that the

Writing to a process pipe
102790 [luke@ma st p] Okay, I know this is an easy one, but I can't find it documented and I
+ 102793 [decoux@mo lo] svg% ruby -e 'open("| cat", "w") {|f| f.puts "it s just Kernel#open"}'
+ 102794 [ahoward@no a] irb(main):001:0> pipe = IO.popen 'cat', 'r+'
  102799 [luke@ma st p] This is what I was looking for.  I don't know why I was so hung up on

How can I use the last returned value?
102806 [ssk@ch l. os] In Python, I use '_'(underscore) for the last returned value.
102807 [dennis.ranke] IRB.CurrentContext.last_value
+ 102810 [Austin.Ziegl] I'm not sure there is one. There is the $_ variable, but I have yet
+ 102811 [vjoel@PA H. ] Nice. I tried defining the same with the name _, but that fails because
+ 102857 [nobu.nokada@] EVAL_HISTORY enables _.
  102876 [ssk@ch l. os] Thanks for the reply.
  102887 [nobu.nokada@] You have to put those lines in ~/.irbrc, .irbrc, irbrc, _irbrc
  + 102888 [botp@de mo t] ochigi.jp...
  + 102901 [dooby@d1 .k ] To Sam Sungshik Kong,
    102902 [ssk@ch l. os] Wow, it works!

[ANN] Ruby/Interface
102817 [sean@ce so t] Ruby/Interface 0.1-1
+ 102821 [curt@hi bs c] Very nice... I like it!
+ 102840 [batsman.geo@] I see you're using per-class tagging, hence being unable to track
| + 102843 [sean@ce so t] I have to ponder this a bit.  I admit I am not entirely clear how Ruby works
| + 102849 [sean@ce so t] Per-class tagging is what I intended.  There are three tag states: not tagged,
| + 102861 [sean@ce so t] Moving things around to work out of klass helped a lot, Mauricio, thanks for
+ 102841 [usenet1@no p] Very nice!
| 102844 [sean@ce so t] Probably right.  I'll change it.  Seems I'm going to be fiddling it with it
+ 102868 [gsinclair@so] Nice.  But the Hash example on the page should be more comprehensive.
| 102872 [sean@ce so t] The name :hash tells you the purpose of the interface, not the method list.
+ 102877 [sean@ce so t] Changed the name of the library to celsoft.com/interface.
| 102880 [dblack@wo bl] Ignore previous message (similar idea in spirit though
+ 102991 [sean@ce so t] I decided the library wasn't "Ruby" enough and I got some ideas from Daniel
  + 102993 [batsman.geo@] You might want to capture Module#remove_method and
  + 103058 [jean_hugues_] Should be implement?() vs implements?() I believe.
    103098 [sean@ce so t] It's not proper English, but perhaps implement? is more "Ruby."
    103123 [discord@ma .] After being annoyed with what looked like improper English in
    103129 [sean@ce so t] Interesting way to look at it.

[NEWBIE] Where to report correction for vruby.rb?
102846 [ruby-mail@te] I'm using ruby 1.8.1 (2003-12-25) [i386-mswin32]. When I tried running
102867 [nobu.nokada@] It seems fixed in recent version.

[NEWBIE] Howto? Use Windows DataSourceLocator
102847 [ruby-mail@te] I'm using ruby 1.8.1 (2003-12-25) [i386-mswin32]. I want to use Window's

102848 [gavin@re in ] I suspect someone (many people) have already done this, previously, but

oddities with select
102863 [bg-rubytalk@] I'm trying to use Ruby to talk to an network application, and noticed
+ 102870 [ahoward@no a] don't you want to block?  i mean, isn't that why you are using select?  to do
| 102875 [bg-rubytalk@] Actually, no.  What I want to do is know that a command was accepted
| 102881 [ahoward@no a] why not something along the lines of this
| 102936 [bg-rubytalk@] def internal_read(timeout=DEFAULT_TIMEOUT, stop_pattern=nil)
| + 102945 [ahoward@no a] didn't you say something about your socket being in non-blocking mode?  if so,
| | 103013 [bg-rubytalk@] I'm pretty sure that the timeout parameter is what tells select whether
| + 103002 [mrchameleon@] A reference TFM shows that select(rdArr, <wrArr>, <errArr>, <timeOut>)
| | 103014 [bg-rubytalk@] Well since select() returns anArray or nil, if it returns 'nil', nil
| | 103075 [mrchameleon@] There you are. Suck it and see.
| | 103096 [bg-rubytalk@] Right... but how does that change anything?
| | 103146 [mrchameleon@] Wow. This *is* hard yakka.
| | 103169 [martindemell] $ ruby -e "p [[nil], [], []] == true"
| + 103003 [mrchameleon@] A reference TFM shows that select(rdArr, <wrArr>, <errArr>, <timeOut>)
+ 103426 [jmarshall99@] This works for me, unless I am misunderstanding what you are trying

[ANN] RubyGems 0.6.1
102878 [chad@ch df w] We've fixed a couple of small but nasty bugs on 0.6.0.  We're doing a
102889 [cc1@ce .w st] Something minor but I just noticed that gem doesn't seem to support a --version
103011 [chadfowler@g] I agree, but we're using --version to specify gem versions.  I think
+ 103012 [gsinclair@so] Not sure what you mean there, Chad.  gem --version currently does nothing,
| 103022 [gsinclair@so] Quick follow-up with suggestion.
| 103027 [chadfowler@g] I guess I'm not the mob, but I would advocate --rubygems-version
| 103038 [gsinclair@so] Wouldn't you rather type -V than --version?  Or is that not an intuitive
+ 103025 [cc1@ce .w st] [cut]
+ 103071 [jim@we ri hh] There has been some talk about rearranging the gem option structure to
  + 103082 [chadfowler@g] Yea, that would really help in this case, wouldn't it?
  | 103086 [rich@in oe h] Yes it would, and would help with the growing number of commands and the
  + 103090 [surrender_it] oh please do this, for what my opinion as a gem user is worth :)

[NEWBIE] WIN32OLE Mailing List?
102883 [ruby-mail@te] Does there exist a mailing list dedicated to the WIN32OLE module?

Outlook Express problems reading comp.lang.ruby
102894 [dooby@d1 .k ] Starting Jun 8th, I've noticed problems using Outlook Express (OE)
102906 [bob.news@gm ] same here (using OE 6.00.2800).  Although I don't need to reboot: Win 2k's
+ 102927 [rt@al m. pi ] How amusing that the workaround for messages posted from Outlook
| 103006 [dooby@d1 .k ] Josh,
| 103009 [rt@al m. pi ] Well, I'm always wearing it, actually :)
| 103017 [dooby@d1 .k ] I didn't see it in your headers ;)
| 103023 [rt@al m. pi ] I guess I was surprised that Outlook didn't add either of these
+ 103005 [dooby@d1 .k ] Many thanks, Robert.

Open Source Developers Conference Australia 2004 CFP
102897 [jarich-spam@] G'day folk,

Expert advice please
102899 [ebahl@mi so ] URGENT!

question about private method
102903 [wwayya2004@h] The visibility keyword private makes a method callable only in a
+ 102908 [bob.news@gm ] "wang" <wwayya2004@hotmail.com> schrieb im Newsbeitrag
| 102907 [bob.news@gm ] "Robert Klemme" <bob.news@gmx.net> schrieb im Newsbeitrag
+ 102912 [greg@we ti e] class Test
+ 102948 [pbrannan@at ] If you want to do this, use protected instead of private.
| 102972 [dblack@wo bl] class Foo
+ 103068 [wwayya2004@h] Thanks all!
  103073 [bob.news@gm ] "wang" <wwayya2004@hotmail.com> schrieb im Newsbeitrag

novice ruby embed question
102909 [billk@ct .c ] I'm just getting started embedding ruby, have set up
103019 [nobu.nokada@] int status;
103030 [billk@ct .c ] Thanks !!!
103040 [nobu.nokada@] Yes, it got provided for the sake of that usage.

Calling 'C' func through W2k DLL?
102913 [piir@ea th i] I'm trying to access a Windows DLL called nidaqmx.dll.
103083 [piir@ea th i] Here's a very generic question... how can I access a Windows dll?
103087 [flgr@cc n. e] Moin!
103223 [piir@ea th i] How could I have found this is ruby?

strip DOS ^Ms?
102914 [rasputnik@he] Me again. I have chosen one of the crappiest websites on Gods
+ 102915 [bob.news@gm ] "Dick Davies" <rasputnik@hellooperator.net> schrieb im Newsbeitrag
| 102919 [rasputnik@he] They're not at end of line though, they're just scattered through the
| + 102920 [rasputnik@he] Fixed my own problem again. This is getting to be a habit.
| + 102944 [ser@ge ma e-] Use tr.
|   103060 [eule@sp ce c] Why would a thing grown from history be called idiocy in any context ?
|   + 103063 [rasputnik@he] As far as I'm concerned you can have any line terminator you like in
|   + 103065 [samuel.kvarn] In the days of the "classic" Mac OS (9.x and earlier) that was true; \r
|   | 103067 [eule@sp ce c] So that would make Dick Davies 'wrong' input html issued from a pre OS X
|   + 103117 [billk@ct .c ] If MS-DOS had come out in the 1950's it might be forgivable.
|     103130 [eule@sp ce c] I agree with most of your post, but that last bit was really funny ;)
+ 102916 [eule@sp ce c] I recommend the tool suite called
| 102964 [trash@ph lk ] Any argument for this thesis?
| 103059 [eule@sp ce c] My point being that a custom hacked tool for a momentary need is seldom
+ 102932 [djberg96@ho ] See "ptools", available on the RAA or at http://ruby-miscutils.sf.net.

method with yield via send
102918 [csaba@ph ny ] class C
102995 [discord@ma .] The main problem here, I think, is the context of the blocks you are
103010 [nobu.nokada@] It has been implemented in 1.9.
+ 103045 [discord@ma .] Well, then, that's a great reason for me to upgrade...
+ 103178 [csaba@ph ny ] That's cool, thanks!

[ANN] Active Record 0.8.3: Modules, mapping, and transactions
102922 [david@lo dt ] What's new in Active Record 0.8.3?
+ 102933 [raphael.baud] ua = User.find(8,9,10)
| 102988 [david@lo dt ] Good spotting! This fix is in the CVS and will be part of 0.8.4.
+ 102940 [khaines@en g] David, I'm curious about this design decision.  I went the exact opposite
| + 102965 [carl@yo ng l] Another option worth considering is using LOCK TABLES for MyISAM
| + 102986 [david@lo dt ] Oh, this was referring to database transactions. Before, if you
|   102989 [khaines@en g] Ah!  I follow you.
|   102990 [david@lo dt ] It could very well be that you're interested in the data that cause the
|   102996 [khaines@en g] If a transaction fails because of an exception, the exception can be caught
+ 103028 [ng@jo nw on ] person = Person.new(
  + 103036 [jim@fr ez .o] ... code here to compute age
  + 103043 [gsinclair@so] It's easier to type for a start.  Although the aesthetics of it are

Weird DNS problem with net/http
102925 [kapheine@hy ] I'm running into a very strange problem with net/http.  Or I should say,
102928 [bob.news@gm ] "Zachary P. Landau" <kapheine@hypa.net> schrieb im Newsbeitrag
103032 [kapheine@hy ] Thanks for the link. That problem looked very similar, but it turned out

[OT] Re: Unit tests ... not just for the young
102929 [tom@in oe he] Hm.  Do you feel that there's a different calling to which a programmer
102930 [michael.camp] Maybe not some specific calling, but one should have SOME aspiration
102931 [tom@in oe he] Yup, I agree that that's what he was getting at.  But is "architect" the
+ 102934 [jim@fr ez .o] Technical and Managerial.
| + 102935 [tom@in oe he] So true.  I want to be a better programmer, to someday fix a bug in the
| | + 102937 [Mark.Volkman] When I started my software career, practically every year my manager/supervisor would ask me during my annual evaluation about my 5 year and/or 10 year goals.  There was pressure to make up something good and I did.  Later in my career I decided that it's okay to admit that I love writing software.  It's okay to say you love what you're doing now and don't have plans to do something different in the future.  Of course you'll want your software development skills to improve, but I don't think we all need to have a desire to manage other software developers or move into less technical roles.
| | | + 102939 [michael.camp] ask me during my annual evaluation about my 5 year and/or 10 year
| | | | 102941 [tom@in oe he] Quite right, wholehearted agreement here...
| | | + 102946 [gsinclair@so] In my limited experience, there are lots of different types of
| | + 102949 [sean@ce so t] Ditto.  When hiring an artist, should one be wary of people who want to be an
| |   + 102952 [michael.camp] This translates to me to not wanting to learn, and that I can do without.
| |   | + 102958 [gsinclair@so] An odd translation, I must say.  What's wrong with learning more
| |   | + 102966 [hal9000@hy e] I think we're all talking past each other here.
| |   | + 102968 [sean@ce so t] That doesn't follow.  When you work in a field, you grow as a person and, if
| |   | + 102969 [ptkwt@ar cn ] Not true at all.  There are always new
| |   + 102954 [mailing-list] When interviewing, I would probe for deeper ambitions. Someone who is,
| |     + 102956 [michael.camp] Precisely.
| |     + 102970 [sean@ce so t] I don't agree that side-interests make for a better programmer.  If you're
| |       102992 [ptkwt@ar cn ] Side interests (or perhaps I should call it multi-disciplinary
| |       102997 [sean@ce so t] As an employee, side-interests are good.  As an employer, side-interests are a
| |       103024 [ptkwt@ar cn ] I guess it just depends on who the employer is.  If the employer is a
| + 102978 [jean_hugues_] I started a company in 1987. I believe that by 1993 we must
|   + 102982 [jim@fr ez .o] Nice story. So, was it the money or the rescuing of the product.
|   | 103057 [jean_hugues_] In the first company, that I co-owned, I believe that it was
|   + 103033 [nick@ac iv h] I've had similar experiences...it's frustrating to program on projects
|     103039 [mailing-list] Have you checked out Dylan? It's a bit of an improvement over smalltalk
|     103047 [nick@ac iv h] No I haven't.  Eiffel and Dylan are two other languages I've noted
|     103115 [mailing-list] Ruby and Dylan kind of remind me of each other. They were both conceived
|     + 103128 [ptkwt@ar cn ] Now days Apple uses Objective C quite a lot.  They don't seem to be doing
|     | 103131 [mailing-list] I think Dylan's close enough to being ready to work, for me. I'm not
|     + 103164 [nick@ac iv h] Thanks for the indepth reply.
|       103165 [mailing-list] Oh yeah, I forgot to mention Haskell. I liked what I read about it, but
+ 103055 [martindemell] I don't know about 'should', but as someone who moved from physics into