Polysics

Activity Graph

Page 1 of 7 | Next »

2019-07-10

[04:21:08] Polysics: has joined #ruby
[04:21:33] Polysics: I have an amnesia moment. Is there a way to define an array of constants on a class?
[04:22:11] Polysics: I am dealing with an API that has lengthy event names, and they are separated on a few groups
[04:22:35] Polysics: so I'd like to do something like CALL_STATE::RINGING to reference them
[04:23:01] Polysics: I guess I can just name them TYPE_SUBTYPE, but it was more of a generic question I came up with
[04:24:33] Polysics: because the actual name is something like 'event.calling.call.call_state.ringing' because I assume it is mapped from some undelying relationship
[04:24:39] Polysics: how would that look, please?
[04:25:27] Polysics: no, I can make do with two levels
[04:25:47] Polysics: let's say "call_state.ringing" is what matters
[04:26:08] Polysics: there sill be "call_connect.started", "call_play.finished" etc
[04:26:31] Polysics: and how would the constants be arranged?
[04:27:19] Polysics: oh, so there is no way to do a hash of constants, gotcha
[04:27:34] Polysics: I was almost sure I had seen it somewhere but I was probably seein things, I guess
[04:30:49] Polysics: baweaver: you mean something like this?
[04:31:06] Polysics: RINGING = 'long_event_name'
[04:31:06] Polysics: module CallState
[04:31:08] Polysics: module CallPlay
[04:31:10] Polysics: STARTED = 'some more long name'
[04:31:14] Polysics: oops wtf, sorry
[04:31:24] Polysics: yes, my bad
[04:31:33] Polysics: wrong focused window.
[04:32:28] Polysics: yes, thinking about it, I can't think of a syntax that would allow for an actual hash of constants to be defined
[04:33:18] Polysics: is a module name in all caps bad-looking?
[04:33:29] Polysics: so that it is clear it is only a constant holder
[04:36:01] Polysics: you can ofc have an hash as a constant but that has a confusing syntax to use
[04:36:05] Polysics: MyModel::SOME_ATTR_OPTIONS[:first_option]
[04:46:01] Polysics: you should probably be shelling out to pgp/pgp2
[04:46:35] Polysics: though it looks like IOStreams has some PGP stuff in it
[04:47:03] Polysics: https://github.com/rocketjob/iostreams
[04:47:03] Polysics: apparently you are right
[04:47:27] Polysics: you can always write it
[04:48:31] Polysics: https://github.com/ueno/ruby-gpgme
[04:49:39] Polysics: don't know, go check out the source code - I looked for 10 seconds and it looks like it's an actual implementation
[04:49:46] Polysics: (referring to gpgme)
[04:49:53] Polysics: gpgme has a "verify" method too

2018-02-07

[11:19:41] Polysics: has joined #RubyOnRails
[11:20:17] Polysics: so, if an application receives a POST with type application/json, should that get into params automatically?
[11:26:14] Polysics: the guide seems to imply that but I have a controller that does not
[11:27:40] Polysics: can it be turned off somehow? is it related to strong params? or should "logger.debug params.inspect" just show them?
[11:27:50] Polysics: I have never seen this behavior before :)
[11:51:47] Polysics: Remote host closed the connection
[12:21:26] Polysics: has joined #RubyOnRails
[13:08:31] Polysics: cabotto: thank you, this is actually not parsing the entire thing :)
[14:02:16] Polysics: Remote host closed the connection

2017-08-10

[20:39:41] Polysics: has joined #ruby
[21:12:55] Polysics: Remote host closed the connection
[21:13:21] Polysics: has joined #ruby
[21:22:00] Polysics: has joined #ruby
[21:36:13] Polysics: Ping timeout: 255 seconds

2017-08-09

[14:45:40] Polysics: has joined #ruby
[17:37:05] Polysics: Ping timeout: 248 seconds
[17:39:04] Polysics: has joined #ruby
[17:43:06] Polysics: Ping timeout: 240 seconds
[17:53:42] Polysics: has joined #ruby
[17:56:44] Polysics: Client Quit
[18:32:25] Polysics: has joined #ruby
[18:33:00] Polysics: Client Quit

2017-08-08

[20:56:22] Polysics: has joined #ruby
[21:18:27] Polysics: Read error: Connection reset by peer

2017-08-01

[15:44:10] Polysics: has joined #ruby
[19:06:30] Polysics: Remote host closed the connection
[19:06:56] Polysics: has joined #ruby
[19:10:32] Polysics: Client Quit

2017-07-24

