414803-434661 subjects 415093-428275

414898 [uzleepito@gm] It's not quite a Ruby questing, but much more a general developer question.
+ 414899 [jgabrielygal] For example, Hash uses it internally when the keys are strings, in
+ 414900 [quintus@qu n] This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
  414906 [ryand-ruby@z] Which is easily avoidable. If you're that paranoid about your code, =
  414907 [shortcutter@] Because of what changes?
  414908 [normalperson] 2.1 deduplicates string literals in source (but strings still get
  414910 [shortcutter@] So basically there will be a shared string buffer but still individual
  414911 [normalperson] Correct.
  414913 [shortcutter@] Ah! That was the missing link. Thank you again, Eric!

convert ojbect to hash
414901 [shayne.alone] "{\"uri\"=>\"\",
414902 [jgabrielygal] 2.0.0p195 :001 > eval
414903 [shayne.alone] Regards,
414904 [shortcutter@] Please do not top post.
414905 [shayne.alone] actually they was HTTP/GET params that I had received  via a web service

mailing list management in Ruby with Sinatra
414909 [code@ap th o] I have discovered need of mailing list management capability for a
414912 [normalperson] Does it have to be 100% Ruby?
414918 [code@ap th o] No, not necessarily -- but it would be nice if it came with a pleasant
414921 [normalperson] For postfix, whatever script as mailbox_command will do in main.cf
414922 [code@ap th o] I'll have to talk to the guy doing the sysadminning about some of the

[ANN] hoe 3.12.0 Released
414915 [ryand-ruby@z] hoe version 3.12.0 has been released!

[ANN] ruby2ruby 2.1.0 Released
414916 [ryand-ruby@z] ruby2ruby version 2.1.0 has been released!

[ANN] ZenTest 4.10.0 Released
414917 [ryand-ruby@z] ZenTest version 4.10.0 has been released!

[ANN] ruby_parser 3.6.0 Released
414919 [ryand-ruby@z] ruby_parser version 3.6.0 has been released!

[ANN] RbNaCl 3.0.0: a modern cryptography library for Ruby
414920 [bascule@gm i] Cryptography (describes RbNaCl): http://www.youtube.com/watch?v=e13irYP6WJA

Ruby-Tk with embedded interpreter on OS X
414923 [kw@co eb ke ] Is it possible to run Ruby-Tk from a Ruby interpreter embedded in C?
414924 [kw@co eb ke ] #include <ruby/ruby.h>

[ANN] sportdb gem update - more football fixture languages (pt,ro,it,fr), more score matchers, new matchday defs, etc.
414925 [gerald.bauer] teams, match schedules and more in plain text into your SQL database

[ANN] md2man 2.0.4 - markdown to manpage
414926 [sunaku@gm il] md2man is a Ruby library and command-line program that converts

Ruby hard-codes load-path into dll/dylib?
414927 [kw@co eb ke ] I am still working on creating a system for deploying a standalone Ruby
414928 [chris@ma te ] This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
414929 [zipizap123@g] Have a look at Tokaido - its purpose is very similar to what you seem to be
414930 [zipizap123@g] and link: http://yehudakatz.com/tags/tokaido/

Certificates and Net::HTTP
414931 [peterhickman] I am in the process of converting some Python code over to Ruby. The code
414932 [mike@st k. a] ...

[ANN] RubyInline 3.12.3 Released
414933 [ryand-ruby@z] RubyInline version 3.12.3 has been released!

Time zone abbreviation
414934 [jlambert@oh ] ...
414935 [rylee@ry ee ] Cannot reproduce on Debian 7 Testing (see [1]). This appears to be an
414936 [ryand-ruby@z] 10001 % irb
414937 [wbrisett@at ] I just ran this both on Mac OS X and Windows and Jon is right.
414963 [jlambert@oh ] I noticed if you set TZ environment variable to the below format, you get

#reverse doesn't seem to work for me...
414941 [caduceass@gm] Actually, I don't know if the method is the problem, but here's what I've
+ 414942 [ryand-ruby@z] Maybe I'm misunderstanding what you're trying to do... but stressed and =
| 414946 [caduceass@gm] You're right, it's not a palindrome. I feel like an idiot. I'd need to do
+ 414945 [wishdev@gm i] 'stressed' != 'desserts' so testing that w == w.reverse is working just

Help using NET::HTTP POST
414943 [ruby.student] Team,
414944 [ryand-ruby@z] read `ri Net::HTTP`
414947 [ruby.student] Will do.

new Ruby implementation?
414948 [uzleepito@gm] Does somebody know what could be the simplest and fastest way to
+ 414949 [matz@ru y. r] You might feel mruby <https://github.com/mruby/mruby> to be a good
+ 414956 [ryand-ruby@z] up

Who the f*heck is Tadayoshi Funaba and why can he reject sensible patches unilaterally?
414950 [felipe.contr] I've spent a lot of time trying to fix Ruby's bad handling of the "%s
+ 414951 [normalperson] Please relax, Felipe.  I don't know tadf, but I do know _your_ attitude
| 414959 [felipe.contr] My attitude might not be appreciated, but still I get my patches
+ 414952 [drbrain@se m] On 2 May 2014, at 13:22, Felipe Contreras <felipe.contreras@gmail.com> =
| 414953 [dummey@gm il] Or Rubyists are unable to understand the frustration that a language
| + 414954 [keystonelemu] Perhaps the response was less than straightforward, but that does not
| | 414960 [felipe.contr] Sure it doesn't excuse that, but I think you should be more concerned
| | 414961 [keystonelemu] I'm equally concerned with both. Never underestimate the impact that the
| | 414964 [felipe.contr] I would be concerned about long-time contributors that have a deep
| + 414955 [drbrain@se m] barrier has created on an important module? And thus resort to labeling =
|   + 414962 [felipe.contr] And who is saying that?
|   + 415019 [code@ap th o] I suspect it is more a matter of no tact and no shying away from saying
|     415024 [felipe.contr] That's right. I know very capable Japanese programmers, and I know no
|     415025 [shortcutter@] But who decides which is the "right" culture that we should adhere to?
|     415033 [felipe.contr] I think "code talks, bullshit walks" is a good start.
+ 414957 [digital.ipse] Since you do not seem to be able to read Japanese. Let me give you a quick
+ 414958 [matz@ru y. r] Even though I can imagine your frustration (we had similar troubles
  414965 [felipe.contr] That might be the case, but his expertise in time and calendars give
  + 414966 [keystonelemu] Again, there are far far more professional ways to address things like
  + 414967 [felipe.contr] setenv("TZ", "UTC", 1);
  | 414969 [felipe.contr] setenv("TZ", "UTC", 1);
  | 414972 [wishdev@gm i] Ruby does exactly that today. Are we actually having a conversation over
  | 414973 [felipe.contr] Yes it does, I wasn't arguing otherwise, my point was that the
  | 414980 [wishdev@gm i] I sort of get stuck here don't I?
  | 414981 [felipe.contr] The bug itself doesn't matter much, that's true. Although I've spent a
  | 414982 [fluido@fl id] It is constantly getting better. It may not be getting more *popular*
  | 414984 [felipe.contr] Indeed, the language is getting better, but not as much as it could,
  + 414968 [matz@ru y. r] The behavior of strptime(3) is full of ad-hoc matching, and often
    414971 [felipe.contr] Ah, the good old slippery slope fallacy[1]. How about we concentrate
    414979 [matz@ru y. r] According to the discussion in Japanese, formatting (output) is OK,
    + 414983 [felipe.contr] Come on, time_t is irrelevant, we are talking about Ruby, and DateTime
    | 414985 [kw@co eb ke ] In most open source projects, maintainers of a module/library/component
    | 414986 [felipe.contr] That is simply not true.
    | + 414987 [keystonelemu] The two are not mutually exclusive. There's no reason why people cannot be
    | | 414988 [felipe.contr] And who argued they were?
    | + 414990 [kw@co eb ke ] Tcl/Tk, Emacs on the Mac, my own individual OSS projects. There is no
    |   414991 [felipe.contr] He has not backed him. If you din't read correctly he accepts the
    |   414992 [kw@co eb ke ] Yes, this is true. Linux is very reflective of the personality of its
    |   414993 [felipe.contr] That is an *assumption* you hold, and it's not backed up by the
    + 414989 [ryand-ruby@z] Matz, thanks for taking the time to deal with this.
    + 414994 [felipe.contr] Actually, just to make it clear, originally you said "%s" implies UTC,
      414995 [fluido@fl id] I'd put it like this: %s already completely defines a coordinate in
      414996 [felipe.contr] Yes, I understand that.
      + 414997 [felipe.contr] Also. Let's suppose that you are right and in "%s %z" the timezone
      + 414998 [felipe.contr] Actually let me clarify that. We are *already* parsing the timezone,
      + 415005 [sascha.abel@] I don't think this is what happens at all. If you do
        415007 [felipe.contr] Yes, but that's an implementation detail. If "%s %z" was truly wrong,
        + 415009 [peterhickman] Time.strptime('0 +0200', '%s %z').strftime('%s %z')
        | 415011 [tp@ti ed ix ] I haven't looked as far back as 1.9.2, but for
        | 415012 [felipe.contr] That's correct.
        + 415014 [sascha.abel@] I don't think it's an implementation detail, it is intentional so that
          415015 [andrew@av t.] Yes, but the offset adds important information, or else we would be
          + 415016 [felipe.contr] Exactly.
          + 415028 [alex@st nk .] This.
            415029 [kw@co eb ke ] He could have made his case without behaving like an ass. I hope the
            415034 [felipe.contr] If the patch is technically correct and benefits Ruby, it should be
            415035 [andrew@av t.] I think that's generally how it works already. In this case there was

slope of the curve
414970 [shayne.alone] res = (50.0 * (1.0 + sin((x / 23.0 - (x / 23)) * 360.0 * pi / 180.0)))
+ 414974 [wael@un k. a] sin((x / 23.0 - (x / 23)) = sin(0)
| 414975 [kemus@MI .E ] No, the second x/23 does integer division
| 414976 [shayne.alone] I didn't found some thing special!
+ 414977 [sto.mar@we .] Are you sure about this function?
  + 414978 [shayne.alone] actually in my case, x is always a positive integer...
  + 415000 [eveith@ww eb] Not quite, since x/23 is an integer division, as Kevin pointed out. It's the
    + 415001 [quintus@qu n] Maybe you are looking for #lambda?
    + 415003 [sto.mar@we .] Not quite, when you assume x to be a Float - as clearly stated
      415004 [eveith@ww eb] You are right, I should have checked before.
      415017 [shayne.alone] Regards,

Calling an anonymous function
414999 [j.khaldi@ol ] type
415002 [quintus@qu n] My bad, answered to the wrong thread. Sorry for the inconvenience.
415018 [shortcutter@] irb(main):001:0> anon_method = lambda do |x|

[ANN] md2man 2.1.0 - markdown to manpage
415006 [sunaku@gm il] md2man is a Ruby library and command-line program that converts

What is DateTime used for?
415008 [andrew@av t.] I've been using ruby for years, but I've never had a good use for
415010 [bascule@gm i] It's like a slower version of Time, written in pure Ruby, for people who
415013 [felipe.contr] Pure Ruby?

LoadError: cannot load such file -- sqlite3 (Sequel::AdapterNotFound)
415020 [aruprakshit@] ...
415021 [atma@co va e] charset=utf-8
415022 [aruprakshit@] ...
415023 [andrew@av t.] The sequel gem depends on the sqlite3 gem (or other adapters like

Any Rubygem to get Yahoo contact lists of a specific user ?
415026 [aruprakshit@] ...
415027 [aruprakshit@] ...

File.open and each
415030 [gvimrc@gm il] open('file.txt') {|fh| fh.each {|l| puts l}}
+ 415031 [wishdev@gm i] ...
+ 415032 [shortcutter@] Yes, you should always use the first form because that ensures the

[ANN] unicorn 4.8.3 - the end of an era
415036 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

How would you write Rspec code for Enumerable#any? ?
415037 [aruprakshit@] ...
+ 415038 [tamouse.list] it "checks if any a are included in b" do
| 415040 [tamouse.list] expect(a.any?{|i| b.include i}).to be_true
| 415046 [aruprakshit@] ...
| 415061 [abinoam@gm i] - http://rubydoc.info/gems/rspec-expectations
+ 415039 [atma@co va e] charset=utf-8

Gems 'deprecated'
415041 [hsarkar.007@] I'm a beginner at Rails. I was recently trying to create a small app. As
415042 [atma@co va e] charset=iso-8859-1

bridge to ruby-forum is back?
415047 [ryand-ruby@z] I was under the impression that the bridge had been severed. I was even =
415048 [normalperson] I don't think the bridge is back (haven't seen lists@ruby-forum.com
+ 415049 [ryand-ruby@z] Maybe it is only one-way then. It looks like the stuff here is showing =
| 415050 [shortcutter@] Then the status is unchanged compared to end of March.
+ 415052 [sto.mar@we .] For clarification: only the subscription form on www.ruby-lang.org

Rspec for conditional code if-else
415051 [aruprakshit@] ...
415053 [sto.mar@we .] That's not the right question to ask.

Ruby 2.0.0-p481 is released
415056 [usa@ga ba ec] We are pleased to announce the release of Ruby 2.0.0-p481.

Need help on Enumerable#slice_before
415057 [aruprakshit@] ...
415058 [shortcutter@] Your are looking ahead instead of back because you compare element at
415059 [aruprakshit@] ...
415060 [abinoam@gm i] (Yes, I know you're training the use of #slice_before... but...)
415062 [aruprakshit@] ...

[ANN] loofah 2.0.0 Released
415063 [mike.dalessi] loofah version 2.0.0 has been released!

Why #owner method gives the name of owner as Class, while `Class#new` has been overriden ?
415064 [aruprakshit@] ...
415065 [mike@st k. a] ...
415066 [aruprakshit@] ...
415068 [abinoam@gm i] [Short answer: "Class#new was not overriden"]
+ 415070 [rajeevrvis@g] +1 for Abinoam”Ēs answer.
+ 415075 [aruprakshit@] Exactly what I thought about it.
  415088 [abinoam@gm i] You're welcome! :-)

[ANN] RubyInstaller 2.0.0-p481 released
415067 [luislavena@g] I'm very pleased to announce the release of RubyInstaller packages for Ruby

[ANN] yahns 1.3.0 -_- sleepy application server for Ruby
415069 [normalperson] A Free Software, multi-threaded, non-blocking network application server

ANN: text2048 gem 0.5.0 released
415071 [yasuhito@gm ] text2048 is a terminal-based version of "2048" game
415072 [d4mk0f@gm il] Ahahah :) big thank u Yasuhito Takamiya! :)
415118 [yasuhito@gm ] Just FYI,

[ANN] clogger 2.0.0 - configurable request logging for Rack
415073 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

[ANN] Rainbows! 4.6.2 - Rack HTTP server for the sleepy
415074 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

IPSocket.getaddress giving unexpected IP address
415076 [aruprakshit@] arup@linux-wzza:~> irb
415077 [jgabrielygal] localhost is the host name used to communicate via network services to
415078 [aruprakshit@] arup@linux-wzza:~> cat /etc/hosts

Whitespace dependence - old topic?
415079 [chris@ma te ] This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
+ 415080 [doug@ds if r] It has been discussed before ...
| 415082 [chris@ma te ] This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
+ 415081 [fluido@fl id] Mah. You put your finger square on the #1 reason why I found Python

[ANN] redis-to-collection 0.1.0 released
415083 [tp@ti ed ix ] Dear People,

start and stop process
415084 [atma@co va e] charset=us-ascii
+ 415089 [zhengyhn@gm ] I remember there is a gem named "whenever".
+ 415090 [wishdev@gm i] I'm sure there may be fancier ways - but a pid file and another cron task 2
+ 415091 [fluido@fl id] There is a class called Timeout: "provides a way to auto-terminate a

start and stop process
415085 [atma@co va e] charset=us-ascii

[ANN] marketo-api-ruby 0.9 Released
415086 [austin@cl ar] marketo-api-ruby version 0.9 has been released!

[ANN] nokogiri 1.6.2 Released
415087 [mike.dalessi] nokogiri version 1.6.2 has been released!

Why no Regexp#to_regexp?
415092 [kf7qga@gm il] p RUBY_VERSION    # => "2.1.1"
415094 [matthew@ke w] The #to_foo methods exist primarily on other types of objects as a signal
+ 415095 [kf7qga@gm il] ...
| + 415096 [wishdev@gm i] You seem to have forgotten that you pretty much are not forced to do
| | 415097 [kf7qga@gm il] ...
| | 415101 [ryand-ruby@z] anything at all within Ruby.
| | 415105 [kf7qga@gm il] VALUE
| | 415111 [ryand-ruby@z] When should something be cast to a regexp?
| + 415098 [matthew@ke w] Well, why is there no Range#to_range,
| | 415099 [matthew@ke w] Sorry for replying to myself; I just realised your particular use-case.
| | 415106 [kf7qga@gm il] ...
| + 415100 [matthew@ke w] Argh, I'm being Mr Spammypants today, sorry everyone.
+ 415103 [jlambert@oh ] ...
  415104 [ryand-ruby@z] language to ever attempt to coerce objects using #to_regex[p]?