405552-406109

405334-428702 subjects 405820-412016

[ANN] rubygems-openpgp 0.5.0 released - Now with key continuity checks.
405552 [kgo@gr nt ol] rubygems-openpgp 0.5.0 Released
405554 [kgo@gr nt ol] And... 0.5.1 wasn't far behind.

[ANN] football.db - Free Open Football Fixtures & More (Championsleague, Bundesliga, World Cup Quali etc.)
405564 [gerald.bauer] I've extracted all football fixtures from the sport.db into its own

[ANN] m2dman 1.6.0
405567 [sunaku@gm il] md2man - markdown to manpage

Confusion with block local variable declaration with block variable declaration within the pipe `|`
405570 [lists@ru y- ] Why are we not allowed to create local variables or new object with
405576 [peterhickman] Your first example does not work for me in any version of Ruby. But this
405578 [peterhickman] Actually the error message is the clue here.

Re: Confusion with block local variable declaration with block variable declaration within the pipe
405571 [lists@ru y- ] You're looking for "Inject"
+ 405572 [lists@ru y- ] look for #each_with_object and #inject/#reduce
+ 405573 [lists@ru y- ] No, please look at the symbol `;`, which is used to declare block local
  405574 [lists@ru y- ] because this variables are reseted back to nil, every time the block is
  405575 [lists@ru y- ] Yes! You are right. I know the importance of such declaration of local
  405577 [lists@ru y- ] its when each yields more than one object, then you can see a difference
  405581 [lists@ru y- ] The below also doesn't work.
  405582 [lists@ru y- ] it does not work because blocks does not allow "default" parameters like
  405587 [lists@ru y- ] a = "hello world".split(//).each{ |x| newstr << x.capitalize } (<~~ But
  + 405588 [lists@ru y- ] ***capitalize! returns nil when no changes are made***
  | 405589 [lists@ru y- ] Okay!
  | 405591 [lists@ru y- ] maybe the newstr was defined in the paragraph before, or there is a
  | 405593 [lists@ru y- ] You explained it very cool way. So I have to digest it and I did also.
  + 405605 [sto.mar@we .] Because you did not try to append nil to a string!

gem 'mechanize' in Ruby script
405579 [lists@ru y- ] I would like to know exactly how this snippets work in Ruby script.
+ 405580 [lists@ru y- ] method if you want to use ruby1.8
+ 405583 [matma.rex@gm] It won't be installed, and it won't even be `require`-d. This line just checks if you have the gem installed in that version, and if you don't, it raises an exception.

Returning File::Stat objects from a C extension
405585 [andre@di ir ] I'm trying to find out how to return File::Stat objects from a C
405586 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

Confusion with empty block printing
405597 [lists@ru y- ] {}.class
+ 405598 [lists@ru y- ] because
| 405599 [lists@ru y- ] Can you give me a bit knowledge about `closure block` concept. I didn't
+ 405601 [lists@ru y- ] i mean the blocks you used in http://www.ruby-forum.com/topic/4411871
| 405602 [lists@ru y- ] I am thinking when IRB sees that `print {}.class`, Is there any chance
| 405607 [matthew@ke w] I'm pretty sure you want:   print( {}.class )
| 405612 [lists@ru y- ] See when typed in IRB the below it gives
+ 405613 [lists@ru y- ] 1..2=> NilClass
| + 405614 [garthy_lmklt] Please elaborate on the ways you have attempted to solve this problem
| + 405616 [nolic@no ic ] You are messing up your code because you did not use parentheses,
|   405618 [matthew@ke w] Stop using irb. Write a .rb file and run it. Then you will (hopefully) see
+ 405620 [lists@ru y- ] First of all thanks to all guys who has shown interest in my post.
| 405632 [sto.mar@we .] Among the repliers there hasn't been any confusion at all.
| 405633 [lists@ru y- ] Thank you very much to you for your effort to explain me the topic in
+ 405622 [lists@ru y- ] BECAUSE { } are used for hashes AND blocks ... in this context you use
+ 405623 [lists@ru y- ] Humm,
| 405624 [matthew@ke w] print {}
+ 405625 [lists@ru y- ] Thanks for your re-explanation. This is how IRB works I understood.

Access values for JSON.parse response
405608 [lists@ru y- ] Ruby.
+ 405609 [lists@ru y- ] Yep.
| 405611 [tamouse.list] These are the vagaries of XML :)
| 405645 [lists@ru y- ] I have another question. By looking at my response, I am trying to go
+ 405648 [lists@ru y- ] Any reason you don't just write a recursive method? I find that's the
| 405650 [lists@ru y- ] I tried but I just couldn't seem to get it to work correctly.
+ 405653 [flori@pi g. ] jYSUyRk5l
+ 405655 [lists@ru y- ] def recursive_find( key, object )
| 405667 [lists@ru y- ] Joel,
| 405673 [lists@ru y- ] Well, one way I thought of was to have it do a select instead of a find
+ 405703 [lists@ru y- ] By the way, I corrected this on the forum but it's still wrong in
  + 405704 [lists@ru y- ] Ooh, I missed that one too.  I'll fix my post too.
  + 405744 [lists@ru y- ] Thanks for your help.  I like the idea of seeing the path.
    405761 [lists@ru y- ] Joel,
    405766 [lists@ru y- ] Joel's doesn't.  Mine does.  ;)
    + 405767 [lists@ru y- ] Oops, sorry, that should be 30 instead of #{target}
    + 405803 [lists@ru y- ] oops..I'm getting you guys mixed up...Thanks Matthew...  You guys have

