364829-385793

364620-381259 subjects 365009-368568

[ANN] Money 3.0.4
364829 [shane.emmons] Money 3.0.4 Released

Is the CGI instance "html" method no longer available?
364830 [xeno.campano] ???
364832 [xeno.campano] /usr/lib/ruby/1.8/cgi.rb:726:in `out': private method `print' called for
364834 [xeno.campano] This routine is working in other environments, even on other Ubuntu

[ANN] io_splice 2.1.0 - IO::Splice.copy_stream fixes
364838 [normalperson] Oops, I screwed up the Subject: line in the original announcement.

Newbie - how to use SQLite3 ?
364841 [ZalekBloom@h] I am just learning Ruby language. I downloaded SQLite3 database using
+ 364848 [hassan.schro] No, that shows that the SQLite3 *gem* is installed. Which doesn't
| 364851 [ZalekBloom@h] create database
| 364856 [luislavena@g] erms
+ 364878 [sentinel1879] require 'sqlite3'

Liquid tests in ruby 1.9.2
364842 [miguelfteixe] Good evening,
364844 [jbarnette@gm] 1.9.2
364845 [miguelfteixe] Thanks John, i just added t.libs << "." in the RakeTask configuration in
364849 [jbarnette@gm] test/helper

Ruby check permission
364843 [ing.carlos.s] I wanna know how to check for a permission in a file, 'cause I see
+ 364846 [hassan.schro] The API doc is your friend :-)  ( look for File::Stat )
+ 364847 [ljjarvis@gm ] ...

Happy Intransition Day!
364850 [ryand-ruby@z] Happy Intransition Day!
+ 364853 [martindemell] MINBWAAJ?
| 365018 [echristopher] What does that mean? My acronym-fu is broken.
| 365050 [martindemell] Matz Is Nice But We Are All Jerks
| 365122 [rick.denatal] As Tonto said to the Lone Ranger in reply to "Well Tonto, it looks
| 365143 [martindemell] Hence the questionmark :)
+ 364862 [botpena@gm i] cmon ryan, do we really have to resurrect that?
+ 364925 [vikkous@gm i] Jesus, Ryan. That was extraordinarily rude. But then, what else should
+ 364931 [no@sp m. le ] To hold a grudge is like drinking poison and hoping your enemy will get sick.
+ 365434 [transfire@gm] My apologies for not getting to this sooner. I've been planning on it,
  365491 [Ruby@Go gl M] Interesting. I never thought about it as a "dick behavior". But then,
  + 365492 [eleanor@ga e] I also share that view. _Why's body of work has that special blend of =
  | + 365493 [rick.denatal] s and hubris
  | | 365496 [shevegen@li ] _why was approximately 1000x more creative than you, Ryan or Zed ever
  | | 365545 [transfire@gm] hyperbole much?
  | + 365497 [colinb2r@go ] In "A Mathematician's Apology" G H Hardy says something to the effect that
  |   365512 [eleanor@ga e] that
  + 368181 [eveith@ww eb] On Friday 09 July 2010, J?rg W Mittag <JoergWMittag+Ruby@googlemail.com>
    368182 [code@ap th o] rom=20
    368191 [josh.cheek@g] I'd go with

Problem starting Rake in some directories
364857 [NoOne@No he ] I tried to invoke rake from a Command Window, with a couple of failures and
+ 364858 [ryand-ruby@z] On Jun 24, 2010, at 8:20 PM, "Richard Lionheart" <NoOne@Nowhere.net> =
+ 364860 [josh.cheek@g] Rake works by looking in your dir for a file called rakefile, Rakefile,

Singleton class in Ruby
364861 [manojs.nitt@] Can we see the singleton class as object in ruby.
364867 [jgabrielygal] Like this?
+ 364940 [manojs.nitt@] Thanks for your reply.
+ 364941 [manojs.nitt@] As you said   class << o; self; end
  364945 [eregontp@gm ] Yes, and this method is now deprecated because of the wrong name.
  364963 [manojs.nitt@] Thanks Benoit.
  364965 [jgabrielygal] Because methods returns the list of methods that are accessible for
  364990 [manojs.nitt@] Thanks Jesus,

writing binary file
364863 [flethuseo@gm] num = [1234567, 30, 40]
364865 [joelvanderwe] you gotta put the integers in an array.
366524 [flethuseo@gm] Cool, it works well, but I would like to read x integers at a time.

