273787-276979

273604-274992 subjects 274009-292770

^ Array +=
273787 [simon mullis] Question re Array method += and
+ 273789 [mortee.lists] The difference is that << is a method, += is an assignment. (a ||= [])
| 273791 [shortcutter ] No, it's not a precedence issue.  Btw, you are comparing apples and
| + 273803 [simon mullis] I love this list... I send a mail, go off to a meeting, come back and
| + 273805 [simon mullis] Thanks for this Robert.
|   273808 [shortcutter ] That's why you should be using #concat (more efficient) unless you do
|   273866 [simon mullis] Yep...  concat it is!
+ 273790 [flori nixe.p] Did you you mean this?

^ [QUIZ] Reverse the Polarity (#143)
273802 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 274068 [justin.ethie] Looks like its been 2 days...
| 274082 [jamesbkoppel] I had fun with this quiz.=0A=0A/Ruby (should be|better be|is) (very )* fun[=
+ 274202 [jgabrielygal] - I will limit the number of repetitions provided by * and + to a
  274375 [jgabrielygal] t string.

^ DateTime confusion
273807 [christriddle] Wondered if anyone could help...
+ 273821 [christriddle] On 12 Oct, 14:39, "christrid...@googlemail.com"
+ 273824 [bbxx789_05ss] It works fine for me, although I wouldn't name the variable 'date' since

^ [OT] Re: wtf? gem command vanished
273809 [ara.t.howard] and in my world they are all them same - you just have to guard them
+ 273841 [mortee.lists] I guess you should consider how you installed ruby, then find out what
+ 273844 [dangerwillro] Ara, they work the same in Bash on any system.
  273850 [ara.t.howard] technically that is true, but each system configures the system wide
  273854 [dangerwillro] not sources? huh?
  273894 [ara.t.howard] 'sources'.sub /s$/, 'd'

^ sdfsf
273816 [luutrunghieu] sdfs

^ Re: wtf? gem command vanished
273827 [drbrain segm] Check your PATH, `gem` doesn't delete itself.
273831 [ara.t.howard] can we add that feature though?
273836 [drbrain segm] An uninstaller for RubyGems?  Yes, but I have no interest in writing
273843 [ara.t.howard] no i meant on option to gem that would delete itself.  or maybe a

^ ANN: English 0.1
273828 [transfire gm] English 0.1
+ 273830 [alex blackke] I hate to point this out, but isn't having "require 'english'" and
| + 273833 [transfire gm] Well, there is no "require 'english'" but rather "require 'english/
| + 273842 [ara.t.howard] not only that but, on osx for one, case in-sensitive file names means
|   273849 [djberg96 gma] Bad, bad, BAD!!!
|   + 273856 [transfire gm] Well, it's no quite that bad. As I said there is no "require
|   + 273861 [phrogz mac.c] Ah, nice; you beat me to my suggestion. This solves both the confusion
|     273864 [transfire gm] Okay, I will do this.
|     273869 [transfire gm] Uh.... So I'm looking into this, and I become very aware that like 80%
|     + 273871 [dangerwillro] inheritance, design, polymorphism
|     + 273937 [daniel.schie] That's probably a good idea. If English depends on some libs in
+ 273834 [celtic sairy] I don't mean to sound abrupt, but why are there so many spelling/grammar
| + 273837 [celtic sairy] Sorry, I think I came off fairly harshly and probably not in an
| + 273840 [transfire gm] On Oct 12, 9:21 am, Arlen Christian Mart Cuss <cel...@sairyx.org>
|   273860 [phrogz mac.c] reqiure 'english/inflect'  # require
+ 273859 [phrogz mac.c] Perhaps I'm being too picky, but when someone adds a similar (or port)
  273875 [aaron tender] Maybe we should take a cue from perl land?  Lingua::EN::*, or

^ luu trung hieu
273845 [dangerwillro] Who is Luu Trung Hieu?

^ Drb communication problem and crash
273852 [laurent.fran] So first of all a little context of what I'm trying to do.
273870 [drbrain segm] I don't see where this message is coming from in DRb, or ruby.
274141 [laurent.fran] Thanks for your quick answer! Well the message definitely doesn't come
+ 274262 [laurent.fran] So I finally found the problem! The message I repported actually came
| 274285 [drbrain segm] If it still had the file descriptor open, it would be copied.
+ 274284 [drbrain segm] I don't recall, which URL?
  274425 [laurent.fran] Ok, it's really
  274445 [drbrain segm] Ah, even with an ACL it is still possible for people to do bad stuff
  274520 [laurent.fran] Ok, thanks for the explanation! :)

^ I don't like my code -- what can I do?
273857 [rabbitblue g] (Disclaimer: I'm using Rails, but my issue isn't with Rails. I also find
+ 273862 [dangerwillro] design problem.
| 273867 [rabbitblue g] That's what I thought. The specs are being written by someone who is
| + 273868 [dangerwillro] No problem, I struggle with this stuff myself, and I just do it for a
| | 273886 [rabbitblue g] Agreed.
| + 273888 [JeremyWoerti] I think that other guy should be fired and I should be hired :)
|   273893 [dangerwillro] That's all fine and well. I think it is an opportunity to make some
+ 273930 [mortee.lists] would have to know about BidRequest statuses anyway. It's either the

^ SQLite version and sqlite3-ruby
273872 [unbewusst.se] When i run a ruby script with a MacOS X 5MacPorts) version of SQLite

