« first day (1167 days earlier)      last day (2088 days later) » 

user5870134
12:43 AM
My internet is so slow, that "Google.co.uk" has a optimised layout (so the page loads faster).
 
user5870134
> ☹
 
user5870134
This is just painful... Even Google is taking ~8s to load.
 
user5870134
Ah well, good night people.
 
Hi,guys.
 
12:58 AM
hey there eliot
what are you working on?
 
I am working on many Shopify projects.
Recently I am building an app with rails.
 
sweet. i've always wondered how good their api is
 
Yeah, that's the point.
It's my first time here.
Hope to get many helps.
Thanks.
 
 
8 hours later…
Wit
9:17 AM
Hi, everyone.
 
 
4 hours later…
1:34 PM
@Wit Hello, welcome!
@EliotHansen Good morning/afternoon/evening, welcome to Ruby chat.
 
No route matches {:action=>"choose_winner", :controller=>"giveaways"}

resources :giveaways do
member do
get :choose_winner, as: :choose_winner
end
end
Any clues as to why I would be getting that error? The method is defined in the corresponding controller
I'm calling it from /giveaways/new and giveaways/edit
 
2:04 PM
hmm. i fiddled with it for a while but posted stackoverflow.com/questions/42953917/…
 
2:46 PM
@HashRocketSyntax Is there a reason you're not using a route helper?
 
I'm not sure I understand. I'll research route helpers when I get back to desk. Thanks!
 
I just threw an answer on there that hopefully works for ya. I'll be popping in and out of here so hopefully can answer any questions
 
3:33 PM
2017 Developer Survey Results in case anyone wants some light reading
 
4:23 PM
The disparity between US salaries and the rest of the world is mind boggling. ~100k in US and ~58k in Germany. I wouldn't think Cost of Living is that drastic.
 
Ruby is 9.1%, way way behind Python's 32%. But still, one out of ten isn't bad.
 
They pay you for not running away from Trump
 
All of the frameworks that are represented in the survey are JS frameworks, are they not? That's telling.
 
Yea, Ruby's decline wasn't too drastic either. It went from 10 to 9 percent.
 
Oracle is the most dreaded database in the survey. That's true for me!
 
4:30 PM
Yea, i voted that in as well
I'm curious as to why MySql is so dreaded
 
I don't dread MySql, but I'd rather have Postgresql. Postgres has such an emphasis on standards compliance compared to Mysql. For example, one of Mysql's engines doesn't even do transactions. Postgres would never dream of such a thing. It's just not philosophically possible for the Postgres guys to think like that.
 
5:03 PM
You mean someone isn't ignoring the S in SQL? That is pure madness
 
5:15 PM
Heh, yeah.
The release notes for Ruby 2.4.1 are... less than useful.
It's probably all just bug fixes though.
 
I wonder how many things will break on my old apps if I upgraded...
Time to find out for science
 
For science!
My big app at work won't run in 2.4 yet... there's something about the changes to BigDecimal and one of the database adapters I'm using that makes ActiveRecord upset.
 
5:52 PM
My boss just found these commands I didn't know about. Very cool.
bundle open [gem name]
bundle show [gem name]
 
And while looking up the docs for those I stumbled upon bundle viz to create a visual dependency chart
who knew there was more to bundle than install and update
 
Very cool!
 
And that definitely answers my occasional question of "where in the world is this gem located at"
Did bundle viz for my rails app... its scary... I think I should remove some gems
 
6:20 PM
Pretty sure I'm getting some similar BigNum problem... ActiveSupport dump for miles
 
6:57 PM
@Jared My stack trace includes the error `.../activerecord-4.2.8/lib/active_record/type/decimal.rb:21:in `BigDecimal': invalid value for BigDecimal(): "192000." (ArgumentError)
`
The developer I awarded my bounty to doubled his reputation from it. That's really cool.
I see in the survey results that 43% of developers are still wrong about tabs :)
 
I get this fun guy after a constant ::Fixnum is deprecated
/Users/n0223262/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:125:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
 
That's a way more interesting stack trace than I got. Congrats.
 
 
4 hours later…
10:56 PM
My favorite SE quote for today:
> Venus surface conditions are no more extreme than the inside of a common jet engine, so the engineering involved is fairly well known.
5
A: Potential high temperature power sources for a Venus lander

Quentin ClarksonFor most practical probes, batteries are the only real option. RTGs are for missions that last years, and Venus is an environment where "long duration" translates to "three hours". For that sort of timeframe you don't need recharging, and keeping the inside of the probe cool can be as simple as ...

 

« first day (1167 days earlier)      last day (2088 days later) »