rdoc vs hanna vs YARD
364866 [sentinel1879] A year or so back I adopted Yard, i liked the ability to define params
364872 [ljjarvis@gm ] That's correct.

Best place to begin?
364868 [ross.ucf@gm ] Any non-Google preferences would be awesome.  As well as links to
364870 [jgabrielygal] Jesus.

Highline giving EOFERROR, input stream exhausted
364875 [sentinel1879] I am first taking multiline input from user. User may end input using
364884 [james@gr ys ] /opt/local/lib/ruby1.9/gems/1.9.1/gems/highline-1.5.2/lib/highline.rb:603:=
364909 [sentinel1879] $ ruby high.rb
364910 [james@gr ys ] It looks like this is a difference in Ruby 1.9 that isn't related to =
364914 [sentinel1879] Yup.
364915 [james@gr ys ] the=20

redirecting the end of a pipe
364881 [martin.gerde] stdin_read,stdin_write=IO.pipe
364883 [shortcutter@] You cannot solve this by redirection because $stdin is opened in read
364969 [martin.gerde] Thank you for your answer.
364975 [shortcutter@] You're welcome.

[ANN] RDazzle v1.3.0 released
364892 [transfire@gm] = RDazzle

$? is always new?
364893 [rogerpack200] Is the following expected?
364895 [b.candler@po] What platform are you on? What ruby version? For me, with ruby
364896 [rogerpack200] On windows it appears to behave as expected.
+ 364897 [joelvanderwe] Is there something in your .irbrc that is firing off processes?
+ 364899 [luislavena@g] Linux or Windows, all the versions return nil when asked.
  364902 [luislavena@g] It could be associated with rb-readline, but under my system it
  365005 [rogerpack200] Interesting. I think that's it...

RCR: IO.popen4
364894 [rogerpack200] Currently with the std lib there is no (built in) way to get the PID of
+ 364901 [akr@fs j. rg] Use IO#pid.
| 365006 [rogerpack200] Oh cool thanks.
+ 365037 [headius@he d] We added both open3 and open4 because the existing implementations
  365038 [shyouhei@ru ] You might already be aware of the fact, that 1.9's open3 no longer uses f=
  365146 [headius@he d] I did not, but this may help. I believe both spawn and detach should

getting array input from command line
364905 [flethuseo@gm] I want to get some data from
+ 364906 [botpena@gm i] p ARGV
+ 364907 [ljjarvis@gm ] Also, check out OptionParser -
  365175 [flethuseo@gm] ["0", "1", "2", "3"] to [0,1,2,3].. how can I do this?
  365176 [gf.bozzetti@] a = ["1", "2,","3"]

[ANN] local-openid 0.2.0 - Single User, Ephemeral OpenID Provider
364908 [normalperson] local-openid allows users with shell accounts on servers to authenticate

[ANN] DNote v1.4.0 released
364911 [transfire@gm] DNote 1.4.0 has been released.

Re: DNote v1.4.0 released
364912 [transfire@gm] pports almost any language.

Re: RDazzle v1.3.0 released
364913 [transfire@gm] FYI -- The home page is much less gay now ;)
364917 [josh.cheek@g] The javascript 'next page' was annoying, because I would click 'longfish' to
364921 [transfire@gm] to

Using ruby as linux shell
364918 [ajfrenzel@we] How to access command line parameters of a ruby script?
364919 [joelvanderwe] Short answer: the array ARGV contains them.
364920 [ajfrenzel@we] Thanks.

Odd Issue With DBD::SQLite3 - Inserts Don't Work
364924 [hsomob1999@y] db = DBI.connect("dbi:SQLite3:#{ARGV.shift}")
364923 [hsomob1999@y] This works if I insert rows through the sqlite3 client. But, no

Can Ruby 1.9.1 filenames with unicode characters on Windows?
364926 [blueskybreez] Can Ruby 1.9.1 finally get a list of filenames if the filenames have
364935 [billk@ct .c ] 1.9.1 can't, but 1.9.2 is much improved.
364936 [blueskybreez] thanks.  true that on Mac OS X and Linux, it has long been possible?

