Gnut

Activity Graph

Page 1 of 2 | Next »

2018-03-15

[01:41:27] Gnut: Ping timeout: 240 seconds
[06:02:35] Gnut: has joined #ruby
[11:28:53] Gnut: Ping timeout: 260 seconds

2018-03-14

[03:42:37] Gnut: Ping timeout: 260 seconds
[06:19:20] Gnut: has joined #ruby
[08:17:04] Gnut: Ping timeout: 246 seconds
[08:28:59] Gnut: has joined #ruby

2018-03-12

[14:46:17] Gnut: has joined #ruby

2018-03-08

[04:01:01] Gnut: has joined #ruby
[06:23:59] Gnut: Ping timeout: 260 seconds
[15:38:57] Gnut: has joined #ruby
[22:38:59] Gnut: Ping timeout: 276 seconds

2018-03-07

[03:01:02] Gnut: Ping timeout: 256 seconds
[16:02:42] Gnut: has joined #ruby
[23:43:14] Gnut: Ping timeout: 260 seconds

2018-03-06

[18:36:48] Gnut: has joined #ruby
[18:38:00] Gnut: If I have a static class method `self.create()`, what's the best way to reference the class if I'm looking to instantiate an instance e.g. `Classname.new()`?
[18:38:16] Gnut: Maybe self.new()?
[18:42:34] Gnut: apeiros: Cool, `new()` it is

2018-03-03

[05:10:17] Gnut: Ping timeout: 260 seconds
[08:47:13] Gnut: has joined #ruby
[10:40:33] Gnut: Ping timeout: 240 seconds
[10:42:47] Gnut: has joined #ruby
[12:19:13] Gnut: Ping timeout: 248 seconds

2018-03-02

[15:38:10] Gnut: has joined #ruby
[15:39:19] Gnut: Is there a good way to remove objects from an array based on a condition
[15:41:08] Gnut: I'm loading a set of object from one location then loading a string array from another location and I want to say, if object in the first list don't match one in the second list, remove it
[15:41:15] Gnut: darix: let me check that out
[15:52:16] Gnut: darix: that should do it. Quick side question, what's the best way to turn an array of objects into an array of strings off a certain field?
[15:53:03] Gnut: As in, i just want the second array to have Object.name for every entry
[16:27:48] Gnut: darix: perfect, that did it. thanks a lot
[16:27:56] Gnut: apeiros: Ah, correct. My mistake
[18:04:17] Gnut: baweaver: that's exactly what i used

2018-02-27

[01:13:21] Gnut: has joined #ruby
[05:55:30] Gnut: Remote host closed the connection

2018-02-26

[01:22:57] Gnut: Ping timeout: 240 seconds
[01:24:53] Gnut: has joined #ruby
[05:23:32] Gnut: Ping timeout: 245 seconds
[05:45:58] Gnut: has joined #ruby
[06:40:27] Gnut: Ping timeout: 240 seconds
[15:34:59] Gnut: has joined #ruby
[22:31:27] Gnut: Ping timeout: 245 seconds

2018-02-23

[02:55:07] Gnut: Ping timeout: 256 seconds
[02:56:37] Gnut: has joined #ruby
[03:17:45] Gnut: Ping timeout: 264 seconds
[03:18:37] Gnut: has joined #ruby
[03:54:21] Gnut: Ping timeout: 264 seconds
[03:55:55] Gnut: has joined #ruby
[04:02:45] Gnut: Ping timeout: 264 seconds
[15:21:59] Gnut: has joined #ruby
[18:21:48] Gnut: If i'm creating a ruby gem, is it okay to have multiple libraries or are they all supposed to be under the same parent namespace
[18:26:48] Gnut: Okay, so 1 parent namespace
[18:30:19] Gnut: tomlukeywood: The snipper you pasted is how you acces this fucntion https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L460
[18:30:50] Gnut: tomlukeywood: If you scroll up you can see it's in the `HTTP` class and the `HTTP` class is in the `Net` module

2018-02-22

[01:34:11] Gnut: Ping timeout: 256 seconds
[02:26:03] Gnut: has joined #ruby
[22:33:50] Gnut: Ping timeout: 252 seconds
[22:40:53] Gnut: has joined #ruby

