227110-229571 subjects 227475-242829

help re deleting files please?
227285 [greg.hauptma] ...
+ 227287 [james@gr yp ] I thought *you* were considering using Ruby for this task.  ;)
+ 227378 [mephis1987@g] ...
  227481 [greg.hauptma] ...

Wrong results using named arguments
227302 [jasonvogel@g] [a.rb]
227305 [nospam@no it] Posting the same message six hours after receiving a raft of helpful replies
+ 227310 [jasonvogel@g] Sorry about the repost.  Initially, I thought the original post went
+ 227314 [jasonvogel@g] Okay, I have a couple of questions. If I use the Hash approach,
  + 227316 [nospam@no it] @hash = { key => arg, key => arg, ... }
  + 227319 [TimHunter@nc] You might find the "Method Arguments" section on page 332 in the Pickaxe
  + 227320 [ara.t.howard] def the_method opts = { :arg => 'default value', :another_arg => 'default value too' }
    227361 [vjoel@pa h. ] Not really, at least in 1.8. That sets the default for _opts_, not for
    227364 [vjoel@pa h. ] DEFAULTS = {
    227365 [mr.cruft@gm ] ...
    + 227400 [ara.t.howard] if you like that style you may like this lib
    + 227406 [vjoel@pa h. ] If you define default option hashes as constants, you can comment them

#method(false) returns singleton methods?
227313 [transfire@gm] I had a hard enough time recalling that #instance_methods only returns
227354 [george.ogata] * object.c (rb_obj_methods): list singleton methods if recur
227428 [transfire@gm] Thanks. I suppose matz has his reasons. Though I can't say I quite
+ 227994 [botp@de mo t] # I have to agree with David Black that this true false parameter has no
| 228742 [transfire@gm] big up :-)
+ 228852 [george.ogata] Almost right; it's actually _nonprivate_ methods.  ;-) And yeah,
  228912 [transfire@gm] Good point about singleton, I suppose the easiest adjustment would be
  229553 [george.ogata] Hmm, looks like a small combinatorial explosion.  :-(

[ANN] hoe 1.1.6 Released
227318 [drbrain@se m] hoe version 1.1.6 has been released!

BUG: ruby-mode.el : '/=' operator breaks following indentation
227324 [jeremy@ch os] Using emacs 21.4, ruby-mode.el from Ruby 1.8.5 (byte-compiled), if I
+ 227351 [george.ogata] The issue is probably that it's treating the "/=" as the beginning of
| + 227352 [george.ogata] Oops, I misread.  It sounds like it is the same behavior.  Still, it
| + 227380 [jeremy@ch os] Thanks, that works.  A slightly better fix is to add a ';' as well to
|   227571 [george.ogata] Hmm, my ruby-mode doesn't seem to need the ';'.  I'm using the CVS
|   227664 [jeremy@ch os] Mine definitely does need it.  I'm using stock Ruby 1.8.5 and GNU
+ 228066 [matz@ru y- a] Does this patch work for you?
  228088 [jeremy@ch os] Yes.  Thank you!

[ANN] rubyforge 0.3.2 Released
227325 [drbrain@se m] rubyforge is a simplistic script which automates a limited set of

Download only http headers
227329 [buunguyen@ps] I'm writing a small app which needs to list all HTML pages (only HTML
227331 [pubsub@ru yi] can get the headers that way.
227342 [buunguyen@ps] Work like charm.  Thanks a great deal, Tom.

Re: drawing borders in excel
227334 [renard@nc rr] Okay quick update... I figured out how to change the color of my border

[OT] Overwhelmed by emails
227336 [dan-ml@da 42] This list has way too many messages for the amount of free time I have. Does
+ 227338 [dblack@wo bl] I guess you could use a bayesian spam filter but just teach it
+ 227339 [twifkak@co c] Hrm... ruby-talk has web mirrors at
+ 227345 [w3gat@nw ag ] If you use Mozilla, simply sort the subjects, then look at the ones you
+ 227349 [znmeb@ce ma ] I recommend the two-second rule -- look at the message for 2 seconds,
+ 227353 [allergic-to-] sylpheed or sylpeed-claws
+ 227357 [drbrain@se m] I've been working on it for IMAPCleanse, but I haven't made it
+ 227382 [neoneye@gm i] Interesting challenge.. a ruby-talk ranking system..
  227399 [znmeb@ce ma ] -20 best GUI for Ruby

Re: Overwhelmed by emails
227347 [roseanne@ja ] Why you need the emails at all???
+ 227356 [ben@bl yt in] Some people prefer to use mailing lists natively, instead of through
+ 227358 [drbrain@se m] I can't read the website when I'm not attached to the internet.

VBA to Ruby code again
227355 [chen_li3@ya ] I want to add error bars to a chart. I record excel macro and then try
227360 [james.britt@] What are xlCustom and xlBoth?
227368 [jan.svitok@g] From the previous discussions I assume the OP is getting the constants
227370 [chen_li3@ya ] I post my the whole codes here. Here are some information about my
227375 [jan.svitok@g] Now, see for yourself: you use ExcelConst::XlWhatever in the
227390 [chen_li3@ya ] This is not true. I have two versions: one is the above and the other
227609 [jan.svitok@g] chart1.SeriesCollection(1).ErrorBar 'Direction' => ExcelConst::XlY
227624 [chen_li3@ya ] What is the page in 2nd edition?  I read through the automation with

validating atom and rss locally?
227366 [rsanheim@gm ] I was wondering if there are libraries to validate rss 2.0 and atom
227379 [kou@co mi ng] Developing version of RSS Parser can validate RSS 2.0 and

How to set socket option SO_RCVTIMEO
227367 [z4k4ri4@gm i] How to set socket option SO_RCVTIMEO in Windows XP?
+ 320172 [bulbous@gm i] Did you ever find out how to do this?  I am looking around, haven't
+ 320175 [b.candler@po] irb(main):001:0> require 'socket'
  320177 [bulbous@gm i] I tried something like that, and it never timed out -- so after your
  320183 [bulbous@gm i] It appears that I am supposed to call setsockopt before connecting --
  320186 [wpdster@gm i] ...
  320187 [bulbous@gm i] hehe yeh I just realized I could use a regular Socket instead of a TCP
  320197 [b.candler@po] Well, probably you shouldn't be using setsockopt for this at all. Note
  + 320198 [b.candler@po] Also, if you're not concerned about the possibility of transmission
  + 320219 [bulbous@gm i] The problem with using timeout is that it is unsafe: (see

MS Office and win32ole on Linux
227369 [gustav@ra ls] Hey
227371 [chen_li3@ya ] As far as I know WIN32OLE is a built-in library in the Ruby. In order to
+ 227374 [gustav@ra ls] Thanks for the reply. I tried it in irb, but I get
| 227376 [jan.svitok@g] The problem is, that win32ole is a windows extension, you have linux
| 227377 [gustav@ra ls] Thanks, I can see why people would be thankful!
| 228396 [gustav@ra ls] I bailed on the 1-2-3, as I decided to try some easier sounding ways
+ 227397 [ara.t.howard] i've managed this before.  i installed the one-click installer under crossover

Ruby and TAPI
227373 [d_rems@ya oo] Has anybody been succesfull combining Windows Telephone API (TAPI) with
+ 227391 [jwells@se va] years ago to make use of tapi from vb6. TAPI calls are just like normal
+ 227439 [greg.kujawa@] Don't know if you are looking to develop a CTI-type application or just
  227548 [d_rems@ya oo] I have an ISDN phone connected to computers RS232 interface and a TAPI
  227585 [greg.kujawa@] I assume you are referring to a Windows host machine. If so then check

ruby-talk: I think some posts get lost
227383 [damphyr@fr e] I posted somehting about wanting code that can mimic cron behaviour a
227385 [gareth.adams] I think you could well see your posts in about a month ;)

HTML cleanup task
227386 [vshepelev@im] Sorry, if the question seems dumb.
227395 [angdraug@gm ] Tried HTMLTidy[0]? Sometimes it tries to be too smart, but it has a
227396 [vshepelev@im] Not really tried, but had thought about.
227429 [nospam@no it] Not "huge and almighty" but "small, smart and simple" ... I believe that's
227455 [vshepelev@im] OK, here's the model of what I'm doing: small app, which interacts with
227466 [nospam@no it] / ...
227476 [vshepelev@im] I understand HTML syntax. And I see no problem in above.
227501 [nospam@no it] / ...

Timers, scheduling and Ruby
227388 [damphyr@fr e] Ok, since the original post migh just appear in a month's time, lets
+ 227398 [znmeb@ce ma ] You've discovered a chronosynclastic infundibulum, apparently. :)
| 227405 [damphyr@fr e] I'm not sure about this. EventMachine seems geared towards networking.
| + 227410 [rsanheim@gm ] I have nothing worthwhile to add, other then that I've also definitely
| + 227485 [garbagecat10] require 'rubygems'
+ 227404 [james@gr yp ] I've wanted this myself.  I wonder if we could get it down to Ruby
  227414 [ara.t.howard] i'm working on a library for this now.  any request?
  227416 [james@gr yp ] Ara, you just plain rock.
  + 227461 [ara.t.howard] how bout this as the time spec?
  | + 227498 [james@gr yp ] Ah yes, I looked into Runy recently when someone use it to solve a
  | | 227565 [damphyr@fr e] Nice ideas. I still need a UI wrapper for this code though and a way to
  | + 227586 [pit@ca it in] Ara, this would be nice, but I think it's difficult to determine the
  |   227591 [ara.t.howard] indeed.  this is the only major design flaw.  still, if one assumes a
  |   + 227599 [pit@ca it in] I, too, think it should be possible to add the missing functionality to
  |   + 227608 [tim.pease@gm] Runt looks nice. Another package is Chronic. It was part of the
  |     + 227629 [Mlipper@do t] I'm still catching up to this thread but FWIW I am always interested in
  |     | + 227636 [tim.pease@gm] Bingo!
  |     | + 227641 [ara.t.howard] here's what i'd like
  |     + 227637 [ara.t.howard] oh yeah - i'd forgotten about that.  thanks.
  |       227647 [tim.pease@gm] You're still going to have the missed events problem with the runner
  |       + 227648 [Mlipper@do t] is there already a library/utility for the above somewhere?
  |       | 227654 [ara.t.howard] class Numeric
  |       + 227650 [ara.t.howard] nah.  you'd raise an error if events were scheduled at finer than 'n'.  in
  |         + 227662 [mguterl@gm i] ...
  |         | 227666 [mguterl@gm i] ...
  |         | 227673 [ara.t.howard] heh.  no problem.  you were right too.
  |         | 227690 [ezmobius@gm ] There is a ruby gem called moment that is a timer/scheduler for
  |         + 227696 [wmwilson01@g] Me too... as long as they're not also shooting the users and the systems
  + 227462 [damphyr@fr e] How about stealing from schtasks

WMI usage in Ruby to get file size, beginners question
227392 [gbatdd@ya oo] sorry if the question is so stupid as I assume.
227411 [kallen19918@] \ is a control character in both in WQL and ruby so you need to escape
227417 [gbatdd@ya oo] not yet used to the specifics of everything. Ofcourse I also googled

Test::Unit and drb
227393 [damphyr@fr e] Anybody have any tips to share about unit testing code that uses drb?
+ 227394 [farrel.lifso] This is how I've done it though if anyone has better solutions I'd be
+ 227514 [drbrain@se m] How is multiprocess operation (DRb dispatched) different from
  227559 [damphyr@fr e] It's not, apart from the fact that the drb server might just not be

Segmentation fault, proc, eval, long string
227402 [hutch@re ur ] I'm getting a 'Segmentation fault' in ruby 1.8.5 running on debian in
227409 [wilsonb@gm i] ...
227418 [hutch@re ur ] Thanks for the link.
227427 [wilsonb@gm i] Can you get a full stack trace from gdb or something?
+ 227430 [wilsonb@gm i] Oh, and what happens when you freeze the string before eval'ing it?
| 227436 [hutch@re ur ] same thing. Tried freezing the proc too, no change. Thanks again though.
+ 227434 [hutch@re ur ] That didn't make any difference. Nice idea though.

Capistrano Connection Caching Question
227403 [runner@be ke] I'm trying to clear up my understanding of how some of the Capistrano
227473 [ezmobius@gm ] Hey Steven-
227489 [runner@be ke] Cool,

Download a file piece by piece
227407 [patrick@er b] i have a question about downloading files. I want to download a file and
+ 227419 [louis.j.scor] It would be nice if there was an easier way to handle the data as it
| 227449 [patrick@er b] Thanks! I'm happy. It works really great :-)
+ 227423 [nospam@no it] No, actually, it is that the results are not printed out when you expect
  227435 [slamboy@gm i] ...

Ruby Tk and Threads error
227408 [jorge.santia] I'm coding an application with Ruby and RubyTk that draws a huge
+ 227547 [nagai@ai ky ] Probably, that is a bug which depends on timing of callback operation.
| 228101 [jorge.santia] Your patch worked GREAT! My app has never crashed since I applied the patch.
| 228148 [nagai@ai ky ] I have to say thank you.
+ 227729 [efine145-nos] Jorge,

Re: Segmentation fault, proc, eval, long string [Reproduced]
227415 [hutch@re ur ] A little more on this...
+ 227424 [hutch@re ur ] So, to increase the strangeness a bit... if I run this from within
+ 227437 [wilsonb@gm i] Segfaults for me on my Debian box with ruby 1.8.4 (2005-12-24) [i386-linux]
| 227446 [hutch@re ur ] Oh dear. In some ways I was hoping for something unique to my
+ 227569 [pit@ca it in] Bob, you can use parsetree to dump the AST of the generated proc. I'm
| + 227578 [hutch@re ur ] Okay, I'll do that. But a Segmentation Fault? Surely there's a more
| + 227593 [wilsonb@gm i] I just tried this, and here's what it gave me (for a smaller N, so the
|   227600 [pit@ca it in] Wilson, this is not the dump of the generated proc. You have to pass the
|   227605 [wilsonb@gm i] wilson@metaclass:~$ ruby boom.rb
|   227607 [wilsonb@gm i] OK. Wow.
|   227615 [hutch@re ur ] *That's* what I want! What's so special about a proc?
|   227617 [wilsonb@gm i] Apparently, they are specially buggy. :)
+ 227749 [matz@ru y- a] Thank you for the report.  Your script helped.  Could you check if the
  227900 [hutch@re ur ] Thanks for the patch. I applied it and tried a few things with it.
  227971 [matz@ru y- a] The patch does rather decrease the amount of memory that Ruby use.
  228040 [hutch@re ur ] This is consistent with what I'm seeing. Just before you posted your
  228046 [matz@ru y- a] Good to know that.  For your information, YARV does not have this