[13:59:29] Polysics: has joined #ruby
[17:14:25] Polysics: Remote host closed the connection
[17:14:40] Polysics: has joined #ruby
[17:14:41] Polysics: Remote host closed the connection
[18:00:59] Polysics: has joined #ruby
[18:36:06] Polysics: Remote host closed the connection
[18:36:32] Polysics: has joined #ruby
[18:41:30] Polysics: Ping timeout: 240 seconds

2017-07-10

[05:29:43] Polysics: has joined #ruby
[08:05:36] Polysics: Remote host closed the connection
[08:06:02] Polysics: has joined #ruby

2017-07-09

[08:14:56] Polysics: has joined #ruby
[09:29:31] Polysics: Remote host closed the connection
[09:29:57] Polysics: has joined #ruby
[09:34:45] Polysics: Ping timeout: 268 seconds
[13:28:36] Polysics: has joined #ruby
[15:14:30] Polysics: Remote host closed the connection
[15:15:02] Polysics: has joined #ruby
[15:19:05] Polysics: Ping timeout: 240 seconds
[15:54:32] Polysics: has joined #ruby
[15:55:18] Polysics: Remote host closed the connection
[15:55:44] Polysics: has joined #ruby
[21:04:11] Polysics: Ping timeout: 255 seconds

2017-07-07

[08:25:27] Polysics: Remote host closed the connection
[08:25:53] Polysics: has joined #ruby
[08:29:57] Polysics: Ping timeout: 240 seconds
[09:59:08] Polysics: has joined #ruby
[15:08:17] Polysics: Ping timeout: 248 seconds

2017-07-06

[06:20:05] Polysics: has joined #ruby
[20:51:24] Polysics: has joined #ruby

2017-07-05

[18:42:24] Polysics: has joined #ruby
[20:06:54] Polysics: Remote host closed the connection
[20:07:20] Polysics: has joined #ruby
[20:22:44] Polysics: Ping timeout: 260 seconds

2017-06-27

[09:54:32] Polysics: has joined #ruby

2017-06-23

[08:30:47] Polysics: has joined #ruby
[13:22:22] Polysics: Remote host closed the connection
[13:22:48] Polysics: has joined #ruby

2017-06-16

[06:21:14] Polysics: has joined #ruby
[06:25:55] Polysics: Ping timeout: 258 seconds
[14:20:59] Polysics: has joined #ruby
[15:36:08] Polysics: Ping timeout: 240 seconds

2017-06-15

[09:40:55] Polysics: has joined #ruby
[12:18:42] Polysics: Ping timeout: 260 seconds

2017-06-13

[00:52:49] Polysics: has joined #ruby
[00:57:24] Polysics: Ping timeout: 255 seconds
[01:53:50] Polysics: has joined #ruby
[01:58:10] Polysics: Ping timeout: 240 seconds
[02:54:46] Polysics: has joined #ruby
[02:58:53] Polysics: Ping timeout: 246 seconds
[03:56:00] Polysics: has joined #ruby
[04:00:50] Polysics: Ping timeout: 268 seconds
[04:56:51] Polysics: has joined #ruby
[05:01:16] Polysics: Ping timeout: 255 seconds
[05:58:05] Polysics: has joined #ruby
[06:02:31] Polysics: Ping timeout: 246 seconds
[06:28:25] Polysics: has joined #ruby
[06:39:57] Polysics: Remote host closed the connection
[06:40:17] Polysics: has joined #ruby
[09:00:42] Polysics: Ping timeout: 255 seconds
[09:14:58] Polysics: has joined #ruby
[09:53:18] Polysics: Remote host closed the connection
[09:53:44] Polysics: has joined #ruby
[11:40:50] Polysics: Ping timeout: 240 seconds
[12:06:57] Polysics: has joined #ruby
[12:11:10] Polysics: Ping timeout: 240 seconds
[12:15:02] Polysics: has joined #ruby
[12:21:57] Polysics: Remote host closed the connection
[12:22:26] Polysics: has joined #ruby
[14:34:09] Polysics: Ping timeout: 268 seconds
[15:37:57] Polysics: has joined #ruby
[16:14:47] Polysics: Remote host closed the connection
[16:15:25] Polysics: has joined #ruby

2017-06-12

[18:32:01] Polysics: has joined #ruby
[18:39:30] Polysics: Remote host closed the connection
[18:39:56] Polysics: has joined #ruby
[19:04:12] Polysics: Ping timeout: 245 seconds
[19:49:57] Polysics: has joined #ruby
[19:50:03] Polysics: has left #ruby: ()
[22:50:24] Polysics: has joined #ruby
[22:54:35] Polysics: Ping timeout: 246 seconds
[23:51:47] Polysics: has joined #ruby
[23:56:05] Polysics: Ping timeout: 240 seconds

2017-06-07