2018-02-21

[01:17:25] Gnut: Remote host closed the connection
[21:17:14] Gnut: has joined #ruby
[21:17:50] Gnut: Is there a way to create an instance method used for sorting an array of the object
[21:19:04] Gnut: e.g. I have an array of objects and when i call sort on them, I want them to be sorted using a sort method i specify in the class
[21:22:49] Gnut: aperios: That's a mixin?
[21:23:32] Gnut: son-of-a-gun, irssi has auto-completion :the_more_ya_know:
[21:24:00] Gnut: apeiros: Thanks, that's exactly what i'm looking for
[22:04:04] Gnut: Probably more of a philosophical question, but where should I put my object instantiation methods?
[22:04:46] Gnut: e.g. I have a class called `Guest` and i have a method that creates Guest objects based off a puppet query
[22:06:06] Gnut: It doesn't feel like it belongs in the class since how I create those guests shouldn't be tied to the behavior of the Guests
[22:12:01] Gnut: apeiros: Thanks, that's how i figured i'd do it. Just didn't know if i should add another module to the Guest class.

2018-02-20

[00:20:58] Gnut: Ping timeout: 268 seconds
[08:53:14] Gnut: has joined #ruby
[08:58:09] Gnut: Ping timeout: 248 seconds
[10:05:29] Gnut: has joined #ruby
[11:55:20] Gnut: Ping timeout: 268 seconds
[15:22:29] Gnut: has joined #ruby

2018-02-19

[15:10:36] Gnut: has joined #ruby
[16:35:23] Gnut: Ping timeout: 268 seconds
[22:01:17] Gnut: has joined #ruby

2018-02-04

[01:26:18] Gnut: Ping timeout: 240 seconds
[03:20:56] Gnut: has joined #ruby
[03:20:57] Gnut: Remote host closed the connection

2018-02-03

[03:32:09] Gnut: Ping timeout: 264 seconds
[11:38:48] Gnut: has joined #ruby
[12:00:48] Gnut: Ping timeout: 240 seconds
[22:59:52] Gnut: has joined #ruby

2018-02-02

[20:24:41] Gnut: has joined #ruby
[20:26:32] Gnut: If I have a variable `endswith = 'domain.com'`, how would i check if a string adheres to `[0-9][0-9]#{endswith}`
[20:27:37] Gnut: So `05domain.com == true` and `2domain.com == false`
[20:35:36] Gnut: apeiros: well, okay then
[20:36:27] Gnut: Sorry, just figured it'd be more regexy
[20:36:31] Gnut: But that works for me

2016-02-29

[09:04:26] Gnut: has joined #ruby
[10:08:45] Gnut: Ping timeout: 268 seconds
[11:35:41] Gnut: has joined #ruby
[15:39:39] Gnut: Ping timeout: 246 seconds
[16:25:53] Gnut: has joined #ruby
[18:36:36] Gnut: Ping timeout: 276 seconds
[18:43:27] Gnut: has joined #ruby
[19:41:59] Gnut: Quit: Lost terminal

2016-02-28

[10:54:57] Gnut: has joined #ruby
[11:09:15] Gnut: Ping timeout: 244 seconds

2016-02-27

[00:26:37] Gnut: Ping timeout: 252 seconds
[11:50:38] Gnut: has joined #ruby
[13:17:55] Gnut: Ping timeout: 244 seconds

2016-02-26

[00:19:34] Gnut: Ping timeout: 240 seconds
[09:56:05] Gnut: has joined #ruby
[10:04:19] Gnut: Ping timeout: 248 seconds
[16:23:14] Gnut: has joined #ruby
[18:14:04] Gnut: Ping timeout: 244 seconds
[19:47:55] Gnut: has joined #ruby
[21:06:07] Gnut: Ping timeout: 255 seconds
[21:08:43] Gnut: has joined #ruby
[22:05:30] Gnut: Ping timeout: 244 seconds
[22:13:29] Gnut: has joined #ruby

2016-02-25

[00:55:33] Gnut: Ping timeout: 240 seconds
[01:32:41] Gnut: has joined #ruby
[09:51:45] Gnut: Ping timeout: 276 seconds
[16:08:29] Gnut: has joined #ruby
[18:09:39] Gnut: Ping timeout: 276 seconds
[18:11:44] Gnut: has joined #ruby
[19:16:43] Gnut: Ping timeout: 250 seconds
[22:06:31] Gnut: has joined #ruby

