70945-72917

70736-71958 subjects 71110-72416

^ WIN32OLE problems
70945 [mkcon gmx.de] In the thread "Howto get source code of displayed IE-pages?"
+ 70952 [chrismo clab] You have to poke around the documentation to sort of figure out the right
+ 71023 [tksano m3.kc] You can try out "soleb", an OLE browser written in ruby. Its
+ 71620 [masaki.suket] It seems that the Navigate method takes some time to load the page.

^ [Q] Block passing: obj.new(){block}
70955 [peter.schram] How do I pass a block to the initialize method that calls some methods
+ 70957 [decoux moulo] pigeon% cat b.rb
| 70960 [jim freeze.o] t=Test.new("foo") { @set = 89 }
| 70961 [decoux moulo] Yes, but this is always the same problem : why do you want that the method
+ 70958 [dblack super] You're going to need to state the receiver explicitly for that call to
  70964 [peter.schram] I know but I'd like to envoke a lot of methods in the object on creation
  + 70965 [B.Candler po] Unfortunately you do, or else '@var1=89'.
  + 70970 [gfb tonesoft] If you want to do something "from within" an object (Test) why not to create
    70975 [peter.schram] Thanks a lot to everyone...

^ Platform independent null device access
70968 [bob.news gmx] What do people think about adding a method to class IO that returns an IO
+ 70983 [tcfelker mtc] /dev/null is great when the program doesn't have it's own way to discard
| 71033 [bob.news gmx] "Tom Felker" <tcfelker@mtco.com> schrieb im Newsbeitrag
+ 70990 [ jupp gmx.de] Saluton!
  + 70999 [nobu.nokada ] Really?  Don't you mean cygwin?
  + 71034 [bob.news gmx] "Josef 'Jupp' Schugt" <jupp@gmx.de> schrieb im Newsbeitrag

^ Continuous builds a la Ruby
70969 [William.L.Kl] Has anyone coded up a Ruby port of http://cruisecontrol.sourceforge.net/
70978 [andy pragmat] Dave and I have written several such systems, but all for clients (not

^ wyzzrd@bellsouth.net
70971 [drcrusher be] My best friend and partner for the last five years, Kent Starr,
70976 [lyle users.s] Mary,

^ Suggestion: rubycounter - n Ruby users and counting...
70973 [ jupp gmx.de] Saluton!
+ 70979 [surrender_it] kewl, just gimme da url ^_^
| 71004 [ jupp gmx.de] Saluton!
| 71012 [surrender_it] and my reply was more obscure then your msg :)
+ 71029 [laurent data] Yeah, this is a nice idea, which should not be hard to implement

^ Ruby DBI, MySQL and Win2K Server
70981 [matt black-b] I'm having an odd problem with the Ruby DBI for MySQL on Linux when trying

^ state pattern in ruby
70984 [ahoward fsl.] rubyists-
+ 71026 [batsman.geo ] This is kinda lika the distinction between "object-based" and
+ 71035 [bob.news gmx] "ahoward" <ahoward@fsl.noaa.gov> schrieb im Newsbeitrag
+ 72917 [john.carter ] Before you continue, go now and read...

