429127-429347 subjects 429548-429797

How can  rails provide me an  information about the current page on the browser?
429332 [sata@ma l. g] ...

SSHSocket Implementation
429348 [bar.hofesh@s] ...
429349 [jeremy@bo p.] The last time I looked a couple years ago, there was no server
429350 [bar.hofesh@s] ...

Even shorter Ampersand to_proc?
429351 [augusts@cr o] something {|i| i.foo }
+ 429352 [axelrod.jere] ...
| 429353 [augusts@cr o] a = "a,b,c"
| + 429354 [axelrod.jere] ...
| + 429356 [ammarabuali@] If the point is using ampersand, then I think its like Jeremy said, you need to write your own helper method.
+ 429363 [bruka@id ta ] I find this very confusing, and am not sure at all what you're asking.
| 429364 [augusts@cr o] Thanks to all responders. An enumerator really was not needed in my example
| + 429365 [bruka@id ta ] I prefer to follow duck typing rules when it comes to such things. If
| + 429367 [shortcutter@] Why are you making it so complicated for yourself?
|   429368 [keystonelemu] There are times when regex is wrong. This is such a time.
|   + 429369 [shortcutter@] Why?
|   | + 429370 [rubytalk@ch ] I usually get the same response Robert.  I see both sides.  I love regexp
|   | | 429371 [bruka@id ta ] I just posted a similar answer in response to another thread, but on
|   | + 429383 [shortcutter@] Brandon, I would like to learn why you think think this is not a case
|   + 429372 [axelrod.jere] ...
|   + 429373 [ammarabuali@] Robert's approach has two key advantages. It is more efficient in terms of
|     429374 [jgabrielygal] If you want readable you can refactor into a constant with a good name
+ 429375 [martindemell] Several functional languages define an identity function (usually called
  429376 [epidemian@gm] About having an ampersand-colon version of the { |x| x } block, it seems

First try with Fiddle
429355 [bar.hofesh@s] <html style="direction: ltr;">

FW:	support 2
429357 [sleetdrop@gm] ...

awesome_print gem: Looking for maintainer(s)
429358 [mike@dv rk n] I'm looking to hand off awesome_print gem to hackers who are going to be
429359 [tschew@gm il] ...
429360 [thiagown@gm ] I'm interested. I currently maintain carrierwave(5k+ stars) &

A fiber issue with `autoload`: `fiber called across stack rewinding barrier (FiberError)`
429361 [qqshfox@gm i] We are using fiber with eventmachine (em-synchrony) in our production

Some help with ffi
429362 [bar.hofesh@s] <html style="direction: ltr;">
429366 [frederick.ch] SSH_BIND_OPTIONS_DSAKEY etc aren't strings - they're enums, so at the

RE: How to run a Ruby on Rails Project Locally on Windows7
429377 [bruka@id ta ] I have this environment and it is easy once you know the tricks. I can't
+ 429379 [atma@co va e] charset=utf-8
+ 429380 [eugeniu.rtj@] Its very easy: http://railsinstaller.org/en
  + 429381 [ruby@cc oc e] Another option to get started quickly using AWS or VM is
  | 429382 [bruka@id ta ] DON'T REPLY TO THIS THREAD.
  + 429395 [sata@ma l. g] ...
    429396 [hassan.schro] What about them? MySQL provides a Windows installer.
    429397 [sata@ma l. g] ...
    429398 [me@da id wd ] It's not that the questions are low quality. It's that that just is
    429416 [sata@ma l. g] ...

How to run a Ruby on Rails Project Locally on Windows7
429378 [bruka@id ta ] I have this environment and it is easy once you know the tricks. I

[ANN] nokogiri 1.6.5 Released
429384 [mike.dalessi] nokogiri version 1.6.5 has been released!

curl -F test with Grape REST endpoint doesn't pass data
429385 [gvimrc@gm il] I have a Grape REST endpoint served with Puma on localhost:8080. Testing
429389 [ammarabuali@] Is this a JSON API?
429390 [gvimrc@gm il] It only required changing the curl flag in the end. This did everything
429393 [ammarabuali@] That does work, but note that it's not a JSON request.
429455 [gvimrc@gm il] My Grape app uses `format :json` so I'm assuming JSON is returned.
429463 [ammarabuali@] It doesn't seem that it matters for your application, but if you're =

About ruby two-dimensional array clone
429386 [renkaiswpu@g] charset=us-ascii
429387 [rajsahae@gm ] ...
429388 [renkaiswpu@g] charset=utf-8
429391 [shortcutter@] In case you want to dig a bit deeper, you'll find more explanations
429392 [jgabrielygal] Another note: it can be misleading to think in terms of

[ANN] sportdb Update (v1.9.14) - Includes Quick Starter Datafiles; Zip Downloads 'n' Datasets etc.
429394 [gerald.bauer] What's the sportdb gem? The sportdb gem lets you load datasets in

Rubygems.org down for more that 5(?) hours now
429399 [jjconti@gm i] Any alternative or workaround for this problem?
+ 429400 [eigil@sa af ] ...
| 429401 [jjconti@gm i] Yes. It's because of that. So? The community should be prepare for
| + 429402 [jcoyne@ju ti] They did. See https://twitter.com/rubygems_status/status/539513292105187328
| | 429403 [jjconti@gm i] Juanjo Conti
| | 429404 [rajeevrvis@g] Is Still Down.
| | 429406 [jhart@sp of ] I got burned by this, just like many other people.  While it is unfortunate
| | 429410 [ryand-ruby@z] unfortunate that Rubygems.org was impacted and the nature in which it =
| + 429405 [hassan.schro] You're part of "the community" -- what's *your* plan?
| | 429408 [jjconti@gm i] Yeah... I'm new in the community, but I'm already feeling part. I plat to a
| + 429411 [eveith@ww eb] Well, their status updates have been pretty clear on what was going on: DNS
+ 429456 [gvimrc@gm il] cpan.org

Local gem cache. (was: Re: Rubygems.org down for more that 5(?) hours now)
429407 [ken@jo s. rg] googled it in the past (I have firewall issues at work which make this
+ 429409 [jjconti@gm i] I can help with this part.
+ 429417 [bascule@gm i] You can use rubygems-mirror along with a local copy of bundler-api

Problem with Code Academy/Case
429412 [gregg.martin] I am in the midst of learning how to use Ruby with Code Academy and I am
429413 [jgabrielygal] 2.0.0p195 :013 > choice = "add"
429414 [gregg.martin] That was all in the code that I didn't clip.  My guess is that codeacademy
429415 [rdarling42@g] ...

Re: Welcome to the "ruby-talk" mailing list
429418 [lazaro@hc .s] Not getting any emails from this list and I'm suscribed
+ 429419 [rajsahae@gm ] ...
+ 429420 [leamhall@gm ] Yup. It seems a quiet list.
  + 429421 [lazaro@hc .s] Ok, glad to know it, this is the 3 address I suuuscribed and the first
  + 429422 [wbrisett@at ] at one time there was a connection to the ruby forum website, so we were actively involved in conversations going on there. I want to say about a year ago, that connection between the two was broken, so there is now this list (very quiet most of the time) and a very active web site.
    429423 [echristopher] I was under the impression (due to the increased number of messages
    429424 [bruka@id ta ] This massive thread covers this issue, and proposals to move to a new

Why BigDecial#fix return a BigDecimal instead of a Fixnum?
429425 [jjconti@gm i] According the docs,
429427 [ruby-talk.li] Decimal#fix return the integer part of the number. I wonder why the object
429428 [rob.biedenha] ...
429429 [jjconti@gm i] So, fix should return Fixnum or Bignum, not Decimal. I'm tempted to report
+ 429430 [rob.biedenha] ...
| 429431 [saadrehmani@] Just glanced at the tests in ruby, this is all I found
+ 429432 [bkerley@br c] charset=utf-8
  429433 [jjconti@gm i] Yup, you're probably right. Thanks.
  429434 [jjconti@gm i] Decimal('0')
  429435 [colinb2r@go ] To avoid ambiguity it might be helpful if the documentation for
  + 429436 [shortcutter@] Generally math operations return the most appropriate type.  For
  | 429590 [colinb2r@go ] Sorry for my delay in responding.
  + 429460 [sto.mar@we .] I submitted a patch today that clarifies the docs accordingly.

ANN: ruby2app, a tool for bundling Ruby scripts into standalone Mac applications
429426 [kw@co eb ke ] I'm pleased to announce the initial release of ruby2app, a tool for

why is the method not found.
429437 [r.wobben@ho ] ...
+ 429438 [HANSEM1@na i] This is a multipart message in MIME format.
+ 429439 [lazaro@hc .s] Create new arrays after modify the class
  + 429440 [m.fellinger@] xi ~ % ruby -e 'a = [1,2,3]; class Array; def second; self[1]; end;
  + 429441 [rajsahae@gm ] ...
    429442 [r.wobben@ho ] ...
    + 429443 [iarunkant@gm] %w(a b c) is same as ["a", "b", "c"]. it is an easy way to define
    + 429444 [lazaro@hc .s] irb(main):147:0> ["uno","dos","tres"]==%w[uno dos tres]

ANN: Haskell, aim Ruby3.0 with static type
429445 [mail@ta ak k] ...
429446 [wercool@gm i] So, are you serious or just making fun of the idea?
429454 [mail@ta ak k] ...
429459 [shortcutter@] Same here. If I find the time I'll try your gem.

Trying to understand method calls in a class body. Fundamentally, why doesn't this work?
429447 [2upmedia@gm ] ...
429448 [bkerley@br c] charset=utf-8
429449 [2upmedia@gm ] ...
429450 [bkerley@br c] charset=windows-1252
429451 [2upmedia@gm ] ...
+ 429452 [bkerley@br c] charset=windows-1252
| 429453 [2upmedia@gm ] ...
| 429457 [bat.guano@do] Good morning
| 429461 [ryand-ruby@z] This doesn't overwrite anything, nor is it dumb. It is just reopening a clas=
+ 429458 [shortcutter@] You'd first need an instance.  Without creating one or passing an

A digital clock in a thread.
429462 [cyniclimbu@g] My code goes here - http://pastebin.com/yCkqiR4M
429466 [abinoam@gm i] I'm not sure, but perhaps curses would help you to put things at exact
+ 429467 [rajsahae@gm ] Curses would be a good approach, but you haven't really defined what you
| 429471 [cyniclimbu@g] I want the clock to run on the first line of the shell
+ 429472 [cyniclimbu@g] Thanks, will check it out.

Possible bug in ruby VM
429464 [iarunkant@gm] When I run
+ 429465 [botpena@gm i] fyi.
| 429468 [shortcutter@] $ ruby -v
| 429469 [wasp@nw .x z] not dumping on Windows 8.1 x64
+ 429470 [wbrisett@at ] ...
| 429473 [iarunkant@gm] I have created a bug report here https://bugs.ruby-lang.org/issues/10579
+ 429503 [atma@co va e] charset=utf-8

[ANN] markdown gem split into markdown, markdown-service, markdown-tools gems
429474 [gerald.bauer] the idea is - of course -

[ANN] JRuby Released
429475 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby

mail library in ruby
429476 [lazaro@hc .s] This an historic question. Why is NOT more part of the standard
429477 [jeremy@bo p.] The Net::SMTP, Net::POP3, and Net::IMAP classes from the net library
429478 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
429479 [mailme@hs s.] +1, I agree it would be really helpful if libraries such as Mike'smail
+ 429480 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
+ 429481 [jeremy@bo p.] While it's convenient to have one's favorite libraries available by
  429482 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
  429483 [abinoam@gm i] Dear Lazaro,
  429484 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
  + 429485 [jjconti@gm i] If that's your need, you may find Python useful: batteries included.
  | 429486 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
  + 429487 [bkerley@br c] Is there a case for a "batteries included" distribution of Ruby that ships
    429488 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
    429506 [abinoam@gm i] Pretty good point you have brought.
    429508 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
    429509 [bkerley@br c] charset=utf-8
    + 429510 [ammarabuali@] Some gems require compilation and can not be simply "shared" across systems, unless the systems have the same ABI and architecture. Even then, if the gems depend on external libraries, different versions of those libraries could cause strange and hard to debug problems, if they work at all.
    | + 429511 [lazaro@hc .s] Thread name: "Re: mail library in ruby"
    | + 429515 [abinoam@gm i] Perhaps a solution with a local gem server running from a USB pen drive?
    |   429518 [lazaro@hc .s] yeah, that is my solution right now, I have a Rakefile that create a
    |   429521 [lazaro@hc .s] YES!!!! this is why wee need http://phusion.github.io/traveling-ruby/
    + 429512 [lazaro@hc .s] Thread name: "Re: mail library in ruby" Mail number: 16 Date: Wed, Dec
      429513 [me@da id wd ] The issue you're having though has nothing to do with RVM. This is solely a

[ANN] JRuby 1.7.17 Released
429489 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.7.17

Array of hashes newbie question
429490 [letskiy@gm i] I hope this is the right place to ask my question.
+ 429491 [bkerley@br c] charset=utf-8
| 429493 [letskiy@gm i] Thank you! It works!
+ 429492 [wishdev@gm i] Assuming you place the array in a variable called droplets
  429494 [letskiy@gm i] It works only with arrays, as I understand.
  + 429495 [rob.biedenha] ...
  + 429496 [atma@co va e] charset=utf-8
    429497 [rob.biedenha] ...
    429502 [atma@co va e] charset=windows-1252

[ANN] zenweb 3.6.0 Released
429498 [ryand-ruby@z] zenweb version 3.6.0 has been released!

[ANN] graph 2.8.0 Released
429499 [ryand-ruby@z] graph version 2.8.0 has been released!

RVM installation
429500 [indrajeetmis] When i am going to install rvm in ubuntu 14.04 then after completing RVM
429501 [aruprakshit@] ...
429504 [indrajeetmis] indrajeet@indrajeet-System-Product-Name:~$ rvm install 2.1.5
429505 [abinoam@gm i] If you don't matter recreating all of your gemsets, try emptying them
429507 [indrajeetmis] Thanks
429516 [abinoam@gm i] Did it work?

Why there is no need to have protected_constant in Ruby ?
429514 [aruprakshit@] While I was reading the topic - Chain of responsibility pattern, I found one
429517 [me@da id wd ] In ruby there is only public and private. A constant is not meant to be
429519 [shortcutter@] Right.

Chat room using faye in ruby on rails
429520 [indrajeetmis] i have used gem private_pub

[ANN] minitest 5.5.0 Released
429522 [ryand-ruby@z] minitest version 5.5.0 has been released!

[ANN] minitest-bisect 1.2.1 Released
429523 [ryand-ruby@z] minitest-bisect version 1.2.1 has been released!

[ANN] zenweb 3.7.0 Released
429524 [ryand-ruby@z] zenweb version 3.7.0 has been released!

[ANN] pluto Update v1.1.0 - What's News? Modul-mania - pluto-models,  pluto-update, pluto-tasks, etc.
429525 [gerald.bauer] I've uploaded a new pluto version, that is, v1.1.0.

A new gem for cloning github trending repos
429526 [sriharsha.ka] ...

Ruby & Forms
429527 [bee.lists@gm] Im trying to get my head around the implementation of Ruby forms.  This is not Rails.  Im messing around in Sinatra and wanted to know how to receive submitted forms.  Ive looked at CGI and the params tag, but Im unclear as to which one should be used.
+ 429529 [lazaro@hc .s] I do not understanding so much your question (my english is not good)
+ 429530 [atma@co va e] charset=utf-8
  + 429536 [nbarnes@gm i] Does Ruby qua Ruby even have a concept of HTML forms? It seems like
  + 429539 [bee.lists@gm] Yeah the whole Sinatra thing I have working.  Its the submission of forms which got me.  Im reading about ARGV and params, and I was having trouble getting around the latter.  I will be taking a look at your Ruby though.  It seems youre just searching through params, so thats essentially what I was looking for.  I need more testing.

Ruby & Forms
429528 [bee.lists@gm] Im trying to get my head around the implementation of Ruby forms.  This is not Rails.  Im messing around in Sinatra and wanted to know how to receive submitted forms.  Ive looked at CGI and the params tag, but Im unclear as to which one should be used.
429538 [sto.mar@we .] There's no such thing... you mean HTML forms.
429540 [bee.lists@gm] When I say Ruby, I mean receiving the form submission.  params was what I was looking for.

Write a book about Ruby and run the code embedded in it
429531 [jjconti@gm i] It'll contain snippets of code and we'd like to be hable to run those
+ 429532 [ryand-ruby@z] ...
| + 429533 [jjconti@gm i] This one? https://github.com/amberbit/xmp
| | 429542 [ryand-ruby@z] No.
| | 429543 [ryand-ruby@z] 10004 % cat blah.rb
| + 429534 [rajsahae@gm ] If you treat each snippet as a test case, wouldn't any test case framework
|   429535 [jjconti@gm i] That's one of the ideas, yes. Even rubydoctest. But I was wondering if
+ 429541 [shortcutter@] Are you talking about https://en.wikipedia.org/wiki/Literate_programming ?

Ruby Compiled With Clang Is Noticeably Faster Than GCC
429537 [bar.hofesh@s] ...

Rubies built in minitest vs gem on Ubuntu / Debian
429544 [john.carter@] So someone on the same server pulled in a gem, that pulled in the latest
+ 429545 [rajsahae@gm ] ...
| 429546 [rajsahae@gm ] ...
+ 429547 [atma@co va e] charset=us-ascii