Re: Random Points within a Circle (#234)
364927 [timrandg@gm ] A thorough derivation of the distribution frequency transformation for

Ruby's RDocs
364928 [transfire@gm] Thanks to Josh Cheek I finally went and started the documentation
364939 [cremes.devli] Do you intend to push these changes upstream so that they eventually show up on ruby-doc.org?
364947 [transfire@gm] up on ruby-doc.org?
+ 364948 [eregontp@gm ] This is certainly a very good idea.
+ 364949 [josh.cheek@g] I think you have a good chance, it seems stdlib docs are already on the

[ANN] Erubis 2.6.6 released - a bug fix release
364929 [kwatch@gm il] I released Erubis 2.6.6.

Ruby in JavaScript, all projects are dead?
364930 [axyd80@gm il] ruby into the browser.
+ 364932 [axyd80@gm il] Forgot one more project http://github.com/mneumann/rubyjs
+ 364934 [paradisaeida] MarkT
| 364951 [axyd80@gm il] Hmm, I'm not agree. The main goal of Ruby in JavaScript (for me) is
| 364954 [transfire@gm] ithub.com/coffee-script/
| 364978 [axyd80@gm il] It's not a critique, I just pointed out that the syntax is a little
+ 364993 [timrandg@gm ] I believe Google has a summer of code project to bring Ruby to
| 385608 [eleanor@ga e] One of the reasons I started looking at Go for a Ruby implementation was =
| 385610 [mbj@se ni .n] There are experimental javascript backends for LLVM.
+ 365040 [judofyr@gm i] I'm currently working on RubyScript, a re-implementation of YARV in
| 365092 [mjijackson@g] Looks interesting!
+ 385541 [axyd80@gm il] UPD, this one seems to be interesting and is very active. And (a big
| + 385570 [b.candler@po] You could always just boot Linux in your browser, and then run ruby
| + 385575 [whitequark@w] Check out ColdRuby. It is not dead (currently being integrated in a
| + 385593 [ninja@sl ph ] I remember starting a project like this. I more or less gave up when I
|   385606 [code@ap th o] te=20
+ 385769 [cmdicely@gm ] I think the most complete currently available way to use Ruby in the
  385793 [darkintent@g] It would be better to either fix or get rid of JS really.  I think

Convert \uXXXX to character
364937 [psixxx@bk ru] I have string: '\u041f\u0440\u0438\u0432\u0435\u0442!' and i need to
+ 364952 [david.gaya@g] ...
+ 364953 [justincollin] irb(main):001:0> RUBY_VERSION
+ 364959 [gwtmp01@ma .] If I understand you correctly you can leverage Ruby's parser to
  364960 [mbj@se ni .n] I think the JSON parser is able to decode this unicode escapes
  364971 [eregontp@gm ] str = '\u041f\u0440\u0438\u0432\u0435\u0442!'
  364974 [matthias@wa ] Don”Ēt forget that Unicode Code Points not only cover the BMP and can be up to 6 hex digits long

newbie - WEbrick, config/routes.rb and multiple instances
364938 [iainspeed@gm] ...
+ 364942 [josh.cheek@g] When you do script/server, you can pass a port to run the application on.
| 364944 [josh.cheek@g] Oh, and this is a mailing list for the Ruby programming language, not the
| 364950 [iainspeed@gm] ...
+ 364943 [hassan.schro] Yes to all of the above. You have 2 separate apps, so yes, you have

About method naming convention with "!"
364956 [cyril.staff@] Is there a reason why Array#clear method have not a exclamation mark (!)
364957 [dblack@ru yp] The ! only has meaning when there's also a non-! method of the same
364958 [cyril.staff@] Nice article, David.  Thank you.

how i execute a method variable numer of times
364961 [unter_noob@y] def little_meth
364962 [josh.cheek@g] def little_meth
364964 [unter_noob@y] thanks for you josh

gem rake error
364966 [george.githi] on ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0] and
364977 [luislavena@g] How you installed 1.9.2dev in your system?

passing a block to yield
364967 [andy.bogdano] I was trying to make an iterator that goes through a simple tree
+ 364980 [shortcutter@] There is no point in passing a block to yield because yield implicitly
| 364986 [andy.bogdano] Maybe there always is a way to avoid using procs and lambdas, but i
| 365002 [shortcutter@] This would not be solved by yield accepting a block however.  Your
+ 364987 [josh.cheek@g] Looks like you can get it to work by explicitly taking the block, rather

pretty inspecting objects?
364968 [jarmo.p@gm i] Idea would be to write contents of some objects into some file in pretty
+ 364970 [b.candler@po] Why monkey-patch? Look at source of pp.rb, and you'll see it takes an
+ 364973 [richard.conr] You might want to have a look at awesome print - a gem that is a functional
  364976 [jarmo.p@gm i] Thank you for the answers!

Looking to generate MS Doc files
364972 [cmmagid@gm i] Looking to generate MS Doc files.  I need to generate .doc files not

Regex.escape bug
364979 [zapotek@se f] I'm using "ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]"
+ 364981 [joelvanderwe] => "\\.rb"
+ 364984 [shortcutter@] No, it should be as it is as Joel explained.  Note also

Trying to reach Florian Frank
364983 [headius@he d] I and several other JRubyists have been trying to reach Florian Frank

Reading String Data as a File
364988 [ddjolley@gm ] I use Net::HTTP to collect some data as a string.  I now need to pass
364989 [ryand-ruby@z] ri StringIO
364996 [b.candler@po] That will work if the code in question will accept an open File/IO
365016 [ddjolley@gm ] Unfortunately that is precisely my case and that is precisely what I was
365024 [tony.arcieri] It's Ruby.  You can always patch or alias_method_chain the target code if
+ 365026 [ddjolley@gm ] Good point.  I've been considering whether I should re-think my position
+ 365029 [ryand-ruby@z] That is EXACTLY what I was coming back to say... Tony beat me to it.
+ 365036 [shortcutter@] he
  365049 [b.candler@po] You simply find that part of the code, and replace the offending
  + 365057 [shortcutter@] That's what I always wanted to do - seems I have to resurrect my
  | 365062 [b.candler@po] Tempfile.open "prefix", "/tmp" do |io|
  | 365067 [shortcutter@] I'd rather io.close instead of io.flush to release resources as soon
  | 365069 [b.candler@po] But tempfile will want to close itself using the block form anyway.
  | 365074 [shortcutter@] Yes, but later.  This can make a difference if you are low on file
  | 365086 [b.candler@po] tf = nil
  | 365089 [shortcutter@] No, I was talking about the other version which returns whatever the
  + 365066 [james@gr ys ] I agree that FasterCSV's documentation isn't perfect.  I'm pretty sure =
    + 365072 [b.candler@po] Specifically, I'd like to see how to parse CSV from stdin. You provide
    | 365096 [james@gr ys ] Better?
    | + 365106 [shortcutter@] # to
    | | + 365107 [shortcutter@] =A0# to
    | | + 365121 [james@gr ys ] provide
    | |   365154 [shortcutter@] Good point.  Thank you for consideration of my suggestion.
    | + 365109 [b.candler@po] Yes, that's just the reminder I need :-) Thanks.
    + 365075 [shortcutter@] I wholeheartedly agree.

can't use uki
364991 [myocean135@y] pt@pt-laptop:~$ sudo  gem install uki
364992 [Rob@Ag le on] gem list -d uki

[ANN] 2010 GoRuCo Videos Up.
364994 [beholdthepan] Videos from past conferences are up at: http://vimeo.com/goruco/albums

editing text using $EDITOR from program
364995 [sentinel1879] Does Highline or Thor/Facets/ActiveSupport etc have a method for when
365293 [vikkous@gm i] Ok, this was a week ago now, but no one else has responded.
365300 [sentinel1879] Thanks a lot for your feedback. Could you give me some on this other
365308 [sentinel1879] def pipe_output (str)
365335 [vikkous@gm i] Either way should work fine, but I would go with popen, personally. I

ActiveSupport 3 inflections used standalone
364997 [dhf0820@gm i] I have some working non rails standalone ruby code under ruby 1.8.6
364999 [fxn@ha hr f.] Active Support now extends practically nothing by default (so it is

Net::SCP download from windows to linux and encrypt password
364998 [kalpesh_pate] I am using Net::SCP to download/upload file. I am doing like this...
365001 [tom@in oe he] Yours,
365034 [kalpesh_pate] Thanks for the response.  I wanted to know if I can use windows like

String Spliting/CSV question
365000 [stuart.clark] Hey all,
365003 [artonx@ya oo] You may use csv library. It's standard library and came with ruby itself.
365004 [stuart.clark] Good point.

Multi-cpu and ruby Threading
365007 [regis.aubare] We receive a new PC based on I Core 7 on Windows 7.
+ 365008 [rogerpack200] I've seen a bit of slowdown on jruby when using multiple threads, as
| 365013 [regis.aubare] Result seem different on Linux.Here same test, on same machine,
+ 365022 [headius@he d] Probably not running server VM, so pass --server. Overall times should
  365023 [headius@he d] Maybe also worth showing an experimental dynopt flag for JRuby that
  365068 [regis.aubare] Sorry for my bad english !!
  365082 [headius@he d] Yes, this result is not surprising to me. In the original case, the
threads.html
top