nobitanobi

Activity Graph

Page 1 of 23 | Next »

2017-12-29

[00:01:08] nobitanobi: has joined #ruby
[00:03:54] nobitanobi: Remote host closed the connection
[00:04:26] nobitanobi: has joined #ruby
[00:09:16] nobitanobi: Ping timeout: 265 seconds
[16:08:54] nobitanobi: has joined #ruby
[17:16:15] nobitanobi: Ping timeout: 248 seconds
[17:28:05] nobitanobi: has joined #ruby
[17:42:25] nobitanobi: Ping timeout: 248 seconds
[22:22:45] nobitanobi: has joined #ruby

2017-12-28

[00:54:41] nobitanobi: has joined #ruby
[01:22:28] nobitanobi: Remote host closed the connection
[01:58:11] nobitanobi: has joined #ruby
[02:02:41] nobitanobi: Remote host closed the connection
[02:03:14] nobitanobi: has joined #ruby
[02:07:50] nobitanobi: Ping timeout: 265 seconds
[13:27:43] nobitanobi: has joined #ruby
[13:46:39] nobitanobi: Remote host closed the connection
[17:12:30] nobitanobi: has joined #ruby
[17:57:29] nobitanobi: Remote host closed the connection
[17:58:04] nobitanobi: has joined #ruby
[18:02:54] nobitanobi: Ping timeout: 265 seconds
[18:04:13] nobitanobi: has joined #ruby
[18:08:31] nobitanobi: Ping timeout: 240 seconds
[19:03:17] nobitanobi: has joined #ruby
[23:49:44] nobitanobi: Remote host closed the connection
[23:50:20] nobitanobi: has joined #ruby
[23:54:46] nobitanobi: Ping timeout: 265 seconds

2017-12-14

[20:56:40] nobitanobi: has joined #ruby

2017-12-06

[23:11:05] nobitanobi: has joined #ruby

2017-11-22

[11:38:00] nobitanobi: has joined #ruby
[15:43:13] nobitanobi: Read error: Connection reset by peer
[15:43:42] nobitanobi: has joined #ruby
[17:49:45] nobitanobi: Remote host closed the connection

2017-09-27

[03:11:31] nobitanobi: has joined #ruby
[03:16:34] nobitanobi: Ping timeout: 264 seconds
[08:55:18] nobitanobi: has joined #ruby
[11:23:14] nobitanobi: Remote host closed the connection
[11:23:48] nobitanobi: has joined #ruby
[11:32:50] nobitanobi: Remote host closed the connection
[11:33:04] nobitanobi: has joined #ruby

2017-09-26

[07:08:48] nobitanobi: has joined #ruby
[07:46:25] nobitanobi: Remote host closed the connection
[08:39:28] nobitanobi: has joined #ruby
[14:26:52] nobitanobi: Remote host closed the connection
[14:58:06] nobitanobi: has joined #ruby
[17:00:16] nobitanobi: Remote host closed the connection
[17:34:59] nobitanobi: has joined #ruby
[17:38:21] nobitanobi: Remote host closed the connection
[19:38:55] nobitanobi: has joined #ruby
[19:43:27] nobitanobi: Ping timeout: 248 seconds
[20:09:12] nobitanobi: has joined #ruby
[20:13:29] nobitanobi: Remote host closed the connection
[21:00:26] nobitanobi: has joined #ruby
[21:09:28] nobitanobi: Remote host closed the connection
[23:10:02] nobitanobi: has joined #ruby
[23:14:39] nobitanobi: Ping timeout: 248 seconds

2017-09-25

[01:11:24] nobitanobi: has joined #ruby
[01:16:14] nobitanobi: Ping timeout: 240 seconds
[05:12:47] nobitanobi: has joined #ruby
[05:16:48] nobitanobi: Ping timeout: 240 seconds
[06:38:05] nobitanobi: has joined #ruby
[16:05:41] nobitanobi: Remote host closed the connection
[18:06:11] nobitanobi: has joined #ruby
[18:10:13] nobitanobi: Ping timeout: 240 seconds

2017-09-24