^ How to update a counter on a remote server via Ruby?
273877 [promos burch] I have lots of users running my ruby scripts.  I have one script in

^ Version 2
273882 [rawn027 gmai] What features are supposedly in version 2 of Ruby?
273883 [konrad tyler] charset="iso-8859-1"

^ Re: strategy for unit testing user input?
273884 [walkerku gma] I'm not sure if you found an answer to this.  I came across your post
273945 [bbxx789_05ss] Thanks.

^ Is there a standard pattern for threaded access to a file?
273887 [jhandler sho] I'm pretty new to ruby and this is one of those areas where I can't
+ 273891 [ara.t.howard] require 'thread'
| + 273896 [bbxx789_05ss] threads.each {|t| t.join}
| | + 273911 [bbxx789_05ss] Actually, the example provided won't even work in your case.  You have
| | | 273929 [shortcutter ] While this is all true and well I have some additional remarks.
| | | + 273947 [rubytraining] That's a very nice solution.  It demonstrates a lot of accumulatd
| | | | 273949 [SimonKroeger] I think there will be a big (and probably long) "huh?" moment when running the
| | | | + 273964 [shortcutter ] ing the
| | | | + 273970 [rubytraining] g the
| | | + 273982 [ara.t.howard] you win the golf for sure - here's something similar to what i've
| | + 273952 [ara.t.howard] unless you use
| |   273958 [bbxx789_05ss] threads.map{|t| t.join}
| |   273969 [ara.t.howard] i'm not, but in a real piece of code longer than 5 lines it would be
| |   274025 [bbxx789_05ss] First you post a poor example that is needlessly complex for a
| + 273948 [SimonKroeger] while the above is quite clever, is there any (hidden) reason to use it over
|   273951 [ara.t.howard] not really.  mostly i just like the '5' to be more prominent in the code
+ 273940 [garbagecat10] Why are you doing this in the first place? Do you have a computer with five
| + 273943 [bbxx789_05ss] "Finally, if your machine has more than one processor, Ruby threads
| + 273955 [drbrain segm] It depends upon the operation being parallelized.  If your file is
|   273974 [lojicdotcom ] Eric, are you reading/posting on comp.lang.ruby ? I don't see Francis'
|   + 273979 [drbrain segm] I use the one, true ruby-talk, the ruby-talk@ruby-lang.org mailing list.
|   | 273992 [lojicdotcom ] Ok, I guess some posts get dropped in the ruby-talk -> comp.lang.ruby
|   | 274019 [james graypr] Here is the relevant header from the message you are discussing that
|   | + 274022 [ news jay.fm] I just checked out your "What is the ruby-talk" gateway; I didn't realize
|   | | 274074 [james graypr] To be totally clear, our gateway doesn't drop them.  They are
|   | | 274086 [ news jay.fm] Sounds like it'd be more useful for me to help on the TMail version (since
|   | | 274150 [james graypr] It's not yet online.  I am happy to put it up, sure.  I really need
|   | | 274184 [ news jay.fm] Sure.  I'll e-mail you in a few weeks, and embed a Flash movie reminder
|   | + 274029 [lojicdotcom ] On Oct 13, 10:17 pm, James Edward Gray II <ja...@grayproductions.net>
|   |   274077 [james graypr] I just did a simple grep of the logs for a period of a little over
|   |   274116 [lojicdotcom ] On Oct 14, 11:52 am, James Edward Gray II <ja...@grayproductions.net>
|   |   274148 [james graypr] The log I used actually went back to 9-6-2007, so it was closer to 38
|   + 273981 [ara.t.howard] i'm using the ml and do see francis' post.
+ 274096 [ara.t.howard] *finally* i remembered where this has been abstracted.  in my own

