270449-331908 subjects 270792-284429

Displaying Total Registered Users
270582 [craig.rackha] I'm looking for a way to display the total number of registered users on
270587 [fwmailinglis] charset="us-ascii"

Plugin like a Youtube
270584 [ggerman@gm i] Plugin for Rails. Funciontinality is upload Video, Audio and show inside web
+ 270585 [phlip2005@gm] You have to buy a system that pipes your movies into Flash. So the VCR
| 270586 [sepp2k@go gl] I think you're confusing video formats and players/browser-plugins here.
| 270608 [phlip2005@gm] Sorry - I'm not. If you want to push movies over the internet, the
| 270613 [sepp2k@go gl] Well, the above sounded like you were saying that WMV (the video format)
| 270616 [jeremymcanal] I believe his intent was to say that the WMV "plugin" or embed object
| + 270617 [sepp2k@go gl] I believed so too until he said that it wasn't.
| + 270620 [dangerwillro] Strictly speaking, the plugins for Windows Media Player, RealPlayer,
| + 270652 [phlip2005@gm] Actually I didn't know that so I didn't say.
|   271716 [tim.inman@gm] Hackety Hack is not really for hosting things on the web yet.
+ 270644 [adam.shelly@] If i remember correctly, Hackety-Hack (http:\\hacketyhack.net) has

oci8 oracle rowid
270588 [mark.pelleti] The OCI documentation says rowid is supported, and that the
270591 [mark.pelleti] c.execute("select * from dual where rowid = 'AAAAECAABAAAAgiAAA'")

best way to 'hide' a method when method_missing is in town
270596 [vinbarnes@gm] I am trying to hide a method in a subclass whose base class has
270600 [pbrannan@at ] The method is still private, and can't be called via Sub's public
270606 [vinbarnes@gm] I'm trying to hide attributes in a Rails model. ActiveRecord::Base has
+ 270614 [ymendel@po o] As you said, this problem can be solved with method_missing in Sub.
| + 270628 [ymendel@po o] Wow, excellent double-sig there.  To balance it all out, I won't put a
| + 270713 [thomas.mackl] Your suggestion seems to violate the notion of encapsulation.  If an
|   270825 [ymendel@po o] A parent's private method? I'm not sure I follow. Do you mean
|   271117 [thomas.mackl] Yes... that is the scenario I was referring to.
+ 270633 [gaspard@te i] Shouldn't you just use attr_protected ?
  270659 [vinbarnes@gm] It does not prevent the attribute from being used from an instance of
  270668 [gaspard@te i] What about this solution ?

[ANN] soap4r-1.5.8
270603 [nakahiro@sa ] 'SOAP4R' is an implementation of SOAP 1.1 (W3C Note).

Re: Django code sprint
270605 [matz@ru y- a] We should.  I really love to see the code fest for Ruby.  What do we
+ 270722 [znmeb@ce ma ] Either plus caffeine. :)
| 270749 [dblack@ru yp] Whoops, I stole your joke. 'Twas unintentional. I'm jet-lagged. /me
| 270926 [znmeb@ce ma ] Paul Erdos: "A mathematician is a machine for turning coffee into theorems."
+ 270745 [alex@bl ck e] I'm sure I heard of a Rubinius sprint being organised recently...
+ 270748 [dblack@ru yp] Caffeine :-)

IRB is dying on me
270622 [pbailey@bn .] Why is it that I can't repeat lines and edit them in IRB? If I press my
270624 [greg@cy er u] Sounds like your missing readline support.
270626 [pbailey@bn .] Sorry, but, I don't know what that is. Is that a gem I need to install?
270627 [greg@cy er u] Readline is the library that makes your irb behave more like a modern
270629 [pbailey@bn .] OK. Well, I'm on Windows and I didn't compile anything. Ruby's been
270660 [pbailey@bn .] Well, I tried everything including uninstalling and re-installing Ruby.
270730 [dangerwillro] Ask yourself if you've installed anything recently (since you last