[01:02:19] nobitanobi: has joined #ruby
[01:06:41] nobitanobi: Ping timeout: 240 seconds
[03:03:11] nobitanobi: has joined #ruby
[03:07:45] nobitanobi: Ping timeout: 248 seconds
[05:03:55] nobitanobi: has joined #ruby
[05:08:22] nobitanobi: Ping timeout: 260 seconds
[07:04:43] nobitanobi: has joined #ruby
[07:09:05] nobitanobi: Ping timeout: 240 seconds
[09:05:30] nobitanobi: has joined #ruby
[09:09:45] nobitanobi: Ping timeout: 240 seconds
[11:06:16] nobitanobi: has joined #ruby
[11:10:28] nobitanobi: Ping timeout: 240 seconds
[13:07:00] nobitanobi: has joined #ruby
[13:11:27] nobitanobi: Ping timeout: 248 seconds
[17:08:29] nobitanobi: has joined #ruby
[17:13:34] nobitanobi: Ping timeout: 264 seconds
[21:09:52] nobitanobi: has joined #ruby
[21:14:39] nobitanobi: Ping timeout: 248 seconds

2017-09-23

[00:53:09] nobitanobi: has joined #ruby
[00:57:50] nobitanobi: Ping timeout: 252 seconds
[02:53:56] nobitanobi: has joined #ruby
[02:58:37] nobitanobi: Ping timeout: 260 seconds
[04:54:40] nobitanobi: has joined #ruby
[04:59:22] nobitanobi: Ping timeout: 260 seconds
[08:56:08] nobitanobi: has joined #ruby
[09:00:16] nobitanobi: Ping timeout: 240 seconds
[12:57:34] nobitanobi: has joined #ruby
[13:01:41] nobitanobi: Ping timeout: 240 seconds
[16:59:10] nobitanobi: has joined #ruby
[17:03:52] nobitanobi: Ping timeout: 260 seconds
[21:00:39] nobitanobi: has joined #ruby
[21:05:05] nobitanobi: Ping timeout: 255 seconds

2017-09-22

[03:02:58] nobitanobi: has joined #ruby
[03:07:17] nobitanobi: Ping timeout: 240 seconds
[07:04:39] nobitanobi: has joined #ruby
[07:09:12] nobitanobi: Ping timeout: 252 seconds
[07:32:04] nobitanobi: has joined #ruby
[16:49:44] nobitanobi: Remote host closed the connection
[18:50:49] nobitanobi: has joined #ruby
[18:55:08] nobitanobi: Ping timeout: 240 seconds
[20:51:34] nobitanobi: has joined #ruby
[20:56:22] nobitanobi: Ping timeout: 260 seconds
[22:52:19] nobitanobi: has joined #ruby
[22:56:50] nobitanobi: Ping timeout: 252 seconds

2017-09-21

[00:41:52] nobitanobi: has joined #ruby
[00:46:17] nobitanobi: Ping timeout: 260 seconds
[04:43:16] nobitanobi: has joined #ruby
[04:47:46] nobitanobi: Ping timeout: 264 seconds
[07:21:18] nobitanobi: has joined #ruby
[09:31:37] nobitanobi: Remote host closed the connection
[09:33:52] nobitanobi: has joined #ruby
[11:21:43] nobitanobi: Remote host closed the connection
[12:12:22] nobitanobi: has joined #ruby
[16:58:59] nobitanobi: Remote host closed the connection
[19:00:00] nobitanobi: has joined #ruby
[19:04:42] nobitanobi: Ping timeout: 260 seconds
[21:00:36] nobitanobi: has joined #ruby
[21:05:05] nobitanobi: Ping timeout: 248 seconds
[23:01:22] nobitanobi: has joined #ruby
[23:06:12] nobitanobi: Ping timeout: 260 seconds

2017-09-20

[00:40:50] nobitanobi: has joined #ruby
[00:45:20] nobitanobi: Ping timeout: 240 seconds
[07:37:10] nobitanobi: has joined #ruby
[12:37:15] nobitanobi: Remote host closed the connection
[14:37:56] nobitanobi: has joined #ruby
[14:42:19] nobitanobi: Ping timeout: 240 seconds
[16:38:50] nobitanobi: has joined #ruby
[16:43:05] nobitanobi: Ping timeout: 240 seconds
[20:40:19] nobitanobi: has joined #ruby
[20:44:47] nobitanobi: Ping timeout: 248 seconds
[22:41:11] nobitanobi: has joined #ruby
[22:45:21] nobitanobi: Ping timeout: 248 seconds

