404528-410209

404323-404967 subjects 404731-405018

Fun with finalizers
404528 [garthy_lmklt] Just ran into something very interesting with finalizers. I've found a
404532 [matthew@ke w] Quick guess, it's the lambda. Replace it with #proc and try again?
404536 [garthy_lmklt] Excellent thinking. I also thought it might be something along those
404542 [shortcutter@] To make it crystal clear: the reason is that there is a closure
404563 [garthy_lmklt] Thankyou very much, yet again. An excellent and incredibly informative

Confusion with Ruby printing mechanics.
404533 [lists@ru y- ] Here I just played to see how printing statement behaves with "nil"
+ 404534 [matthew@ke w] Print doesn't append a newline, so the puts'd nil is tacked onto the end of
| 404535 [lists@ru y- ] Humm! perfect catch tried and tested. and you got 100 out of 100. :) :)
+ 404541 [lists@ru y- ] Well there you are adding only one newline, it's added with puts. You
| 404543 [lists@ru y- ] nil
+ 404550 [lists@ru y- ] why do you have confusion?? didnt they already told you how the print
  404551 [lists@ru y- ] Nopes! friend... I am set at all. I just told him,what made me confused.

Can not find variable in the current scope!
404537 [lists@ru y- ] when trying to add tracing output to an erb template I hit the following
+ 404539 [matma.rex@gm] It could be a method. Or erb is doing some crazy stuff.
+ 404544 [shortcutter@] I cannot reproduce this issue
+ 404561 [josh.cheek@g] You have two dots, which would be a range. If that doesn't solve it, but

[ANN] mysql 2.9.1 Released
404547 [luislavena@g] mysql version 2.9.1 has been released!

[ANN] rake-compiler 0.8.3 Released
404549 [luislavena@g] rake-compiler version 0.8.3 has been released!

Re: [RubyInstaller] Re: [ANN] rake-compiler 0.8.3 Released
404556 [luislavena@g] No, rake-compiler is for developers, os not a replacement for devkit, see

How the string concatenation operator hackes(modifies) the string contents of frozen array?
404557 [lists@ru y- ] => ["foo", "bar", "gis"]
+ 404558 [stefano.croc] Writing
+ 404559 [lists@ru y- ] humm, You are correct.
  404568 [shortcutter@] It isn't
  404569 [lists@ru y- ] Humm. Sorry @Robert - I misspoken.

[ANN] makerakeworkwell 1.0.2 Released
404560 [ryand-ruby@z] makerakeworkwell version 1.0.2 has been released!

[ANN] Serif version 0.2.3 released
404562 [adam@ap es o] Serif is a file-based blogging engine with an optional admin interface