literal quote in an array?
270631 [significants] using colons for now, but would like to somehow encapsulate a sentence
+ 270632 [rmagick@gm i] '"hello"'
+ 270634 [gaspard@te i] sentence = speaker[0] + expression[1] + content[0].inspect
| + 270636 [Rob@Ag le on] sentence = %{#{speaker[0]} #{expression[1]} "#{content[0]}"}
| + 270638 [significants] excellent, thank you
+ 270635 [sepp2k@go gl] speaker = %w(joe betty)
+ 270649 [phrogz@ma .c] Seeing what you're doing, I thought I'd show you my "String#variation"
  270651 [phrogz@ma .c] class Array

Calling Exec() in Windows versus UNIX
270639 [matthew.d.wi] exec("charting/RequestByProject.jar",params[:name]')
+ 270642 [shevegen@li ] Did you try with system() or `` instead? Or maybe IO.
| + 270643 [alex.doan@wa] You're escaping the 'R' in the above command.
| | 270648 [matthew.d.wi] I initially left it like that but when it wasn't working thought I had
| + 270653 [matthew.d.wi] @result = system("RequestByProject.jar "+params[:name]+"")
+ 270661 [vjoel@pa h. ] irb(main):004:0> exec "C:/Program Files/JGSoft/EditPadLite/EditPad.exe"
  270667 [vjoel@pa h. ] exec "C:/Program Files/JGSoft/EditPadLite/EditPad.exe", "C:/tmp/foo.txt"

my code hangs
270641 [significants] it DID (kind of) work and even exit, but only after going through one
270647 [adam.shelly@] as far as I can tell, the delete_at can't affect y.length, so this
270712 [significants] thank you, this fixed this problem

Re: I am new to Ruby and I could use some expert advice as t
270645 [shevegen@li ] I believe for _newcomers_, it is much easier and

active directory
270657 [martindemell] Is there any ruby library that will let me authenticate against an
+ 270664 [garbagecat10] ...
| 270675 [martindemell] The former. Will check out Net::LDAP - is there anything different I
| 270682 [garbagecat10] ...
| + 270691 [martindemell] thanks.
| + 270693 [listbox@ju i] ...
|   270704 [garbagecat10] ...
+ 271093 [celtic@sa ry] ...
  + 271111 [martindemell] Thanks a lot, Arlen, this looks extremely helpful!
  + 271121 [garbagecat10] ...

getting XPath in REXML to dive deeper
270662 [pbailey@bn .] I'm finally using REXML instead of plain vanilla Ruby to convert XML
270665 [phrogz@ma .c] The term you are looking for is 'descendants'. In XPath, '/' is
+ 270669 [mark@oc we .] ...
+ 270672 [pbailey@bn .] Yes, this helps. Thanks, Gavin. What I did, to get everything I needed

Favorite idiom for "keep doing this until it returns nil/false"
270663 [phrogz@ma .c] I want to keep running gsub! on a string until it returns nil. How do
+ 270670 [gaspard@te i] while str.gsub!( ... ); end
| 270671 [gaspard@te i] Sorry, I meant
+ 270673 [w_a_x_man@ya] Proper devotion to symmetry leads us to the knowledge that the
+ 270678 [m_goldberg@a] loop { break if str.gsub!(...).nil? }
+ 271026 [w_a_x_man@ya] 0 while str.gsub!( ... )
| 271027 [dblack@ru yp] I wouldn't worry; the first version isn't exactly "War and Peace" :-)
| 271106 [w_a_x_man@ya] ...
| 271126 [mental@ry ia] nil while war && peace
+ 271043 [robert.dober] a = "bccccce"
+ 271083 [ara.t.howard] loop{ str.gsub!(re, repl) or break }
+ 271172 [bigboss64@ip] Having been *gotten* accustomed to the

HTTP head request
270674 [transfire@gm] Hmm... how do a HTTP head request? Does 'open_uri' have something for
+ 270677 [alex@bl ck e] You don't mean ri Net::HTTP#head, do you?  :-)
| 272782 [rogerpack200] It would appear open_uri doesn't have anything useful for doing head
| 272786 [drbrain@se m] I believe this is an intentionally omitted feature.
+ 270680 [george@nu ru] require "net/http"

memory use question
270679 [rogerpack200] When I run a program, with these objects, it uses around 15-20MB of RAM,
270684 [dangerwillro] Why wouldn't it be?
270810 [rogerpack200] Yeah I think the problem is that I have the file incoming (a string),
270849 [dangerwillro] Handle the data in pieces whenever possible. Take smaller bites. It

Question about 2005 Ruby critique...
270689 [barcaroller@] I come from a C/C++/Perl background and I have been reading up on Ruby for a
+ 270694 [perrin@ap th] I think that line really says it all.  There's a *lot* of stuff that
| 270700 [shevegen@li ] I think the point about "side effects" is rather weak...
| 270747 [gaspard@te i] I think the "smaller then" sign is great. It means "This subclass is a
| 270754 [perrin@ap th] I like that description of your feelings about Perl and Ruby.  I feel
+ 270705 [bigboss64@ip] I'm familiar with a number of languages if not strongly with putting OOP into
| 270731 [perrin@ap th] Thanks.  I've got a million of 'em.  Well, a few dozen, anyway.
+ 270733 [wilsonb@gm i] Just a single correction here.. I won't bother with the rest..
+ 270757 [mneumann@nt ] In short, they are not valid at all (they never were), except the one

communicating w/ command-line program (OR ruby expect)
270692 [cameron.math] I'm trying to communicate w/ a command-line process w/ ruby.  I
270695 [yermej@gm il] On Sep 24, 4:57 pm, "Cameron Matheson" <cameron.mathe...@gmail.com>
270697 [cameron.math] This is what I'm looking for (something to interact w/ a program that
270698 [james@gr yp ] For FTP use Net::FTP, of course.  Otherwise, Ruby does ship with a
348395 [joahking@gm ] hey there,

[ANN] Erubis 2.4.1 released - a fast and extensible eRuby implementation
270702 [kwa@ku at -l] I have released Erubis 2.4.1.
270750 [gaspard@te i] I saw the benchmarks on the web page. They are impressive !

object_id 1, 2, 3
270708 [summercoolne] Fixnum   object_id
+ 270709 [Rob@Ag le on] $ irb
| + 270711 [summercoolne] irb(main):063:0> 1000.object_id
| + 270714 [summercoolne] you mean the 2002, 2004, 20002, 20004, etc are all for other immutable
+ 270719 [TimHunter@nc] ex$ irb
| 270857 [rick.denatal] One should keep in mind that these are interesting implementation
| + 271096 [celtic@sa ry] No -- nor should they be expected to be, under any circumstance.
| + 271139 [summercoolne] right, it is just from the curiosity standpoint.  that where did those
|   + 271141 [Rob@Ag le on] ...
|   + 271142 [rmagick@gm i] Object ids are memory addresses. Due to the way C programs (remember
|     271239 [drbrain@se m] You don't need to go quite so far.  OS X starts its heap at a low
|     271312 [summercoolne] so the object_id can be just the memory location of the object?  does
|     + 271347 [rick.denatal] For objects with immediate values, there is a global hash table which
|     + 271355 [drbrain@se m] For non-symbols and non-fixnums, it is the memory location of the
+ 271236 [ryand-ruby@z] ri ObjectSpace._id2ref

Sorting IP Addresses
270710 [barjunk@at g] I'm having to sort some IP addresses that are stored in a hash.  I
+ 270716 [daniels@pr n] sortedarray = hash.sort_by {|mac, settings|
+ 270808 [phrogz@ma .c] # May not be faster, but doesn't rely on the ipaddr library

Problem on compiling ruby in windows
270723 [sgwong513@ho] I am using the ruby one click installer all the while. Recently, I tried
+ 270725 [sgwong513@ho] I use the same technique to compile the tk binding. I can compile it but
| 270726 [sgwong513@ho] I had tried to compile it with pdcurse from gnuwin32 but it fails to
+ 270735 [znmeb@ce ma ] You might want to look at the RubyForge details for the Windows
  271165 [ml.chibbs@gm] I am working on an One-Click Ruby Installer update (currently stuck on

Re: This is why Ruby 1.8.6 can never be made to run anywhere
270727 [dolgun@ex it] Thanks for the well written post.  Can you give a little more insight
+ 270734 [ttmrichter@g] I'm not Bill, but I can give you a data point related to the one you're
| + 270737 [dolgun@ex it] Yes, I see that too.  Despicable behavior.  Thanks for the insights.
| + 270753 [perrin@ap th] I don't know about that.  I've seen a lot of indications, during my
| | + 270756 [alexey.verkh] No you aren't. Not at all.
| | + 270799 [byte8bits@gm] I use and enjoy both. They are different, and alike at the same time. I
| |   270971 [perrin@ap th] I think you accidentally left an additional attribution on that quote.
| + 270790 [robert.dober] ...
|   270796 [jameskilton@] ...
+ 270736 [znmeb@ce ma ] And why did you stop using Forth? Is there *really* a way to break the
  + 270738 [ttmrichter@g] I know why *I* stopped using Forth.  Forth was great when I was reading
  + 270770 [w_a_x_man@ya] With apologies to Stephen Crane.
  | 270772 [hramrach@ce ] Quack! Quack! :D
  | + 270784 [shaiguitar@g] there we go.
  | + 270835 [w_a_x_man@ya] I think they would say, "Croak!  Croak!"  (At least, I always do.)
  |   270921 [znmeb@ce ma ] Despite their close kinship with frogs, I can't recall ever having heard
  |   270983 [phrogz@ma .c] On Sep 25, 6:19 pm, "M. Edward (Ed) Borasky" <zn...@cesmail.net>
  |   270985 [znmeb@ce ma ] I've lived near swamps ... I guess the frogs I heard were really toads??
  + 270787 [ymendel@po o] On Sep 25, 12:24 am, "M. Edward (Ed) Borasky" <zn...@cesmail.net>

[ANN] pervasives-1.1.0
270732 [ara.t.howard] NAME
270769 [robert.dober] Ara,

[ANN] singapore.rb meeting for Sept 2007
270739 [bianster@gm ] ...

[ANN] Serve 0.9.0 Released
270740 [johnwlong200] Serve version 0.9.0 has been released!
270807 [tim.pease@gm] Take a look at the "launchy" gem. It can be used to start up the

can anybody tell  me please!
270741 [hariharan.sp] I have read about Exceptions.
270786 [jan.svitok@g] more or less arguments were sent to a method than expected

Extract numbers from string
270742 [eggie5@gm il] Say I have a phone number "(555) 555-5555" and I want to extract the
+ 270743 [nickclare@gm] ...
| 270751 [botp@de mo t] # new_num = old_num.scan(/\d/).join('')
| 270752 [dblack@ru yp] ...
| 270755 [botp@de mo t] #   old_num.gsub(/\D/, "")
| 270762 [jgabrielygal] I always wanted try the benchmark stuff, and this seemed like a good
| + 270763 [botp@de mo t] # I always wanted try the benchmark stuff, and this seemed
| | 271170 [bigboss64@ip] I find my self most often reaching for gsub! or tr but hey, that helps :-)
| + 270856 [eggie5@gm il] On Sep 25, 1:31 am, "Jes?s Gabriel y Gal?n" <jgabrielyga...@gmail.com>
+ 270746 [phil.meier@g] Regexp and gsub is an answer.

Problem with Iconv
270759 [phpcode@gm i] I have a weird problem with Iconv... I'm trying to use it to generate a
270775 [lparravi@gm ] Is this error happening with the same strings used as arguments?.
270797 [phpcode@gm i] Yes, it is the exact same string I'm using as argument!
270864 [phpcode@gm i] One "small" update...

Precedence of **
270768 [vikkous@gm i] I recently discovered that the precedence of ** seems to be at

Re: [ANN] Metadata 1.1
270773 [ilmari.heikk] It's working, but it's not on rubyforge. And I'm sort of queasy on

More information on REXML/XPath
270776 [pbailey@bn .] I'm trying to convert xml files to SGML. The publishing system at our
270785 [pbailey@bn .] Never mind. I think I got it. I'm obviously new to XML, so, I was
271193 [keith@au io ] HTH,

create a class in a class with eval
270777 [gaspard@te i] class Test
270783 [dblack@ru yp] Module.module_eval "class A; end"
270798 [gaspard@te i] Thanks for the answer. Works great.

Re: Erubis 2.4.1 released - a fast and extensible eRuby implementation
270781 [thomas.mackl] Great news!  I have been able to get my apps running with erubis if

I love Ruby but what is the deal with... this !
270788 [rubymaniac@g] I love Ruby but what is the deal with the lack of a VM ?
+ 270791 [ruby@an hr p] Ruby is a language written to scratch someone's (Matz) itch. It happens to
| + 270794 [rubymaniac@g] On Sep 25, 6:52 am, Gregory Seidman <gsslist+r...@anthropohedron.net>
| | + 270815 [wpmailinglis] Troll.
| | | 270867 [rubymaniac@g] Do you classify all those who have an opposing viewpoint as being a
| | | 270872 [phlip2005@gm] Classify someone who writes posts only to stir up trouble as a troll.
| | | 270890 [rubymaniac@g] Well pardon me for causing "trouble" simply by talking about the
| | | + 270892 [phlip2005@gm] (Another trolloid technique is frequently returning to appeasement and
| | | | + 270900 [dangerwillro] We know how slow it is and whether or not it is important.
| | | | | 270942 [rubymaniac@g] On Sep 25, 2:40 pm, John Joyce <dangerwillrobinsondan...@gmail.com>
| | | | | 271047 [ruby@an hr p] Okay, here's where I'm ready to call troll. Compare and contrast the
| | | | | 271169 [bigboss64@ip] Ruby Manic, it seems every where I look for you I seem to see tendencies for
| | | | + 270938 [rubymaniac@g] So who specifically would my remarks be offending, assuming I was
| | | + 270919 [znmeb@ce ma ] First of all, nobody is punishing anyone as far as I can tell. I see
| | + 270922 [cjs@cy ic ne] Well, that's debatable. It all depends on where you set your bar;
| |   270944 [znmeb@ce ma ] Once upon a time, there were *two* -- or was it three? -- Lisp machines.
| |   + 270952 [shevegen@li ] Ruby Maniac, please stop the ruby-is-slow crusade for a little while.
| |   | 270960 [grzm@se sp t] Marc (and others),
| |   + 274034 [cjs@cy ic ne] This sounds like an opinion held firmly enough that it's unswayable, but
| |     274045 [znmeb@ce ma ] Well ... that I think depends on the task to be accomplished. But in
| |     274095 [perrin@ap th] I tend to agree that it's better to reuse than to recreate.  Beyond that,
| + 270929 [znmeb@ce ma ] Most of the warts *I've* seen on Ruby are things it "inherited" from
|   270943 [rubymaniac@g] On Sep 25, 5:34 pm, "M. Edward (Ed) Borasky" <zn...@cesmail.net>
+ 270839 [rsanheim@gm ] Please don't feed the trolls.  Move along...nothing to see here.
+ 270941 [listbox@ju i] ...