Mon_Ouie

Activity Graph

Page 1 of 23 | Next »

2019-05-31

[12:26:08] Mon_Ouie: Ping timeout: 252 seconds
[12:27:42] Mon_Ouie: has joined #ruby
[12:27:44] Mon_Ouie: has joined #ruby-offtopic

2019-04-13

[16:49:41] Mon_Ouie: *.net *.split

2019-04-09

[07:17:07] Mon_Ouie: Ping timeout: 245 seconds
[07:18:25] Mon_Ouie: has joined #ruby-offtopic
[07:18:25] Mon_Ouie: has joined #ruby

2019-04-05

[22:01:17] Mon_Ouie: Ping timeout: 255 seconds
[22:02:35] Mon_Ouie: has joined #ruby-offtopic
[22:02:35] Mon_Ouie: has joined #ruby

2019-03-12

[06:07:25] Mon_Ouie: Ping timeout: 246 seconds
[06:13:41] Mon_Ouie: has joined #ruby
[06:13:42] Mon_Ouie: has joined #ruby-offtopic

2018-09-05

[00:07:35] Mon_Ouie: Quit: WeeChat 1.9.1
[00:07:48] Mon_Ouie: has joined #ruby-offtopic
[00:07:48] Mon_Ouie: has joined #ruby

2018-07-20

[00:07:29] Mon_Ouie: *.net *.split
[00:15:50] Mon_Ouie: has joined #ruby

2018-05-29

[02:47:19] Mon_Ouie: *.net *.split
[02:48:00] Mon_Ouie: has joined #ruby

2018-05-20

[18:44:01] Mon_Ouie: *.net *.split
[18:44:36] Mon_Ouie: has joined #ruby

2018-05-08

[18:30:21] Mon_Ouie: Ping timeout: 264 seconds
[18:31:26] Mon_Ouie: has joined #ruby

2018-05-01

[15:31:45] Mon_Ouie: Ping timeout: 248 seconds
[15:32:23] Mon_Ouie: has joined #ruby

2018-04-26

[02:12:54] Mon_Ouie: Ping timeout: 256 seconds
[02:17:14] Mon_Ouie: has joined #ruby

2018-04-25

[12:25:57] Mon_Ouie: *.net *.split
[12:27:27] Mon_Ouie: has joined #ruby
[15:01:28] Mon_Ouie: *.net *.split
[15:03:11] Mon_Ouie: has joined #ruby

2018-03-19

[07:28:41] Mon_Ouie: pwntrik: I'm not sure how Rails autoloading works (see #rails), but maybe using ::TumbleTinder (to explicit the fact this is a top-level constant) would work?
[07:29:46] Mon_Ouie: Also if you want to call your method as Tumble::somefunc (or Tumble.somefunc) as opposed to Tumble.new.somefunc, you would have to use extend instead of include
[07:55:20] Mon_Ouie: included Modules are like parent classes, they appear above the class they are included in in the ancestry chain, which mains methods are looked up in the class itself first
[07:55:39] Mon_Ouie: You can use Module#prepend to make the module appear before the class

2018-03-11

[18:42:32] Mon_Ouie: You can do it only if class Foo is already a subclass of Bar

2018-03-09

[01:39:27] Mon_Ouie: has joined #ruby

2018-03-08

[19:59:10] Mon_Ouie: Quit: WeeChat 1.9.1

2018-03-06

[06:06:26] Mon_Ouie: Quit: WeeChat 1.9.1
[06:09:29] Mon_Ouie: has joined #ruby
[06:09:31] Mon_Ouie: Client Quit
[06:10:41] Mon_Ouie: has joined #ruby

2018-03-05

