227110-229571

226892-228646 subjects 227285-320219

link_to_remote; how do I tweak the div to update?; Ajax on Rails
227110 [wozniak.dan@] I'm trying to update a specific div section by trying to add some
+ 227123 [drbrain@se m] You want the Rails mailing list.
+ 227125 [gilesb@gm il] You want the Rails list.

BackgrounDRb 0.2.1 Release
227117 [ezmobius@gm ] It's that time again friends. skaar has been at it again and has
227119 [gilesb@gm il] Wondering, anybody on here using this? I know somebody locally who is,

Re: [Rails] Re: [ANN] aws/s3 0.1.0 (initial release)
227130 [marcel@ve ni] Hey Shane,

Ruby PDQ?
227139 [djberg96@gm ] "Pretty Damn Quick" that appears to be used for systems performance
+ 227150 [znmeb@ce ma ] Funny you should mention PDQ and Ruby. One of the people I work with
| 227178 [djberg96@gm ] Yes, I figured someone might be interested in writing a Ruby/C
+ 229571 [ara.t.howard] sorry!  ;-)

Announcing Dhaka - A parser generator
227141 [mushfeq.khan] ...
227155 [robert.feldt] What kind of grammars can it generate parsers for? LALR, LR, any
227156 [robert.feldt] Ok, ok, I didn't read the intro well enough... :) Sorry, LALR it is.

Gem question: "win32" vs. "ruby"
227143 [cohen.jeff@g] Often when I install a new gem, or try to update a gem I already have,
227165 [jan.svitok@g] the difference is when the gem contains compiled extension. On other
227266 [cohen.jeff@g] Awesome... thanks Jan, that makes total sense now.

ruby editor
227144 [dilip.bvd@gm] please suggest me the good editor for ruby.
+ 227147 [james.britt@] Vi!
| 227148 [aotianlong@g] ...
+ 227151 [nospam@no it] This is like asking a group of strangers to tell you what kind of woman to
  227153 [twifkak@co c] "There are many types of people, and you haven't told us whether you're
  227184 [ruby@an hr p] } >This is like asking a group of strangers to tell you what kind of woman to

I'm a process-spawning idiot.
227154 [twifkak@co c] I'm looking for a method that, like Kernel#` and IO::popen, allows me to
227162 [nospam@no it] You want to what? You want to execute an arbitrary system command and
227164 [drbrain@se m] system 'command', 'arg with spaces' will execute correctly (ARGV[0]
227183 [twifkak@co c] Thanks!
+ 227186 [twifkak@co c] For reference's sake, I don't need fork. The same trick works with
| 227188 [ara.t.howard] this is an insanely bad idea: a cross platform way to hang you system.  try
| 227337 [twifkak@co c] well, then. no need to be curt about it. :P
+ 227187 [ara.t.howard] systemu.rb allows capture of stdout, stderr, and exit_status and specification

[ANN] google-checkout 0.1.0
227158 [1337p337@gm ] About

How to click on the select_list little drop down arrow
227159 [vikashkumar0] I am using Watir and ruby.

cidr.rb: port of Perl's Net::CIDR v0.11 available
227160 [jos@ca no k.] Not sure about the license. Hope this is useful to someone.
227166 [dave@bu t. d] Check the RAA (and Rubyforge).
+ 227207 [djberg96@gm ] Indeed, Pat talked to me about possibly including net-ping in the
| 227208 [pat.eyler@gm] ugh!  I hate ping.
| 227288 [dave@bu t. d] It sounds simple enough for a Ruby Quiz. Then we'd have not two, but a
| 227289 [james@gr yp ] I'm a huge fan of using the Ruby Quiz to improve libraries like
+ 227248 [jos@ca no k.] I'm aware of those but they lack some features the Perl version has. Notably
  227401 [djberg96@gm ] Well, there is PingExternal for ICMP support. ;)
  227412 [jos@ca no k.] Indeed.
  227448 [djberg96@gm ] Well, you could start by porting the ping_icmp() function from Ping.pm
  227642 [jos@ca no k.] I've made some progress; see attached. Let me know what you think.
  227644 [djberg96@gm ] Seems to work.  Mind if I include with the next release of net-ping
  227652 [jos@ca no k.] Of course, thanks Daniel.
  227657 [djberg96@gm ] Great, thanks.
  227659 [jos@ca no k.] I like this much better than the positional API that Perl uses here ("Is
  227737 [djberg96@gm ] Ok, I'll add those.  However, don't put too much stock in the duration.
  227761 [jos@ca no k.] True, but one would want the timing measurement to be done as close as

open classes, constructors and blocks
227167 [andrea.fazzi] class Foo
227168 [stefano.croc] When you call foo_initialize from initialize, you're calling a completely

returning Procs from methods?
227172 [gilesb@gm il] some_string.scan(/(whatever)/).each &do_stuff
+ 227174 [robert.feldt] sure
| + 227176 [gilesb@gm il] awesome! thank you.
| + 227177 [martindemell] lambda {|a| a+1} is the new "hello world" :)
+ 227175 [martindemell] Yes, but you still need to prefix it with a & when passing it to a
+ 227290 [GENIE@pr di ] The foo method returns the proc

