55606-56199 subjects 56051-56542

^ Re: New Sydney Ruby Users Mailing List (Portland too!)
55817 [ptkwt shell1] That reminds me....

^ regex help
55818 [sdate kc.rr.] Using ruby 1.7.3 (2002-10-12) [i386-mswin32] on Win XP (Home)
+ 55821 [austin halos] /'.*'/ instead of /'.*?'/
+ 55822 [ruby-talk wh] quote1_re = /'((?:''|[^'])+)'/
| + 55825 [sdate kc.rr.] Like this solution the most ! Thanks _why !!
| | 55863 [ruby-talk wh] quote1_re = /((?:''|[^'])+)/
| | 55931 [sdate kc.rr.] Great !
| + 55879 [ahoward fsl.] TESTING REGEX ((?:''|[^'])+)
|   55932 [sdate kc.rr.] Nice !
+ 55823 [idan idanso.] Just remove the question mark from the regexp, and it will work(at least
+ 55824 [sdate kc.rr.] Answering my own post .. should have tried harder b4 posting.
| 55826 [sdate kc.rr.] Again !
+ 55880 [alan digikat] Since this type of regex question comes up regularly, I wonder how difficult
  55882 [michael_s_ca] Those aren't (mathematically) "regular" then, are they?  (Granted,
  55890 [ahoward fsl.] in fact they are regular because the matching char is always known : it is

^ Restarting ruby interepter
55820 [idan idanso.] Is there a way to restart the ruby interepter so it unloads all the

^ 宮川製帽です
55833 [webmaster tm] 突然のメールで申し訳ありません。

^ Hal and SGmail dependencies (Re: ANN: rdep (Ruby Dependency Tool))
55835 [pit capitain] Hal, did you manage to run SGmail on windows?
55858 [hal9000 hype] I made a couple of stabs at it, but finally

^ Product with filters
55839 [martindemell] # A modification of Joel VanderWerf's EnumerableOperator#product to include
+ 55918 [botp delmont] cool.
| 56003 [martindemell] As soon as I figure my way around the wiki :) By algorithms I take it
| 56012 [botp delmont] Yes :-)
+ 55948 [bulatz integ] easy and powerful - belissimo!

^ Ruby equivalent to Python's map()?
55842 [wolfoxbr hot] I'm a Python programmer and I'm trying Ruby now. I love Smalltalk and
+ 55843 [decoux moulo] Look in RAA
+ 55847 [aleksei.guze] What class this "map function" should be method of?
| 55917 [vinfoley iqu] [1,2,3,4].map { |x| x*2 }
+ 55884 [ptkwt shell1] Hmmm... this seems to be what the proposed 'zip' method on Array would do.
| + 55886 [djberge qwes] Third party modules ok?
| + 55889 [dblack candl] I think zip is the traditional name for this function in functional
|   + 55896 [ptkwt shell1] Perhaps, but when I see 'zip' I'm thinking it has something to do with
|   + 55934 [sdate kc.rr.] languages.
|     + 55937 [dblack candl] I've always assumed so.  Which makes one wonder about an n-dimensional
|     + 55960 [cilibrar ugc] What do you all think of the term "collate"?
+ 55902 [paul prescod] The better way to do this in Python is with "zip". map() is better for
+ 55968 [aleksei.guze] ######################################################
| 56025 [dblack candl] 1. Why "collectm" as the name?
| + 56035 [list NOSPAMc] Is that `map'?
| | 56037 [dblack candl] Yes.  Serves me right for hacking at it before posting, rather than
| + 56106 [aleksei.guze] Ok.
+ 55978 [list NOSPAMc] class Array
  56011 [botp delmont] shouldn't be result?
  56105 [aleksei.guze] khe,khe. A little mistype, I hope everyone does see it;)

^ post request internet explorer
55844 [miner arcor.] does anybody know what IE sends if he executes a site. I want to use
55942 [drbrain segm] an
55947 [barry_sh hot] If you want to see _exactly_ what IE does, I suggest using TCPServer to

^ Which issues are addressed by current Ruby development?
55848 [brusch2 gmx.] I don't find a list of the issues which are addressed by the development

55852 [4meli4 indo.] Dear Netter,
55869 [lyle users.s] Area Gunk Sunbaked

^ Re: File Packing Ideas - FINAL
55853 [mxvera qwest] I did not see anything on reading an entire file straight into a string. I
+ 55854 [decoux moulo] pigeon% cat b.rb
| 55856 [mxvera qwest] Merci!
+ 56036 [list NOSPAMc] s = File.open('file.txt') {|f| f.read}

^ Question about RWiki
55857 [akimichi mbo] Installation seemed to have been done successfuly,

^ FXRuby and rinda - any problems?
55860 [coma_killen ] I plan to check out druby and rinda. I'd like to use
56074 [lyle users.s] I have not used Rinda, but generally speaking you're going to have

^ Which issues are addressed by current Ruby development?
55861 [brusch2 gmx.] I don't find a list of the issues which are addressed by the development

^ problem with tcltklib
55864 [fpet gmx.net] /usr/local/lib/ruby/1.6/tk.rb:7:in `require': No such file to load --
+ 55865 [decoux moulo] This is the include files which don't find, try with
+ 55957 [jean-francoi] you need tcl and tk-devel packages too (for header files).

^ Integer to Hex
55870 [shauns pixol] Is there an easy way to get from an Integer to a hex representation (i.e.
+ 55871 [wjl icecaver] x = 10
| 55873 [gfb tonesoft] i = 10
+ 55874 [gminick unde] % irb
| 55877 [shauns pixol] Thankyou everyone, somehow I completely missed that!
+ 55949 [bulatz integ] p '%X' % 240

^ understanding continuations
55883 [ahoward fsl.] rubyists-
+ 55887 [pit capitain] I was once like you are now, and I know that it's not easy,
| + 55898 [ahoward fsl.] as far as i can tell, 20270 has no children, closing with
| + 55921 [hal9000 hype] I nominate this for most poetic post of the month.
|   55922 [mgushee have] Right era, wrong singer-songwriter. It's Yusuf Islam. Free trip to
|   + 55924 [ianm ActiveS] Kat Stevens
|   | 55927 [dblack candl] Cat, wasn't it?  (Hey, not trying to be pedantic, just never been to
|   | 55928 [ianm ActiveS] you're right. see http://www.mountainoflight.co.uk/ or
|   + 55954 [ptkwt shell1] That'd be Cat Stevens - am I a winner?
+ 55935 [timsuth ihug] description.
+ 55945 [drbrain segm] root of a function call tree

^ Re: Non-blocking TCPSocket.gets
55888 [wolfoxbr hot] Take a look on Kernel#select, it allows for asynchronous (blocking or

^ Array#next - Enumerable#next ?
55891 [ahoward fsl.] rubyists-
+ 55895 [matz ruby-la] Scheme 1)
+ 55903 [pbrannan atd] One problem here is that I can't tell the difference between iterating
  + 55919 [ahoward fsl.] yes.  this is a good idea
  + 56063 [qrczak knm.o] It puts the state of an iteration over the array inside the array,

^ Ruby/Tk on MacOS X.2?
55892 [pmak aaanime] Is it possible to install Ruby/Tk on MacOS X.2? Right now, if I try to
55900 [montana buc9] You are probably better off going the ruby/cocoa route.
55904 [pmak aaanime] But I already have an application written in Ruby/Tk. It works on
55936 [brian coolna] In order to get a version of Ruby/Tk, I use Fink
55970 [montana buc9] I was never 100% successful in getting Aqua Tk to work. However, contact Tony and see if he has any suggestions on how to get it to run natively.

^ Syntactic Sugar Question
55909 [unet rexx.co] Ruby has the nifty syntactic sugar by which
+ 55910 [nobu.nokada ] This expression is an assignment.
+ 55953 [bulatz integ] Variable/Method Ambiguity

^ Why do they name them widgets??
55911 [rich lithino] I'm confused.
55914 [james jamesb] Which compels me to ask, why are you creating a GUI along the lines of Qt, Tk,
55915 [rich lithino] I guess it's just saying that the word 'widget' is a part of history...

^ Problem writing to file after closing $stdout & $stderr
55913 [emschwar fc.] So I have a program now that starts off tests on remote machines, and
55920 [ahoward fsl.] perhaps something in the parent is writing to stderr/out?  i ask because this
55979 [emschwar fc.] Why shouldn't the parent write to stderr/out?  The child should
55980 [decoux moulo] It want to flush $stdout, don't make an assignement after the close
55981 [emschwar fc.] Why?  $stdout.close should flush the filehandle.  At least, in every
55984 [ahoward fsl.] i think this is because sync is false for stdout, stderr etc.  eg. the close
55987 [emschwar fc.] Yes, but the point is that close() should flush the filehandle from

^ Howot redirect STDOUT to a string within a script?
55925 [ptkwt shell1] evalstr = 'puts "this is the string"'
55938 [eban os.rim.] Ruby 1.7 has StringIO.
+ 55956 [ptkwt shell1] I have ruby 1.7 from CVS but the require 'stringio' failed.
| 55958 [eban os.rim.] % ls ext
+ 55959 [idan idanso.] The problem with this approach is that it's not thread safe($defout is

^ Array#braid/zip (was: Re: ruby-dev summary 18613-18710)
55930 [dblack candl] If anyone wants to play with this, here's a dusted off and slightly
56015 [list NOSPAMc] LOL-I posted an almost-carbon-copy earlier today, even in the choice
56032 [dblack candl] That is never far from my thoughts either.  We need it now as much as

^ Exerb for Linux ?
55939 [fg siamecomm] does somebody already developed an equivalent of windoze's Exerb project on
56004 [B.Candler po] Err, well you could always do something like the attached.
56002 [B.Candler po] <hasty_retreat>

^ Regexp: What does //o do?
55950 [jim freeze.o] In a regex, what is the /o for (as opposed to n, i or g)?
55952 [nobu.nokada ] This o has no meanings.  It's usefull with interpolation.
55967 [jim freeze.o] I'm confused. Why does it affect the map iterator?
+ 55969 [dblack candl] I think what's happening is that the /o causes the regex to
+ 55977 [matt lickey.] irb(main):009:0> def foo(arg)
  55989 [jim freeze.o] Yes. It's not completely clear to me when it will be recompiled
  55995 [michael_s_ca] This is 2 different regex's, even though they evaluate to the same,
  55999 [dsafari para] I'm not sure I can agree that this is the same regex, Jim is setting it to nil
  + 56000 [jim freeze.o] The best I can figure is, as the last poster said, that it
  + 56001 [michael_s_ca] What I mean by "same" is that it's the same piece of source code, not the same
  + 56010 [dblack candl] (Picking up on our irc discussion of this :-)

^ (Simple/Naive) Deep Copy Implementation
55951 [squidster te] Rubyists,

^ Error writing BLOB in Postres-DB (via DBI)
55961 [stesch no-sp] Ruby/DBI 0.0.17
55963 [stesch no-sp] "(?, ?, ?, ?)", I know ... But that's not the error.

^ SAP specialists required for Europe.
55964 [jon rockwell] I have a couple of contacts who are in Germany and Switzerland who are
55982 [d.borodaenko] If any of your contacts are interested in outsourcing in Belarus

^ Re: FXRuby on Mac OSX (was: RubyConf 2002 Slides...)
55972 [jlj cfdrc.co] Yes, I should note that while we don't have FXRuby working under Mac OSX
56013 [curt hibbs.c] Does that include FXScintilla on the Mac, too?
56023 [jim freeze.o] The goal is to do enough to get FreeRIDE running on Mac OS X
+ 56039 [curt hibbs.c] Neither. FXScintilla is s port of the Scintilla widget to use Fox to render
| 56073 [lyle users.s] No -- the FXRuby sources don't include the source code for the
+ 56078 [lyle users.s] The FXScintilla tarball (available from its home site on

^ ANN: FXRuby-1.0.16 Now Available
55973 [lyle users.s] All,

^ Simple Newbie IO question.
55983 [montana buc9] I'm reading the "Pick-axe" book. In the chapter on IO it discusses File.open.
55985 [bruce codedb] You misspelled |aFile|
55988 [christopher.] I'm pretty new to Ruby but I'm willing to bet that there are some things that
56067 [gsinclair so] The problem was not with irb, as Bruce pointed out.  But on the matter, I'll

^ POSIX anyone?
55986 [ahoward fsl.] rubyists-

^ Newbie questions regarding getter/setter methods...
55990 [christopher.] Just working my way through the pickaxe book.
+ 55996 [austin halos] Ruby doesn't have declarations. An instance variable (@name, etc.)
+ 55998 [ysantoso jen] You don't have to. Ruby use a first-use policy for variables. Meaning
  56066 [gsinclair so] I think it's worth clarifying here: member variables are always protected.
  56068 [decoux moulo] To clarify more, try to forget about "private", "protected" : words which

^ Re: FXRuby-1.0.16 Now Available
55992 [mikkelfj-ant] That kind of leaves one option :-)
56005 [bobx linuxma] Yeah...I gues I *will* be installing it. Unless of course Andy gets it into
+ 56008 [andy toolshe] Coming soon.  Just a few small bugs to fix.
+ 56072 [lyle users.s] I think the plan is for it to go into Andy's next 1.7.3 installer.

^ Unary star operator problem?
56006 [dee-bee-are-] def f(*a)
56118 [aleksei.guze] =begin

^ urgent DRb help
56007 [ahoward fsl.] rubyists-
+ 56021 [m_seki mva.b] Do you want to distribute two or more objects by one server?
| 56028 [ahoward fsl.] i'm trying to make a server which returns the uri of newly created (in master
| 56033 [m_seki mva.b] hmm...
+ 56022 [m_seki mva.b] Do you want to distribute two or more objects by one server?
+ 56116 [drbrain segm] include DRbUndumped
  56141 [ahoward fsl.] why?  it seems to work without it?
  56198 [drbrain segm] ah, in the initial snippit, I assumed you were starting the server with

^ Re: Exerb for Linux ? (long)
56009 [fg siamecomm] Thanks a lot for your help which fits nicely on what I found in a sleepless

^ Proc#binding ?
56014 [ptkwt shell1] Just a thinking out loud here, I have no pressing need for this, but...
56041 [vjoel PATH.B] class Proc
56043 [ptkwt shell1] I think this will report a private method access error.
56049 [vjoel PATH.B] Must have changed recently...

^ druby/attr_reader problem
56017 [Eugene.Scrip] I have DRb server that manages marshalized objects in DB. I've
56018 [m_seki mva.b] Did you define attr_reader as each of a server and a client?
56122 [Eugene.Scrip] I can't require my object (class) declarations on the serverside, all
56126 [m_seki mva.b] =======

^ Profiler output meaning (self vs total)]
56024 [dali insula.] Could someone please tell me what is the difference between last two columns

^ Ruby WinCE (Mips) Status?
56027 [dm accesscab] Any leads?... Google threads seem to imply it is a work in progress.
56029 [bobx linuxma] I would be interested as well...I am probably picking up a new PocketPC soon

^ [ANN] Radical V0.5
56030 [idan idanso.] Radical is a ruby based web appliction server, it provides templates, i8n,

^ save links
56034 [basti.steine] i posted a similar thing a few weeks ago. But I believe there must be
+ 56038 [james jamesb] Um, do you mean you want a end up with a text file containing a list of all the
+ 56044 [tsyk yk.rim.] How about using win32ole?
  56326 [basti.steine] Thanks a lot,

^ RubyConf on LWN?
56042 [ptkwt shell1] I didn't see anything about the RubyConf in the Nov 7th edition of Linux

^ Not really a ruby question, but this is a smart group.  Win32 file.write timing.
56045 [jcb iteris.c] I am trying to write non-compressed video to a file at 40 fps.
+ 56046 [james jamesb] My experience is that Windows services and assorted background processes can
| 56100 [jcb iteris.c] I should have said in my original post, that I already tried this.
+ 56047 [mikkelfj-ant] Hmm to some extend, not the API, but the NT virtual memory manager can get
| + 56101 [jcb iteris.c] I am not entirely sure how to interpret your post.
| + 56102 [jcb iteris.c] I forgot.
|   56195 [mikkelfj-ant] stack.
|   56196 [mikkelfj-ant] time
+ 56104 [phasis korne] I think it's due to Ruby's GC behavior and time object.
+ 56109 [jcb iteris.c] Arg!!  I feel like such an idiot.

^ Read a file...
56048 [ted datacomm] It seems so simple, but eludes me.
56050 [m_libby ands] query = ''
+ 56059 [ted datacomm] Thanks so much for the solution.  It worked, first time.
| + 56061 [dsafari para] Michaels example does take care of closing the file. Here is an what File.open
| | 56080 [billk cts.co] Is that last sentence from ri and the Pickaxe actually true?  If it is, I'm
| | 56082 [decoux moulo] Try this
| | 56083 [billk cts.co] Thanks!  I've experienced comparable behavior in returning
| | 56084 [decoux moulo] Well, ruby make something like this (when it has a block)
| | 56108 [ted datacomm] Arrange things that depend on the previous result to be in one bre block.
| | 56114 [ted datacomm] Heh... I got ri.
| + 56064 [ysantoso jen] Well, if you can't open the file, then you can't read the file content
+ 56214 [bruce codedb] query = File::open('filename.sql'){ |f| f.read }
  56216 [matz ruby-la] Or simply
  + 56217 [bruce codedb] Sweet.  Using 1.7.3 is like opening a big present, a bit at a time. ;)
  + 56220 [bulatz integ] or simply
    56221 [botp delmont] tried that in windows but it doesn't work. OS-centric, I think :-)
    56232 [ted datacomm] Aren't we all? <g>
    56233 [botp delmont] for the meantime, I think :-)