[14:17:00] Mon_Ouie: What did your vision expect Thread.new { break 5 } to do?
[14:18:23] Mon_Ouie: Nice to see you too :)
[15:34:54] Mon_Ouie: !kick momomo
[15:41:56] Mon_Ouie: momomo: Please use gist to share code, don't copy paste it on the channel
[15:43:43] Mon_Ouie: monkey patching just means adding methods to a class you didn't create
[15:43:59] Mon_Ouie: Which is what the second snippet of that answer does
[15:47:04] Mon_Ouie: You put it in a ruby file that you execute or require from some other file
[15:47:14] Mon_Ouie: It's just a regular piece of code
[16:11:04] Mon_Ouie: Use `class Hash; include CoreExtensions::Hash; end' (include is private so it cannot be called with an explicit receiver)
[16:15:28] Mon_Ouie: When do you load the file in which you defined merge_recursive?
[16:15:59] Mon_Ouie: Also you recursive_merge != merge_recursive
[16:17:32] Mon_Ouie: The file you pasted runs just fine in Ruby
[16:19:55] Mon_Ouie: It doesn't. One thing that may matter is if Hash does not refer to ::Hash but some other Hash class defined in a module. Does using 'class ::Hash' behave the same way?

2018-03-04

[13:48:19] Mon_Ouie: >> a = 3; b = 4; a || b
[13:48:40] Mon_Ouie: ^ i.e. in this case it will be the same as x == a

2018-02-27

[07:26:32] Mon_Ouie: Looks like it wouldn't work with lambdas that take multiple arguments, would it?
[07:27:23] Mon_Ouie: >> class Proc; def [](*args); return args.reduce(self) { |l, r| l.(r) }; end; end; lambda { |x, y| x + }[1, 2]
[07:28:07] Mon_Ouie: Bad copy paste, but it's going to introduce errors if any code uses Proc#[] on lambdas

2018-02-26

[07:30:11] Mon_Ouie: dminuoso: I think it has to do with losing some debugging ability due to losing (part of) the stacktrace

2018-02-24

[12:25:22] Mon_Ouie: dminuoso: fix = -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }
[12:29:44] Mon_Ouie: I think the usual definition of the Y combinator also doesn't work with strict evaluation though

2018-02-06

[03:18:10] Mon_Ouie: Ping timeout: 240 seconds

2018-01-28

[19:27:52] Mon_Ouie: has joined #ruby-ops
[19:27:52] Mon_Ouie: has joined #ruby-offtopic
[19:27:52] Mon_Ouie: has joined #ruby

2018-01-26

[16:24:48] Mon_Ouie: has joined #ruby-ops
[16:24:48] Mon_Ouie: has joined #ruby-offtopic
[16:24:48] Mon_Ouie: has joined #ruby
[19:59:57] Mon_Ouie: Ping timeout: 240 seconds

2017-12-18

[08:02:39] Mon_Ouie: has joined #ruby-offtopic
[08:02:39] Mon_Ouie: has joined #ruby
[08:02:41] Mon_Ouie: has joined #ruby-ops
[08:06:33] Mon_Ouie: Read error: Connection reset by peer

2017-12-17

[08:50:15] Mon_Ouie: has joined #ruby-ops
[08:50:15] Mon_Ouie: has joined #ruby-offtopic
[08:50:15] Mon_Ouie: has joined #ruby
[16:24:19] Mon_Ouie: Ping timeout: 256 seconds

2017-12-15

[09:00:52] Mon_Ouie: has joined #ruby
[09:00:54] Mon_Ouie: has joined #ruby-offtopic
[09:00:56] Mon_Ouie: has joined #ruby-ops
[15:05:11] Mon_Ouie: Ping timeout: 260 seconds
[18:39:07] Mon_Ouie: has joined #ruby
[18:39:08] Mon_Ouie: has joined #ruby-offtopic
[18:39:10] Mon_Ouie: has joined #ruby-ops
[22:24:30] Mon_Ouie: Quit: WeeChat 2.0

2017-12-14

[08:14:34] Mon_Ouie: has joined #ruby
[08:14:37] Mon_Ouie: has joined #ruby-offtopic
[08:14:39] Mon_Ouie: has joined #ruby-ops
[16:48:32] Mon_Ouie: Ping timeout: 248 seconds

2017-12-13

[08:10:02] Mon_Ouie: has joined #ruby-offtopic
[08:10:02] Mon_Ouie: has joined #ruby
[08:10:04] Mon_Ouie: has joined #ruby-ops
[16:15:05] Mon_Ouie: Ping timeout: 240 seconds

2017-12-12

[07:54:55] Mon_Ouie: has joined #ruby-ops
[07:54:55] Mon_Ouie: has joined #ruby-offtopic
[07:54:55] Mon_Ouie: has joined #ruby
[16:27:53] Mon_Ouie: Ping timeout: 276 seconds

2017-11-16

[08:06:41] Mon_Ouie: has joined #ruby-offtopic
[08:06:41] Mon_Ouie: has joined #ruby
[13:43:22] Mon_Ouie: Quit: WeeChat 1.9.1

2017-11-15

[13:34:44] Mon_Ouie: has joined #ruby-offtopic
[13:34:44] Mon_Ouie: has joined #ruby
[17:21:37] Mon_Ouie: Ping timeout: 268 seconds

2017-11-14

[05:28:59] Mon_Ouie: has joined #ruby-ops
[05:28:59] Mon_Ouie: has joined #ruby-offtopic
[05:28:59] Mon_Ouie: has joined #ruby
[07:23:13] Mon_Ouie: Ping timeout: 248 seconds
[08:00:46] Mon_Ouie: has joined #ruby
[08:00:48] Mon_Ouie: has joined #ruby-offtopic
[08:00:50] Mon_Ouie: has joined #ruby-ops
[11:05:17] Mon_Ouie: Ping timeout: 260 seconds
[12:02:26] Mon_Ouie: has joined #ruby-offtopic
[12:02:26] Mon_Ouie: has joined #ruby
[12:02:28] Mon_Ouie: has joined #ruby-ops
[14:29:27] Mon_Ouie: Quit: WeeChat 1.9.1

2017-11-05

[15:38:06] Mon_Ouie: has joined #ruby-ops
[15:38:06] Mon_Ouie: has joined #ruby-offtopic
[15:38:06] Mon_Ouie: has joined #ruby
[17:04:53] Mon_Ouie: Ping timeout: 246 seconds

2017-10-23

[06:23:31] Mon_Ouie: has joined #ruby-ops
[06:23:31] Mon_Ouie: has joined #ruby-offtopic
[06:23:31] Mon_Ouie: has joined #ruby
[09:56:35] Mon_Ouie: Ping timeout: 240 seconds
[11:12:55] Mon_Ouie: has joined #ruby-offtopic
[11:12:55] Mon_Ouie: has joined #ruby
[11:12:57] Mon_Ouie: has joined #ruby-ops
[16:14:27] Mon_Ouie: Ping timeout: 240 seconds

2017-10-15

[12:34:03] Mon_Ouie: Quit: WeeChat 1.9.1

2017-10-14

[18:12:00] Mon_Ouie: has joined #ruby-ops
[18:12:00] Mon_Ouie: has joined #ruby-offtopic
[18:12:00] Mon_Ouie: has joined #ruby
[20:54:22] Mon_Ouie: Ping timeout: 255 seconds
[21:21:53] Mon_Ouie: has joined #ruby
[21:21:56] Mon_Ouie: has joined #ruby-offtopic
[21:21:58] Mon_Ouie: has joined #ruby-ops

2017-10-13

[10:33:44] Mon_Ouie: has joined #ruby-ops
[10:33:44] Mon_Ouie: has joined #ruby-offtopic
[10:33:44] Mon_Ouie: has joined #ruby
[11:30:04] Mon_Ouie: Ping timeout: 255 seconds

2017-10-12

[00:58:39] Mon_Ouie: Ping timeout: 248 seconds
[01:16:38] Mon_Ouie: has joined #ruby-offtopic
[01:16:38] Mon_Ouie: has joined #ruby
[01:16:40] Mon_Ouie: has joined #ruby-ops
[06:13:19] Mon_Ouie: Ping timeout: 248 seconds
[06:56:09] Mon_Ouie: has joined #ruby
[06:56:11] Mon_Ouie: has joined #ruby-offtopic
[06:56:13] Mon_Ouie: has joined #ruby-ops
[15:33:05] Mon_Ouie: Ping timeout: 240 seconds

2017-10-11

[05:52:31] Mon_Ouie: Ping timeout: 248 seconds
[06:34:18] Mon_Ouie: has joined #ruby-offtopic
[06:34:18] Mon_Ouie: has joined #ruby
[06:34:20] Mon_Ouie: has joined #ruby-ops
[10:09:53] Mon_Ouie: Ping timeout: 255 seconds
[10:51:44] Mon_Ouie: has joined #ruby
[10:51:46] Mon_Ouie: has joined #ruby-offtopic
[10:51:48] Mon_Ouie: has joined #ruby-ops
[16:04:17] Mon_Ouie: Ping timeout: 248 seconds
[17:48:35] Mon_Ouie: has joined #ruby-offtopic
[17:48:35] Mon_Ouie: has joined #ruby
[17:48:36] Mon_Ouie: has joined #ruby-ops

2017-10-10

[06:40:26] Mon_Ouie: has joined #ruby-ops
[06:40:26] Mon_Ouie: has joined #ruby-offtopic
[06:40:26] Mon_Ouie: has joined #ruby
[10:03:35] Mon_Ouie: Ping timeout: 240 seconds
[10:44:13] Mon_Ouie: has joined #ruby-offtopic
[10:44:13] Mon_Ouie: has joined #ruby
[10:44:15] Mon_Ouie: has joined #ruby-ops
[16:06:37] Mon_Ouie: Ping timeout: 258 seconds
[17:00:29] Mon_Ouie: has joined #ruby-offtopic
[17:00:29] Mon_Ouie: has joined #ruby
[17:00:31] Mon_Ouie: has joined #ruby-ops

2017-10-09

[02:10:07] Mon_Ouie: Ping timeout: 260 seconds
[02:27:31] Mon_Ouie: has joined #ruby
[02:27:34] Mon_Ouie: has joined #ruby-offtopic
[02:27:36] Mon_Ouie: has joined #ruby-ops
[06:07:52] Mon_Ouie: Ping timeout: 255 seconds
[06:37:18] Mon_Ouie: has joined #ruby-ops
[06:37:18] Mon_Ouie: has joined #ruby-offtopic
[06:37:18] Mon_Ouie: has joined #ruby
[10:50:50] Mon_Ouie: Ping timeout: 255 seconds
[10:54:42] Mon_Ouie: has joined #ruby-offtopic
[10:54:42] Mon_Ouie: has joined #ruby
[10:54:44] Mon_Ouie: has joined #ruby-ops
[12:04:16] Mon_Ouie: Ping timeout: 255 seconds
[13:27:42] Mon_Ouie: has joined #ruby-offtopic
[13:27:42] Mon_Ouie: has joined #ruby
[13:27:44] Mon_Ouie: has joined #ruby-ops
[15:14:05] Mon_Ouie: Ping timeout: 240 seconds
[15:14:51] Mon_Ouie: has joined #ruby
[15:14:52] Mon_Ouie: has joined #ruby-offtopic
[15:14:54] Mon_Ouie: has joined #ruby-ops
[15:51:41] Mon_Ouie: Quit: WeeChat 1.9.1

2017-10-08

[09:20:38] Mon_Ouie: has joined #ruby-ops
[09:20:38] Mon_Ouie: has joined #ruby-offtopic
[09:20:38] Mon_Ouie: has joined #ruby
[10:11:01] Mon_Ouie: >> [7[0], 1[0]]
[10:11:23] Mon_Ouie: You're just calling 1[0], which returns 1, then calling Integer#[] on that, which returns 1 again, and so on
[15:24:05] Mon_Ouie: Ping timeout: 240 seconds
[19:27:21] Mon_Ouie: has joined #ruby-offtopic
[19:27:21] Mon_Ouie: has joined #ruby
[19:27:23] Mon_Ouie: has joined #ruby-ops

2017-10-03

[06:14:23] Mon_Ouie: Ping timeout: 248 seconds
[06:57:51] Mon_Ouie: has joined #ruby
[06:57:53] Mon_Ouie: has joined #ruby-offtopic
[06:57:55] Mon_Ouie: has joined #ruby-ops
[08:40:17] Mon_Ouie: Ping timeout: 258 seconds
[10:54:53] Mon_Ouie: has joined #ruby
[10:54:55] Mon_Ouie: has joined #ruby-offtopic
[10:54:57] Mon_Ouie: has joined #ruby-ops
[15:57:44] Mon_Ouie: Ping timeout: 255 seconds

2017-10-02

[05:53:36] Mon_Ouie: Ping timeout: 240 seconds
[07:59:33] Mon_Ouie: has joined #ruby
[07:59:35] Mon_Ouie: has joined #ruby-offtopic
[07:59:37] Mon_Ouie: has joined #ruby-ops
[08:10:38] Mon_Ouie: Quit: WeeChat 1.9
[08:15:54] Mon_Ouie: has joined #ruby-ops
[08:15:54] Mon_Ouie: has joined #ruby-offtopic
[08:15:54] Mon_Ouie: has joined #ruby
[09:18:08] Mon_Ouie: Ping timeout: 255 seconds
[12:31:22] Mon_Ouie: has joined #ruby-ops
[12:31:22] Mon_Ouie: has joined #ruby-offtopic
[12:31:22] Mon_Ouie: has joined #ruby
[13:33:21] Mon_Ouie: workboy: There's no real API for eval.in, you just send the same POST request that would be sent if you were to fill out the form on the web page
[15:58:12] Mon_Ouie: Ping timeout: 246 seconds
[17:49:05] Mon_Ouie: has joined #ruby
[17:49:06] Mon_Ouie: has joined #ruby-offtopic
[17:54:36] Mon_Ouie: Ping timeout: 240 seconds
[18:21:42] Mon_Ouie: has joined #ruby-offtopic
[18:21:42] Mon_Ouie: has joined #ruby
[18:21:44] Mon_Ouie: has joined #ruby-ops
[19:56:15] Mon_Ouie: Ping timeout: 248 seconds
[20:23:46] Mon_Ouie: has joined #ruby
[20:23:47] Mon_Ouie: has joined #ruby-offtopic
[20:23:49] Mon_Ouie: has joined #ruby-ops

2017-10-01

[08:09:16] Mon_Ouie: I would rather fix the code of mean_scores_for_token (or the code that computes it if it's a variable) to make sure it isn't nil in the first place
[08:09:43] Mon_Ouie: (forgot to check the time of the previous messages though…)
[14:40:38] Mon_Ouie: Ping timeout: 258 seconds
[16:23:55] Mon_Ouie: has joined #ruby-offtopic
[16:23:55] Mon_Ouie: has joined #ruby
[16:23:59] Mon_Ouie: has joined #ruby-ops
[18:09:10] Mon_Ouie: Ping timeout: 258 seconds
[18:36:26] Mon_Ouie: has joined #ruby
[18:36:28] Mon_Ouie: has joined #ruby-offtopic
[18:36:32] Mon_Ouie: has joined #ruby-ops

2017-09-30

[20:28:15] Mon_Ouie: has joined #ruby-ops
[20:28:15] Mon_Ouie: has joined #ruby-offtopic
[20:28:15] Mon_Ouie: has joined #ruby