[ANN] rc-rest 2.1.0 Released
227173 [drbrain@se m] rc-rest version 2.1.0 has been released!

OT: Licensing (was Re: Is ruby a viable corporate alternative?)
227181 [pat.eyler@gm] Funny, I get the protection that I want from the GPL (others might want
227204 [adrianh@qu e] Ditto.

Array#group_by
227182 [gareth.adams] I posted this on the Rails list, but then I realised it would make more sense
+ 227185 [ruby@an hr p] } I posted this on the Rails list, but then I realised it would make more sense
+ 227192 [bruno@ex el ] thanks for the tip. I have q question with do you use a ".dup" on the
| 227196 [ara.t.howard] words = %w( foo bar foobar )
| 227225 [louis.j.scor] If you don't care about duplicates, just use Set#classify.
| 227327 [vjoel@pa h. ] Why isn't there an Array#classify, which would return a hash of arrays,
| 227333 [louis.j.scor] Beats me =)  I'm not arguing against such a method; just pointing out
| 227348 [vjoel@pa h. ] I wasn't arguing either. I had forgotten about the useful Set#classify,
+ 227258 [daniel.schie] module Enumerable

PGConn - qutie a trivial question from a newb
227189 [nickblack1@g] ...
227293 [ara.t.howard] i'm not quite sure what you're asking, but i think exec returns rows.

`attr_accessor` and predicate/question mark methods.
227190 [a2800276@gm ] I just stumbled across this weird behaviour and I'm puzzled that I've
+ 227193 [dblack@wo bl] irb(main):002:0> class Test
| 227199 [a2800276@gm ] ruby 1.8.2 (2004-12-25) [i686-linux]
+ 227203 [djberg96@gm ] This was a bug that was "fixed" in a 1.8.5.  In 1.8.5 trying to do
  227291 [rsanheim@gm ] Hmm, I just went through the thread on ruby-core, and I didn't see
  227301 [djberg96@gm ] The current 1.8.5 behavior shows which direction Matz chose so, yes, I

how to input info in fields on a HTTP page?
227197 [ac251404@oh ] I am trying to figure out how to retrieve reports from a web server. The
227277 [ac251404@oh ] Okay I got some code working to login to the site Im interested in, but
227372 [paul@pl ys c] At the risk of incurring the ire of another Paul :-), you may be
227422 [nospam@no it] No chance of that -- I have no emotional investment in that issue. In fact I
227483 [fxir@ua .e u] Application Testing in Ruby" library, as of now it only works in IE. There

Splitting a CSV file into 40,000 line chunks
227198 [olsonas@gm i] All -
+ 227212 [neoneye@gm i] File.open("test", "w+") do |f|
| 227217 [chris.hulan@] Nice Simon
| 227222 [neoneye@gm i] I usually mess up in my loops like this :-(
+ 227213 [nospam@no it] Consider that the problem is one of counting input lines. In a case like
| 227215 [will@wi lj n] [will@localhost ~]$ cat csvfile.csv
| 227236 [nospam@no it] A plain-text CSV file uses linefeeds as record delimiters. A program that
| 227262 [james@gr yp ] Your opinion doesn't make you right on this one.  The CSV RFC clearly
| 227304 [nospam@no it] / ...
| + 227322 [efine145-nos] I am perplexed by CSV.open. In IO and File, open returns something that
| | + 227323 [james@gr yp ] Me too.  ;)
| | + 227433 [nospam@no it] / ...
| |   + 227450 [james@gr yp ] Now you're guilty of a new sin:  encouraging people to reinvent the
| |   | 227463 [nospam@no it] If the OP has a problem not easily solved with a library, then he isn't
| |   | 227497 [james@gr yp ] I sure hope they think that!  I know I do.
| |   | 227509 [nospam@no it] / ...
| |   + 227550 [efine145-nos] Ummm, I am not sure exactly how to interpret the above post, but I see
| |     227555 [nospam@no it] / ...
| + 227350 [znmeb@ce ma ] Hmmmm ... seems like a bunch of folks are going to a bunch of trouble
|   227363 [nospam@no it] I concur in all respects, based on direct experience.
+ 227214 [nicksieger@g] ...
| 227216 [james@gr yp ] Because the sample code is also moving the headers to the new files.
| 227228 [chris.hulan@] Also since he's feeding Excel this is most likely on Windows rather
| 227271 [Reid.Thompso] not a show stopper..
| 227273 [olsonas@gm i] Reid -
| 227278 [Reid.Thompso] rthompso@jhereg:~$ cat splitandhead
+ 227243 [james@gr yp ] gen_csv.rb      split_csv.rb
| 227255 [olsonas@gm i] Thanks for all the responses. As noted in a post above, I am trying to
| 227260 [james@gr yp ] CSV is known to be pretty slow, thus FasterCSV.  ;)
| 227265 [olsonas@gm i] James -
| + 227267 [james@gr yp ] Hmm, that's a good question.
| | + 227283 [Reid.Thompso] sort -n +4 out
| | + 227470 [louis.j.scor] Indeed.  That problem is difficult in general because you need to have
| |   227675 [GENIE@pr di ] Let's say you want to sort by the foo column
| |   227686 [olsonas@gm i] Thanks everyone for ALL the replys. Lots of interesting things to think
| + 227492 [thomasmuelle] You could import it into MS Access, sort there and export again. Maybe
|   227532 [jcribbs@ne p] I'm coming to this party really late, so I hope I don't come across as
|   227582 [jcribbs@ne p] I realized this morning that the solution I posted last night won't work
+ 227286 [GENIE@pr di ] I will ignore the CSV issue, not because it isn't important, but simply
+ 227303 [GENIE@pr di ] I will ignore the CSV issue, not because it isn't important, but simply