Research survey for framework and library developers: Information needs in software ecosystems
404564 [lists@ru y- ] library developers ( http://bit.ly/14Zc71N )

finding Collinearity of three points
404565 [lists@ru y- ] Can someone here explain me the logic and implementation for finding
404566 [roshkins@gm ] Well to find co-linearity of three point in general we can draw a line
404870 [lists@ru y- ] Thanks a lot RKA

What is Ruby's default constructor?
404570 [lists@ru y- ] ?>    def initialize(my_num)
+ 404572 [stefano.croc] What you call ruby's default constructor is, in fact, Object#initialize, which
+ 404573 [lists@ru y- ] => nil
| 404576 [stefano.croc] I'm not sure what you're trying to accomplish here. However, this is what's
+ 404574 [lists@ru y- ] def Object.new initialize
| + 404575 [lists@ru y- ] Yes. I know that line wrong. But why the output "hi" came? how the
| + 404582 [matma.rex@gm] It's not wrong, although I would do a double-take myself if I saw this in a code. It defines a method 'new' on 'Object' that takes an 'initialize' argument.
+ 404577 [lists@ru y- ] @Stefano - yes you are right. That's not only the "begin" keyword,
| 404580 [stefano.croc] There was nothing "wrong" in your code before the 'begin'.
| 404583 [lists@ru y- ] As per your above explanation it seems and definitely an allocation to
| 404585 [stefano.croc] def Object.new
+ 404586 [lists@ru y- ] Now I typed directly into the IRB and it produced the same error, whose

Simpler refactor?
404587 [lists@ru y- ] As I continue learning to program, I am finding things I think can
404588 [adam@ap es o] You could try something like,

undefined method []' for nil:NilClass (NoMethodError)
404592 [lists@ru y- ] I have this script to monitor solr4 with munin.
404594 [lists@ru y- ] cache = Hash[*res['solr-mbeans']]['CACHE']

Ruby Language Reference Manual (syntax) for 2.0
404595 [lists@ru y- ] updated to include the 2.0 syntax?
+ 404597 [ralf.mueller] what about this? http://www.ruby-doc.org/core-2.0/doc/syntax_rdoc.html
+ 404598 [lists@ru y- ] Thanks. Yes I'd seen that (should have included a link in my original

Saving with yaml
404601 [lists@ru y- ] I have a question. :-) I have already found a lot in the web but that
+ 404603 [sandor.szuec] File.open("Saves.yaml", "w") do |file|
+ 404605 [josh.cheek@g] require "yaml"
  404612 [lists@ru y- ] Thank you guys, you really helped me out. Thanks :-)

Is ruby-lang server down?
404608 [lists@ru y- ] I can not download ruby from
404609 [drbrain@se m] _______________________________________________

[ANN] nio4r 0.5.0: high-performance cross-platform IO selectors for Ruby
404610 [tony.arcieri] nio4r provides a high performance IO selector API which lets you monitor

