345416-346853 subjects 345815-356734

Counter problem for specific file types
345594 [stuart.clark] This is a real teaser for me and would appreciate some help with the
345597 [jgabrielygal] If I understood correctly, what you can do is to have a counter that

Can't seem to be able to require 'net/ssh/multi'
345602 [chutsu@gm il] gem install net-ssh-multi
345605 [chutsu@gm il] Nvm.. just forgot to require 'rubygems' at the start!

Array.transpose on [[]] or [[],[]]
345604 [ralf.mueller] I wondered why [[]].transpose = [] and [[],[]].transpose = []
345621 [sepp2k@go gl] You can think of [] as an array of 0 arrays in this case.
345700 [ralf.mueller] sure, but [[]] has a subarray. so, shouldn't [[]].transpose have one too?
+ 345702 [sepp2k@go gl] Well, [[1],[2]] has two subarrays so should [[1],[2]].transpose have two
| 345704 [ralf.mueller] Yes, I was contradictory to myself ;(
+ 345703 [shortcutter@] No, [[]].transpose should not have a sub array: [[]] must be seen as a

Resolv not working after a while?
345607 [space.ship.t] ...
345809 [rogerpack200] you might want to try using hijack or live console to see where it

Data::Dumper for Ruby?
345610 [jw@ra en in ] I am new to Ruby and am about to start my first application that exceeds the
+ 345611 [gregory.t.br] the
| 345618 [jw@ra en in ] Thanks for the fast answers!
| 345624 [gregory.t.br] per
+ 345612 [james@gr ys ] In Ruby we generally use the standard YAML library for that.  If you
| 345617 [Rob@Ag le on] You might also be interested in the inspect method. It's what irb uses
| 345644 [jw@ra en in ] [ ... ]
+ 345638 [vjoel@pa h. ] It's a bit old, but it does output ruby syntax.
+ 345678 [mark@th ma z] the

Better RDoc Inline Markup
345613 [transfire@gm] RDoc's SimpleMarkup  doesn't catch all the cases of  inline markup
+ 345615 [fxn@ha hr f.] +:select+
+ 345662 [drbrain@se m] + is for variables and variables don't have punctuation.
| 345665 [transfire@gm] SM is used for more than just generating RDocs.  For instance, READMEs.
| 345668 [jbarnette@gm] I've been pretty happy using <tt></tt> for inline code examples, no
| + 345673 [transfire@gm] Not so much. It isn't very good for all uses. Certain documents are
| + 345708 [fxn@ha hr f.] Yeah it works, but ++ would be much simpler and clean.
+ 345746 [drbrain@se m] Wait, did you even try it?
  + 345754 [fxn@ha hr f.] Great! Didn't know it worked in recent rdoc, it is certainly not
  + 345761 [transfire@gm] Hmmm...
    345772 [drbrain@se m] There's no more SM, rdoc 2.x is properly namespaced.
    345775 [transfire@gm] Thank you!

declare a shell alias in a ruby file
345614 [jeansebastie] I'm trying to declare a shell alias from a ruby file.
+ 345625 [glennj@nc .c] you spawn a shell, declare the alias, then the shell exits taking the
+ 345626 [b.candler@po] You cannot.
  345697 [jeansebastie] =A0 `xxx`
  345701 [glennj@nc .c] Brian is saying that the ruby script writes shell commands to a file
  345757 [bennconn@ya ] ...

AE v1.0.0 released
345616 [admin@ti er ] = A.E. -- Assertive Expressive

Generating multiple files with one ERB template
345631 [jacob.d.lich] I'm trying to generate html files based on an ERB template with data
345649 [bbxx789_05ss] That couldn't be more vague. Which lines of code are you talking about?
345652 [jacob.d.lich] thanks for the response and sorry to be so vague!

need ruby code to handle popup messages
345636 [ravi8485@gm ] I am running an web application driven by watir
345639 [rodrigo.berm] 2 of them ->
345643 [ravi8485@gm ] thanx a lot

ri on snow leopard?
345637 [matt_neuburg] Hey all -
345664 [drbrain@se m] Likely you had RDoc 2 installed then it got replaced by RDoc 1 when
345669 [matt_neuburg] Excellent.
345679 [ryand-ruby@z] % sudo gem pristine rdoc

can't update rubygems
345654 [derek.mailer] on Mac OS X Tiger 10.4 and unable to update rubygems from 1.0.1 to 1.3.5
345659 [aaron@te de ] unarchive it, then run "sudo ruby setup.rb"
345661 [derek.mailer] I've tried that already, thanks. Here's what I got when I tried it...
345666 [aaron@te de ] sudo ruby setup.rb --debug
345671 [derek.mailer] same as in gem env above
345681 [drbrain@se m] Whoah!  How'd you load up your system RubyGems?
345749 [derek.mailer] here's how it looks...

[ANN] gmail_contacts 1.7 Released
345655 [drbrain@se m] gmail_contacts version 1.7 has been released!

Is Passing a Binding with Parameters Possible?
345656 [john.sikora@] Does anyone know how to pass a binding using parameters instead of a
+ 345675 [bbxx789_05ss] def called_method(*parameters, &code_block)
| 345684 [bbxx789_05ss] class Parameters
| 345736 [john.sikora@] 7stud,
+ 345688 [space.ship.t] ...
  345742 [john.sikora@] SST,
  345769 [vikkous@gm i] Binding.of_caller is really a hack... Don't use it. You're better off
  345992 [john.sikora@] Caleb,

Odd random segfaults in 1.9.2dev with gem method
345663 [nlugovoi@gm ] Got some segfault errors when trying to run rake test for rails.
345674 [thopre@gm il] yes, i also get this error

Re: How do I decode/parse a X509 SSL Cert
345672 [yermej@gm il] require 'openssl'
345683 [yermej@gm il] Sorry, I forgot to answer the first part of the question. And I was

Oniguruma: Different result in ruby 1.9.1 and 1.8.7
345677 [miguelfteixe] /(?:(?:\$(?'name1'[\w\s\']+)(?:(?'name2'(?:created|developed)[\w\s]+)(?name3'(?:in|at)[\w\s]+)))|(?:\$(?'name1'[\w\s\']+)(?'name2'(:?created|developed)[\w\s]+))|(?:\$(?'name1'[\w\s\']+)(?'name3'(?:in|at)[\w\s]+)))(?:\.(?'name4'[\w\s]+))?/.match(str)
+ 345680 [aaron@te de ] That expression is rather long.  Have you tried reducing the regular
+ 345719 [shortcutter@] me3'(?:in|at)[\w\s]+)))|(?:\$(?'name1'[\w\s\']+)(?'name2'(:?created|develop=
  345726 [miguelfteixe] The problem is that in ruby 1.8.7 is impossible (?) to use string method
  345741 [shortcutter@] Apparently you are not getting my point - maybe I wasn't clear enough.
  345781 [miguelfteixe] I get the same result when trying the match via Regexp.new.

refactor sketchup-ruby code
345682 [jim.foltz@gm] I need help in understanding how I can factor out some code I posted

JSpec command line run command doesn't work
345686 [shamaoke@ho ] I've just installed the JSpec* gem and trying to run some test suites.

Can not install mysql gem
345689 [vgnam2404@gm] I can not use mysql gem for my ruby & mysql system.
345692 [luislavena@g] The Gem has been installed
355043 [dale8458@gm ] I am having the same issue with sudo gem install mysql  I also have the
355047 [vgnam2404@gm] Follow the above link to view solution. Luis has showed me that I

could ruby programming capture a media title?
345690 [g.zhen.ning@] I have a thought on if we could capture a media title when we watch a
+ 345709 [jstewart@fu ] You might have some luck with FFMpeg (http://ffmpeg.org).
+ 345755 [drbrain@se m] $ ruby -Ilib sample/metadata.rb ~/Movies/A\ History\ Of\ Violence.mp4
  345829 [spiralofhope] Sweet!  Nice work.
  346016 [drbrain@se m] For extracting it will work as-is.  I recently got audio/video

<LocalJumpError> Message: <"no block given">
345693 [venkatram.ak] Cannot understand why this error is being raised. Any help is
+ 345695 [bbxx789_05ss] def open
| 345699 [bbxx789_05ss] Scratch that.
+ 345696 [jan.svitok@g] - =A0 =A0assert_nothing_raised @pool.open
  345756 [venkatram.ak] Thanks Jano that was it. Appreciate your help 7stud.

RubyWorld Conference live broadcasting
345705 [shugo@ru y- ] The RubyWorld Conference will be held at Shimane Prefectural
345713 [devguy.ca@gm] Is there plans to post the video somewhere like on YouTube for later viewin=

345707 [resourts03@g] Best for my site buy-sell old ship any ships and any tones for buying.

XTEA Cryptography Algorithm
345710 [di3go.bernar] Some one know if ruby has any implementation of XTEA algorithm?
+ 345712 [AEtzold@gm .] Dear Diego,
+ 345739 [wishdev@gm i] The implementation I've used in the past came from here -

Regular expressions - string substitution
345716 [stuart.clark] A quick question if I have a string like so
+ 345717 [shevegen@li ] "000000100".to_i.to_s # => 100
| 345722 [stuart.clark] Thanks all. I completely forgot about that. It always the simple things
| 345724 [rodrigo.berm] string.gsub(/^0+/,"")
+ 345720 [michael.tome] So long as you'll always be converting numbers, you can use to_i. That
+ 345721 [spiralofhope] string.gsub(/^0*/, "")
+ 345723 [james@gr ys ] "000000100".sub(/\A0+/, "")
+ 345725 [jeanjulien.f] string.sub(/^0+/,'')
+ 345727 [Rob@Ag le on] string.sub(/^0*/,'')

Bytecode in Ruby 1.9
345728 [register@fi ] I've looked all over and I can't seem to find any complete documentation
345734 [mark@fa t- o] Not that I know of. What I've learned came from debugging vm_exec().

345730 [codetest123@] I am on a windows box trying to scp a file from a linux box.
345747 [_mwryder@wo ] Are you sure that you need to do any conversion?  I move files between

How to examine dependencies of previous gems
345735 [lsherwin@ma ] I am trying to see if there are any differences in the dependencies for
345737 [Rob@Ag le on] Well, we certainly are!  How about: gem list mongrel
345738 [lsherwin@ma ] I don't have 1.1.4 installed locally. In fact that is what I'm trying to
345740 [Rob@Ag le on] Oh, that leads to an explanation, too. Does this help?
345743 [lsherwin@ma ] Sorry I guess I was not clear that my question is about using gem
345744 [Rob@Ag le on] $ gem query --remote --name-matches '^rails$' --all

[ANN] unicorn 0.91.0 - finally supports HTTP/0.9!
345748 [normalperson] Unicorn is a Rack HTTP server for Unix, fast clients and nothing else.

Connecting to Exchange
345751 [aldric@tr vo] Imap fails for me, Pop fails for me. I'm guessing it's because of
+ 345752 [rilindo@gm i] You'll have to ask whoever administers Exchange to enable either IMAP
+ 345753 [brabuhr@gm i] Not likely without knowing more detail on why it is failing (have any
  348739 [dan.wanek@gm] It is still in the early stages of development, but I am writing a

[ADV] Three Days of Ruby Training
345758 [james@gr ys ] If you or someone you know would enjoy a three day Ruby language

345765 [bennconn@ya ] ...
+ 345776 [shortcutter@] You have to do it yourself.  Look at email headers.
+ 345881 [karottenreib] 2009/9/5 Patti Bennett <bennconn@yahoo.com>

find class, module, exception dynamically
345767 [prateek.agwl] How to find the class, module and exception structures of the built-in
345811 [xenogenesis@] do you mean to do something like this?
345812 [xenogenesis@] e =3D~ /\ANokogiri/ }

Can You Store Individual Letters?
345770 [scottandrech] I was wandering if it is possible to have user inputted words stored and
+ 345771 [bbxx789_05ss] str = "Tomato"
+ 345786 [TimHunter@nc] Check out String#split
  345845 [Rob@Ag le on] And if you unshift a value (like nil) into the first element, then you

Rubyscript instead of javascript
345773 [d_rems@ya oo] It is just a thought. And I wouldn't know anything about possible
+ 345795 [shevegen@li ] Yeah. I think most people like Javascript, but I actually hate it.
| 345823 [ninja@sl ph ] Really? I tend to find the opposite.
| 345849 [tony@me io .] As someone who works with JavaScript on a daily basis, programming in it
| + 345850 [tony@me io .] => NaN
| | 345919 [alex@bl ck e] This particular example has nothing to do with coercion, and everything
| + 345855 [ninja@sl ph ] So do I, just no more than any other language I've had to work with enough to
|   345900 [eleanor@ga e] It seems that's part of Microsoft's thinking with Silverlight and the
|   345945 [ninja@sl ph ] - Mono always seems to be several steps behind .NET.
|   345970 [Usenet@Go gl] We already have. It's called ECMAScript. The only thing missing to
|   + 345982 [eleanor@ga e] I'd also like to point out that the stability of the OS X port of =20
|   | + 345998 [michael.tome] This is only somewhat related, but Appcelerator Titanium
|   | + 346210 [ninja@sl ph ] That's the theory behind something like Chrome.
|   + 346211 [ninja@sl ph ] This can actually work reasonably well -- as I understand it, the IronRuby =
|   | 346216 [rimantas@gm ] Not exactly true (anymore). OS X 10.6 runs majority of the system in
|   | 346219 [hramrach@ce ] Flash eats a lot of CPU time.
|   | 346240 [ninja@sl ph ] I believe they've since changed this -- so technically, Gnash is allowed to
|   | 346244 [hramrach@ce ] Yes, perhaps flash support will improve too, eventually.
|   | 346256 [ninja@sl ph ] Last I checked, Windows came out of the box with Flash installed and enabled,
|   + 346238 [jeff.barczew] On 9/8/09, J=F6rg W Mittag
+ 345796 [eleanor@ga e] There are several projects for getting Ruby into the browser, ranging
| 345797 [d_rems@ya oo] It should probably be done like a plugin. Like Flash. Since it already
| 345802 [hramrach@ce ] The problem with yet another plugin is that everybody who visits your
| 345803 [mcamou@te no] Well, Java is installed in most computers and there's JRuby.
| + 345805 [hramrach@ce ] Sure having Java installed does not automatically mean that it works
| + 345807 [eleanor@ga e] It's arguable as to whether Java or Flash is more widely distributed,
+ 345824 [mguterl@gm i] Chris Nelson gave a quick presentation of Gestalt at Cincinnati.rb,
  345825 [mguterl@gm i] Best,
  345831 [d_rems@ya oo] Rome wasn't build in a day and it would be wrong to force millions users
  345833 [eleanor@ga e] JavaScript is ugly (to my eyes) but I wouldn't say it was any more

how to compare two object instances? is "m1.to_yaml.eql?(m2.to_yaml)"  a good way?
345774 [greg.hauptma] What's an easy way to compare for equality two object instances (that
+ 345777 [shortcutter@] Why do you believe equivalence has something to do with persistence?
| 345779 [greg.hauptma] It's only the instances I want to compare of instances of a Rails
| 345792 [shortcutter@] No, I meant, if you want to be lazy you can implement your classes by
| 345819 [greg.hauptma] Thanks Robert - this looks like a good way to go then.
+ 345780 [vahagnh@gm i] Have you tried using obj_1.hash == obj_2.hash ?
  345785 [greg.hauptma] I think the saving/persistence comment of mine diverted the focus of
  345789 [greg.hauptma] actually I just saw this posted on

Filling Wx::ListCtrl with contents
345778 [max-braeu@gm] ...

End of file error when trying to Marshal.load
345782 [vahagnh@gm i] I am trying out the marshaling functionality of Ruby with this
345784 [TimHunter@nc] I'm guessing you're on Windows. You need to open the file in binary
345787 [vahagnh@gm i] Marshal.dump(o, File.open("output.txt", "wb"))
345791 [shortcutter@] Please do not top post.
345793 [vahagnh@gm i] Ah! "While not closing a read only file usually does not have dramatic
345794 [shortcutter@] use the block form of File.open because it is more robust.
345801 [vahagnh@gm i] @Robert: Sure!

something.new( :attribute => value) thing
345783 [kadelfek@ka ] My_Window.new(app, "Button Test", :opts => DECOR_ALL, :x => 100, :y =>
+ 345788 [TimHunter@nc] When the trailing method arguments are key => value pairs, Ruby collects
| 345813 [kadelfek@ka ] I know the hashes, but I didn't know what was the best way to use
| 345840 [boesemar@gm ] class A
| 345887 [kadelfek@ka ] Use default values is a goog idea. The problem is, you have to write the
+ 345808 [jgabrielygal] As Tim said, Ruby collects key-value pairs at the end of the argument
+ 345810 [bbxx789_05ss] class A

gnuplot font type and size
345790 [rob.webinato] I'm using terminal png.
345817 [farrel.lifso] plot.terminal( 'postscript eps size 17cm,10cm font "Helvetica,12"')
345820 [rob.webinato] Farrel,

How to convert a "normal" searchstring into regexp
345804 [mail_noxx@we] I'm really new to Ruby and I hope I didn't overlook something while
345891 [karottenreib] I haven't tested it much though...
345915 [shortcutter@] class String
345918 [mail_noxx@we] Thanks, but unfurtunatly it seems to not work correctly.
345920 [shortcutter@] It's the Ruby version.  You need Oniguruma which is default in 1.9 and I
345931 [mail_noxx@we] ok.. after some more deeper investigation I found that I got 1.8.7 and
345973 [karottenreib] that would probably be a good idea for a gem, although I'd
345978 [shortcutter@] As far as I can see you only need a scanner here - there is no CFG
345990 [karottenreib] well that was just an idea thrown in. it's not like i sketched it out on

QED v1.1.0 released
345814 [admin@ti er ] = Ruby Q.E.D.
345816 [transfire@gm] Should read