[ANN] rubygems-update 2.0.3 Released
405615 [drbrain@se m] RubyGems is a package management framework for Ruby.

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

Is it possible to run Tcl from Ruby?
405626 [lists@ru y- ] Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk
+ 405627 [fluido@fl id] Tcl/TK support is included in Ruby from the beginning. I never used it
+ 405628 [lists@ru y- ] Thanks Carlo but I wanted to run Tcl scripts without the usage of Tk.
  + 405629 [fluido@fl id] Umm... Would opening a pipe with tclsh solve your problem? See
  + 405639 [nagai@ai ky ] Please use tcltklib and tkutil directly.

Confusion with some Module methods.
405630 [lists@ru y- ] Can anyone help me to understand how the below module methods works?
+ 405631 [lists@ru y- ] Module#used() & Module#refine are part of the Refinment system ... but
| 405635 [lists@ru y- ] Hope it will be helpful for me. If any confusion then I will post here.
+ 405684 [lists@ru y- ] I created a file say `mylibrary.rb`. content of which is
+ 405685 [lists@ru y- ] does not work, because autoload use require, not require_relative, your
| 405687 [lists@ru y- ] irb(main):003:0> $LOAD_PATH
+ 405688 [lists@ru y- ] OR maybe thats why "autoload" is not an good idea?
+ 405690 [lists@ru y- ] true
+ 405691 [lists@ru y- ] only nil and false itself are treated as false,
| 405692 [lists@ru y- ] yes @hans thanks for you help. I know these.
| 405694 [matthew@ke w] Only by reading the documentation.  ri is a good start.
| 405697 [lists@ru y- ] Humm, That I know. But I thought if anything like Module#const_defined?
+ 405714 [lists@ru y- ] module FooBar
+ 405725 [lists@ru y- ] Bar.ancestors
| 405727 [lists@ru y- ] Yeah! that I understood.
+ 405729 [lists@ru y- ] its not the ancestor of FooBar, only in the view of Bar ... you need to

no such file to load -- yaml (LoadError)
405634 [lists@ru y- ] I am trying to migrate my ruby from old server to new server.
405636 [lists@ru y- ] what is the ruby version of the new server? you may miss some gem
405750 [lists@ru y- ] Thanks for your reply
+ 405760 [justincollin] This is not a good idea. In Linux, rarely is the entire program in one
+ 405764 [sto.mar@we .] YAML is not a gem but part of the standard library.

Confusion
405642 [shortcutter@] SCNR
+ 405643 [lists@ru y- ] lol, it has been a theme recently :)
| 405654 [rubytalk2dav] As one of the great sages of the 20th Century said, "There's too much
| 405779 [tamouse.list] On Mar 12, 2013 1:23 PM, "Dave Aronson" <rubytalk2dave@davearonson.com>
+ 405644 [sto.mar@we .] I'm still confused.
+ 405646 [tony.arcieri] Tony Arcieri
  405649 [shortcutter@] Ah, ye young people!
  405651 [tony.arcieri] Tony Arcieri
  405652 [shortcutter@] I have to draw the line *somewhere*. ;-)

