379525-395906

379334-380249 subjects 379766-401793

How to install phusion passenger and ruby 1.8.7 enterprise edition
379525 [bulls66@gm i] ruby 1.8.7 enterprise edition on suse linux
379529 [b.candler@po] Use google. Installation instructions for REE are at

adding cookies net/http
379526 [tcblues@gm i] when I call different pages I get on response ["set-cookie"] so  i need
379536 [bbxx789_05ss] How about using Mechanize, which automatically stores cookies and adds

[ANN] JRuby 1.6.0.RC3 released
379534 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.6.0.RC3.

Re: [jruby-user] [ANN] JRuby 1.6.0.RC3 released
379550 [cremes.devli] Great work, everyone! This is the best Ruby runtime yet.

formating date information
379555 [tnotnats@gm ] Very new to this so can anyone tell me how to change the date format
+ 379557 [steve@st ve ] standard date format ???
+ 379560 [shortcutter@] Your Array should really contain Date instances and not String
+ 379563 [tnotnats@gm ] Thanks Steve that worked very well, just what I needed!

OS X 10.6 + ruby-1.9.2-p180.tar
379568 [charles@to r] In OS X 10.6.6, I downloaded ruby-1.9.2-p180.tar and performed a
379574 [sakuro@22 8c] OZAWA Sakuro
379581 [charles@to r] Great! My question solved.

Re: OS X 10.6 + ruby-1.9.2-p180.tar => ruby library version = 1.9.1
379569 [bbxx789_05ss] Maybe the ruby library as in the "Ruby Standard Library", which is a
379571 [bbxx789_05ss] $ruby -v
379573 [sduncan@we a] I get this from a copy of p180 I have;

Unexpected problem: hash[key] << value
379572 [yimutang@gm ] # ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
+ 379577 [hyagni@gm il] Hash.default refers to the same Array at each element.
+ 379579 [markbeek@ca ] I just stumbled across this surprising behavior myself. It's the first
  + 379582 [b.candler@po] To get that behaviour, you need the Hash to create a *new* empty array
  + 379586 [shortcutter@] h =3D Hash.new {|h,k| h[k] =3D []}

rb-appscript installation on MAC OS 10.6.3 (Snow Leopard)
379575 [saurabhgupta] I am new user working on MAC OS and try to install rb-appscrip-0.6.0. I

[ANN] Goliath 0.9.0 released
379576 [dj2@ev rb rn] I'm pleased to announce the first public release of Goliath v0.9.0.

[ANN] rubygems-update 1.6.2 Released
379580 [drbrain@se m] rubygems-update version 1.6.2 has been released!

Posting XML
379583 [uscengineer@] is with my code. It does not seem to do anything when I run it. Your
379584 [shortcutter@] What exactly do you mean by that?  Is it not sent to the server?  Does
+ 379587 [uscengineer@] ractices.com/
+ 379588 [uscengineer@] ractices.com/
  379589 [shortcutter@] oes
  379590 [uscengineer@] le

whois gem - looking for feedback
379591 [weppos@we po] I'm the author and the current maintainer of the Ruby Whois Gem.

[ANN] parslet 1.2 - a PEG parser library
379592 [eule@sp ce c] parslet is a Parsing Expression Grammar based[1] parser generator
+ 379620 [jos@ca no k.] Thanks for your continued work on this, Kaspar!
+ 379793 [groups@in ox] Nifty!

Most simple usage of zlib or pr-zlib
379594 [ngw@no ee .o] difficulties.
379598 [nobuoka@r- e] I see that you want to read a ZIP format file, "test.zip". Right?
379603 [jeremy@bo p.] Support for Ruby 1.9 is still in the works, but it should do what you
379636 [ngw@no ee .o] Thank you guys, I solved with zipruby.
379648 [jeremy@bo p.] No, it does not and will not.  While the two technologies share the same

Re: Unexpected problem: hash<< value
379595 [yimutang@gm ] Thank you. I can read the codes :)
379596 [yimutang@gm ] This is actually what I need. Thank you.

