kyrylo

Activity Graph

Page 1 of 15 | Next »

2019-10-13

[16:10:06] kyrylo: has joined #ruby
[17:32:31] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-10-05

[01:05:10] kyrylo: has joined #ruby
[01:14:46] kyrylo: Ping timeout: 265 seconds

2019-10-04

[02:13:31] kyrylo: has joined #ruby
[05:19:03] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:24:04] kyrylo: has joined #ruby
[10:01:42] kyrylo: Quit: Textual IRC Client: www.textualapp.com
[10:02:54] kyrylo: has joined #ruby
[11:29:34] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:06:27] kyrylo: has joined #ruby
[16:32:28] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-10-03

[00:16:07] kyrylo: has joined #ruby
[03:45:02] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:33:57] kyrylo: has joined #ruby
[13:29:21] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:23:41] kyrylo: has joined #ruby
[15:24:30] kyrylo: Client Quit

2019-10-02

[01:36:13] kyrylo: has joined #ruby
[04:06:33] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:31:28] kyrylo: has joined #ruby
[05:27:06] kyrylo: Read error: Connection reset by peer
[05:27:18] kyrylo: has joined #ruby
[07:13:23] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[08:49:35] kyrylo: has joined #ruby
[09:54:22] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[12:34:51] kyrylo: has joined #ruby
[13:41:27] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:23:29] kyrylo: has joined #ruby
[15:13:10] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:51:58] kyrylo: has joined #ruby
[15:57:35] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:05:59] kyrylo: has joined #ruby
[16:30:49] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:34:01] kyrylo: has joined #ruby
[16:54:55] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-10-01

[03:38:41] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:39:22] kyrylo: has joined #ruby
[09:53:27] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:53:44] kyrylo: has joined #ruby
[15:16:33] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:45:58] kyrylo: has joined #ruby
[15:57:20] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:55:57] kyrylo: has joined #ruby
[17:41:49] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-30

[00:39:31] kyrylo: has joined #ruby
[06:11:27] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:52:57] kyrylo: has joined #ruby
[08:54:43] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:55:52] kyrylo: has joined #ruby
[15:57:09] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:03:53] kyrylo: has joined #ruby

2019-09-29

[15:12:21] kyrylo: has joined #ruby
[15:18:37] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-27

[00:52:37] kyrylo: has joined #ruby
[03:00:08] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:17:55] kyrylo: has joined #ruby
[04:49:07] kyrylo: Ping timeout: 265 seconds
[04:53:42] kyrylo: has joined #ruby
[05:11:01] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:11:01] kyrylo: has joined #ruby
[11:23:02] kyrylo: What's up guys. Is there any way to tell if a thread is sleeping or being stopped? On Ruby 2.4 a stopped thread returns `sleep_forever` but on Ruby 2.3 it's just `sleep`. That said, on Ruby 2.4 the status would still be 'sleep' https://gist.github.com/kyrylo/b70862a458345573f44dbfa58214dce3
[11:37:15] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:44:21] kyrylo: has joined #ruby
[12:03:15] kyrylo: Thread.stop? would return true for both cases, so no
[12:04:48] kyrylo: The workaround I use is the stop variable. So before I call Thread.stop, I just assign @stop = true and then stop my thread. After the thread resumes, I call @stop = false
[12:04:52] kyrylo: Ugly but seems to be working
[12:10:12] kyrylo: I don't want to exit because it's expensive for my use case (I would need to respawn that thread every 15 seconds). I just want to have one thread that works like a timer but never exits
[12:12:26] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:29:11] kyrylo: has joined #ruby
[16:55:34] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:41:04] kyrylo: has joined #ruby
[23:41:14] kyrylo: Client Quit

2019-09-26

[02:45:10] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:16:10] kyrylo: has joined #ruby
[03:46:00] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:51:53] kyrylo: has joined #ruby
[04:01:27] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:04:13] kyrylo: has joined #ruby
[04:05:30] kyrylo: Client Quit
[05:17:27] kyrylo: has joined #ruby
[07:07:59] kyrylo: Ping timeout: 265 seconds
[07:29:57] kyrylo: has joined #ruby
[09:59:06] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:12:52] kyrylo: has joined #ruby
[10:28:26] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:13:23] kyrylo: has joined #ruby
[16:07:57] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:12:37] kyrylo: has joined #ruby
[16:29:12] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-25

