allcentury

Activity Graph

Page 1 of 14 | Next »

2018-03-19

[13:59:26] allcentury: has joined #RubyOnRails
[15:36:58] allcentury: which version of AMS?
[15:37:46] allcentury: mordof: Unicorn has it’s own default timeout, i can’t remember if it’s 30 or 60 seconds
[15:38:53] allcentury: so, which ever timeout is less will get triggered first. unicorn on timeouts can be configured but I believe they raise a 5XX
[15:39:14] allcentury: we have our nginx configured to show a 503 when unicorn timesout
[15:41:01] allcentury: mordof: I don’t recall unicorn logging anything when it exceeds the timeout
[15:42:45] allcentury: yep, i see that in the docs here: https://bogomips.org/unicorn/Unicorn/Configurator.html (see: timeout)
[15:49:22] allcentury: mordof: I think the best thing to do is use nginx to group 500’s and respond with a consistent msg, ie: https://serverfault.com/questions/642705/request-timeout-issue-with-nginx-unicorn-and-rails (`error_page`)
[16:03:34] allcentury: thesubr00t: sorry just looking at this again, shouldn’t `attributes` be a class method in your BaseSerializer?
[16:03:57] allcentury: you call it as a class method: https://gist.github.com/anonymous/7c4c024dcbe1b5567680f30f7af98d8e#file-questions_serializer-rb-L2
[16:07:01] allcentury: I think you just want : ```def self.attributes(*_args)
[16:07:02] allcentury: args.each_key do |attr|
[16:07:03] allcentury: next unless self.send(attr).is_a?(String)
[16:07:05] allcentury: self.class.send(:define_method, attr) do
[16:07:06] allcentury: object.send(attr).gsub('«', '«').gsub('»', '»').tr("'", "'")
[16:07:28] allcentury: _args.each_key*
[16:09:36] allcentury: sevenseacat: I’ve been reading ‘The Self-Driven Child’ and just finished the chapter on sleep. It’s amazing how poorly your mind behaves when sleep deprived. Even if you don’t have kids, I’d recommend the book - I’ve learned a lot
[16:10:33] allcentury: https://www.scientificamerican.com/article/the-case-for-the-ldquo-self-driven-child-rdquo/
[16:21:40] allcentury: mordof Ya, we used to notify ourselves on timeouts via a custom Timeout.timout(x) in app code but that got too noisey for us.
[16:24:51] allcentury: mordof ah ya, i think your middleware idea is a good one
[17:01:29] allcentury: Quit: allcentury

2018-03-16

[00:27:43] allcentury: has joined #ruby
[00:31:57] allcentury: Ping timeout: 240 seconds
[13:52:30] allcentury: has joined #ruby
[16:21:05] allcentury: has joined #RubyOnRails
[16:22:49] allcentury: I’m having an N+1 issue but when I try and fix it I get back no results. `current_user.posts.includes(:voted)`. user has_many :posts, post belongs_to :voted, polymorphic: true. I get back [] but when I do current_user.posts.flat_map(&:voted) I get back that record correctly. What am I missing?
[16:26:12] allcentury: yes, that’s where I’m doing it and if i do `to_sql` at the end of that statement i get back an empty string, “”
[16:26:27] allcentury: @syndikate but if do it without the includes I get back the right sql statement
[16:29:36] allcentury: just figured out the issue, these were in memory before the parent object was saved so there is no query to perform. thanks for the rubber duck syndikate
[21:04:11] allcentury: Quit: allcentury

2018-03-15

[21:55:43] allcentury: has joined #ruby
[22:01:27] allcentury: Ping timeout: 240 seconds

2017-12-18

[15:55:51] allcentury: has joined #ruby

2017-12-17

[00:47:59] allcentury: has joined #ruby
[01:26:45] allcentury: Ping timeout: 264 seconds

2017-12-13

[00:44:40] allcentury: has joined #ruby
[00:48:57] allcentury: Ping timeout: 240 seconds
[14:23:16] allcentury: has joined #ruby
[17:20:45] allcentury: Ping timeout: 264 seconds
[18:11:42] allcentury: has joined #ruby
[19:41:51] allcentury: Ping timeout: 248 seconds
[20:25:30] allcentury: has joined #ruby
[20:30:21] allcentury: Ping timeout: 264 seconds

2017-12-12

[18:09:32] allcentury: has joined #ruby
[19:32:11] allcentury: Ping timeout: 260 seconds
[20:32:37] allcentury: has joined #ruby
[22:09:01] allcentury: Remote host closed the connection
[22:09:38] allcentury: has joined #ruby
[22:14:09] allcentury: Ping timeout: 264 seconds

2017-12-06

[00:45:11] allcentury: has joined #ruby
[00:49:37] allcentury: Ping timeout: 248 seconds
[14:34:25] allcentury: has joined #ruby
[14:59:33] allcentury: Ping timeout: 246 seconds

2017-12-05

[00:05:32] allcentury: has joined #ruby
[00:09:37] allcentury: Ping timeout: 248 seconds
[01:04:58] allcentury: has joined #ruby
[01:09:53] allcentury: Ping timeout: 276 seconds
[15:05:02] allcentury: has joined #ruby
[15:41:17] allcentury: Ping timeout: 255 seconds
[18:09:23] allcentury: has joined #ruby
[19:57:02] allcentury: Ping timeout: 260 seconds
[22:08:59] allcentury: has joined #ruby
[22:14:25] allcentury: Ping timeout: 248 seconds

2017-12-04

[14:42:50] allcentury: has joined #ruby
[16:22:14] allcentury: Ping timeout: 260 seconds
[22:07:32] allcentury: has joined #ruby
[22:15:58] allcentury: Ping timeout: 260 seconds
[22:29:17] allcentury: has joined #ruby
[22:33:37] allcentury: Ping timeout: 248 seconds
[22:45:17] allcentury: has joined #ruby
[22:49:34] allcentury: Ping timeout: 260 seconds
[23:45:04] allcentury: has joined #ruby
[23:50:23] allcentury: Ping timeout: 268 seconds

2017-12-02

[00:45:27] allcentury: has joined #ruby
[00:49:36] allcentury: Ping timeout: 248 seconds
[01:05:34] allcentury: has joined #ruby
[01:09:53] allcentury: Ping timeout: 255 seconds
[01:25:23] allcentury: has joined #ruby
[01:29:43] allcentury: Ping timeout: 250 seconds

2017-12-01

[14:39:22] allcentury: has joined #ruby
[14:56:10] allcentury: Ping timeout: 264 seconds
[16:53:26] allcentury: has joined #ruby
[17:31:31] allcentury: Ping timeout: 240 seconds
[20:52:32] allcentury: has joined #ruby
[22:29:10] allcentury: Remote host closed the connection
[22:29:43] allcentury: has joined #ruby
[22:35:32] allcentury: Ping timeout: 260 seconds

2017-11-30

[15:49:01] allcentury: has joined #ruby
[20:47:32] allcentury: Ping timeout: 255 seconds
[21:02:21] allcentury: has joined #ruby
[22:18:27] allcentury: Remote host closed the connection
[22:19:00] allcentury: has joined #ruby
[22:27:42] allcentury: Ping timeout: 260 seconds
[23:28:31] allcentury: has joined #ruby
[23:32:47] allcentury: Ping timeout: 248 seconds

2017-11-20

[14:32:25] allcentury: has joined #ruby

2017-11-19

[04:41:35] allcentury: has joined #ruby
[04:46:21] allcentury: Ping timeout: 240 seconds
[06:57:37] allcentury: has joined #ruby
[07:02:07] allcentury: Ping timeout: 260 seconds
[08:58:11] allcentury: has joined #ruby
[09:02:23] allcentury: Ping timeout: 248 seconds
[09:36:53] allcentury: has joined #ruby
[09:41:21] allcentury: Ping timeout: 248 seconds

2017-11-18

[01:09:51] allcentury: Remote host closed the connection
[05:00:43] allcentury: has joined #ruby
[06:05:32] allcentury: Remote host closed the connection
[14:39:13] allcentury: has joined #ruby
[15:19:20] allcentury: Remote host closed the connection
[15:19:57] allcentury: has joined #ruby
[15:24:42] allcentury: Ping timeout: 260 seconds
[16:21:29] allcentury: has joined #ruby
[16:37:53] allcentury: Ping timeout: 248 seconds
[16:46:29] allcentury: has joined #ruby
[16:50:41] allcentury: Ping timeout: 248 seconds
[17:07:46] allcentury: has joined #ruby
[17:12:44] allcentury: Ping timeout: 268 seconds

2017-11-17

[00:35:24] allcentury: Remote host closed the connection
[00:36:00] allcentury: has joined #ruby
[00:40:36] allcentury: Ping timeout: 268 seconds
[04:24:11] allcentury: has joined #ruby
[04:59:22] allcentury: Remote host closed the connection
[06:59:56] allcentury: has joined #ruby
[07:04:01] allcentury: Ping timeout: 240 seconds
[12:00:28] allcentury: has joined #ruby
[12:04:57] allcentury: Ping timeout: 260 seconds
[14:38:21] allcentury: has joined #ruby
[14:43:02] allcentury: Ping timeout: 255 seconds
[15:39:02] allcentury: has joined #ruby
[22:42:41] allcentury: Remote host closed the connection
[22:42:54] allcentury: has joined #ruby

2017-11-16

[19:12:28] allcentury: has joined #ruby
[19:16:40] allcentury: has joined #RubyOnRails
[19:18:18] allcentury: Last night one thread running a long task started spitting out 'PG::UnableToSend: no connection to the server'. I'm a little surprised the AR connection pool kept this connection open - in the future, is there a better way to reset connections if this occurs? I could rescue and do it manually but I can't be the first person to try and do this
[20:00:24] allcentury: Remote host closed the connection
[20:00:56] allcentury: has joined #ruby
[20:05:22] allcentury: Ping timeout: 260 seconds
[20:16:07] allcentury: has joined #ruby
[20:30:18] allcentury: Remote host closed the connection
[20:30:54] allcentury: has joined #ruby
[20:35:23] allcentury: Ping timeout: 255 seconds
[23:39:49] allcentury: has joined #ruby

2017-10-31

[05:29:25] allcentury: has joined #ruby
[05:33:57] allcentury: Ping timeout: 260 seconds
[07:17:36] allcentury: has joined #ruby
[07:22:05] allcentury: Ping timeout: 240 seconds
[09:05:37] allcentury: has joined #ruby
[09:10:23] allcentury: Ping timeout: 248 seconds
[13:23:24] allcentury: has joined #ruby
[15:41:53] allcentury: Ping timeout: 248 seconds

2017-10-30

[16:10:10] allcentury: has joined #ruby
[21:04:12] allcentury: Remote host closed the connection
[21:04:45] allcentury: has joined #ruby
[21:09:57] allcentury: Ping timeout: 240 seconds
[21:22:51] allcentury: has joined #ruby
[21:27:05] allcentury: Ping timeout: 240 seconds

2017-04-20

[19:28:45] allcentury: question - I want to list all the Rack middlewares i'm using in a sinatra app - how can I do that? I see this answer http://stackoverflow.com/questions/4008028/get-ordered-list-of-middleware-in-a-generic-rack-application but it's only listing a few
[19:32:11] allcentury: dminuoso i put the same link in my question...
[19:32:29] allcentury: not sure about my feelings though
[19:33:06] allcentury: also your googlegroups link says it's not possible
[19:33:14] allcentury: let me know if you have more to share dminuoso
[20:14:06] allcentury: Ping timeout: 268 seconds

2016-07-31

[02:20:55] allcentury: Ping timeout: 252 seconds
[02:31:57] allcentury: has joined #ruby
[02:32:01] allcentury: has joined #RubyOnRails
[02:36:47] allcentury: Ping timeout: 260 seconds
[03:56:59] allcentury: has joined #ruby
[03:57:03] allcentury: has joined #RubyOnRails
[04:02:31] allcentury: Ping timeout: 244 seconds
[05:00:10] allcentury: has joined #ruby
[05:04:23] allcentury: Ping timeout: 250 seconds
[06:19:06] allcentury: has joined #ruby
[06:19:10] allcentury: has joined #RubyOnRails
[06:29:32] allcentury: Ping timeout: 260 seconds
[07:15:55] allcentury: has joined #ruby
[07:15:59] allcentury: has joined #RubyOnRails
[07:20:26] allcentury: Ping timeout: 244 seconds
[09:31:09] allcentury: has joined #ruby
[09:31:13] allcentury: has joined #RubyOnRails
[09:36:04] allcentury: Ping timeout: 250 seconds
[10:38:03] allcentury: has joined #ruby
[10:39:01] allcentury: has joined #RubyOnRails
[11:19:15] allcentury: Ping timeout: 276 seconds
[18:37:59] allcentury: has joined #ruby
[18:38:02] allcentury: has joined #RubyOnRails

2016-07-30

[20:28:23] allcentury: has joined #RubyOnRails
[20:28:23] allcentury: has joined #ruby
[21:55:41] allcentury: Ping timeout: 244 seconds
[22:04:41] allcentury: has joined #ruby
[22:04:45] allcentury: has joined #RubyOnRails

2016-07-11

[01:46:52] allcentury: Ping timeout: 260 seconds
[10:30:36] allcentury: has joined #ruby
[10:30:43] allcentury: has joined #RubyOnRails
[11:10:57] allcentury: Ping timeout: 260 seconds
[12:01:06] allcentury: has joined #ruby
[12:01:10] allcentury: has joined #RubyOnRails
[13:34:42] allcentury: Ping timeout: 272 seconds
[13:52:03] allcentury: has joined #ruby
[13:52:07] allcentury: has joined #RubyOnRails
[13:59:08] allcentury: Quit: WeeChat 1.2

2016-07-10

[12:34:06] allcentury: has joined #ruby
[12:34:12] allcentury: has joined #RubyOnRails
[14:55:38] allcentury: Ping timeout: 244 seconds
[15:19:17] allcentury: has joined #ruby
[15:19:21] allcentury: has joined #RubyOnRails
[17:47:41] allcentury: Ping timeout: 244 seconds
[18:25:16] allcentury: has joined #ruby
[18:25:19] allcentury: has joined #RubyOnRails

2016-07-09

[12:00:46] allcentury: has joined #ruby
[12:00:51] allcentury: has joined #RubyOnRails
[13:04:04] allcentury: Ping timeout: 244 seconds
[14:12:13] allcentury: has joined #ruby
[14:12:17] allcentury: has joined #RubyOnRails
[14:52:06] allcentury: Ping timeout: 276 seconds
[16:07:51] allcentury: has joined #ruby
[16:07:55] allcentury: has joined #RubyOnRails
[20:09:18] allcentury: Ping timeout: 244 seconds

2016-07-08

[00:26:09] allcentury: has joined #ruby
[00:26:13] allcentury: has joined #RubyOnRails
[01:37:34] allcentury: Ping timeout: 252 seconds
[09:55:21] allcentury: has joined #ruby
[09:55:25] allcentury: has joined #RubyOnRails
[11:51:48] allcentury: Ping timeout: 244 seconds
[12:06:23] allcentury: has joined #ruby
[12:06:27] allcentury: has joined #RubyOnRails
[13:23:47] allcentury: Ping timeout: 260 seconds
[13:50:44] allcentury: has joined #ruby
[13:50:48] allcentury: has joined #RubyOnRails
[20:24:59] allcentury: Ping timeout: 250 seconds

2016-07-07

[01:25:03] allcentury: Ping timeout: 240 seconds
[11:33:32] allcentury: has joined #ruby
[11:33:39] allcentury: has joined #RubyOnRails
[12:56:07] allcentury: Ping timeout: 250 seconds
[13:11:44] allcentury: has joined #ruby
[13:11:53] allcentury: has joined #RubyOnRails
[15:37:38] allcentury: Ping timeout: 244 seconds
[15:41:17] allcentury: has joined #ruby
[15:41:21] allcentury: has joined #RubyOnRails
[16:48:17] allcentury: Ping timeout: 260 seconds
[17:49:33] allcentury: has joined #ruby
[17:49:37] allcentury: has joined #RubyOnRails
[22:02:34] allcentury: Ping timeout: 240 seconds

2016-07-06

[21:39:09] allcentury: has joined #RubyOnRails