Question about using an automated date stamp for an abbreviation in the SciTE Editor Abbreviations File
405647 [htruax@st .c] I want to enter an abbreviation into my Abbreviations File that will
405660 [shortcutter@] While people here may know this question seems better placed in a SciTE forum.
405661 [htruax@st .c] Thanks for the ..umm....help.
405663 [shortcutter@] Well, I'm not saying that you won't get help here - it just seems

Confusion with Strings
405656 [lists@ru y- ] "If you try to set part of the string that doesn°«t exist°Ĺ***a too-high
+ 405657 [lists@ru y- ] Are you really saying that you don't understand the concept of one
| 405658 [lists@ru y- ] What does it mean by `too high` or `too low` ? I didn't understand the
| 405659 [me@da id wd ] ...
| 405671 [aghorishaivi] Hahaha.  2 days into subscribing to this list and I'm already happy I did.
+ 405662 [mcginness.s@] Do you know how to set any part of a string using a numerical index?
+ 405664 [lists@ru y- ] @Scott.
| 405665 [cliff.rosson] Language problems here. Not worth getting worked up over imho.
| 405670 [sto.mar@we .] I disagree, considering the by now hundreds(!) of pointless,
| + 405672 [cliff.rosson] What usually happens is you guys respond in haste, usually with an angry
| + 405679 [ryand-ruby@z] Yes, even after saying you won't waste your time anymore... so why do you?
|   405680 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 405682 [lists@ru y- ] For some reason the page won't load for me :/ I'll just assume it's the
+ 405819 [lists@ru y- ] I have some confusion with "ancestor" method.
  + 405839 [matthew@ke w] a = A.new
  + 405841 [lists@ru y- ] My question is - how does `A` come in the output of `A.ancestors` ?
    405843 [matthew@ke w] a.is_a? A #=> true
    405845 [lists@ru y- ] Argh, I couldn't let it sit there so wrong.

