315472-316803

315250-346109 subjects 315712-319095

^ Re: RDoc 2.2.0 released
315472 [transfire gm] On Sep 19, 7:38=A0pm, Tony Strauss <tony.stra...@designingpatterns.com>
+ 315481 [drbrain segm] There's nothing wrong with it, just an oversight.
| 315495 [transfire gm] 26&atid...
| 315585 [tony.strauss] I think that I'm able to reproduce the symptoms.  This occurs for me
| 315603 [matt tidbits] Perhaps my focusing on "File" is a bit misleading; I presume that 1.8.6
| 315937 [tony.strauss] I think that we fixed this in RDoc 2.2.1.  In order to see the fix,
| + 315938 [tony.strauss] Thanks!  The issues might take a bit of time to fix, as rdoc's markup
| + 316048 [matt tidbits] Cool! I had some trouble updating the gem, apparently because rubygems
|   316141 [drbrain segm] Can you file bugs in the tracker?  This way they won't be forgotten.
|   316151 [matt tidbits] Done. m.
+ 315936 [tony.strauss] RDoc 2.2.1 should fix both issues.

^ update a field in CSV file using fastercsv
315476 [chen_li3 yah] Is it posssible to update a field  of CSV file using Fastercsv?  For
315529 [james graypr] Sure.  You would do this as you would change any file.  Here are the
315539 [chen_li3 yah] Thank you very much.
+ 315547 [james graypr] I'm not sure I completely understand this question.  It is similar to
| 315552 [chen_li3 yah] Thanks,
+ 315556 [gregory.t.br] An atomic save, as James suggested by the 4 steps above, is
  + 315562 [chen_li3 yah] They really make sense.
  + 315844 [pit.capitain] Sorry, Greg, but that's not correct. See the following example.
    + 315847 [gregory.t.br] I've always wondered how r+ is used, but I guess it's not clear to me
    + 315851 [james graypr] This has pretty limited use.  It's rare that you can get away with
      315858 [Rob AgileCon] If you're dealing with a file containing fixed-size records (even if

^ Marketing On Internet
315487 [marketingsre] The majority of people fail online. Why do so many people fail online?

^ Symbol#re_s
315489 [transfire gm] Came up with a great little extension today for the Symbol class. One
315508 [tpreal gmail] Nice idea. After some modification (using method_missing) it could be
+ 315524 [transfire gm] I'm curious to see which methods. But I take it just some methods have
| 315525 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
+ 315632 [renard nc.rr] irb(main):002:0> :HELLO.to_s.downcase.to_sym
  315633 [stephen.celi] What fun is a new version if you can't even re-factor?
  315682 [transfire gm] lock)
  + 315684 [tpreal gmail] I think that it's a better idea to have a constant table with names of
  | 315699 [transfire gm] That limits the utility too much, because then one can't extend String
  + 315696 [stephen.celi] Some frown upon monkey-patching, some frown upon blind rescues, but the fact

