218696-261334 subjects 219075-280469

(NEWBIE) Reading folders from a directory into an array
218923 [ryankbrown@g] I am a newbie looking to use Ruby to create a maintenance script for my
218927 [eden.li@gm i] Dir['/path/*'].select { |f| File.directory? f }.each do |directory|
+ 218936 [ryankbrown@g] Thank you! That is great!
+ 218994 [transfire@gm] Dir[] is an alias for Dir.glob, just so you know. Possibly you can do

need help with $end vs kEND error
218930 [kushelduv@ma] I have been trying to write a program for my class assignment but
+ 218931 [olsonas@gm i] Often times this error is a result of missing an end statement somewhere
+ 218932 [alibby@ta ge] I'm just learning ruby myself, but typically when this
+ 218933 [carl.lerche@] You have mismatched block openings / endings. Check your def / end
  218951 [kushelduv@ma] as far as i can tell nothing is missing
  + 218952 [rforum@gm il] This should be
  | 218953 [kushelduv@ma] huh that was the problem but my text book had everything as
  | 219005 [nospam@no it] Umm, just curious, who is the author, what is the book or article?
  + 218956 [ruby-ml@ki t] Right here. You want elsif, otherwise you are missing

[ANN] Ron 0.1.0 Released
218935 [vikkous@gm i] Ron version 0.1.0 has been released!
+ 218938 [zimba.tm@gm ] This looks really interesting. So you overloaded the - operator on
+ 218939 [vjoel@pa h. ] How does it compare with amarshal?
| 218969 [vikkous@gm i] Both are ruby-based serialization packages/languages. Amarshal
+ 219082 [chneukirchen] Do you plan to write a facility for "safe" loading?  (Think of Lisp's READ.)

Re: Ron 0.1.0 Released
218942 [drnicwilliam] RF is down @ moment it seems

rubyforge.org down
218944 [tom@in oe he] RubyForge is down... investigating now.
+ 218958 [gaspard@te i] Damned !! I just needed to do
| 219017 [skurapat@uc ] Perhaps this is a good opportunity to learn about decentralized
| 219036 [gaspard@te i] This seems great ! I will have a closer look into SVK.
+ 218961 [olsonas@gm i] Darn! I just got the hankering to mess around with Instant Rails!
| 218972 [tom@in oe he] It's back up now.  We may be having hardware issues - the machine seems
| + 218974 [james@gr yp ] My high school programming teacher had a saying for this...  "Man I
| | 218975 [tom@in oe he] Yup, it's getting to the point where suggestions like "let's replace all
| | + 218978 [tbray@te tu ] What kind of a server do you have in mind?  I may be able to help.  -Tim
| | | 219008 [tom@in oe he] Oh, the current machine can handle the load just fine; I'm just
| | | 219019 [Charles.O.Nu] So now let me get this straight...you're not interested in potential new
| | | 219031 [tom@in oe he] Ah, this machine's a good 'un... just needs an oil change.  Or maybe the
| | | 219305 [rsanheim@gm ] Why not setup a clustered setup for some redundancy?  I mean, if a
| | | + 219312 [ara.t.howard] my experience is that each percentage point of uptime increase adds
| | | | 219322 [tom@in oe he] Yup, and since there's a DB involved, cutting over to a backup system
| | | + 219321 [tom@in oe he] Yeah, we may have to do something like this.  The added admin load makes
| | |   219494 [paul@ic no l] You need to offload the admin load then. Think about something more
| | |   + 219496 [transfire@gm] Or maybe a RailsForge to offload the Rails-oriented projects.
| | |   | 219498 [halostatue@g] Please drop this nonsense. We don't need a RailsForge.
| | |   | + 219504 [james@gr yp ] I agree.
| | |   | + 220035 [transfire@gm] Can't you even try to be tactful?
| | |   |   + 220043 [james@gr yp ] That would make me sad.  I just know I would have a lot more trouble
| | |   |   + 220053 [halostatue@g] Not when you keep raising an idea that isn't necessary at all.
| | |   + 219499 [halostatue@g] This isn't realistic. It would be good if RubyGems had the ability to
| | + 219013 [billk@ct .c ] I had RAM go bad on one of our home PC's last year.  It does
| | | + 219015 [znmeb@ce ma ] memtest86 is your friend ... although you need another server to run
| | | + 219029 [tom@in oe he] Thanks!  Maybe I should try some of those extended memory checks - as Ed
| | + 219260 [pseudo.meta@] Is the filesystem ReiserFS?
| |   219296 [tom@in oe he] Nope, ext3.
| |   219303 [james@gr yp ] ;)
| |   219319 [tom@in oe he] Yikes!!  Yeah, I think we'll stick with ext3... egads.
| + 218982 [ara.t.howard] full parition?
| | 219009 [tom@in oe he] Nah, it's just got two partitions - /boot and /.  / has about 600 GB
| + 219012 [twifkak@co c] Check into OS-hardware incompatibilities. My motherboard causes the same
+ 218986 [djberg96@gm ] pad my gem download stats got a little crazy and, uh, wait....should I
  + 218988 [gavin.kistne] As it's nearing Halloween here in the US, perhaps a full apparition is
  | 218998 [jmg3000@gm i] Well, Friday will be a Friday the 13th. Perhaps a daemon haunts the
  | 219011 [tom@in oe he] $ ls /dev/il
  + 219010 [tom@in oe he] Tom