Ruby 2.0 Thread multitasking?
405674 [lists@ru y- ] (4th attempt at posting:  The prior 3 attempts were posts to the
+ 405675 [tony.arcieri] You're talking about the Global Interpreter Lock or GIL (also known as the
+ 405676 [carlos.agari] This limitation doesn't exist in JRuby (I'm not sure about the other

ideas on how to determine tag
405695 [wbrisett@at ] I'm working on a script that examines a DITA XML file and tries to =
+ 405698 [lists@ru y- ] I haven't looked into this in detail, but I've cobbled together this
| + 405699 [wbrisett@at ] wow=85 that would do it since I have the id=85 I gotta work on my regex =
| + 405700 [peterhickman] Well this works
+ 405701 [lists@ru y- ] Agreed, Nokogiri is a much better solution.
| 405702 [wbrisett@at ] I agree too=85 thanks for the head slap Peter!=20
| 405706 [peterhickman] Just for the record the regex you gave will have difficulty with the
+ 405709 [lists@ru y- ] I didn't go all exhaustive on it, just a general idea :)
  405752 [shortcutter@] Yes, and you have been shown why regexp is the wrong tool for parsing

Difference of Module#included and Module#extended and Module#prepended
405719 [lists@ru y- ] Can anyone help me to understand the below 3 methods about their
+ 405723 [lists@ru y- ] mod.included(other) is called after other.include(mod)
+ 405733 [lists@ru y- ] @Hans Module#extended not documented -
| 405740 [me@da id wd ] ...
+ 405753 [lists@ru y- ] Today I just installed. ruby 2.0 windows version
  405759 [wishdev@gm i] Maybe because DL is deprecated?

cannot get blocks working
405720 [lists@ru y- ] Below is the piece of code. Can anyone help in getting expected output.
+ 405724 [lists@ru y- ] This works for me
| 405728 [peterhickman] x =3D XmlDoc.new
+ 405732 [josh.cheek@g] Change `block_given?` to `block`. The block_given? macro is checking if
  + 405730 [josh.cheek@g] I guess I would also interpolate the block.call, which would allow nil to
  + 405751 [shortcutter@] Are you insinuating that I cannot define a method which will happily

unsubscribe
405748 [soko.tica@gm] ...

Singleton method
405754 [lists@ru y- ] ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
+ 405755 [adam@ap es o] Because def obj.foo uses the top-level value of N = 1, whereas the
+ 405757 [lists@ru y- ] both `another_method` and `a_method` are the singleton methods of
  405758 [adam@ap es o] Scopes and look-ups for Ruby constants.
  405816 [lists@ru y- ] Couldn't understand you. :(
  405827 [doug@ds if r] Basically, it seems arbitrary how constant lookup works :(

Understanding Ruby Classes, Objects and Methods.
405762 [lists@ru y- ] Dear Rubyists,
+ 405783 [shortcutter@] =93abc=94 is an instance of String
| 405790 [lists@ru y- ] Thanks, Robert!
| 405791 [shortcutter@] You're welcome!
| 405794 [lists@ru y- ] And do you suggest that that statement is "not true"?
| 405796 [shortcutter@] Yes, see above. It's at least imprecise since "abc" does not reference
| 405798 [lists@ru y- ] OK. Clarified. Thank you.
| 405799 [shortcutter@] You could model it like this: every class has a list of included
| 405800 [lists@ru y- ] But ... I thought a decision had already been made -- any method
| 405802 [shortcutter@] They *do* - from perspective of a language user.  I would try to
+ 405795 [lists@ru y- ] * °»abc°… is an instance of String *
  405797 [lists@ru y- ] Thank you. Corrected.

Tool Database
405770 [lists@ru y- ] its possible to make  a tool database? where each tool is identified in
+ 405773 [garthy_lmklt] If you're going for something simple, it sounds like something a Hash
+ 405776 [tamouse.list] This doesn't seem so much a Ruby question as a rails question (lots of
+ 405806 [lists@ru y- ] @Garth
| 405814 [garthy_lmklt] Once you're up and running (either in Rails or pure Ruby) and are far
+ 405817 [lists@ru y- ] @Garth
| + 405824 [doug@ds if r] Rails runs fine without internet connectivity.
| + 405826 [tamouse.list] and
+ 405879 [lists@ru y- ] Okay so i could never figure out how to get rails to work :/ so i
  405892 [tamouse.list] What do you want to know?

No form name in page - Ruby Mechanize
405804 [lists@ru y- ] I am parsing a page using Ruby mechanize. Now on one the pages i have
+ 405805 [lists@ru y- ] You might be able to narrow it down via a specific parent or child
| 405853 [lists@ru y- ] Thanks a lot Joel.
+ 405863 [lists@ru y- ] in watir-webdriver (which uses selenium-webdriver under the surface) it
| 405865 [lists@ru y- ] Thanks Joel. I will try this. But was wondering is there anything wrong
+ 405866 [lists@ru y- ] Sorry, I misread the question. I'm too used to people posting questions
  406109 [lists@ru y- ] checkbox correctly but afterwards was not downloading the csv file with

confusion with singleton method call
405807 [lists@ru y- ] DL is deprecated, please use Fiddle
+ 405808 [adam@ap es o] foo.class.instance_method(:talk) is specifically the method that
+ 405811 [lists@ru y- ] What I know singleton methods can be called by the objects, on which it
| 405812 [lists@ru y- ] #<Method: D(C).a_class_method>
+ 405867 [lists@ru y- ] Why the `singleton` methods can't be defined on
+ 405895 [lists@ru y- ] Can anyone help me here?
| 405896 [me@da id wd ] ...
| + 405897 [plugatariov@] ...
| | 405898 [cliff.rosson] Why do you guys keep responding. The ole bait n switch.
| | 405899 [me@da id wd ] ...
| | 405900 [tamouse.list] The sad thing? I have stopped responding to most posts, and when I do, I
| + 405901 [lists@ru y- ] I don't know how much you understand my above question,which is so
|   405902 [wishdev@gm i] That nasty thing google again - it always amazes me why they put
+ 405904 [lists@ru y- ] true.singleton_class #=> TrueClass
  405905 [lists@ru y- ] Thanks Hans. It sounds good. I tried the same in my IRB. But didn't

[ANN] Serif version 0.3.3 released
405809 [adam@ap es o] Serif is a blogging system powered by markdown files and an optional

[ANN] Rubyist Magazine: Ruby 2.0.0 Special Articles in English
405810 [ko1@at ot ne] We've released "Rubyist Magazine: Ruby 2.0.0 Special Articles" in English.
405818 [tamouse.list] Thank you all very much!

Great CTO Software Opportunity Near Boston
405813 [nickm@wd ea ] ...

Confusion with Object individuation topic
405815 [lists@ru y- ] *David A. Black in his book said on the topic of Object individuation*
threads.html
top