« Back to channel list

#ruby - 23 December 2018

« Back 1 day Forward 1 day »
[00:00:58] elphe: has joined #ruby
[00:25:18] elphe: has joined #ruby
[00:31:31] Arkantos: has joined #ruby
[00:32:11] Puffball: has joined #ruby
[00:40:57] tdy: has joined #ruby
[00:49:03] duckpuppy: has joined #ruby
[00:54:12] VladGh: has joined #ruby
[01:10:36] hutch: has joined #ruby
[01:19:48] zolvaring: has joined #ruby
[01:20:53] KeyJoo: has joined #ruby
[01:37:24] JoshS: has joined #ruby
[01:44:59] Iambchop: isene: I finally got around to launching an 18.10 VM and reproduced with the stock ruby package; my niece needs to work on a project, so I still won't be able to dig into it yet.
[01:46:07] Nicmavr: has joined #ruby
[01:46:27] irdr: has joined #ruby
[01:48:33] jottr: has joined #ruby
[01:57:55] hutch: has joined #ruby
[02:06:43] dbz: has joined #ruby
[02:09:42] KeyJoo: has joined #ruby
[02:17:55] tdy: has joined #ruby
[02:23:30] jcalla: has joined #ruby
[02:25:04] jacksoow: has joined #ruby
[02:31:06] cschneid: has joined #ruby
[02:39:07] tiff: has joined #ruby
[02:39:44] eb0t: has joined #ruby
[02:47:01] tiff: has joined #ruby
[02:48:24] Azure: has joined #ruby
[02:48:55] hutch: has joined #ruby
[02:55:49] maryo: has joined #ruby
[03:02:58] hutch: has joined #ruby
[03:03:05] cnsvc: has joined #ruby
[03:12:45] elphe: has joined #ruby
[03:22:36] elphe: has joined #ruby
[03:23:07] sarink: has joined #ruby
[03:26:23] cnsvc: has joined #ruby
[03:26:57] tiff: has joined #ruby
[03:28:32] cschneid: has joined #ruby
[03:33:12] dbz: has joined #ruby
[03:43:01] al2o3-cr: isene: with a bit of research, the problem seems as though google is enforcing SNI. in "/usr/lib/ruby/2.5.0/net/imap.rb" i added `@sock.hotsname = @host' and everything works fine and dandy.
[03:43:24] tiff: has joined #ruby
[03:44:58] al2o3-cr: @ line 1530 in method start_tls_session
[03:45:53] dbz: has joined #ruby
[03:47:34] tiff: has joined #ruby
[03:47:57] Tempesta: has joined #ruby
[03:55:48] tdy: has joined #ruby
[03:57:56] elphe: has joined #ruby
[03:58:59] tiff: has joined #ruby
[04:09:10] braincrash: has joined #ruby
[04:12:51] MasterAsia: has joined #ruby
[04:28:11] cschneid: has joined #ruby
[04:36:55] orbyt_: has joined #ruby
[04:38:13] al2o3-cr: isene: https://gist.github.com/gr33n7007h/4df6066af03398d6edc887b7e6e784fe
[04:51:40] Cyrus: has joined #ruby
[04:52:02] Iambchop: tested gmail imap @sock.hostname in my VM successfully; tried a few times to pass an openssl context callback through the IMAP.new call, but failed (something like "Net::IMAP.new('imap.gmail.com', port: 993, ssl: {servername_cb: lambda{|sock, name| sock.hostname=name}})"); way past bed time, goodnight :-)
[04:59:37] al2o3-cr: ah, didn't know you could do that. i'll take a look see what i can come up with ;)
[04:59:54] al2o3-cr: and goodnight
[05:01:09] al2o3-cr: btw servername_cb is server side.
[05:06:11] _whitelogger: has joined #ruby
[05:13:46] hutch: has joined #ruby
[05:19:54] elphe: has joined #ruby
[05:33:18] dbz: has joined #ruby
[05:34:09] cschneid: has joined #ruby
[05:39:23] idiocrash: has joined #ruby
[05:39:59] s3nd1v0g1us: has joined #ruby
[05:40:29] tdy: has joined #ruby
[05:46:00] Azure: has joined #ruby
[05:49:49] sonofentropy: has joined #ruby
[05:53:57] dbz: has joined #ruby
[06:15:54] sarink: has joined #ruby
[06:29:36] elphe: has joined #ruby
[06:37:34] tiff: has joined #ruby
[06:40:31] endemic: has joined #ruby
[06:42:12] sarink: has joined #ruby
[06:44:43] cschneid: has joined #ruby
[06:45:43] za1b1tsu: has joined #ruby
[06:47:34] roshanavand: has joined #ruby
[06:50:45] d10n-work: has joined #ruby
[06:56:52] s3nd1v0g1us: has joined #ruby
[06:57:10] _whitelogger: has joined #ruby
[06:59:40] sarink: has joined #ruby
[07:06:20] venmx: has joined #ruby
[07:15:13] _whitelogger: has joined #ruby
[07:18:57] nocoda: has joined #ruby
[07:31:35] roshanavand: has joined #ruby
[07:35:30] elphe: has joined #ruby
[07:43:09] sarink: has joined #ruby
[07:46:55] reber: has joined #ruby
[07:55:09] cschneid: has joined #ruby
[08:00:46] MasterAsia: has joined #ruby
[08:07:12] elphe: has joined #ruby
[08:09:50] sarink: has joined #ruby
[08:15:48] kent\n: has joined #ruby
[08:16:14] cnsvc: has joined #ruby
[08:20:22] kapil____: has joined #ruby
[08:27:49] venmx: has joined #ruby
[08:35:44] cats: has joined #ruby
[08:50:54] rippa: has joined #ruby
[08:54:04] prestorium: has joined #ruby
[08:57:14] sarink: has joined #ruby
[08:59:04] sarink: has joined #ruby
[09:20:05] sarink: has joined #ruby
[09:25:35] cschneid: has joined #ruby
[09:26:55] tdy1: has joined #ruby
[09:30:36] clemens3_: has joined #ruby
[09:54:16] phaul: has joined #ruby
[10:01:06] dhollin3: has joined #ruby
[10:03:48] JoshS: has joined #ruby
[10:12:43] cnsvc: has joined #ruby
[10:25:11] jshjsh: has joined #ruby
[10:45:26] sticaz: has joined #ruby
[10:49:48] BaroMeter: has joined #ruby
[10:55:30] cschneid: has joined #ruby
[10:57:20] reber: has joined #ruby
[11:06:27] ElFerna: has joined #ruby
[11:19:00] m0w: has joined #ruby
[11:22:28] za1b1tsu: has joined #ruby
[11:29:45] thunderbirdtr: has joined #ruby
[11:49:10] AJA4350: has joined #ruby
[11:51:49] clemens3_: has joined #ruby
[11:56:48] fredmorcos: has joined #ruby
[12:20:34] Eldritch: has joined #ruby
[12:25:24] cschneid: has joined #ruby
[12:25:52] Nicmavr: has joined #ruby
[12:35:52] maryo: has joined #ruby
[12:40:04] reber__: has joined #ruby
[12:42:08] mikecmpbll: has joined #ruby
[12:53:41] maryo: has joined #ruby
[13:03:21] Iambchop: yeah; I think I tried everything in the docs that was named _cb or _callback; I failed at all :)
[13:05:14] cnsvc: has joined #ruby
[13:43:31] szulak_: has joined #ruby
[13:51:51] perique: has joined #ruby
[13:55:25] cschneid: has joined #ruby
[14:00:57] za1b1tsu: has joined #ruby
[14:13:36] sonofentropy: has joined #ruby
[14:18:10] Arkantos: has joined #ruby
[14:35:56] MasterAsia: has joined #ruby
[14:37:42] Arkantos: has joined #ruby
[14:39:47] dbz: has joined #ruby
[15:16:27] Menteb: has joined #ruby
[15:16:31] akaiiro: has joined #ruby
[15:25:00] cschneid: has joined #ruby
[15:31:57] armyriad: has joined #ruby
[15:35:27] cnsvc: has joined #ruby
[15:36:22] sonofentropy: has joined #ruby
[15:48:39] Iambchop: aha! "Cannot confirm that this affects bionic. This may be due to openssl 1.1.0 (in bionic) sending a default SNI when none is provided, whereas 1.1.1 (in cosmic) sends nothing." https://bugs.launchpad.net/ubuntu/+source/fetchmail/+bug/1798786/comments/9
[16:00:59] reber: has joined #ruby
[16:13:24] segy: has joined #ruby
[16:15:13] aproekos: has joined #ruby
[16:18:52] aproekos: can anyone suggest me a pattern to use for storing global state in a ruby program? I basically have a Struct that needs to be read and written from in many different classes. One option I have done so far is using an attr_accessor on a module that every class refers to. Another option I have been discussing is storing the pieces of the struct in Thread.current. The amount of data that will be stored is less
[16:18:54] aproekos: than 50MB. Can anyone suggest a pattern to use for a globally accessible Struct, or suggest an alternative implementation? Thanks.
[16:21:00] jeffreylevesque: has joined #ruby
[16:21:37] themsay: has joined #ruby
[16:23:19] SantaKline: "globally accessable struct" just sounds like a singleton to me
[16:23:27] SantaKline: not like that's a good idea, but that's what it sounds like :P
[16:24:02] conta: has joined #ruby
[16:24:59] havenwood: &ri Singleton
[16:25:00] rubydoc: https://ruby-doc.org/stdlib-2.5.3/libdoc/singleton/rdoc/Singleton.html
[16:28:12] nchambers: has joined #ruby
[16:31:56] aproekos: I suppose it is a Singleton, but it sounds like I need to refactor away from that
[16:32:07] venmx: has joined #ruby
[16:32:30] jeffreylevesque: has joined #ruby
[16:32:32] aproekos: So teh alternative would be basically injecting the struct in every class that reads/modifies it, correct?
[16:33:33] houhoulis: has joined #ruby
[16:48:37] roshanavand: has joined #ruby
[16:49:47] hutch: has joined #ruby
[16:57:34] cschneid: has joined #ruby
[17:01:45] Rudolph: does anyone know how to get the x,y point of an OpenSSL::PKey::EC? I'm looking online and it looks like it should be something like key.to_bn and key.public_key.to_bn, but im not sure
[17:02:14] _axx: has joined #ruby
[17:06:19] roshanavand: has joined #ruby
[17:13:16] sonofentropy: has joined #ruby
[17:18:22] kapil____: has joined #ruby
[17:21:43] hutch: has joined #ruby
[17:29:58] jmcgnh: has joined #ruby
[17:34:56] hutch: has joined #ruby
[17:41:38] marvin2: has joined #ruby
[17:42:58] Menteb: has joined #ruby
[17:44:39] themsay: has joined #ruby
[17:50:00] themsay: has joined #ruby
[17:51:58] conta: has joined #ruby
[17:56:10] SantaKline: aproekos: Basically.
[17:59:51] yxhuvud: has joined #ruby
[18:00:52] MasterAsia: has joined #ruby
[18:05:16] cnsvc: has joined #ruby
[18:06:58] GodFather: has joined #ruby
[18:11:48] GodFather: has joined #ruby
[18:16:24] GodFather: has joined #ruby
[18:19:49] GodFather: has joined #ruby
[18:22:48] lord4163: has joined #ruby
[18:23:02] cd: has joined #ruby
[18:25:31] desperek: has joined #ruby
[18:26:43] lord4163: What happened to tryruby.org? :(
[18:29:49] al2o3-cr: has joined #ruby
[18:34:36] agent_white: has joined #ruby
[18:35:53] tdy1: has joined #ruby
[18:36:27] marvin2: has joined #ruby
[18:37:55] havenwood: lord4163: https://ruby.github.io/TryRuby/
[18:38:25] lord4163: havenwood: Looks boring
[18:38:44] havenwood: lord4163: It's open source, so that's your fault for not making it pretty.
[18:39:45] havenwood: lord4163: Most of us are programmers, not designers.
[18:39:59] orbyt_: has joined #ruby
[18:40:29] lord4163: havenwood: The old tryruby.org was very inviting :)
[18:42:15] havenwood: lord4163: The EnvyLabs folk paid designers.
[18:42:48] havenwood: Then I guess they stopped paying them. :P
[18:43:38] houhoulis: has joined #ruby
[18:51:22] linuxdaemon: has joined #ruby
[19:01:37] Arkantos: has joined #ruby
[19:03:17] BTRE: has joined #ruby
[19:04:48] phaul: has joined #ruby
[19:06:56] sonofentropy: has joined #ruby
[19:07:53] elphe: has joined #ruby
[19:41:16] tdy: has joined #ruby
[19:42:45] themsay: has joined #ruby
[19:51:32] cnsvc: has joined #ruby
[19:53:52] dviola: has joined #ruby
[20:00:31] themsay: has joined #ruby
[20:02:54] conta: has joined #ruby
[20:13:28] hiroaki: has joined #ruby
[20:18:21] themsay: has joined #ruby
[20:18:40] cschneid: has joined #ruby
[20:28:29] kent\n: has joined #ruby
[20:29:20] Exuma: has joined #ruby
[20:32:29] cnsvc: has joined #ruby
[20:40:26] al2o3-cr: has joined #ruby
[20:43:33] Fusl: has joined #ruby
[20:45:17] themsay: has joined #ruby
[20:46:03] elphe: has joined #ruby
[20:47:19] Iambchop: "SNI has been made mandatory to implement in TLS 1.3 but not mandatory to use. Some sites want to encourage the use of SNI and configure a default certificate that fails WebPKI authentication when the client supports TLS 1.3. This is under the assumption that if a hostname is not sent, then it means that the client does not verify the server certificate (unauthenticated opportunistic TLS). For implementation that actually don't
[20:47:20] Iambchop: send the SNI extension, but do verify the server certificate this can cause connection failures." https://wiki.openssl.org/index.php/TLS1.3#Server_Name_Indication
[20:48:33] al2o3-cr: Iambchop: that's what i was reading last night.
[20:48:50] Iambchop: isene: Net::IMAP.new "imap.gmail.com", port: 993, ssl: {ssl_version: :TLSv1_2, verify_hostname: false}}
[20:49:25] Iambchop: ^ fallback to 1.2 seems to work here
[20:50:01] themsay: has joined #ruby
[20:54:27] agent_white: has joined #ruby
[20:55:23] al2o3-cr: I can certify it works here too.
[21:02:37] lambarena: has joined #ruby
[21:06:38] orbyt_: has joined #ruby
[21:16:28] cnsvc: has joined #ruby
[21:22:30] cnsvc: has joined #ruby
[21:23:19] zapata: has joined #ruby
[21:29:09] cschneid: has joined #ruby
[21:34:46] tdy: has joined #ruby
[21:39:52] darix: has joined #ruby
[21:46:07] donofrio: has joined #ruby
[22:00:38] cnsvc: has joined #ruby
[22:06:43] ogres: has joined #ruby
[22:06:49] nowhere_man: has joined #ruby
[22:09:12] dedRabbit: has joined #ruby
[22:18:13] hutch: has joined #ruby
[22:19:39] dedRabbit: Is it just me or do others picture Bill Murray in Cadyshack when they hear the word "lambda?"
[22:28:53] donofrio: has joined #ruby
[22:37:33] donofrio: has joined #ruby
[22:51:25] Exuma: has joined #ruby
[22:59:06] ElFerna: has joined #ruby
[23:04:01] tiff: has joined #ruby
[23:06:02] Nicmavr: has joined #ruby
[23:06:08] JoshS: has joined #ruby
[23:06:44] cnsvc: has joined #ruby
[23:09:05] Exuma: has joined #ruby
[23:11:37] Exuma: has joined #ruby
[23:12:51] Exuma_: has joined #ruby
[23:15:37] donofrio: has joined #ruby
[23:29:10] Arkantos: has joined #ruby
[23:34:48] Exuma_: has joined #ruby
[23:45:51] elphe: has joined #ruby
[23:47:33] sticaz: has joined #ruby
[23:58:17] cschneid: has joined #ruby