368508-369033 subjects 368931-382537

how to use proxy?
368757 [myocean135@y] require 'rubygems'

KIlling a process inside a thread
368758 [ralphs@do 32] ...
368772 [shortcutter@] k tick.

Moderation of Mialing List
368759 [transfire@gm] Up until yesterday I have been moderating all messages by first time
368766 [transfire@gm] Sorry. I accidentally sent this to the wrong mailing list. It was

certificate verify failed
368763 [s_crajesh@ya] Am using a X509 PEM certificate with the key for integrating a payment
+ 368775 [b.candler@po] * the server verifying your client certificate
+ 368776 [b.candler@po] openssl s_client -CApath /path/to/cacert.pem -connect foo.bar:443
  368797 [s_crajesh@ya] Thanx Brian for your points..
  368801 [b.candler@po] You need to look at the certificate of the *other side* that you are
  368816 [s_crajesh@ya] Again thanx a ton Brian..
  368820 [b.candler@po] dir /s perhaps?
  368829 [s_crajesh@ya] Thanx a lot Brian for all your help..

[ANN] hoe 2.6.2 Released
368764 [ryand-ruby@z] hoe version 2.6.2 has been released!

[ANN] hoe 2.6.2 Released
368765 [ryand-ruby@z] hoe version 2.6.2 has been released!

why no assert_not?
368769 [martindemell] its argument is either false or nil.
+ 368778 [b.candler@po] Hmm, I would have thought "assert not ..." would work, but there is
| 368803 [martindemell] Yeah, but this one seems universal enough that it ought to be there by defa=
+ 368779 [ryand-ruby@z] this is why minitest has refute, which means it is available in ruby =
| 368815 [rick.denatal] FWIW
| + 368837 [phlip2005@gm] deny{} all the way.
| + 368838 [ryand-ruby@z] blah blah blah... I've been through all of this before and in public no =
+ 368841 [djberg96@gm ] test-unit 2.x has assert_false and assert_nil if that's any help.
  368845 [ryand-ruby@z] uhhh... you're fired?
  368847 [djberg96@gm ] Hah, that's what I get for not actually trying my own code out first.
  368880 [dblack@ru yp] !object would be equivalent there, and faster (about 1/3 the time for a

[ANN] ZenTest 4.4.0 Released
368771 [ryand-ruby@z] ZenTest version 4.4.0 has been released!

[ANN] minitest 1.7.1 Released
368774 [ryand-ruby@z] minitest version 1.7.1 has been released!

Array#=== as set equality
368777 [transfire@gm] It looks like Array#== and Array#=== are the same. Is that correct?
+ 368806 [robert.dober] ect?
| 368822 [joelvanderwe] Is an asterisk too much typing?
| 368824 [eregontp@gm ] That is rather cool, I did not know splat was working better than
| 368825 [joelvanderwe] Btw, it works in rescue as well.
+ 368814 [cmdicely@gm ] Well, it breaks existing code that relies on the existing behavior in
+ 368817 [fred@la av .] => true

rsa sign and verify with openssl on windows
368784 [jarmo.p@gm i] I've spent quite amount of time now to find out why can't i verify at
368788 [b.candler@po] I suggest you generate a new throw-away private key, then you can post
368792 [b.candler@po] Here are some tests on ubuntu Lucid with ruby 1.8.7
368798 [jarmo.p@gm i] Thank you for these great answers, Brian!
+ 368802 [b.candler@po] Excellent news :-)
+ 368808 [huard.elise@] I agree that Ruby openssl's documentation is abysmal.
+ 368810 [b.candler@po] You can also pass a string for the digest type (at least in 1.8.7p249)
  368811 [jarmo.p@gm i] Not in 1.8.6p398.

a rubykaigi summary to spare?
368786 [diego.viraso] I read today that rubykaigi is over and some (all?) of the videos
368869 [shintaro.kak] I'm from RubyKaigi Team.

Syntax highlighting in IRB
368789 [kachaleedmon] I would like to know if there is a way of changing colors for IRB
368791 [thethirdswit] IIRC Utility Belt may have what you're looking for...
368793 [kachaleedmon] Thanks Bob for your reply, but I have ever tried Utility Belt. It's a

Ruby 1.8.6 : 0.5 == 5.0 ???
368796 [thomas.seves] I have a strange problem on one of my servers.
+ 368799 [peterhickman] This seems to work for me for my version and os etc.
+ 368800 [phasis@gm il] This is a gcc version issue with gcc 4.4.1.
| 368805 [thomas.seves] This is it!
+ 368804 [wyhaines@gm ] GCC. The version of GCC that you built with does fun and entertaining