[05:19:18] kyrylo: has joined #ruby
[06:25:37] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:19:04] kyrylo: has joined #ruby
[14:30:09] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:11:06] kyrylo: has joined #ruby

2019-09-24

[00:55:28] kyrylo: has joined #ruby
[01:20:11] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[01:41:17] kyrylo: has joined #ruby
[08:46:00] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:07:11] kyrylo: has joined #ruby
[13:05:48] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:40:34] kyrylo: has joined #ruby
[14:04:33] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:06:07] kyrylo: has joined #ruby
[14:25:58] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:03:29] kyrylo: has joined #ruby
[17:29:41] kyrylo: Quit: Textual IRC Client: www.textualapp.com

2019-09-23

[00:31:43] kyrylo: has joined #ruby
[04:41:25] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:59:35] kyrylo: has joined #ruby
[11:34:33] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:45:41] kyrylo: has joined #ruby
[11:46:01] kyrylo: Client Quit
[12:17:20] kyrylo: has joined #ruby
[12:19:52] kyrylo: Client Quit
[14:27:55] kyrylo: has joined #ruby
[16:53:03] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-22

[01:09:59] kyrylo: has joined #ruby
[01:12:11] kyrylo: Client Quit
[02:29:35] kyrylo: has joined #ruby
[05:32:35] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:38:03] kyrylo: has joined #ruby
[15:09:35] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-21

[00:07:49] kyrylo: has joined #ruby
[00:45:17] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[01:31:37] kyrylo: has joined #ruby
[06:31:12] kyrylo: Read error: Connection reset by peer
[06:31:42] kyrylo: has joined #ruby
[07:11:16] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-20

[01:10:23] kyrylo: has joined #ruby
[03:09:57] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:55:56] kyrylo: has joined #ruby
[06:33:41] kyrylo: Read error: Connection reset by peer

2019-09-19

[05:34:13] kyrylo: has joined #ruby
[05:36:12] kyrylo: Hey there! Does anyone know why `obj.method(:foo)` raises a NameError when `obj.respond_to?(:foo) #=> true`. I cannot think of a scenario but a user of my library reports such a bug
[05:42:27] kyrylo: Yeah, that's me right now: "wat"
[05:42:37] kyrylo: Some context, if it's helpful https://github.com/airbrake/airbrake/issues/1009
[05:43:04] kyrylo: That method is defined on a Rails model, fwiw
[06:07:14] kyrylo: respond_to also uses rb_check_id
[06:08:34] kyrylo: https://github.com/ruby/ruby/blob/dd81af7b6a7539473b6d7a7e35637b4a7d986523/vm_method.c#L2058
[06:11:15] kyrylo: banisterfiend, shouldn't you be sleeping?
[06:11:33] kyrylo: phaul, interesting idea
[06:16:56] kyrylo: Hmm, also a good clue
[06:19:55] kyrylo: All good ideas but still doesn't explain why it works 99.9% and fails in some cases (according to them)
[06:26:40] kyrylo: havenwood, did you mean something else? your code raises for me
[06:27:11] kyrylo: They said: "In our case, the User class is a standard Rails model inherited from ApplicationRecord, with email as a field in the database"
[06:27:21] kyrylo: So models
[06:28:35] kyrylo: I'm not familiar with "attributes". Is it a rails thing?
[06:32:02] kyrylo: banisterfiend, I'm on textual but it never crashes for me
[06:33:11] kyrylo: havenwood, haha okay
[06:33:48] kyrylo: Probably this https://blog.bigbinary.com/2018/12/11/rails-5-attributes-api.html
[06:39:28] kyrylo: Either way, big thanks for the help, everyone. At least there's a way to move forwards now
[06:41:15] kyrylo: So you think it may be the case that the bug is there because they don't define respond_to_missing?
[06:42:03] kyrylo: Thanks for the link, may come in handy in case they do use Attributes (I asked for a clarification)
[09:32:13] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:05:35] kyrylo: has joined #ruby
[14:33:18] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-09-09

[09:32:43] kyrylo: has joined #ruby
[09:33:06] kyrylo: Client Quit

2019-08-26

[04:51:38] kyrylo: has joined #ruby
[04:57:35] kyrylo: Read error: Connection reset by peer
[05:03:04] kyrylo: has joined #ruby
[05:09:53] kyrylo: Quit: Textual IRC Client: www.textualapp.com

2019-08-25

