« Back to channel list

#ruby - 24 July 2017

« Back 1 day Forward 1 day »
[00:05:58] mostlybadfly: has joined #ruby
[00:13:06] gusrub: has joined #ruby
[00:19:29] paradisaeidae: has joined #ruby
[00:19:32] paradisaeidae_: has joined #ruby
[00:21:48] ramfjord: has joined #ruby
[00:25:39] milardovich: has joined #ruby
[00:33:58] gusrub: has joined #ruby
[00:39:28] im0nde: has joined #ruby
[00:43:25] vinod: has joined #ruby
[00:47:26] im0nde: has joined #ruby
[00:49:44] Inoperable: has joined #ruby
[00:56:25] im0nde: has joined #ruby
[00:57:00] __Yiota: has joined #ruby
[00:57:41] im0nde: has joined #ruby
[00:58:04] GodFather: has joined #ruby
[00:58:43] im0nde: has joined #ruby
[01:00:33] bronson: has joined #ruby
[01:00:38] HoierM: has joined #ruby
[01:06:47] milardovich: has joined #ruby
[01:14:36] jakew: has joined #ruby
[01:20:05] ar1a: has joined #ruby
[01:25:20] MrSparkle: has joined #ruby
[01:25:21] jjunior_: has joined #ruby
[01:30:24] bonhoeffer: has joined #ruby
[01:30:41] zenspider: foamz: some quick searching on github hints that it is a released gem: https://rubygems.org/gems/bot
[01:32:09] zenspider: https://github.com/mooreniemi/demobot/blob/master/Gemfile#L18
[01:34:30] Emmanuel_Chanel: has joined #ruby
[01:34:48] 3NAAA6UBG: has joined #ruby
[01:36:59] pb122: has joined #ruby
[01:38:17] duderonomy: has joined #ruby
[01:38:42] houhoulis: has joined #ruby
[01:40:47] pb122-two: has joined #ruby
[01:42:39] gizmore: has joined #ruby
[01:44:07] MtnGoat: has joined #ruby
[01:45:47] d^sh: has joined #ruby
[01:48:34] eremita: has joined #ruby
[01:48:36] PatrikasZvaigzde: has joined #ruby
[01:49:00] paradisaeidae: has joined #ruby
[01:49:10] paradisaeidae_: has joined #ruby
[01:49:36] eremita: hello, anyone know about an free tutorial for wxruby?
[01:56:33] nofxx: has joined #ruby
[01:59:03] enterprisey: has joined #ruby
[02:01:20] bronson: has joined #ruby
[02:03:02] shiranuidong: has joined #ruby
[02:03:43] shiranuidong: has joined #ruby
[02:04:07] eremita: has left #ruby: ()
[02:04:18] __Yiota: has joined #ruby
[02:05:19] shiranuidong: has joined #ruby
[02:06:02] ElFerna: has joined #ruby
[02:10:33] nacsurte: has joined #ruby
[02:12:52] __Yiota: has joined #ruby
[02:17:07] Pacra: has joined #ruby
[02:18:29] Jameser: has joined #ruby
[02:19:54] umaaji: has joined #ruby
[02:23:23] gix: has joined #ruby
[02:30:54] AnoHito_: has joined #ruby
[02:36:16] nacsurte: has joined #ruby
[02:37:20] rundor: has joined #ruby
[02:47:32] paradisaeidae__: has joined #ruby
[02:47:36] paradisaeidae___: has joined #ruby
[02:52:21] astrobunny: has joined #ruby
[02:56:28] petto: has joined #ruby
[03:02:17] bronson: has joined #ruby
[03:13:33] veex: has joined #ruby
[03:14:56] Rodya_: has joined #ruby
[03:16:13] opekktar_: has joined #ruby
[03:16:49] juiko: has joined #ruby
[03:18:33] nacsurte: has joined #ruby
[03:22:31] __Yiota: has joined #ruby
[03:24:58] gix: has joined #ruby
[03:26:48] VladGh: has joined #ruby
[03:32:43] opekktar: has joined #ruby
[03:44:52] jackjackdripper: has joined #ruby
[03:45:37] ledestin: has joined #ruby
[03:45:49] jackjackdripper: has joined #ruby
[03:55:56] charliesome: has joined #ruby
[03:56:18] VladGh: has joined #ruby
[03:57:30] agrecascino: has joined #ruby
[03:58:12] Emmanuel_Chanel: has joined #ruby
[04:01:18] VladGh: has joined #ruby
[04:02:26] jenrzzz: has joined #ruby
[04:08:49] foamz: zenspider: yes, but the source listed 404s
[04:14:36] infernix: has joined #ruby
[04:14:51] nacsurte: has joined #ruby
[04:16:54] pwned: has joined #ruby
[04:19:12] paradisaeidae: has joined #ruby
[04:19:15] paradisaeidae_: has joined #ruby
[04:22:54] armyriad: has joined #ruby
[04:26:51] __Yiota: has joined #ruby
[04:30:39] charliesome: has joined #ruby
[04:32:27] ar1a: has joined #ruby
[04:36:06] smulverine: has joined #ruby
[04:37:38] VladGh: has joined #ruby
[04:43:45] charliesome_: has joined #ruby
[04:46:07] gusrub: has joined #ruby
[04:50:48] Hanmac: has joined #ruby
[04:50:52] zacts: has joined #ruby
[04:52:51] hutch34_: has joined #ruby
[04:53:07] patrontechnosoft: has joined #ruby
[04:57:37] uZiel: has joined #ruby
[04:58:54] jamal7: has joined #ruby
[05:00:27] phinxy: has joined #ruby
[05:02:19] runescape07rsps: has joined #ruby
[05:03:56] enterprisey: has joined #ruby
[05:03:57] bronson: has joined #ruby
[05:06:11] MrSparkle: has joined #ruby
[05:11:03] VladGh: has joined #ruby
[05:18:55] rabajaj: has joined #ruby
[05:19:51] roshanavand: has joined #ruby
[05:25:22] nacsurte: has joined #ruby
[05:25:49] nofxxx: has joined #ruby
[05:40:44] anisha: has joined #ruby
[05:42:05] VladGh: has joined #ruby
[05:44:41] johnny56: has joined #ruby
[05:46:42] benjen: has joined #ruby
[05:51:32] jamal7_: has joined #ruby
[05:55:36] alexday: has joined #ruby
[05:55:45] zacts: has joined #ruby
[06:02:17] gusrub: has joined #ruby
[06:03:30] pb122: has joined #ruby
[06:04:44] alveric: has joined #ruby
[06:04:46] bronson: has joined #ruby
[06:06:17] woodruffw: has joined #ruby
[06:06:17] woodruffw: has joined #ruby
[06:14:22] Nightmare: has joined #ruby
[06:19:20] grant: has joined #ruby
[06:22:21] Jameser: has joined #ruby
[06:26:59] VladGh: has joined #ruby
[06:37:45] apofis: has joined #ruby
[06:57:58] petto: has joined #ruby
[06:58:25] Vetaxili: has joined #ruby
[06:59:01] Vetaxili: Hi all. I'm having an issue when using Faraday to post a csv file. It works if all the 'client' code is within one file, but as soon as I split it I get either *undefined method `strip'* or *Unsupported Media Type* http://rubyfiddle.com/riddles/766ab Any ideas?
[06:59:19] Jameser: has joined #ruby
[07:01:07] Jameser: has joined #ruby
[07:05:37] bronson: has joined #ruby
[07:10:16] Ishido: has joined #ruby
[07:12:47] vali: has joined #ruby
[07:15:00] TomyLobo2: has joined #ruby
[07:15:21] VladGh: has joined #ruby
[07:15:40] mark_66: has joined #ruby
[07:20:03] Jameser: has joined #ruby
[07:22:24] Silthias: has joined #ruby
[07:24:00] moei: has joined #ruby
[07:28:56] Jameser: has joined #ruby
[07:30:35] Mortomes|Work: has joined #ruby
[07:32:03] jordanm: has joined #ruby
[07:35:03] guardianx: has joined #ruby
[07:35:53] aufi: has joined #ruby
[07:37:36] charliesome: has joined #ruby
[07:40:01] Thiru: has joined #ruby
[07:43:34] antgel: has joined #ruby
[07:43:42] pandaant: has joined #ruby
[07:47:13] jenrzzz: has joined #ruby
[07:47:13] jenrzzz: has joined #ruby
[07:47:26] sysvalve: has joined #ruby
[07:49:20] djbkd: has joined #ruby
[07:49:23] jaruga: has joined #ruby
[07:50:49] mikecmpbll: has joined #ruby
[07:53:36] Jameser: has joined #ruby
[07:56:44] nacsurte: has joined #ruby
[08:06:14] bronson: has joined #ruby
[08:08:20] Trynemjoel: has joined #ruby
[08:10:02] mim1k: has joined #ruby
[08:10:33] renchan: has joined #ruby
[08:20:44] pavelz_home: has joined #ruby
[08:27:04] sysvalve: has joined #ruby
[08:28:54] petto: has joined #ruby
[08:28:59] Puffball: has joined #ruby
[08:34:52] Beams: has joined #ruby
[08:38:10] webhat_: has joined #ruby
[08:41:24] guardianx: has joined #ruby
[08:43:11] aupadhye: has joined #ruby
[08:45:34] Puffball: has joined #ruby
[08:50:52] nacsurte: has joined #ruby
[08:52:03] psychicist__: has joined #ruby
[08:55:34] Tolnaiz: has joined #ruby
[08:55:50] webhat: has joined #ruby
[08:56:30] InfinityFye: has joined #ruby
[09:05:03] Beams: has joined #ruby
[09:07:16] bronson: has joined #ruby
[09:10:19] biberu: has joined #ruby
[09:10:44] anisha: has joined #ruby
[09:13:06] psychicist__: has joined #ruby
[09:17:53] gil_: has joined #ruby
[09:17:53] gil_: has joined #ruby
[09:18:14] marr: has joined #ruby
[09:22:45] mikecmpbll: has joined #ruby
[09:24:01] lkba: has joined #ruby
[09:24:21] workmad3: has joined #ruby
[09:25:54] high_fiver: has joined #ruby
[09:28:38] Bish: god i hade python
[09:29:00] Bish: but i fail to find an alternative to this https://ftfy.readthedocs.io/en/latest/
[09:29:23] tvw: has joined #ruby
[09:30:20] abhi__: has joined #ruby
[09:42:41] Beams: has joined #ruby
[09:44:57] nacsurte: has joined #ruby
[09:47:22] Thiru: guys , how to install gems behind firewall, i tried all but thorughing me keeplive timeout error
[09:47:30] Thiru: anyone faced this issue
[09:48:03] mim1k: has joined #ruby
[09:48:06] Thiru: please help needed, i am using windows 7 and ruby version is 2.3.3p222
[09:48:47] Bish: gem uses a normal http connection i suppose
[09:49:05] Bish: so youre out of luck, if the firewall doesnt let u
[09:49:07] Thiru: hmm yes Bish
[09:49:33] Bish: u can try to download gem and its dependencies via browser
[09:50:06] Bish: and if that browser is allowed to download them you should ask yourself why rubygems cant
[09:51:17] stoffus: has joined #ruby
[09:53:29] Thiru: Bish: is it possible use gems from another server which is already installed,
[09:54:51] minimalism: has joined #ruby
[09:56:48] Bish: possible for sure, but i have no clue how
[09:56:49] Bish: https://blog.packagecloud.io/eng/2015/05/27/host-mirror-private-gem-server/
[09:56:53] Bish: this should help though?
[09:57:26] Thiru: thanks Bish ,
[10:04:53] ahrs: has joined #ruby
[10:06:15] ski7777: has joined #ruby
[10:08:10] ocn: has joined #ruby
[10:08:14] ocn: has left #ruby: ()
[10:08:29] bronson: has joined #ruby
[10:10:36] guardianx: has joined #ruby
[10:10:41] Beams: has joined #ruby
[10:18:41] Tolnaiz: has joined #ruby
[10:20:06] TomyWork: has joined #ruby
[10:33:05] xall: has joined #ruby
[10:34:03] Serpent7776: has joined #ruby
[10:39:05] nacsurte: has joined #ruby
[10:39:29] fghjb3567: has joined #ruby
[10:43:49] apparition: has joined #ruby
[10:44:29] tvw: has joined #ruby
[10:45:17] jinie_: has joined #ruby
[10:50:48] Beams: has joined #ruby
[10:51:02] vuoto: has joined #ruby
[11:01:43] lxsameer: has joined #ruby
[11:08:46] jinie_: has joined #ruby
[11:09:18] bronson: has joined #ruby
[11:12:00] Beams: has joined #ruby
[11:15:17] dstrunk: has joined #ruby
[11:16:07] anisha: has joined #ruby
[11:19:01] antgel: has joined #ruby
[11:19:24] ramakanta: has joined #ruby
[11:26:01] mim1k: has joined #ruby
[11:26:44] govg: has joined #ruby
[11:26:59] muzik: has joined #ruby
[11:27:04] sameerynho: has joined #ruby
[11:31:44] muzik: has joined #ruby
[11:33:04] m27frogy: has joined #ruby
[11:33:05] nacsurte: has joined #ruby
[11:33:24] antgel: has joined #ruby
[11:33:32] mim1k: has joined #ruby
[11:34:26] ElFerna: has joined #ruby
[11:35:00] romankapitonov: has joined #ruby
[11:37:07] bkxd: has joined #ruby
[11:40:18] im0nde: has joined #ruby
[11:40:43] govg: has joined #ruby
[11:40:58] ltem: has joined #ruby
[11:41:13] ldnunes: has joined #ruby
[11:42:45] imtar: has joined #ruby
[11:44:22] ramakanta: has joined #ruby
[11:45:17] bkxd: has joined #ruby
[11:55:52] jinie_: has joined #ruby
[11:55:58] VladGh: has joined #ruby
[11:56:22] guardianx: has left #ruby: ()
[12:00:17] DoubleMalt: has joined #ruby
[12:03:35] rgr: has joined #ruby
[12:04:53] gusrub: has joined #ruby
[12:07:29] jinie_: has joined #ruby
[12:08:18] yeticry_: has joined #ruby
[12:08:53] im0nde: has joined #ruby
[12:10:06] bronson: has joined #ruby
[12:11:24] synthroid: has joined #ruby
[12:12:59] phinxy: has joined #ruby
[12:16:01] bmurt: has joined #ruby
[12:16:34] bweston92: has joined #ruby
[12:17:09] herbmillerjr: has joined #ruby
[12:18:28] _RonaldMcDonald: has joined #ruby
[12:25:38] milardovich: has joined #ruby
[12:25:58] rgr: has joined #ruby
[12:26:11] monument: has joined #ruby
[12:27:16] nacsurte: has joined #ruby
[12:27:51] ferr: has joined #ruby
[12:31:52] jinie_: has joined #ruby
[12:36:42] millerti: has joined #ruby
[12:38:09] jinie_: has joined #ruby
[12:47:00] jinie-: has joined #ruby
[12:48:20] tacoboy: has joined #ruby
[12:51:20] someuser: has joined #ruby
[12:54:06] planigan: has joined #ruby
[12:56:23] ldnunes: has joined #ruby
[12:58:45] milardovich: has joined #ruby
[12:58:57] aupadhye: has joined #ruby
[13:00:30] mim1k: has joined #ruby
[13:02:38] gheegh: has joined #ruby
[13:03:52] gnufied: has joined #ruby
[13:04:05] milardovich: has joined #ruby
[13:04:22] ElFerna: has joined #ruby
[13:11:03] bronson: has joined #ruby
[13:11:06] mim1k: has joined #ruby
[13:11:59] gnufied: has joined #ruby
[13:12:38] TheBrayn: I'm trying to install gemstash on archlinux: https://gist.github.com/mmerfort/0536454bea0d62ea76cd621c8b79f6db any idea why this is failing?
[13:15:38] TheBrayn: can you maybe recommend something similar?
[13:17:00] fmccann: has joined #ruby
[13:18:13] dminuoso: TheBrayn: That appears to be a puma bug
[13:19:03] dminuoso: TheBrayn: I mean it's probably some compatibility issue with the openssl version available, but puma should check for that.
[13:19:14] ineb: TheBrayn: i get the same error when trying to install gemstash on archlinux. looks like puma does not work with OpenSSL 1.1.0f
[13:20:19] dminuoso: Which would be.. interesting.
[13:21:19] nacsurte: has joined #ruby
[13:22:27] dminuoso: TheBrayn: Could you put your openssl/dh.h on github (gist perhaps) for me to see?
[13:23:10] dminuoso: Should be at /usr/include/openssl/dh.h
[13:23:34] TheBrayn: https://gist.github.com/mmerfort/b529be55c89ea5c5aae9361f768dba73
[13:23:48] ineb: TheBrayn: setting DISABLE_SSL obviously works, but i dont know if you want that
[13:24:07] TheBrayn: does this only concern internal connections?
[13:24:10] TheBrayn: because that would be ok
[13:24:20] TheBrayn: I'm going to run this locally for the time being
[13:24:43] vuoto: has joined #ruby
[13:26:07] ineb: TheBrayn: DISABLE_SSL=1 gem install gemstash it is then
[13:28:31] ElFerna: has joined #ruby
[13:29:44] DLSteve: has joined #ruby
[13:30:30] Jameser: has joined #ruby
[13:31:31] TheBrayn: that works, thank you
[13:33:24] apofis: has joined #ruby
[13:40:11] banisterfiend: has joined #ruby
[13:43:23] dminuoso: TheBrayn: https://gist.github.com/mmerfort/b529be55c89ea5c5aae9361f768dba73#file-dh-h-L60
[13:43:29] dminuoso: That quirky change is the cause.
[13:44:23] dminuoso: Though that header should be included unless OPENSSL_NO_DH is set...
[13:45:25] millerti: has joined #ruby
[13:50:58] mwlang: has joined #ruby
[13:54:05] oleo: has joined #ruby
[13:58:49] milardovich: has joined #ruby
[13:59:29] Polysics: has joined #ruby
[13:59:34] qjoe: has joined #ruby
[14:00:32] ur5us: has joined #ruby
[14:00:37] DoubleMalt: has joined #ruby
[14:02:10] anisha: has joined #ruby
[14:03:54] olivier__: has joined #ruby
[14:03:56] dhaller: has joined #ruby
[14:04:24] mim1k: has joined #ruby
[14:05:06] dhaller: hey all, getting the error on the lower section of this gist corresponding to the top script: https://gist.github.com/anonymous/db10fe9a54aad093fa2066bb260495a8
[14:05:20] ResidentBiscuit: has joined #ruby
[14:06:27] antgel: has joined #ruby
[14:06:31] petto_: has joined #ruby
[14:08:44] Rapture: has joined #ruby
[14:09:28] ahrs: has joined #ruby
[14:10:50] imtar: has joined #ruby
[14:11:09] anisha: has joined #ruby
[14:11:24] Jameser: has joined #ruby
[14:11:36] bronson: has joined #ruby
[14:13:35] ineb: dhaller: what about Connection refused - connect(2) (Errno::ECONNREFUSED)
[14:13:51] danguita: has joined #ruby
[14:14:18] dhaller: has joined #ruby
[14:14:29] dhaller: hey all, getting the error on the lower section of this gist corresponding to the top script: https://gist.github.com/anonymous/db10fe9a54aad093fa2066bb260495a8
[14:14:47] Jameser`: has joined #ruby
[14:15:22] nacsurte: has joined #ruby
[14:15:46] flujan: has joined #ruby
[14:16:14] flujan: Hi guys. I have a C api which I wanna to use from a ruby script. Is it possible?
[14:17:01] dhaller: my app is listening on port 8080, does that script know to send the request to 8080?
[14:17:08] dhaller: not sure if its 443 or 8080
[14:17:37] ineb: dhaller: you are acessing https, which is 443
[14:17:50] dhaller: how to access 8080?
[14:18:04] ineb: https://localhost:8080/api
[14:19:09] petto: has joined #ruby
[14:21:35] danguita: has joined #ruby
[14:24:04] dhaller: ineb my app gave this "localhost#" only contains a single space. Expected format: <method> <resource> HTTP/1.1"
[14:25:23] __Yiota: has joined #ruby
[14:25:58] ineb: dhaller: so this is not an error, right? just whatever your app responded to your request
[14:26:11] dhaller: its a raised exception
[14:26:19] ineb: oh, which line?
[14:26:24] t-recx: has joined #ruby
[14:26:44] dhaller: well its from the app not the ruby script
[14:26:56] alan_w: has joined #ruby
[14:28:52] dhaller: seems to be getting stuck
[14:29:54] ElFerna: has joined #ruby
[14:31:18] petto: has joined #ruby
[14:32:45] cdg: has joined #ruby
[14:33:09] hutch34_: has joined #ruby
[14:33:57] rgtk: has joined #ruby
[14:34:52] eljimbo: has joined #ruby
[14:37:25] chouhoulis: has joined #ruby
[14:38:07] vuoto: has joined #ruby
[14:39:52] mim1k_: has joined #ruby
[14:42:00] chouhoulis: has joined #ruby
[14:43:32] polishdub: has joined #ruby
[14:46:27] cdg_: has joined #ruby
[14:46:52] mim1k: has joined #ruby
[14:47:10] danguita: has joined #ruby
[14:48:53] danguita: has joined #ruby
[14:49:23] rundor: has joined #ruby
[14:52:21] bruno-: has joined #ruby
[14:52:47] ramfjord: has joined #ruby
[14:53:04] ElFerna: has joined #ruby
[14:53:25] rundor: has joined #ruby
[14:55:15] swampwater: has joined #ruby
[14:56:17] danguita: has joined #ruby
[15:00:30] ElFerna: has joined #ruby
[15:01:10] cdg: has joined #ruby
[15:01:55] rippa: has joined #ruby
[15:02:35] cdg_: has joined #ruby
[15:04:10] cdg: has joined #ruby
[15:06:51] danguita: has joined #ruby
[15:08:28] flujan: has joined #ruby
[15:09:26] runescape07rsps: has joined #ruby
[15:09:32] nacsurte: has joined #ruby
[15:10:05] veex: has joined #ruby
[15:11:27] danguita: has joined #ruby
[15:12:46] bronson: has joined #ruby
[15:13:00] danguita: has joined #ruby
[15:14:41] konsolebox: has joined #ruby
[15:15:02] milardovich: has joined #ruby
[15:15:59] Paraxial: has joined #ruby
[15:22:18] dannyh: has joined #ruby
[15:23:12] ElFerna: has joined #ruby
[15:26:38] DannyA: has joined #ruby
[15:30:41] cagomez: has joined #ruby
[15:31:26] cagomez_: has joined #ruby
[15:32:23] milardovich: has joined #ruby
[15:33:07] hutch34_: has joined #ruby
[15:36:39] polishdub: has joined #ruby
[15:36:51] ar1a: hey, i want to sandbox some code, make it safe
[15:36:55] ar1a: no system, file read/write etc
[15:36:58] ar1a: untrusted user code
[15:37:02] ar1a: is there a good gem to d othat ?
[15:37:25] ar1a: i checked out 'secure' but it used $SAFE and that errors. i also tried jruby_sandbox, but that gave me a nullpointerexception when i tried to run the demo
[15:37:48] jimeh: has joined #ruby
[15:37:57] zapata: has joined #ruby
[15:40:07] brent__: has joined #ruby
[15:40:14] AxelAlex: has joined #ruby
[15:40:59] ar1a: and SafeRuby doesn't share instances across evals, which i need to keep the variables around
[15:43:27] ElFerna: has joined #ruby
[15:45:03] DannyA_: has joined #ruby
[15:45:16] TomyLobo2: has joined #ruby
[15:45:43] cagomez: has joined #ruby
[15:47:22] bmurt_: has joined #ruby
[15:47:56] petto_: has joined #ruby
[15:48:33] bmurt: has joined #ruby
[15:52:06] synthroid: has joined #ruby
[15:54:12] rundor: has joined #ruby
[15:56:17] mtkd: has joined #ruby
[15:56:53] swampwater: ar1a: What's the use case for this?
[15:57:08] ar1a: irc bot, evals user code
[15:58:02] sparkyy_: has joined #ruby
[15:59:20] aufi: has joined #ruby
[16:00:29] rgtk: has joined #ruby
[16:00:38] ramfjord: has joined #ruby
[16:01:05] MrSparkle: has joined #ruby
[16:03:33] nacsurte: has joined #ruby
[16:05:36] raspado: has joined #ruby
[16:06:05] marxarelli: has joined #ruby
[16:06:33] ramfjord: has joined #ruby
[16:07:30] swampwater: All I'm finding other than what you mentioned is shikashi. It's a bit old, though.
[16:08:09] ar1a: i figured why jruby_sandbox was erroring
[16:08:14] ar1a: i was using the wrong version of jruby
[16:08:17] ElFerna: has joined #ruby
[16:08:20] ar1a: im using the right version of jruby now but its not working
[16:08:23] ar1a: lol kill me
[16:08:47] jenrzzz: has joined #ruby
[16:08:47] jenrzzz: has joined #ruby
[16:10:17] enterprisey: has joined #ruby
[16:10:17] DannyA: has joined #ruby
[16:11:18] gusrub: has joined #ruby
[16:12:25] TvL2386: has joined #ruby
[16:12:51] imtar: has joined #ruby
[16:13:36] bronson: has joined #ruby
[16:13:39] charliesome: has joined #ruby
[16:13:44] ramfjord: has joined #ruby
[16:17:14] amclain: has joined #ruby
[16:17:42] vuoto: has joined #ruby
[16:19:18] theunraveler: has joined #ruby
[16:19:40] ramfjord: has joined #ruby
[16:20:07] knight33: has joined #ruby
[16:22:57] bruno-: has joined #ruby
[16:23:48] ElFerna: has joined #ruby
[16:24:03] sarmiena_: has joined #ruby
[16:25:39] ramfjord: has joined #ruby
[16:30:14] epochwolf: has joined #ruby
[16:34:01] olivier__: has joined #ruby
[16:34:05] anisha: has joined #ruby
[16:34:15] DannyA: has joined #ruby
[16:36:13] nacsurte: has joined #ruby
[16:38:19] milardov_: has joined #ruby
[16:38:56] kwesidev: has joined #ruby
[16:45:22] swills: has joined #ruby
[16:45:22] swills: has joined #ruby
[16:48:42] z0mbee: has joined #ruby
[16:51:45] flujan: has joined #ruby
[16:52:16] Azure: has joined #ruby
[16:52:28] bonhoeffer: has joined #ruby
[16:52:38] milardovich: has joined #ruby
[16:55:29] jenrzzz: has joined #ruby
[16:55:49] armyriad: has joined #ruby
[16:56:44] arashb: has joined #ruby
[16:56:59] cdg: has joined #ruby
[16:57:03] Azure: has joined #ruby
[16:58:53] milardovich: has joined #ruby
[16:59:33] olivier__: has joined #ruby
[17:00:04] c1: has joined #ruby
[17:01:57] rgtk: has joined #ruby
[17:02:40] nowhere_man: has joined #ruby
[17:03:18] fmccann: has joined #ruby
[17:05:09] jackjackdripper: has joined #ruby
[17:07:24] olivier__: has joined #ruby
[17:08:21] Rodya_: has joined #ruby
[17:09:21] olivier__: has joined #ruby
[17:12:34] flujan: has left #ruby: ()
[17:13:23] cdg_: has joined #ruby
[17:14:12] gusrub: has joined #ruby
[17:14:25] bronson: has joined #ruby
[17:14:40] Polysics: has joined #ruby
[17:18:10] dviola: has joined #ruby
[17:24:08] cagomez: has joined #ruby
[17:28:54] BSaboia: has joined #ruby
[17:28:57] eckhardt: has joined #ruby
[17:29:13] cagomez: has joined #ruby
[17:30:55] DannyA: has joined #ruby
[17:31:43] whippythellama: has joined #ruby
[17:36:14] imtar: has joined #ruby
[17:37:23] ansraliant: can I use class variables in a module?
[17:37:31] ar1a: you mean like @variables?
[17:37:33] ar1a: if so, yes
[17:38:51] ansraliant: and those @variable from inside the module is accessible like @variable, or do I need something else?
[17:41:55] ansraliant: suppose this module https://gist.github.com/ansraliant/7c3f85623dfa65e26ebd825e3db5856
[17:42:19] ansraliant: when calling one of the methods, let's say large_dimentions, the @large variable is empty
[17:43:44] SuperL4g: has joined #ruby
[17:44:00] havenwood: ansraliant: broken link ^
[17:45:38] ansraliant: https://gist.github.com/ebfe35dc052ec1a357f62e384fafcdba
[17:47:03] havenwood: ansraliant: Do the dimensions change? If not, use a CONSTANT. If so, you have state and should consider a singleton class if there's only one instance of state or class if there're more.
[17:47:23] milardovich: has joined #ruby
[17:47:50] milardovich: has joined #ruby
[17:48:12] ansraliant: havenwood: dimensions don't suppose to change, I'll try using constant. Thanks.
[17:48:36] DannyA_: has joined #ruby
[17:48:51] havenwood: ansraliant: Yeah, if they don't change definitely use constants. I'd freeze them as well.
[17:48:56] cajone: has joined #ruby
[17:49:05] havenwood: LARGE = [1200, 600].freeze
[17:49:42] ansraliant: what does the freeze do?
[17:50:11] darix: ansraliant: lowers the temperature below 0
[17:50:35] havenwood: >> LARGE = [1200, 600].freeze; LARGE << 42
[17:50:36] ruby[bot]: havenwood: # => can't modify frozen Array (RuntimeError) ...check link for more (https://eval.in/837014)
[17:52:09] ansraliant: ohhh nice. Nice bot too. thanks havenwood
[17:52:16] havenwood: ansraliant: you're welcome
[17:54:21] Silthias1: has joined #ruby
[17:56:24] milardovich: has joined #ruby
[17:56:59] eljimbo: has joined #ruby
[17:57:08] hutch34_: has joined #ruby
[18:00:59] Polysics: has joined #ruby
[18:01:05] ansraliant: it worked, the helper reads the constants and calculated correctly the dimensions
[18:03:29] scorphus: has joined #ruby
[18:03:37] CrazyEddy: has joined #ruby
[18:08:52] tAn: has joined #ruby
[18:09:00] ar1a_: has joined #ruby
[18:09:36] gusrub: has joined #ruby
[18:10:02] jenrzzz: has joined #ruby
[18:10:02] jenrzzz: has joined #ruby
[18:10:53] mwlang: has joined #ruby
[18:13:57] romankapitonov: has joined #ruby
[18:14:07] DannyA: has joined #ruby
[18:15:16] bronson: has joined #ruby
[18:15:19] nacsurte: has joined #ruby
[18:16:41] ur5us: has joined #ruby
[18:19:30] nowhere_man: has joined #ruby
[18:19:57] dcluna: has joined #ruby
[18:20:18] lupine: I need to be able to calculate the fingerprint of an SSH known-hosts-format public key. RSA, DSA, ECDSA and ed25519. there's plenty of libraries for the first two, but I can't see anything for the rest
[18:20:19] kies: has joined #ruby
[18:21:18] _mak: has joined #ruby
[18:21:27] leah2: just shell out to "ssh-keygen -l" ?
[18:22:40] _mak: what would be a polite way to ask for code review on a ruby script? :) I would love to get some feedback on https://raw.githubusercontent.com/antilibrary/antilibrary_worker/master/antilibrary_worker.rb
[18:23:10] pwned: has joined #ruby
[18:24:02] havenwood: _mak: You might consider `warn` instead of `puts` for warnings so it goes to stderr and respects the warning flag.
[18:24:19] havenwood: _mak: and `abort` instead of `exit 1`
[18:24:30] havenwood: _mak: Also, abort takes an argument for a warning.
[18:25:02] lacuna: has joined #ruby
[18:25:20] havenwood: _mak: Like: abort "Missing parameters.."
[18:25:56] leah2: message_tracker should use a mechanism for passing GET data
[18:25:57] _mak: ah nice :)
[18:27:00] knight33: has joined #ruby
[18:27:02] kahra: has joined #ruby
[18:27:34] leah2: Open3.capture3 should pass arguments as an array
[18:27:50] _mak: what you mean about the message_tracker?
[18:27:58] leah2: ?arg=#{TRACKER_ID}&arg=#{message_json}
[18:28:00] leah2: that's abd
[18:28:50] lupine: leah2: so evil :3
[18:28:54] _mak: what would be the alternative to that? a ruby method?
[18:29:06] lupine: but maybe it's the easiest thing to do
[18:30:13] leah2: URI.encode_www_form( params )
[18:30:25] havenwood: require 'uri'; >> URI.encode_www_form({arg: ['TRACKER_ID', 'message_json']})
[18:30:25] leah2: i thought it was even easier somehow...
[18:30:38] leah2: Net::HTTP is clumsy :P
[18:30:39] havenwood: #=> "arg=TRACKER_ID&arg=message_json"
[18:31:31] leah2: command = data.split(':').first
[18:31:33] leah2: ipfs_hash = data.split(':').last
[18:31:41] leah2: better say command, ipfs_hash = data.split(':', 2)
[18:31:45] cagomez: has joined #ruby
[18:31:47] _mak: leah2, havenwood I see, nice thanks
[18:31:55] leah2: (if it has two fields that is)
[18:32:11] leah2: new_message = Hash.new
[18:32:13] leah2: new_message['worker_nickname'] = WORKER_NICKNAME
[18:32:17] leah2: i'd use a hash literal there
[18:32:39] _mak: hash literal?
[18:32:53] leah2: {'worker_nickname' => WORKER_NICKNAME}
[18:33:05] leah2: instead of while true you can write loop { }
[18:33:06] kies: has joined #ruby
[18:33:38] guacamole: has joined #ruby
[18:34:00] _mak: but how to you put the {'worker_nickname' => WORKER_NICKNAME} inside new message then?
[18:34:59] SeepingN: has joined #ruby
[18:35:56] _mak: I wonder how could it be more 'organized' as well... does it has enough comments?
[18:36:32] Polysics: has joined #ruby
[18:38:12] guacamole: has joined #ruby
[18:38:37] Polysics_: has joined #ruby
[18:41:18] _mak: leah2: thanks for the feedback!
[18:45:03] watersoul: has joined #ruby
[18:50:41] A124: has joined #ruby
[18:53:51] jaruga: has joined #ruby
[18:55:34] uZiel: has joined #ruby
[18:58:32] wilbert: has joined #ruby
[19:00:31] jscheel: has joined #ruby
[19:05:52] jenrzzz_: has joined #ruby
[19:06:07] milardovich: has joined #ruby
[19:06:19] ElFerna: has joined #ruby
[19:06:30] zenspider: foamz: why do you care? you want to use it, so use it
[19:06:42] enterprisey: has joined #ruby
[19:06:47] jscheel: Hi all. I’m trying to figure out if there is a better way to have mixins that utilize something defined in their destination. Right now I simply have a method on the mixin that raises an expection, and I implement that method in the target class that receives the mixin. I don’t really think that’s the cleanest way to do it though. Here’s a really simple example of what I am trying to figure out:
[19:06:48] jscheel: https://gist.github.com/jscheel/2346b49226cbce316403ecf7df4383e5. Any opinions?
[19:08:33] cagomez: has joined #ruby
[19:09:41] tAn: has joined #ruby
[19:12:41] rundor: has joined #ruby
[19:15:27] zenspider: jscheel: looking
[19:16:05] zenspider: jscheel: for similar situations I usually raise with: raise NotImplementedError, "subclass responsibility"
[19:16:07] bronson: has joined #ruby
[19:16:41] Dimik: has joined #ruby
[19:16:58] jscheel: zenspider: ok, so same approach then (but with better error)
[19:17:01] Papierkorb: jscheel: besides what zenspider says, no better way :| In ruby, there are no abstract methods, which is what you were looking for.
[19:17:01] zenspider: but in this case, I think I wouldn't implement the message in the module... document the contract and let it fail with NoMethodError. Look to Enumerable for inspiration
[19:17:48] zenspider: you *could* try to catch that the contract isn't met with an included hook... but that just means it isn't met *yet*, not that it'll actually fail on use.
[19:18:25] jscheel: hehe, it’s been a while since I’ve worked in a language with true abstract methods :)
[19:18:50] apofis: has joined #ruby
[19:19:45] synthroid: has joined #ruby
[19:19:47] jscheel: ok, thanks for looking zenspider and Papierkorb, glad to know I’m not totally crazy
[19:20:12] Sembei: has joined #ruby
[19:20:38] Kristjan55555: has joined #ruby
[19:21:39] Kristjan55555: Hello ladies, am 33 year old male from Estonia. Write to me kristjan55555@mail.ee, My d**k picture: http://imgur.com/a/CLT64
[19:21:53] SeepingN: "wrong channel"
[19:22:29] havenwood: !troll Kristjan55555
[19:22:30] ruby[bot]: +bb Kristjan55555!*@*$#ruby-banned *!*@82.131.39.236.cable.starman.ee$#ruby-banned
[19:24:59] romankapitonov: has joined #ruby
[19:27:15] code_zombie: has joined #ruby
[19:28:32] anisha: has joined #ruby
[19:30:10] enterprisey: has joined #ruby
[19:30:54] cagomez: has joined #ruby
[19:33:05] eckhardt: has joined #ruby
[19:37:14] xuanrui: has joined #ruby
[19:38:35] synthroid: has joined #ruby
[19:46:20] kahra: has joined #ruby
[19:46:31] gusrub: has joined #ruby
[19:47:12] cagomez: has joined #ruby
[19:48:24] olivier__: has joined #ruby
[19:53:37] uZiel: has joined #ruby
[19:53:50] haylon: has joined #ruby
[19:55:05] _mak: has left #ruby: ("..")
[19:55:40] lxsameer: has joined #ruby
[19:58:09] cdg: has joined #ruby
[19:59:22] mudwaf: has joined #ruby
[19:59:33] kahra: has joined #ruby
[20:01:19] profsimm: has joined #ruby
[20:01:36] profsimm: What's a prefix or suffix to communicate "this is the bare essentials version of an API"
[20:02:04] mudwaf: "minimal?"
[20:02:22] profsimm: Mini? Dunno
[20:02:53] cagomez: has joined #ruby
[20:03:07] ElFerna: has joined #ruby
[20:03:30] Papierkorb: `bare`, `raw` or yeah, minimal is good too
[20:05:27] Papierkorb: profsimm: Different context, but the `flickraw` gem implements the Flickr API by constructing the method names dynamically at runtime. If you do something comparable, `raw` may be good
[20:05:29] SeepingN: this is an introductory framework for a minimal API
[20:05:30] arup_r: has joined #ruby
[20:06:00] arup_r: Why `["#{Dir.pwd}/a.rb"].inject([], :require)` didn't throw an exception NoMethodError: private method `require' called for []:Array http://dpaste.com/2TVC021 ?
[20:08:09] profsimm: Papierkorb: strange I don't understand why "raw" is a good name for something that makes dynamic methods
[20:08:59] SeepingN: just the data, maam
[20:09:06] Papierkorb: profsimm: Because it offers (almost) "raw" access
[20:10:11] Papierkorb: profsimm: e.g., it returns the data Flickr returns in the `result` of the response body, it doesn't really turn it into a structure or class (Almost). At least, as far usage later on goes.
[20:10:49] ldnunes: has joined #ruby
[20:10:55] profsimm: Papierkorb: I see ok :)
[20:11:41] SeepingN: another https://archon-runtime.github.io/
[20:16:57] bronson: has joined #ruby
[20:17:41] cam27: has joined #ruby
[20:19:48] Papierkorb: has left #ruby: ("Konversation terminated!")
[20:22:21] cagomez: has joined #ruby
[20:25:02] jenrzzz: has joined #ruby
[20:25:22] foamz: zenspider: how can i use a gem if it fails to download the source?
[20:25:26] foamz: from the source*
[20:25:42] foamz: i just get an error when trying to build using the bundle
[20:26:26] foamz: i dont understand what you are suggesting i should do
[20:27:14] foamz: there is a dependency that can't be downloaded, is there another way to build when you need a gem that can't be downloaded?
[20:27:37] ElFerna: has joined #ruby
[20:27:45] rgtk: has joined #ruby
[20:29:16] Papierkorb: has joined #ruby
[20:29:20] skweek: has joined #ruby
[20:30:44] whippythellama: has joined #ruby
[20:32:43] chihhsin: has joined #ruby
[20:35:32] t-recx: has joined #ruby
[20:36:04] roshanavand: has joined #ruby
[20:39:03] wilbert: has joined #ruby
[20:42:32] KeyJoo: has joined #ruby
[20:45:24] kobain: has joined #ruby
[20:47:16] kahra: has joined #ruby
[20:47:51] zenspider: foamz: I pointed you at EXACTLY what you should do... so I don't get what you don't get... `gem i -i xxx bot` works for me. Why doesn't it for you?
[20:48:13] Radar: "i just get an error" hm yeah nah mate
[20:48:25] Radar: Could you show the error perhaps?
[20:49:03] cdg: has joined #ruby
[20:49:51] zenspider: "need a gem that can't be downloaded" == false
[20:50:22] zenspider: it is odd that the repo got yanked... but a git repo is not a gem (despite what bundler wants you to believe)
[20:52:33] aglorei: has joined #ruby
[20:53:10] graft: foamz: if you have the gemspec you can always build/install the gem by hand, no need to install from git or rubygems with bundler
[20:53:31] ElFerna: has joined #ruby
[20:54:26] kahra: has joined #ruby
[20:54:53] Radar: mmm pretty good when people just float in an out when they expect help yeah>?
[20:55:28] mwlang: has joined #ruby
[21:01:34] runescape07rsps: has joined #ruby
[21:03:20] digitalnomad: has joined #ruby
[21:04:00] HoierM: has joined #ruby
[21:05:49] vuoto: has joined #ruby
[21:06:17] sgen: has joined #ruby
[21:07:38] gusrub: has joined #ruby
[21:11:19] tAn: has joined #ruby
[21:12:03] enterprisey: has joined #ruby
[21:13:28] Rodya_: has joined #ruby
[21:14:31] Paraxial: has joined #ruby
[21:15:25] sgen: has joined #ruby
[21:18:07] bronson: has joined #ruby
[21:19:42] adp90: has joined #ruby
[21:19:44] ElFerna: has joined #ruby
[21:19:54] comjf: has joined #ruby
[21:22:42] xuanrui_: has joined #ruby
[21:23:05] comjf: Howdy! I'm debugging some ordering issues with Rake multitask -- is there a way to look at the dependency graph it produces or any easy way to debug behavior?
[21:24:08] perniciouscaffei: has joined #ruby
[21:24:22] _sfiguser: has joined #ruby
[21:25:00] Murda: has joined #ruby
[21:26:56] ur5us: has joined #ruby
[21:28:38] zenspider: comjf: my graph gem can visualize it
[21:28:50] zenspider: but usually you can debug just with `rake -t yourrule`
[21:29:40] firebird: ACTION looks around ('-' ) (._. ) (o_o) ( ._.) ( '-') and waves hello to the channel.
[21:30:07] havenwood: firebird: halloo
[21:30:25] firebird: Hi havenwood! How are you?
[21:30:48] havenwood: firebird: Hey! I'm good.
[21:36:58] __Yiota: has joined #ruby
[21:37:58] lupine: leah2: I went with shelling out to `ssh-keygen` in the end, but I'm not happy about it :p
[21:38:37] lupine: https://gitlab.com/nick.thomas/gitlab-ee/commit/bf2e94de08c21619dbdf5e4f0919ef6ad637e449#83f2ed2ca64c8d196f28f2b51781270f742fea70
[21:43:35] cdg: has joined #ruby
[21:48:51] ur5us: has joined #ruby
[21:49:39] __Yiota: has joined #ruby
[21:50:05] apofis: has joined #ruby
[21:51:49] ozcanesen: has joined #ruby
[21:56:53] gnufied: has joined #ruby
[21:57:52] mim1k: has joined #ruby
[21:59:13] assembledbits: has joined #ruby
[22:00:31] ruby[bot]: has joined #ruby
[22:00:32] ChanServ: +o ruby[bot]
[22:02:14] rundor: has joined #ruby
[22:03:02] dstrunk: has joined #ruby
[22:03:23] ElFerna: has joined #ruby
[22:07:07] digitalnomad: has joined #ruby
[22:09:46] cdg: has joined #ruby
[22:12:06] tAn: has joined #ruby
[22:14:46] zenspider: Gitlab::Popen.popen ??
[22:19:15] bronson: has joined #ruby
[22:20:32] postmodern: has joined #ruby
[22:22:52] __Yiota: has joined #ruby
[22:32:02] eckhardt: has joined #ruby
[22:32:22] ledestin: has joined #ruby
[22:36:12] MrSparkle: has joined #ruby
[22:37:10] millerti: has joined #ruby
[22:42:57] digitalnomad: has joined #ruby
[22:52:17] duderonomy: has joined #ruby
[22:52:44] dev: has joined #ruby
[22:52:46] Rodya_: has joined #ruby
[22:53:27] eputnam: has joined #ruby
[22:59:35] ElFerna: has joined #ruby
[23:03:07] alveric1: has joined #ruby
[23:05:00] rgtk: has joined #ruby
[23:08:16] eputnam: has joined #ruby
[23:08:49] jenrzzz: has joined #ruby
[23:08:49] jenrzzz: has joined #ruby
[23:11:29] eckhardt: has joined #ruby
[23:12:53] tAn: has joined #ruby
[23:15:03] dstrunk: has joined #ruby
[23:16:59] jenrzzz_: has joined #ruby
[23:19:46] bronson: has joined #ruby
[23:23:07] duderonomy: has joined #ruby
[23:23:08] digitalnomad: has joined #ruby
[23:23:49] ElFerna: has joined #ruby
[23:25:02] olivier__: has joined #ruby
[23:25:54] olivier__: has joined #ruby
[23:33:14] KeyJoo: has joined #ruby
[23:33:20] eckhardt: has joined #ruby
[23:34:20] sleepee: has joined #ruby
[23:35:10] hutch34_: has joined #ruby
[23:37:37] digitalnomad: has joined #ruby
[23:37:56] planigan: has joined #ruby
[23:39:19] olivier__: has joined #ruby
[23:42:20] herbmillerjr: has joined #ruby
[23:45:48] whippythellama: has joined #ruby
[23:47:29] xuanrui: has joined #ruby
[23:47:38] xuanrui_: has joined #ruby
[23:48:34] xuanrui: has joined #ruby
[23:52:29] MarkBilk: has joined #ruby
[23:54:17] Rodya_: has joined #ruby