2017-09-19

[13:04:35] nobitanobi: has joined #ruby
[13:04:58] nobitanobi: Why when accessing a class method from within an instace method I need to do `self.class.method`, instead of `class.method`?
[13:05:38] nobitanobi: k thanks soahccc
[13:06:28] nobitanobi: yep, I have seen that :) Thanks!
[18:38:49] nobitanobi: Remote host closed the connection
[20:39:20] nobitanobi: has joined #ruby
[20:43:35] nobitanobi: Ping timeout: 240 seconds

2017-09-17

[08:34:28] nobitanobi: has joined #ruby

2017-09-16

[14:11:02] nobitanobi: has joined #ruby
[14:33:21] nobitanobi: Remote host closed the connection

2017-09-15

[00:47:22] nobitanobi: has joined #ruby
[03:22:30] nobitanobi: Remote host closed the connection
[03:23:05] nobitanobi: has joined #ruby
[03:27:05] nobitanobi: Ping timeout: 240 seconds
[04:06:28] nobitanobi: has joined #ruby
[04:19:39] nobitanobi: Remote host closed the connection
[04:20:58] nobitanobi: has joined #ruby
[04:44:19] nobitanobi: Remote host closed the connection
[06:45:27] nobitanobi: has joined #ruby
[06:50:09] nobitanobi: Ping timeout: 248 seconds
[08:28:50] nobitanobi: has joined #ruby
[08:36:33] nobitanobi: Read error: No route to host
[08:36:47] nobitanobi: has joined #ruby
[11:00:17] nobitanobi: Remote host closed the connection
[12:03:57] nobitanobi: has joined #ruby
[13:24:31] nobitanobi: Remote host closed the connection
[13:25:03] nobitanobi: has joined #ruby
[13:29:29] nobitanobi: Ping timeout: 246 seconds
[14:59:52] nobitanobi: has joined #ruby
[17:31:28] nobitanobi: Remote host closed the connection
[17:32:02] nobitanobi: has joined #ruby
[17:36:25] nobitanobi: Ping timeout: 240 seconds

2017-09-13

[01:22:20] nobitanobi: Remote host closed the connection
[03:23:53] nobitanobi: has joined #ruby
[04:03:06] nobitanobi: Remote host closed the connection
[16:05:51] nobitanobi: has joined #ruby
[17:44:43] nobitanobi: Remote host closed the connection
[17:45:15] nobitanobi: has joined #ruby
[17:49:39] nobitanobi: Ping timeout: 246 seconds

2017-09-12

[22:53:00] nobitanobi: has joined #ruby
[22:54:29] nobitanobi: has joined #RubyOnRails
[22:55:37] nobitanobi: hello - I have some questions regarding fragment caching. I have changed the HTML that I am caching (the object's attributes that are used for the cache key hasn't changed), but I still get the cached version. I thought there was some kind of digest that would expire if the HTML changed, but it doesn't seem to be the case. This is the code I have: https://gist.github.com/anonymous/cc841ede9078955ccd23a660317
[23:07:22] nobitanobi: matthewd: thanks - this is slim

2017-09-06

