215300-321072 subjects 215730-242563
How to Traverse a Directory
215540 [none@no e. o] def traverse(root)
+ 215546 [shevegen@li ] Cant really help you but just want to say that
+ 215547 [pletisan.lis] <pre> def get_entries(path) dir_entries = nil begin Dir.chdir(path) do # get entries in this directory dir_entries = Dir.entries(path) end rescue SystemCallError @flash[:notice] = "No such path!" redirect_to :controller => 'explorer', :action => 'index' end dir_entries unless dir_entries == nil end</pre>
+ 215549 [MonkeeSage@g] You can use Dir #, #glob, or #entries also. If you use a glob or the
| + 215551 [MonkeeSage@g] puts file = File.join(root, file) # assignment returns its value
| + 215559 [none@no e. o] Thanks for all the help!
| + 215634 [none@no e. o] Good point - perhaps http://www.ruby-doc.org/core/classes/Find.html should be fixed ;-)
+ 215554 [shortcutter@] Like this?
pair programming editor
215541 [marinho.tobo] Sorry, this might be a little bit off topic....
+ 215542 [foamdino@gm ] It requires GTK, so it's cross-platform, although a bit of a pain for
+ 215748 [hal9000@hy e] This feature has been talked about for years for FreeRIDE.
Ruby-gnome/gtk and Positioning?
215544 [shevegen@li ] Not sure if this is the proper place to ask for a ruby-gtk/gnome
+ 215621 [nospam@no it] I apologize for what appears to be a digression, but I have been having
+ 215724 [logancapaldo] You are asking the wrong layer. The window manager has the final say in
ruby spot it ....
215545 [marinho.tobo] I follow the threads here on the list, and i read some of the questions and answers, but most of them seem to be pretty complicated (Q&A...). Okay, I must admit, I am quite new to ruby (well not soo quite ;) ) and to programming. But i find it interesting to read other noob questions (some of them i understand, some i could answer , most of the time they are already answered..) just for learning reasons.
+ 215550 [a2800276@gm ] What sort of motivation would a "professional" have to go to a
+ 215558 [shortcutter@] There is already the forum which IIRC is targeted at the same audience.
215561 [marinho.tobo] I guess, that right now, the motivation would be the same like answering such questions here. But maybe i can find some others ... ;) But the main idea is, that other beginners correct them and learn from the errors.
+ 215617 [nospam@no it] Basically a good idea, but there are lots of beginner threads here, and just
| 215766 [a2800276@gm ] I believe it's a "tragedy of the commons" type problem. The
| 215803 [james@gr yp ] Pat Eyler and I were discussing this yesterday.
+ 215787 [garbagecat10] ...
Test::Unit and class attributes
215555 [aidy.rutter@] I have a test class the inherits from Test::Unit::TestCase.
215573 [chrisjroos@g] Yup.
London Startup Looking for Ruby on Rails Developer
215557 [henry@li ec ] We are looking for a UK based ruby on rails developer, (preferably
+ 215560 [foamdino@gm ] Ok, I'm interested, but I'm not based in London - does that discount me?
| 215618 [nospam@no it] No problem, but, wherever you are, you will have to agree to a virtual tea
+ 215562 [djberg96@gm ] Be sure to post this to jobs.rubynow.com (with a fuller description) as
+ 215713 [snail@ob me ] Henners <email@example.com> writes
215721 [nepentherepr] When you find yourself sitting around with some smart people and a
215725 [snail@ob me ] <firstname.lastname@example.org> writes
[ANN] Dr Nic”Ēs Magic Models 0.8 - Validate Anything
215565 [drnicwilliam] In the first run of the sell-out Magic Models - ???I can???t believe its an
clicking web page tab
215566 [all@it ia t.] i have a tab on a web page that i want watir/ruby to click.
+ 215817 [alex_f_il@ho] You can try SWExplorerAutomation (SWEA) from
+ 216440 [bpettichord@] ie.frame(:id, 'topMenu').div(:id, 'header').click
ruby/win32ole Excel Move problem
215571 [craig.m.mora] I have been trying to implement this Excel subroutine in Ruby, but am
+ 215614 [nospam@no it] So where's your Ruby code? That will help us help you.
| 215646 [mguterl@gm i] ...
+ 215641 [david.mullet] Regarding moving the worksheet, this does the trick for me...
215662 [craig.m.mora] mully, thanks for the kickstart. You had the right answer. Here it is
215679 [nospam@no it] If there are only a few worksheets, the fact that it's a bubble sort
215686 [craig.m.mora] Paul-
215719 [nospam@no it] Okay, then. If all the worksheet names are unique, simply read all the
215849 [craig.m.mora] This is a great approach! I'm going to give it a whirl. To answer
215852 [craig.m.mora] Sorting the sheets in Ruby works great. Thought I'd share the code for
215993 [nospam@no it] sheet_array.sort.reverse!
Custom PDF Viewer & Printer
215574 [enrico.ripam] 1- Only view a PDF document (and any other features to browse in PDF
215579 [halostatue@g] This is probably the wrong place to post about this, as this isn't a
Re: Apology [WAS: Re: Ducktator - A Duck Type Validator]
215581 [halostatue@g] Apology accepted. I have been a little harsh in my response to your
215589 [shortcutter@] First of all: great that you all found a way back together - this does
How do I tell gem to always get the MSWin32 version, if one is available?
215588 [GENIE@pr di ] If anyone could help me out, I'd appreciate it.
Rejected Ruby book ideas by O'Reilly
215596 [Daniel.Berge] I'm curious how many people out there have had a Ruby book proposal
+ 215605 [Daniel.Berge] Let me expand that to the last five years (in case that matters).
+ 215607 [Mail@Jo as H] [...snip...]
+ 215615 [peter@se an ] Presumably you will also want a list of all those who made successful
| 215619 [Daniel.Berge] Fair enough. I'd be interested to hear about those, too.
| 215649 [pwood22@gm i] Berger, This is your boos.
| + 215651 [pwood22@gm i] Boos ?? Did I say Boos ? I meant boss :)
| + 215652 [sambient@gm ] Sounds harsh , till I read it came from boos.
| 215758 [hal9000@hy e] Berger, this is your booze talking. What's this we hear
+ 215653 [oliver.march] a book with O'Reilly. You are asking people to give fairly confidential
+ 215761 [eero.saynatk] You think you can exploit this loophole in the Rules?
| 215809 [wccrawford@g] That's absolutely hilarious.
| 215859 [wccrawford@g] I hope you meant to be humorous with that, because ... well, it's
| 215899 [robert.dober] ...
| 215938 [tdjordan@gm ] 10. Swine Life: The Autobiography of Chuck E. Bacon
| + 215946 [chiology@gm ] Awesome. I may well steal this! ;)
| | + 215949 [robert.dober] ...
| | + 215984 [twifkak@co c] extend self
| + 215982 [headius@he d] Hey now, we've got publishers begging to do a JRuby book :P
+ 215970 [chneukirchen] Are you gonna write "Mastering O'Reilly Book Rejections"? Or
215978 [toalett@gm i] How about "Writing a Book for O'Reilly (And Have It Rejected!) in a Nutshell"?
215979 [wgrosso@wg o] writing books, but I'd be glad to answer some questions (or introduce
216039 [toalett@gm i] I'm not planning to write a book, but perhaps that's what the original
Re: [OT] Rejected Ruby book ideas by O'Reilly
215613 [nospam@no it] Haven't you been reading the technical press lately? You are doing your
215616 [Daniel.Berge] <rant snipped>
+ 215623 [shortcutter@] You make it really sound like a spy plot. Can you at least promise to
| + 215625 [Daniel.Berge] Certainly....offline. :)
| | + 215627 [codeblogger@] ...
| | + 215628 [phurley@gm i] This will be an interesting hallway conversation at RubyConf :-)
| | + 215640 [geneven@ro k] "This communication is the property of Qwest and may
| | + 215689 [GENIE@pr di ] To be fair, nothing in the disclaimer says anything like that. It says
| | + 215893 [jtregunna@bl] I think you'll find any sane court rule that the expectation of
| | 215925 [znmeb@ce ma ] As a matter of fact, most employers are what is known as "employers at
| | 215944 [robert.dober] ...
| + 215755 [hal9000@hy e] LOL, well, we all die of something...
| 215767 [shortcutter@] Actually I won't. And dying from curiosity is a slow and long death -
+ 215630 [nospam@no it] / ...
+ 215645 [rangerrick@g] Never get involved in a book war in Asia.
| 215650 [phurley@gm i] I have spent the last several years building up an immunity to trolling powder.
+ 215655 [james@gr yp ] "I do not think him is what you think him is." ;)
+ 215656 [leslieviljoe] But how do you know the policies of anyone's company? Do you also work
| + 215666 [wilsonb@gm i] I stopped working a long time ago. Took too much time away from ruby-talk.
| + 215677 [nospam@no it] / ...
+ 215671 [jmg3000@gm i] Oh, the sot has spoken! What happens to the OP is not truly your
| + 215672 [aglarond@gm ] ...
| + 215772 [robert.dober] ...
| + 215889 [louis.j.scor] And you! Joyless, duckless, closureless, call/cc-less! Do you want me
+ 215716 [chiology@gm ] The appearance that he has a job? Perhaps, sir, some people use work
| 215720 [nospam@no it] Wrong. Under present circumstances my advice is timely and apt.
| + 215722 [dblack@wo bl] Please, guys, take it somewhere else. Thanks.
| + 215728 [adelle@bu le] When I saw the title of this thread, I was expecting a funny list.
| + 215731 [znmeb@ce ma ] Yeah, me too ... in fact, I was all set to create a couple ...
| | + 215735 [wilsonb@gm i] 11. 'With Wrath Divine': Blogging About Ruby Performance
| | | 215743 [vjoel@pa h. ] If we pool our best ideas, maybe we can win the thinkgeek t-shirt contest.
| | | 215746 [znmeb@ce ma ] Yeah ... I'm in ... the #1 goes on the back or something
| | + 215747 [matt@te hn r] Hey! I resemble that remark!
| | | 215757 [chiology@gm ] 1. Ruby, on a Bad Day: Why PHP Really is Ugly
| | | 215843 [ruby@ph li .] I can't believe I haven't seen this one yet...
| | | 215844 [tanner.burso] ...
| | | 215927 [znmeb@ce ma ] Hollerith Card Processing in Ruby
| | | 215930 [phlipcpp@ya ] I got that one beat.
| | | 215934 [znmeb@ce ma ] Man ... that's impressive.
| | + 215966 [chneukirchen] ...and that one was just rejected because O'Reilly doesn't publish
| | 215995 [znmeb@ce ma ] Well, if we *really* want to be off-topic, we could start a Common Lisp
| | 216005 [alex@bl ck e] Nah... Too easy :-)
| + 215734 [twifkak@co c] Yeah, so was I.
| | + 215737 [znmeb@ce ma ] Yowza!!
| | + 215739 [tom@in oe he] Device Driver Development with Ruby
| + 215741 [vjoel@pa h. ] 10. Ruby on Rails on Steroids
| + 215744 [ara.t.howard] - The Sound Of One Block Calling
| | + 215752 [caldridge@gm] Interesting topic
| | + 215759 [znmeb@ce ma ] Lambdas and Closures and Blocks, Oh My!
| | + 216010 [gregory.t.br] also, Ruby: It'll get ya laid.
| + 215754 [dave@pr gp o] ...
| + 215776 [Mail@Jo as H] 10. Ruby: Makes you try to be funny, very hard.
| + 215777 [robert.dober] ...
| + 215801 [james@gr yp ] Classic!
| 215802 [thomas.adam2] It certainly could be a classic. I suspect people would buy it to.
| 215815 [twifkak@co c] ruby-talk Drinking Games
| 215828 [robert.dober] ...
+ 215726 [steven@lu os] Wow, Paul. Perhaps you could be bothered to read the lines prefixed
+ 215756 [hal9000@hy e] I am not left-brained either!
Ruby and Borland C++
215624 [ rw@wi co ] I successfully build ruby using both Borland C++ Builder 6 and BDS2006
215633 [nospam@no it] / ...
215648 [ rw@wi co ] Thanks Paul for you reply, still I can not solve the problem. I think
215821 [logancapaldo] [snip some includes]
215853 [ rw@wi co ] Unfortunately it doesn't help. I just got lost in these redefinitions.
dot matrix printer !
215631 [gugui_sarubi] is it possible with Ruby ? is there a web-site about it ? Im found
+ 215636 [nospam@no it] This requires knowledge of the printer's control codes. Some printers are
+ 215723 [mike@st k. a] It looks like you can download a user manual for it from
Question about drb and databases
215632 [bjohnson@me ] Let's say I have 2 servers. One has the database, the other doesn't. The
215635 [nospam@no it] No -- unless I am not understanding you. But if both machines are on the
215642 [bjohnson@me ] Right, but if I distribute ruby onto a completely different machine the
215674 [ezmobius@gm ] Hey Ben-
[OT] Company email disclaimers (was: [OT] Rejected Ruby book ideas by O'Reilly)
215647 [Daniel.Berge] No. You must now be liquidated. Fool! :-P
215654 [james@gr yp ] This is commonly discussed online these days. I believe the general
215658 [phurley@gm i] IMHO gmail is a great way to manage (and search) mailing lists...
Ruby connection to MySql
215659 [lynchnco@pa ] I'm going thru the "PickAxe" book but can find only limited information
+ 215665 [gavin.kistne] ...
+ 215667 [wilsonb@gm i] This is a relatively low-level way to work with a database.
+ 215669 [rdm@cf l. om] As far as I know, Ruby itself has no language support for
+ 215690 [jmg3000@gm i] ...
216773 [lynchnco@pa ] Thanks for the link...I'll work it and let you know how I make out...
216985 [lynchnco@pa ] Good morning,
+ 216998 [alex@bl ck e] Um... If you've got Rails working with MySQL, you've got Ruby working
+ 217025 [wilsonb@gm i] Ruby has tons of database support. I routinely use MySQL, Oracle,
217060 [lynchnco@pa ] Wilson,
217075 [wilsonb@gm i] gem install mysql --remote
217087 [lynchnco@pa ] Worked beautifully! THX. I had been working with MySql previously so I
215661 [rick.denatal] You don't happen to be the guy in the white jacket in those new Hummer
Re: Company email disclaimers (was: [OT] Rejected Ruby book ideas by O'Reilly)
215663 [djberg96@gm ] Ok James, I hear you, loud and clear.
215670 [aglarond@gm ] ...
Re: Dr Nic”Ēs Magic Mo?
215668 [drnicwilliam] I can't confirm or deny. Got a link to the ad on youtube or somewhere?
Newbie Rails Authentication Woes
215675 [fred.lee@gm ] couldn't find a rails specific one) anyway -
215682 [jgarvin.list] This is the official rails group.
Calculate last day of month
215676 [walkerhunter] This is probably an easy one for somebody, but I couldn't figure it out
+ 215678 [gavin.kistne] The last day in a month is the day before the first day in the next
| 215687 [xennocide@ya] puts Date.new(2006, 9, -1)
+ 215680 [nospam@no it] subtract one day and read the resulting components.
| 215683 [ara.t.howard] except you have to handle december specially - else you'll end up with the
| + 215685 [walkerhunter] Very cool! That worked! Thank you!
| + 215688 [banshee@ba s] You need to add a month, not a fixed number of days, since you can't predict
| 215692 [phurley@gm i] Yeah that was my first thought too, but notice he is constructing a
| + 215695 [gavin.kistne] Well, aren't you Mr. Tricky? :)
| | 215704 [ara.t.howard] that is damn cool. missed that.
| + 215703 [ara.t.howard] exactly ;-)
| 215711 [shortcutter@] Or the month after that - depending on where you start. :-)
| 215712 [ara.t.howard] require 'date'
| 215770 [shortcutter@] Yes, of course. I didn't want to insunuate you code would not do what you
| 215837 [jes@lu et nk] require 'expanded_date'
+ 215697 [vil.seducteu] Looking for an alternate way: could this be a step in the right
+ 215700 [thopre@gm il] Date.new((Date.today>>1).year,(Date.today>>1).month,1)-1)
+ 215881 [russell.trac] Date.new(2006, 9,-1)
+ 308289 [fgjsp_p@16 .] class Date
308337 [ruby@an hr p] It's easier than that.
+ 308341 [lloyd@2l ve ] Ok, I know that I am going to be smacked for this, but we DO know how
+ 308347 [bill.walton@] Why override Date at all when we've got
308350 [ruby@an hr p] Because this is the ruby list, not the rubyonrails list.
308359 [bill.walton@] Oops ;-) Should have checked the header. My bad.
Mac OS X droppable Ruby scripts
215691 [damphyr@fr e] OK, it's been a long absence. And ruby-lang is online! And my nick is in
215693 [dharple@ge e] I think [Platypus](http://www.sveinbjorn.org/platypus) will fit what
215696 [gavin.kistne] How about using DropScript?
215702 [ron.reidy@gm] ...
gem installer and scripts
215706 [txtoth@gm il] Is there a way to get gem to run a script during an install similar to
215710 [wilsonb@gm i] Include a script with one of the following names in the base directory
215812 [txtoth@gm il] Thanks. I created a post-install.rb and tested it but it doesn't get run
215901 [TimHunter@nc] I can only speak for RMagick, but fwiw,
[SUMMARY] Secret Agent 00111 (#94)
215714 [james@gr yp ] Mission Report
[ANN] PatchServer 0.3
215715 [zoso@fo on e] New PatchServer release (0.3). It is mostly a bugfix release, but see a=