[20:16:50] Polysics: has joined #ruby

2017-06-05

[04:06:24] Polysics: Ping timeout: 255 seconds
[04:56:13] Polysics: has joined #ruby
[06:27:51] Polysics: Remote host closed the connection
[06:28:18] Polysics: has joined #ruby

2017-06-03

[08:02:41] Polysics: has joined #ruby
[08:14:30] Polysics: Ping timeout: 268 seconds
[09:02:34] Polysics: has joined #ruby
[09:56:51] Polysics: Ping timeout: 260 seconds
[10:03:13] Polysics: has joined #ruby
[12:33:39] Polysics: Remote host closed the connection
[12:34:05] Polysics: has joined #ruby
[18:25:27] Polysics: Ping timeout: 255 seconds
[20:07:02] Polysics: has joined #ruby

2017-06-02

[09:18:32] Polysics: Read error: Connection reset by peer
[09:18:52] Polysics: has joined #ruby
[09:23:05] Polysics: Ping timeout: 240 seconds

2017-06-01

[00:35:03] Polysics: has joined #ruby
[00:39:52] Polysics: Ping timeout: 260 seconds
[03:38:22] Polysics: has joined #ruby
[03:42:47] Polysics: Ping timeout: 260 seconds
[04:39:20] Polysics: has joined #ruby
[04:43:35] Polysics: Ping timeout: 240 seconds
[05:21:00] Polysics: has joined #ruby
[05:46:06] Polysics: Remote host closed the connection
[06:01:37] Polysics: has joined #ruby
[09:34:04] Polysics: ok, I failed.
[09:34:19] Polysics: ljarvis: there's a command to see all current kernel versions :)
[09:34:44] Polysics: wrooooong channel

2017-05-31

[15:48:27] Polysics: has joined #ruby
[16:18:18] Polysics: Remote host closed the connection
[16:40:52] Polysics: has joined #ruby
[16:42:45] Polysics: Read error: Connection reset by peer
[19:14:34] Polysics: has joined #ruby
[20:00:52] Polysics: Remote host closed the connection
[20:01:26] Polysics: has joined #ruby
[20:05:54] Polysics: Ping timeout: 240 seconds
[21:32:11] Polysics: has joined #ruby
[21:36:36] Polysics: Ping timeout: 255 seconds
[23:33:42] Polysics: has joined #ruby
[23:38:38] Polysics: Ping timeout: 260 seconds

2017-05-30

[08:21:55] Polysics: has joined #ruby

2017-05-26

[11:21:06] Polysics: has joined #ruby
[14:11:32] Polysics: Remote host closed the connection
[14:12:08] Polysics: has joined #ruby
[14:16:29] Polysics: Ping timeout: 240 seconds
[14:35:26] Polysics: has joined #ruby

2017-05-09

[00:14:41] Polysics: Remote host closed the connection
[00:15:28] Polysics: has joined #ruby
[00:20:31] Polysics: Ping timeout: 268 seconds
[04:33:29] Polysics: has joined #ruby
[04:34:39] Polysics: Client Quit

2017-05-08

[23:02:04] Polysics: has joined #ruby
[23:58:11] Polysics: has joined #ruby

2017-05-04

[00:16:59] Polysics: Ping timeout: 260 seconds
[02:48:42] Polysics: has joined #ruby
[06:49:34] Polysics: has joined #ruby
[13:06:46] Polysics: Read error: Connection reset by peer
[16:50:34] Polysics: has joined #ruby
[17:54:50] Polysics: +1 for Celluloid, it's great

2017-05-03

[14:34:58] Polysics: Remote host closed the connection
[14:35:32] Polysics: has joined #ruby
[14:39:39] Polysics: Ping timeout: 240 seconds
[15:03:55] Polysics: has joined #ruby
[15:29:25] Polysics: Remote host closed the connection
[15:29:53] Polysics: has joined #ruby
[15:34:25] Polysics: Ping timeout: 255 seconds
[16:39:19] Polysics: has joined #ruby

2017-05-02

[12:31:52] Polysics: has joined #ruby

2017-04-22

[16:03:19] Polysics: has joined #ruby
[16:34:21] Polysics: Read error: Connection reset by peer

2017-04-21

[19:49:44] Polysics: has joined #ruby
[20:04:12] Polysics: Remote host closed the connection
[21:02:31] Polysics: has joined #ruby
[21:03:31] Polysics: Client Quit
[21:03:49] Polysics: has joined #ruby
[21:24:10] Polysics: Remote host closed the connection

2017-04-19

[15:57:52] Polysics: Remote host closed the connection
[16:29:26] Polysics: has joined #ruby
[16:31:21] Polysics: Client Quit