Ruby and XML Security
218948 [d_rems@ya oo] Is it possible with Ruby to go through XML security process.
+ 218981 [snacktime@gm] You might want to repost this with an appropriate subject, it has
+ 218985 [interfecus@g] The Ruby/OpenSSL library is pretty poorly documented but you can pretty
| 219071 [d_rems@ya oo] Thank you very VERY much. I will be back when I'll get my first test
+ 219258 [Roland.Schmi] this sounds like web service security, right?

equivalent of unix "file <filename>" in ruby?
218950 [rajshrimilin] I'm trying to find out what is the equivalent of file <filename> from
+ 218954 [khaines@en g] There is currently nothing written in ruby that uses a library of
| 218957 [halostatue@g] That's not *quite* true. I think it's safer to say that there's
| 218967 [ara.t.howard] there is
| 218996 [halostatue@g] Yes. Filemagic only binds to the existing libmagic, which still
+ 218955 [gavin@re in ] If your program will always run on a system where that command is

Ruby web ap FUD
218959 [Bil.Kleb@NA ] I got the following internal email this morning; and
+ 218960 [tim.pease@gm] Completely off topic, but I just checked out your fun3d webpage and
+ 218962 [ruby-ml@ki t] The only problem you are likely to encounter is fitting your
  218970 [khaines@en g] IOWA is completely ORM agnostic.  I use Kansas because I like the query

tar.gz and ruby?
218963 [jim_carry05@] I've started using ruby.How can I read "tar.gz" file without extracting?
+ 218968 [robert.dober] ...
+ 218979 [msoulier@di ] tar -ztf <filename>

