180890-182450

180709-181596 subjects 181193-199950

^ [ANN] Ruby Murray - Sub::Curry on Ruby Acid
180890 [rossrt rosco] Ruby Murray, a Ruby port of Perl's Sub::Curry (with added Ruby

^ Re: [SOLUTION] metakoans.rb (#67) (One Minimally Golfed Solution and 1 Vry Glfd Sln)
180901 [GENIE prodig] Here's a better version of my solution.  Obviously these modules would

^ Daedalus
180913 [listrecv gma] I remember coming across a Ruby script - I beleive called Daedalus - to
180916 [rossrt rosco] Ross Bamford - rosco@roscopeco.REMOVE.co.uk

^ Re: Ruby Murray - Sub::Curry on Ruby Acid
180926 [meinrad.rech] cool naming, nice functionality, easy using.
+ 180928 [james.herdma] I'm not entirely sure where you'd use this sort of feature either, but
+ 180931 [rossrt rosco] Oh, I never said it was _useful_ :)
  180942 [meinrad.rech] in fact it is very useful for most elegantly implementing undo/redo
  180952 [rossrt rosco] Ahh, well, looks like I spoke too soon there.

^ need: hierarchic data structure
180930 [meinrad.rech] i am searching for an implementation of a hierarchic datastructure that
180932 [logancapaldo] Have you considered this?

^ Keeping up with Ruby?
180933 [info johnale] Is there a way to find what extensions / libraries of Ruby code are
180948 [r.mark.volkm] For extensions that were installed as gems,
181082 [info johnale] Did you want to say something here?

^ need for threads
180934 [snowzone5 ho] a discussion of tcl threads came up in that newsgroup.
+ 180938 [phurley gmai] This is accurate, of course threads _may_ simplify your design, which
| 181061 [snowzone5 ho] that's what i find. threading helps keep track of things that should
+ 180940 [nugend gmail] Uh, yeah, that's pretty much why not all code is threaded.
  + 181010 [david vallne] This is pretty much one of the few good reasons to use threads on a
  + 181063 [bob.news gmx] Like reading from or writing to another resource.  Exactly.  Ruby's

^ Re: hierarchic data structure
180936 [bob.news gmx] "henon" <meinrad.recheis@gmail.com> schrieb im Newsbeitrag
180970 [meinrad.rech] sure there's no problem implementing it ... I guess it has been
181065 [bob.news gmx] The basic idiom is so simple (two lines, see my last posting) that it

^ [ADV] Next beta of Rails Recipes is available
180939 [dave pragpro] The second beta of Rails Recipes, Chad Fowler's killer book or

^ Trouble with FileUtils.rm_rf / .rmdir
180941 [ByrneJB Hart] I am trying to dynamically setup and teardown a directory structure for
180953 [ByrneJB Hart] I can get this to work if I force :secure => FALSE but I do not see why

^ Help with Ruby-Activeldap
180967 [crdiaz324 gm] Anyone have some experience with Ruby-activeldap?  I am trying to

^ system() help
180971 [zelston prin] are there any docs describing how to get stderr vs stdout from a
+ 180973 [ruby-forum-r] You might want to look at IO.popen or Open3 from the
+ 180975 [matt.smillie] require "open3"
  180976 [Daniel.Berge] Use the block form. :)
  180978 [Gennady.Byst] system() does not do anyting with stdout or stdin, and it returns true
  180979 [Gennady.Byst] ^^^^^ stdout, of
  181237 [damphyr free] Well all of this is nice if you work on Unix/Linux/OS X.

^ Simple mail send ... CGI or ActionMailer ?
180990 [info johnale] I want to send some mail using ruby as the CGI.
+ 180992 [logancapaldo] You don't have to use the whole Rails stack to make use of ActionMailer.
+ 180994 [ara.t.howard] require "net/smtp"
+ 180995 [james_b neur] I have a script that checks my library for DVDs, and mails my cell phone
+ 181014 [david vallne] You can also use the TMail or RubyMail or whichever else mail packages there
| + 181085 [info johnale] David,
| + 181087 [info johnale] David never mind my question on this.  I found it.
+ 181092 [info johnale] Again a followup question.
  181171 [david vallne] You don't need to remember the SMTP format with the headers and stuff, that's

