347474-348478 subjects 347886-348576

Webrick global authentication
347701 [daniel@ma us] I'm doing a small ruby application for an embedded device. There are
347775 [daniel@ma us] Ok, it seems nobody has an idea and I have to do it in the servlets :(

[ANN] Rainbows! 0.1.0 initial release
347706 [normalperson] Rainbows! Unicorn for slow apps and slow clients

Wierd stuff in an controller
347708 [davidakachao] I've something wierd in an controller of mine. It's an wizard
347710 [rick.denatal] 'step1'

Ruby and Excel and colour question
347711 [AEtzold@gm .] Dear all,
+ 347754 [tom.enebo@gm] OpenOffice has some Java API support for accessing and manipulating
+ 347855 [mark@th ma z] it. I'd much prefer if you could point me to a solution that
+ 348007 [mike@xl rs c] it. I'd much prefer if you could point me to a solution that
  348008 [zyzygy@te st] Wow! Surpass looks amazing!  I was thinking of using jruby to invoke the

regex simplifier?
347715 [rogerpack200] Question.
+ 347720 [angico@an ic] is a
+ 347723 [shortcutter@] I tried to cook something up in the past.  You can find it when
| 347739 [rogerpack200] Very interesting thread.  Did anything come of it? (or florian gross'
| + 347741 [ilan.berci@g] Roger,
| + 347743 [dblack@ru yp] I'm going to put in a plug for learning regular expression syntax
| | 347745 [karottenreib] so the only way to
| + 347756 [shortcutter@] Yes, one of my postings had a file attached which contained an
| + 378624 [rogerpack200] [:blank:]
|   378642 [shortcutter@] Did I mention that what Ari and I cooked up a while ago is a gem?
|   + 378643 [eben.b.smith] Hey gang,
|   + 378682 [rogerpack200] Cool, but the default rdoc's don't explain its use easily...perhaps
|     378690 [shortcutter@] Errr, the project got stuck along the way as there did not seem to be
+ 347726 [ilan.berci@g] Roger,
  347757 [shortcutter@] The fact that there apparently are not many libraries for readable
  347794 [rogerpack200] Ok ok I'll concede and suck it in and learn regular expressions.  My
  347799 [dblack@ru yp] I think it's just practice, like learning musical notation or

method_missing for command shell?
347717 [rogerpack200] I'm wondering if anybody knows of a shell that can be programmed to
+ 347721 [mcamou@te no] Try zsh
| 347742 [rogerpack200] Interesting.  Seeing the syntax that zsh uses makes me want to rewrite
| 347744 [aldric@tr vo] You're welcome to write your own shell in Ruby ;-)
| + 347748 [karottenreib] yeah and let me know when it's done and has the same feature set
| + 347750 [hassan.schro] or start with <http://rush.heroku.com/>
+ 347746 [gabriel.horn] I'm writing a ruby command/task execution gem which could allow for
+ 347761 [h.bekel@go g] Well, kind of. You might use PROMPT_COMMAND in bash to react if
  347792 [rogerpack200] Nice.

About Webrick documentation
347735 [phlucas@te h] The website http://www.webrick.org does not work for at least a few
347747 [hramrach@ce ] Yes, it has particularly poor connectivity.

[ANN] nanoc 3.0.1
347736 [denis.defrey] nanoc 3.0.1 is out!

Disabling tainting
347737 [tony@me io .] Would it make sense to have a flag passed to the interpreter on startup that
347740 [rogerpack200] I have had that thought recently, too--most apps don't use $SAFE.

Vendored Oniguruma gem MissingSourceFile oregexp
347749 [matthattan@h] Hoping someone can help me with this. I have installed the Oniguruma gem
347752 [nlugovoi@gm ] Did you run
347969 [matthattan@h] Hey Nikolai,

BigDecimal to float error
347753 [sam.s.kong@g] I found a weird problem.
+ 347755 [sam.s.kong@g] I narrowed down the problem.
| 347759 [cmdicely@gm ] christopher@ubuntu:~$ ruby -v -rbigdecimal -e
+ 347758 [wyhaines@gm ] You don't say what patch level of 1.8.5 you are on.  Using 1.8.5pl114

Grand Central Dispatch Performance Issue
347760 [chris@mo fo ] Hey all,

Is there a way to find out how much memory my ruby app is using?
347762 [cmmagid@gm i] Is there a way to find out how much memory my ruby app is using?  I am
347764 [ehsanul_g3@h] ...

NFl jersey hot sell.
347763 [crocsjordan0] NFl jersey hot sell.

Ruby for the wrong reason
347765 [flebber.crue] A few months ago, I started learning Python - my first language for a
+ 347768 [devguy.ca@gm] I went through this same process, even tried learning Perl which I disliked,
| + 347772 [martindemell] here you go :)
| + 347783 [adambilbroug] ...
|   347786 [flebber.crue] On Oct 6, 7:49=A0pm, Adam Bilbrough <adambilbro...@rocketmail.com>
|   347791 [adambilbroug] For Ruby, no.  Tt has no specific indentations to follow (within reason)
|   347793 [dblack@ru yp] and the sequel post (there's a link).
+ 347773 [bbxx789_05ss] This is a good example for you to investigate on your own.  It will
+ 347774 [bbxx789_05ss] No.  I think in ruby the code would be almost exactly the same--except
| + 347776 [billk@ct .c ] Regards,
| + 347795 [dblack@ru yp] I usually go straight to the system library documentation for this
| + 347800 [james@gr ys ] time.strftime( string ) => string
| | + 347802 [damnbigman@g] "Hey brother Christian with your high and mighty errand, Your actions speak
| | | 347819 [james@gr ys ] Also, when you see those long dashed lines with the class/module and
| | + 347821 [bbxx789_05ss] 1) $ri Date::strptime
| |   + 347822 [damnbigman@g] ich
| |   + 347823 [james@gr ys ] You've been shown the format option from the documentation.  I'm not
| |   | 347825 [bbxx789_05ss] I already knew the format specifiers were described in the Time class.
| |   | 347826 [james@gr ys ] Well, they Ruby Core team does take patches.
| |   | 347834 [hramrach@ce ] It's not the same thing.
| |   | 347844 [stefan@he rt] And lots of really bad/wrong/dangerous code (that is often c&p). I
| |   | + 347850 [hramrach@ce ] Of course, the quality of the code posted as part of the comments
| |   | + 347854 [bbxx789_05ss] That's not the point of the comments in the php docs.   The comments are
| |   |   347856 [_mwryder@wo ] How much of the Ruby standard library is a port of the C standard
| |   |   347857 [walton@vy er] This is at least the second person to say this, and I find it a little
| |   |   347868 [_mwryder@wo ] I think it is more a matter of priorities.  While you may find that the
| |   + 347824 [hramrach@ce ] In this case I use the strftime(3) man page but windows users are at a
| |   | 347843 [shortcutter@] pt
| |   | 347846 [hramrach@ce ] Ruby even has that?
| |   + 347828 [_mwryder@wo ] Or you could just use the Standard C Library documentation.  I don't
| + 347841 [shortcutter@] It's not very good to find but what about this?
+ 347801 [ninja@sl ph ] If it's a brand-new project, use 1.9.1.
| + 347820 [usenet-nospa] As of sometime recently, there were reports of some Rails stuff not working
| | 347942 [ninja@sl ph ] Which Rails stuff?
| | 347944 [usenet-nospa] Don't remember now.  Ahh!
| | 347971 [ninja@sl ph ] Ah, I see. And it's resolved.
| + 348391 [ shot@ho .p ] I fully agree. I write all of my new stuff in Ruby 1.9.
+ 347803 [zack.carter@] And to think, this whole dilemma could have been avoided if you named
  347851 [bbxx789_05ss] lol.

[ANN] Rainbows! 0.1.1 - with Ruby 1.8 support!
347766 [normalperson] Rainbows! Unicorn for slow apps and slow clients
347770 [tony@me io .] I'm curious about using this for a Comet server... what do you think about
347771 [normalperson] Yup, that's exactly one of those use cases Rainbows! is designed to

[ANN] rspec-rails 1.2.9 Released
347767 [dchelimsky@g] rspec-rails version 1.2.9 has been released!

[ANN] rspec 1.2.9 Released
347769 [dchelimsky@g] rspec version 1.2.9 has been released!

Creating lots of folders on ftp server
347777 [coder@mo tx ] I have to check some folders on a ftp server, if they don't exist,
+ 347804 [chris@mo fo ] Paste the error you get. You should see line numbers indicating the
| + 347805 [coder@mo tx ] The error I get is from the ftp library: reach end of line
| + 347963 [coder@mo tx ] method readline  in ftp.rb at line 211
|   347965 [coder@mo tx ] I have more information ....
|   348020 [chris@mo fo ] Sounds reasonable.
+ 347810 [hassan.schro] This may not fit your use case, but it might be easier and faster to

httprequest fails with segmentation fault on OS X 10.6
347778 [ncarmon@ma .] Our application sends requests to a server using httpclient,

Opinions wanted! Is Ruby a good choice for...
347779 [mail_noxx@we] Some days ago I started to code an IRC bot like eggdrop for the antispam
+ 347781 [martindemell] It's not too hard to handle this sort of thing - just convert the
+ 347789 [jontyjont@bt] Of course ruby is ideal for this!

Dungeon crawler text game
347780 [adambilbroug] Hey!
+ 347817 [matt@ha ps a] using statemachine and treetop.  It handles the "map" and moving various
+ 347818 [usenet-nospa] Much though I like Ruby, I mostly write these in Inform 6, because it's

new line in string
347785 [sharankruthi] How to concatenate new line character to a string?
347787 [jgabrielygal] str =3D "hello";
347788 [jgabrielygal] BTW, if you want to concatenate to the same object, instead of
347790 [lists@be tr ] %w(hello world).join $/

Fedora 11 and ruby-gettext-package 2.04
347796 [ruby@ay i. o] i just could not make work ruby-gettext version 2.04, which comes with

CGI/Session expiration witch ruby-libs-
347797 [ruby@ay i. o] i have a Web application making heavy use of CGI/Sessions.  i could,

347798 [ambethbala@g] CAN I INTEREST YOU IN AN EXTRA $250.00 A DAY...?

New to ruby, have a question
347808 [martinmike2@] I am trying to put together a RoR app using the REVE gem for the
347813 [rogerpack200] I think that is caused by not passing in a hash where one is expected
347815 [martinmike2@] ok, changing it to  <% sheet =3D api.character_sheet(:characterid =3D>
347897 [ilan.berci@g] <code>

regexp [:punct:] character class
347809 [rochkind@jh ] So every piece of documentation on ruby regexps I can find, including
347811 [rochkind@jh ] As always, I figured it out right after I posted it. The POSIX character

How to do explicit copy
347812 [rickyrm978@g] I notice Ruby uses reference copy by default. The problem is I need to
347814 [pokui@ps .c ] y = x.dup may be sufficient for you (it does a shallow copy).
347956 [rickyrm978@g] Thanks, it worked. Now, what are the differences between object#dup
+ 347958 [zyzygy@te st] Ricky,  there is equal? method for just this purpose
+ 347964 [shortcutter@] ri Object#clone Object#dup
+ 347966 [s.korteling@] irb(main):004:0> RUBY_VERSION

call Ruby file from HTML
347816 [javaonly@ho ] is there a possible to call Ruby file from HTML file , and how I can do
+ 347847 [stefan@he rt] What do you mean? Embedding ruby code in HTML like Javascript? That is
+ 347876 [bbxx789_05ss] 1) html file + ruby file on the server, and you want the request for the
+ 347880 [rubfor@re it] Eruby is a handy way of mixing html and Ruby. It's like PHP.

building from source
347827 [devguy.ca@gm] Do I need to consider anything if I were to build the latest 1.9 Ruby
347845 [stefan@he rt] Its very easy and fast (at least for 1.8.x i did it for some of our
347852 [devguy.ca@gm] I think I will start to play around with 1.9. I did a test install of Ruby

Creating a pacifier in command line program
347829 [jerry.piazza] I am trying to create a program that, at one part, replaces already
+ 347835 [walton@vy er] Ruby comes pre-packaged with a curses library that (supposedly) works
+ 347842 [TimHunter@nc] I think this will work in Windows but I don't have it to test. It works
| 347848 [jerry.piazza] Thank you!
| 347859 [jerry.piazza] Well, now I am trying to impliment this into a program.
| 347860 [jerry.piazza] Yes, I realize there is a typo after the .txt.
+ 347877 [colinb2r@go ] Further to the other responses, there is a thread here which has similar

How to not display output of a system call.
347830 [jerry.piazza] system("del *.txt")
+ 347831 [jerry.piazza] Also, how do you make the program pause for a few seconds.
| + 347837 [shortcutter@] Put it to SLEEP.
| + 347840 [TimHunter@nc] $ ri Kernel#sleep
+ 347838 [shortcutter@] Dir["*.txt"].each {|f| File.delete f}
+ 347839 [TimHunter@nc] `del *.txt`
| 347849 [jerry.piazza] Hrmm, backticks don't seem to work on windows boxes.
| 347853 [jerry.piazza] I am now trying to impliment this.
| 347864 [bbxx789_05ss] I think you have some more basic issues to deal with first.  What do you
| 347878 [shortcutter@] Comparing with "true" or "false" to obtain a boolean value is a very bad
+ 347973 [b.candler@po] system("del *.txt >NUL")

[ANN] ffi 0.5.0
347832 [andrea.fazzi] ffi version 0.5.0

[ANN] clogger 0.1.0 for relaxed Rack compatibility
347833 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

Rails on Ruby 1.9
347858 [devguy.ca@gm] I am wondering if Rails has been ported successfully to run on Ruby 1.9, and
347861 [xenogenesis@] and
347865 [devguy.ca@gm] Was able to install Passenger/Nginx from source, looked a bit daunting but

Does Ruby have a 'which' like method
347862 [scottxsmith8] Most UNIX shells have a which command.
+ 347863 [devguy.ca@gm] you should be able to do the same thing using: http://www.railsapi.com
| 347884 [scottxsmith8] Rajinder,
| 347926 [shortcutter@] An alternative is to use set_trace_func: IIRC that also provides file
+ 347932 [rogerpack200] In 1.9 (and REE?) it's

errors with monitor
347866 [r.fulton@au ] /usr/lib/ruby/1.8/monitor.rb:212:in `mon_enter': undefined method `+'
347927 [shortcutter@] I believe there are some issues with your code.  The one which stroke me

[ANN] loofah 0.3.0 Released
347867 [mike.dalessi] loofah version 0.3.0 has been released!

ActionWebService -  need response in XML
347869 [sri.jjhero@g] I have processed a SOAP request & in the service api i expect an api_key
347885 [sri.jjhero@g] I have used xml_in method from xmlsimple,

new rubier and sql
347870 [chrisjamesw@] Iv inherited some ruby code that talks to a sql db and iv never used
+ 347873 [sri.jjhero@g] 1. Download the Ruby/DBI distribution from the Ruby/DBI web site,
+ 347895 [ilan.berci@g] From a quick look it appears as though your dbi gem is out of date..

Google Wave- I need contacts!
347871 [tmcdowell@gm] After 6 days, i finally got my gWave invite! ('and there was much
347889 [andrew@an re] Well, you could share the love (I'd love an invite) and build contacts
347899 [tmcdowell@gm] I would, but I didn't get in on the dev preview! I was invited by
+ 347902 [thiagown@gm ] what is this google wave about? :)
| 347906 [devguy.ca@gm] this should give you an idea about Google Wave.
+ 347904 [devguy.ca@gm] Tim, when they restrict the rules you could ping this group for an
  347909 [tmcdowell@gm] I am not looking for an invite, I am looking for other people to wave
  349016 [jarod@at ol ] i'd like an invite if you have a spare
  350049 [devguy.ca@gm] I am finally on GoogleWave, but not sure if I can invite others yet, at least I
  350081 [gibbsnich@gm] Uhh, didn't hear of google wave before.
  350105 [minilith@gm ] Now that you have all watched the video & tested it, maybe somebody
  350108 [aldric@tr vo] Looks to me like another example of 'Primordial Soup' - a chaos and
  350181 [aldric@tr vo] Or I could be wrong : http://completewaveguide.com
  350184 [anthony.metc] Thanks for the link.
  350247 [ninja@sl ph ] I'll add myself to that list. It should be able to tie this email address to a
  350326 [eregontp@gm ] Add me ! ( eregontp@gmail.com )
  350343 [nyarly@gm il] I'm in.
  350347 [soloriok@gm ] I'm in as well
  350351 [jgabrielygal] I'd be interested, if you still have invites left.
  350352 [soloriok@gm ] Jesus,
  350357 [jgabrielygal] jgabrielygalan@googlewave.com

Re: pik 0.1.0 Released
347879 [luislavena@g] em)

Why I can not use my own blocks in 1.9?
347881 [hronya@gm il] a = lambda {|x,y| x <=> y}
+ 347882 [hronya@gm il] z = lambda {|x| x[0] <=> x[1]}
+ 347888 [flori@pi g. ] lambda does arity checking in 1.9 as opposed to proc that doesn't (they
  + 347928 [shortcutter@] irb(main):001:0> RUBY_VERSION
  + 347948 [bbxx789_05ss] def test
    347953 [dblack@ru yp] Lambda-flavored Proc objects are fussier about arity than
    347957 [bbxx789_05ss] Ok.  I get that.  What I don't understand is how a yield statement