222981-244483 subjects 223427-224287

^ Net:HTTP performance downloading large files
223205 [chad underbl] I'm working on my first ruby/rails project and have run into my first
+ 223225 [craigbeck lu] How about just calling out to curl?
| 223254 [louis.j.scor] Chad;
+ 223359 [aaron_patter] It probably has more to do with the buffer size used in Net::HTTP.
  225033 [chad underbl] and changed
  + 225034 [chad underbl] /usr/local/lib/ruby/1.8/net/protocol.rb
  + 225035 [keith audiob] With Ruby's open classes, you shouldn't have to. At the top of your
    225039 [chad underbl] That worked great Keith, thanks.
    226433 [steve foowor] Works great with me too!

^ String#unpack
223207 [joevandyk gm] the_string.unpack("i").first
223270 [wardies gmai] Looks ok to me.  You should of course double check that both your

^ Input file, change data, write to file
223209 [brr blueridg] I'm a ruby newbie trying to read data from a file, make a few changes,
+ 223214 [nospam nosit] It is very important in a case like this to define the problem clearly.
| 223217 [nospam nosit] / ...
+ 223215 [matt tidbits] I think the most newbie-appealing approach to files is with
+ 223219 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
+ 223238 [stefano.croc] I'm not sure I understood what you want to do. Do you want to write the

^ file size revisit
223211 [python152 gm] the subject has been reported before, basically, ruby File.size() won't
+ 223218 [djberg96 gma] Whoa, what?  Can you please elaborate on how win32-file causes problems
| 223220 [python152 gm] please see the code segment, once I put in "require win32/file", the
| + 223222 [python152 gm] Also, I am not sure why these two modules (or other reasons) are not
| + 223223 [djberg96 gma] Please define "not working any more".  What isn't working exactly?  Is
|   223265 [python152 gm] ok, usually, I ran the program and supply directory name "." as
|   223278 [djberg96 gma] These are warnins not errors.  They are harmless - I redefine a bunch
|   223285 [python152 gm] Find.find(some path) do |path|
|   223292 [djberg96 gma] Aha! The culprit appears to be lstat.  In the find module you'll see
|   223294 [djberg96 gma] Ok, fixed in CVS.  I'll have a release out tonight.  If you want the
|   223297 [python152 gm] Dan -
|   223311 [djberg96 gma] Actually, we all agree. It's a bug in Ruby. It has been brought up,
|   223367 [phasis68 hot] The File.size of win32-file still has a bug.
|   223454 [djberg96 gma] Looks like I used "L" instead of "Q" in the original buffer.  Oops.
+ 223229 [phasis68 hot] require 'Win32API'
  + 223266 [python152 gm] thanks for the suggestion. With this redefined function, it works fine
  + 223281 [djberg96 gma] I don't think the problem is File.size.  I suspect it's the "if

^ Change class of existing object?
223212 [Max.Afonov m] charset=iso-8859-1
223213 [dblack wobbl] No, an object retains its "birth class" forever.  I think there might
223250 [phurley gmai] pth

^ Ruby noobist, roobist?
223221 [shyguyfrenzy] charset="iso-8859-1"
+ 223233 [m.fellinger ] require 'test/unit'
| 223235 [shyguyfrenzy] Sweet thanks for the quick response!
+ 224107 [sam powersou] The 2nd end ends the class, so you should put the 2nd test above it...

^ Can we run ruby codes (Heatmap) in PHP/Apache running server
223227 [raju_drg hot] I have a project in PHP/MySQL installed in *NIX server with Apache. Now
223251 [usenet-09200] Can you execute programs on this server?
223253 [haug berndha] Actually, it might jeopardize your account as well; installing binaries

^ Ruby for Symbian
223232 [tbray textua] ...
223284 [ezmobius gma] Wow thats cool. Is this a different ruby on symbian then the google
223460 [jeffdh u.was] It is in fact different than the ruby-symbian project that I presented

^ Something more compact for getopt
223234 [bantu SKASUJ] I use GetoptLong but I miss something much shorter in usage like
+ 223242 [jan.svitok g] try optparse [1], though not that concise, it's pretty nice and easy
+ 223256 [transfire gm] I'll give you two options. One that I worte that isn't as concise as