^ dasd
273902 [luutrunghieu] sdsada
273904 [luutrunghieu] Posted via http://www.ruby-forum.com/.

^ Execution stops once exception is encountered
273916 [vishwanath.u] I am using ruby and watir to test my web application.
+ 273917 [lojicdotcom ] On Oct 13, 1:03 am, Vishwanath Uppala <vishwanath.upp...@gmail.com>
| 273920 [drbrain segm] How does the URL for a network monitoring program help keep a script
+ 273918 [gerardo.sant] $ cat test.rb

^ [ANN] RubyGems Beta 0.9.4.5
273919 [drbrain segm] RubyGems 0.9.4.5 is a beta release for the upcoming 0.9.5 which adds
+ 273921 [ezmobius gma] Big thanks to all of the folks involved. Lots of killer stuff in
+ 273939 [nobu ruby-la] Regarding rubygems/installer.rb, if you use .cmd always on
+ 273977 [drbrain segm] tar -xzf rubygems-0.9.4.5.tgz

^ [FOUND] Re: SQLite version and sqlite3-ruby
273922 [unbewusst.se] Jamis Buck (the dev of sqlite3-ruby) gave me the reason why i get this

^ create custom network packet
273923 [ribi schwing] layer 2: ethernet
273944 [ari aribrown] check out rubyforger. NOTICE THE EXTRA R
274194 [ribi schwing] Do you known, how can I install the libnet4r?
275813 [mcse palstek] Yes, you can use make to compile and install this library...

^ Basic question: how to use Enumerable#each_slice
273925 [goal1860 hot] This are examples from library documentation
273928 [shortcutter ] Yes, enumerator.

^ Ruby + Apache, scripts not being interpreted
273927 [nobrow gmail] I am trying to get Ruby running on Apache. I may or may not have a
+ 275247 [nobrow gmail] Bump
| 275307 [dangerwillro] Rails Talk will be your best source of an answer for this.
+ 275309 [james.britt ] You also may have to tell apache that files ending in .rb are to be

^ Generation of initialize
273932 [arcadiorubio] I'm new to Ruby. I'm looking for an elegant solution to a simple
+ 273934 [transfire gm] module MyInitSystem
+ 273935 [work ashleym] Don't know if this has been done before, but here's a quick stab I
| 273941 [arcadiorubio] Thank you both for your replies.
| 273950 [transfire gm] class C
| 273965 [work ashleym] Very clever :)
+ 273960 [lojicdotcom ] Are you looking for something like the following?
+ 273973 [erikveen gma] It can be as simple as this.
  273975 [lojicdotcom ] Might as well define the attrs while you're at it so you can get the
  276951 [arcadiorubio] I'm trying to enhance the previous solution (shown again at the end).
  276954 [transfire gm] Why doesn't it work?
  276962 [vjoel path.b] module HasInitializeWith
  276979 [arcadiorubio] Thanks. It was the "()" on super.

^ Re: Anyone get the Arachno Ruby debugger working?
273946 [krobson yaho] I've had a similar experiance.   At one point I was getting some support

^ Better way to kill files?
273953 [coryw americ] Purpose here is to find all files > 5 hours old in a directory and wipe
273959 [rick.denatal] Not to discourage you from doing it in ruby, but you don't need to
273962 [lojicdotcom ] ruby -e '`find ~/foo/bar -mmin 300 -delete`'
273966 [dangerwillro] Of course you might want to generate a log of what got deleted.

^ Re: Launching torrents
273956 [alex.shulgin] *ROFL*

^ Re: RubyGems Beta 0.9.4.5
273968 [luislavena g] Most IDEs (example, NetBeans) is looking for "gem" file, not gem.cmd
273978 [drbrain segm] It think Nobu is talking specifically about installed bin stubs, not
+ 274008 [nobu ruby-la] %* works with cmd.exe, and .cmd files also require cmd.exe.
| 274041 [djberg96 gma] Regards,
+ 274474 [luislavena g] Under WinNT (and _all_ the versions based on that kernel). slash and
  274521 [dirk.traulse] Microsoft Windows XP [Version 5.1.2600]
  274523 [luislavena g] You're mixing relative paths with full paths.
  274556 [luislavena g] my social skills were nil.
  274598 [dirk.traulse] Correct. Thanks Giles.