Comparison between C++ and Ruby Variables
379597 [mayank.kohal] I have blogged about the comparison between c++ and ruby variables and
379600 [cmdjackryan@] A link to your blog post would help with that, I bet. ;)
379601 [mayank.kohal] Sorry guys totally missed it .Herr it is: http://mayankkohaley.blogspot.com/
379602 [shortcutter@] om/
+ 379604 [mayank.kohal] Can you please explain how exactly it is different from static member
| 379609 [shortcutter@] le
+ 379605 [mayank.kohal] Can you please explain how exactly it is different from static member
+ 379606 [mayank.kohal] Can you please explain how exactly it is different from static member
+ 379610 [wyhaines@gm ] com/
  379621 [mayank.kohal] Thanks a lot guys for inputs I have changed the blog post accordingly with a

Export gem in single file
379599 [rkononov@gm ] I have following task - create single file from gem for executing it on
379608 [josh.cheek@g] Did you mean to have a leading slash on your require statement? That implies

[Code] Touch Typing Tutor What do you think of my code?
379623 [justin.domin] For example, I used a while loop to iterate through a string (with a
+ 379633 [jp.billaud@g] Hey,
| 379634 [mentionuse@g] This isn't the best use of inject. :)
+ 379644 [justin.domin] Okay, thanks a lot guys!
  379652 [shadowfirebi] Methods and classes will allow you to avoid repeating the same code over and over.  (For example in your original program you do a lot of print-get-sleep.)

psexec with array
379624 [gravescl@gm ] I'm trying to run commands on a remote machine via psexec. The issue

RMagick Install Woes ;_;
379625 [paniaguagsxr] Running Win7 64 bit
+ 379626 [rogerpack200] the --local is probably what's getting you. Remove it :)
+ 379638 [paniaguagsxr] I get this if I just type gem install rmagick
+ 379639 [jakekaiden@g] judging by the C:, you're using a windows system...  following the
| 379641 [paniaguagsxr] I downloaded and installed that already.
+ 379665 [luislavena@g] To install RMagick gem you need RMagick development headers and
+ 395906 [lists@ru y- ] I ran into this error as well while trying to install rmagick on Windows

double singleton?
379627 [rogerpack200] => true
+ 379628 [b.candler@po] def included(klass)
+ 379630 [bbxx789_05ss] I looked through the ruby docs and neither Object, Module, Class, nor
  379631 [ryand-ruby@z] 9998 % ri Singleton

Re: need help with running psexec with array
379635 [gravescl@gm ] I did some more testing and I found the issue. It is with how the file

delete one line of file
379643 [jojosl@ho ma] I'm doing one work school, sorry don't write english very good, I'm
+ 379646 [brabuhr@gm i] (If I understand, we are looking at opcao == 2 (Excluir Aluno)?)
+ 379651 [rajajeyammca] is there  any off campus for mca 2011 pass out in india means , plz inform
+ 379659 [thiago.lewin] alunos = IO.readlines('alunos.txt') # return an array with all ids
| + 379763 [bbxx789_05ss] ...unless your computer crashes right after you open the file.   You
| + 379764 [bbxx789_05ss] ...unless your computer crashes right after you open the file.   To
| + 379765 [bbxx789_05ss] ...unless your computer crashes right after you open the file.   To
+ 379762 [shevegen@li ] I myself use File.readlines but it seems IO.readlines is doing the same
+ 379906 [jojosl@ho ma] Thank you all, I understood the idea of a temporary file and I think

can't run script/console from ubuntu upgrade 9.10 -> 10.04
379647 [arun@sp ed a] I just upgraded my ubuntu from 9.10 to 10.04,
379663 [justin.domin] Have you tried to update ruby/gem/rails ?
379685 [arun@sp ed a] Yes, I've possibly try all versions of update/revert of the gems. Just

[ANN] sleepy_penguin 2.0.0 - Linux I/O events for Ruby
379649 [normalperson] sleepy_penguin provides access to newer, Linux-only system calls to wait

PSD to XHTML Conversion Services and PSD to HTML CSS Conversion Services, PSD to Joomla, Drupal, Wordpress Conversion
379654 [kumar.sravan] PSD to XHTML Conversion, PSD to HTML CSS, Joomla, Wordpress, Drupal,

Fwd: Free 8-10 page Summary on books of UI, UX & IA
379655 [information.] Free 51 Book Summaries....

HTTP response 302
379660 [amruta911@gm] I have installed Ruby 1.8.6-26 and then tried to update its gems.
+ 379662 [justin.domin] The response might be an HTTP error.
+ 379664 [luislavena@g] It includes updated RubyGems that works with newer RubyGems.org gem
+ 379693 [amruta911@gm] Thanks Luis

how to modify the secind line of file
379661 [vahagvardany] I have a cycle, in wich I have to modify the second line of file in

inf-ruby and 1.9
379666 [jinschoi@gm ] Is there a newer version of inf-ruby that works properly with Ruby 1.9?

Email parsing - help please
379667 [stuart.clark] Imagine the following string of data containing
+ 379687 [bbxx789_05ss] It's always puzzling why people like you don't just list the output they
+ 379688 [bbxx789_05ss] Whoops.  Part of the code got chopped off...it should read
  379706 [stuart.clark] Thanks for the tip ;)