[00:30:03] kyrylo: Ping timeout: 245 seconds
[00:31:43] kyrylo: has joined #ruby
[00:44:52] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[00:52:15] kyrylo: has joined #ruby
[00:57:24] kyrylo: Ping timeout: 272 seconds
[02:54:28] kyrylo: has joined #ruby
[02:55:41] kyrylo: Client Quit
[06:21:05] kyrylo: has joined #ruby
[07:10:37] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-08-24

[03:43:54] kyrylo: has joined #ruby
[03:48:51] kyrylo: Ping timeout: 268 seconds
[13:08:58] kyrylo: has joined #ruby
[14:11:03] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:16:28] kyrylo: has joined #ruby
[14:23:10] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:53:48] kyrylo: has joined #ruby

2019-08-23

[00:57:02] kyrylo: has joined #ruby
[03:50:27] kyrylo: Remote host closed the connection
[03:51:21] kyrylo: has joined #ruby
[07:49:38] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:30:39] kyrylo: has joined #ruby
[12:51:00] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:01:09] kyrylo: has joined #ruby
[15:37:40] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-08-22

[06:06:24] kyrylo: has joined #ruby
[09:34:00] kyrylo: Remote host closed the connection
[09:34:37] kyrylo: has joined #ruby
[16:54:28] kyrylo: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-08-19

[14:36:01] kyrylo: Read error: Connection reset by peer
[14:38:02] kyrylo: has joined #ruby
[14:39:22] kyrylo: Read error: Connection reset by peer
[14:40:45] kyrylo: has joined #ruby
[14:41:59] kyrylo: Read error: Connection reset by peer
[14:43:50] kyrylo: has joined #ruby
[14:55:24] kyrylo: Read error: Connection reset by peer
[14:57:02] kyrylo: has joined #ruby
[14:58:29] kyrylo: Read error: Connection reset by peer
[14:59:55] kyrylo: has joined #ruby
[15:06:30] kyrylo: Read error: Connection reset by peer
[15:07:24] kyrylo: has joined #ruby
[15:10:50] kyrylo: Read error: Connection reset by peer
[15:12:34] kyrylo: has joined #ruby
[15:14:08] kyrylo: Read error: Connection reset by peer
[15:15:42] kyrylo: has joined #ruby
[15:16:56] kyrylo: Read error: Connection reset by peer
[15:18:40] kyrylo: has joined #ruby
[15:20:37] kyrylo: Read error: Connection reset by peer
[15:21:58] kyrylo: has joined #ruby
[15:24:43] kyrylo: Read error: Connection reset by peer
[15:26:30] kyrylo: has joined #ruby
[15:27:28] kyrylo: Read error: Connection reset by peer
[15:29:25] kyrylo: has joined #ruby
[15:30:50] kyrylo: Read error: Connection reset by peer
[15:32:21] kyrylo: has joined #ruby
[15:32:22] kyrylo: Client Quit
[15:44:09] kyrylo: has joined #ruby
[15:45:28] kyrylo: Read error: Connection reset by peer
[15:46:58] kyrylo: has joined #ruby
[15:48:25] kyrylo: Read error: Connection reset by peer
[15:49:41] kyrylo: has joined #ruby
[15:51:19] kyrylo: Read error: Connection reset by peer
[15:52:17] kyrylo: has joined #ruby
[15:53:33] kyrylo: Read error: Connection reset by peer
[15:54:52] kyrylo: has joined #ruby
[15:56:17] kyrylo: Read error: Connection reset by peer
[15:57:29] kyrylo: has joined #ruby
[16:02:53] kyrylo: Read error: Connection reset by peer
[16:04:16] kyrylo: has joined #ruby
[16:05:36] kyrylo: Read error: Connection reset by peer
[16:06:59] kyrylo: has joined #ruby
[16:07:37] kyrylo: Read error: Connection reset by peer
[16:09:39] kyrylo: has joined #ruby
[16:10:35] kyrylo: Read error: Connection reset by peer
[16:12:27] kyrylo: has joined #ruby
[16:14:08] kyrylo: Read error: Connection reset by peer
[16:14:58] kyrylo: has joined #ruby
[16:18:21] kyrylo: Read error: Connection reset by peer
[16:19:37] kyrylo: has joined #ruby
[16:20:23] kyrylo: Read error: Connection reset by peer
[16:22:14] kyrylo: has joined #ruby
[16:23:57] kyrylo: Read error: Connection reset by peer
[16:24:48] kyrylo: has joined #ruby
[16:25:05] kyrylo: Client Quit