^ Can a global be a constant?
70985 [jim freeze.o] I just noticed this (after 2 yrs). It appears that a
+ 70986 [dblack super] Because a capitalized global variable is a variable :-)
| 70987 [jim freeze.o] Ok. I didn't realize that $, @, and @@ were considered part
| 70994 [B.Candler po] And you'll see this if you try to access one of these things using the
| 70996 [hal9000 hype] Yet this is potentially confusing, because a
| 70998 [dblack super] There are lots of fun things you can do with names when you start
+ 70989 [hal9000 hype] The first character is less like a prefix
  70992 [jim freeze.o] Actually, what I am thinking about is how
  + 70993 [hal9000 hype] Well, I'm not sure of all your needs.
  | 70997 [jim freeze.o] Ok, <stupid question> so how would you
  | + 71000 [dblack super] Would this be suitable?
  | | 71002 [jim freeze.o] Close.
  | | 71009 [dblack super] No, it's actually a simpler way :-)  (using attr_reader instead of
  | + 71001 [hal9000 hype] Not a stupid question... maybe my assumptions
  |   71003 [jim freeze.o] Yes. That is the truly global solution. I was
  |   + 71005 [gfb tonesoft] It seems like you missed David Black's post, it may be the neat solution you
  |   | 71006 [jim freeze.o] No. I saw the post and responded to it.
  |   + 71007 [dblack super] You can use instance variables (of the object State) instead of class
  |   | + 71010 [jim freeze.o] Why does this not define the class method State.debug to
  |   | | 71013 [dblack super] It does; it creates #debug and #debug= in State's singleton class, and
  |   | | 71014 [jim freeze.o] So, this is something I don't understand. State is never instantiated.
  |   | | + 71015 [dblack super] It *itself* has an instance variable.  State is an instance (of
  |   | | + 71016 [hal9000 hype] class
  |   | + 71021 [jim freeze.o] So, fundamentally, is the code in both class C and D below
  |   |   + 71027 [batsman.geo ] They do (well, except for the fact that D::set always sets to 5 :-)
  |   |   | 71048 [jim freeze.o] Hmm, associated singleton class seems weird to me.
  |   |   | + 71050 [dblack super] Yes, but there's a specific mechanism for that: the method is actually
  |   |   | | 71061 [jim freeze.o] [David's fine explanation snipped.]
  |   |   | + 71051 [decoux moulo] Well, it's more
  |   |   | | 71063 [jim freeze.o] There you go twisting things up again. :)
  |   |   | | 71065 [decoux moulo] You have found what do ruby :-)
  |   |   | + 71054 [B.Candler po] The singleton methods are added into the object's singleton class. You can
  |   |   |   71064 [jim freeze.o] Thanks. Very interesting and informative.
  |   |   + 71040 [dblack super] <http://www.rubygarden.org/ruby?ClassMethodsTutorial>.
  |   + 71011 [dblack super] Hmmm... what would that mean exactly if the state is global?
  + 70995 [gfb tonesoft] It sounds like a good fit for a singleton class. You can freeze it after

^ OT Re: Symbiosis offer: trade Ruby for German :-)
70988 [hal9000 hype] For that matter, isn't Latin the same way?
71058 [rodrigo.berm] Mother tongue[spanish] =>   'Lengua Materna'
+ 71062 [0bz63fz3m1qt] PERL  in latin  has some funny properties :-)
| 71078 [unet rexx.co] It's not even vaporware yet, but I've been considering something
+ 71179 [qrczak knm.o] In Polish it's "father tongue" :-)

^ U88.info >>> China Company, Chinese Professional
71008 [Mail U88.Inf] This is a multi-part message in MIME format.

^ Love of your life
71018 [gd.white_29 ] This is a multi-part message in MIME format.

^ Re: Regexp: why does (re)* return only last repetition?
71022 [ahoward fsl.] i can't answer your question, but it work this way in perl too.
71036 [bob.news gmx] "Clifford Heath" <cjh_nospam@managesoft.com> schrieb im Newsbeitrag
+ 71070 [austin halos] It's invalid because, for some reason, it's seeing it as a \]. It
+ 71193 [cjh_nospam m] Yup, thanks, much better.
  71209 [bob.news gmx] "Clifford Heath" <cjh_nospam@managesoft.com> schrieb im Newsbeitrag
  71225 [austin halos] Again, if and only if one is specifying the regular expression
  + 71229 [B.Candler po] pat = "ana"
  | 71266 [austin halos] You changed the pattern.
  | 71269 [B.Candler po] Double-quoted strings interpolate backslashes: so in your example pat
  | 71291 [austin halos] irb(main):001:0> "[a-z\\]"
  | 71296 [B.Candler po] a = "[a-z\\]"
  | + 71299 [B.Candler po] I just realised, it's not a bug: it's necessary to give a mechanism for
  | | 71305 [decoux moulo] \d           digit
  | | 71372 [B.Candler po] Ugh. But thank you for explaining!
  | + 71342 [austin halos] a = "[a-z\\]"
  |   71350 [dblack super] I'm not sure what you mean by "interpolate again" (or reinterpolate).
  |   71352 [hal9000 hype] I think what he wants is reasonable in a way...
  |   71355 [dblack super] irb(main):016:0> a = "\\\\n"
  + 71230 [kentda stud.] Am I missing something or just misunderstanding what you mean by
    71267 [austin halos] It's the patttern specified specifically: "[a-z\\]". So far as I can
    71270 [michael_s_ca] Is this with 1.8?    I thought I remembered a thread about some new character
    71292 [austin halos] As I noted to Brian Candler, both 1.6.8 and 1.8.0/2003-05-09.