Poblem with RubyGems after upgrade to 1.8.7p334
379668 [byrnejb@ha t] I just tried to install 1.8.7.p334 on a CentOS-5 host that previously
379672 [ryand-ruby@z] Wow... maybe you're not using the ruby you think you're using? or maybe =

Re: rubygems-update 1.6.0 Released
379669 [keithsalisbu] Can anyone suggest where I should put

Scraping with Nokogiri while using Mechanize
379670 [vikramjam@ya] The Mechanize documentation says to just start scraping with Nokogiri
+ 379689 [bbxx789_05ss] Is there a form with the name 'f' on the page www.google.com.  According
+ 379716 [vikramjam@ya] The Mechanize part works fine.  I navigate to the page I want and when I

problem with compilation
379673 [magda.szlago] I'm totally newbie at Ruby. What is wrong whit this code
+ 379674 [sduncan@we a] ...
+ 379675 [magda.szlago] hmm ok but how to fix it? :) I don't know ruby langauge, i need only
| 379676 [echristopher] Move output = '' to before the while loop.
+ 379677 [magda.szlago] ok, the error disappeared but for input
| + 379681 [echristopher] It appears that you're dealing with an esoteric language called
| + 379682 [g.diemant@gm] Its more like the while loop never runs cause your input doesn't match the
+ 379683 [magda.szlago] Ok, thanks for help :) It didn't wokr only with Neatbeans. I siwtched to

net/http not found?
379678 [   hgl@ya ru] Moved my ruby project to a server and tried running it, but I get this
379679 [luislavena@g] Have you tried?
379680 [   hgl@ya ru] haha, thanks. Works now.

class_eval() problem
379684 [bbxx789_05ss] def create_class
379695 [g.diemant@gm] The greet method is a private method of Object not of MyClass.
379736 [bbxx789_05ss] Thanks.  I didn't realize that Object#methods() returned only public

