« Back to channel list

#ruby - 13 July 2019

« Back 1 day Forward 1 day »
[00:07:36] DaRock: has joined #ruby
[00:08:29] AJA4351: has joined #ruby
[00:10:46] skryking: has joined #ruby
[00:13:38] ghostlines: has joined #ruby
[00:17:46] akem-lnvo: has joined #ruby
[00:22:44] lepepe: has joined #ruby
[00:23:21] fphilipe_: has joined #ruby
[00:28:37] cyclonis_: has joined #ruby
[00:34:36] lepepe_: has joined #ruby
[00:43:59] houhoulis: has joined #ruby
[00:44:48] AJA4351: has joined #ruby
[00:49:43] AJA4351: has joined #ruby
[00:54:57] pygmypuppy: has joined #ruby
[00:57:42] ElFerna: has joined #ruby
[00:58:51] CCDelivery: has joined #ruby
[00:59:51] cyclonis: has joined #ruby
[00:59:52] howdoi: has joined #ruby
[01:00:15] cyclonis: has joined #ruby
[01:00:43] cyclonis: has joined #ruby
[01:01:51] cyclonis: has joined #ruby
[01:02:24] cyclonis: has joined #ruby
[01:03:05] cyclonis: has joined #ruby
[01:09:11] _whitelogger: has joined #ruby
[01:11:06] ellcs: has joined #ruby
[01:11:55] AJA4350: has joined #ruby
[01:13:26] Tempesta: has joined #ruby
[01:15:10] go|dfish: has joined #ruby
[01:28:42] Nicmavr: has joined #ruby
[01:34:50] go|dfish: has joined #ruby
[01:45:53] involans: has joined #ruby
[01:55:31] AJA4350: has joined #ruby
[01:56:05] chalkmonster: has joined #ruby
[02:09:22] jenrzzz: has joined #ruby
[02:11:02] fphilipe_: has joined #ruby
[02:47:55] fphilipe_: has joined #ruby
[03:02:36] yaewa: has joined #ruby
[03:10:48] SeepingN: has joined #ruby
[03:20:32] naught-fowl: has joined #ruby
[03:29:55] dviola: has joined #ruby
[03:31:16] bga57: has joined #ruby
[03:38:53] DTZUZO: has joined #ruby
[03:48:26] gix-: has joined #ruby
[04:07:51] claw: has joined #ruby
[04:17:40] jenrzzz: has joined #ruby
[04:22:20] lepepe: has joined #ruby
[04:22:57] howdoi: has joined #ruby
[04:34:00] jenrzzz: has joined #ruby
[04:43:45] jenrzzz: has joined #ruby
[04:45:18] Technodrome: has joined #ruby
[04:50:22] cammellos: has joined #ruby
[04:50:58] AndreYuhai: has joined #ruby
[04:57:10] _whitelogger: has joined #ruby
[04:59:30] AndreYuhai: has joined #ruby
[05:03:24] cyclonis: has joined #ruby
[05:17:27] dellavg: has joined #ruby
[05:18:28] fphilipe_: has joined #ruby
[05:20:54] houhoulis: has joined #ruby
[05:34:45] lepepe: has joined #ruby
[05:36:59] Swyper: has joined #ruby
[05:37:47] sauvin: has joined #ruby
[05:51:12] absolutejam3: has joined #ruby
[05:51:39] houhoulis: has joined #ruby
[06:05:07] lxsameer: has joined #ruby
[06:13:44] dviola: has joined #ruby
[06:15:49] kyrylo: has joined #ruby
[06:20:25] fphilipe_: has joined #ruby
[06:26:31] jenrzzz: has joined #ruby
[06:36:01] sezuan: has joined #ruby
[06:40:39] lepepe: has joined #ruby
[06:42:11] chalkmonster: has joined #ruby
[06:47:55] baweaver: Going to do a quick test drawing over on twitch.tv/baweaver to test the setup before tomorrow's marathon. Starting in a minute.
[07:08:33] chalkmonster: has joined #ruby
[07:23:06] chalkmonster: has joined #ruby
[07:30:37] iNs: has joined #ruby
[07:31:08] queip: has joined #ruby
[07:49:26] schne1der: has joined #ruby
[07:51:35] zacts: has joined #ruby
[08:01:43] queip: has joined #ruby
[08:06:37] fphilipe_: has joined #ruby
[08:09:58] fphilipe: has joined #ruby
[08:11:05] jenrzzz: has joined #ruby
[08:28:28] chalkmonster: has joined #ruby
[08:28:44] Inline: has joined #ruby
[08:29:03] akem-lnvo: has joined #ruby
[08:30:47] fphilipe: has joined #ruby
[08:31:59] jenrzzz: has joined #ruby
[08:36:25] kyrylo: has joined #ruby
[08:38:28] conta: has joined #ruby
[08:41:57] jenrzzz: has joined #ruby
[09:01:09] jenrzzz: has joined #ruby
[09:08:37] xco: has joined #ruby
[09:15:23] leitz: has joined #ruby
[09:15:47] ellcs: has joined #ruby
[09:16:25] ellcs: has joined #ruby
[09:18:59] fphilipe: has joined #ruby
[09:19:53] gix: has joined #ruby
[09:20:55] Megamos: has joined #ruby
[09:21:16] jenrzzz: has joined #ruby
[09:32:51] jenrzzz: has joined #ruby
[09:35:08] chalkmonster: has joined #ruby
[09:41:00] Dbugger: has joined #ruby
[09:57:34] lepepe: has joined #ruby
[10:11:05] fphilipe: has joined #ruby
[10:16:24] chalkmonster: has joined #ruby
[10:17:42] chalkmonster: has joined #ruby
[10:24:12] chalkmonster: has joined #ruby
[10:25:05] chalkmonster: has joined #ruby
[10:27:25] Rudd0: has joined #ruby
[10:30:07] chalkmonster: has joined #ruby
[10:32:32] fphilipe_: has joined #ruby
[10:32:37] Dr_MDMA_MD: has joined #ruby
[10:43:11] drnerdius: has joined #ruby
[10:57:18] conta: has joined #ruby
[11:03:33] AJA4350: has joined #ruby
[11:05:41] Fernando-Basso: has joined #ruby
[11:08:31] akem-lnvo: has joined #ruby
[11:09:27] makavelli130: has joined #ruby
[11:18:07] jenrzzz: has joined #ruby
[11:47:55] Swyper: has joined #ruby
[12:06:32] chalkmonster: has joined #ruby
[12:08:27] Nicmavr: has joined #ruby
[12:10:17] absolutejam3: has joined #ruby
[12:13:17] danst_: has joined #ruby
[12:13:32] danst_: heeeyy guys, how do you connect node.js script with ruby script on same host
[12:13:49] danst_: I'm using websockets right now, but on ruby side it stops working after a while and reconnects
[12:14:02] danst_: like 10 seconds maybe it works, then doesn't work... on localhost lmao
[12:14:31] danst_: maybe there's some inter process communication protocol available
[12:20:49] queip: has joined #ruby
[12:23:24] Swyper: has joined #ruby
[12:28:02] chalkmonster: has joined #ruby
[12:30:39] danst_: inter process communication
[12:30:42] danst_: do you know about it?
[12:31:10] danst_: please tell me magic words i'll google up the stuff myself
[12:32:22] claudiuinberlin: has joined #ruby
[12:39:29] chalkmonster: has joined #ruby
[12:39:36] jenrzzz: has joined #ruby
[12:53:37] snickers: has joined #ruby
[12:53:55] queip: has joined #ruby
[12:54:34] schne1der: has joined #ruby
[13:00:16] leitz: danst_, I'm a newbie, so this may or may not work. From a Ruby webapp like Sinatra, you can use Erb files as your templates. An Erb file can use regular HTML, to include calling JavaScript. I don't know much about Node, so can't help there.
[13:00:48] leitz: Except, of course, that the guy who wrote Node now seems to prefer to write in Go. :)
[13:04:02] leitz: Or danst. :)
[13:04:29] lepepe: has joined #ruby
[13:08:59] danst: i want most hacky solution
[13:09:14] danst: those two apps are just scripts, no frameworks
[13:09:35] danst: i'm using socket.io on node.js side and connect to it with this https://github.com/shokai/ruby-socket.io-client-simple/blob/master/lib/socket.io-client-simple/client.rb
[13:09:50] danst: looks like it wraps over another gem which may fail? trying to figure it out now...
[13:10:13] danst: another suggestion came from ##linux to just pipe the output lol
[13:12:03] danst: if you bother helping... it sends websocket messages fine for 10 seconds, then stops, then ruby client reconnects with #<IOError: stream closed in another thread>
[13:15:51] leitz: danst, what you are doing is past my skill level. Sorry I can't help more.
[13:21:23] lucasb: has joined #ruby
[13:21:25] Inline__: has joined #ruby
[13:31:59] DTZUZO: has joined #ruby
[13:40:03] fphilipe_: has joined #ruby
[13:43:36] henninb: has joined #ruby
[13:43:49] AJA4351: has joined #ruby
[13:51:13] havenwood: danst: It sounds like one side is timing out after 10 seconds. You could probably just fix that issue, if you wanted to.
[13:51:27] havenwood: danst: A UNIXSocket seems reasonable. There are many options.
[13:53:16] havenwood: danst: https://github.com/shokai/ruby-socket.io-client-simple/blob/master/lib/socket.io-client-simple/client.rb#L82
[13:53:19] queip: has joined #ruby
[13:54:44] havenwood: danst: then it's divided by 1000 here: https://github.com/shokai/ruby-socket.io-client-simple/blob/master/lib/socket.io-client-simple/client.rb#L35
[13:55:01] Megamos: has joined #ruby
[13:55:20] havenwood: err, that'd still be a minute. ¯\_(ツ)_/¯
[13:57:30] leitz: Morning havenwood! 80 days to go, and I've already met most of this morning's stretch goals. Pushing past into new territory now. :)
[13:57:44] havenwood: leitz: nice!
[13:58:35] leitz: Well, I did cheat a little. Having done some of this in Go, I stole my own form and converted it from a Go web template to an Erb file. :)
[14:02:00] leitz: In a couple things I've read, having produced 2-3 working apps is better than knowing the "Head First" depth of 2-3 languages. Career wise, anyway.
[14:05:24] SCHAPiE: has joined #ruby
[14:05:41] henninb: has joined #ruby
[14:07:12] Megamos: has joined #ruby
[14:11:16] lepepe: has joined #ruby
[14:18:18] cyclonis_: has joined #ruby
[14:18:31] bvdw: has joined #ruby
[14:20:25] lord4163: has joined #ruby
[14:26:28] leitz: Well, I was doing good until everything blew up...
[14:28:06] lepepe: has joined #ruby
[14:31:28] dionysus69: has joined #ruby
[14:31:42] leitz: Ah...that's what happened...
[14:34:23] al2o3-cr: leitz: elaborate
[14:36:21] leitz: al2o3-cr, I'm an idiot. Standard root cause. :) In this case I added a lot of generator method calls to a builder setup routine, forgetting that I actually hadn't written those generators yet. I'm about at my limit for the day; coffee has worn off and i've been going for about 7 hours.
[14:37:45] queip: has joined #ruby
[14:38:06] al2o3-cr: leitz: you know what's better than coffee. BEER, then everything will become so much clearer :P
[14:39:00] leitz: al2o3-cr, sadly, I'm in America. It's a 90 minute drive to the only place I know that sells actual German beer, and my car is acting up. :(
[14:39:18] leitz: While America has it's good points, its beer isn't one of them...
[14:39:59] al2o3-cr: well we all know that hehe
[14:41:22] al2o3-cr: american beer is like flag wash
[14:41:56] leitz: It's worse for me; two American beers and I'm sick for three days.
[14:42:21] leitz: Two German beers and I'm very happy for about an hour. After that I'm snoring.
[14:43:01] al2o3-cr: strong stuff that german beer
[14:43:29] al2o3-cr: get on the spirits ;P
[14:43:51] leitz: Gotta love the Reinheitsgebot.
[14:45:15] al2o3-cr: leitz: aye :)
[14:48:54] al2o3-cr: i had belgium beer once can't remember the name went home started washing the pots lol :p
[14:49:31] leitz: Belgians seem to put more stuff in their beer. Haven't tried it, so I don't know if it makes me ill or not.
[14:50:26] leitz: Pumpkin spice beer and fish tacos are amoung the deepest and darkest sins. Eternal damnation, and all that.
[14:51:09] emptyflask: has joined #ruby
[14:52:03] al2o3-cr: pumpkin spice beer doesn't sound nice :(
[15:02:11] Inline: has joined #ruby
[15:04:23] claudiuinberlin: has joined #ruby
[15:04:54] AJA4350: has joined #ruby
[15:10:30] danst: havenwood: lmao I just commented out whole block if @websocket.open? and Time.now.to_i - @last_pong_at > @ping_timeout/1000
[15:10:46] danst: seems like it doesn't pingpong properly, but who cares on localhost
[15:13:46] AJA4351: has joined #ruby
[15:19:24] jenrzzz: has joined #ruby
[15:29:52] DTZUZO: has joined #ruby
[15:33:05] Megamos: has joined #ruby
[15:39:30] AJA4350: has joined #ruby
[15:46:27] lepepe: has joined #ruby
[15:50:10] AJA4350: has joined #ruby
[16:01:55] AJA4350: has joined #ruby
[16:15:34] queip: has joined #ruby
[16:16:40] Megamos: has joined #ruby
[16:39:22] cyclonis: has joined #ruby
[16:40:38] fphilipe_: has joined #ruby
[17:01:31] Swyper: has joined #ruby
[17:03:31] guardian: has joined #ruby
[17:07:08] johnny56: has joined #ruby
[17:15:22] naught-fowl: has joined #ruby
[17:18:49] englishm: has joined #ruby
[17:34:23] Dr_MDMA_MD: has joined #ruby
[17:35:40] m27frogy: has joined #ruby
[17:39:12] queip: has joined #ruby
[17:42:44] lepepe: has joined #ruby
[17:49:27] m27frogy: has joined #ruby
[18:01:04] fphilipe_: has joined #ruby
[18:01:27] naught-fowl: has joined #ruby
[18:20:08] jenrzzz: has joined #ruby
[18:21:24] dionysus69: has joined #ruby
[18:26:09] queip: has joined #ruby
[18:27:54] stormpack: has joined #ruby
[18:28:53] Swyper: has joined #ruby
[18:34:02] ellcs: has joined #ruby
[18:39:09] Stan: has joined #ruby
[18:40:03] lepepe: has joined #ruby
[18:40:23] queip: has joined #ruby
[18:54:37] tdy: has joined #ruby
[18:59:42] absolutejam3: has joined #ruby
[18:59:55] al2o3-cr: &>> r = 1..20; [r.min(2), r.max(2)].map { |s| s.inject :+ }.sum
[18:59:58] rubydoc: # => 42 (https://carc.in/#/r/7839)
[19:03:21] rubydoc: # => 42 (https://carc.in/#/r/783a)
[19:03:41] ytti: (golf version, had to tinker around quite a bit, and i'm proud of what i was able to do)
[19:04:23] Swyper: has joined #ruby
[19:04:30] al2o3-cr: f*ck, why didn't think of this?
[19:08:03] al2o3-cr: ytti: 86 / 2 was giving me one off
[19:09:39] al2o3-cr: &>> "2a".hex
[19:09:43] rubydoc: # => 42 (https://carc.in/#/r/783b)
[19:11:21] al2o3-cr: &>> "52".oct
[19:11:22] rubydoc: # => 42 (https://carc.in/#/r/783c)
[19:11:29] Exuma: has joined #ruby
[19:11:43] al2o3-cr: love the # 42
[19:13:50] Xeago: has joined #ruby
[19:19:49] al2o3-cr: &>> (-1.arg*13.42).round
[19:19:52] rubydoc: # => 42 (https://carc.in/#/r/783d)
[19:22:11] al2o3-cr: &>> $$-$$+"2a".hex
[19:22:12] rubydoc: # => 42 (https://carc.in/#/r/783e)
[19:24:00] al2o3-cr: i was born on the 42nd day
[19:31:29] Swyper: has joined #ruby
[19:34:27] quarters: has joined #ruby
[19:34:27] quarters: has joined #ruby
[19:37:28] gix: has joined #ruby
[19:39:34] al2o3-cr: &>> "*".unpack1('C')
[19:39:35] rubydoc: # => 42 (https://carc.in/#/r/783f)
[19:40:59] rubydoc: # => 42 (https://carc.in/#/r/783h)
[19:42:58] cagomez: has joined #ruby
[19:43:34] al2o3-cr: so many ways
[19:43:45] m27frogy_: has joined #ruby
[19:56:35] orbyt_: has joined #ruby
[20:00:17] Dbugger: has joined #ruby
[20:12:03] ElFerna: has joined #ruby
[20:14:07] fphilipe_: has joined #ruby
[20:16:06] banister`: has joined #ruby
[20:16:26] banister`: ph33r my split tunnel
[20:23:38] banister`: anyone alive?
[20:23:50] AndroidKitKat: has joined #ruby
[20:25:54] orbyt_: has joined #ruby
[20:29:47] havenwood: banister`: o/
[20:32:28] sagax: has joined #ruby
[20:33:30] cagomez: has joined #ruby
[20:34:09] cd: has joined #ruby
[20:42:15] cyclonis: has joined #ruby
[20:42:44] cyclonis: has joined #ruby
[20:43:57] lord4163: has joined #ruby
[20:45:19] jenrzzz: has joined #ruby
[20:47:16] Swyper: has joined #ruby
[20:49:57] dionysus69: has joined #ruby
[20:58:32] jenrzzz: has joined #ruby
[21:02:38] banister`: has joined #ruby
[21:13:42] matheusmoreira: has joined #ruby
[21:14:50] Swyper: has joined #ruby
[21:15:22] fphilipe_: has joined #ruby
[21:23:09] Dbugger: has joined #ruby
[21:25:38] cagomez: has joined #ruby
[21:28:59] dionysus69: has joined #ruby
[21:35:50] orbyt_: has joined #ruby
[21:44:07] ElFerna: has joined #ruby
[21:45:09] ElFerna: has joined #ruby
[21:47:49] duderonomy: has joined #ruby
[21:51:37] dionysus69: has joined #ruby
[22:00:31] ruby[bot]: has joined #ruby
[22:00:31] ChanServ: +o ruby[bot]
[22:20:47] Dbugger: has joined #ruby
[22:37:09] reaVer: has joined #ruby
[22:47:08] cagomez: has joined #ruby
[22:48:36] Nicmavr: has joined #ruby
[23:04:52] s3nd1v0g1us: has joined #ruby
[23:09:23] Mrgoose8: has joined #ruby
[23:10:27] lepepe: has joined #ruby
[23:16:27] fphilipe_: has joined #ruby
[23:22:11] diegobiavati: has joined #ruby
[23:24:19] sina: has joined #ruby
[23:25:58] cagomez: has joined #ruby
[23:33:12] cyclonis_: has joined #ruby
[23:36:57] cyclonis: has joined #ruby
[23:42:15] dviola: has joined #ruby
[23:44:42] cyclonis: has joined #ruby
[23:45:10] cyclonis: has joined #ruby
[23:45:23] jenrzzz: has joined #ruby
[23:45:37] cyclonis: has joined #ruby
[23:46:10] cyclonis: has joined #ruby
[23:51:05] tdy: has joined #ruby
[23:51:24] kristofferR: has joined #ruby
[23:53:03] cyclonis: has joined #ruby
[23:54:10] cyclonis: has joined #ruby
[23:54:44] cyclonis: has joined #ruby
[23:54:56] rfoust: has joined #ruby
[23:55:14] cyclonis: has joined #ruby
[23:55:41] cyclonis: has joined #ruby
[23:58:49] bitwinery: has joined #ruby