^ Thanks, and problems with Dir.glob
71024 [cjh_nospam m] Magic, thanks. Must read that book again :-).

^ GZip output compression
71031 [dwerder gmx.] for my web projects I need gzip to compress the data before sending it to
+ 71032 [mneumann nte] It's usually implemented by the webserver itself.
+ 71037 [B.Candler po] (1) use the zlib library (look in raa.ruby-lang.org)
  71041 [dwerder gmx.] Thank you all for your comments!!

^ Support for real threads
71038 [andrew walro] Are there any plans to support real threads (where available) as well as
71045 [batsman.geo ] You'll probably have to wait for Rite (Ruby's new implementation).
71057 [andrew walro] At least it's on the cards. Thanks!

^ SendMessage Win32API function
71039 [csjuko hotma] Has anyone used SendMessage API call successfully with Ruby? Any
71073 [shanko_date ] # On Win 2K: ruby 1.6.8 (2002-12-24) [i586-mswin32]

^ TCP Sockets
71042 [dwerder gmx.] How can I tell how many bytes can be read from an IO object without
+ 71047 [nobu.nokada ] IO#ready? of io/wait library in rough returns it.
| 71548 [dwerder gmx.] thank you for the hint!
| 71549 [nobu.nokada ] I admit it's not been tested enough, do you have test script or
| 71552 [dwerder gmx.] I have to appologize for my hastily judgment: It was not ruby but the
| 71577 [nobu.nokada ] There it is to be tested, so you don't have to appologize about
| 71640 [dwerder gmx.] require 'socket'
+ 71089 [tcfelker mtc] It's not possible to do exactly that, but you can set the socket to
  71543 [dwerder gmx.] Thanks! Perhaps it would be cool for my better understanding to know why
  71547 [B.Candler po] - read the headers one line at a time (e.g. using gets)
  71550 [dwerder gmx.] my problem is not the http protocol itself (not at this time :) but the IO-
  + 71551 [B.Candler po] Maybe, but threads are really the "ruby way" to solve this problem.
  | 71553 [dwerder gmx.] But what should I gonna do if I have to read binary data from one or more
  | 71557 [B.Candler po] That would mean mixing the binary streams in a non-deterministic way, which
  | + 71562 [dwerder gmx.] Of course I'll take some data from Stream "1" and create a packet like
  | | 71566 [B.Candler po] Sure, using the method that Nobu proposes you might be able to tell that
  | | 71570 [dwerder gmx.] This is not the problem: If the request is not complete in one packet, the
  | | + 71579 [aredridel nb] It doesn't need knowledge of the application protocol, but it needs to
  | | | 71639 [dwerder gmx.] You're right, my example wasn't that good.
  | | | + 71645 [batsman.geo ] So you're basically implementing datagram semantics (in order to
  | | | | 71647 [dwerder gmx.] Yes exactly, that's what I wanted to say!
  | | | + 71649 [B.Candler po] In that scenario, the easiest thing to do is open a connection to the remote
  | | |   71732 [dwerder gmx.] This is right, and it's probably the way to go I think :)
  | | + 71628 [B.Candler po] Yes that's what I meant - one thread per TCP connection or 'logical peer'
  | |   71638 [dwerder gmx.] Ok, then it can't be that slow :)
  | + 71581 [batsman.geo ] It is my understanding that 1 thread/connection is considered to be less
  + 71559 [billk cts.co] Sorry if this has already been covered, but, I've used select()
    71563 [dwerder gmx.] Thanks for posting,