^ Permissions in SVN folders and Ruby scripts
223239 [thedossone g] (I'm cross posting this from SVN forum)
223279 [ben bleythin] svn doesn't really pay attention to permissions, so when you check

^ Watir and regexp
223241 [asmir.biscev] We want to test a value given in a text field with a regular
223249 [nospam nosit] Define "work". Have you take the step of creating a test regex that must

^ Hooking IE events in Watir
223255 [patrick pksp] I need to handle the onMouseDown event for the IE controller in Watir.
223260 [thedossone g] I'm working with something similar trying to get a mouse drag to work, I

^ Civ4/integration question and practice for the golfers
223264 [spoooq gmail] For reasons not clear even to myself, I'm trying to predict the growth and
223447 [spoooq gmail] Not sure if anyone's reading this, but here's where I'm at now.

^ remote file glob
223269 [eegreg gmail] What is the fastest way to do a recursive file glob on a remote server?
+ 223275 [shortcutter ] That would rather be something like
| 223295 [eegreg gmail] I think I will just use the find command.
+ 223276 [znmeb cesmai] If you're talking about a Linux or other Unix-like server, indexing a

^ Solved:  Input file, change data, write to file
223272 [brr blueridg] Stefano,

^ dbm library
223277 [pw_richards ] I am using Ruby 1.8.2 on Windows and am wanting to use the dbm library
223286 [ara.t.howard] it comes with ruby.
223298 [snacktime gm] With ruby 1.8.5, there is no DBM on windows, it's SDBM or GDBM.
223401 [pw_richards ] Thanks, that's solved it. I am now using SDBM.

^ [QUIZ] Fuzzy Time (#99) - Results
223289 [gavin.kistne] Following are the results I obtained from running my test script against
+ 223291 [gavin.kistne] Oops. I found a small bug in my test script's counting of offsets.
+ 223321 [wardies gmai] I see now why the quiz mentioned that we might need to assume a

^ RubyInline
223290 [rubytalk eac] So, Im trying to move away from mkmf, and onto RubyInline.
223628 [drbrain segm] [rearanged]

^ Just a question to throw out there...
223299 [shyguyfrenzy] charset="Windows-1252"
+ 223302 [dblack wobbl] Have you looked at Chris Pine's "Learn to Program" book?  It uses Ruby
| 223303 [shyguyfrenzy] Yah David,
| 223315 [chris.hulan ] Have a look at this research paper
| + 223316 [rtilley vt.e] I'd suggest a 'Computers & Networking for Dummies' type book that gives a broad
| | 223319 [shyguyfrenzy] Yah, see that's what I figured it's more than just "me learn to program, me
| | + 223322 [ruby philip.] One thing i haven't seen anyone mention yet (maybe I just missed it) is to
| | + 223348 [nepentherepr] charset=US-ASCII;
| + 223317 [raju.gandhi ] Hey!!!
| | 223320 [shyguyfrenzy] Yah I've got Why's guide bookmarked. I really enjoy his style of writing and
| + 223341 [wilsonb gmai] Thanks for linking to this. It's pretty amazing.
+ 223305 [tim.pease gm] How much programming experience do you have?  If you have never done
| + 223306 [shyguyfrenzy] This is indeed my "first" dive into programming, with little unsuccessful
| + 223309 [m_goldberg a] IMO not good advice for someone new. There's a good chance that a
| + 223313 [james graypr] Wow.  I respect that book a lot Tim, but start there?  I must be a
|   223323 [tim.pease gm] I'll be honest, it has been a long time since I've opened up Knuth and
|   223333 [james graypr] <dies laughing>
|   223358 [m_goldberg a] Yes, Ruby makes implementing turtle graphics both easy and fun. It
|   223361 [james graypr] Well we could always do it as a multi-part quiz.  I was also
|   223429 [Brian.Hartin] Skotty,
|   + 223430 [shyguyfrenzy] I looked at Perl briefly and all the {'s kind of make me nervous.
|   + 223434 [james graypr] Are you sure?  I honestly don't know, I'm just asking.  I'm wondering
|     223439 [Brian.Hartin] I'm not sure, but I suspect that closures would be hard to understand
|     223446 [james graypr] You're probably right.
+ 223312 [james graypr] There was a fun side conversation on this at RubyConf this year.
| + 223314 [shyguyfrenzy] That was the most amusing email I've read all day. Thank you, that made me
| + 223858 [coder68 yaho] I greatly respect James's opinion on practicaly everything he writes on
|   223878 [james graypr] Ack, don't say that.  I was *trying* to provide encouragement!  ;)
+ 223356 [bob.conn bti] If it's any consolation, I'm a programmer and am finding Ruby tricky
| 223357 [shyguyfrenzy] I was alright with blocks, and then along came these @ and several other
+ 223431 [Mail Jonas-H] what kind of programs do you want to create?
+ 223836 [chen_li3 yah] Depends on your background and your goals. I assume you have no

^ net/http and rexml
223304 [louis.j.scor] Hey all;
+ 223338 [nospam nosit] You mean, line by line? The socket class you are describing doesn't know
| + 223343 [louis.j.scor] Nope.  Not line by line.  All the parser should need is a token, and I
| | 223345 [nospam nosit] And you could set things up to read more data when your block-oriented input
| + 223352 [vidar.hoksta] Class TCPSocket has both the methods each_line and readline. That isn't
+ 223355 [vidar.hoksta] I fully sympathize... I went through the same mess a while back.

^ Stockholm RUG?
223310 [ola.bini ki.] Just wanted to throw out a call for information/action: Is there any

^ str1 = str2 is not a copy?!?
223325 [joeat303 yah] File.foreach(data_file) do |line|
+ 223326 [jcribbs netp] Nope.  Now, you have two variables, base_name and line, referencing the
+ 223327 [farrel.lifso] It doesn't create a copy, both variables reference the same object. If
+ 223328 [halostatue g] No, it isn't. You're not understanding Ruby variables and assignment.
| 223329 [gavin.kistne] Variables point to objects, they do not "hold" or "contain" them.
| 223335 [tanner.burso] But is oddly enough almost exactly how it works in PHP.  And thus one of the
+ 223330 [snacktime gm] As far as my understanding goes most assignments just copy object
| + 223334 [gavin.kistne] the line).
| + 223336 [louis.j.scor] As has been pointed out, you are creating a new binding to the same
|   223461 [gregory.t.br] I get the point of this example, but it's worth noting that you can
|   223462 [gavin.kistne] Wording like that promotes dangerous mental models, IMO.
+ 223337 [nospam nosit] / ...
| + 223340 [gavin.kistne] The thing to wrap your head around here is that 'slots' in an Array, and
| | 223344 [louis.j.scor] Of course.  I'm just pointing out how this could be confusing to
| | 223346 [gavin.kistne] Yup. To be clear, my response was not an attempt to 'correct' you, but
| | 223350 [louis.j.scor] Absolutely. Your explanation was excellent, as always.  What I meant
| + 223342 [dblack wobbl] base_name = line.dup
| + 223351 [david vallne] And I'm guessing the sake of simplicity too. The Ruby basic data item
+ 223347 [kabigon gmai] Yep. All variables in Ruby are actually references to objects ... so

^ [SUMMARY] Fuzzy Time (#99)
223354 [gavin.kistne] The core requirements for this quiz were somewhat easy. Let's look at

^ RubyCocoa - selectors for Ruby classes
223363 [gabriele.mar] I'm using the RubyCocoa framework (well, trying to), freshly compiled
235875 [ruby.hardwar] I don't know anything about RubyCocoa but I happened to see these

^ foxGUIb & ruby 1.8.5 spewing hundreds of errors at launch time.
223364 [kenosis gmai] Greetings all,
+ 223368 [lyle.johnson] Hope this helps,
+ 223421 [noonknight g] Until the 1.8.5 bug is fixed, just precede the "require" with: $VERBOSE
  223424 [kenosis gmai] Thanks to all - much appreciated.

^ Cool API reference thingy
223365 [dblack wobbl] Have a look at http://gotapi.com.  It's very cool.
+ 223366 [greg.carbon8] Very cool David.  Interface acts a little strange in mac FF2 but otherwise
+ 223373 [flazzarino g] nice site.
| 223433 [ruby-talk ba] I made one for ActionScript (using Ruby, of course),
+ 223414 [doodpants ma] It's nice, but in the Ruby Core Classes section, the sidebar links to

^ Garbage collection/memory unfreed problem
223374 [mark streetl] It appears that the ruby garbage collector is not freeing up unused
+ 223383 [Childe.X gma] I tried your code on a RHEL4 x86-64 server and I got the same problem
+ 223635 [drbrain segm] Ruby's garbage collector is conservative and walks the stack looking

^ Hackers wanted
223375 [vihanpandey ] This is a ``commercial" mail for a requirement of hackers. The
223377 [foamdino gma] I'm interested in part-time/contract/freelance work, but not full-time
223378 [foamdino gma] Sorry all, wrong reply option :(
223380 [vihanpandey ] Sorry all, wrong reply option :(

^ How to parse an WSDL file ?
223381 [stephane.wir] I would like to use the wsdl api from stdlib, but I didn't understand.
223384 [Childe.X gma] soap4r can use REXML as the XML parser. I think you can use it's WSDL
223385 [stephane.wir] Thanks, because I would like to generate a C++ code from this WSDL with
223475 [nakahiro sar] lib/wsdl/classDefCreator.rb (and friends) generates Ruby code from WSDL

^ webrick-webdav(gem) served files are mounted only read-only
223382 [ruby-forum s] while i easily get a webdav server up an running with
223386 [gabriele.mar] Exactly, that's a Mac OS X issue: webrick-webdav supports protocol

^ REXML + Gruff: display label problem
223388 [luc.juggery ] I have a little question regarding graph configuration for Gruff

^ ruby lexer/parser
223390 [am artbot.de] Just a short question concerning the ruby lexer/parser
223391 [farrel.lifso] * can have dual meanings. It can be a method call on an object (in
223394 [am artbot.de] yes, you are right. I was just suprised, that it only is a problem

^ Vacancy for Ruby developer in Amsterdam
223392 [davaco gmail] We're hiring! Please email me if you're interested.
223399 [pratiknaik g] I'm based in India. Can I apply for this position ?

^ Re: Dependency 1.0.0
223393 [twoggle gmai] And observer.rb :)

^ Vacancy for Ruby developer in Amsterdam
223395 [davaco gmail] We're hiring! Please email me if you're interested.

^ Webrick upload file issue
223396 [namepipe gma] Is there any feature in webrick using which we can upload our files
223487 [namepipe gma] Can anyone help me on this ?
223498 [jan.svitok g] Try using cgi lib, http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html

^ Output not clear
223398 [learningruby] I am a newbie to Ruby and the output of the following program is not clear
+ 223400 [rimantas gma] Because you do not change @balance in your withdraw method.
| 223403 [learningruby] More confusion. I thought that the statement balance = @bal - amt in the
| 223405 [rimantas gma] This is true. However in the case something = some_value Ruby sees it
| 223406 [learningruby] Thanks. That clarified my confusion. One more related thing that confuses me
| 223449 [david vallne] ? If
+ 223410 [jes luretank] Greetings
  223413 [learningruby] Thanks. This is a much better code. One more related thing that confuses me
  + 223415 [jan.svitok g] sure. the difference is whether you're getting the var from the inside
  | 223417 [learningruby] fathom the difference between @balance and self.balance as mentioned by you
  | 223422 [dblack wobbl] It all starts with the instance variable, @balance.  The balance
  | 223423 [learningruby] coincidence that just the other day I bought and have started reading your
  | 223426 [dblack wobbl] Glad to do it!
  + 223416 [dblack wobbl] @bal is an instance variable, not a class variable.

^ Using another program (Lynx) from within Ruby
223412 [news01.web m] I'm trying to write a script to read a list of URLS, get the HTTP response
+ 223418 [gabriele.mar] If you really want to use an external program, you could use
| 223476 [news01.web m] Thanks, that example looks like it has exactly what I need...  going to try
+ 223419 [jan.svitok g] the #{} should work. Try replacing the command with echo to see to
| 223474 [news01.web m] I tried using Net::HTTP but I'm not sure how to get the HTTP response code.
+ 223420 [hgs dmu.ac.u] You could do all that within ruby of course, but it's almost certainly
+ 223464 [barjunk attg] snip
  223477 [news01.web m] No, but I will look into it.  Thanks.

^ [QUIZ] Bytecode Compiler (#100)
223425 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 223589 [wilsonb gmai] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| 223606 [james graypr] Perl's regex engine can do this, as can Ruby 1.9's Oniguruma engine.
+ 223590 [ruby-talk do] require 'interp'
| 223803 [ruby-talk do] Changed my previous solution to use some of the things others have
| 223899 [bob.conn bti] Here's my effort.  I really enjoyed this quiz but spent way more than
+ 223601 [mail exotico] Here is my solution, a simple recursive descent parser. It's a bit more
| 223607 [james graypr] Did you write that language in Ruby?  I'm just curious.
| 223609 [mail exotico] interpreter in C++. The whole thing is used as a scripting language for
+ 223649 [edbrannin gm] This is my first RubyQuiz submission.  Like Cameron Pope, I decdied to let
+ 223663 [martin snowp] # This is a solution to Ruby Quiz #100
+ 223667 [martin snowp] Note that the creator of this quiz left out one important case from
| + 223668 [wilsonb gmai] A) Steals your cool C* unpack trick. :)
| + 223694 [rossrt rosco] Phew - I expected I'd left out far more than just one important case :).
|   223743 [kallen19918 ] This is my first post to ruby-talk and my first stab at a ruby quiz!
|   223745 [kallen19918 ] Aaaargh formatting explosion! Here's that first bit all nice and unexploded.
|   223777 [adam.shelly ] Here is my solution.  I tried to keep it short and simple.
+ 223670 [GENIE prodig] My solution is a bit different than all the ones I've seen so far.  I
+ 223680 [wardies gmai] Ouch! :)  Oh well, I don't think my Ruby is up to some of the more
+ 223923 [jgbailey gma] Some people started doing the Ruby quiz problems using Haskell, and
| 224153 [rossrt rosco] Aww man, now I'm gonna have to look into Haskell a bit more :) I've been
| + 224163 [louis.j.scor] You won't be disappointed.  Haskell is an amazingly cool language.
| + 224240 [jgbailey gma] Awesome!
|   224259 [james graypr] Great, write it up for us so we can all learn how it works!
+ 224037 [GENIE prodig] My 2nd solution, it's the same as the first except i stole the
+ 224241 [jgbailey gma] My solution in Haskell - and this time it actually works. The previous