189446-190050
189219-199842 subjects 189653-191030
^ [ANN] Instant Rails 1.3a -- bug fix release
189446 [ml.chibbs gm] It turns out the native C MySQL driver is causing segfaults (at least on
^ Symbol#to_proc is just so beautiful
189448 [transfire gm] [1,2,3].all.positive?
189453 [florgro gmai] ...
189492 [hal9000 hype] I dislike junctions with a passion. Just
189501 [florgro gmai] Tsktsktsk. :)
^ Is there an "in" operator in ruby ?
189451 [transfire gm] @test=[2,4,6,8]
^ Database re-structuring
189454 [dishkuvek 0x] I've got an older mysql database, one table, dumped into a SQL file.
+ 189469 [leavengood g] If the dumped SQL is fairly simple and regular, I'd just write a
| 189533 [zdennis mkte] Depending on how big the table was, you could do this all from within a
| 189535 [zdennis mkte] Actually it has nothing to do with big... it just has to do with writing
+ 189557 [shortcutter ] Since mysql 5 you can also write a stored procedure that will read the
^ [OT] Respect (was Re: Symbol#to_proc is just so beautiful)
189457 [james graypr] That's ironic. You show a complete lack of regard for the (likely
^ RubyQuiz?
189460 [gregcoit gma] Am new to the list (and ruby). I found the list when someone
189464 [lyle.johnson] Yes, the quiz is still active! As you no doubt saw when you visited
189465 [gregcoit gma] Thanks for the answer!
^ Gateway (was Re: Symbol#to_proc is just so beautiful)
189466 [rossrt rosco] I have to admit I don't know much about this subject, but it seems to me
+ 189477 [drbrain segm] The last thing I need is two copies of every message in my mailbox.
| + 189478 [rossrt rosco] I don't follow - does this happen when the gateway is up? A short think
| | 189485 [drbrain segm] How will you make sure your temporary gateway will stop when the
| | 189491 [rossrt rosco] I guess a combination of communication and ctrl-c ... I've not thought a
| + 189480 [leavengood g] I'm normally one to promote free speech, but I have to say Eric makes
| | + 189484 [transfire gm] Eric and Ryan,
| | | 189496 [drbrain segm] Google groups requires an internet connection. Google groups doesn't
| | + 189487 [drbrain segm] I'm not saying either the newsgroup, mailing list or forum should go
| | + 189506 [jmg3000 gmai] +1
| | + 189515 [james_b neur] Interesting. I'm leery of adopting what may amount to (quasi-) elitists
| | 189516 [transfire gm] You guys have no sympathy for goodness sake! You want to dis the
| | + 189522 [gregory.t.br] I don't think anyone is saying comp.lang.ruby should go away. I used
| | | 189524 [jmg3000 gmai] Python does the same thing with comp.lang.python and the python-list ML.
| | | 189527 [leavengood g] I've never been a Perler myself, but hearing about this makes me want
| | | + 189530 [gregory.t.br] As much as the idea is initially appealing, I find it kind of elitist.
| | | | 189537 [logancapaldo] I'm not really a perler either but I have browsed perlmonks
| | | | 189538 [gregory.t.br] I just think that if ranking is to be done at all, it should be by an
| | | | 189539 [james_b neur] What might be handy is some metadata. Not simple ranking (which, as
| | | + 189532 [dblack wobbl] I've always hated ranking people and creating hierarchies in online
| | | + 189534 [jmg3000 gmai] I'd say the answer is "no", it would not be terrible. Trouble is, the
| | | 189536 [gregory.t.br] I hope you are joking.
| | + 189529 [kevin.jackso] I'm a nuby and I enjoy responding to nuby questions that I can answer -
| + 189503 [gregory.t.br] +1 for dropping the ruby forum gateway.
| + 189540 [agorilla gma] I'm _almost_ there, but not quite. I think the biggest problem is
| | + 189543 [drbrain segm] Yes, please!
| | + 189544 [jmg3000 gmai] 1. private: A nice cozy forum. Your comments go onto one site, and you
| + 190039 [Bil.Kleb nas] I don't. The only way I manage to continue following Ruby
+ 189498 [hal9000 hype] The first subtlety is that you have to avoid infinite recursion by
^ Ruby subversion bindings
189471 [ruby-list sp] Dear all,
189490 [kou cozmixng] In <4446A6C5.7070502@spam.ennes.net>
189608 [ruby-list sp] Thanks a lot Kou!
^ Learning Ruby
189472 [demon1312 ya] Okay I've went through Chris Pines tutorial on
+ 189476 [jeppe88 gmai] Try "programming ruby". The first edition of it can be accessed for free,
+ 189481 [dave burt.id] What don't you understand?
| + 189482 [nathan.olber] It can be hard to notice the nice little things until you actually
| + 189521 [demon1312 ya] Well I see something like,
| + 189528 [achilles.lee] I don't know the syntax.But I think it is same as
| + 189542 [dave burt.id] I assume you understand this from Pine's LtP.
| 189553 [sander.land ] yes it can, using the extensions gem and require 'extensions/symbol'
+ 189488 [james_b neur] James Britt
+ 189489 [james_b neur] James Britt
^ Building Strings
189473 [will.merydit] I need to build the DOM id for my RJS template using an id passed to the
189474 [halostatue g] page.replace_html "list#{id}", :partial => "show_new_list"
189479 [will.merydit] That worked thanks! I need to get a good Ruby primer. I'm a java
189483 [joshknowles ] ...
^ Array#each Looping Gotcha
189486 [nathan.olber] I think I've found a gotcha. Really, it should be expected behavior, but
+ 189493 [halostatue g] Except the reference/value thing.
+ 189495 [matz ruby-la] I'm not sure what you mean by the word "right" here. It's ok for you
| 189502 [nathan.olber] Though I was confused for half of the day today, I have to admit that
| 189526 [dblack wobbl] Also, don't forget (among reasons deleting from an array during an
+ 189551 [ peter rt.sk] Wow, in Java you this would throw ConcurrentModificationException (i.e.
189558 [shortcutter ] Std. collections all support remove().
189562 [ peter rt.sk] I stand corrected. I had so many problems with similar
^ Error Compiling Ruby 1.8.4 on AIX 5.2
189494 [Randy.Weyten] charset="us-ascii"
189686 [gibbons sppc] <....snip...>
189688 [daniels pron] include the errors that I hit along the way, and the changes that I had
189806 [gibbons sppc] We must have been trying to get it to work on AIX at about the same
^ [OT] Snoopy ~~~ Re: Symbol#to_proc is just so beautiful
189504 [vjoel path.b] This is way OT, but I can't actually remember Snoopy ever swearing. Yet
189507 [wilsonb gmai] That's how Snoopy's speech was depicted in the cartoons (not the comic strips).
189510 [vjoel path.b] Ah... the parallel universe of television ;)
^ Zero is true, but it isn't
189505 [johnatl mac.] puts "It's true" if 0
+ 189508 [Gennady.Byst] If only you had any idea of how many times this was raised up and
| 189513 [johnatl mac.] I'll try that when the server is back up.
+ 189511 [matthew.moss] 0 is not equal to true, but is implicitly converted to true.
+ 189525 [dblack wobbl] Every object has a Boolean value of true or false, separately from the
+ 189547 [fxn hashref.] You are seeing a particular case of the fact that the boolean
+ 189550 [pertl gmx.or] $ irb
| + 189565 [halostatue g] And the argument against 0 being false is shell scripts, where 0 is true.
| | 190048 [johnatl mac.] Perhaps 0 in this context is SUCCESS, and anything else is an error?
| + 190050 [johnatl mac.] Thanks to all who responded to my query.
+ 189621 [logancapaldo] Wouldn't it be neat if true === worked with anything that is
189632 [robert.dober] You saved my day, I was really disappointed when I found that this code wa=
189663 [logancapaldo] Sorry if this is offensive, but since text doesn't really transmit
189696 [robert.dober] That is why I am never sarcastic unless with people who know me, see how
^ Re: Respect (was Re: Symbol#to_proc is just so beautiful)
189514 [transfire gm] I don't think so. Some of us depend on that Gateway. I've been patient
189517 [drbrain segm] Perhaps you should send the gateway admin a reasonable donation for
^ MP3 download
189518 [qiuxiaofeng ] require 'net/http'
189519 [logancapaldo] Judging by the fact you mentioned windows, I'm going to suggest you
^ RE : MP3 download
189520 [guillaume.be] f = File.new("1.mp3", "wb")
189523 [qiuxiaofeng ] oh, yes, File.new("1.mp3","wb"), it's OK now.
189531 [gregory.t.br] That is always something good to hear! :)
^ Helper for method pipelines?
189541 [tom moertel.] Here is a minor coding problem that I suspect is common enough to have
189546 [farrel.lifso] Any particular reason you just can't write it like
189639 [tom moertel.] Yes, because it obscures the flow of the data, especially in more
^ [ANN] vim 7 ruby omni-complete 0.4
189545 [segfault has] Once again after some work and outside contribution we have another release
^ Begining RRobots bot
189548 [gregcoit gma] I'm new to ruby and OO programming (been writing procedural perl for a
^ Write Out Then Read In Hash of Two-element Arrays
189552 [david.bailey] Kind All,
+ 189554 [ peter rt.sk] David,
| + 189555 [ peter rt.sk] Sorry,
| + 189627 [david.bailey] Peter,
| 189672 [botp delmont] # Uh, how ro I find documentation about unit test?
+ 189556 [farrel.lifso] Instead of writing your own de/serialization code why not give
+ 189560 [simon.kroege] Well,
| + 189561 [botp delmont] # fileOut.puts(histHash[i])
| | 189624 [david.bailey] PeƱa,
| + 189581 [david.bailey] Simon,
| + 189583 [ara.t.howard] it's a serialization format, not a metalanguage. the thing is it's a
| | 189600 [david.bailey] Yes, thank you for jogging my memory! Now that yo mention it, I do
| + 189597 [david.bailey] Uh, I stand corrected. I do actually recall reading about yaml. It was
+ 189626 [david.bailey] Farrel,
^ [ANN] Ruby/DLX 0.8.2 Released
189559 [eleotlecram ] Ruby/DLX 0.8.2 is now available for download from rubyforge.org. (Links
^ Re: vim 7 ruby omni-complete 0.4
189563 [minkoo.seo g] Thank you for the really nice software. I've downloaded rubycomplete
189568 [dougkearns g] Coming later today or tomorrow.
189641 [minkoo.seo g] I've installed vim7.0e and rubycomplete.rb. In GVIM on Windows XP,
+ 189642 [minkoo.seo g] Sorry. I forgot to mention that this error raises on Linux only.
| 189689 [alexandru gl] Linux version here as well, your code works, so it's not Linux
+ 189646 [reid.thompso] make sure that the downloaded files do not have CRLF line endings
189673 [segfault has] I updated the newer files on my site to use unix line endings (I hope).
^ Re: RSA Encryption Decryption
189569 [xrfang hotma] I am sorry that I do not know the "PEM" format. However, it is very easy to
189622 [Alan.Fritz y] Shannon,
189751 [Alan.Fritz y] Depending on how you launch Openssl, the output may be in non-HEX.
^ [SUMMARY] Refactoring (#75)
189571 [james graypr] Hopefully this quiz caused some of us to read Martin Fowler's Refactoring. I
189580 [Stephen.L.Mo] James,
+ 189585 [wilsonb gmai] This is from memory, because I don't have easy access to the code at the moment.
+ 189591 [pat.eyler gm] I'm not sure what James had in mind, but I think this works well as an
| 189615 [james graypr] [snip example]
+ 189594 [leavengood g] Let's say you have a class for managing a list of music. Each item in
189599 [matthew.moss] Rather than mucking around with method_missing, let's just extend the
189625 [logancapaldo] I would rather have something like
189629 [leavengood g] That's what I get for trying to make up an example ;)
189644 [Stephen.L.Mo] Great example, thanks. See I would have had navigate_to take a screen
189645 [Stephen.L.Mo] Very sweet, thanks! I'm catching on now. These examples really help.
^ Questions about copying using FileUtils
189573 [pbailey bna.] Can someone please help me with the following script? It doesn't work,
+ 189575 [decoux moulo] Why do you use " here ? ruby search the file "psfile" and not the name
| 189578 [pbailey bna.] Thanks, Guy. I re-did that line, but get the same results.
+ 189576 [rmagick gmai] psfile is a variable and should not be quoted. Use
+ 189577 [decoux moulo] There is another problem, you have removed the suffix .ps with
189579 [pbailey bna.] Now that worked! Thank you!
189674 [botp delmont] # As a related question, do all iterators, like my "each"
^ Hi List
189582 [transfire gm] Can you hear me now?
+ 189595 [leavengood g] Yes.
+ 189598 [daniel.schie] Nope. Sorry.
+ 189616 [dave.m email] Trans, sombody is fake-mailing you on ruby-talk !!!
^ Windows Client/Linux Server IDE for Ruby ?
189587 [byrnejb hart] I presently use ssh & vi to program in ruby/rails, typically from a
+ 189601 [phil hagelb.] I believe Emacs with Tramp will give you that capability, if vi hasn't
| 189634 [byrnejb hart] Having started with TECO (the pre-cambrian forebearer of EMACS) on a
| + 189640 [mtrier gmail] There's been a big thread on it the past couple of days.
| + 189649 [mental gmail] There is no funky autocompletion in textmate, afaik, beyond completion
| | 189657 [nathan.olber] I use Notepad2 or jEdit from WinSCP.
| + 189661 [phil hagelb.] Just think of it as an excuse to learn more Lisp! (That's a great
| 189733 [byrnejb hart] I choose not to comtemplate that possiblity. I am sure that you
+ 189623 [james_b neur] Can you mount the remote directory as a local drive (by whatever that
^ Getting Ruby 1.9
189588 [Daniel.Berge] I've fumbled around enough. How do I get the Ruby 1.9 source?
189589 [decoux moulo] Yes, link
189590 [Daniel.Berge] I only see the 1.8.x repo. How do I get 1.9? Or is HEAD the 1.9 repo?
189593 [decoux moulo] yes, it's 1.9
^ Converting IP range to array of IP's
189592 [krisleech in] I'm looking to convert an IP string (ranges, subnet masks or wild-carded
+ 189596 [pertl gmx.or] had some fun with that :-)
| 189660 [roys mindspr] Not to rain on your parade but I believe that range should include a few
+ 189602 [desmarm gmai] If we could turn back the clock 8 days or so I would invite you to join
+ 189603 [pbattley gma] def dq_to_int(dq) parts = dq.split('.').map{ |s| s.to_i }.reverse (0..3).inject(0){ |r,i| r + parts[i] * (0x100**i) }end
| 189604 [pertl gmx.or] the code it's broken / working fine depending on how you define a range...
| + 189610 [paul iconopl] That's CIDR.
| + 189643 [A.M.Gimblett] Yes they are. They might not be usable for hosts in the given
+ 189605 [aledonne.lis] Well, starting with ranges, we can make ruby ranges work just fine for
| 189607 [ara.t.howard] require 'rubygems'
+ 189611 [binary42 gma] Other's solutions should work great but just for fun and enlightenment
+ 189617 [binary42 gma] A few redundancies to fix (my original code didn't use map but a
+ 189655 [tom moertel.] sequence :: (Monad m) => [m a] -> m [a]
189662 [binary42 gma] Thanks. I was already aware of that but didn't think of naming my
^ NYC Ruby Job Fairµ¢pril 25th
189606 [zedshaw zeds] === NYC Ruby Job Fair -- April 25th
^ =?WINDOWS-1252?Q?Re:_NYC_Ruby_Job_Fair=8BApril_25th?=
189609 [leavengood g] Interesting idea. If there happens to be an overflow of
189612 [gregory.t.br] =?WINDOWS-1252?Q?Re:_NYC_Ruby_Job_Fair=8BApril_25th?=
189614 [jmg3000 gmai] =?WINDOWS-1252?Q?Re:_NYC_Ruby_Job_Fair=8BApril_25th?=
189619 [gregory.t.br] =?WINDOWS-1252?Q?Re:_NYC_Ruby_Job_Fair=8BApril_25th?=
189620 [gregory.t.br] =?WINDOWS-1252?Q?Re:_NYC_Ruby_Job_Fair=8BApril_25th?=
^ Re: NYC Ruby Job Fair April 25th
189613 [hopefulskept] DOH! Ruby-want-to gets no love in Lubbock Texas. :o) Bummer. Well,
^ Re: NYC Ruby Job =?windows-1252?Q?Fair=8BApril_25th?=
189618 [desmarm gmai] I guess this Stamford group thing slipped by me (and maybe all of the
^ net/http
189628 [blerloko hot] I can create a server in ruby...that server need listening in port 80
189630 [collinsj sea] Net/HTTP is for connecting to a server.
^ [OT] Re: net/http
189631 [tanner.burso] [off topic rant]]No offense to this poster whatsoever, but I knew from the
^ Ruby Don't E4X
189635 [transfire gm] I began work on an implementation of E4X for Ruby. I decided to tackle
189638 [Daniel.Berge] No. Ruby isn't ECMAScript. Trying to make it look exactly like ECMAScript
^ Segmentation Fault
189636 [CMcDevitt aa] charset="us-ascii"
189637 [Daniel.Berge] The OCI8 driver for Windows was built with VC++ 7. Curt's one-click installer
+ 189670 [ml.chibbs gm] I'm not ignoring you, but I hope someone can do this. I am so incredibly
+ 189684 [phasis68 hot] OK, Here is what you want.
189713 [Daniel.Berge] Excellent, thanks!
^ Refactoring my IPod
189647 [Stephen.L.Mo] I just bought an IPod and plan on burning my classical music collection
189991 [groups grand] If one were satisfied with a one-key sort, this would work. I, alas,
^ Optional Message Parameters?
189648 [nathan.olber] (Warning: Newbie Altert!)
+ 189650 [toalett gmai] def do_this( args )
| 189651 [nathan.olber] I understand that this will work, but seems so inelegant. Is it really
| 189654 [toalett gmai] def do_this( opt1, opt2="" )
+ 189652 [binary42 gma] This is usually a case where you either use * or a hash parameter. *
| 189656 [nathan.olber] *? I don't even know how I'd google that :-)
| 189659 [toalett gmai] def have_fun(*args)
+ 189892 [jmg3000 gmai] Nathan, looks like you're expecting Ruby to be like Python, but Ruby
threads.html
top