371719-373029

371558-373214 subjects 371955-372840

^ how to broadcast a service over the network for clients to discover without any need for server IP
371719 [dearsaravana] how to broadcast/multicast a service over the network for clients to
371726 [zregvart gma] zoran

^ Options in a class
371728 [pal palbergs] I have some problems understanding the basics of classes and modules in
+ 371729 [wagner.andre] module Abc
| 371734 [jgabrielygal] irb(main):010:0> module Abc
+ 371733 [transfire gm] ke
| + 371735 [jeremy bopp.] def initialize(arg1, arg2, opts = {})
| + 371739 [pal palbergs] There it is. Thanks :-)
+ 371737 [pal palbergs] What about being able to pass different values to :color, like :color =>
| + 371738 [jgabrielygal] irb(main):028:0> module Abc
| + 371740 [jeremy bopp.] module Abc
+ 371911 [pal palbergs] What if I would like to pass several values, with some set with a
  371914 [jeremy bopp.] module Abc

^ A use case for strmask gem?
371730 [transfire gm] simply b/c it had a certain logical sense to it. However, to this day
371741 [shortcutter ] Frankly, from the description it's not clear to me what this is
371755 [transfire gm] Fair point.
371794 [shortcutter ] The term "escape character" for me has a different connotation: it is

^ Spreadsheet gem
371731 [johan.tempel] Here is a newbie question on the spreadsheet gem.

