« Back to channel list

#ruby - 04 April 2018

Forward 1 day »
[06:49:42] helpa: has joined #ruby
[06:50:03] psmolen: has joined #ruby
[06:50:30] reber: has joined #ruby
[06:50:49] rshetty: has joined #ruby
[06:52:50] phaul: has joined #ruby
[06:55:34] crankharder: has joined #ruby
[06:55:45] sina: has joined #ruby
[06:59:01] amelliaa: has joined #ruby
[07:00:50] ramfjord: has joined #ruby
[07:09:16] ramfjord: has joined #ruby
[07:11:01] clemens3: has joined #ruby
[07:13:06] amar: has joined #ruby
[07:13:18] _main_: has joined #ruby
[07:13:35] suukim: has joined #ruby
[07:14:13] schneider: has joined #ruby
[07:18:26] _main_: has joined #ruby
[07:21:24] rshetty: has joined #ruby
[07:24:16] venmx: has joined #ruby
[07:25:24] burgestrand: has joined #ruby
[07:31:58] ByronJohnson: has joined #ruby
[07:33:21] alfiemax: has joined #ruby
[07:35:16] claudiuinberlin: has joined #ruby
[07:39:03] rshetty: has joined #ruby
[07:42:16] cschneid_: has joined #ruby
[07:43:41] guille-moe: has joined #ruby
[07:47:29] ramfjord: has joined #ruby
[07:48:04] ndrst: has joined #ruby
[07:49:31] alfiemax: has joined #ruby
[07:49:44] alfiemax: has joined #ruby
[07:49:50] iMadper: has joined #ruby
[07:52:35] rshetty: has joined #ruby
[07:53:17] workmad3: has joined #ruby
[07:56:28] dionysus69: has joined #ruby
[07:56:28] tomphp: has joined #ruby
[08:00:32] chmurifree: has joined #ruby
[08:15:35] mikecmpbll: has joined #ruby
[08:25:49] rshetty: has joined #ruby
[08:30:00] modin: has joined #ruby
[08:31:16] _aeris_: has joined #ruby
[08:32:16] Beams: has joined #ruby
[08:32:41] ellcs: has joined #ruby
[08:36:01] amar: has joined #ruby
[08:41:58] shoogz: has joined #ruby
[08:42:00] redlegion: has joined #ruby
[08:42:27] _aeris_: has joined #ruby
[08:42:42] rshetty: has joined #ruby
[08:44:40] gnotc: has joined #ruby
[08:45:03] einarj: has joined #ruby
[08:48:11] erlend: has joined #ruby
[08:52:27] rshetty: has joined #ruby
[08:56:01] jnollette: has joined #ruby
[08:57:06] venmx: has joined #ruby
[09:02:52] nicesignal: has joined #ruby
[09:04:10] pandaant: has joined #ruby
[09:04:49] dr3wo: has joined #ruby
[09:08:13] iamarun: has joined #ruby
[09:08:50] marr: has joined #ruby
[09:08:53] iamarun: has joined #ruby
[09:10:53] Beams: has joined #ruby
[09:11:01] cadillac_: has joined #ruby
[09:11:49] ramfjord: has joined #ruby
[09:13:59] Ryzokuken: has joined #ruby
[09:14:12] Azure: has joined #ruby
[09:15:47] Fysicus: has joined #ruby
[09:17:19] alfiemax: has joined #ruby
[09:19:25] workmad3: has joined #ruby
[09:21:26] fl3sh: has left #ruby: ("WeeChat 1.8-dev")
[09:29:41] Megamos: has joined #ruby
[09:40:35] boxrick: has joined #ruby
[09:49:34] iamarun: has joined #ruby
[09:49:40] psychicist__: has joined #ruby
[09:52:21] Fysicus: has joined #ruby
[09:52:28] f1n94: has joined #ruby
[09:53:30] Mike11: has joined #ruby
[10:06:17] hfp_work: has joined #ruby
[10:06:42] Mike111: has joined #ruby
[10:06:43] facest: has joined #ruby
[10:06:46] schneider-: has joined #ruby
[10:07:21] gix: has joined #ruby
[10:07:25] b10s_: has joined #ruby
[10:07:55] mattp__: has joined #ruby
[10:07:58] clemens3_: has joined #ruby
[10:08:15] _musl_: has joined #ruby
[10:08:19] reber: has joined #ruby
[10:08:36] sunrunner202: has joined #ruby
[10:09:05] chamunks-: has joined #ruby
[10:09:19] einarj_: has joined #ruby
[10:09:19] m4rCsi_: has joined #ruby
[10:10:12] Toledo: has joined #ruby
[10:10:17] vald: has joined #ruby
[10:10:27] hexreel_: has joined #ruby
[10:10:38] reaVer_: has joined #ruby
[10:10:43] ozzloy_: has joined #ruby
[10:10:56] ule_: has joined #ruby
[10:11:00] pandaant_: has joined #ruby
[10:11:01] krandi: has joined #ruby
[10:11:13] nicesignal: has joined #ruby
[10:11:19] shadeslayer_: has joined #ruby
[10:11:42] funnel_: has joined #ruby
[10:11:46] venmx_: has joined #ruby
[10:11:46] atta_: has joined #ruby
[10:11:54] TvL2386_: has joined #ruby
[10:12:01] Drakevr_: has joined #ruby
[10:12:05] yeticry_: has joined #ruby
[10:12:28] c0ncealed1: has joined #ruby
[10:13:22] axsuul-: has joined #ruby
[10:13:44] eblip: has joined #ruby
[10:14:09] InfinityFye: has joined #ruby
[10:14:29] KramerC_: has joined #ruby
[10:14:30] DenSchub_: has joined #ruby
[10:14:32] SuperChickeNES: has joined #ruby
[10:14:33] duper`: has joined #ruby
[10:14:38] segy_: has joined #ruby
[10:14:52] pmodin: has joined #ruby
[10:14:53] naquad: has joined #ruby
[10:14:58] tomaw_: has joined #ruby
[10:15:07] zachary: has joined #ruby
[10:15:08] Vashy-: has joined #ruby
[10:15:16] LenPayne_: has joined #ruby
[10:16:11] cliluw: has joined #ruby
[10:16:18] jamesaxl: has joined #ruby
[10:16:28] ramfjord: has joined #ruby
[10:16:33] Ryzokuken: has joined #ruby
[10:17:05] brodul: has joined #ruby
[10:17:07] ferr: has joined #ruby
[10:17:11] garyserj: has joined #ruby
[10:17:20] jordanm: has joined #ruby
[10:18:19] InfinityFye: has left #ruby: ()
[10:18:59] cgfbee: has joined #ruby
[10:21:23] ferr: has left #ruby: ()
[10:22:08] Cyrus1: has joined #ruby
[10:22:17] Eldritch: has joined #ruby
[10:22:33] Megamos: has joined #ruby
[10:22:41] z64: has joined #ruby
[10:22:51] PixeLInc: has joined #ruby
[10:23:29] kies: has joined #ruby
[10:27:09] jnollette: has joined #ruby
[10:28:30] Toledo: has joined #ruby
[10:28:35] krandi: has joined #ruby
[10:28:38] c0ncealed1: has joined #ruby
[10:29:01] kapil___: has joined #ruby
[10:32:06] Beams: has joined #ruby
[10:34:34] cschneid_: has joined #ruby
[10:35:47] jnollette: has joined #ruby
[10:35:50] Papierkorb: has joined #ruby
[10:35:57] kapil___: has joined #ruby
[10:41:10] mostlybadfly: has joined #ruby
[10:41:19] mostlybadfly: has joined #ruby
[10:42:23] Azure: has joined #ruby
[10:44:54] WebDawg: has joined #ruby
[10:45:51] mnemon: has joined #ruby
[10:48:05] octomancer: has joined #ruby
[10:54:16] Papierkorb: has left #ruby: ("Konversation terminated!")
[10:56:57] erlend: has joined #ruby
[11:00:44] schneider-: has joined #ruby
[11:02:31] Zaab1t: has joined #ruby
[11:03:31] InfinityFye: has joined #ruby
[11:06:50] schneider-: has joined #ruby
[11:09:58] apparition: has joined #ruby
[11:11:42] rshetty: has joined #ruby
[11:14:09] Beams: has joined #ruby
[11:15:41] ramfjord: has joined #ruby
[11:19:14] InfinityFye: has left #ruby: ("Leaving")
[11:20:57] mjolnird: has joined #ruby
[11:21:27] mjolnird: has joined #ruby
[11:24:32] schneider-: has joined #ruby
[11:32:55] burgestrand: has joined #ruby
[11:35:41] Fysicus: has joined #ruby
[11:42:17] Cavallari: has joined #ruby
[11:42:56] Megamos: has joined #ruby
[11:45:11] Fysicus: has joined #ruby
[11:48:04] ldnunes: has joined #ruby
[11:51:43] schneider-: has joined #ruby
[11:53:14] AJA4350: has joined #ruby
[11:55:55] tvw: has joined #ruby
[11:56:05] rshetty: has joined #ruby
[11:56:12] rshetty: has joined #ruby
[12:00:50] rshetty: has joined #ruby
[12:00:59] rshetty: has joined #ruby
[12:01:21] duderonomy: has joined #ruby
[12:02:14] rshetty: has joined #ruby
[12:02:51] synthroid: has joined #ruby
[12:04:03] jnollette_: has joined #ruby
[12:04:14] qyliss: has joined #ruby
[12:04:14] damonf: has joined #ruby
[12:04:58] rshetty: has joined #ruby
[12:05:04] vondruch_: has joined #ruby
[12:05:58] lupine: has joined #ruby
[12:06:19] tomphp: has joined #ruby
[12:06:39] schneider-: has joined #ruby
[12:07:09] synthroid: has joined #ruby
[12:11:43] PaulePanter: has joined #ruby
[12:11:59] rfoust: has joined #ruby
[12:16:21] ogres: has joined #ruby
[12:17:18] ramfjord: has joined #ruby
[12:18:36] jamesyu: has joined #ruby
[12:22:05] amatas_: has joined #ruby
[12:24:03] ldnunes: has joined #ruby
[12:26:01] cschneid_: has joined #ruby
[12:31:35] m_s__saints: has joined #ruby
[12:32:22] m_s__saints: has left #ruby: ()
[12:33:23] jeffreylevesque: has joined #ruby
[12:33:43] bmurt: has joined #ruby
[12:35:56] Beams: has joined #ruby
[12:36:41] jamesyu: has joined #ruby
[12:39:21] m_s__saints: has joined #ruby
[12:39:45] m_s__saints: has left #ruby: ()
[12:40:44] coderphive: has joined #ruby
[12:41:30] jeffreylevesque: has joined #ruby
[12:42:31] k0mpa: has joined #ruby
[12:49:44] iMadper: has joined #ruby
[12:52:17] n0m4d1c: has joined #ruby
[12:52:19] jnollette: has joined #ruby
[12:56:24] schneider-: has joined #ruby
[13:00:21] r2: has joined #ruby
[13:01:55] rshetty: has joined #ruby
[13:05:37] tcopeland: has joined #ruby
[13:05:40] erlend: has joined #ruby
[13:06:41] sebastianb: has joined #ruby
[13:09:42] vondruch_: has joined #ruby
[13:10:45] synthroid: has joined #ruby
[13:11:51] jcalla: has joined #ruby
[13:14:37] n0m4d1c: has joined #ruby
[13:16:43] John_Ivan: has joined #ruby
[13:16:43] John_Ivan: has joined #ruby
[13:18:44] _aeris_: has joined #ruby
[13:19:15] ramfjord: has joined #ruby
[13:25:06] quobo: has joined #ruby
[13:28:16] cremes77: has joined #ruby
[13:30:27] John_Ivan: has joined #ruby
[13:30:27] John_Ivan: has joined #ruby
[13:35:59] kith: has joined #ruby
[13:36:37] rshetty: has joined #ruby
[13:39:23] ule: has joined #ruby
[13:40:03] Mike11: has joined #ruby
[13:42:01] cschneid_: has joined #ruby
[13:47:39] Tempesta: has joined #ruby
[13:54:11] jrafanie: has joined #ruby
[13:56:37] ltt: has joined #ruby
[13:57:49] Beams: has joined #ruby
[13:58:26] duderonomy: has joined #ruby
[13:59:21] Mikasi: has joined #ruby
[14:00:28] rshetty: has joined #ruby
[14:00:32] arooni: has joined #ruby
[14:01:13] mikecmpb_: has joined #ruby
[14:02:47] bmurt: has joined #ruby
[14:07:20] Rapture: has joined #ruby
[14:12:07] John_Ivan: has joined #ruby
[14:12:07] John_Ivan: has joined #ruby
[14:13:15] Beams: has joined #ruby
[14:13:48] oleo: has joined #ruby
[14:16:22] ramfjord: has joined #ruby
[14:18:56] cschneid_: has joined #ruby
[14:19:27] torch: has joined #ruby
[14:27:17] x0F: has joined #ruby
[14:27:47] ltt: has joined #ruby
[14:28:37] suukim: has joined #ruby
[14:28:39] Psybur_: has joined #ruby
[14:31:43] Psybur: has joined #ruby
[14:37:40] Janky: has joined #ruby
[14:39:02] Janky: Hey guys, I have about a thousand text files that each have 33 lines of text in them. How can I output all of this on a csv where each file is a new row and each line in the original text is a column? Thank you.
[14:40:41] ellcs: @Janky: are those files located in the same directory?
[14:40:43] Beams: has joined #ruby
[14:43:34] mikecmpbll: has joined #ruby
[14:43:36] netherwolfe: has joined #ruby
[14:47:19] chouhoulis: has joined #ruby
[14:47:43] burgestrand: has joined #ruby
[14:47:59] shinnya: has joined #ruby
[14:49:50] Psybur: has joined #ruby
[14:49:50] Psybur: has joined #ruby
[14:51:10] mlehrer: has joined #ruby
[14:51:31] phate408: has joined #ruby
[14:52:15] erlingur: has joined #ruby
[14:53:52] m27frogy: has joined #ruby
[14:54:20] hinbody: has joined #ruby
[14:54:23] tcopeland: has joined #ruby
[14:55:18] synthroid: has joined #ruby
[14:55:56] lunarkitty7: has joined #ruby
[14:57:15] shoogz: has joined #ruby
[14:57:54] Janky: @ellcs yes
[14:59:01] edwardly: has joined #ruby
[14:59:02] edwardly: has joined #ruby
[14:59:10] erlingur: has joined #ruby
[15:01:12] amar: has joined #ruby
[15:01:14] CrazyEddy: has joined #ruby
[15:01:18] gizmore: has joined #ruby
[15:01:40] pastorinni: has joined #ruby
[15:03:22] cschneid_: has joined #ruby
[15:06:00] FrankD_: has joined #ruby
[15:07:58] ellcs: @Janky: Have a look at Dir to list all files in your directory. - https://ruby-doc.org/core-2.2.2/Dir.html
[15:07:58] ellcs: Open your files with File::open - https://ruby-doc.org/core-2.2.2/File.html#method-c-open
[15:08:18] drale2k_: has joined #ruby
[15:09:17] rshetty: has joined #ruby
[15:09:39] cremes77: has joined #ruby
[15:12:00] eckhardt: has joined #ruby
[15:13:36] ramfjord: has joined #ruby
[15:13:48] Janky: thank you
[15:14:28] erlend: has joined #ruby
[15:15:16] [Butch]: has joined #ruby
[15:16:16] cyberg: has joined #ruby
[15:18:21] synthroid: has joined #ruby
[15:18:43] tomphp: has joined #ruby
[15:18:45] cagomez: has joined #ruby
[15:19:46] rfoust: has joined #ruby
[15:21:57] synthroid: has joined #ruby
[15:25:09] cagomez: has joined #ruby
[15:25:42] n008f4g_: has joined #ruby
[15:26:27] rshetty: has joined #ruby
[15:30:31] Beams: has joined #ruby
[15:30:55] cagomez: has joined #ruby
[15:32:21] InfinityFye: has joined #ruby
[15:32:38] coderphive: has joined #ruby
[15:33:24] cagomez: has joined #ruby
[15:34:21] Psybur: has joined #ruby
[15:34:21] Psybur: has joined #ruby
[15:35:17] n0m4d1c: has joined #ruby
[15:37:19] cagomez: has joined #ruby
[15:40:49] _rshetty_: has joined #ruby
[15:42:53] cremes77: has joined #ruby
[15:42:58] John_Ivan: has joined #ruby
[15:42:58] John_Ivan: has joined #ruby
[15:44:27] rshetty: has joined #ruby
[15:44:39] schneider-: has joined #ruby
[15:44:52] amar_: has joined #ruby
[15:46:25] Psybur: has joined #ruby
[15:48:03] cremes77: has joined #ruby
[15:50:01] Fysicus: has joined #ruby
[15:50:10] phaul: has joined #ruby
[15:50:12] Sylario: has joined #ruby
[15:53:08] x0F: has joined #ruby
[15:53:29] erlingur: has joined #ruby
[15:57:57] cremes77: has joined #ruby
[15:58:31] noobineer: has joined #ruby
[15:59:28] apeiros: has joined #ruby
[16:01:29] erlingur: has joined #ruby
[16:02:09] JJonah: I am converting an application to a gem, and so I need to move the dependencies in my Gemfile into gemspec. Curious if there are any tools that do this automatically?
[16:03:14] Fysicus: has joined #ruby
[16:04:54] lupine: has joined #ruby
[16:05:14] schneider-: has joined #ruby
[16:09:48] sauvin: has joined #ruby
[16:11:20] tolerablyjake: has joined #ruby
[16:12:23] conta: has joined #ruby
[16:13:22] shoogz: has joined #ruby
[16:13:53] schneider-: has joined #ruby
[16:16:19] lupine: has joined #ruby
[16:16:44] stormpack: has joined #ruby
[16:16:48] havenwood: I'm happy we'll not be seeing the mkmf/ruby-dev question over and over anymore after this commit: https://github.com/ruby/ruby/commit/f961bad19172b86158cc4c70bd3b2b5a26cd7ea8
[16:20:16] havenwood: JJonah: I don't know of a tool that does that but it should be fairly easy to write one.
[16:21:07] ramfjord: has joined #ruby
[16:21:19] amar: has joined #ruby
[16:22:07] havenwood: JJonah: You'd want the exact versions pinned in the Gemfile.lock, right?
[16:22:28] dionysus69: has joined #ruby
[16:23:00] harrycs: has joined #ruby
[16:23:08] havenwood: That seems far preferable to the versions in the Gemfile, since that'd effectively be a `bundle update`, ignoring the Gemfile.lock.
[16:23:14] Fysicus: has joined #ruby
[16:23:55] andikr: has joined #ruby
[16:24:16] n0m4d1c: has joined #ruby
[16:25:45] jcarl43: has joined #ruby
[16:25:52] dminuoso: havenwood: Haha.
[16:25:59] dminuoso: havenwood: It just took 10 years for that change!
[16:26:18] dminuoso: But then again, I could have made that PR myself..
[16:26:33] dminuoso: havenwood: I just love the Japanese English: "You might have to install separate package for the [...]"
[16:26:49] dminuoso: and that weirdly placed comma :D
[16:27:20] chouhoulis: has joined #ruby
[16:28:04] sepp2k: has joined #ruby
[16:28:29] conta: has joined #ruby
[16:29:30] n008f4g_: has joined #ruby
[16:31:35] havenwood: dminuoso: Aye, we should have PRed it since dozens of folk ask it each year.
[16:31:48] havenwood: JJonah: Would you want all groups in the gemspec?
[16:32:35] havenwood: I guess it depends on how you're using the gem whether you'd want to leave some groups in the Gemfile. ¯\_(ツ)_/¯
[16:33:04] erlend: has joined #ruby
[16:33:20] JJonah: havenwood: yeah, that probably makes sense re: the lock. In my particular case, I think I'll just spend the 5minutes to do by hand now :). I just figured if there was a standard thing people did, I'd use that...
[16:35:25] raynold: has joined #ruby
[16:35:30] nadir: has joined #ruby
[16:36:02] darkhanb: has joined #ruby
[16:36:08] havenwood: JJonah: ruby -rbundler -e "puts Bundler.load.gems.map { |gem| \"s.add_runtime_dependency '#{gem.name}', '#{gem.version}'\" }"
[16:37:21] JJonah: havenwood: thanks
[16:37:26] havenwood: JJonah: you're welcome
[16:39:25] raynold: ahh it's a wonderful day
[16:43:26] Psybur: has joined #ruby
[16:44:58] Psybur: has joined #ruby
[16:45:21] cschneid_: has joined #ruby
[16:45:35] Mike111: has joined #ruby
[16:48:24] erlingur: has joined #ruby
[16:49:07] phate408: has joined #ruby
[16:49:15] cschneid_: has joined #ruby
[16:49:51] Ryzokuken: has joined #ruby
[16:50:15] alex``: has joined #ruby
[16:51:27] Cthulu201: has joined #ruby
[16:52:33] nicesignal: has joined #ruby
[16:52:57] psmolen: has joined #ruby
[16:53:21] edwardly: has joined #ruby
[16:53:21] edwardly: has joined #ruby
[16:54:24] orbyt_: has joined #ruby
[16:54:31] Janky: has left #ruby: ()
[16:55:19] lunarkitty7: has joined #ruby
[16:57:15] pilne: has joined #ruby
[16:58:28] cagomez: has joined #ruby
[16:59:50] amar_: has joined #ruby
[17:01:00] gemini315: has joined #ruby
[17:01:19] amar_: has joined #ruby
[17:03:50] claudiuinberlin: has joined #ruby
[17:04:05] pd2000: has joined #ruby
[17:06:28] cagomez: has joined #ruby
[17:06:50] gemini315: I can't seem to find #rubyonrails channel
[17:07:04] apeiros: it's literally #rubyonrails
[17:07:41] gemini315: that's exaclty what I entered but when I try to join, nothing happens
[17:08:05] dminuoso: gemini315: Check your status log. You need to be identified with NickServ in order to join the channel.
[17:08:15] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:08:30] shoogz: has joined #ruby
[17:08:47] gemini315: thanks, will try that
[17:09:17] shoogz: has joined #ruby
[17:11:31] gnotc: has joined #ruby
[17:13:10] erlingur: has joined #ruby
[17:13:57] John_Ivan: has joined #ruby
[17:13:57] John_Ivan: has joined #ruby
[17:14:17] ramfjord: has joined #ruby
[17:16:52] Janky: has joined #ruby
[17:16:59] Janky: has left #ruby: ()
[17:18:50] clemens3_: has joined #ruby
[17:20:56] einarj: has joined #ruby
[17:21:00] Cavallari: has joined #ruby
[17:22:25] orbyt_: has joined #ruby
[17:24:04] cadillac_: has joined #ruby
[17:24:59] pd2000: has joined #ruby
[17:25:14] mikhael_k33hl: has joined #ruby
[17:25:37] Asher: has joined #ruby
[17:26:05] TinkerT: has joined #ruby
[17:26:06] mikhael_k33hl: Using concurrent-ruby, when I call @pool.kill, docs says it'll call thread.kill to its threads, how do I handle that so my app could do something when that happens?
[17:26:07] chouhoul_: has joined #ruby
[17:27:29] apeiros: they didn't state in the docs that it's a bad idea?
[17:27:52] quobo: has joined #ruby
[17:28:08] apeiros: Thread#kill is a last-resort option. it raises *anywhere* in your thread's code.
[17:28:10] \void: has joined #ruby
[17:28:21] apeiros: if you can, add a proper way to shut down your workers
[17:29:01] lupine: has joined #ruby
[17:30:20] imode: has joined #ruby
[17:31:25] amirali: has joined #ruby
[17:34:33] duderonomy: has joined #ruby
[17:36:50] amirali: has joined #ruby
[17:37:51] gemini315: has joined #ruby
[17:43:09] t0rchh: has joined #ruby
[17:43:12] face: has joined #ruby
[17:45:54] biberu: has joined #ruby
[17:47:19] gnotc: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:48:28] pd2000: has joined #ruby
[17:57:36] cthulchu_: has joined #ruby
[17:58:58] cagomez: has joined #ruby
[18:01:44] dr3wo: has joined #ruby
[18:03:55] amirali: has joined #ruby
[18:11:02] cadillac_: has joined #ruby
[18:11:43] tdy: has joined #ruby
[18:12:25] Lytol: has joined #ruby
[18:13:35] ogres: has joined #ruby
[18:19:11] spiette: has joined #ruby
[18:22:08] za1b1tsu: has joined #ruby
[18:22:09] netherwolfe: has joined #ruby
[18:22:26] venmx: has joined #ruby
[18:23:05] Code4Dopamine: has joined #ruby
[18:25:16] tomphp: has joined #ruby
[18:26:04] mikhael_k33hl: apeiros: So basically, my app rsyncs files, and I can't seem(probably just a noob) to implement how to stop the rsync process(running in a thread) when the app gets restarted by systemd.
[18:26:45] mikhael_k33hl: http://ruby-concurrency.github.io/concurrent-ruby/file.thread_pools.html#Thread_Pool_Status_and_Shutdown
[18:32:56] cagomez: has joined #ruby
[18:37:29] Vapez: has joined #ruby
[18:37:44] cagomez: has joined #ruby
[18:40:09] weaksauce: has joined #ruby
[18:41:50] erlend: has joined #ruby
[18:44:10] cagomez: has joined #ruby
[18:45:22] jnollette: has joined #ruby
[18:45:26] alfiemax: has joined #ruby
[18:47:54] Hanmac: has joined #ruby
[18:48:56] Hanmac: apeiros: the solution for javascript https://pbs.twimg.com/media/DZcCUAvXUAAdjqQ.jpg
[18:50:27] dminuoso: Always great to see that this equality breaks substitution and transitivity.
[18:50:39] dminuoso: With NaN reflexivity is thrown out too.
[18:50:56] dminuoso: At least its symmetric =)
[18:53:43] sameerynho: has joined #ruby
[18:53:56] guille-moe: has joined #ruby
[19:00:47] minimalism: has joined #ruby
[19:06:39] bmurt: has joined #ruby
[19:07:36] cagomez: has joined #ruby
[19:08:32] pd2000: has joined #ruby
[19:09:24] xuanrui: has joined #ruby
[19:17:10] hays: has joined #ruby
[19:17:10] hays: has joined #ruby
[19:17:52] cagomez: has joined #ruby
[19:17:58] eckhardt: has joined #ruby
[19:24:15] harryk_: has joined #ruby
[19:24:40] hays: is there a guide on indenting for Ruby that is generally followed? curious if 2 spaces, 3 spaces, 4 spaces is standard
[19:26:55] nadir: has joined #ruby
[19:28:03] tomphp: has joined #ruby
[19:28:57] dminuoso: hays: 2 spaces is the common convention.
[19:29:03] dminuoso: hays: but go with whatever you prefer
[19:29:09] dminuoso: as long as its consistent throughout your code base
[19:30:54] harrycs: has joined #ruby
[19:32:44] harryk_: has joined #ruby
[19:32:55] tolerablyjake: has joined #ruby
[19:35:23] phaul: has joined #ruby
[19:35:37] orbyt_: has joined #ruby
[19:36:01] weaksauce: i like 2 for all languages
[19:38:12] jenrzzz: has joined #ruby
[19:38:13] jenrzzz: has joined #ruby
[19:41:12] pod: has joined #ruby
[19:41:17] Cavallari: has joined #ruby
[19:41:22] coderphive: has joined #ruby
[19:43:02] pod: has joined #ruby
[19:44:30] pod: has joined #ruby
[19:45:00] cschneid_: has joined #ruby
[19:50:16] venmx: has joined #ruby
[19:50:29] dminuoso: weaksauce: Ive shifted my preference to 4 since I started majorly using a whitespace sensitive language.
[19:51:21] weaksauce: i avoid whitespace sensitive languages like the plague
[19:53:15] dminuoso: weaksauce: I found that it's not an issue at all. :)
[19:53:38] dminuoso: weaksauce: 4 months and counting, not a single whitespace related issue at all so far.
[19:53:50] Bounga: has joined #ruby
[19:53:51] Mike11: has joined #ruby
[19:53:54] weaksauce: i just hate it. irrationally or not
[19:54:02] dminuoso: Fair enoough.
[19:54:23] weaksauce: it's like stubbing my toe to me.
[19:54:42] dminuoso: weaksauce: well I like my code tidy and organized anyway.
[19:54:53] dminuoso: weaksauce: and less brackets/do/end notation means less noise.. so it leads to more concise code
[19:55:13] tomphp: has joined #ruby
[19:55:32] weaksauce: i like my code to be thrown through an autoformatter and that tends to show me errors in indentation right away
[19:55:53] despai: has joined #ruby
[19:56:33] dminuoso: weaksauce: Well I have customized formatting rules too. :)
[19:58:12] duderonomy: has joined #ruby
[19:58:43] cagomez: has joined #ruby
[19:59:36] workmad3: has joined #ruby
[20:02:54] hays: this always seems counterintuitive . is there another way to do this? [0,1].include? value
[20:04:10] cagomez: has joined #ruby
[20:04:37] baweaver: value == 1 || value == 0
[20:05:28] Ryzokuken: has joined #ruby
[20:07:16] al2o3-cr: value.between?(0,1)
[20:08:33] eckhardt: has joined #ruby
[20:09:04] Bounga: has joined #ruby
[20:11:06] xenulv: has joined #ruby
[20:11:28] xenulv: ::waves::
[20:15:02] tvw: has joined #ruby
[20:15:45] t0rchy: has joined #ruby
[20:18:40] t0rchh: has joined #ruby
[20:20:49] t0rchy: has joined #ruby
[20:24:09] t0rchh: has joined #ruby
[20:27:39] knight33: has joined #ruby
[20:27:47] harrycs: has joined #ruby
[20:28:01] jenrzzz: has joined #ruby
[20:28:02] jenrzzz: has joined #ruby
[20:28:27] Puffball: has joined #ruby
[20:29:04] SeepingN: has joined #ruby
[20:29:47] dionysus69: has joined #ruby
[20:32:04] croberts: has joined #ruby
[20:35:27] jeffreylevesque_: has joined #ruby
[20:37:04] pastorinni: has joined #ruby
[20:47:48] Psybur: has joined #ruby
[20:48:34] rfoust: has joined #ruby
[20:50:35] erlend: has joined #ruby
[20:51:51] marr: has joined #ruby
[20:52:33] schneider-: has joined #ruby
[21:05:24] bmurt: has joined #ruby
[21:07:01] amatas_: has joined #ruby
[21:14:39] FrostCandy: has joined #ruby
[21:14:57] Psybur: has joined #ruby
[21:15:24] jrafanie_: has joined #ruby
[21:18:19] amatas_: has joined #ruby
[21:19:55] schneider-: has joined #ruby
[21:22:05] ellcs: has joined #ruby
[21:24:09] sean_: has joined #ruby
[21:27:53] harrycs: has joined #ruby
[21:29:53] miah: hays: https://github.com/bbatsov/ruby-style-guide/
[21:30:32] harrycs: has joined #ruby
[21:30:34] dr3wo: has joined #ruby
[21:32:03] jeffreylevesque: has joined #ruby
[21:33:32] noobineer: has joined #ruby
[21:40:39] orbyt_: has joined #ruby
[21:42:01] dr3wo: has joined #ruby
[21:44:14] dinfuehr: has joined #ruby
[21:50:10] GodFather: has joined #ruby
[21:50:44] amar: has joined #ruby
[21:58:22] DenSchub: has joined #ruby
[21:59:13] workmad3: has joined #ruby
[21:59:46] redlegion: has joined #ruby
[22:01:51] dr3wo: has joined #ruby
[22:05:55] workmad3: has joined #ruby
[22:06:48] jordanm: has joined #ruby
[22:07:06] ur5us: has joined #ruby
[22:10:56] xenulv: has joined #ruby
[22:11:33] havenwood: hays: ActiveSupport has: value.in? [1, 2]
[22:11:52] havenwood: require 'active_support/core_ext/object/inclusion'
[22:11:53] hays: is that rails?
[22:12:13] havenwood: hays: Yes, it's Rails. You can cherry pick it, but the idiomatic way is just: [0, 1].include? value
[22:12:40] hays: alright, I'll just do it that way.
[22:12:47] hays: it just seems backwards to me
[22:13:20] hays: perhaps not in japanese hehe
[22:13:33] havenwood: hays: The Rails folk agreed, and it's trivial to implement: https://github.com/rails/rails/blob/v5.1.6/activesupport/lib/active_support/core_ext/object/inclusion.rb#L10-L14
[22:15:37] hays: cool. I'm reluctant to not be idiomatic. gotta be nice to other Ruby developers
[22:15:50] hays: so even if I think its stupid I'll just go along with the flow
[22:16:20] miah: activesupport doesn't require rails (its dep list isnt too bad)
[22:17:02] phaul: to me it makes sense to put the incusion check as an instance method to the rangie, collectionie type object
[22:17:22] phaul: rather then every object
[22:17:56] havenwood: phaul: #in? reverses the receiver and argument compared to #include?
[22:18:47] havenwood: phaul: object.in?(collection) versus collection.include?(object)
[22:19:06] havenwood: phaul: Or did you mean you think #include? makes more sense than #in? rather?
[22:19:21] phaul: yes that's what I tried to say
[22:19:54] stairmast0r: has joined #ruby
[22:22:23] shinnya: has joined #ruby
[22:23:29] amar: has joined #ruby
[22:26:20] mikecmpbll: has joined #ruby
[22:28:05] hays: for me it follows how i might say it in english, "Hey, is 3 in [3,1,4,1,5,9] ?"
[22:29:25] jenrzzz: has joined #ruby
[22:29:25] jenrzzz: has joined #ruby
[22:30:05] phaul: fair enough, this sounds like DSL way of thinking object oriented way of thinking, both have their merits
[22:30:33] phaul: *versus* ^
[22:30:46] hays: yeah, and how important is the idea of inclusion in a set
[22:31:03] hays: in python, they actually have a language construct for this "in"
[22:31:23] hays: hmm maybe I take that back--my python is rusty
[22:31:40] hays: no, that's right
[22:32:05] hays: the implementation of the test for inclusion does belong in the container though, I agree with that
[22:32:19] AJA4351: has joined #ruby
[22:32:30] dminuoso: phaul: Or maybe make it a combinator instead?
[22:32:45] dminuoso: elem[5, [1,2,3,4,5]]
[22:32:49] dminuoso: ¯\_(ツ)_/¯
[22:33:54] phaul: combinator as in parser combinators?
[22:33:59] tcopeland: has joined #ruby
[22:34:17] dminuoso: phaul: a combinator is just a more practical term for "higher order function"
[22:35:13] dminuoso: Usually you'd refer to small simple but useful functions that somehow let you compose larger things from as combinator.
[22:35:34] dminuoso: You can even go to the extreme.
[22:35:37] dminuoso: Given these two:
[22:35:58] dminuoso: k = -> x, y { x }.curry
[22:36:46] dminuoso: s = -> x, y, z { x[z[y[z]]] }.curry
[22:36:54] dminuoso: You can construct *any* program whatsoever.
[22:37:18] phaul: is this lambda calc?
[22:37:21] hays: *bleat*baaahhhh*
[22:37:33] dminuoso: phaul: its kind of related yes.
[22:38:02] dminuoso: phaul: usually youd include a third combinator `i = -> x { x }` and the system is called "SKI combinator calculus"
[22:38:17] dminuoso: Say thanks to Moses Schönfinkel. ;)
[22:39:00] phaul: dminuoso: have you seen the programming with nothing (yt)? I guess you have... that was FUN!!
[22:39:03] workmad3: has joined #ruby
[22:40:08] hays: was it alonzo church that came up with the functional computational model
[22:40:29] phaul: https://www.youtube.com/watch?v=VUhlNx_-wYk
[22:40:54] hays: basically equivalent to a turing machine
[22:41:03] hays: well, not just basically
[22:41:27] dminuoso: phaul: No. But from a quick glance it just looks like applied ULC
[22:42:43] RougeR: has joined #ruby
[22:42:44] RougeR: has joined #ruby
[22:43:01] dminuoso: phaul: SKI combinator calculus is even more amazing, because you dont even need lambda calculus to describe turing-machine capable processing.
[22:43:17] imode: term rewriting is even better
[22:43:31] imode: rule tables!
[22:43:49] jenrzzz: has joined #ruby
[22:43:50] jenrzzz: has joined #ruby
[22:44:16] imode: ULC is just a specific type of term rewriting system, which is just a glorified delimited string rewriting system, which is equivalent to a post canonical system with a specified ruleset, which is a string rewriting system.
[22:45:18] dminuoso: imode: Im not familiar with that yet. Just started diving into formal semantics, and the properties of ULC are great enough to prove some intereting things already.
[22:46:01] imode: once you get to post systems, you'll never look back.
[22:46:08] imode: http://www.freefour.com/rewriting-as-a-computational-paradigm/
[22:47:31] dminuoso: imode: wait a second.. this looks exactly like what Im doing right now.
[22:49:03] dminuoso: imode: how is this different from an evaluation relation?
[22:49:26] imode: define evaluation relation?
[22:49:58] imode: something like a(b) = b(a)?
[22:50:08] imode: it's not that different at all.
[22:50:13] vondruch: has joined #ruby
[22:50:44] dminuoso: imode: I mean it in the sense of Pierce's TaPL
[22:51:05] imode: can you give me an example of an evaluation relation?
[22:51:54] cschneid_: has joined #ruby
[22:52:15] dminuoso: imode: So it'd be a set of rules that look like: `pred 0 -> 0`
[22:52:32] dminuoso: (rules could have premises too)
[22:53:02] dminuoso: Most of this is just groundwork for type inference from what I can tell so far.
[22:53:46] imode: yeah a set of rewrite rules.
[22:54:11] imode: and `pred s(n) -> n`
[22:54:46] vondruch: has joined #ruby
[22:55:36] imode: you build up type inference from a set of untyped rewrite rules.
[22:59:21] erlend: has joined #ruby
[23:01:02] dminuoso: imode: Right. Though this quickly takes off beyond term rewriting rules.
[23:01:23] dminuoso: Havent done all excercises for this yet, so I wont read on. :)
[23:01:58] imode: it doesn't _really_, which is cool. you can build a full type system in an untyped rewriting system like this.
[23:02:30] imode: which is just a string rewriting system with a few wildcard rules...
[23:02:35] imode: and some delimiters.
[23:02:48] imode: hilbert would be proud. :P
[23:03:06] dminuoso: Mmm. Alright well Ill see. :)
[23:03:31] dminuoso: I mean I have looked at HM before and I know how to read it, so I know what the end result will be..
[23:03:40] dminuoso: But arriving at it and implementing it is something else.
[23:03:47] dminuoso: And proving things about it.
[23:05:03] AndBobsYourUncle: has joined #ruby
[23:10:51] jeffreylevesque: has joined #ruby
[23:11:06] burgestrand: has joined #ruby
[23:12:17] Fysicus: has joined #ruby
[23:16:43] burgestrand: has joined #ruby
[23:27:24] sameerynho: has joined #ruby
[23:36:42] schneider-: has joined #ruby
[23:49:01] burgestrand: has joined #ruby
[23:52:05] znz_jp: has joined #ruby
[23:53:50] cadillac_: has joined #ruby
[23:55:06] chouhoulis: has joined #ruby
[23:59:03] n0m4d1c: has joined #ruby