[ann] Text
218973 [twoggle@gm i] Actually released a while ago, but hey.
+ 218992 [john.carter@] Wow! With a list like that, the only thing left is FWIMNWIS. (Find What
+ 219093 [skurapat@uc ] Awesome! Thanks for making this much needed library. This gives
+ 219126 [alex@bl ck e] Porter stemming is the only standout that I can think of which might be
  219225 [znmeb@ce ma ] There is also a Ruby interface to WordNet, although I'm not sure how

Newbie problem of Class attributes
218976 [dipesh_bathe] I am trying to create a class level attribute which can read and write.
+ 218980 [tim.pease@gm] class A
| 219006 [dblack@wo bl] I'd steer clear of class variables unless there's some very compelling
+ 218984 [m_goldberg@a] <code>
  218987 [mattengi@gm ] What means 'class << self' ? I don't understand...
  218990 [tim.pease@gm] The 'class << self' notation gives you access to the Singleton class
  218993 [mattengi@gm ] Thanks Tim,

Booksales @Rubyconf?
218977 [tbray@te tu ] Will someone be setting up a bookstand at Rubyconf?  I see this at
+ 218989 [chadfowler@g] up for RailsConf and it fell through.  RubyConf being smaller, we
+ 219016 [hal9000@hy e] I had hoped/believed there would be sales there, but it appears
  219205 [hal9000@hy e] I doubt it... Addison-Wesley wanted to sell, but they told me
  219221 [znmeb@ce ma ] It actually doesn't sound like a great sales opportunity. First of all,
  + 219222 [matt@te hn r] No I don't!  Besides, a number of the other PragProg titles are also very
  | 219227 [znmeb@ce ma ] Yeah, and I've got most of *them* too :)
  + 219234 [hal9000@hy e] It ended up being closer to 340, I think. And none of those
    219242 [znmeb@ce ma ] I was just gonna ask you about that -- when will it be available, and is
    219245 [hal9000@hy e] Should be available within two weeks.
    + 219249 [rsanheim@gm ] How do we go about purchasing a copy at rubyconf?  Will you be setting
    | + 219257 [hal9000@hy e] I think they'll have a few to give away maybe. Beyond that,
    | + 219294 [james@gr yp ] Think sounds so cool...
    + 219315 [matt@te hn r] Blame your cat.  He snuck in and changed things while you were asleep.
      219318 [wgrosso@wg o] Far worse than the mistakes are the clumsy bits. Right now, the

Tk & TkTreeCtrl extension docs
218983 [nigel@wa pz ] can anyone point me at some documentation on how to use the TkTreeCtrl
219040 [nagai@ai ky ] I'm very sorry, but there is no document about TkTreeCtrl.

Great difficulty with Ruby and MSN Search
218995 [justin@av o.] I've been trying to programmatically issue MSN Searches and processing

rake - How to use separate source and build folders
219000 [titanandrews] I am new to rake and attempting to use it to build a small C++ project.
219146 [tim.pease@gm] Well, I stole this from Jim Weirich's blog so if it does not work, blame him ;)

recovering from errors in net:smtp
219004 [r.fulton@au ] I've got a script that sends reports by email using Net::SMTP.
219020 [drbrain@se m] ##
219402 [r.fulton@au ] Thanks very much Eric, I'm sure I could have figured this out for myself

[ANN] Milwaukee Ruby Meeting tonight starting between 5:30 and 6:00
219023 [tdjordan@gm ] We are going to have a presentation about RailsConf Europe from Dale Busse.

219024 [noSpam@no pa] I have now been working on the port of pythonchess-0.6 to Ruby
+ 219027 [hal9000@hy e] No apology necessary... how many projects out there have major
| + 219049 [drnicwilliam] I think I might start the versioning of all my projects with letters of
| + 219230 [noSpam@no pa] Thanks, Hal!  I appreciate it.
|   219503 [jes@lu et nk] Glenn
+ 219079 [james@gr yp ] I'm a chess nut, so at least interested in looking at the code.  Drop

Question: Ruby application packaging
219025 [tadatoshi.ma] I have a trivial question.
219038 [Gemma.Camero] Try rubysript2exe. It's extremely easy to use in my opinion. ( : Just

ERB as a macro pre-processor?
219026 [rdm@cf l. om] "The Ruby Way" (pp. 43-45) shows a couple of different ways
+ 219090 [logancapaldo] Bah I say! How does that saying go, "Replace conditionals with
+ 219097 [ara.t.howard] i did quite a bit more work on it but never released...
  219117 [rdm@cf l. om] interesting stuff; why not put out a WIP snapshot?
  219130 [gavin.kistne] Out of curiosity, would there be any benefit to writing the code to a
  219131 [rdm@cf l. om] I think that the basic concern with eval is that spurious

[ANN] Mechanize - 0.6.2 (Bridget)
219030 [aaron_patter] Mechanize version 0.6.2 (Bridget) is now available.

is Rinn (CORBA) working?
219032 [max@ma id or] Is the package Rinn still supported? I want to communicate with TAO

Execution of rubyfile in remote machines
219033 [tanushree.bh] I need to run ruby files in remote machine.
+ 219034 [drnicwilliam] Capistrano (http://manuals.rubyonrails.com/read/book/17) uses the
| 219273 [tanushree.bh] Thanks Dr Nic.
| 219274 [drnicwilliam] needle is another gem you need to install. Unfortunately the setup.rb
| 219280 [tanushree.bh] I installed ruby gem and again excuted the ruby file and got this
| 219460 [tanushree.bh] Can i please get a solution to my problem ?
| + 219469 [ara.t.howard] fortytwo :~ > ruby -r rubygems -e ' require "net/ssh"; p Net::SSH.start(ARGV.shift).host ' localhost
| + 219493 [drnicwilliam] Last night I was thinking about your problem: if I remember, you're
|   + 220177 [d_rems@ya oo] Yep you are right.
|   + 220230 [guslist@fr e] Cygwin provides openssh server.
|     220234 [drnicwilliam] Sampurna - were you using either of these options? Can you confirm that
|     220388 [tanushree.bh] Dr Nic,
+ 219098 [ara.t.howard] but not on windows....

FileUtils.touch not consistent with system('touch')
219037 [han.holl@gm ] -rwxrwxrwx 1 root root 0 Oct 11 10:29 /tmp/file
219042 [nobu@ru y- a] What about this?
+ 219044 [nobu@ru y- a] Sorry, should be `if' but not `unless'.
+ 219165 [aamine@lo er] This part seems nice, please commit it after File.utime
+ 219248 [nobu@ru y- a] rb_w32_utime() didn't support it.

typo not going well with memcache
219039 [gethemant@gm] I was trying to use memcache for session storage in Typo. And i got

Script to fetch Wikipedia text
219043 [kyrreny@br a] Hey!
+ 219051 [user@do ai .] forget regexp and use a dedicated tool like
| 219060 [peter@ru yr ] Well, in my opinion it is still far easier to work on the exported
| 219063 [jan.svitok@g] ...
+ 219173 [interfecus@g] It sounds like the Wikipedia API would be best for this. Visit the

scanning strings, backward?
219045 [Bil.Kleb@NA ] I would like to automate a code cleanup task which involves
+ 219048 [vidar@ed ei ] For 1) Assuming the lines aren't fixed length: Read in the entire file
| + 219056 [Gemma.Camero] Or use /$/ to look for what a line ends in?
| + 219065 [znmeb@ce ma ] For 2, can't you reverse the line and search forwards?
| | 219066 [Gemma.Camero] Just to clarify I mean using regular expressions i.e.
| + 219088 [Bil.Kleb@NA ] The problem is I only want to replace only
| | 219099 [vidar@ed ei ] If you use IO#readlines you're working on an array of lines one by one.
| + 219091 [m_goldberg@a] I like this idea, but I would suggest using a hash rather than an
|   219094 [vidar@ed ei ] I don't see what this would give you. An array of the lines in the
|   219176 [m_goldberg@a] It's a worthless idea. Somedays my brain behaves like a fried egg
+ 219067 [znmeb@ce ma ] Wait a minute ... is the file you're editing always a Fortran source?
| 219083 [Bil.Kleb@NA ] Yes.
+ 219069 [james@gr yp ] Would my File::ReadBackwards port help here?
| + 219072 [Gemma.Camero] i.e.
| | 219087 [Bil.Kleb@NA ] Yes
| + 219085 [Bil.Kleb@NA ] Maybe, but I'll wait and see what else comes up first...
+ 219095 [Bil.Kleb@NA ] I should have just posted a test?  Warning: untested test ;)
+ 219145 [ruby-ml@ki t] File.readlines for reasonably sized files, f.each_with_index
  219304 [rick.denatal] I believe that the OP doesn't want to search line 1707 backwards for
  + 219347 [ruby-ml@ki t] Ah! /m :D
  + 219359 [Bil.Kleb@NA ] Correct.  Sorry for the confusion.