Registration for S3 - A Workshop on Self-Sustaining Systems
368807 [cfbolz@gm .d] Registration for S3 - A Workshop on Self-Sustaining Systems is now open.

Re: Welcome to our (ruby-talk ML)         You are added automatically
368813 [matt_lambert] ...

hash problem
368818 [antonioferna] I'm sure that there is somewhere an explanation on how this works but I
+ 368819 [peterhickman] Firstly hash notation is {"name" => "Admiral Ackbar"} and not
| + 368823 [senyii@ho ma] ...
| + 368879 [fred@la av .] C'mon, where's the fun in that ?  :)
+ 368832 [b.candler@po] Why a hash? If it only contains names, then why not

ANN: Sequel 3.15.0 Released
368821 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

ANN: home_run 0.9.1 Released
368826 [code@je em e] = home_run
+ 369427 [headius@he d] We are very appreciative of the extra effort to make sure home_run
+ 369439 [rogerpack200] So is this faster/equal to http://third-base.rubyforge.org and
| 369441 [code@je em e] It's faster than both.
| 369442 [rogerpack200] Sounds good.  Now if we can just figure out a way to make it fully
| 369444 [code@je em e] I don't think it's possible to make it fully backward compatible without
| + 369445 [matz@ru y- a] You are added manually.
| + 369446 [rogerpack200] So there's no way of "falling back" to slow operation only when somebody
|   369448 [code@je em e] I suppose it's possible, but it would greatly increase the complexity.
|   369461 [transfire@gm] on
|   369486 [ymendel@po o] I'm definitely not one to say that some core classes couldn't use a
|   369542 [transfire@gm] Wouldn't it be as good a resources as any? I'm sure the timely lib is
+ 369737 [jontyjont@bt] Thanks for this !
  369742 [code@je em e] I suppose if you want a work around, you could copy

Help Needed
368827 [tridib04@gm ] I am pursuing my Masters in Computer Science and I have to do my Masters
368828 [sophrinix@gm] statements, just surprised at the ambiguous wording from a "computer
368830 [sophrinix@gm] You could literally do.
368831 [tridib04@gm ] Thank You for Your reply....
+ 368833 [b.candler@po] Learn to program in C ?
| 368834 [tridib04@gm ] I know C programming...But I need the Ruby Compiler to work with...So I
| 368848 [b.candler@po] I don't want to be disparaging, but you clearly don't know C
| 368849 [b.candler@po] ... but actually, it would be a pretty good way to learn your way around
| 368853 [tridib04@gm ] @Brian Candler
+ 368839 [sophrinix@gm] I am curious as to how you plan to do this.
  + 368840 [sophrinix@gm] premise and methods for a masters thesis is... different.
  + 368852 [tridib04@gm ] @Andrew Mcelroy

Cucumber - HTTP Auth problem
368835 [camille.vall] Hey guys,

mailread.rb missing/deprec in 1.9 ?
368836 [sentinel1879] I am unable to find mailread.rb (for reading mboxes) in 1.9 either in my
369014 [rogerdpack2@] You could check the commit logs to see when/if it was removed.

Dynamic Monkey patching of getter / setter methods?
368842 [jan@st ph n.] I'm playing around with dynamic monkey-patching of methods. However, I
368844 [b.candler@po] send(:foo=, *args, &block)
368850 [jan@st ph n.] thanks - missed that one ;-)

Player Camera
368843 [andre_olsson] Im pretty new. Im creating a 2d racing game and want to make the camera
368857 [rogerpack200] And your question is, exactly?
368858 [andre_olsson] My question is how should i do to make my player in the center of the
368860 [rogerpack200] what framework are you using, or is this all hypothetical?
368861 [andre_olsson] Im using Gosu
368862 [rogerpack200] Posted via http://www.ruby-forum.com/.

Determine if point is within bounding box
368846 [djberg96@gm ] Using georuby, how would you determine if a given point is within a
368866 [phrogz@ma .c] I've never used GeoRuby, but looking at the implementation of

How can spawning subprocesses affect buffering?
368851 [marcin@me ia] I am writing a system, where there are a few small, slave ruby scripts
368964 [marcin@me ia] That was a bug in ruby-dbus, resolution is here

[ANN] RubyInline 3.8.5 Released
368854 [ryand-ruby@z] RubyInline version 3.8.5 has been released!

