« Back to channel list

#ruby - 11 May 2019

« Back 1 day Forward 1 day »
[00:07:51] Renich: has joined #ruby
[00:15:24] AlHafoudh: has joined #ruby
[00:15:43] haengma: has joined #ruby
[00:20:23] AJA4350: has joined #ruby
[00:28:36] fphilipe_: has joined #ruby
[00:35:00] AJA4350: has joined #ruby
[00:58:52] edwardly: has joined #ruby
[00:58:52] edwardly: has joined #ruby
[01:01:09] ur5us: has joined #ruby
[01:06:31] noobineer: has joined #ruby
[01:12:34] cnsvc: has joined #ruby
[01:15:33] ur5us: has joined #ruby
[01:21:56] dsmythe: has joined #ruby
[01:22:20] ur5us: has joined #ruby
[01:52:21] budonyc: has joined #ruby
[01:54:15] pupsikov: has joined #ruby
[01:59:05] fphilipe_: has joined #ruby
[02:02:13] espinet: has joined #ruby
[02:09:06] orbyt_: has joined #ruby
[02:10:56] tdy: has joined #ruby
[02:16:16] AlHafoudh: has joined #ruby
[02:21:09] djellemah: has joined #ruby
[02:23:40] duderonomy: has joined #ruby
[02:31:11] arand: has joined #ruby
[02:36:35] hightower3: has joined #ruby
[03:03:09] eblip: has joined #ruby
[03:05:06] fphilipe_: has joined #ruby
[03:06:47] Swyper: has joined #ruby
[03:10:39] braincrash: has joined #ruby
[03:20:46] i1nfusion: has joined #ruby
[03:33:31] ramfjord: has joined #ruby
[03:34:34] cnsvc: has joined #ruby
[03:39:33] jenrzzz: has joined #ruby
[03:46:00] dar123: has joined #ruby
[03:47:16] AlHafoudh: has joined #ruby
[03:50:16] cnsvc: has joined #ruby
[03:51:47] laaron: has joined #ruby
[03:57:33] salasrod: has joined #ruby
[03:59:14] m27frogy: has joined #ruby
[04:04:08] rhuang_: has joined #ruby
[04:20:29] AlHafoudh: has joined #ruby
[04:21:27] ur5us: has joined #ruby
[04:28:54] Tempesta: has joined #ruby
[04:34:17] orbyt_: has joined #ruby
[04:35:34] fphilipe_: has joined #ruby
[04:39:02] rhuang_: has joined #ruby
[04:40:33] jenrzzz: has joined #ruby
[04:47:05] laaron: has joined #ruby
[04:51:26] laaron: has joined #ruby
[04:54:33] kapilp: has joined #ruby
[04:56:13] rhuang_: has joined #ruby
[05:00:29] jenrzzz: has joined #ruby
[05:01:50] laaron: has joined #ruby
[05:05:29] espinet: has joined #ruby
[05:06:16] espinet: has joined #ruby
[05:07:14] espinet: has joined #ruby
[05:08:00] espinet: has joined #ruby
[05:08:44] espinet: has joined #ruby
[05:09:30] espinet: has joined #ruby
[05:10:19] espinet: has joined #ruby
[05:11:11] espinet: has joined #ruby
[05:13:46] helpa-bot: has joined #ruby
[05:14:05] dsmythe_: has joined #ruby
[05:14:20] Exuma: is anyone here good with dual entry accounting? I have a basic question
[05:14:23] sauvin: has joined #ruby
[05:14:38] tdy1: has joined #ruby
[05:14:59] duderono_: has joined #ruby
[05:15:30] Junaos: has joined #ruby
[05:15:41] ged_: has joined #ruby
[05:15:46] bvdw9: has joined #ruby
[05:15:50] haengma: has joined #ruby
[05:15:57] llua`: has joined #ruby
[05:15:58] Azure|dc: has joined #ruby
[05:16:17] helpa-bot: has joined #ruby
[05:16:48] SCHAAP137: has joined #ruby
[05:16:56] ozzloy_: has joined #ruby
[05:17:15] hagebake_: has joined #ruby
[05:17:25] Cthulu202: has joined #ruby
[05:17:31] spiette_: has joined #ruby
[05:17:42] swistak35: has joined #ruby
[05:17:44] genpaku_: has joined #ruby
[05:17:48] Prira: has joined #ruby
[05:17:49] justache: has joined #ruby
[05:17:49] justache: has joined #ruby
[05:17:50] justache: has joined #ruby
[05:17:53] cranq_: has joined #ruby
[05:17:58] wolfshappen: has joined #ruby
[05:17:59] arooni: has joined #ruby
[05:18:47] helpa: has joined #ruby
[05:23:10] n13z: has joined #ruby
[05:23:32] Davey: has joined #ruby
[05:33:57] al2o3-cr: has joined #ruby
[05:45:20] AlHafoudh: has joined #ruby
[05:52:05] ammar: has joined #ruby
[05:52:34] Prira: has joined #ruby
[05:52:42] justache: has joined #ruby
[05:53:22] Exagone313: has joined #ruby
[05:54:24] Swyper: has joined #ruby
[05:57:24] akosednar: has joined #ruby
[05:57:24] akosednar: has joined #ruby
[05:58:46] reber: has joined #ruby
[05:59:48] djdduty: has joined #ruby
[06:05:56] fphilipe_: has joined #ruby
[06:14:46] AlHafoudh: has joined #ruby
[06:27:46] arup_r: has joined #ruby
[06:49:50] faces: has joined #ruby
[06:51:10] zapata: has joined #ruby
[06:53:25] vs^: has joined #ruby
[06:54:58] RyanMcCoskrie: has joined #ruby
[06:56:06] RyanMcCoskrie: has left #ruby: ()
[06:57:53] zapata: has joined #ruby
[06:59:42] dsmythe: has joined #ruby
[07:02:38] zapata: has joined #ruby
[07:03:14] nowhereman: has joined #ruby
[07:03:55] jenrzzz: has joined #ruby
[07:07:37] zapata: has joined #ruby
[07:10:15] zapata: has joined #ruby
[07:10:28] fphilipe_: has joined #ruby
[07:12:47] DTZUZO: has joined #ruby
[07:12:53] zapata: has joined #ruby
[07:25:29] zapata: has joined #ruby
[07:29:29] jefffrails35: has joined #ruby
[07:30:52] conta: has joined #ruby
[07:36:47] haengma: has joined #ruby
[07:37:12] sameerynho: has joined #ruby
[07:39:50] al2o3-cr: has joined #ruby
[07:40:26] dellavg_: has joined #ruby
[07:42:02] cnsvc: has joined #ruby
[07:43:58] kyrylo: has joined #ruby
[07:48:11] _whitelogger: has joined #ruby
[07:54:10] _whitelogger: has joined #ruby
[08:00:14] Ai9zO5AP: has joined #ruby
[08:07:37] nowhereman: has joined #ruby
[08:13:10] cnsvc: has joined #ruby
[08:17:59] fphilipe_: has joined #ruby
[08:24:41] haxx0r: has joined #ruby
[08:30:27] irdr: has joined #ruby
[08:35:54] cgfbee: has joined #ruby
[08:39:08] bastilian: has joined #ruby
[08:52:54] AlHafoudh: has joined #ruby
[08:53:28] rippa: has joined #ruby
[08:54:50] cnsvc: has joined #ruby
[08:57:26] laaron: has joined #ruby
[09:01:29] dhollin3: has joined #ruby
[09:04:13] jenrzzz: has joined #ruby
[09:07:18] crankharder: has joined #ruby
[09:10:23] supergeek[m]: has joined #ruby
[09:10:23] turt2live: has joined #ruby
[09:10:23] jonjitsu: has joined #ruby
[09:10:23] sepp2k: has joined #ruby
[09:10:23] neovalis[m]: has joined #ruby
[09:10:23] kateskips: has joined #ruby
[09:10:32] Turnikov[m]: has joined #ruby
[09:19:24] waheedi: has joined #ruby
[09:24:01] mikecmpbll: has joined #ruby
[09:30:12] _whitelogger: has joined #ruby
[09:30:22] jenrzzz: has joined #ruby
[09:41:08] SCHAPiE: has joined #ruby
[09:50:02] AlHafoudh: has joined #ruby
[09:56:37] AJA4350: has joined #ruby
[09:57:20] gix: has joined #ruby
[10:07:06] AlHafoudh: has joined #ruby
[10:17:30] Fernando-Basso: has joined #ruby
[10:18:16] cnsvc: has joined #ruby
[10:18:18] moei: has joined #ruby
[10:22:35] DTZUZO: has joined #ruby
[10:25:13] Swyper: has joined #ruby
[10:30:03] AlHafoudh: has joined #ruby
[10:30:46] i1nfusion: has joined #ruby
[10:42:09] _whitelogger: has joined #ruby
[10:45:41] fphilipe_: has joined #ruby
[10:51:31] fphilipe_: has joined #ruby
[10:53:02] AlHafoudh: has joined #ruby
[11:07:46] AlHafoudh: has joined #ruby
[11:17:07] ellcs: has joined #ruby
[11:18:47] AlHafoudh: has joined #ruby
[11:19:28] dviola: has joined #ruby
[11:28:24] Swyper: has joined #ruby
[11:30:44] jenrzzz: has joined #ruby
[11:37:29] haengma: has joined #ruby
[11:48:14] DTZUZO: has joined #ruby
[11:54:31] laaron: has joined #ruby
[11:55:11] Swyper: has joined #ruby
[12:08:59] Swyper: has joined #ruby
[12:16:51] haengma: has joined #ruby
[12:24:26] Gvirus_: has joined #ruby
[12:26:46] Swyper: has joined #ruby
[12:27:16] maryo: has joined #ruby
[12:29:56] Gvirus_: has left #ruby: ()
[12:40:11] lucasb: has joined #ruby
[12:42:15] Swyper: has joined #ruby
[12:57:37] cnsvc: has joined #ruby
[13:00:02] dsmythe: has joined #ruby
[13:02:49] fphilipe_: has joined #ruby
[13:03:34] AJA4350: has joined #ruby
[13:12:22] Fusl: has joined #ruby
[13:19:03] Swyper: has joined #ruby
[13:22:41] fphilipe_: has joined #ruby
[13:22:55] AlHafoudh: has joined #ruby
[13:25:40] laaron: has joined #ruby
[13:31:04] jenrzzz: has joined #ruby
[13:39:10] i1nfusion: has joined #ruby
[13:39:49] Swyper_: has joined #ruby
[13:45:04] Swyper: has joined #ruby
[13:48:28] Mia: has joined #ruby
[13:48:28] Mia: has joined #ruby
[13:48:54] cadeskywalker: has joined #ruby
[13:49:48] mistym: has joined #ruby
[13:49:49] mistym: has joined #ruby
[13:54:54] Axy: has joined #ruby
[13:54:55] Axy: has joined #ruby
[13:56:03] cadeskywalker: has joined #ruby
[14:02:48] Mia: has joined #ruby
[14:02:49] Mia: has joined #ruby
[14:04:00] alem0lars: has joined #ruby
[14:10:45] Mia: has joined #ruby
[14:10:45] Mia: has joined #ruby
[14:16:29] Mia: has joined #ruby
[14:16:30] Mia: has joined #ruby
[14:17:24] djellemah: has joined #ruby
[14:23:09] espinet: has joined #ruby
[14:23:26] mohsen_1: has joined #ruby
[14:24:57] mohsen_1: when I try to run `bundler init` in rubymine I get : `C:\Ruby26-x64\bin\ruby.exe: No such file or directory -- init (LoadError)`
[14:25:56] mohsen_1: what is the problem?
[14:26:18] TheMoonMaster: probably means that ruby.exe doesn't exist there
[14:26:39] mohsen_1: TheMoonMaster: it does, I can clarify
[14:27:11] TheMoonMaster: oh I see. it says init doesn't exist?
[14:27:19] TheMoonMaster: sorry, windows catching me off guard
[14:28:17] mohsen_1: TheMoonMaster: I'm not sure how to use this `https://github.com/brenes/stopwords-filter` library in rubymine
[14:28:18] nima_m: has joined #ruby
[14:29:23] TheMoonMaster: you should be able to add it to your projects Gemfile then `bundle install`
[14:29:35] Zarthus: has left #ruby: ()
[14:31:05] Mia: has joined #ruby
[14:31:06] Mia: has joined #ruby
[14:31:49] Swyper: has joined #ruby
[14:32:32] mohsen_1: TheMoonMaster: but I haven't `bundle init` yet
[14:33:02] Swyper: has joined #ruby
[14:34:10] TheMoonMaster: then run it? maybe outside of rubymine
[14:39:56] alem0lars: has joined #ruby
[14:45:32] danielsju6: has joined #ruby
[14:50:38] szulak_: has joined #ruby
[14:53:06] kapilp: has joined #ruby
[14:53:30] alem0lars: has joined #ruby
[14:57:26] alem0lars: has joined #ruby
[14:59:16] fphilipe_: has joined #ruby
[15:02:34] mohsen_1: manually running `bundle init` worked, thank you
[15:10:23] m27frogy: has joined #ruby
[15:16:23] cnsvc: has joined #ruby
[15:18:59] djellemah: has joined #ruby
[15:20:05] djellemah: has joined #ruby
[15:25:44] mohsen_1: has joined #ruby
[15:27:05] kent\n: has joined #ruby
[15:27:29] Mia: has joined #ruby
[15:27:29] Mia: has joined #ruby
[15:31:06] yxhuvud: has joined #ruby
[15:31:28] jenrzzz: has joined #ruby
[15:32:16] conta: has joined #ruby
[15:36:14] Mia: has joined #ruby
[15:36:15] Mia: has joined #ruby
[15:38:46] Axy: has joined #ruby
[15:38:46] Axy: has joined #ruby
[15:39:05] espinet: has joined #ruby
[15:42:49] linduxed: has joined #ruby
[15:43:24] Mia: has joined #ruby
[15:43:24] Mia: has joined #ruby
[15:44:05] AlHafoudh: has joined #ruby
[15:45:05] ricekrispie: has joined #ruby
[15:51:09] Cthulu201: has joined #ruby
[15:56:49] AlHafoudh: has joined #ruby
[15:59:54] dar123: has joined #ruby
[16:05:08] laaron: has joined #ruby
[16:14:38] jtdowney: has joined #ruby
[16:20:14] lord4163: has joined #ruby
[16:34:26] maryo_: has joined #ruby
[16:42:47] AlHafoudh: has joined #ruby
[16:48:24] Exuma: has joined #ruby
[16:49:11] Exuma: does anyone know a fancy way to check that all :debits come first in an array?
[16:49:21] AlHafoudh: has joined #ruby
[16:49:32] Exuma: [:debit, :debit, :credit].....good [:debit, :credit, :debit]... bad [:credit, :debit] ...... bad
[16:52:18] mohsen_1: has left #ruby: ()
[16:53:02] phaul: &>> [:debit, :debit, :credit].each_cons(2).none?([:credit, :debit])
[16:53:04] rubydoc: # => true (https://carc.in/#/r/6wb9)
[16:53:16] phaul: &>> [:debit, :debit, :credit, :debit].each_cons(2).none?([:credit, :debit])
[16:53:17] rubydoc: # => false (https://carc.in/#/r/6wba)
[16:54:44] Exuma: phaul interesting ok. currently I just did sides == sides.sort.reverse
[16:54:52] Exuma: im looking at your way
[16:54:58] Exuma: i thought of it while waiting haha
[16:55:33] phaul: but how do you sort? /me confused
[16:55:49] phaul: &>> :debit <=> :credit
[16:55:50] rubydoc: # => 1 (https://carc.in/#/r/6wbb)
[16:55:58] phaul: rly? ok. cool
[16:56:04] Exuma: [:debit, :debit, :credit, :debit] == [:debit, :debit, :credit, :debit].sort.reverse
[16:56:08] Exuma: i just do that, which will return false
[16:56:17] phaul: well, I like your solution :)
[16:56:20] havenwood: a[a.index { |sym| sym != :debit }..].none?(:debit)
[16:56:34] Exuma: im too dumb to understand fancy code like that
[16:56:39] Exuma: well, in 3 months i mean
[16:56:43] phaul: I didn't think of comparing symbols..
[16:57:11] Exuma: yeah i didnt think it would work at first . i always think ruby is full of surprises when its reference vs value
[16:57:17] Exuma: it appears to work fine
[16:57:38] maryo: has joined #ruby
[16:58:21] phaul: one thing is that mine, and havenwood's are O(n) you are probably O n (log n) but really doesn't matter unless you have thousands of entries
[16:58:38] Exuma: hmm yeah there should be a max 2 or 3 items but thats a great point
[16:59:05] havenwood: drop_while { |sym| sym == :debit }.none?(:debit)
[17:00:30] maryo: has joined #ruby
[17:00:45] dar123: has joined #ruby
[17:04:14] havenwood: it'd be a bit fancier if #drop_while took a match argument: drop_while(:debit).none?(:debit)
[17:04:56] jenrzzz: has joined #ruby
[17:06:00] AlHafoudh: has joined #ruby
[17:07:12] havenwood: debit = :debit.method(:==); a.drop_while(&debit).none?(&debit)
[17:07:41] Exuma: has joined #ruby
[17:08:15] havenwood: which I guess now we can write as :)
[17:08:16] havenwood: debit = :debit.:==
[17:08:18] fphilipe_: has joined #ruby
[17:08:56] havenwood: drop_while(&:debit.:==).none?(:debit)
[17:09:32] zacts: has joined #ruby
[17:09:56] waheedi: has joined #ruby
[17:11:07] havenwood: also the short circuiting ^ doesn't matter with a few entries
[17:12:43] Exuma: haha havenwood that is like code golf level answer :D
[17:14:13] havenwood: Exuma: Add a #lazy and it'll work with infinite collections!
[17:14:14] havenwood: &>> %i[debit credit].cycle.lazy.drop_while(&:debit.:==).none?(:debit)
[17:14:14] rubydoc: stderr: -e:2: syntax error, unexpected tSYMBEG (https://carc.in/#/r/6wbc)
[17:14:51] Exuma: &>> BigDecimal.new(500)
[17:14:52] rubydoc: stderr: -e:2:in `<main>': uninitialized constant BigDecimal (NameError) (https://carc.in/#/r/6wbd)
[17:15:03] Exuma: damn... that bot is awesome. i never knew
[17:15:28] cnsvc: has joined #ruby
[17:15:32] havenwood: &>> require 'bigdecimal'; require 'bigdecimal/util'; 500.to_d
[17:15:33] rubydoc: # => 0.5e3 (https://carc.in/#/r/6wbe)
[17:15:55] havenwood: I forgot, .: is 2.7 syntax
[17:17:33] havenwood: &>> %i[debit credit].cycle.lazy.drop_while(&:debit.method(:==)).none?(:debit)
[17:17:34] rubydoc: # => false (https://carc.in/#/r/6wbg)
[17:19:18] phaul: Exuma: there are more things it can do for you, docs : https://github.com/phaul/yarr
[17:19:39] Exuma: thanks :D
[17:30:23] tdy1: has joined #ruby
[17:33:15] waheedi: has joined #ruby
[17:35:50] Dbugger: has joined #ruby
[17:44:20] espinet: has joined #ruby
[17:57:22] fphilipe_: has joined #ruby
[17:58:34] wald0: has joined #ruby
[17:59:17] pupsikov: has joined #ruby
[17:59:41] espinet: has joined #ruby
[18:00:35] espinet: has joined #ruby
[18:02:54] cnsvc: has joined #ruby
[18:15:18] armyriad: has joined #ruby
[18:26:06] dar123: has joined #ruby
[18:34:14] cagomez: has joined #ruby
[18:34:38] gix: has joined #ruby
[18:34:39] weteamsteve: has joined #ruby
[18:40:07] m27frogy: has joined #ruby
[18:40:16] al2o3-cr: has joined #ruby
[18:42:06] landakram: has joined #ruby
[18:43:06] orbyt_: has joined #ruby
[18:46:55] wald0: has joined #ruby
[18:48:09] djellemah: has joined #ruby
[18:53:06] weteamsteve: has joined #ruby
[18:54:29] Swyper: has joined #ruby
[18:54:31] landakram: has joined #ruby
[18:57:34] weteamsteve1: has joined #ruby
[19:03:01] weteamsteve2: has joined #ruby
[19:05:58] dsmythe: has joined #ruby
[19:06:45] kapilp: has joined #ruby
[19:07:23] weteamsteve: has joined #ruby
[19:08:51] rafadc: has joined #ruby
[19:10:05] zapata: has joined #ruby
[19:13:57] zacts: has joined #ruby
[19:23:53] bsdbandit: has joined #ruby
[19:25:45] Swyper: has joined #ruby
[19:26:42] ellcs: has joined #ruby
[19:26:52] bsdbandit: has joined #ruby
[19:29:09] Swyper: has joined #ruby
[19:37:16] AlHafoudh: has joined #ruby
[19:40:29] cliluw: has joined #ruby
[19:40:36] weteamsteve: has joined #ruby
[19:48:25] zacts: has joined #ruby
[19:49:30] djellemah: has joined #ruby
[19:53:49] dar123: has joined #ruby
[19:53:54] wilbert: has joined #ruby
[19:56:35] weteamsteve1: has joined #ruby
[20:01:15] _rubik: has joined #ruby
[20:01:55] _rubik: Hey all. I wrote a script for Weechat, but I'm having trouble forking off a process. I was wondering if I was getting something wrong with weechat scripting, or ruby itself
[20:02:15] _rubik: https://paste.debian.net/1083408/
[20:03:36] _rub1k: has joined #ruby
[20:04:20] minimal_life: has joined #ruby
[20:18:52] zacts: has joined #ruby
[20:25:12] weteamsteve: has joined #ruby
[20:27:39] troulouliou_div2: has joined #ruby
[20:33:31] Puffball: has joined #ruby
[20:35:12] weteamsteve1: has joined #ruby
[20:41:54] dsmythe_: has joined #ruby
[20:41:57] AlHafoudh: has joined #ruby
[20:44:38] fphilipe_: has joined #ruby
[21:07:06] wald0: has joined #ruby
[21:16:12] zacts: has joined #ruby
[21:17:25] espinet: has joined #ruby
[21:32:06] orbyt_: has joined #ruby
[21:33:02] weteamsteve: has joined #ruby
[21:33:34] maryo: has joined #ruby
[21:38:23] dsmythe: has joined #ruby
[21:40:14] cnsvc: has joined #ruby
[21:40:23] dsmythe_: has joined #ruby
[21:47:21] _rubik: has joined #ruby
[21:54:57] zacts: has joined #ruby
[21:55:12] d^sh: has joined #ruby
[22:00:54] hightower3: has joined #ruby
[22:05:38] AndBobsYourUncle: has joined #ruby
[22:15:34] fphilipe_: has joined #ruby
[22:16:45] cnsvc: has joined #ruby
[22:25:19] wald0: has joined #ruby
[22:26:37] hightower2: has joined #ruby
[22:30:48] AlHafoudh: has joined #ruby
[22:49:32] zacts: has joined #ruby
[22:53:05] maryo: has joined #ruby
[22:56:36] cagomez: has joined #ruby
[23:14:52] teclator_: has joined #ruby
[23:16:09] weird_error: has joined #ruby
[23:26:26] cnsvc: has joined #ruby
[23:30:43] cagomez: has joined #ruby
[23:38:47] jenrzzz: has joined #ruby
[23:46:48] fphilipe_: has joined #ruby
[23:52:33] Fridtjof: has joined #ruby