ruby gtk editable cells in treeview
227200 [rubyeu@ya oo] Could anyone put an example of how can you make editable the cells of a
227210 [o.renaud@la ] var_renderer = Gtk::CellRendererText.new
227326 [rubyeu@ya oo] That was what I needed, thank you very much

Should rake remove t.name on failed tasks?
227201 [jw@ra en in ] file "custom.iso" => "custom.dir" do |t|
227205 [djberg96@gm ] That seems a reasonable request.  Jim, is there any downside to this?

Wrong results using named arguments
227209 [jasonvogel@g] [a.rb]
+ 227220 [farrel.lifso] Ruby really doesn't have named arguments, rather it uses a hash to fake it.
+ 227234 [nospam@no it] a1 = A.new("id","test")
+ 227235 [invalid@gm .] # [...]

How to move from a Desktop / Development environment to 24/7 Onlilne Production?
227211 [jlhurtado@gm] Folks,
227221 [jgarvin.list] You'll likely get better answers on the Rails mailing list.
227276 [jameskilton@] ...

Need a range, but not getting it. . . .
227219 [pbailey@bn .] I'm going nuts with the simplest stuff here. I just want to take in
+ 227223 [jgarvin.list] Try...
| + 227230 [pbailey@bn .] Cool. That worked, Jon. Thanks. I don't quite understand it, though. I
| | 227244 [nospam@no it] Some of the advice offered by Mr. Garvin was in error.
| + 227240 [nospam@no it] This collapses the array "ARGV" into a single string. Not a good idea if
|   227250 [rimantas@gm ] => ["im123000-im123006"]
|   + 227252 [pbailey@bn .] Thanks. But, I'm trying to design this script for users to put in
|   | + 227299 [nospam@no it] / ...
|   | + 227328 [Paul.vanDels] I had a similar need recently in that I wanted to specify ranges and individual numbers. I
|   + 227298 [nospam@no it] Because the original example used a string, and yours uses an array, it is
|     227309 [ara.t.howard] i wounn't quite say that.  mmap, for example, simply does some pointer tricks
|     227317 [nospam@no it] Okay, I agree, but I limited my remark to a string object getting ".to_s"
|     227321 [ara.t.howard] indeed.  i've been bitten the few times it hasn't though!  ;-)
+ 227229 [neoneye@gm i] puts ARGV.to_s.gsub(/\-/, '..')
| + 227238 [pbailey@bn .] Yup. That certainly works, too. And, that's really simple. I guess I
| | 227245 [nospam@no it] And it is wrong. "ARGV.to_s" collapses an array into a single string. If you
| | 227249 [pbailey@bn .] files = ARGV
| | 227295 [nospam@no it] / ...
| | + 227307 [GENIE@pr di ] Why use gsub! at all?
| | | + 227311 [nospam@no it] The OP is learning Ruby, he wants the string in its changed form for later
| | | + 227421 [pbailey@bn .] Thanks. Yeh, I can do a "puts," but, I can't just change the silly hypen
| | |   227442 [stefano.croc] The point is to use puts, it is to use gsub instead of gsub!, which I see you
| | + 227420 [pbailey@bn .] I ran it again, too, and, I still get the "can't modify frozen string
| |   227447 [nospam@no it] / ...
| |   227456 [pbailey@bn .] That did it! Here's what I did. I need to not just turn the hyphen into
| |   227467 [nospam@no it] / ...
| + 227242 [nospam@no it] Not if there is more than one command-line argument. In such a case,
+ 227232 [nospam@no it] files = ARGV[0]
| 227241 [pbailey@bn .] Yes, there may be more than one argument, and, it won't be consistent as
| 227297 [nospam@no it] / ...
+ 227233 [chris.hulan@] You need
+ 227237 [shortcutter@] If you have multiple args, you can do
  227239 [shortcutter@] Even more onelinerish