[ANN] ParseTree 3.0.6 Released
368855 [ryand-ruby@z] ParseTree version 3.0.6 has been released!

[ANN] ruby_parser 2.0.5 Released
368856 [ryand-ruby@z] ruby_parser version 2.0.5 has been released!

[ANN] ruby2ruby 1.2.5 Released
368859 [ryand-ruby@z] ruby2ruby version 1.2.5 has been released!

how to break  china gfw with ruby?
368864 [myocean135@y] in chian many webs  are banned  ,such as titter,google code ,google
368865 [sophrinix@gm] You might be better off getting a server/hosting in a different country and

load path
368867 [iainspeed@gm] I've discovered that the load path is different if I run sudo, =
+ 368877 [b.candler@po] sudo clears the environment. When you type
+ 368878 [ryand-ruby@z] specifically it doesn't pick up the value in GEM_HOME, even though `sudo =
  368935 [iainspeed@gm] Thanks for the responses.
  + 368938 [ryand-ruby@z] 502 % grep -A1 ryand /etc/sudoers
  | 368980 [iainspeed@gm] I shudder less at this
  | 369024 [ryand-ruby@z] Here is what my /etc/sudoers has. It has only the one documented =
  | 369493 [iainspeed@gm] Finally got back to this, and for whatever reason, it just works now, so =
  + 368955 [b.candler@po] At the top of your app you could do
    368983 [iainspeed@gm] Is there a way I can get this to run every time anything goes through =
    369029 [b.candler@po] Well, there's

Handling .dll file using ruby in windows XP
368868 [chandu.ch29@] I am new to Ruby. I want to use a dll with RUBY to change/modify the
368909 [luislavena@g] While you can alter the contents of a binary file (DLL), I presume is

Unescaping hex encoded characters in string?
368870 [aake.gregert] If I have a string like "Don\x{2019}t Let Me Fall"
368876 [shortcutter@] In Ruby 1.9.* something along the lines of
368930 [aake.gregert] et/articles/miscellaneous_m17n_details

[ANN] flog 2.5.0 Released
368871 [ryand-ruby@z] flog version 2.5.0 has been released!

[ANN] flay 1.4.1 Released
368872 [ryand-ruby@z] flay version 1.4.1 has been released!

[ANN] rake-remote_task 2.0.2 Released
368873 [ryand-ruby@z] rake-remote_task version 2.0.2 has been released!

[ANN] event_hook 1.0.2 Released
368874 [ryand-ruby@z] event_hook version 1.0.2 has been released!

[ANN] zenprofile 1.3.0 Released
368875 [ryand-ruby@z] zenprofile version 1.3.0 has been released!