^ methods with different signatures
71043 [kgergely mla] There was a thread about a little typechecking to ruby.
+ 71044 [dblack super] There have been many threads, and many, many posts about this.  (And a
+ 71046 [ndrsbngtssn ] You'll either have to use explicit kind_of?()-tests in the code, or use
+ 71052 [bob.news gmx] There was an article on the wiki.  Unfortunately I can't find it any more.
+ 71071 [rpav nwlink.] def fn(*args)
  71081 [news-1 nospa] some while ago you were close on releasing the first version of Mephle
  71084 [rpav nwlink.] Actually I haven't _announced_ it yet (for the reason I want to set

^ extern "C" of prep_stdio
71053 [0bz63fz3m1qt] Im trying to handover a pipe from C++ to ruby.
71055 [decoux moulo] a static method in C is like a private method in C++, you can't access
71059 [0bz63fz3m1qt] What a shame.. there is so many nice functions within ruby which I want
71060 [decoux moulo] pigeon% ri IO::new
71068 [0bz63fz3m1qt] Im trying out IO::new right now... But no data is going through the pipe?
71072 [decoux moulo] [[ spamassassin definetely think that you are a spammer :-)) ]]
71074 [ahoward fsl.] in several of the recent threads on io redirection i have been admonished for
71075 [decoux moulo] No rational,
+ 71076 [ahoward fsl.] i doubt that ;-)
+ 71085 [0bz63fz3m1qt] [snip the best example I've ever gotten!]

^ Process.kill for Win32
71069 [djberge qwes] Is there any chance of getting Process.kill support on Win32?  I took a

^ SemiOT: HTML/CGI question
71077 [hal9000 hype] I've been pursuing the webcounter idea a little.
+ 71080 [news-1 nospa] The only way to do this is to make sure that all pages load through a
| 71088 [aredridel nb] <iframe>.
| 71090 [ahoward fsl.] this doesn't seem to work on IE though - am i mistaken?
| 71092 [aredridel nb] Microsoft invented it!
| + 71094 [ahoward fsl.] err.  that's what i meant.  actually, i mis-read your post and saw '<ilayer>'
| + 71124 [ jupp gmx.de] Saluton!
+ 71082 [ahoward fsl.] doesn't take into account what page is begin counted - etc.  but how bout

^ Re: question on threads
71083 [w3gat bellso] <html>
+ 71087 [batsman.geo ] [Nasty HTML :-P]
+ 71100 [dooby d10.ka] $stdout.sync = true

^ FreeRIDE 0.5 on windows bug
71086 [surrender_it] ../plugins/rubyide_fox_gui/fxscintilla/scintilla.rb:456:in

^ Is there a tutorial on parsing text?
71097 [robo mars.co] I'm thinking of building a TV Guide viewer in Ruby.
+ 71098 [sdate everes] and
+ 71101 [mwilson13 co] I don't know of a tutorial on parsing text in Ruby.
  71105 [pit capitain] There's also at least one HTML parsing library in the RAA. I haven't

^ Missing file irb/irb.rb
71099 [sdate everes] I was trying out the example from PickAxe (Pg. 529) which does: require
72480 [sdate everes] This problem has been fixed in Andy's latest installer for 1.8.

^ OS X + postgreSQL + ruby
71104 [staypufd aus] Has anyone got Ruby, postgreSQL, OS X and RubyDBI to all work?

^ RCR for child execution
71107 [B.Candler po] Looking on RubyGarden it seems that the RCR process there is "resting", so
+ 71108 [B.Candler po] And also, the latter syntax doesn't capture any output generated on stderr
| + 71115 [decoux moulo] I've not understood : what do you think that ruby do actually ?
| | 71116 [michael_s_ca] If it's like perl (and I'm not sure that it is), but perl will exec
| | 71117 [decoux moulo] ruby do exactly the same, this is why I've not understood this part of the
| | 71119 [B.Candler po] irb(main):007:0> %x{asdfasdf 2>&1}
| + 71136 [androflux NO] This is what happens when you call system() with more then one argument.
+ 71112 [0bz63fz3m1qt] I have some more to add to this issue.
  71118 [B.Candler po] From the Unix point of view, the child can be passed any open *Unix*
  71122 [0bz63fz3m1qt] [snip stdout/stderr]
  71126 [B.Candler po] What do you mean, "from C/C++ I cannot use stdout/stderr"??
  71135 [0bz63fz3m1qt] Everything is OK when your application starts up, stdout/stderr works
  + 71143 [B.Candler po] Right. Ruby's STDOUT *is* your C++ application's stdout, and Ruby's STDERR
  + 71146 [B.Candler po] main.cpp:40: non-lvalue in assignment
  | + 71151 [B.Candler po] Let me try to see if I can give a specific example of the problem that I
  | + 71191 [0bz63fz3m1qt] All my boxes run FreeBSD5.0 :-)
  |   + 71207 [B.Candler po] It can't be fixed easily; if rb_stdout were pointing at a StringIO object,
  |   | + 71222 [0bz63fz3m1qt] Agree this will be a major patch and it will make heavy use of pipes.
  |   | | 71228 [B.Candler po] It's the same thing at the moment, because rb_stderr just encapsulates
  |   | | 71231 [0bz63fz3m1qt] "at the moment"... agree. This is what I hope will get changed in Ruby
  |   | | + 71233 [batsman.geo ] Don't forget that POLS means "Least Surprise for matz": he has the final
  |   | | + 71247 [matz ruby-la] stdout is _not_ hardcoded.  It's under the process to remove stderr
  |   | + 71242 [matz ruby-la] This is exactly what I did today.  all error messages and output from
  |   + 71212 [matz ruby-la] stdin, stdout, stderr might not be assignable.  It's undefined
  + 71208 [matz ruby-la] I'm not sure if I understand what you care, but at least I want you to
    71217 [0bz63fz3m1qt] Separation of ruby stdout/stderr from C/C++ stdout/stderr is what I want.
    + 71219 [hal9000 hype] If I understand you correctly, I think it is
    | 71232 [0bz63fz3m1qt] Im trying to make it easier to embed ruby into existing C/C++
    | 71244 [B.Candler po] Well, as you probably know, my vote is strongly against. Ruby embeds very
    | + 71248 [matz ruby-la] I don't like this notation.  But I like the idea of spawning child
    | | + 71265 [0bz63fz3m1qt] How about a System class instead ???
    | | | 71271 [matz ruby-la] Possible.  But I feel it's unintuitive as much as system2.
    | | | 71293 [nobu.nokada ] "System" as class name feels ambiguous for that purpose to me.
    | | | 71294 [aredridel nb] I like that very much.
    | | | 71411 [0bz63fz3m1qt] Something like this ???
    | | | 71417 [nobu.nokada ] I guess that command and arguments should be mandatory.
    | | + 71272 [surrender_it] what's wrong with system2 ?
    | | + 71275 [ahoward fsl.] </snip>
    | |   71279 [nobu.nokada ] I vote it.
    | |   71280 [aredridel nb] spawn 'command' do
    | |   + 71283 [polyergic ne] Which leaves only the ~problem of changing the defaults for system and
    | |   + 71285 [nobu.nokada ] These are just assignment to local variables.
    | |   | 71286 [aredridel nb] Ah, yes.  I was thinking of something similar to
    | |   | + 71287 [aredridel nb] I take that back -- I misread the source to the with() hack, and it was
    | |   | | 71288 [botp delmont] hmm. I like this, very objective.
    | |   | + 71290 [nobu.nokada ] Even in "with" block, aboves are always local variable
    | |   + 71336 [klaus.spreck] Some months ago, I have written an class just for this purpose.
    | + 71251 [0bz63fz3m1qt] Its actually only "one thing" that im trying to accomplish (I know you don't like
    |   71254 [B.Candler po] Yes I hope so...
    |   71260 [0bz63fz3m1qt] Good. I like strong opnions and remaining friends at the same time.
    + 71220 [B.Candler po] But rb_stdout *IS* stdout!!! I am not sure how to make this clearer...
    + 71238 [ahoward fsl.] this is not correct thinking.
    | 71245 [0bz63fz3m1qt] ;-)  Me having installed Human Brain 0.3 alpha.
    | 71250 [B.Candler po] But then you cannot get back the original thing which stdout/stderr was
    | + 71253 [ahoward fsl.] this does not work after a ruby_run - i do not know why.
    | + 71255 [0bz63fz3m1qt] This was what I tried earlier..
    + 71246 [matz ruby-la] Hmm, but still stdin is stdin.  The redirectable output port is
      71258 [0bz63fz3m1qt] OK.. I'll try explain what BOOM means :-)
      71268 [B.Candler po] But the process you run with system/backquote is not Ruby, and therefore its
      + 71273 [ahoward fsl.] perhaps i too am misunderstanding, but it does not seem like what simon is
      + 71276 [0bz63fz3m1qt] This is exactly the my situation im in.
      | 71302 [matz ruby-la] Now it does.
      | + 71303 [J.Hawkeswort] Some suggestions for names for
      | + 71304 [0bz63fz3m1qt] Yes I know rb_stdout is a hooked variable.. this is just very simplified
      |   71388 [matz ruby-la] I guess your pseudo code dropped something _very_ important, enough to
      + 71284 [0bz63fz3m1qt] [snip top - continued from previous post]
        71298 [B.Candler po] You mean like irb?
        71306 [0bz63fz3m1qt] Yes like irb and FreeRIDE.. But again my environment is completely
        71324 [B.Candler po] Not acceptable... this time I must insist that you answer the question :-)
        71333 [0bz63fz3m1qt] OK.
        + 71335 [decoux moulo] I really don't understand what you want
        | 71371 [0bz63fz3m1qt] The refined description of what I want: a permanent sandbox
        | 71397 [B.Candler po] Let me try to state your requirements more precisely, and you tell me if
        | + 71398 [B.Candler po] [for completeness]
        | + 71401 [0bz63fz3m1qt] Yes 3+4 has been really hard to explain. This is a exactly
        |   + 71402 [B.Candler po] Then you've not understood what I meant by "mutually exclusive... cannot be
        |   | 71406 [0bz63fz3m1qt] I think the Kernel#fork patch would work excelent. Therefore I don't see
        |   + 71403 [hal9000 hype] There must be a language barrier here.
        |   + 71430 [aredridel nb] Simon -- I think one thing that would do what you want is a solution
        |     71435 [0bz63fz3m1qt] Agree this is also a possibility that will work.
        + 71360 [ahoward fsl.] i think this does exactly what you want - it captures all output, including
        | 71364 [0bz63fz3m1qt] The code you see here is Brian Candlers.. not mine.
        | 71385 [matz ruby-la] It's not possible without breaking UNIX process model, which Ruby
        | 71390 [hal9000 hype] I have followed this thread somewhat... and I think
        | 71391 [batsman.geo ] He wants a single process :-P
        | 71395 [matz ruby-la] So he wants *me* to make impossible possible.  I don't object his try,
        | 71445 [0bz63fz3m1qt] exactly.
        | + 71476 [botp delmont] They have all conceded (but I have yet to hear Guy's comment :-)
        | + 71477 [matz ruby-la] I said you're wrong.  It's not minor, simple, nor possible.
        | | 71486 [0bz63fz3m1qt] I must admit that I am giving up on this :-(
        | + 71490 [decoux moulo] Well, it's easy : #system is
        |   + 71496 [0bz63fz3m1qt] OK, now we are talking :-)
        |   | 71498 [decoux moulo] %x() is the same than backquote
        |   | 71499 [0bz63fz3m1qt] OK.  I will get some breakfast and then ... experiments :-)
        |   + 71503 [0bz63fz3m1qt] OK.. I have now replaced 'system' with a system which can redirect output
        |     + 71504 [0bz63fz3m1qt] A minor detail, to quick - me sorry :-)
        |     + 71506 [batsman.geo ] I think you should read the thread again (I know it's HUGE but that's
        |       71507 [0bz63fz3m1qt] Agree its my fault.. I terrible at software-specifications, therefore most
        + 71374 [B.Candler po] That pseudo-code doesn't make sense: a Ruby object cannot be assigned to a
          71375 [0bz63fz3m1qt] I luckyly forgot all about this senario... I you can forgive me :-)
          71399 [B.Candler po] - create a pipe
          71404 [0bz63fz3m1qt] Yes Kernel#fork should do something like the above.
threads.html
top