[ANN] TheRubyMine - Cultura Rubyista in Italian
219046 [kiaroskuro@g] ...

[ANN] newgem - Create gems for your libraries and apps
219047 [drnicwilliam] Now you can take any library or Rails plugin or command line
219054 [robmnl@gm il] ...

PHP-like Array/Hash creation in Ruby
219050 [jan@so di .d] I used PHP for a long time, a little bit C# and recently started to
+ 219057 [julesjacobs@] Could you post some real php code that uses this feature? It isn't a
| 219081 [jan@so di .d] single dimension arrays are simple, because i just need that "a = []",
| 219104 [ara.t.howard] because it doesn't eliminate the problem - if you read in arbitrary dimensions
+ 219092 [logancapaldo] Yes, because since you can define [] for anything, ruby has no way of
  219110 [jan@so di .d] i know that not only an array can have [], strings can have them too in
  + 219124 [ara.t.howard] class MArray < Array
  | 219137 [jan@so di .d] thanks for your insights response ara.
  | 219158 [ara.t.howard] the name says it all ;-)
  + 219215 [logancapaldo] In PHP $ary[1] = 'hans' must be an array. I can't create something else
    219275 [jan@so di .d] i will take a look at this

Re: newgem - Create gems for your libraries and apps
219055 [drnicwilliam] Unfortunately all voting on project names happens before the project is
+ 219058 [Gemma.Camero] Again I love how this mailing list always sounds like it's talking about
| + 219074 [drnicwilliam] Forward the article onto your parents and see if they want to create
| + 219206 [hal9000@hy e] Secretly, we are...
| + 219207 [cdcarter@gm ] ...
|   219252 [drnicwilliam] Shhhhh.
|   219282 [Gemma.Camero] At least I'm popular...
+ 219109 [drnicwilliam] A new version will come out soon that will include the setup.rb file in
  219283 [chneukirchen] Thank you.
  287594 [diwyata1206@] i need help on creating a gem. Am following the Dr. Nic tutorial

help with regex
219073 [josselin@wa ] regex is not my cup of tea , i've been using them few times, only
+ 219080 [peter@ru yr ] def to_nice_number(n)
| 219089 [josselin@wa ] Thanks Peter... actually I don't have yet the 'ruby way'...  using scan
+ 219086 [a2800276@gm ] "European" would be difficult without having context. How can you tell if
  219102 [josselin@wa ] thanks for raising these cases,
  219259 [shortcutter@] In that case it is even more important that you get it crystal clear (at