[ANN/ADV] Tickets still available for The Compleat Rubyist, Oct. 1-2
368881 [dblack@ru yp] Tickets are still available (and are even still at the early-bird price,

some syntax suggestions
368882 [brian.xue@ho] ...
+ 368884 [dblack@ru yp] It's not class names specifically that start with capital letters, but
+ 368885 [peterhickman] capital letter as frist, and that variable names start with lower case lett=
| 368939 [ryand-ruby@z] for you.
+ 368886 [shortcutter@] capital letter as frist, and that variable names start with lower case lett=
  368889 [brian.xue@ho] ...
  368892 [peterhickman] Hang on! Both Perl and C use { and } for almost everything. If you

368883 [magguru.chin] I GOT $5000 FROM PAYPAL BY SIMPLE HACK At  http://happyandeasy.co.cc

Re: Running consecutive DOS commands in Ruby
368887 [srinidhi158@] I have a situation where  i have to invoke command line tools like
+ 368888 [shortcutter@] What version of DOS are we talking about?  Do current versions of Ruby
+ 368901 [ninja@sl ph ] Would net-ssh work?

New to ruby - Need help with simple guessing program
368890 [rileyc.evan@] Ok,so as a little practice I've decided to come up with a Guessing Game
+ 368891 [b.candler@po] tries = 0
+ 368893 [jgabrielygal] As you are always using players_number as an integer to, I suggest
| 368898 [brabuhr@gm i] Or, simply: players_number =3D gets.to_i
+ 368896 [Joseph.Savar] Evan,
+ 368905 [pmckibbin@gm] As others have said, you could have a single control loop, and run
  369245 [rileyc.evan@] Thank you all for the tips, I'm loving ruby more every minute.

uninitialized constant NArray (Name Error)
368894 [abder.rahman] require 'narray'
+ 368897 [b.candler@po] (1) Don't call your own script 'narray.rb', because then Ruby will think
| 368900 [abder.rahman] Thanks Brian.
| 368906 [b.candler@po] If you're running ruby 1.8.x, you'll need
| 368910 [abder.rahman] @Brian. Thanks a lot. You are correct.
| 368911 [abder.rahman] p nary1
+ 368899 [Joseph.Savar] Looks like you need to install the library
  368902 [abder.rahman] Thanks Savard. That solved the issue.
  + 368903 [abder.rahman] @Savard. This works if working through irb.
  | 369019 [Joseph.Savar] Again, I think Brian explained this and quite accurately.
  | 369129 [abder.rahman] Thanks @Savard.
  + 369020 [Joseph.Savar] Ali,

Re: Want to use Ruby/GTK2 + rcairo on Windows
368895 [satoshi@ri -] At last, I could compile ruby-gtk2 package and rcairo from source code with ruby 1.9.2 on Windows 7 laptop.

selecting a variable number of individual items
368904 [pizzazjoe@ya] I have a select field where I want to select a variable number of
368907 [colinb2r@go ] I'm a bit hesitant to suggest this because you've been studying Ruby a long
368916 [pizzazjoe@ya] you're assuming that I've gotten good at it. It's still confusing to me
368926 [colinb2r@go ] Well, there is a difference between not knowing what you want to do, and

Changing the folder that ruby recognizes
368908 [prcollin24@g] How do i change the folder that ruby recognizes its files from.

Ruby installation
368912 [tridib04@gm ] Can anyone help me in how to make the Ruby source files to executable
368913 [astahl@hi .c] Uhh, you don't.  Ruby is an interpreted language, meaning the source
+ 368945 [rpowell93@gm] If you add #!/usr/bin/env ruby to the start of the file and then run the chmod
+ 368973 [Joseph.Savar] Alex,

p vs. print
368914 [abder.rahman] require "rubygems" # Not in the example
+ 368915 [astahl@hi .c] Ruby uses "puts", not "print".  "p" is short for "puts".
| + 368917 [sutniuq@gm .] This is definitely wrong. #p is quite another method than #puts and yet
| | + 368918 [wagner.andre] Actually, "p x" is equivalent to "puts x.inspect", not "puts x"
| | + 368919 [colinb2r@go ] This is definitely wrong. #p is quite another method than #puts and yet
| | | 368923 [astahl@hi .c] Sorry, my wording was off.  Understood that they're different methods.
| | | 368925 [wagner.andre] No problem. I actually used to think that they were identical, which led to
| | | 368936 [abder.rahman] Thanks everyone for the clarification.
| | | 368941 [paradisaeida] Not to mention pp which is prettyprint
| | | 368969 [abder.rahman] That's nice.
| | + 369078 [code@ap th o] irb(main):001:0> print [1, 2, 3]
| |   + 369082 [Rob@Ag le on] $ rvm ruby -e 'a=[1,2,3];puts "to_s",a.to_s; puts "inspect",a.inspect'
| |   + 369083 [josh.cheek@g] Differences in versions. You can get an account at
| + 368920 [abder.rahman] puts ary1
| | 368921 [abder.rahman] What is "inspect"? What does it do?
| | 368922 [wagner.andre] It just returns a user-friendly version of the object. It can be overridden
| + 368974 [Joseph.Savar] @Alex & @Ali The correct explanation is P is effectively puts x.inspect
|   368975 [abder.rahman] Thanks @Savard.
+ 368958 [b.candler@po] print(x) calls x.to_s to get the string representation, then sends that
  + 368965 [kachaleedmon] ****
  | 368967 [abder.rahman] Thanks @Edmond for the clarification.
  + 368966 [abder.rahman] @Brian.
    368976 [b.candler@po] That's what Object#inspect returns: a string containing the class name,
    368981 [abder.rahman] Thanks @Brian for this nice clarification.

1.9 require problem
368924 [byrnejb@ha t] As of this morning I am just starting to work with Ruby 1.9.  I note
368927 [byrnejb@ha t] .  .  .
+ 368928 [shortcutter@] You can as well modify $: or set RUBYLIB in the environment.
+ 368929 [luislavena@g] tup')
  368979 [byrnejb@ha t] I see. Is there some reason that require does not issue an error that an
  368982 [byrnejb@ha t] OK.  This is not good.  If I try to use require_relative I discover that
  368985 [byrnejb@ha t] Now I discover something even worse.  If I change the the lib_path by