simple question, looping through each character in a string
227426 [beingthexemp] word = "picture"
+ 227438 [dblack@wo bl] There's an each_byte iterator.  It gives you ASCII values, so you have
| + 227440 [beingthexemp] i've never seen a split('//'). what exactly is that doing?
| + 227443 [james@gr yp ] word.scan(/./m) { |char| ... }
| | + 227444 [dblack@wo bl] And, I now realize, if someone posted what I posted and I were
| | + 227445 [beingthexemp] Yes, I saw the each_char method in the RDocs but when I tried using it,
| | + 227451 [beingthexemp] does it make sense to have a method for String in a file called
| + 227471 [louis.j.scor] In the immortal words of Homer Simpson, "Doh!"
+ 227457 [matt@ti bi s] the_string.scan(/./).each do |char|
  + 227465 [beingthexemp] does anyone know how you will accomplish the same thing in ruby 1.9?
  | + 227468 [transfire@gm] str.chars.each |c| ...
  | + 227469 [nospam@no it] 1. Please don't top post.
  + 227529 [matt@ti bi s] I'd be curious to know what happens if you specify that this is a UTF-8

openSSL signs
227432 [pgonzalez@na] PKCS7 using OpenSSL.
227553 [boss@ai bl d] It's not quite the same data in both cases.  The \n is treated