^ Checking for gems that need to be updated
180996 [pergesu gmai] Is there an easy way to list which installed gems are out of date?
+ 180998 [vjoel path.b] Why not just do
+ 181000 [pit capitain] Windows, I think you'll have to change the way I call the gem command.
+ 181094 [iangordon uk] I am considering learning ruby but tend to program graphics. Will ruby be
+ 181095 [iangordon uk] I am considering trying  ruby but use graphics a lot, so will ruby be of

^ Syntax questions
181018 [listrecv gma] 1) Anyway to do use the default arg for nonlast params?  Something
+ 181020 [david vallne] I don't think so, would be a PITA to parse / check against typos. Use an
| 181057 [rossrt rosco] Seriously? If that's true, I hope it never comes to pass. I don't think
| 181169 [david vallne] Hmm, it's not on eigenclass, so I might have been hallucinating. IIRC,
+ 181066 [bob.news gmx] No.  You have to use one form of keyword arguments (for example by using a

^ Xpath to attributes
181019 [listrecv gma] Is there anyway to do generic xpath's, for both elements and attributes
181190 [w_a_x_man ya] class Array; alias atr first; alias txt last  end

^ rubynuby - client side Ruby?
181027 [jp jeffpritc] I would like to be able to do client-side scripting things that in the
+ 181028 [merc mobily.] Unless you are planning on developing for an intranet where you'd
| 181029 [james_b neur] I believe you can use ActiveScript Ruby for this, but it requires that
| + 181030 [merc mobily.] Out of curiosity... can you give me a link about this one?
| | 181046 [james_b neur] ActiveScriptRuby 1.8.4.1
| + 181097 [julian.kamil] When completed, Pandora (http://pandora.rubyveil.com/) will allow Ruby
| + 182450 [ces.fci gmai] using JavaScript is definitely a good idea.. there is also ruby.js
+ 181034 [hristo.deshe] SGkgSmVmZiwKCk9uIDIvMjIvMDYsIEplZmYgUHJpdGNoYXJkIDxqcEBqZWZmcHJpdGNoYXJkLmNv
  181035 [hristo.deshe] T24gMi8yMi8wNiwgSHJpc3RvIERlc2hldiA8aHJpc3RvLmRlc2hldkBnbWFpbC5jb20+IHdyb3Rl

^ force at_exit/ensure NOT to run
181032 [ara.t.howard] i'm trying to debug something and thought i could prevent some at_exit and
181033 [ksruby gmail] Have you tried Kernel#exit! ?

^ Converting Integer to binary string
181036 [hhausman gma] I tried searching the list for this, but didn't see the answer
181037 [ksruby gmail] 585.to_s(2)
181040 [hhausman gma] Dah! Thank you.

^ trouble with rexml
181047 [hongseok.yoo] I read XML file using REXML.
+ 181076 [nohmad gmail] What encoding scheme did you use?Show me the content of Element.text.
| 181165 [noriyuki.tak] Dear Yoon,
+ 181175 [hongseok.yoo] I think it may be a problem of REXML.
  181197 [nohmad gmail] irb(main):011:0> puts Iconv.iconv('utf-8', 'euc-kr', "\267\347\272\361").firstí쥭ãñ¡¢ùé¥ã=> nilirb(main):012:0> p Iconv.iconv('utf-8', 'euc-kr', "\267\347\272\361").first"\353\243\250\353\271\204"=> nil

^ How to develop on OS X + debugger problems
181048 [dirk.dittert] I just started developing Ruby on OS X and didn't find any good IDEs.
181052 [edder tkwspi] You might want to think about using your favourite editor (scite,
181059 [dirk.dittert] I already looked at mr_guid but had some problems compilining the
181096 [info johnale] I have tried for weeks to get mr_guid working on OS X.  I cant.  mr_guid
+ 181121 [dirk.dittert] Thank you. I guess you just saved me from trying for a couple of hours.
+ 181126 [logancapaldo] charset=US-ASCII;

^ Re: [OT] Xpath to attributes
181056 [rossrt rosco] d = REXML::Document.new <<EOX

^ A regexp for an include? method
181064 [eric.boucher] myArray.flatten.include?(/myPattern/)
+ 181068 [bob.news gmx] It's because include? uses #eql? or == for comparison while regexp matching
| 181072 [semmons99 gm] data.match(/TC_TP/)
| 181112 [bob.news gmx] It doesn't return the matching string but an object of type MatchData.  The
+ 181074 [james graypr] => ["TC_TP1", "TC_TP2", "TC_TP3"]
+ 181135 [w_a_x_man ya] myArray.flatten.grep(/myPattern/)

^ FAQ and JavaScript vs. Ruby (was Re: rubynuby - client side Ruby?)
181067 [ruby anthrop] } I would like to be able to do client-side scripting things that in the

^ Pluginfactory.rb - my door to insanity
181069 [merc mobily.] As a matter of principle, I am studying the pluginfactory plugin
181075 [gene.tani gm] ...
181211 [merc mobily.] OK. While this is indeed a nice "trick" (in fact, it's really

^ New to OOP and Abstract Session Pattern
181071 [merc mobily.] As some of you know, I would like to start "thinking" in objects. So,
181084 [james_b neur] Patterns may make little sense if you've no experience with OO.  Simply
181102 [merc mobily.] OK thanks James!
181144 [nugend gmail] Well, the thing is that the AbstractSessionPattern in Ruby looks
181145 [nugend gmail] Yeah, I didn't finish my sentence there, d'oh (need a way to edit

^ How to evaluate file as Ruby code?
181077 [u235321044 s] How do I evaluate a text file as a sequence of Ruby statements?
+ 181079 [chris.hulan ] require <file> will load and evaluate the file once, but will not load
| + 181081 [caleb aei-te] Keep in mind that using load keeps local variables local to their scope
| + 181218 [u235321044 s] This is exactly what I'm looking for (and for my problem it is
|   181220 [dblack wobbl] I believe rescue on its own catches RuntimeError and its descendants.
|   181256 [hhausman gma] I think rescue by default only catches StandardError (and descendants).
+ 181080 [rossrt rosco] It's just the way Ruby works with respect to deciding whether 'a' is a
| 181130 [vjoel path.b] For example, http://raa.ruby-lang.org/project/script
+ 181088 [wybo servaly] first, def=5 is a problem because def is a reserved word

^ A small refractory problem
181083 [byrnejb hart] def move(sourcedir,globspec,targetdir,suf=nil)
+ 181086 [byrnejb hart] Please forgive the missing _ in the first example.
+ 181089 [rossrt rosco] def move(sourcedir,globspec,targetdir,suf=nil)
  181098 [byrnejb hart] Yes, it does help, very much so.  The .move method is essentially
  + 181099 [byrnejb hart] .move method rather than move class is what I intended to write.
  + 181106 [rossrt rosco] Well, glad to be able to help :)
    181107 [byrnejb hart] And a very good one at that.  I can see that I have much to learn.  This
    181119 [byrnejb hart] This is the entire class. The test unit setup follows.  If you have the

^ puts behaviour
181100 [byrnejb hart] I have a number of "puts" in my testcase file.  When I run my test
+ 181101 [Daniel.Berge] Why?
| 181122 [byrnejb hart] So that I could see certain values as they changed while developing the
+ 181212 [jim weirichh] If you are running this as part of the standard Test::Unit test case
  181278 [byrnejb hart] Are these '.'s pushed onto some sort of string variable in TestUnit
  181290 [dharple gene] I don't quite know what you are asking, but --
  181296 [byrnejb hart] Without examining the code, which is probably the next step, I speculate
  181299 [none none.ne] Right, no, the '.' is just a progress indicator, one for each

^ [ANN] Subversion Handy Backup, rev 9
181108 [neoneye gmai] 1.  creates a hotcopy of your subversion repository.

^ How does one get a String representation of an Array (not to_s)?
181111 [junk5 micros] (I know about to_s --- that isn't what this post is about!)
+ 181114 [ara.t.howard] inspect
+ 181115 [rossrt rosco] s = [1,2,[3,4],5].inspect
+ 181116 [1337p337 gma] a.inspect is probably what you're looking for.  'p a' will print it
+ 181118 [bob.news gmx] puts a.inspect
+ 181120 [junk5 micros] Thanks all!

^ nested arrays
181113 [nospam xxx.c] I'm new to this gem called ruby, but having difficulties generating nested
181117 [bob.news gmx] Because in the first case you provide just a single object that is used for
181125 [nospam xxx.c] Array.new(size, obj) means [... is created with size copies of obj (that is,

^ 'why ruby?' presentations
181124 [ara.t.howard] i know they crop up from time to time on the list...  if anyone out there has
+ 181132 [vjoel path.b] Can you tell us a little about the project?
| 181141 [ara.t.howard] i sit across from, and am advising, the guy whos in charge of identifying
+ 181161 [james_b neur] Have you looked at
  181164 [ara.t.howard] i hadn't - thanks!

^ [ANN] Mongrel 0.3.6 -- Win32 Service/Rails Real Good
181129 [zedshaw zeds] This release of Mongrel should make the win32 folks go crazy.  Thanks to

^ [ANN] Ruby Dinner in St. Louis, Missouri
181131 [curt.hibbs g] We are going to have a dinner gathering of Rubyists in St. Louis during the

^ Writers needed for The Ruby Bookshelf project
181133 [julian.kamil] I'd like to get help in converting existing open-licensed Ruby language

^ install problem:: rdoc/ruport from gem
181134 [henning.jans] I have the above mentioned problem - ruport fails while installing from
+ 181136 [logancapaldo] I think you want to do something like
| 181142 [gregory.t.br] It's just sudo gem install rdoc.
| 181139 [gregory.t.br] whoops!  sudo apt-get install rdoc
| 181140 [gregory.t.br] ...
+ 181143 [gregory.t.br] For those using ubuntu, I've strung together a mess of commands
+ 181150 [g_ogata optu] Unfortunately, Debian's distribution of ruby kinda sucks.  What

^ Re: [SOLUTION] metakoans.rb (#67)
181138 [email55555 g] Just coded to pass all koans.

^ FAQ and JavaScript vs. Ruby (was Re: rubynuby - client side
181146 [jp jeffpritc] Greg,
+ 181177 [david vallne] Just plugging Ruby into browsers wouldn't really solve the API problems. A
| 181179 [billk cts.co] Hmm... JRuby as an applet?  ;)
| 182387 [headius head] FYI, this is more a limitation of the Bean Scripting Framework than of
| 182391 [billk cts.co] Cool, nice to know!
| + 182435 [enebo acm.or] A more detailed explanation of BSF is at jakarta.apache.org/bsf.  We
| + 182436 [headius head] Well as long as you're giving this a try, I'll see if I can help.
+ 181183 [ramon.leon g] Then learn Smalltalk and be done with it.
  181191 [james_b neur] Yeah, but then he'll get antsy again, and someone will tell him to learn

^ [ANN] Ruby Dinner in St. Louis ** change to Saturday **
181148 [curt.hibbs g] I can't believe I scheduled this during the NFJS Keynote & dinner -- arrrrg=

^ Re: [ANN] Ruby Dinner in St. Louis ** back to Friday **
181151 [curt.hibbs g] I promise... this is the last you'll here from me.

^ Dynamic code generation and linking
181153 [benjohn fysh] I'm very interested in being able to dynamically generate, compile,
+ 181154 [joshua rever] I had exactly this idea recently!  I was particularly interested in
| 181246 [matti.georgi] I worked on a compiler backend, which actually does this. It takes a
| 181328 [benjohn fysh] Thank you very much for your suggestions and interest everyone. The
+ 181158 [logancapaldo] charset=US-ASCII;
+ 181159 [ara.t.howard] you want to check out rubyinline and ruby/dl.  the later is an interface to
  181180 [drjflam gmai] If you're interested in the CLR / .NET, my RubyCLR bridge uses Ruby to

^ Converting a string to a class
181155 [aderobertis ] module SomeModule
+ 181157 [gregory.t.br] why do string conversion?
| 181231 [aderobertis ] I'm scanning a directory for plugins and loading them. When I load a
| 181245 [james graypr] You can do this without using the name assumptions in Ruby, if you
| + 181248 [ara.t.howard] i've abstracted this pattern as the 'dynaload' library here
| + 181250 [mtrier gmail] Thanks for the info.  I'll have to keep that in mind.
+ 181160 [james graypr] The usual idiom for this is const_get().  It's a little tricky in
  181232 [aderobertis ] Thanks! That'll work great, especially since the SomeModule:: part is
  181241 [mtrier gmail] Just learning, but what's wrong with eval?  I do something like the
  181243 [james graypr] eval() is a very powerful tool that we probably shouldn't use unless

^ Cross Compiling Ruby external modules for the Nokia 770.
181167 [kenosis gmai] Greetings,

^ Noob has trouble with io/wait on Windows
181170 [ribs acm.org] I'm trying to use the "io/wait" library (using "require 'io/wait'") but
181206 [dave burt.id] Larry Edelstein asked...
181360 [ribs acm.org] Thanks Dave.  Color me "grumbling" for not being able to find this info

^ YARV benchmarking
181176 [none none.ne] With YARV 0.4 out, I ran the benchmark suite and got some
181219 [luc honk-hon] (The ones where YARV is slower marked with *'s.)

^ setting nil to zero
181178 [botp delmont] is there a setting to set nil to zero? something like $NIL=0, then set it back again to $NIL=nil...
+ 181182 [mike stok.ca] If I'm doing that with a hash then I use 0 as a default value e.g.
+ 181184 [ara.t.howard] why not
+ 181185 [logancapaldo] s.each do |w|
| 181188 [botp delmont] #    f[w] = f[w].to_i + 1
+ 181200 [bob.news gmx] .... and if f is not a Hash you can do
  181202 [dave burt.id] You want an integer from Mr. Nil? Just ask him.
  181204 [botp delmont] #f[w] = (f[w] || 0) + 1
  181208 [bob.news gmx] => {}
  181209 [botp delmont] #Why so complicated?  Why not just

^ Mr. Guid 0.2 (Cross-platform Ruby GUI Debugger)
181181 [ffsnoopy gma] Mr. Guid 0.2 is a milestone release because it can now be run on both
+ 181198 [henon.man gm] thanks for this !!!
+ 181214 [ffsnoopy gma] Sorry all, I am having some instability issues in the windows version I
| 181371 [ffsnoopy gma] Okay, my experiments show that TCP in the Windows version of Ruby
| + 181372 [billk cts.co] through 1.8.2, Ruby didn't support non-blocking socket I/O on
| | 181473 [ffsnoopy gma] Unfortunately, I cannot use the send or recv commands because of
| | 181478 [billk cts.co] I primarily use send/recv with TCP.  It's not hard to make a
| | + 181483 [ffsnoopy gma] Bill,
| | + 181484 [ffsnoopy gma] I guess the previous message didn't get through...
| |   181487 [billk cts.co] What I meant, is it's fairly trivial to write wrappers
| |   + 181490 [ffsnoopy gma] Well Bill, if you can write some wrappers for gets and puts to get the
| |   | 181566 [billk cts.co] As it happens windows ruby didn't support nonblocking I/O in 1.8.2
| |   | 181628 [ffsnoopy gma] Hey thanks Bill! I am happy to say that your wrapper works...most of
| |   + 181501 [meinrad.rech] why don't you post a gets that is a wrapper of recv? i think that would hel=
| |     181509 [billk cts.co] this software done in time to send to the people who have
| + 181393 [meinrad.rech] could you introduce a switch to turn of the usage of TCPServer
| | 181475 [ffsnoopy gma] This is not possible. Mr. Guid depends on TCP to do its debugging. Any
| + 181629 [ffsnoopy gma] With Bill's wrappers, I can get remote debugging to work, but local
|   181907 [ffsnoopy gma] Okay, so running Mr. Guid on Cygwin turned out to be a flop. I can
+ 181477 [steve waits.] Looks cool.  Simple and to the point.
  181482 [ffsnoopy gma] Theoretically it should work on OSX because it can run linux apps. I
  181713 [logancapaldo] charset=US-ASCII;
threads.html
top