What do you use with Ruby for GUI programming and why?
379686 [sigzero@gm i] Is there a push to one toolkit or the other?
+ 379703 [sutniuq@gm .] Just yesterday I posted on this list because of a spreadsheet that had a
| 379720 [subscription] FWIW, I'm using FxRuby with no real problems.  It's been easy to install =
+ 379713 [steve@st ve ] I use Shoes. I'm biased; I'm one of the maintainers.
| 379715 [shadowfirebi] That's interesting.  I rather thought that you had to think of Shoes as a seperate language, almost.   Do you ever find that the Shoes syntax ever gets in the way of writing good old-fashioned Ruby code? Or is that a stupid thing to say?
| + 379717 [andrea@an re] <shameless_plug>
| | + 379718 [catsquotl@gm] I like green_shoes.
| | + 379719 [martindemell] Looks very interesting, but the docs are a bit scanty!
| + 379722 [steve@st ve ] Shoes is just Ruby, with a lot of library on top. That said, the way it's
|   379749 [shadowfirebi] Shoes is far and away the easiest and most pleasant way to get a GUI that I've seen - in any language.  I'm a bit worried about having to drop back to 1.9.1, and I sure miss the Linux installer.  But I absolutely have to try Green Shoes, though.
|   + 379750 [echristopher] I've seen - in any language. =A0I'm a bit worried about having to drop bac=
|   | + 379751 [ashbbb@gm il] Look at "A Rainbow of Shoes"-- http://blog.shoesrb.com/archive
|   | + 379753 [steve@st ve ] We haven't been talking about all of them super-publically yet because most
|   + 379752 [ashbbb@gm il] True! I totally agree. :-D
+ 379724 [headius@he d] JRuby plus either Swing or SWT (possibly using one of the Ruby
+ 379745 [e.j.jurman@g] I've used Tk for a long while now, and while I've found it's sometimes
+ 379758 [shevegen@li ] I myself still use ruby-gtk / ruby-gnome.
+ 379769 [rogerpack200] I currently just use straight swing wrapper with jruby (wrapped to be
| + 379771 [echristopher] Roger, is that wrapper input_form?
| | 379902 [rogerpack200] No it's just some homebrew stuff.
| + 379817 [eule@sp ce c] If you leave cross-platform out of the question (which wasn't originally
+ 379806 [dglnz2@gm il] Surprised no one has mentioned Fxruby and Wxruby.
| 379818 [sutniuq@gm .] I usually use wxRuby when coding GUIs and it's a wonderful tookit (it
+ 379819 [jakekaiden@g] i also use ruby-gtk2, and i'm generally very happy with it.  it uses
+ 379821 [michel.reves] ...
| 379822 [lethaljellyb] What is the reason you switched from TK? Did you also feel that tk did not have enough features (and documentation)?
| 379829 [michel.reves] ...
+ 379887 [shevegen@li ] For me I did not like Tk, neither the look nor the documentation.
+ 379890 [regis.aubare] * on windows, run very quikly : 1/2s for main window ready

How to check snmpd is running or not
379690 [chandu.ch29@] I am working with SNMP in ruby, I have installed the SNMP library and
379747 [b.candler@po] Do you mean that you are writing an SNMP *client* application in Ruby -

Problem after installation of ruby specifying that the Gems are not installed properly
379691 [kumar.grande] I installed ruby which require for the WET automation tool
379696 [ryand-ruby@z] not with just this vague description... no.

Web design services | website designing | hire a website designer | creative web
379692 [xhtmlchamps@] web design services, XHTML Conversion Services, Offshore outsourcing

[ANN] ActiveConductor 0.2.1
379694 [michi@ne zp ] I'd like to announce the availability of ActiveConductor 0.2.1, a Rails =

Generador visual consultas mysql
379697 [david.everis] Hola, necesito crear un generador visual de consultas para mysql y poder

Visual query generator for mysql
379698 [david.everis] use it within my application. I'm looking for a plugin or gem but do not

How to pass the given block to other method?
379699 [ibc@al ax ne] SomeModule.connect_tcp("1.2.3.4", 23) do |connection|
379700 [ibc@al ax ne] module OtherModule

Sketchup gurus: Urgent information needed
379701 [sirnoname@gm] I like to bring a software with game information together with sketchup.
379702 [ rv@do os be] Ask your question here: http://forums.sketchucation.com/viewforum.php?f=180&start=0

substitution in a regular expression
379704 [tcblues@gm i] I want to replace the text for fecha on the string but I don't know how
+ 379705 [wagner.andre] I played with your regex on rubular, and came up with this as one possible
+ 379709 [g.diemant@gm] Try a.gsub(/'?fecha'?\s*:\*[0-9\/]+/, "fecha: 01/03/2011").
+ 379714 [shortcutter@] irb(main):004:0> a=3D" id:'name',

universal symbol
379707 [vahagvardany] I just can't explain in English what I want , so there is example
+ 379708 [mbj@se ni .n] You are speaking about "shell globbing", you can use Dir.glob or its
+ 379710 [vahagvardany] thanks for answer, but I don't mean that, I don't mean directories
| + 379711 [g.diemant@gm] ['file111','file222','file1ax', 'something'].select { |str| str =~ /file.*/
| + 379712 [chris.hulan@] if the strings are all starting with the same chars, you could use
+ 379721 [josh.cheek@g] Sorry, what is this supposed to do? It looks like you are wanting to use
+ 379742 [bbxx789_05ss] gets() does not let you specify wild cards like * (nor a regex), so the
+ 379743 [bbxx789_05ss] str = "class#1 hello world class#2 goodbye class#3 hi"
  379744 [josh.cheek@g] It still needs to be better defined, his/her example delimiter is "class#{i}

Any ideas?
379723 [52w7te9ara@s] Greetings,
379725 [hassan.schro] About "this"? It's a popular (or at least widely-used) four-letter English
379726 [sutniuq@gm .] Maybe he comes from another language and means the "self" keyword?
379727 [wagner.andre] I think it's more likely he meant to put this question on the other thread
379785 [52w7te9ara@s] Yeah, sorry about that. I don't know what happened.
379787 [hassan.schro] What happens if you run the snippet below as a standalone script?
379789 [52w7te9ara@s] Thanks for the reply.
+ 379791 [hassan.schro] If a simple Mysql.new fails, I'd be real tempted to delete that gem and
+ 379816 [b.candler@po] You don't happen to have a file called "mysql.rb" in your working
  379848 [52w7te9ara@s] Thanks for the response.
  379850 [hassan.schro] It's useful, but I wouldn't necessarily start until you figure this out.

Is an elsif loop possible?
379728 [waffles008@h] I don't know if this is possible as I haven't found anything on google
+ 379729 [steve@st ve ] ...
+ 379730 [waffles008@h] Thank you Steve. That was exactly what I needed.
  379733 [bbxx789_05ss] What is that line for?  As written it does nothing: the comparison
  379734 [adgar@ca bo ] That's a purely subjective point to make and, in my opinion, often =
  379738 [steve@st ve ] Agreed, especially in this instance. You want to process until the input is

Array question.
379731 [catsquotl@gm] I have a csv file. #several really
+ 379732 [bbxx789_05ss] def test(*args)  #gather all the args into an array
+ 379746 [shortcutter@] The string interpolation is pointless here.  If @points may be anything

Problem in script help (shoes)
379735 [lars_werkman] heey, i have a problem with my script could some one please look at it
379737 [steve@st ve ] You can check the Shoes Console with command-/. When typing something into
379740 [ashbbb@gm il] You define the SomeDataProcessing class within Shoes.app block.

Re: parslet 1.2 - a PEG parser library
379739 [sunaku@gm il] Hurray for improved readability!  This is a good change. :)

Re: [jruby-user] [ANN] JRuby 1.6.0.RC3 released
379741 [headius@he d] Thanks for the confirmation :) Looks like we'll have no problem

Re: Problems with programming (shoes)
379748 [lars_werkman] heey thank you all for the reactions

rake problems
379754 [b1368810@lh ] I have an Ubuntu 10.10, rake -v 0.8.7

send() with a block?
379755 [bbxx789_05ss] Why don't the ruby docs say that send() can take a block?
+ 379756 [sean.ohalpin] It's not the send() that's consuming the block - it's the define_method().
| 379757 [whitequark@w] But send() still bothers to pass the block around. Consider the
| + 379759 [sean.ohalpin] ).
| | + 379761 [ryand-ruby@z] Indeed... Take that statement a step further: ALL methods take a block, =
| | + 379776 [shortcutter@] Automatic propagation of the block is not a feature of #send but a
| + 379779 [b.candler@po] def my_method
|   379780 [whitequark@w] That's the whole point of my demonstration. (Maybe I was too concise.)
|   + 379782 [sean.ohalpin] def my_send
|   + 379784 [b.candler@po] Indeed. And the O.P. was passing a block to send explicitly too.
|     379786 [b.candler@po] def my_method
|     379794 [astounding@g] I agree that the documentation the original post linked to really
|     379796 [mentionuse@g] Based on Robert's code, isn't this false, with it being a feature of super
|     379797 [gwtmp01@ma .] super
|     379805 [shortcutter@] er
+ 379760 [ryand-ruby@z] ...
+ 379770 [shevegen@li ] One of the best replies. And beautifully signifies the flexible approach
+ 379798 [josh.cheek@g] It says "Invokes the method identified by symbol, passing it any arguments
| 379800 [astounding@g] Correct, a block IS an argument, but of a rather unusual type in that
| 379803 [josh.cheek@g] There is always a block slot, as Ryan said "ALL methods take a block". What
+ 379834 [bbxx789_05ss] The actual method "send" can take a block, and it passes it to the
  379837 [gwtmp01@ma .] Your comment about LocalJumpError should be one line above and it
  379839 [bbxx789_05ss] Ah, a typo.  Thanks.
threads.html
top