« Back to channel list

#ruby - 26 November 2018

« Back 1 day Forward 1 day »
[00:01:25] bambanx: has joined #ruby
[00:02:17] dbz: has joined #ruby
[00:05:10] irdr: has joined #ruby
[00:05:14] bobdobbs: has joined #ruby
[00:09:57] Demos[m]: has joined #ruby
[00:14:14] galeido: has joined #ruby
[00:25:18] graphene: has joined #ruby
[00:25:28] nicesignal: has joined #ruby
[00:28:14] jottr: has joined #ruby
[00:32:30] jonjitsu: has joined #ruby
[00:32:30] bastilian: has joined #ruby
[00:32:30] turt2live: has joined #ruby
[00:39:02] jottr: has joined #ruby
[00:43:51] bmurt: has joined #ruby
[00:48:10] dbz: has joined #ruby
[00:51:53] smutnysy1: has joined #ruby
[00:52:40] Iambchop: has left #ruby: ()
[01:03:09] _whitelogger: has joined #ruby
[01:18:26] jaddison: has joined #ruby
[01:21:06] dbz: has joined #ruby
[01:30:37] dbz: has joined #ruby
[01:41:39] Emmanuel_Chanel: has joined #ruby
[01:43:15] graphene: has joined #ruby
[01:54:12] elphe: has joined #ruby
[01:57:59] asphyxia: has joined #ruby
[02:00:26] Iambchop: has joined #ruby
[02:04:16] perique: has joined #ruby
[02:09:34] esrse: has joined #ruby
[02:40:02] jottr: has joined #ruby
[02:40:33] Exuma: has joined #ruby
[02:50:50] jottr: has joined #ruby
[02:57:09] sleetdrop: has joined #ruby
[03:01:39] sleetdrop: has joined #ruby
[03:02:31] kapil____: has joined #ruby
[03:02:42] DTZUZO: has joined #ruby
[03:14:01] hahuang6-: has joined #ruby
[03:16:22] Inline: has joined #ruby
[03:16:41] hutch: has joined #ruby
[03:18:30] cliluw: has joined #ruby
[03:27:00] sleetdrop: has joined #ruby
[03:29:19] arescorpio: has joined #ruby
[03:45:34] fifi-v: has joined #ruby
[03:46:35] fifi-v: hey all, how to test `ruby script.rb` outputs "xxxyyzz" in rspec?
[03:48:46] cd: has joined #ruby
[04:08:42] sp3ncer: has joined #ruby
[04:09:33] braincrash: has joined #ruby
[04:35:11] jaddison: has joined #ruby
[04:35:16] havenwood: fifi-v: In Minitest: assert_output('xxxyyzz') { print 'xxxyyzz' }
[04:35:34] havenwood: fifi-v: RSpec has output matchers too.
[04:37:45] Exuma: has joined #ruby
[04:37:58] meinside: has joined #ruby
[04:40:56] luminous: has joined #ruby
[04:51:48] jottr: has joined #ruby
[04:55:41] nchambers: has joined #ruby
[05:05:33] jaddison: has joined #ruby
[05:22:26] cd: has joined #ruby
[05:28:27] kristofferR: has joined #ruby
[05:48:48] beeman: has joined #ruby
[05:58:24] za1b1tsu: has joined #ruby
[05:58:30] dionysus69: has joined #ruby
[06:14:56] Nicmavr: has joined #ruby
[06:21:06] conta: has joined #ruby
[06:39:46] elphe: has joined #ruby
[06:40:12] mangold: has joined #ruby
[06:46:09] OrangeManBad: has joined #ruby
[06:49:31] aupadhye: has joined #ruby
[06:52:42] jottr: has joined #ruby
[07:03:36] jottr: has joined #ruby
[07:12:09] zapata: has joined #ruby
[07:34:43] lomex: has joined #ruby
[07:40:01] hiroaki: has joined #ruby
[07:47:15] phaul: has joined #ruby
[07:58:26] strk: has left #ruby: ()
[08:10:35] EmLOveAnh: has joined #ruby
[08:11:34] Guest47970: has joined #ruby
[08:11:37] OrangeManBad: has joined #ruby
[08:12:22] jnoon: has joined #ruby
[08:13:05] elphe: has joined #ruby
[08:15:42] jnoon: does anyone have a solid understanding of ruby on windows? i have a solid understanding of it on osx and linux, but hardly know anything about windows in general. but now i need to, unfortunately. im trying to understand stuff related to native extensions. ill just ask and if anyone knows, great!…
[08:16:28] marz_d`ghostman: has joined #ruby
[08:18:54] jnoon: my current understanding is basically rubyinstaller is the way people use ruby on windows. this is based on using mingw as the compiler. so if you build a native extension with say c++ code, that c++ code must also be compiled by mingw in order to work in ruby and link to other libraries. msvc for ruby is pretty much a non-starter and even if you can get it to work, you would be fighting most other gems that might not. is that
[08:25:00] mangold: has joined #ruby
[08:25:17] claudiuinberlin: has joined #ruby
[08:25:20] clemens3: has joined #ruby
[08:27:55] elphe: has joined #ruby
[08:31:53] im0nde: has joined #ruby
[08:34:44] im0nde: has joined #ruby
[08:36:57] vondruch: has joined #ruby
[08:41:17] burgestrand: has joined #ruby
[08:47:53] vqrs: has joined #ruby
[08:48:55] im0nde: has left #ruby: ()
[08:59:36] JamieD: has joined #ruby
[09:02:26] supergeek: has joined #ruby
[09:04:28] jottr: has joined #ruby
[09:09:35] elphe: has joined #ruby
[09:13:00] akem: has joined #ruby
[09:14:17] lomex: has joined #ruby
[09:14:48] mikecmpbll: has joined #ruby
[09:15:20] jottr: has joined #ruby
[09:17:33] elomatreb_: has joined #ruby
[09:17:36] x0F_: has joined #ruby
[09:20:22] mnem: has joined #ruby
[09:20:31] _phaul: has joined #ruby
[09:23:56] lypsis_: has joined #ruby
[09:23:59] ablackack: has joined #ruby
[09:24:12] Ca1us: has joined #ruby
[09:24:14] universal: has joined #ruby
[09:24:15] timmow_: has joined #ruby
[09:25:39] Fire-Dragon-DoL: has joined #ruby
[09:25:43] TheMoonMaster: has joined #ruby
[09:25:57] [spoiler]: has joined #ruby
[09:28:20] irdr: has joined #ruby
[09:28:48] mangold: has joined #ruby
[09:30:57] cnsvc: has joined #ruby
[09:31:23] lunarkitty7: has joined #ruby
[09:31:40] Furai: has joined #ruby
[09:34:10] lomex: has joined #ruby
[09:39:58] sameerynho: has joined #ruby
[09:43:21] wildermind: has joined #ruby
[09:52:57] gregf_: has joined #ruby
[09:58:25] roshanavand: has joined #ruby
[10:03:24] clemens3: has joined #ruby
[10:04:07] LinuxKnight: has joined #ruby
[10:07:53] keden: has joined #ruby
[10:13:27] roshanavand: has joined #ruby
[10:20:17] nicolasb: has joined #ruby
[10:28:43] jottr: has joined #ruby
[10:31:35] dhollinger: has joined #ruby
[10:33:05] elphe: has joined #ruby
[10:38:25] roshanavand: has joined #ruby
[10:38:48] kristofferR: has joined #ruby
[10:39:50] mangold: has joined #ruby
[10:40:02] johnny56: has joined #ruby
[10:47:22] conta: has joined #ruby
[10:52:46] klaas: has joined #ruby
[10:55:16] graphene: has joined #ruby
[10:57:51] conta: has joined #ruby
[11:02:47] cnsvc: has joined #ruby
[11:06:43] ldnunes: has joined #ruby
[11:11:25] fredmorcos: has joined #ruby
[11:31:06] kapil____: has joined #ruby
[11:34:51] blackmesa: has joined #ruby
[11:45:46] lomex: has joined #ruby
[11:50:37] mangold: has joined #ruby
[11:58:21] AJA4350: has joined #ruby
[12:02:28] conta: has joined #ruby
[12:05:06] conta: has joined #ruby
[12:08:53] cnsvc: has joined #ruby
[12:12:26] zapata: has joined #ruby
[12:28:45] GodFather: has joined #ruby
[12:46:21] lomex: has joined #ruby
[12:59:52] LightStalker: has joined #ruby
[13:10:53] graphene: has joined #ruby
[13:14:30] cnsvc: has joined #ruby
[13:20:37] elphe: has joined #ruby
[13:22:40] vondruch_: has joined #ruby
[13:26:11] bmurt: has joined #ruby
[13:28:54] madhatter: has joined #ruby
[13:30:00] awkwords: has joined #ruby
[13:34:20] elphe: has joined #ruby
[13:39:38] mostlybadfly: has joined #ruby
[13:51:26] mangold: has joined #ruby
[13:53:12] joast: has joined #ruby
[13:54:58] graphene: has joined #ruby
[13:56:47] hiroaki: has joined #ruby
[13:57:00] za1b1tsu: has joined #ruby
[13:59:58] blackmesa: has joined #ruby
[14:08:00] jcalla: has joined #ruby
[14:08:55] alan_w: has joined #ruby
[14:22:13] graphene: has joined #ruby
[14:24:44] lomex: has joined #ruby
[14:25:27] crankhar1er: has joined #ruby
[14:26:21] elphe: has joined #ruby
[14:26:26] Xiti: has joined #ruby
[14:29:35] jcalla: has joined #ruby
[14:32:11] blackmesa: has joined #ruby
[14:36:12] elphe: has joined #ruby
[14:38:25] orbyt_: has joined #ruby
[14:40:26] JamieD: has joined #ruby
[14:42:22] nchambers: has joined #ruby
[14:44:20] cnsvc: has joined #ruby
[14:46:03] elphe: has joined #ruby
[14:51:56] Inline: has joined #ruby
[14:54:25] akaiiro: has joined #ruby
[14:55:03] clemens3: has joined #ruby
[14:55:53] elphe: has joined #ruby
[15:05:45] elphe: has joined #ruby
[15:05:53] rippa: has joined #ruby
[15:06:33] beeman: has joined #ruby
[15:07:50] bhaak: has joined #ruby
[15:08:08] vondruch: has joined #ruby
[15:09:31] gnufied: has joined #ruby
[15:11:16] hutch: has joined #ruby
[15:11:55] Renich: has joined #ruby
[15:13:20] vondruch: has joined #ruby
[15:17:15] graphene: has joined #ruby
[15:25:21] elphe: has joined #ruby
[15:34:56] c0ncealed4: has joined #ruby
[15:35:11] elphe: has joined #ruby
[15:38:59] bauruine: has joined #ruby
[15:39:36] polishdub: has joined #ruby
[15:41:16] claudiuinberlin: has joined #ruby
[15:45:02] elphe: has joined #ruby
[15:46:41] cnsvc: has joined #ruby
[15:48:15] maryo: has joined #ruby
[15:56:24] venmx: has joined #ruby
[16:04:42] elphe: has joined #ruby
[16:07:30] GinoMan: has joined #ruby
[16:10:27] conta: has joined #ruby
[16:24:24] elphe: has joined #ruby
[16:32:17] thinkpad: has joined #ruby
[16:34:12] elphe: has joined #ruby
[16:34:46] jaddison: has joined #ruby
[16:38:22] jaddison: has joined #ruby
[16:39:56] Guest47970: has joined #ruby
[16:43:30] mangold: has joined #ruby
[16:45:13] graphene: has joined #ruby
[16:49:20] cnsvc: has joined #ruby
[16:53:54] elphe: has joined #ruby
[16:54:26] graphene: has joined #ruby
[16:54:41] Nicmavr: has joined #ruby
[16:55:19] al2o3-cr: has joined #ruby
[17:03:47] elphe: has joined #ruby
[17:07:47] houhoulis: has joined #ruby
[17:07:51] akaiiro: has joined #ruby
[17:07:55] cthu|: has joined #ruby
[17:08:43] mostlybadfly: has joined #ruby
[17:11:16] lomex: has joined #ruby
[17:11:49] kapil____: has joined #ruby
[17:17:05] elphe: has joined #ruby
[17:17:25] Guest21835: has joined #ruby
[17:18:12] graphene: has joined #ruby
[17:23:38] cd: has joined #ruby
[17:24:52] doubledup: has joined #ruby
[17:25:35] doubledup: has joined #ruby
[17:26:52] Rapture: has joined #ruby
[17:27:02] elphe: has joined #ruby
[17:29:12] graphene: has joined #ruby
[17:30:29] Eiam: has joined #ruby
[17:30:30] graphene: has joined #ruby
[17:33:28] Aqo: has joined #ruby
[17:36:48] elphe: has joined #ruby
[17:44:33] maryo: has joined #ruby
[17:45:41] GinoMan2440: has joined #ruby
[17:49:02] \void: has joined #ruby
[17:51:30] cnsvc: has joined #ruby
[17:52:59] orbyt_: has joined #ruby
[17:53:13] sanscoeur: has joined #ruby
[17:56:29] elphe: has joined #ruby
[17:58:15] lomex: has joined #ruby
[17:59:44] Dbugger: has joined #ruby
[18:01:26] reber: has joined #ruby
[18:01:32] reber__: has joined #ruby
[18:02:09] _phaul: has joined #ruby
[18:06:15] blackmesa: has joined #ruby
[18:10:09] eckhardt: has joined #ruby
[18:16:08] elphe: has joined #ruby
[18:16:35] cd: has joined #ruby
[18:18:14] Puffball: has joined #ruby
[18:18:24] orbyt_: has joined #ruby
[18:20:34] dbz: has joined #ruby
[18:21:32] dbz_: has joined #ruby
[18:26:16] conta2: has joined #ruby
[18:29:17] blackmesa: has joined #ruby
[18:35:47] elphe: has joined #ruby
[18:43:56] _phaul: has joined #ruby
[18:46:45] Puffball: has joined #ruby
[18:47:24] kristofferR: has joined #ruby
[18:48:40] chouhoulis: has joined #ruby
[18:50:19] perique: has joined #ruby
[18:51:19] lxsameer: has joined #ruby
[18:52:45] cnsvc: has joined #ruby
[18:53:45] mikecmpbll: has joined #ruby
[18:54:16] crankhar1er: has joined #ruby
[18:55:28] elphe: has joined #ruby
[19:01:28] orbyt_: has joined #ruby
[19:03:36] mochiyoda: has joined #ruby
[19:05:24] elphe: has joined #ruby
[19:15:09] elphe: has joined #ruby
[19:16:51] gix: has joined #ruby
[19:21:26] dkmuelle1: has joined #ruby
[19:22:08] dkmuelle1: has joined #ruby
[19:24:39] Sylario: has joined #ruby
[19:24:59] elphe: has joined #ruby
[19:26:18] dkmueller: has joined #ruby
[19:29:44] dkmueller: has joined #ruby
[19:30:03] pbodev1: has joined #ruby
[19:34:49] elphe: has joined #ruby
[19:44:45] elphe: has joined #ruby
[19:52:06] blackmesa: has joined #ruby
[19:57:45] conta: has joined #ruby
[19:57:50] dellavg_: has joined #ruby
[19:58:26] mostlybadfly: has joined #ruby
[19:59:50] blackmesa1: has joined #ruby
[20:00:49] cnsvc: has joined #ruby
[20:03:19] peirama: has joined #ruby
[20:04:25] elphe: has joined #ruby
[20:14:16] elphe: has joined #ruby
[20:22:45] SeepingN: has joined #ruby
[20:24:09] elphe: has joined #ruby
[20:25:18] Milos: has joined #ruby
[20:34:00] elphe: has joined #ruby
[20:35:11] jaddison: has joined #ruby
[20:42:19] Fernando-Basso: has joined #ruby
[20:42:25] elphe: has joined #ruby
[20:44:03] rubydoc: has joined #ruby
[20:51:20] safetypin: has joined #ruby
[20:51:59] ausmat: has joined #ruby
[20:55:27] blackmesa: has joined #ruby
[20:59:20] snowy: has joined #ruby
[21:07:36] awkwords_: has joined #ruby
[21:09:00] orbyt_: has joined #ruby
[21:10:43] galeido: has joined #ruby
[21:11:33] chussenot: has joined #ruby
[21:15:40] beowuff: has joined #ruby
[21:18:57] snowy: has joined #ruby
[21:20:16] graphene: has joined #ruby
[21:23:25] beefjoe: has joined #ruby
[21:29:33] akem: has joined #ruby
[21:30:49] snowy: has joined #ruby
[21:31:25] druonysus: has joined #ruby
[21:46:29] dviola: has joined #ruby
[21:54:20] snowy: has joined #ruby
[21:56:04] chouhoulis: has joined #ruby
[21:58:29] Radar: How would I make a Ruby program pause, and then continue after _any_ key press? That's including modifier keys, like Cmd, Shift, etc.
[21:58:50] Radar: I can make Ruby do it for every regular key
[22:14:00] snowy: has joined #ruby
[22:18:53] orbyt_: has joined #ruby
[22:19:49] snowy: has joined #ruby
[22:21:06] dbz: has joined #ruby
[22:22:55] nchambers: has joined #ruby
[22:24:32] alan_w: has joined #ruby
[22:28:54] aspiers: has joined #ruby
[22:29:01] lupine: has joined #ruby
[22:29:53] eclm: has joined #ruby
[22:36:26] orbyt_: has joined #ruby
[22:38:44] elphe: has joined #ruby
[22:43:19] phaul: has joined #ruby
[22:43:50] GodFather: has joined #ruby
[22:50:45] Inline: has joined #ruby
[22:51:22] orbyt_: has joined #ruby
[22:53:08] Inline: has joined #ruby
[22:54:19] agent_white: has joined #ruby
[22:55:04] elphe: has joined #ruby
[23:05:30] zenspider: Radar: a plain ruby script? not sure if that's possible.
[23:05:57] zenspider: Radar: I _believe_ you could do it with something like my graphics gem... using SDL's key scanning
[23:06:02] Radar: zenspider: yeah, a plain Ruby script. I don't think it's possible either. I'll just take my chances that whoever's going to press "any key" doesn't try pressing one of the modifiers.
[23:06:27] zenspider: just say "any letter" :P
[23:06:45] Radar: hahaha :) That'll give away my trick.
[23:07:35] Radar: I'm writing a Ruby script as a part of trick that makes it seem like a "random" algorithm always determines a selected playing card. Trying to work out the flow of the trick at the moment.
[23:08:38] Radar: Like this, but deterministic: https://gist.github.com/radar/d06939eccc3d3088b3c1ab5e74b15a68
[23:16:15] eam: Radar: cannot be done through a terminal, but you can do it with any native windowing gem
[23:16:36] Radar: eam: has to be a terminal for this trick to be seamless (I think)
[23:16:58] Radar: I think I'll make it just so it's me typing instead of a different person
[23:17:01] zenspider: oh. maybe the curses library can do it?
[23:17:13] eam: you can probably create a windowing context from a program that looks like a terminal app
[23:17:29] eam: it'd need to be run in a local terminal of course
[23:17:54] eam: zenspider: I'm pretty sure there's simply no data passed along the tty when those keys are pressed
[23:18:07] eam: ^C sends one byte
[23:18:50] zenspider: looks like it. it has #get_key_modifiers
[23:26:55] eam: zenspider: you sent me on a goose chase because I was sure it's impossible. Turns out that method only works if you're linking PDCurses (not ncurses, etc) and the way PDCurses does it is .... create a native windowing context
[23:27:06] eam: I think PDCurses only supports that method on windows
[23:28:13] eam: oh maybe not, they use sdl to set it on some platforms :)
[23:28:48] eam: https://github.com/wmcbrine/PDCurses/blob/master/sdl2/pdckbd.c#L175
[23:29:45] eam: so for sure, can't extract it from the terminal -- but if you're a terminal program and happen to know you can access the windowing context you can create one invisibly and interact with the keyboard directly
[23:31:25] jottr: has joined #ruby
[23:32:07] jaddison: has joined #ruby
[23:35:34] chussenot: has joined #ruby
[23:40:57] beefjoe: has joined #ruby
[23:50:53] ur5us: has joined #ruby