^ system(" rake db:sample_data:hoop)
315496 [emekamicro g] I need help , why is it that the above code would not run on windows
315499 [mguterl gmai] It is likely that I won't be able to help further, but if you could
315500 [emekamicro g] ved.
315504 [mguterl gmai] Well maybe I can help.
315507 [emekamicro g] my mistake.....it was in the code.
315594 [emekamicro g] Things have starting moving in the right direction, however,
315597 [mguterl gmai] Once again, the actual error would be helpful.  Be sure to include
315681 [emekamicro g] It worked, I only changed Fixnum 0 to string. Could you explain the
315688 [mguterl gmai] Great, I'm glad you got things working.
316803 [emekamicro g] Some strange result, on my console Rake::Task["db:migrate"].invoke

^ dl taint fixes in Ruby 1.8.7-p72 broke Ruby/Tidy
315497 [angdraug gma] Greetings,

^ iterating methods on multiple parameters
315510 [jason.lillyw] I'm thinking there must be a great Ruby-way to do the same thing to many
315512 [tpreal gmail] h={:yn=>"feet",:yc=>"feet",...}
315558 [jason.lillyw] Thank you.
315570 [jason.lillyw] I just saw a similar issue (#163350 of this forum).
+ 315580 [caduceass gm] With your example...
+ 315613 [b.candler po] hash = {'x'=>2, 'y'=>5}
  315616 [jason.lillyw] Thanks everyone!
  315618 [Rob AgileCon] Sure it is.  In my Programming Ruby, 2 ed., on page 492 it say that
  315622 [jason.lillyw] You can see I don't know very much about this language. I've been trying

^ Ncurses Panel userptr issues
315513 [sentinel.200] I am having issues with the userptr in Ncurses Panel. The C program I

^ Question about Mixins and calling a method
315516 [caof2005 yah] I tried to reproduce a Mixin example that is include in the Pick Axe
+ 315521 [tpreal gmail] It is not 'invoking a method with "<<" notation,' it is simply calling
+ 315522 [rick.denatal] observers is a method defined in the Observable module.  I'll address <<

^ How to fill out textarea in html form
315520 [todd mcmaste] So sorry for this naive question ... I'm new to ruby as of several days

^ for or each?
315527 [twarlick gma] I just used the new roodi gem to check out some of my code that has a
+ 315533 [phlip2005 gm] It leaves you closer to a refactor to .map or .inject or .select or .reject or
| 315532 [phlip2005 gm] str.each do |ch|
| + 315534 [sepp2k googl] That'd be each_char, I suppose. String#each is each_line.
| | 315535 [phlip2005 gm] ... or .each_char or .each_line or .each_byte or ...
| | 315537 [sepp2k googl] What?
| | 315550 [phlip2005 gm] I illustrated that you augmented the "or" list from my first post.
| + 315536 [twarlick gma] So, it's a code-readability issue and not a functional or complexity
|   + 315554 [phlip2005 gm] 'for' is arguably more readable. And it's not a performance issue - I suspect
|   | + 315557 [fxn hashref.] I don't think the minimal editing distance between #each and #map and
|   | | 315582 [phlip2005 gm] You have probably never pair-programmed with me during a savage refactoring session.
|   | + 315601 [charles.nutt] For is generally faster because it doesn't instantiate a new scope for
|   | + 315656 [sylvain.joye] Nope. each { } needs one new scope for each iteration while "for ... in"
|   |   + 315662 [fxn hashref.] In what sense does #each create objects? Assuming a block with just
|   |   + 315670 [b.candler po] By 'scope' do you mean 'stack frame'?
|   |   | 315693 [sylvain.joye] Yes. Except that
|   |   | 315695 [b.candler po] OK, I see that certain objects are not yielded, including T_SCOPE.
|   |   | 315911 [namekuseijin] Come on!  Is it so hard to realize that foo.each {|i| ...} is used
|   |   + 315672 [b.candler po] P.S. Here's a simple experiment, and I can't see any of these
|   |     315690 [sylvain.joye] Thanks but nope...
|   + 315565 [ninja slapha] These things are not entirely separate -- readable code is more likely to b=
+ 315553 [joe talkhous] It's interesting that array access using 'each' seems to be much
| + 315555 [phlip2005 gm] Does 'for' reevaluate its range after each tick? That would give 'for' a single
| | + 315559 [joe talkhous] You can try my test if you like.  I haven't checked it carefully.  =20
| | | + 315563 [fxn hashref.] T24gU3VuLCBTZXAgMjEsIDIwMDggYXQgMTI6MjYgQU0sIEpvZSBXw7ZsZmVsIDxqb2VAdGFsa2hv
| | | + 315564 [phlip2005 gm] I just experimented with 'for' and found it does not reevaluate its header each
| | | | + 315566 [fxn hashref.] T24gU3VuLCBTZXAgMjEsIDIwMDggYXQgMTI6NTIgQU0sIFBobGlwIDxwaGxpcDIwMDVAZ21haWwu
| | | | + 315567 [joe talkhous] Philip, I hadn't thought about your refactoring arguments.  I think =20
| | | |   315569 [fxn hashref.] You cannot rationalize a convention. Conventions happen, it is
| | | + 315602 [charles.nutt] But=20
| | |   315604 [joe talkhous] It's hard to predict performance in advance.  I think it's gotten =20
| | + 315584 [kbloom gmail] class Numeric
| + 315572 [why ruby-lan] Actually for loops are faster than `each`.  Since it doesn't
|   + 315574 [phlip2005 gm] Tx that's why I said 'for' can be more readable - even though I know nobody in
|   | 315667 [b.candler po] FWIW, the skeleton code which Rails generates uses the 'for' loop.
|   + 315576 [joe talkhous] charset=US-ASCII;
|     315599 [fxn hashref.] T24gU3VuLCBTZXAgMjEsIDIwMDggYXQgMjo1NCBBTSwgSm9lIFfDtmxmZWwgPGpvZUB0YWxraG91
+ 316087 [tucano recip] external or internal iterators

^ ThreadError: not owner
315531 [tpreal gmail] some old Windows One-Click Installer (now I don't know which version it
+ 315626 [vikkous gmai] Hmmm. I'm guessing that the ability to use a Mutex like a semaphore
| 315658 [tpreal gmail] Thanks for your responses.
| + 315660 [tpreal gmail] I'm sorry, my mistake. It will work no matter which happens first, as
| + 315663 [vikkous gmai] Really? After I looked into it, it seemed like maybe you could use a
|   315665 [tpreal gmail] As far as I know, the only difference between Mutex and Monitor in Ruby
+ 315654 [b.candler po] Would a Monitor do the job?
+ 315666 [b.candler po] Hmm, so you just need some way for the thread to signal that it has
  315671 [tpreal gmail] Thanks! That seems to be a good solution.
  315673 [b.candler po] That's what it is - a first-in, first-out queue. However it is nicely

^ Download a file from a site that needs authentication
315541 [pteale gmail] I have a membership to a web site that needs authentication before you
315664 [pteale gmail] No one ever needed to logon to a web site using basic http
+ 315668 [billk cts.co] Regards,
+ 315669 [phasis gmail] require 'open-uri'

^ Explaination of a bit of code
315542 [davidinanhui] Hey, another question.  This is kinda putting several concepts together
+ 315545 [sepp2k googl] each is supposed to whatever it has been defined to do. It's not special.
+ 315548 [davidinanhui] And while we are at little samples of code...
| 315551 [sepp2k googl] Yes.
| 315561 [davidinanhui] Thanks all.
| 315614 [b.candler po] The throw has to be *inside* a corresponding catch block, and it drops
+ 315549 [tpreal gmail] The method each is working just as you programme it. For Arrays (and

^ Grouping array elements while preserving order?
315546 [designmc gma] I've run into a number of situations where I need to group an array
315579 [w_a_x_man ya] class Array
315643 [shortcutter ] You're loosing keys there.  Maybe rather

^ [ANN] mechanize 0.8.0 Released
315568 [aaron tender] mechanize version 0.8.0 has been released!

^ hi everybody
315573 [rajko.mackic] Bosnia and Herzegovina, also known as Cvrcko
315575 [jdoe usenetl] Another glaring example of Google Groups massively negative
+ 315600 [steamer soni] "Steamboat Ed" Haas         :  "Hold on! we're passing
+ 315628 [transfire gm] Please, that is way over the top. You act like spam had never been

^ [ANN] Terminator 0.4.4
315577 [raasdnil gma] NAME

^ ruby gem to watch file
315578 [junkone1 gma] is there any gem that will watch for a file and if the file exists, or
315581 [tim.pease gm] Take a look at directory_watcher. It works on all platforms.
315701 [junkone1 gma] i tried as you suggested and have a few q.
315740 [s.korteling ] Hm, I can't get it to work either (on WinXP).
315780 [tim.pease gm] The whole program is blocking on the "gets".

^ Help with MacRuby and NSError** args
315596 [has.temp3 vi] Wondering how to get an NSError instance back from an ObjC method, in

^ CSV Goes M17n
315606 [james graypr] I've just finished an extensive reworking of the standard CSV library =20=
315707 [jeremy hineg] Awesome James!

^ comparison of Array with Array failed
315608 [tefflox gmai] I am passing this hash to a method to sort it, which works in irb but in
315609 [tpreal gmail] You are creating one array and assigning references to it to all your
315610 [tefflox gmai] I fixed the problem by passing a ternary operator to the assignments in
315611 [tefflox gmai] **your solution _solves_ the problem :-)

^ Instance variable acting like class variable?
315612 [johnma muohi] I've written a Node class that I'm using to write a few programs for in
+ 315615 [tpreal gmail] 1. The method << is an in-place modifier, you don't have to assign the
| 315617 [johnma muohi] I do have an array of Node objects, but I'm calling Node.new(args) each
+ 315624 [rick.denatal] @collected = (parent.nil?) ? [] : parent.collected.to_a
  315625 [johnma muohi] Rick,

^ Iterating through a string
315619 [jody.glidden] If I try the following...
+ 315620 [stefano.croc] String#split doesn't take a block, so that the block you pass to it is
| 315621 [jody.glidden] Ahh, I understand.  I must have missed the map/collect functionality.
| 315623 [s.korteling ] "I love guitar playing".split.each{|s| s.capitalize}.join(" ")
| 315653 [b.candler po] FYI, there's another pattern for "building the result" without the
+ 315627 [w_a_x_man ya] "I love guitar playing".gsub( /\S+/ ){|s| s.capitalize}
  + 315629 [rhkramer gma] Just for kicks, I managed to modify your approach to make it work (at
  + 315630 [botpena gmai] it would be great if #split accept a block, too
    315634 [stephen.celi] When ".map" is only another 4 characters, is it worth the pollution?
    315635 [botp delmont] # When ".map" is only another 4 characters, is it worth the pollution?

^ synchronize clock
315631 [junkone1 gma] is there any gem or library that would synchronise the xp clock with
315636 [phasis gmail] system("CMD /C NET TIME /SETSNTP:clock.isc.org & NET STOP W32TIME &

^ extract contents from pdf (pdf reader)
315639 [rajmohan mot] charset="us-ascii"
315694 [gregory.t.br] AFAIK PDF::Reader is the only serious option, and I see you've posted

^ Using Ruby as a scripting language within a C app
315640 [phrexianreap] I'm working on building a MUD, and I would like to be able to use Ruby
+ 315652 [b.candler po] Scroll down to "A Sponsored Dragon-Slaying" and enjoy.
| 315730 [kbloom gmail] Aside from being entertaining, what does this have to do with embedding
| 315731 [b.candler po] OK, I missed the smiley, <aside> tag etc.
| 315749 [phrexianreap] I'm starting off of an existing codebase, and trying to rewrite it into
| 315799 [shevegen lin] I am not the original author, but personally I always enjoy it when
| 315816 [ninja slapha] If there's an easy way to do what I want to do, I'd like to know it.
+ 315657 [huw darkneon] If you are using C/C++ (or indeed C#) in .NET you can embed Ruby

^ about regexp...
315644 [kdream95 gme] => "a 2 b"
+ 315649 [shortcutter ] Because neither " *" nor "* " are word boundaries.
+ 315650 [patrick.he g] /*/ is a non-word character.

^ Ruby GSUB question
315645 [binh pigbaby] <a href="#" onclick="new
315647 [botp delmont] RnJvbTogQmluaCBMeSBbbWFpbHRvOmJpbmhAcGlnYmFieS5uZXRdIA0KIyA8YSBocmVmPSIjIiBv
315648 [etaern yahoo] I understand the first \\ , as it will produce \ when it's displayed ,
315651 [b.candler po] Inside a single- or double-quoted string, \ is an escape character, and
315655 [botp delmont] RnJvbTogQnJpYW4gQ2FuZGxlciBbbWFpbHRvOmIuY2FuZGxlckBwb2JveC5jb21dIA0KIy4uLg0K
315659 [b.candler po] Interesting; I wasn't aware those worked inside the replacement string,
315661 [botp delmont] RnJvbTogQnJpYW4gQ2FuZGxlciBbbWFpbHRvOmIuY2FuZGxlckBwb2JveC5jb21dIA0KIyAuLmVu

^ hornygamer - for Free
315674 [sashlnsolomo] hornygamer

^ www efukt - for Free
315675 [earlsoliloqu] www efukt

^ spankwire - for Free
315676 [earlsoliloqu] spankwire

^ adultloop - for Free
315677 [earlsoliloqu] adultloop

^ Database Query
315679 [jon.erik.joh] Im trying to fetch a value from a field in our database, using this
+ 315680 [b.candler po] You'll need to provide more info first.
+ 315741 [caduceass gm] You specify here your table and fields, but no mention of the

^ Merging two arrays
315683 [kylejc gmx.n] products = Array.new
+ 315686 [Rob AgileCon] products.collect! {|p| p << links.assoc(p[1])[1] }
+ 315687 [jgabrielygal] irb(main):017:0> products.map {|x| x + links.assoc(x[1])[1..-1]}
+ 315689 [b.candler po] Are these two arrays already aligned and of the same size? If so just
+ 315692 [h.bekel goog] products.each do |product|

^ Good docs & tutorials for ruby cairo?
315691 [kyleaschmitt] Are there good documents and tutorials for ruby cairo?
315764 [tucano recip] the documentation (API reference) of rcairo is here: http://
+ 316254 [mo_mail ongh] Kyle,
+ 316446 [kou cozmixng] I want people who write documents of rcairo in English.
  316465 [mo_mail ongh] I would like to help although I'm busy.  I use Ruby and I use Cairo -
  316559 [kou cozmixng] Great!!!

^ File path operations?
315702 [kenneth.m.mc] Ruby has an abstract File/path type which is nice (I'm mainly a Python
315703 [shortcutter ] irb(main):001:0> require 'pathname'
+ 315705 [kenneth.m.mc] Thanks!
+ 315717 [mike.gold.44] I went for years without knowing about Pathname.  It seems rather

^ Re: [JOB] Softwareentwickler/-in, prometheus-Bildarchiv, Universitt zu Kln
315706 [ jupp gmx.de] Where precisely are German language skills listed as a job requirement? As
316331 [jens.wille u] First, thanks, Rob, for supporting posts like mine and for pointing

^ how to extract something in between a pattern
315711 [happy.go.luc] I'm not very familiar with ruby's library. I wonder if there a method
+ 315716 [chen_li3 yah] irb(main):001:0> require 'hpricot'
| 315718 [todb planb-s] Ya, in this case (HTML/XML), Hpricot is your best bet.
+ 315929 [suroot57 gma] (a.split %r{</?p>})[1]
  315943 [ittay.dror g] irb(main):001:0> a = 'aabbcc<p>ccddee</p>'
  316265 [patrick.he g] irb(main):004:0> a = 'aabbcc<p>ccddee</p>ccc<p>eee</p>'
threads.html
top