Why doesn't Timeout work with String#=~
227226 [Rob@Ag le on] ...
227359 [drbrain@se m] Timeout uses threads and threads can only be switched when evaluating

Re: [OT] Simple screen scraper using scrAPI
227227 [nospam@no it] Ha! A reference to a different era, a distant voice. :)
227381 [user@do ai .] We should not forget these times (and I didn't lived the 70's - that was
227425 [nospam@no it] / ...

ruby profile gave different result in Windows and Linux
227231 [luan_n_nguye] I am using "ruby -r profile prog" for the same program between Windows and
+ 227253 [jan.svitok@g] You are using gems on windows. compare the function lists. Set RUBYOPT
+ 227256 [wilsonb@gm i] Make sure your RUBYOPT environment variable is the same on both

[ANN] Elif 0.1.0 Released
227247 [james@gr yp ] Elif 0.1.0 Released

Can Logger log simultaneously to a file and STDOUT?
227251 [damphyr@fr e] Can I have a Logger instance that logs both to a file and to STDOUT.
227269 [keith@au io ] Here's my tiny little modification to Logger that does that (though I

Ruby on Rails Developer in SFO
227254 [binimathew@g] I have seen your resume on Dice. We have an opening with our client for
227261 [matt@te hn r] ruby-talk has a resume on Dice?  Wow.
227274 [michael.bevi] ...

[ANN] hoe 1.1.5 Released
227263 [drbrain@se m] hoe version 1.1.5 has been released!

One field maintaining (boolean) state of multiple items
227264 [wmwilson01@g] I have a friend who posed a question to me about how to maintain the
227294 [nospam@no it] v = 15
227315 [vjoel@pa h. ] irb(main):003:0> v = 15; (0..7).map {|i| v[i]}

Can't install win32-service on winxp
227268 [cohen.jeff@g] I'm trying to setup Ruby and some gems on a clean WinXP SP2 box, and I
227272 [djberg96@gm ] You need a C compiler.  You have one installed, right?
227480 [dave@pe ia s] I'm having the same problem as Jeff. I tried your solution, and now
227649 [djberg96@gm ] If you've got the shared object installed, you've got win32-service
227697 [dave@pe ia s] For some reason it's still now working for me.
227905 [djberg96@gm ] Then say 'N'.  You've already got it.
227966 [dave@pe ia s] I say N, it says required dependency win32-service not installed and
227972 [djberg96@gm ] Something's wrong then.  If win32-service is installed, the gem install
+ 228056 [dave@pe ia s] Yes, I don't have a C compiler. Is there one you recommend?
+ 228061 [cohen.jeff@g] That would be great... please do so if possible. :-)
  + 228232 [adam.blum@gm] Is the gem available in binary form at all?   The compile fails for me
  + 228331 [djberg96@gm ] Alright people, listen up.  There are now two gems for win32-service.
    228417 [dave@pe ia s] Friggn schweet, Dan.

[ANN] Samizdat 0.6.0 is released
227279 [angdraug@gm ] What is Samizdat?

creating directory "http://example.com"
227282 [steve@fo wo ] How do I create a directory 'http://example.com' without it getting
227292 [nospam@no it] Very simply, you can't. That is an URL, not a directory path.
227296 [steve@fo wo ] Hmm, ok then.  How could I strip http:// from that string?
+ 227306 [nospam@no it] string.sub!(%r{http://},"")
+ 227308 [james.britt@] url = 'http://example.com'
  227332 [steve@fo wo ] Interesting.  Newb Q, I'm sure, but when I put that in a while loop I
  + 227335 [tdenkinger@g] ...
  | 227341 [steve@fo wo ] Yes. Re-evaluating my assumptions....
  + 227340 [nospam@no it] / ...
  | 227343 [steve@fo wo ] res = dbh.query("Select url FROM sites")
  | 227344 [steve@fo wo ] I thought it was array of strings & looks like it to me??
  | 227362 [nospam@no it] Well, it's easy enough to find out.
  | 227384 [steve@fo wo ] Array
  | 227389 [twifkak@co c] All right. Now change "puts url.class" to "p url" to figure out what you
  | 227453 [steve@fo wo ] url = row[0] fixed that right up.
  + 227346 [dblack@wo bl] It sounds like you've got something other than strings -- or at least
threads.html
top