2016-02-24

[02:52:57] Gnut: Ping timeout: 244 seconds
[09:04:25] Gnut: has joined #ruby
[09:22:29] Gnut: Ping timeout: 240 seconds
[16:23:22] Gnut: has joined #ruby

2016-02-23

[01:28:59] Gnut: Ping timeout: 240 seconds
[09:20:17] Gnut: has joined #ruby
[09:30:04] Gnut: Ping timeout: 240 seconds
[10:27:26] Gnut: has joined #ruby
[15:07:50] Gnut: Read error: Connection reset by peer
[16:06:35] Gnut: has joined #ruby
[18:36:51] Gnut: Ping timeout: 248 seconds
[18:39:22] Gnut: has joined #ruby
[19:16:44] Gnut: Ping timeout: 244 seconds

2016-02-22

[05:14:25] Gnut: has joined #ruby
[07:40:51] Gnut: Ping timeout: 248 seconds
[16:11:21] Gnut: has joined #ruby
[16:26:29] Gnut: Ping timeout: 240 seconds
[16:33:28] Gnut: has joined #ruby
[17:24:19] Gnut: Ping timeout: 248 seconds
[17:36:04] Gnut: has joined #ruby
[17:40:55] Gnut: Ping timeout: 255 seconds
[17:41:05] Gnut: has joined #ruby
[17:46:04] Gnut: Ping timeout: 252 seconds
[17:46:23] Gnut: has joined #ruby
[19:27:04] Gnut: Ping timeout: 244 seconds
[19:35:38] Gnut: has joined #ruby
[21:00:22] Gnut: Read error: Connection reset by peer
[21:03:24] Gnut: has joined #ruby
[21:08:22] Gnut: Ping timeout: 255 seconds
[23:26:16] Gnut: has joined #ruby

2016-02-21

[01:20:41] Gnut: has joined #ruby
[09:00:06] Gnut: Ping timeout: 276 seconds

2016-02-20

[00:29:59] Gnut: Ping timeout: 240 seconds
[12:03:26] Gnut: has joined #ruby
[12:20:33] Gnut: Ping timeout: 240 seconds

2016-02-19

[18:36:55] Gnut: has joined #ruby
[19:06:32] Gnut: Ping timeout: 244 seconds
[19:10:52] Gnut: has joined #ruby
[21:08:49] Gnut: Ping timeout: 255 seconds
[22:14:34] Gnut: has joined #ruby
[23:02:13] Gnut: Ping timeout: 255 seconds
[23:04:56] Gnut: has joined #ruby

2016-02-16

[00:32:14] Gnut: Ping timeout: 256 seconds
[09:33:29] Gnut: has joined #ruby
[09:54:15] Gnut: Ping timeout: 240 seconds

2016-02-15

[00:07:00] Gnut: Ping timeout: 248 seconds
[01:03:30] Gnut: has joined #ruby
[01:53:47] Gnut: Ping timeout: 276 seconds
[09:41:39] Gnut: has joined #ruby
[09:59:36] Gnut: Ping timeout: 252 seconds
[16:11:53] Gnut: has joined #ruby

2016-02-14

[07:59:29] Gnut: has joined #ruby
[08:24:36] Gnut: Ping timeout: 248 seconds
[19:30:12] Gnut: has joined #ruby
[20:56:26] Gnut: Ping timeout: 256 seconds
[21:22:20] Gnut: has joined #ruby
[22:01:35] Gnut: Ping timeout: 240 seconds
[23:57:45] Gnut: has joined #ruby

2016-02-13

[00:11:35] Gnut: Ping timeout: 264 seconds

2016-02-12

[00:10:16] Gnut: Ping timeout: 250 seconds
[09:15:20] Gnut: has joined #ruby
[10:45:47] Gnut: Ping timeout: 264 seconds
[16:28:42] Gnut: has joined #ruby

2016-02-10