^ top 10 last played mp3's
273980 [robin87_msn ] My level of ruby-experience has just slightly passed hello-world, I'm
+ 273983 [x-ruby-forum] File.atime returns a Time object, you can compare it to another Time
| + 273995 [konrad tyler] charset="utf-8"
| | + 274003 [lojicdotcom ] Doesn't Find.find() require a block? And doesn't it pass a string to
| | | 274028 [konrad tyler] charset="iso-8859-1"
| | + 274004 [x-ruby-forum] '**' takes care of that.
| |   274010 [lojicdotcom ] On Oct 13, 8:35 pm, "Andreas S." <x-ruby-forum....@andreas-s.net>
| |   + 274014 [lojicdotcom ] Hmm.. it just occurred to me that many of the solutions presented here
| |   | 274067 [phrogz mac.c] Really? Which ones? You do realize that #sort_by is explicitly
| |   | + 274070 [summercoolne] won't it call File.atime(f)   (c * n log n)  times?
| |   | | 274108 [rick.denatal] No, sort_by builds a parallel array with the value of each element in
| |   | + 274090 [dirk.traulse] The above has a flaw.
| |   | + 274133 [lojicdotcom ] Uh, those would be mine :( Moot point though (see other post).
| |   + 274052 [x-ruby-forum] Dir['/share/music/**/*.{mp3,m4p}'].sort_by{|f| File.atime
| |     274131 [lojicdotcom ] On Oct 14, 7:03 am, "Andreas S." <x-ruby-forum....@andreas-s.net>
| + 273998 [summercoolne] this one seems to work
+ 274000 [justincollin] puts "#{File.atime(path)} : #{path}"
+ 274043 [robin87_msn ] First of all: thank you all for your amazing amount of replies (in one

^ write_noblock is blocking?
273984 [lerno dragon] Anyone know what's up with TCPSocket#write_noblock actually blocking
+ 273987 [bbxx789_05ss] The method hasn't been invented yet?
| + 273990 [ara.t.howard] non/)  '
| + 273991 [drbrain segm] That's rather harsh for a one letter typo.
|   274002 [bbxx789_05ss] Harsh?  In what way?
|   274007 [ara.t.howard] responding that way when you didn't know
|   + 274012 [drbrain segm] Exactly.
|   + 274024 [bbxx789_05ss] Maybe in your native language they don't have question marks for
|     274027 [ news jay.fm] Uh.  7stud?
+ 273997 [drbrain segm] How long does it block?  I see ruby occasionally being delayed 10ms =20

^ Setter scoping issue
273985 [jamesgolick ] So, I had this really cool idea for a syntax.
273988 [ara.t.howard] require 'attributes'  ### gem install attributes
273989 [jamesgolick ] Thanks a lot.  That's really nice.  We lose the equals sign though.
273993 [ara.t.howard] nope.  not without self too.  trust me, the open syntax grows on you too

^ to use Ruby / Tk (on Win XP) needs to install ActiveState?
273986 [summercoolne] it seems the usual way to use Ruby / Tk on Win XP is to install
274017 [williams.jay] I don't think there is a practical alternative unfortunately. It is

^ Shoes and PPC
273994 [ari aribrown] Correct me if I'm wrong, but is

^ simplifying the defined api
273996 [rogerpack200] defined?
+ 274030 [shevegen lin] I use defined? but I never had the need to use assert.
| 274259 [rogerpack200] Did anyone ever use defined? for anything other than 'true/nil'
+ 274060 [halostatue g] => nil
| 274621 [rogerpack200] So is this a parser bug or a feature?
+ 274306 [mortee.lists] It looks like I'm missing something... What's the "defined? api"?
| 274307 [rogerpack200] in ruby you can do
+ 274314 [rick.denatal] Let me turn this around.
  274319 [rogerpack200] I think the rationale was it would make Ruby simpler and therefore one

^ backquotes question
274001 [user domain.] cmd = "/bin/df -H /dev/#{partition}"
+ 274005 [TimHunter nc] You don't need the quotes when you surround the command with backquotes.
+ 274006 [bbxx789_05ss] str = "hello"
+ 274011 [lojicdotcom ] puts Kernel::`("ls")
+ 274026 [gerardo.sant] Let partition be "wd0a".
  274390 [user domain.] Thanks for the hint (and others posters too) !
threads.html
top