Re: simple question, looping through each character in a str
227441 [olsonas@gm i] split will return an array of strings, splitting the initial string at

dates, scheduling tasks, mysql
227454 [steve@fo wo ] What is the best Date format for working with dates in ruby & mysql?
227464 [nospam@no it] As to MySQL, you really need to stick to a strict date format of yyyy-mm-dd.
227472 [steve@fo wo ] class Date
228284 [heron@jp .n ] Not sure why exending Date doesn't work (at least in irb), but I believe you
228295 [steve@fo wo ] Hmm

Wisdom of including Rakefile in releases
227458 [transfire@gm] I was poking around in the /usr/lib/ruby/gems directory today and
+ 227459 [jameskilton@] ...
| 227479 [transfire@gm] Yes. For instance I have a little backup task that I sometimes use to
| 227510 [rosco@ro co ] The way I've come to approach this is to have a local rakefile in which I
| 227560 [damphyr@fr e] I am all for including the rakefiles in the gems. Especially if the
+ 227588 [fugalh@xm ss] It's fully within the unix tradition of including the whole source in
| 228033 [transfire@gm] Good advice. I'll remove some of the default settings and mkdir_p's and
| 228062 [jameskilton@] ...
| 228065 [transfire@gm] By bad. I should have been more clear. I meant where do you store the
+ 228068 [halostatue@g] As I start to get back into supporting my projects, you will see more
+ 228092 [drbrain@se m] How am I supposed to run the tests to figure out if your gem works
  + 228143 [twifkak@co c] What? I'm supposed to write tests?
  + 228154 [transfire@gm] Thre's always

Library to read/write TAR files
227474 [michel.casab] I'm looking for a library to read/write TAR files. I've had a look on
+ 227499 [nospam@no it] Are you willing to make system calls? I ask because if you do it in pure
+ 227531 [wmwilson01@g] Do they have to be tar files, or can they be zips?
| 227549 [michel.casab] I already generate zip files (and prefer this format over tar.gz),
+ 227934 [jeremy@hi eg] the ruwiki project.
| 227959 [michel.casab] Thank you very much, this is exactly what I was looking for!
+ 227982 [halostatue@g] Yes. Archive::Tar::Minitar. If I ever get TRUG hackathons going again,
  228012 [michel.casab] Minitar is exactly what I needed, thanks.