[00:25:35] Gnut: Ping timeout: 260 seconds
[02:06:04] Gnut: has joined #ruby
[03:25:56] Gnut: Ping timeout: 240 seconds
[08:28:00] Gnut: has joined #ruby
[10:36:20] Gnut: Ping timeout: 260 seconds
[16:34:22] Gnut: has joined #ruby
[17:12:47] Gnut: Ping timeout: 264 seconds

2016-02-09

[00:36:56] Gnut: Ping timeout: 240 seconds
[09:43:05] Gnut: has joined #ruby
[11:01:24] Gnut: Ping timeout: 248 seconds
[16:10:42] Gnut: has joined #ruby

2016-02-08

[15:12:32] Gnut: has joined #ruby
[15:24:20] Gnut: Ping timeout: 248 seconds
[19:06:52] Gnut: has joined #ruby

2016-02-07

[01:58:20] Gnut: Ping timeout: 250 seconds
[02:55:34] Gnut: has joined #ruby
[12:28:26] Gnut: Ping timeout: 240 seconds

2016-02-06

[00:49:02] Gnut: Ping timeout: 252 seconds
[10:12:54] Gnut: has joined #ruby
[14:08:42] Gnut: Ping timeout: 245 seconds
[22:06:44] Gnut: has joined #ruby

2016-02-05

[00:36:15] Gnut: Ping timeout: 240 seconds
[06:03:25] Gnut: has joined #ruby
[08:57:00] Gnut: Ping timeout: 250 seconds
[16:15:45] Gnut: has joined #ruby
[16:53:32] Gnut: Is there a more succinct way to do this? https://gist.github.com/Ghjnut/750db24a24c5cf6118ff
[17:01:01] Gnut: Ox0dea: Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator
[17:01:07] Gnut: That's rubocop's response
[17:01:29] Gnut: And i don't really follow how it's expecting me to clean that up
[17:02:38] Gnut: Ox0dea: Correct, i'm just wondering is there's a different way to write it so rubocop won't complain. Sorry, my ruby-fu is weak
[17:03:00] Gnut: Ha, tried to wing that

2016-02-04

[17:33:37] Gnut: has joined #ruby
[17:39:21] Gnut: Is there a good method for converting an entire hash (with some nested arrays) to symbol keys?
[17:56:51] Gnut: shevy/volty: https://gist.github.com/Ghjnut/1ad1f22d3d7ce4d6ffd7
[20:47:47] Gnut: *.net *.split
[20:49:41] Gnut: has joined #ruby
[20:50:55] Gnut: Ping timeout: 250 seconds
[20:52:01] Gnut: has joined #ruby

2016-01-12

[00:16:20] Gnut: Ping timeout: 276 seconds
[16:14:40] Gnut: has joined #ruby
[16:20:55] Gnut: Quit: Lost terminal

2016-01-11

[07:29:21] Gnut: has joined #ruby
[09:26:34] Gnut: Ping timeout: 272 seconds
[16:31:09] Gnut: has joined #ruby
[19:03:48] Gnut: Ping timeout: 264 seconds
[19:06:03] Gnut: has joined #ruby
[20:08:15] Gnut: Ping timeout: 240 seconds
[20:09:21] Gnut: has joined #ruby

2016-01-10

[05:00:56] Gnut: has joined #ruby
[07:48:12] Gnut: Ping timeout: 272 seconds

2016-01-09

[00:43:32] Gnut: Ping timeout: 246 seconds
[09:55:52] Gnut: has joined #ruby
[13:41:24] Gnut: Ping timeout: 255 seconds

2016-01-08

[23:10:04] Gnut: has joined #ruby
[23:11:56] Gnut: Client Quit
[23:13:29] Gnut: has joined #ruby
[23:14:29] Gnut: More of a subjective question, but where do I go about handling data transformations when writing a gem?

2015-12-29

[00:44:20] Gnut: Ping timeout: 245 seconds
[09:46:15] Gnut: has joined #ruby
[09:52:34] Gnut: Read error: Connection reset by peer

2015-12-28

[08:07:48] Gnut: has joined #ruby
[09:35:46] Gnut: Ping timeout: 240 seconds
[10:33:10] Gnut: has joined #ruby
[15:49:08] Gnut: Ping timeout: 246 seconds
[16:20:15] Gnut: has joined #ruby