Looking for Rubyists interested in P2P and privacy
404611 [tony.arcieri] Hey there, excuse the spam ;) Hopefully this is relevant enough.
+ 404613 [ralf.mueller] looks nice, but AFAIK one of the main issue with PRISM-like stuff is not (only) missing encryption, but
| 404614 [tony.arcieri] The Cryptosphere provides pseudonymous publishing (it's impossible to tell
+ 410002 [code@ap th o] I'll give it a look tomorrow.  Sounds interesting so far.
| + 410004 [atma@co va e] charset=utf-8
| + 410026 [tony.arcieri] You are not the only one ;) Several people have expressed this concern.
|   410027 [stas@fr eb d] On Aug 9, 2013, at 10:54 AM, Tony Arcieri <tony.arcieri@gmail.com> =
|   410029 [code@ap th o] Yeah, I was basically talking about the agonies of maintaining a GMail
|   410031 [tony.arcieri] Okay, perhaps this is a bigger problem than I realized: it used to be you
|   410032 [code@ap th o] I haven't actually looked at it lately, but last year I tried to sign up
+ 410015 [code@ap th o] From there, I followed the GitHub menu link (which is inaccessible
| 410019 [tamouse.list] I do not think that word means what you think it means.
| 410023 [code@ap th o] Okay . . .
| 410028 [tamouse.list] ...
| 410030 [code@ap th o] I suspect, then, that it is you who does not understand the word.
+ 410033 [normalperson] The real paranoids among us are too scared to run GUIs anymore, much
  410034 [fluido@fl id] I have seen the smiley, but I would be careful about the words,
  410039 [caduceass@gm] Mine is to just segregate everything. I think I've inadvertently become

[ANN] football.db National Team Repos Updated - Gold Cup 2013, Confederations Cup 2013, World Cup Quali 2014 etc.
404615 [gerald.bauer] The plain text football (soccer) teams, fixtures, results and more

net/telnet haning on pasword
404616 [lists@ru y- ] I'm getting stuck at the @password portion. This script will get into
+ 404619 [cliff.rosson] Is the prompt "Username" correct? It seems like its getting stuck there not
+ 410003 [lists@ru y- ] Username did not match 100%, so I did add a : and space. But I still get
| + 410005 [sinm.sinm@gm] I wonder if ruby-lang is a place to talk about specific gems? I unsubscribed because of that but now receiving the list again, automagically :)
| | + 410006 [uldis.plotin] The same:(
| | | 410008 [sinm.sinm@gm] Sorry guys, i think i'm receiving only part of messages. The mess. Tryingto unsubscribe again
| | + 410007 [lists@ru y- ] What? Not sure I'm picking up what your throwing down...
| + 410020 [cliff.rosson] I had the same problems you have. Use Net::SSH::Telnet to abstract out of
|   410024 [lists@ru y- ] I did notice you where using that, I did a "gem search net::ssh::telnet"
+ 410025 [lists@ru y- ] never mind, found it.

rdoc and a class named SM
404617 [lists@ru y- ] I'm still on a Ruby 1.8.6 system. rdoc/usage is used together with

Split ZIP file
404620 [lists@ru y- ] I am looking at solutions to merge a split zip into a single zip in ruby
410209 [lists@ru y- ] This kind of task is usually closer to the OS or its shell scripting. Is

Loop and exit on key
404621 [lists@ru y- ] curious as to how to do so at the click of a button ended the cycle. ny
+ 404623 [lists@ru y- ] Can you rephrase the question in a logical manner, and provide a use
+ 410012 [lists@ru y- ] My program is written in Ruby in the windows, the program runs in the
+ 410013 [lists@ru y- ] That depends on whether you're accepting input via "gets", or you want
| 410016 [tamouse.list] break would be better than exit here=85.
+ 410014 [lists@ru y- ] input = gets.chomp
  410018 [tamouse.list] ...
  410021 [cliff.rosson] Kernel.trap('INT') { run = false }
  410022 [cliff.rosson] Also this.

Re: Adding camelize and underscore to String
404624 [lists@ru y- ] .split("_").each {|s| s.capitalize! }.join("")
404628 [tamouse.list] Not silly. Sometimes it *is* easier to reinvent the wheel, if the
404629 [josh.cheek@g] def camelize
404643 [shortcutter@] I'd do
404644 [josh.cheek@g] I guess I wouldn't ever implement camelize! to return nil. I checked
404666 [tigre7t@gm i] may i ask
+ 404673 [josh.cheek@g] Right, ActiveSupport defines a camelize, but not a camelize!
+ 404683 [lists@ru y- ] And, yes, inflections.rb allows you to specify acronyms. Although it
  404785 [tigre7t@gm i] thanks Josh

Re: splat operator and Ruby instance variable assignments
404630 [lists@ru y- ] => nil
404631 [lists@ru y- ] WHY do you think that? why you dont get the IDEA that it MAYBE calls
404632 [lists@ru y- ] Ok, understood what the guy wants ...
404640 [lists@ru y- ] Really never thought about to "steal" your time, no intention of that. I
+ 404642 [shortcutter@] Then why do you not work with the replies you get?
+ 404645 [ryand-ruby@z] ...
  404646 [lists@ru y- ] It's all about the perception... depends on people mentality. Forum is
  + 404647 [peterhickman] Firstly this is not a forum but a mailing list.
  | 404648 [lists@ru y- ] Leave it. Answering such cheap things seems to me really time wastage.
  | + 404649 [peterhickman] You are asking for their time which is a commodity that can never be got
  | | + 404651 [lists@ru y- ] These all are vague.
  | | | 404653 [wishdev@gm i] Proverb time again apparently...........
  | | + 404656 [matma.rex@gm] You could also finally shut up, as it wastes the time of every list subscriber to scan and delete your messages every day.
  | |   404665 [peterhickman] Well you could always put my email address in the kill file for your news
  | |   404669 [tigre7t@gm i] i am a follower
  | + 404650 [wishdev@gm i] Always interesting when people bring out the proverbs
  |   404652 [lists@ru y- ] Your catch is wrong, so I am helpless.
  |   404654 [wishdev@gm i] So you refuse to offer help and explain your great proverb to someone who
  |   404655 [lists@ru y- ] I went to a bookstore and asked the saleswoman, "Where's the self-help
  + 404657 [ryand-ruby@z] that. I

Re: makerakeworkwell 1.0.2 Released
404636 [ryand-ruby@z] Both work and look right to me.
+ 404684 [lists@ru y- ] I still get 404 on both
+ 404685 [lists@ru y- ] @Ryan : I found the reason. In your post, the closing > is part of the
  + 404687 [adam@ap es o] The original email is plaintext only, so the bug is in your email client.
  + 404694 [ryand-ruby@z] On Feb 20, 2013, at 07:35 , Michel Demazure <lists@ruby-forum.com> =
    404732 [lists@ru y- ] Not email : I follow the forum in Firefox 18.0.2 (Windows 7).

binding operator
404638 [lists@ru y- ] by using this RNA =~ s/T/U/g; you can you substitute Ts with Us in
+ 404639 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 404641 [justincollin] This does not make a copy of DNA like you might be expecting, RNA and

ActiveRecord callback chain exception?
404660 [lists@ru y- ] I'm creating an ActiveRecord object A and want to update object B during
404661 [josh.cheek@g] You could use a database level trigger, e.g.

variable editing in ruby (like zsh vared)
404668 [lists@ru y- ] I am redoing some zsh apps in ruby (commandline). One functionality was
404672 [shortcutter@] Off the top of my head "readline" might help.  See "ri Readline".
404678 [lists@ru y- ] Actually, i meant readline (not highline). Yes, readline allows tab

Could you please post a program to send mail without using Action Mailer
404674 [lists@ru y- ] require 'net/smtp'
+ 404676 [lists@ru y- ] Define "doesn't work". Do you get an error message?
+ 404688 [michel.reves] ...
+ 404689 [lists@ru y- ] Here's the sort of thing I do using the mail gem. You can use gmail's
+ 404691 [bradleydsmit] I ran your example and it works fine.  Have you looked in you email logs?

Plz check and tell me the error in this code
404675 [lists@ru y- ] require 'net/smtp'
404677 [lists@ru y- ] Please give the error message you receive.

Python C API vs Ruby C API
404679 [patrick@sp l] I am trying to decided whether to embed Ruby or Python.
+ 404681 [wbrisett@at ] Matz was at the Texas Ruby Conference this year and he mentioned there is a
| 404682 [josh.cheek@g] That's mruby
+ 404686 [fluido@fl id] Once you get the hang, it is very straightforward. I do not know
+ 404729 [garthy_lmklt] I've done both.

Fixnum: freeze status on ruby 2.0.0 rc2
404680 [lists@ru y- ] I'm trying the last version of ruby (2.0 rc2) and I have an unexpected
+ 404690 [matma.rex@gm] It makes sense. A Fixnum is immutable, so it can be considered "frozen".
| 404692 [ryand-ruby@z] ...
+ 404693 [lists@ru y- ] Many thanks to all,

Instalation problem
404695 [lists@ru y- ] I'm a complete newby and I'm trying to follow a tutorial on learning
+ 404701 [lists@ru y- ] I am on Mac too. I installed rvm. I had the same error message you got.
| 404706 [lists@ru y- ] My version is the same as prior to doing anything. ruby 1.8.7!!
| 404739 [wbrisett@at ] have=20
+ 404702 [nolic@no ic ] I don't use rvm but it sounds like you did not install Xcode which is
+ 404743 [lists@ru y- ] Prefect!! Thanks for your help!!
  404761 [echristopher] You must have previously installed the SM framework <https://smf.sh/>.
  404775 [lists@ru y- ] Sorry, but I am just starting out with all of this...how would I do

THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX
404696 [lists@ru y- ] Anyone out there could help me to understand the "THE CLASS/OBJECT
+ 404698 [peterhickman] Google is your friend. Always at least try and Google something before
+ 404699 [halogenandto] Maybe you could provide more detail about what you are confused about. To
| 404700 [lists@ru y- ] The class Class is an instance of itself; that is, its a Class object. And theres more.
| + 404705 [halogenandto] It's not really a paradox. Take for example
| | + 404709 [lists@ru y- ] Is it possible to give some small ruby code in-contrast with C - code
| | | + 404710 [halogenandto] What would you want the code to show?
| | | | 404712 [lists@ru y- ] Yes! Ruby code to understand the things against the C one's.
| | | | 404721 [lists@ru y- ] Something like this?
| | | + 404722 [stu@ru yp og] Xavier -
| | |   + 404724 [echristopher] Minor nitpick: I think you're confusing MagLev, which has a Smalltalk
| | |   | 404726 [halogenandto] No he means small talk. The vm was heavily inspired by the vm described on s=
| | |   + 404725 [stu@ru yp og] Here's a simple conceptual model to think of if it seems a bit obfuscated.
| | |   + 404730 [lists@ru y- ] Could you tell me the black book name?
| | |     404733 [lists@ru y- ] It's on the first page of a simple Google search...
| | + 404718 [lists@ru y- ] irb(main):003:0> a.flatten!
| |   404720 [lists@ru y- ] For more object reference shenanigans please enjoy
| + 404736 [sachin.s32@w] Please re-read the mail chain before asking questions. The below line can be found in the attached mail (last paragraph).
+ 404717 [ryand-ruby@z] PRE-CHICKEN! Wait... what's the question?
+ 404762 [lists@ru y- ] Thanks.
| 404771 [stu@ru yp og] It's a formal and direct explanation of the "Everything is and
+ 404765 [lists@ru y- ] void
  404766 [lists@ru y- ] You are awesome! But weak in C code :(. So can the same explanation be
  + 404769 [matma.rex@gm] No. The code is in C, so obviously the explanation is for C code.
  + 404778 [ryand-ruby@z] It is almost exactly the same with minor syntactic differences. Remove =

Rdoc cannot find ruby files
404697 [lists@ru y- ] I am new to ruby and I am going through Peter Coopers book (Novice to
+ 404713 [ryand-ruby@z] On Feb 20, 2013, at 12:42 , Hakim Benbekhti <lists@ruby-forum.com> =
+ 404763 [lists@ru y- ] Thank you for the suggestion but no case sensitivity is not a problem.
  404780 [ryand-ruby@z] On Feb 21, 2013, at 10:49 , Hakim Benbekhti <lists@ruby-forum.com> =
  404807 [lists@ru y- ] ruby -e 'p File.exist? ARGV.shift' Person.rb returns false.
  404834 [ryand-ruby@z] On Feb 22, 2013, at 11:21 , Hakim Benbekhti <lists@ruby-forum.com> =
  404852 [lists@ru y- ] Perfect. It is working!

Ruby-Talk without the cruft
404703 [lists@ru y- ] "Cruft is a collective term for the elements of a program, system or
404708 [peterhickman] Sounds like a fun project :)
404723 [lists@ru y- ] "unicode", "unicode characters" and "extract characters" all return

How meta class differs from real class ?
404707 [lists@ru y- ] In Ruby-
+ 404711 [halogenandto] I think I best understood this problem when trying to write my own
| + 404715 [lists@ru y- ] Is "my_class_method" is a class method?
| | 404719 [lists@ru y- ] My point was that technically there is no such thing as class methods.
| + 404716 [lists@ru y- ] I didn't know this is how it worked. Very succinct.
+ 404714 [lists@ru y- ] This looks pretty comprehensive.
+ 404727 [josh.cheek@g] 1. It can't be instantiated
| 404728 [lists@ru y- ] Right ruby will specifically skip over this class when looking at the class of an object and in the ancestry, but you can see it with a little C hackery.
+ 404773 [lists@ru y- ] Not sure what you mean by "real class". Everything in Ruby is an object.
+ 404779 [stu@ru yp og] Core concept for meta class is that every class has it's own class.
threads.html
top