[18:35:29] nobitanobi: has joined #ruby
[18:37:55] nobitanobi: Given I have an array of values such as: [{level: 'danger', age: 20}, {level: 'warning', age: 23}, {level: 'good', age: 40}] - what is the best way to shift one of those hashes at the beginning of the array based on the level value? Assuming I am dinamically given the level, and sometimes it won't have a match in any of the hashes
[18:38:09] nobitanobi: I checked `unshift` but it uses exact value, and I just know the key
[18:39:58] nobitanobi: yep, you are right, sorry. So that won't work.
[18:40:57] nobitanobi: order_by_level([{level: 'danger', age: 20}, {level: 'warning', age: 23}, {level: 'good', age: 40}], 'warning') => [{level: 'warning', age: 23}, {level: 'danger', age: 20}, {level: 'good', age: 40}]
[18:41:31] nobitanobi: and another option if the level given doesn't match any levels on the hashes: order_by_level([{level: 'danger', age: 20}, {level: 'warning', age: 23}, {level: 'good', age: 40}], 'unexistent') => [{level: 'danger', age: 20}, {level: 'warning', age: 23}, {level: 'good', age: 40}]
[18:41:33] nobitanobi: returns same array
[18:42:55] nobitanobi: I will look at both of those options, thanks :) I will come back if I'm stuck
[18:44:02] nobitanobi: something I should have added is that we know all hashes have distinct levels, so they can't be repeated.
[18:45:37] nobitanobi: Papierkorb: the problem with sort_by is that I don't want to sort by the level field, but rather by the level field when it equals something.
[18:48:30] nobitanobi: ok, solved it with sort_by :) Thanks guys! I ended up doing this: arr.sort_by { |element| element[:level] == given_level ? 0 : 1 }
[18:50:15] nobitanobi: perfect, thanks Papierkorb

2017-09-01

[00:52:48] nobitanobi: Remote host closed the connection
[00:54:35] nobitanobi: has joined #ruby
[00:58:46] nobitanobi: Ping timeout: 246 seconds
[04:33:11] nobitanobi: has joined #ruby
[06:00:00] nobitanobi: Remote host closed the connection
[06:00:33] nobitanobi: has joined #ruby
[06:05:10] nobitanobi: Ping timeout: 264 seconds
[15:33:13] nobitanobi: has joined #ruby
[17:22:36] nobitanobi: Remote host closed the connection
[17:23:11] nobitanobi: has joined #ruby
[17:27:29] nobitanobi: Ping timeout: 246 seconds
[21:31:26] nobitanobi: has joined #ruby
[21:55:56] nobitanobi: Ping timeout: 255 seconds

2017-08-28

[00:13:12] nobitanobi: Remote host closed the connection
[03:29:16] nobitanobi: has joined #ruby
[03:40:00] nobitanobi: Remote host closed the connection
[04:26:45] nobitanobi: has joined #ruby
[05:25:23] nobitanobi: Remote host closed the connection
[05:25:43] nobitanobi: has joined #ruby
[05:25:45] nobitanobi: Remote host closed the connection
[05:27:22] nobitanobi: has joined #ruby
[05:31:45] nobitanobi: Ping timeout: 248 seconds
[15:53:22] nobitanobi: has joined #ruby

2017-08-27

[04:53:40] nobitanobi: has joined #ruby
[05:30:10] nobitanobi: Remote host closed the connection
[17:01:42] nobitanobi: has joined #ruby
[17:09:35] nobitanobi: Remote host closed the connection
[23:24:03] nobitanobi: has joined #ruby

2017-08-26

[00:36:49] nobitanobi: Remote host closed the connection
[00:52:02] nobitanobi: has joined #ruby
[01:13:05] nobitanobi: Remote host closed the connection
[03:49:09] nobitanobi: has joined #ruby
[03:49:27] nobitanobi: Remote host closed the connection
[03:50:01] nobitanobi: has joined #ruby
[03:51:48] nobitanobi: Read error: Connection reset by peer
[03:52:03] nobitanobi: has joined #ruby
[03:56:28] nobitanobi: Ping timeout: 246 seconds
[16:18:51] nobitanobi: has joined #ruby
[16:38:41] nobitanobi: Remote host closed the connection
[16:43:00] nobitanobi: has joined #ruby
[16:51:59] nobitanobi: Remote host closed the connection
[17:04:02] nobitanobi: has joined #ruby
[17:22:41] nobitanobi: Remote host closed the connection

2017-08-25

[22:34:32] nobitanobi: ok, I will take a look at that! Thanks al2o3-cr
[22:35:52] nobitanobi: thank you guys, I will take a look
[22:36:28] nobitanobi: amazing :) more options!
[22:38:25] nobitanobi: havenwood: great
[23:43:42] nobitanobi: Remote host closed the connection
[23:44:15] nobitanobi: has joined #ruby
[23:48:40] nobitanobi: Ping timeout: 246 seconds
[23:49:07] nobitanobi: has joined #ruby