^ How to overwrite standard puts method
371749 [aitkin optie] I'm pretty new to ruby.
+ 371751 [code apotheo] Have you tried using sprintf to format output before printing it?
+ 371752 [jude.dashiel] WW91IGNhbiBwcm9iYWJseSByZWRpcmVjdCBhbGwgdGhhdCBvdXRwdXQgdG8gYSBmaWxlIHdpdGgg
+ 371753 [shortcutter ] There are several methods that write to stdout (off the top of my head
| 371797 [aitkin optie] It looks like I did not explain my problem correctly.
| 371827 [shortcutter ] What kind of structure do you expect to get?  As far as I can see
| 372009 [aitkin optie] Robert,
| 372024 [shortcutter ] You should then probably look into set_trace_func as another option.
+ 372027 [aitkin optie] Robert,

^ Re: Accessing SVN repository through Ruby
371756 [david_v_wrig] I just wanted to post that there is now a svn ruby gem, which makes this

^ net/smtp Multiple Email recipients Issue
371758 [binaryalias ] I am having an interesting issue. I just recently modified a script from
+ 371760 [seanh1313 tx] Here, this is something that I have been working on...You may be able to modify it to get you in the right direction.
+ 371779 [binaryalias ] field to work. You basically put each individual in a sperate To: Line.
+ 371790 [dglnz2 gmail] May I suggest you use Pony?

^ [ANN] net-http-persistent 1.4.1 Released
371766 [drbrain segm] net-http-persistent version 1.4.1 has been released!
371785 [no spam.plea] Nice one, Eric!
371985 [no spam.plea] Bump?
372063 [mike.dalessi] If you're looking for multiple concurrent HTTP connections, take a look at
372088 [no spam.plea] Cool project, but not what I mean.

^ Some Ruby assistance
371783 [chris evil-c] I was wondering if someone could help me with a bit of Ruby programming.
371807 [robert.dober] your request seems a little too complex to be handled on the ML, to

^ problem using an external thread with ruby
371789 [aotto1968 us] I have an problem ....

^ File creation
371791 [raperswil gm] All
+ 371793 [hanmac gmx.d] try "File.open" in stat of File.new (ka if it different)
+ 371809 [jeremy bopp.] You need to make sure that the directory that will contain the file

^ What happened to h2rb (C header file translator)
371798 [scott.roland] I was searching for some way to use C header files (mostly #defines)

^ ruby-forum truncating threads?
371799 [b.candler po] If you look at the forum index at
371855 [x-ruby-lang ] Oops, you're right. Fortunately it's a simple case of a cache not

^ handling java script popups(onclick)
371802 [phanichinimi] I have a problem while "handling popups".
+ 371850 [rogerpack200] Do you start this thread before issuing the click?
+ 371854 [kevinderosse] The best thing I have found is to start a popup handler script in a sub
+ 372118 [phanichinimi] Yes I have started popup handler thread before "click".I have seen that
+ 372119 [phanichinimi] I have been using popup handler in a thread( which is almost equal

^ Object Identification in Watir
371803 [manjunath.rp] I am new to watir. I have been reading materials on watir for past few
371815 [john.allen e] You have to keep in mind that Watir was built for interacting with a web

^ How do i provide password for su command while using net/telnet in ruby
371804 [amittomer25 ] Am using Net/TELNET to connect to remote host trying to run su
+ 371805 [ryand-ruby z] su
| 371806 [amittomer25 ] Network security is not an issue for me and i just want to make su
| 371843 [djonavarro g] Well if you are timing out maybe try to thread it.
+ 371851 [jeremy bopp.] I want to think that the problem here is that the su program expects to
  371890 [amittomer25 ] You are right this is how i solved it
  371935 [jeremy bopp.] Actually, your solution of looking for su's prompt and then sending the

^ Setting local variables for 'erb' command-line tool
371810 [b.candler po] I have a bunch of *.erb files which I would like to expand using the
371828 [james grayso] erb has a command-line switch to require a library.  That library could =
371831 [b.candler po] Thanks for that idea.

^ Nokogiri & Rb 1.9.2-p0
371812 [flebber.crue] Is there an error with nokogiri and title recent windows build of ruby
+ 371879 [flebber.crue] =3D0&Find=3DFind "
+ 371881 [ryand-ruby z] You'd be much better off bringing this up on the nokogiri mailing list =
  371884 [flebber.crue] filing a ticket in their issue tracker. This mailing list is not good for =
  371887 [flebber.crue] or filing a ticket in their issue tracker. This mailing list is not good fo=

^ Re: How to print FULL stacktrace of exception w/ line #?
371816 [krukid gmail] hahah :) nice one

^ Freeze method doesn't work
371817 [2ys.pro gmai] Freeze should prevent further modifications to 'var'...
+ 371819 [jgabrielygal] Variables reference objects. It's the object you can freeze, not the
+ 371820 [jeremy bopp.] The freeze method doesn't operate on var itself.  It operates on the
| 371823 [2ys.pro gmai] Thank you Jeremy a lot!
+ 371822 [stefano.croc] str = "hello"

^ 1.9.2 irb and readline problem on ubuntu
371825 [gditrick fus] All,
371832 [gditrick fus] Well, I got it to work.  But, not 100% sure what did it.
+ 371833 [jgabrielygal] Let us know how it goes, cause exactly the same thing happened to me,
+ 371877 [qrprat77 gma] If you didn't have the libreadline5-dev installed on your system before,
  371900 [gditrick fus] Yea, I figured that was it.  But, is seems to me that if rvm can

^ win32ole IE
371829 [dejan1 gmail] I am using native ruby api calls to IE without waitr to retrieve
371835 [artonx yahoo] I could get the code by
371837 [dejan1 gmail] Thanks for the snippet and alternative solution.

^ Set landscape orientation with Spreadsheet
371834 [erik.l2c gma] Does anyone know if there is a way to generate Excel spreadsheets with

^ <Class info> from a String.
371836 [huw_taylor h] class Hew
+ 371840 [josh.cheek g] If I understand what you mean, then what you really want is the inspect
| 371845 [ammarabuali ] t.
+ 371847 [b.candler po] Maybe you're looking for ObjectSpace._id2ref
+ 371866 [ryand-ruby z] bit.

^ Re: some personal rambling on java the lang
371842 [namekuseijin] that can't be right.  OOP feels so friggin' sweet in an apt language
371886 [xahlee gmail] Yes, that's my feelings as well. I don't think i like OOP at all, but

^ [ANN] lorax 0.2.0 Released
371848 [mike.dalessi] lorax version 0.2.0 has been released!

^ Re: Digest Articles 371703-371796 (1/2) (ruby-talk ML)
371849 [bill mcleans] [>>] help

^ How to use gems in irb on ubuntu?
371852 [ajfrenzel we] I want to use the gem date_easter in irb, but entering require
+ 371853 [rogerpack200] require 'rubygems'
+ 371856 [jeremy bopp.] You need to require the rubygems module first and the require your gem
+ 371859 [ajfrenzel we] Thanks.

^ Ruby 1.9.2-p0 mingw32 on vista 64 -- interpreter crashes calling thread.join
371858 [kevinderosse] t = Thread.new {somecode}
371870 [rogerpack200] you could attach gdb to it to get a backtrace.

^ RubyGems and ruby versions
371860 [dennybritz g] I am running Ruby 1.92 on Mac OSX, but for some reason rubygems is not
+ 371861 [x-ruby-lang ] What does "which gem" say?
| 371862 [dennybritz g] which gem
| + 371863 [Rob AgileCon] In Ruby1.9, rubygems is built-in even though there is still an
| + 371864 [dennybritz g] So I guess I can use /usr/local/bin/gem instead. But when I type a gem
+ 371869 [dennybritz g] I think I installed ruby from source, I don't quite remember. I now put
| 371876 [Rob AgileCon] Does this give you any clues? (If not, post the output for all to see)
+ 372056 [yabachi gmai] Hey,

^ Kind of nested loops
371865 [vikadik yaho] I am trying to get this going where i have this build array and then I
+ 371867 [vikadik yaho] And this code works when I explicitly give the array name
+ 371868 [ryand-ruby z] look at rake instead.
+ 371871 [astahl hi5.c] Er, why would you want to store an array of hashes like that, instead of
+ 371872 [vikadik yaho] A good idea of using rake, but I have a reason not to use rake and build
| 371874 [jeremy bopp.] I can't add anything more than has already been said for the direct
+ 371873 [zebramaedche] =C2=A0 =C2=A0 =C2=A0=3D> =C2=A0'/home/des/blocks/where.rb'},

^ Is it possible to find out if an identifier is a method alias?
371878 [ammarabuali ] => nil
371880 [djberg96 gma] class Foo
371896 [ammarabuali ] Thanks Daniel. That's helpful.
371903 [shortcutter ] se
+ 371904 [ammarabuali ] lse
+ 371964 [djberg96 gma] Regards,
+ 371966 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
  + 372047 [ammarabuali ] You inspired me to take a look and you are right on. alias just
  + 372065 [robert.dober] <snip> In 1.9.2, anyway, #instance_methods seems to list methods in the ord=
    372066 [ammarabuali ] If I understand how this works correctly, then remove_method is only
    372116 [robert.dober] That is my understanding too.

^ Gem Commands with Nokogiri
371882 [flebber.crue] I am on windows XP.
371883 [luislavena g] Nokogiri already provides binaries for RubyInstaller precisely to

^ How do I highlight Ruby code on a GitHub wiki?
371892 [albertschlef] I understand this question is a little off-topic here, but the
371893 [albertschlef] Hurrey!!! I've found the answer!!!
371894 [albertschlef] I actually want to highlight code I put in a "README.markdown" file. I
371895 [josh.cheek g] I don't think you can, it looks like they are handled completely

^ How do i split a file by newline
371897 [amittomer25 ] I would like to know how do i split a file by newline ,am
371898 [unbewusst.se] #! /opt/local/bin/ruby1.9
+ 371899 [amittomer25 ] Thanks frnd
| 371902 [unbewusst.se] File.open("amit.txt").each {|l| k<<l }
+ 371906 [shortcutter ] Even simpler

^ Weird behavior with exec /backticks
371901 [timuckun gma] I have the following shell script that I call with backticks

^ Problems with gem installation on Windows
371905 [romikoops1 g] I am looking for ruby expert for installing 'libxslt-ruby' gem on
+ 371907 [daniel.lidst] if you are using cygwin you can probably find those libraries in the setup
+ 371912 [luislavena g] Please ask the gem author to provide binaries for MinGW based ruby

^ Packers and movers
371908 [weblogics.tr] Aggarwal movers is  providing best services like packers and movers

^ Process for optimizing ruby code
371909 [wagner.andre] So, I've got a chunk of code which needs optimizing. Yes, it really needs
+ 371915 [shortcutter ] That's the usual approach when tuning: take the slowest part, make it
| 371926 [jgabrielygal] come
+ 371930 [ryand-ruby z] numbers
| 371956 [shortcutter ] Very good advice IMHO!
+ 373029 [chastell cha] My advice would be to check out perftools.rb=C2=B9 and the generated graphs,

^ [ANN] outsider 0.0.2 released
371910 [stefano.croc] Outsider 0.0.2 has been released.

^ rspec-rails-2.0.1 is released!
371913 [dchelimsky g] The rails-3.0.1 release excluded a change that I had naively expected to =

^ Processing regular expressions?
371916 [jasenj1 gmai] I'm interested in manipulating & munging regular expressions, not the
+ 371917 [ammarabuali ] I haven't found anything like that yet. Would love to hear about any such tools.
+ 371920 [ammarabuali ] I haven't found anything like that yet. Would love to hear about any

^ [ANN] test-loop - Continuous testing with fork/eval
371918 [sunaku gmail] test-loop - Continuous testing for Ruby with fork/eval
371976 [sunaku gmail] I just released version 1.0.1, which cuts

^ Error msvcrt-ruby18.dll
371919 [spavuluru gm] I installed ruby 1.9.2, i am getting follwing error
371977 [luislavena g] You're receiving this because the gem that you're trying to use has

^ Ruby Standard Environment
371921 [dnorcott mts] I am running windows XP professional with Ruby 1.92. I have a Ruby
371928 [sutniuq gmx.] I think which gems one has installed depends on which are needed. I just
371929 [stuart stuar] I agree with Quintus - to run the standard implementation of Ruby on =
371931 [dnorcott mts] I no longer know where I got my Ruby install from, just followed
371948 [sutniuq gmx.] I suppose you got your mswin32-Ruby from ruby-lang.org as a simple ZIP

^ [TestUnit pack] Unequal equality
371922 [felix.leg vp] [terminal_output]
+ 371923 [joelvanderwe] Probably it's due to IEEE floating point inaccuracy. Try using
+ 371924 [ryand-ruby z] is not equal. WTF? Is it some bug in TestUnit package, or my program =

^ Setting variable with either value
371925 [pal palbergs] Is there a better way to write this?
371927 [Rob AgileCon] @a = @b || "abc"

^ nokogiri DocumentFragment code blowing up
371932 [dnorcott mts] I was attempting to experiment with Nokogiri::HTML::DocumentFragment and
372071 [dnorcott mts] Just to close this off

^ check contents of a pointer.
371936 [edvelez.g gm] I created a function pointer that points
+ 371939 [devguy.ca gm] try m.fptr.name
| 371962 [edvelez.g gm] no such method :\
| 371972 [shortcutter ] What version of Ruby are you using?
+ 371974 [edvelez.g gm] $ irb
| 372003 [yermej gmail] ruby-1.8.6-p399 > "".method(:length).inspect.match(/#([^#]*)>/)[1]
+ 371975 [edvelez.g gm] How should I get 1.9.1,
| 371988 [josh.cheek g] In all honesty, use rvm (http://rvm.beginrescueend.com/).
| 372000 [edvelez.g gm] I don't understand what you mean by "setting an environment variable in
| 372035 [josh.cheek g] They explain how to do it in the walkthrough
+ 372037 [edvelez.g gm] Thank you for your help

^ My First Time
371940 [travis.garri] I have Perl and PHP experience.  I love the idea of true OO and wanted
+ 371946 [ryand-ruby z] charset=us-ascii
| 371949 [ammarabuali ] rubygems should required by default under 1.9, what the OP seems to be
+ 371953 [b.candler po] I think it's a problem with the gem itself. It's looking for a file
| 371981 [josh.cheek g] The one on github (http://github.com/lisa/reve the one linked to by
| 372060 [josh.cheek g] I let her know that the VERSION file wasn't getting into the gem, and she
+ 371980 [travis.garri] Wow, thank you guys for the support.  As I said, I'm used to Perl, so

^ Most elegant way: array of files from array of directories
371942 [spare frigid] I have a array of directories passed into my program. I want a new array
+ 371954 [jgabrielygal] irb(main):032:0> Dir["*"].each do |f|
+ 371957 [shortcutter ] You can always use a forward slash in Ruby.  Duplicate slashes are not
| 371971 [ninja slapha] Also worth mentioning: I don't know of any OSes Ruby supports which don't also
+ 371986 [w_a_x_man ya] dir_paths.map{|d| Dir[ File.join( d, "*") ] }.flatten.

^ Is this an executable code?
371943 [sbstn26 yaho] Time.local(year, month, day, hour, min, sec, msec)
+ 371945 [dhruva.sagar] local is a valid method for the Time class, you can check for that if wish
| 371947 [sbstn26 yaho] I think I get it now.  I typed Time.local(2010,10,16,15,50,33)
| 371950 [dhruva.sagar] well that is the syntax for using the method 'local'. The syntax mentioned
| 371951 [sbstn26 yaho] The book I'm reading IS for beginners, and it's really good, I'm just a
| 371952 [ammarabuali ] ment
| 371959 [sbstn26 yaho] Thank you guys.
+ 371960 [sbstn26 yaho] One more thing.
  371961 [ammarabuali ] The +0800 at the end of the output is a good clue. Time.at interprets

^ DL Library - Ruby 1.9.2 - Windows
371944 [jethrow gmx.] Does anybody know where documentation is for using the DL library in
+ 371968 [jhs408 gmail] A starting point is:  http://rubyforge.org/projects/win32utils/
+ 372158 [jethrow gmx.] require 'Win32API'
threads.html
top