« Back to channel list

#ruby - 04 April 2017

« Back 1 day Forward 1 day »
[00:02:04] jusa: has joined #ruby
[00:02:32] hahuang61: has joined #ruby
[00:03:58] esObe_: has joined #ruby
[00:11:03] rakm: has joined #ruby
[00:11:16] gusrub: has joined #ruby
[00:12:53] bkxd: has joined #ruby
[00:14:06] GodFather: has joined #ruby
[00:14:28] Channel6: has joined #ruby
[00:19:17] tolerablyjake: has joined #ruby
[00:21:04] j416: hekin: I tried a bit more, but I'm still lost.
[00:21:11] pickle_: has joined #ruby
[00:21:13] j416: no idea about that encoding :/
[00:21:24] j416: do ping me if you should happen to find what it is!
[00:21:25] hekin: @j416 thank you for you help :)
[00:21:31] hekin: @j416 will do
[00:21:47] skweek: has joined #ruby
[00:23:38] ncthom91: has joined #ruby
[00:25:44] cow[baby]: has joined #ruby
[00:29:41] binaryplease: has joined #ruby
[00:32:41] kobain: has joined #ruby
[00:33:46] johnzorn: has joined #ruby
[00:38:58] ski4x7: has joined #ruby
[00:46:34] enterprisey: has joined #ruby
[00:47:19] ozcanesen: has joined #ruby
[00:49:30] CloCkWeRX: has joined #ruby
[00:49:32] johnzorn: has joined #ruby
[00:50:16] coatezy: has joined #ruby
[00:50:19] CloCkWeRX: has joined #ruby
[00:50:22] LuckyABA: has joined #ruby
[00:55:15] cyphase: has joined #ruby
[01:00:19] ResidentBiscuit: has joined #ruby
[01:04:59] GodFather: has joined #ruby
[01:05:27] esObe_: has joined #ruby
[01:06:05] Vile`: has joined #ruby
[01:08:15] Candido: has joined #ruby
[01:10:51] cow[baby]: has joined #ruby
[01:11:47] Channel6: has joined #ruby
[01:17:14] ResidentBiscuit: has joined #ruby
[01:19:57] cam27: has joined #ruby
[01:20:18] zipace: has joined #ruby
[01:20:41] cam27: Have people been talking about Jason Seifer’s passing on here?
[01:27:10] _whitelogger: has joined #ruby
[01:29:25] mim1k: has joined #ruby
[01:34:40] astrobunny: has joined #ruby
[01:37:55] gdonald: has joined #ruby
[01:39:09] Rodya_: has joined #ruby
[01:44:27] duderonomy: has joined #ruby
[01:45:03] cow[baby]: has joined #ruby
[01:46:19] houhoulis: has joined #ruby
[01:49:09] hahuang61: has joined #ruby
[01:50:31] RealMarc: has joined #ruby
[01:52:40] jcao219: has joined #ruby
[01:56:03] d^sh: has joined #ruby
[01:59:56] cow[baby]: has joined #ruby
[02:02:24] kellyann: has joined #ruby
[02:02:42] jusa: has joined #ruby
[02:07:03] esObe_: has joined #ruby
[02:07:40] libastral: has joined #ruby
[02:13:41] bkxd: has joined #ruby
[02:13:45] noneofthisnonsen: has joined #ruby
[02:18:38] HoierM: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:24:45] bruce_lee: has joined #ruby
[02:24:45] bruce_lee: has joined #ruby
[02:27:11] jcao219: has joined #ruby
[02:28:54] __Yiota: has joined #ruby
[02:31:29] jenrzzz: has joined #ruby
[02:35:53] hndk: has joined #ruby
[02:37:35] csaunders: has joined #ruby
[02:40:02] Rodya_: has joined #ruby
[02:43:13] thistle: has joined #ruby
[02:44:00] astrobunny: has joined #ruby
[02:44:01] thistle: has joined #ruby
[02:45:06] thistle: has joined #ruby
[02:55:28] crankharder: has joined #ruby
[02:57:27] d^sh: has joined #ruby
[02:59:13] crankharder: Kernel#exec replaces the current process with the given command, so it keeps the current environment. Is there a way to exit and start a new process such that the env gets blown away and/or reset?
[03:00:53] rgtk: has joined #ruby
[03:08:33] hndk: has joined #ruby
[03:09:51] HoierM: has joined #ruby
[03:17:15] jcao219: has joined #ruby
[03:29:54] mim1k: has joined #ruby
[03:34:15] mkillebrew: has left #ruby: ()
[03:35:44] hutch34: has joined #ruby
[03:45:28] thistle: has joined #ruby
[03:46:19] havenwood: crankharder: Try it preceded with 'env -i' like: exec 'env', '-i', 'printenv'
[03:50:02] hahuang61: has joined #ruby
[03:50:59] mim1k: has joined #ruby
[03:53:39] jusa: has joined #ruby
[03:54:46] mazeinmaze_: has joined #ruby
[04:02:41] shortdudey123: has joined #ruby
[04:02:51] djbkd: has joined #ruby
[04:04:59] rgtk: has joined #ruby
[04:08:15] esObe_: has joined #ruby
[04:14:23] bkxd: has joined #ruby
[04:20:33] __Yiota: has joined #ruby
[04:26:34] ski7777: has joined #ruby
[04:27:39] gdonald: has joined #ruby
[04:28:39] mim1k: has joined #ruby
[04:29:26] patarr: has joined #ruby
[04:32:18] Rodya_: has joined #ruby
[04:34:18] cfec0b8d: has joined #ruby
[04:35:04] JoshS: has joined #ruby
[04:36:05] renchan: has joined #ruby
[04:39:22] Hanmac: has joined #ruby
[04:40:18] StoneCypher: has joined #ruby
[04:50:36] __Yiota: has joined #ruby
[05:02:07] thistle: has joined #ruby
[05:04:59] pupsicle1: has joined #ruby
[05:05:19] dn`_: has joined #ruby
[05:06:09] atom3_: has joined #ruby
[05:06:43] joaomdmoura___: has joined #ruby
[05:06:55] Brak____________: has joined #ruby
[05:07:01] Yonk__: has joined #ruby
[05:07:06] Asher1: has joined #ruby
[05:07:13] tfittsy: has joined #ruby
[05:07:18] daxroc1: has joined #ruby
[05:07:21] jxf_: has joined #ruby
[05:07:44] LyndsySimon_: has joined #ruby
[05:07:44] peteretep_: has joined #ruby
[05:07:53] skmp_: has joined #ruby
[05:08:01] pelegreno__: has joined #ruby
[05:08:08] ggherdov_: has joined #ruby
[05:08:18] stanc: has joined #ruby
[05:08:30] boshhead_: has joined #ruby
[05:08:35] rflot_: has joined #ruby
[05:08:51] haydenmuhl: has joined #ruby
[05:08:59] youmu_: has joined #ruby
[05:09:17] Sp4rKy_: has joined #ruby
[05:09:32] xsdg_: has joined #ruby
[05:09:35] j: has joined #ruby
[05:09:38] csk_: has joined #ruby
[05:09:42] pabs: has joined #ruby
[05:09:46] azwieg104: has joined #ruby
[05:09:49] LambdaSi1: has joined #ruby
[05:09:50] awk_: has joined #ruby
[05:09:51] ejnahc_: has joined #ruby
[05:10:00] Raboo_: has joined #ruby
[05:10:28] xall: has joined #ruby
[05:10:42] Asher1: has joined #ruby
[05:10:50] jgt: has joined #ruby
[05:11:33] Bock: has joined #ruby
[05:11:54] mnem: has joined #ruby
[05:11:57] \13k_: has joined #ruby
[05:12:54] tjvc_: has joined #ruby
[05:12:55] mlehrer_: has joined #ruby
[05:12:56] Tralin_: has joined #ruby
[05:12:58] ghormoon_: has joined #ruby
[05:13:06] Armand: has joined #ruby
[05:13:12] redondos_: has joined #ruby
[05:13:17] shortdudey123_: has joined #ruby
[05:13:53] SirCmpwn_: has joined #ruby
[05:14:51] sonne_: has joined #ruby
[05:15:44] braidn_: has joined #ruby
[05:16:13] VladGh: has joined #ruby
[05:19:11] youmu_: has joined #ruby
[05:19:12] NightMonkey: has joined #ruby
[05:20:20] shaman42: has joined #ruby
[05:20:46] daveyboi[m]: has joined #ruby
[05:20:51] M107262[m]: has joined #ruby
[05:20:53] Emmanuel_Chanel: has joined #ruby
[05:20:58] Giphy[m]: has joined #ruby
[05:21:05] hahuang61: has joined #ruby
[05:21:11] jokester: has joined #ruby
[05:21:15] kies: has joined #ruby
[05:21:20] danielpclark: has joined #ruby
[05:21:26] xybr_: has joined #ruby
[05:21:37] majoh: has joined #ruby
[05:21:40] Tagami[m]: has joined #ruby
[05:21:41] spectra: has joined #ruby
[05:21:42] Pumukel: has joined #ruby
[05:21:47] dman[m]: has joined #ruby
[05:21:48] iceden: has joined #ruby
[05:22:56] anekos: has joined #ruby
[05:24:34] Pumukel: has joined #ruby
[05:29:12] cyphase: has joined #ruby
[05:31:16] jeyraof^mbpr: has joined #ruby
[05:34:39] madgoat: has joined #ruby
[05:35:18] madgoat: has left #ruby: ()
[05:36:07] hutch34: has joined #ruby
[05:51:45] anisha: has joined #ruby
[05:56:04] cyphase: has joined #ruby
[05:57:28] xall_: has joined #ruby
[06:05:59] spyder55: has joined #ruby
[06:06:35] spyder55: has joined #ruby
[06:06:56] xall_: has joined #ruby
[06:07:31] tildes: has joined #ruby
[06:07:37] roshanavand: has joined #ruby
[06:08:07] xall: has joined #ruby
[06:09:38] esObe_: has joined #ruby
[06:11:31] volix: has joined #ruby
[06:15:03] bkxd: has joined #ruby
[06:17:46] ResidentBiscuit: has joined #ruby
[06:26:15] PaulePanter: has joined #ruby
[06:30:16] patarr: has joined #ruby
[06:31:47] bsartek: has joined #ruby
[06:35:36] acalycine: has joined #ruby
[06:36:15] acalycine: Hey. Is there any problem with having spaces in a string that is being interpolated into a regexp?
[06:36:47] acalycine: Because my regexp is working perfectly, except when the string "GWS Giants" is put into it via #{}.
[06:37:13] conta: has joined #ruby
[06:39:31] Bozo: has joined #ruby
[06:42:23] gloscombe_: has joined #ruby
[06:58:36] Rodya_: has joined #ruby
[06:59:34] Mortomes|Work: has joined #ruby
[07:00:34] thistle: has joined #ruby
[07:00:44] Pumukel: has joined #ruby
[07:04:20] last_staff: has joined #ruby
[07:05:40] antgel: has joined #ruby
[07:07:58] esObe_: has joined #ruby
[07:11:03] dionysus69: has joined #ruby
[07:11:27] TomyWork: has joined #ruby
[07:13:33] aufi: has joined #ruby
[07:13:38] Arpanet69: has joined #ruby
[07:14:18] Jameser: has joined #ruby
[07:14:52] amitchellbullard: has joined #ruby
[07:17:01] mark_66: has joined #ruby
[07:17:07] andikr: has joined #ruby
[07:17:34] aganov: has joined #ruby
[07:17:41] tAn: has joined #ruby
[07:18:28] MrBusiness: has joined #ruby
[07:21:59] agit0: has joined #ruby
[07:33:17] matthewd: acalycine: No, there is no problem with having spaces in a regexp. (Though their meaning can be changed by the /x flag)
[07:35:08] uncertainty: has joined #ruby
[07:36:43] hutch34: has joined #ruby
[07:39:59] JoshS: has joined #ruby
[07:40:38] Toledo: has joined #ruby
[07:41:11] vuoto: has joined #ruby
[07:41:53] cicppi: has joined #ruby
[07:45:51] Qchmqs: has joined #ruby
[07:46:52] jamesaxl: has joined #ruby
[07:47:29] jshjsh: has joined #ruby
[07:55:23] papillon_: has joined #ruby
[07:57:07] kassav_: has joined #ruby
[07:57:17] mim1k: has joined #ruby
[07:57:29] cfec0b8d: has joined #ruby
[07:58:25] cfec0b8d: has joined #ruby
[08:00:12] uncertainty: has joined #ruby
[08:00:43] lenwood: has joined #ruby
[08:00:50] cfec0b8d: has joined #ruby
[08:02:01] burgestrand: has joined #ruby
[08:04:20] cfec0b8d: has joined #ruby
[08:05:15] thistle: has joined #ruby
[08:05:49] harfangk: has joined #ruby
[08:06:16] blackmesa: has joined #ruby
[08:06:41] cfec0b8d: has joined #ruby
[08:08:05] Silthias: has joined #ruby
[08:08:30] vali: has joined #ruby
[08:14:56] cfec0b8d: has joined #ruby
[08:15:57] bkxd: has joined #ruby
[08:22:34] mim1k: has joined #ruby
[08:24:32] Guest96: has joined #ruby
[08:25:59] jaruga: has joined #ruby
[08:28:24] tlaxkit: has joined #ruby
[08:29:02] biberu: has joined #ruby
[08:31:11] patarr: has joined #ruby
[08:32:54] jsrn_: has joined #ruby
[08:40:20] Bozo: has joined #ruby
[08:43:37] ij: Is there a method to make both :a and :c into [2], [5] respectively, while retaining :b as is?
[08:43:39] ij: => {:a=>2, :b=>[3, 4], :c=>5}
[08:43:41] ij: irb(main):001:0> {a: 2, b: 3}.merge({b: 4, c: 5}) { |k, *vs| vs }
[08:45:59] ij: I guess not with stdlib alone.
[08:46:14] Mon_Ouie: Make values in both hashes arrays first, then merge with Array#+
[08:47:04] _sfiguser: has joined #ruby
[08:48:24] naftilos76: has joined #ruby
[08:52:37] lenwood: has joined #ruby
[08:54:10] uncertainty: has joined #ruby
[08:56:26] dionysus69: has joined #ruby
[08:56:33] ammar23: has joined #ruby
[08:57:32] gusrub: has joined #ruby
[08:58:13] cgfbee: has joined #ruby
[09:00:00] Pisuke: has joined #ruby
[09:00:03] _sfiguser: has joined #ruby
[09:01:22] lofkhs: has joined #ruby
[09:03:26] jasondotstar: has joined #ruby
[09:04:01] hetleq: has joined #ruby
[09:04:38] euphoriaa: has joined #ruby
[09:07:20] binaryplease: has joined #ruby
[09:11:03] thistle: has joined #ruby
[09:11:04] jgnagy: has joined #ruby
[09:15:31] gdonald: has joined #ruby
[09:19:21] StoneCypher: has joined #ruby
[09:23:52] tvw: has joined #ruby
[09:24:41] Terens1: has joined #ruby
[09:24:53] astrobunny: has joined #ruby
[09:28:53] nowhere_man: has joined #ruby
[09:33:18] cschneid: has joined #ruby
[09:35:53] workmad3: has joined #ruby
[09:36:23] last_staff: has joined #ruby
[09:37:10] hutch34: has joined #ruby
[09:45:20] kassav_: has joined #ruby
[09:46:42] bkxd: has joined #ruby
[09:49:48] rt: has joined #ruby
[09:52:57] GodFather: has joined #ruby
[09:53:26] etehtsea: has joined #ruby
[09:57:06] kassav_: has joined #ruby
[09:57:20] xenops: has joined #ruby
[09:59:57] vuoto: has joined #ruby
[10:03:19] vuoto: has joined #ruby
[10:05:00] CloCkWeRX: has joined #ruby
[10:12:39] plantfood: has joined #ruby
[10:18:13] ResidentBiscuit: has joined #ruby
[10:18:58] Papierkorb: has joined #ruby
[10:20:15] al2o3-cr: has joined #ruby
[10:25:36] mim1k: has joined #ruby
[10:25:41] charliesome: has joined #ruby
[10:27:50] araujo: has joined #ruby
[10:32:06] patarr: has joined #ruby
[10:32:24] etehtsea: has joined #ruby
[10:35:50] Sp4rKy: has joined #ruby
[10:39:08] jaruga: has joined #ruby
[10:40:02] jaruga: has joined #ruby
[10:41:25] arup_r: has joined #ruby
[10:43:40] vali: has joined #ruby
[10:45:51] thistle: has joined #ruby
[10:46:57] mikeiniowa: has joined #ruby
[10:47:11] uncertainty: has joined #ruby
[10:49:10] vuoto: has joined #ruby
[10:52:42] maloik: has joined #ruby
[10:54:48] Guest96: has joined #ruby
[10:55:09] byte512: has joined #ruby
[10:55:50] Kug3lis: has joined #ruby
[10:57:33] patarr: has joined #ruby
[10:58:28] tia: has joined #ruby
[10:59:15] Shoutsid: has joined #ruby
[11:03:12] tia: str = "hello ____ how are you?" I want to replace the underscores with the person name. if the occurrence of underscore is more than 3 times. please help
[11:04:35] tobiasvl: tia: what do you mean, "if the occurence of underscore is more than 3 times"
[11:04:50] tobiasvl: if there are more than three _ in a row in a string, you want to substitute it with a variable?
[11:05:18] tia: yes correct
[11:05:45] tobiasvl: tia: str.gsub!(/___/, person_name)
[11:06:21] tobiasvl: or without the bang. at any rate: https://ruby-doc.org/core-2.1.4/String.html#method-i-gsub
[11:07:36] tia: thanks @tobiasvl letme try this
[11:07:59] blackmesa: has joined #ruby
[11:08:02] flying: has joined #ruby
[11:08:14] tobiasvl: tia: oh, "more than 3 times", I forgot that part, sorry
[11:08:42] etehtsea: has joined #ruby
[11:08:43] tia: yeah,already tried this solution
[11:08:51] Kug3lis: has joined #ruby
[11:09:31] tobiasvl: str.gsub(/_{3,}/, person_name)
[11:10:21] herwin: that is "more than 2" ;)
[11:10:32] tobiasvl: _{4,} !!!!!!!!!
[11:10:46] Fernando-Basso: has joined #ruby
[11:10:47] tobiasvl: I'll get more coffee
[11:11:07] nadir: has joined #ruby
[11:11:24] tia: @tobiasvl thanks you so much. its working
[11:11:56] jgnagy: has joined #ruby
[11:12:23] xall: has joined #ruby
[11:19:46] StoneCypher: has joined #ruby
[11:20:46] etehtsea: has joined #ruby
[11:24:59] etehtsea: has joined #ruby
[11:25:13] blackmesa: has joined #ruby
[11:30:04] govg: has joined #ruby
[11:31:11] mnemon: has joined #ruby
[11:35:35] Silthias: has joined #ruby
[11:40:17] armyriad: has joined #ruby
[11:43:32] toretore: has joined #ruby
[11:43:34] gnufied: has joined #ruby
[11:44:28] lhambley: has joined #ruby
[11:45:00] GodFather: has joined #ruby
[11:45:30] ldnunes: has joined #ruby
[11:47:21] bkxd: has joined #ruby
[11:50:02] thistle: has joined #ruby
[11:51:35] Qommand0r: has joined #ruby
[11:53:11] bsartek: has joined #ruby
[11:54:17] galeido: has joined #ruby
[11:55:58] sepp2k: has joined #ruby
[11:56:59] xall: has joined #ruby
[11:59:48] binaryplease1: has joined #ruby
[12:04:01] synthroid: has joined #ruby
[12:04:17] marr: has joined #ruby
[12:06:56] xall: has joined #ruby
[12:09:06] Guest96: has joined #ruby
[12:10:34] hutch34: has joined #ruby
[12:12:29] hutch34_: has joined #ruby
[12:14:36] cow[baby]: has joined #ruby
[12:16:44] synthroid: has joined #ruby
[12:17:36] hutch34: has joined #ruby
[12:18:50] ruby-lang396: has joined #ruby
[12:19:11] ruby-lang396: Ищем разработчка RoR
[12:19:14] ruby-lang396: https://hh.ru/vacancy/19736192
[12:22:29] t-recx: has joined #ruby
[12:23:01] sts: has joined #ruby
[12:24:14] sts: hello folks. whats the best way to provide a clean interface to a method to be called from both, class and instance methods?
[12:24:41] HoierM: has joined #ruby
[12:24:46] sts: Example: https://gist.github.com/anonymous/7e5c929870b2a14ef35d75cb4ae5595e
[12:25:22] loechel: has joined #ruby
[12:25:48] mim1k: has joined #ruby
[12:25:49] sts: the constructor of Puppet::Puppet_X::Checkmk::Wato also does some file operations, which could be cut in case it doesn't create a new instance everytime the class is called.
[12:27:07] Pumukel: has joined #ruby
[12:31:44] CloCkWeRX: has joined #ruby
[12:35:19] Hanmac: has joined #ruby
[12:38:19] hutch34: has joined #ruby
[12:39:14] mr_foto: has joined #ruby
[12:39:44] lenwood: has joined #ruby
[12:41:26] nowhere_man: has joined #ruby
[12:47:37] jusa: has joined #ruby
[12:47:59] jaruga: has joined #ruby
[12:48:04] xall: has joined #ruby
[12:48:55] Pumukel: has joined #ruby
[12:50:36] IRCFrEAK: has joined #ruby
[12:52:11] IRCFrEAK: has left #ruby: ()
[12:53:25] papillon: has joined #ruby
[12:55:13] aupadhye: has joined #ruby
[12:55:31] cfec0b8d: has joined #ruby
[12:57:59] hutch34: has joined #ruby
[12:58:09] __Yiota: has joined #ruby
[12:59:33] Hz: has joined #ruby
[12:59:35] duckpupp1: has joined #ruby
[13:00:08] burgestrand: sts Have a look at this: https://ruby-doc.org/core-2.4.0/Module.html#method-i-module_function
[13:00:39] My_Hearing: has joined #ruby
[13:00:40] scottj: has joined #ruby
[13:01:01] burgestrand: sts Your situation is slightly complicated by, from my understanding, the fact that you wish to keep the new Wato instance around?
[13:02:55] __Yiota: has joined #ruby
[13:03:50] erlend: has joined #ruby
[13:08:37] cfec0b8d: has joined #ruby
[13:15:14] cdg: has joined #ruby
[13:16:08] KnownSyntax: has joined #ruby
[13:17:58] ResidentBiscuit: has joined #ruby
[13:20:20] StoneCypher: has joined #ruby
[13:23:03] electrostat: has joined #ruby
[13:27:20] blackmesa: has joined #ruby
[13:28:56] thistle: has joined #ruby
[13:30:54] uncertainty: has joined #ruby
[13:32:51] ramortegui: has joined #ruby
[13:33:02] DLSteve: has joined #ruby
[13:34:05] Pumukel: has joined #ruby
[13:35:24] blackmesa: has joined #ruby
[13:35:58] rwb: has joined #ruby
[13:39:18] millerti: has joined #ruby
[13:42:12] hutch34: has joined #ruby
[13:43:28] Mon_Ouie: has joined #ruby
[13:44:09] libastral: has joined #ruby
[13:45:15] uncertainty: has joined #ruby
[13:46:04] binaryplease: has joined #ruby
[13:47:52] gdonald: has joined #ruby
[13:48:12] bkxd: has joined #ruby
[13:50:32] arooni: has joined #ruby
[13:51:22] houhoulis: has joined #ruby
[13:52:01] catphish: has joined #ruby
[13:52:27] electrostat: has joined #ruby
[13:52:49] catphish: would anyone be able to explain this error to me: Errno::EPERM Operation not permitted - sendto(2) for "udp.apalyze.io" port 13443
[13:53:23] catphish: you'd think that error would be self-explanatory, but there's a snag, EPERM is not an error in sendto(2)
[13:53:27] Pumukel: has joined #ruby
[13:53:33] chouhoulis: has joined #ruby
[13:53:40] kill_init: has joined #ruby
[13:54:15] hutch34_: has joined #ruby
[13:54:25] jgnagy: has joined #ruby
[13:55:07] acalycine: has joined #ruby
[13:55:14] xall: has joined #ruby
[13:55:43] catphish: i think it means a buffer got full
[13:56:41] Exagone313: has joined #ruby
[14:00:28] ahrs: has joined #ruby
[14:01:18] shinnya: has joined #ruby
[14:02:20] jamesaxl: has joined #ruby
[14:04:32] xall: has joined #ruby
[14:04:57] fuzzyhorns: has joined #ruby
[14:05:30] ozcanesen: has joined #ruby
[14:06:38] Qchmqs: has joined #ruby
[14:10:58] chouhoulis: has joined #ruby
[14:11:55] millerti: has joined #ruby
[14:12:20] Verity: ruby works well
[14:12:41] Verity: that's why it's often silent in here for extended periods
[14:16:45] zipace: has joined #ruby
[14:17:21] Rodya_: has joined #ruby
[14:19:17] StoneCypher: has joined #ruby
[14:21:35] jamesaxl: has joined #ruby
[14:22:34] aryaching: has joined #ruby
[14:23:38] JoshS: has joined #ruby
[14:23:59] cpruitt: has joined #ruby
[14:25:00] catphish: Verity: true story
[14:25:22] ResidentBiscuit: has joined #ruby
[14:25:25] ResidentBiscuit: /j #rubyonrails
[14:25:33] chouhoulis: has joined #ruby
[14:25:53] chouhoul_: has joined #ruby
[14:34:21] aglorei: has joined #ruby
[14:34:36] __Yiota: has joined #ruby
[14:36:37] droidburgundy: has joined #ruby
[14:36:40] Qchmqs: has joined #ruby
[14:37:01] gdonald: has joined #ruby
[14:38:55] __Yiota: has joined #ruby
[14:39:53] hutch34_: has joined #ruby
[14:42:24] uncertainty: has joined #ruby
[14:43:04] azwieg103: has joined #ruby
[14:45:29] jgnagy: has joined #ruby
[14:46:59] ltem: has joined #ruby
[14:48:06] armando1: has joined #ruby
[14:48:34] jusa: has joined #ruby
[14:48:44] catphish: has left #ruby: ("Leaving")
[14:51:14] yurikoles: has joined #ruby
[14:51:42] aupadhye_: has joined #ruby
[14:52:55] electrostat: has joined #ruby
[14:55:57] cow[baby]: has left #ruby: ()
[14:57:02] georgie: has joined #ruby
[14:57:26] patarr: has joined #ruby
[14:59:00] rippa: has joined #ruby
[14:59:47] kazo: has joined #ruby
[15:00:00] gusrub: has joined #ruby
[15:00:14] plantfood: has joined #ruby
[15:00:34] fuzzyhorns: has left #ruby: ()
[15:00:47] bkxd: has joined #ruby
[15:01:21] LuckyABA: has joined #ruby
[15:04:14] electrostat: has joined #ruby
[15:06:09] bkxd: has joined #ruby
[15:07:10] agent_white: has joined #ruby
[15:08:07] agent_white: Mornin' folks
[15:08:21] jacobshaw: has joined #ruby
[15:08:27] Lord_of_Life: has joined #ruby
[15:08:37] BTRE: has joined #ruby
[15:08:48] minimalism: has joined #ruby
[15:09:12] Verity: 'afternoon
[15:09:15] Verity: ACTION goes to lunch
[15:10:38] Pumukel: has joined #ruby
[15:15:10] ziprar: has joined #ruby
[15:17:49] uncertainty: has joined #ruby
[15:18:09] mazeinmaze_: has joined #ruby
[15:18:37] StoneCypher: has joined #ruby
[15:20:09] TomyLobo: has joined #ruby
[15:23:53] kallisti5: has joined #ruby
[15:23:56] kallisti5: has left #ruby: ()
[15:24:14] nowhere_man: has joined #ruby
[15:24:30] ResidentBiscuit: has joined #ruby
[15:26:40] Mon_Ouie: has joined #ruby
[15:29:56] ixti: has joined #ruby
[15:32:50] blackmesa: has joined #ruby
[15:35:55] gregf_: has joined #ruby
[15:37:11] jgnagy: has joined #ruby
[15:40:04] Mia: has joined #ruby
[15:40:05] Mia: has joined #ruby
[15:41:06] electrostat: has joined #ruby
[15:41:17] BTRE: has joined #ruby
[15:42:06] uncertainty: has joined #ruby
[15:43:55] amclain: has joined #ruby
[15:44:44] dionysus69: has joined #ruby
[15:45:11] __Yiota: has joined #ruby
[15:45:29] DroidBur_: has joined #ruby
[15:47:04] electrostat: has joined #ruby
[15:48:15] uncertainty: has joined #ruby
[15:48:57] Lord_of_Life: has joined #ruby
[15:49:31] aufi: has joined #ruby
[15:50:27] synthroid: has joined #ruby
[15:51:27] antoniobeyah: has joined #ruby
[15:53:14] millerti: has joined #ruby
[15:54:13] juggler: has joined #ruby
[15:54:29] tristanp: has joined #ruby
[15:55:05] cout: has joined #ruby
[15:55:37] tolerablyjake: has joined #ruby
[15:57:07] gigetoo: has joined #ruby
[16:03:41] marxarelli: has joined #ruby
[16:03:47] FoX_77: has joined #ruby
[16:04:25] FoX_77: puts "How is everyone?"
[16:05:17] apeiros: hi FoX_77, I'm fine, leaving in a minute to do some exercises - how are you?
[16:05:37] FoX_77: if Ruby_Channel == nil ; puts "To Bad So Sad... :-( "; else puts "Sweet" ; end
[16:05:57] FoX_77: i was thinking about going to gym to
[16:06:11] FoX_77: i just finished Codeacademy segment one
[16:06:42] FoX_77: so now im watching https://youtu.be/fWiKvPRm6bc?list=PLgYiyoyNPrv9GUToqLWapjDoyk-yXThcp
[16:14:31] Pumukel: has joined #ruby
[16:15:05] cagomez: has joined #ruby
[16:16:16] blackmesa: has joined #ruby
[16:17:16] glyfrp: has joined #ruby
[16:18:34] bkxd: has joined #ruby
[16:18:51] Tau: has joined #ruby
[16:20:54] synthroid: has joined #ruby
[16:24:59] cagomez: has joined #ruby
[16:25:06] nitric: has joined #ruby
[16:25:26] hxegon: seems to be a pretty thorough series
[16:26:26] tAn: has joined #ruby
[16:30:40] dcluna: has joined #ruby
[16:30:44] jcao219: has joined #ruby
[16:32:28] synthroid: has joined #ruby
[16:35:09] hahuang65: has joined #ruby
[16:35:24] electrostat: has joined #ruby
[16:35:47] mim1k: has joined #ruby
[16:36:38] rakm: has joined #ruby
[16:37:29] synthroid: has joined #ruby
[16:41:00] yxhuvud: has joined #ruby
[16:45:35] tildes: has joined #ruby
[16:48:52] uncertainty: has joined #ruby
[16:52:07] jamesaxl: has joined #ruby
[16:55:22] gusrub: has joined #ruby
[16:56:15] mim1k: has joined #ruby
[16:56:23] osliusar: has joined #ruby
[16:56:52] nowhere_man: has joined #ruby
[16:57:03] gusrub: has joined #ruby
[16:57:30] bsartek: has joined #ruby
[16:57:41] knight33: has joined #ruby
[17:01:26] MasterNayru: has joined #ruby
[17:02:03] kies: has joined #ruby
[17:04:44] [Butch]: has joined #ruby
[17:06:34] blackmesa: has joined #ruby
[17:09:17] Ishido: has joined #ruby
[17:09:24] _sfiguser: has joined #ruby
[17:09:57] binaryplease: has joined #ruby
[17:13:48] kiltzman: has joined #ruby
[17:14:20] thistle: has joined #ruby
[17:16:04] kiltzman: has joined #ruby
[17:23:05] bsartek: has joined #ruby
[17:23:51] thistle: has joined #ruby
[17:24:11] Xiti: has joined #ruby
[17:24:30] jusa: has joined #ruby
[17:27:13] thistle: has joined #ruby
[17:27:39] nowhere_man: has joined #ruby
[17:30:14] Sweetlie: has joined #ruby
[17:31:11] mello: has joined #ruby
[17:32:46] flujan: has joined #ruby
[17:37:17] SeepingN: has joined #ruby
[17:39:22] vuoto: has joined #ruby
[17:41:12] duderonomy: has joined #ruby
[17:41:52] AndBobsYourUncle: has joined #ruby
[17:46:41] Phage: Hey guys. IS Ruby pre-installed on linux these days?
[17:47:09] Robtop__: has joined #ruby
[17:47:19] baweaver: in most cases it seems so
[17:47:44] baweaver: depends on the distro really
[17:48:35] zipace: has joined #ruby
[17:51:06] solocshaw: has joined #ruby
[17:53:37] adam12: It is on openSUSE, as Yast2 is built in Ruby.
[17:54:34] FoX_77: yea it is
[17:54:57] Phage: All right... I’m mostly interested in Debian and RPM based distros
[17:55:05] baweaver: though if you're doing Ruby dev chances are high you don't want system or package ruby
[17:55:05] FoX_77: sorry was trying to figure out why nil and empty? and present? was and not working
[17:55:20] KevinMGranger: Even if it's not present by default, it's easy to get.
[17:56:08] FoX_77: yea goto ruby : https://www.ruby-lang.org/en/documentation/installation/
[17:56:16] baweaver: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[17:56:25] baweaver: that one tends to be fairly standard
[17:56:49] Phage: I’m not looking to install it
[17:56:58] Phage: I’m simply trying to figure out if I should use Python or Ruby for this
[17:57:10] Phage: Sadly it seems Python will win this time, since it’s pre-installed on mostly everything
[17:57:25] Phage: Just sad that I can’t use Ruby :(
[17:57:33] Phage: ‘cause screw Python’s OOP implementation
[17:57:47] gdonald: has joined #ruby
[17:57:47] FoX_77: you should be !!! Ruby is better :-) lol
[17:58:15] baweaver: Ruby is in RHEL by default, and probably Ubuntu
[17:58:37] FoX_77: Fox_77 earns.. 100 Points !!!
[18:01:33] bkxd: has joined #ruby
[18:02:08] __Yiota: has joined #ruby
[18:02:45] vuoto: has joined #ruby
[18:03:48] FoX_77: https://github.com/James-Fox/github/blob/master/test.01.rb
[18:04:00] FoX_77: this is madness ... im bored
[18:04:02] chouhoulis: has joined #ruby
[18:04:03] gigetoo: has joined #ruby
[18:05:08] FoX_77: that came from one present? method i was woundering about
[18:05:23] FoX_77: require 'rails'
[18:05:30] FoX_77: would of helped lol
[18:05:58] pulkit4tech: has joined #ruby
[18:06:07] tolerablyjake: has joined #ruby
[18:06:20] __Yiota: has joined #ruby
[18:09:15] xzhao_: has joined #ruby
[18:11:44] apeiros: what's up with people saying "would of" instead of "would have"?
[18:12:26] baweaver: would it of mattered?
[18:12:58] apeiros: it reads weird, and I don't think it's correct. but I see it often and I'm not a native speaker…
[18:13:00] ozcanesen: has joined #ruby
[18:13:01] HoierM: has joined #ruby
[18:13:27] apeiros: now I wonder whether it's an outright mistake, a slang, a meme or something else even
[18:13:46] havenwood: apeiros: the contraction "could've" sounds like "could of"
[18:16:13] dminuoso: havenwood: And is just proof that those folks are idiots. No time or keystrokes are saved by typing could of.
[18:16:18] dminuoso: All it does it make people look like idiots.
[18:16:59] apeiros: dminuoso: that's not nice
[18:17:15] apeiros: there's plenty of intelligent people who fail badly at grammar and orthography
[18:17:29] apeiros: even more so in foreign languages
[18:17:47] dminuoso: apeiros: We should do a case study.
[18:18:02] apeiros: meh, conducting studies is boring af :)
[18:18:03] havenwood: FoX_77: You don't even need to require all of Rails, you can just cherry pick the part you need: require 'active_support/core_ext/object/blank'
[18:18:12] havenwood: FoX_77: Woof!
[18:18:38] havenwood: FoX_77: That's a good use of Array#sample, nice.
[18:18:48] dminuoso: apeiros: Yeah, it's kind've boring.
[18:19:18] havenwood: FoX_77: You should avoid `true == true` like on like 13. Just `if dog_say.empty?` will already return `true` or `false`.
[18:19:21] havenwood: FoX_77: Same with line 31.
[18:19:49] havenwood: On line 43 you can drop the #to_s, since #puts will #to_s for you.
[18:24:12] herwin: we had a discussion at my work today about the best code review tool, looks like we forgot to include irc ;)
[18:25:35] StoneCypher: how do i step in pry
[18:26:48] jhass: get pry-byebug and then say step ;)
[18:27:22] StoneCypher: i'm already in a pry console
[18:27:25] StoneCypher: is there no stepping?
[18:27:45] jhass: pry is a REPL, pry-byebug adds debugger features
[18:28:13] StoneCypher: but the repl already has debugger features and none of the tutorials mention that >:(
[18:29:13] baweaver: StoneCypher === DreamInCode astonecipher ?
[18:29:27] toretore: has joined #ruby
[18:29:48] StoneCypher: baweaver: no. it's a semi-common british last name; a specific kind of druid.
[18:30:18] StoneCypher: jhass: that seems to have been what i wanted. thanks
[18:30:24] jaruga: has joined #ruby
[18:31:07] jaruga: has joined #ruby
[18:32:39] blackmesa: has joined #ruby
[18:32:49] cfec0b8d: has joined #ruby
[18:41:11] govg: has joined #ruby
[18:46:15] jokke: i have some trouble with HTTPClient
[18:46:21] jokke: it's apparently not reusing connections
[18:46:48] jokke: see the following test code: https://p.jreinert.com/ZArI/
[18:47:18] jokke: i have a server which certainly supports reusing connections and does so when i use curl as a client
[18:47:53] jokke: it doesn't however with HTTPClient which clearly advertises that it is threadsafe and reuses connections
[18:48:05] jokke: anyone experiencing similar behavior
[18:56:04] muelleme_: has joined #ruby
[18:58:10] cfec0b8d: has joined #ruby
[18:59:53] solocshaw: has joined #ruby
[19:00:22] snickers: has joined #ruby
[19:02:58] [Butch]: has joined #ruby
[19:06:08] tildes: has joined #ruby
[19:12:44] sandroqz: has joined #ruby
[19:17:00] cagomez: has joined #ruby
[19:17:38] jcao219: has joined #ruby
[19:19:18] mrconfused: has joined #ruby
[19:20:32] jaequery: has joined #ruby
[19:22:14] knight33: has joined #ruby
[19:25:20] Lyfe: Anyone know of a decent document describing using minitest specs with a Grape API that you're building?
[19:35:46] pavelz: has joined #ruby
[19:36:19] pavelz: hi, have a small q, what the diff between str.each_byte and str.enum_for(:each_byte) ..?
[19:36:32] matthewd: pavelz: Nothing
[19:36:33] pavelz: both return enum
[19:36:46] pavelz: just wondering cuz is in example )
[19:36:50] pavelz: http://ruby-doc.org/core-2.4.1/Object.html#method-i-to_enum
[19:37:59] gigetoo: has joined #ruby
[19:38:24] matthewd: pavelz: each_byte is implemented by calling enum_for/to_enum, using the pattern shown in the `repeat` example
[19:38:28] Lord_of_Life: has joined #ruby
[19:38:44] dionysus69: has joined #ruby
[19:44:00] redondos_: has joined #ruby
[19:46:21] txdv: has joined #ruby
[19:47:20] bkxd: has joined #ruby
[19:51:20] ruby[bot]: has joined #ruby
[19:51:21] ChanServ: +o ruby[bot]
[19:51:50] ruby[bot]: -b himmmmmm!*@*$#ruby-banned
[19:51:52] ruby[bot]: -b+b *!ac3a0c01@gateway/web/freenode/ip.172.58.12.1 *!ac3a0c01@gateway/web/freenode/ip.172.58.12.1$#ruby-banned
[19:51:52] ruby[bot]: -b *!*@unaffiliated/fowlmouth$#ruby-banned
[19:52:54] pavelz: matthewd: thanks!
[19:56:07] [Butch]: has joined #ruby
[19:57:56] faelkle: has joined #ruby
[19:57:56] faelkle: has joined #ruby
[19:58:10] ruby[bot]: -q txdv!*@*
[19:58:54] gigetoo: has joined #ruby
[19:59:17] oded: has joined #ruby
[19:59:59] Ishido: has joined #ruby
[20:00:39] Guest96_: has joined #ruby
[20:02:24] blackmesa: has joined #ruby
[20:06:31] rgtk: has joined #ruby
[20:14:10] jusa: has joined #ruby
[20:14:26] cdg: has joined #ruby
[20:17:18] solocshaw: has joined #ruby
[20:17:47] Nahra`: has joined #ruby
[20:18:28] chouhoul_: has joined #ruby
[20:20:35] cagomez: has joined #ruby
[20:22:13] pupsicle: has joined #ruby
[20:22:39] binaryplease: has joined #ruby
[20:22:42] chouhoulis: has joined #ruby
[20:26:11] cagomez: has joined #ruby
[20:30:01] enterprisey: has joined #ruby
[20:32:37] ResidentBiscuit: has joined #ruby
[20:33:23] SeepingN_: has joined #ruby
[20:36:55] vali: has joined #ruby
[20:37:31] Xiti: has joined #ruby
[20:38:18] tildes: has joined #ruby
[20:43:28] millerti: has joined #ruby
[20:47:54] ledestin: has joined #ruby
[20:50:31] esObe_: has joined #ruby
[20:52:39] gigetoo: has joined #ruby
[20:57:23] tommylommykins: has joined #ruby
[20:59:02] aglorei: has joined #ruby
[20:59:04] snickers: has joined #ruby
[21:00:00] Nahra`: has joined #ruby
[21:00:36] chrisseaton: has joined #ruby
[21:01:08] chrisseaton: Hi does anyone have a good understanding of the relationship between Digest and OpenSSL::Digest? The later just subclasses the former, right? Why is it like that?
[21:02:28] gigetoo: has joined #ruby
[21:04:00] matthewd: chrisseaton: I thought they were unrelated
[21:04:08] jenrzzz: has joined #ruby
[21:04:21] chrisseaton: I have `cDigest = rb_define_class_under(mOSSL, "Digest", rb_path2class("Digest::Class"));`, but I'm just not sure of the history of all this
[21:05:41] ytti: irb(main):001:0> "u173".to_i(32)
[21:05:41] ytti: => 984291
[21:05:41] ytti: irb(main):002:0> "u173z".to_i(32)
[21:05:41] ytti: => 984291
[21:06:15] SeepingN: "u173anythingyouwantheretheyarentnumbers".to_i(32)
[21:07:14] samdvr: has joined #ruby
[21:07:23] ytti: i guess ruby is using base32 variant not coding z
[21:07:44] ytti: i would have assumed standard RFC variant
[21:08:23] SeepingN: ah, yes. Goes to v
[21:08:25] matthewd: chrisseaton: Ah, indeed -- https://github.com/ruby/ruby/commit/3ec97f3732ff78aff36ca04153a7a4b4a82bf2c2
[21:08:55] SeepingN: >> "u173anythingyouwantheretheyarentnumbers".to_i(32)
[21:08:56] ruby[bot]: SeepingN: # => 1007914327 (https://eval.in/767863)
[21:09:04] SeepingN: heh yeah, I was way off
[21:09:25] matthewd: chrisseaton: Looks like it saves a duplicate definition of hexdigest, for example
[21:10:15] Nahra`: has joined #ruby
[21:15:27] Arpanet69: has joined #ruby
[21:16:41] Jayson_Virissimo: has joined #ruby
[21:17:51] Azure: has joined #ruby
[21:18:10] bkxd: has joined #ruby
[21:21:05] RobertBirnie: has joined #ruby
[21:21:39] AvengerX: has joined #ruby
[21:23:45] AvengerX: I wonder if there's a way to catch stderr from IO.popen() with something like: stdout_var, stderr_var = popen(["ls", "-l"]) - or - stdout_var = popen(["ls", "-l"], :err=>[:child, stderr_var]) ?
[21:24:50] AvengerX: I don't want to just merge stdout to stderr, but I did also want not to use the popen() do | stdout, stderr | { ... } syntax
[21:26:12] __Yiota: has joined #ruby
[21:26:40] havenwood: AvengerX: Maybe consider if an Open3 method would be more suited to your situation?: https://docs.ruby-lang.org/en/2.4.0/Open3.html
[21:29:51] AvengerX: hmmm thanks havenwood. I was trying to figure a way to use IO.popen() instead. I couldn't find a docs on what can I use on IO.popen()'s "opts". I see I can use :err=>[:child, :out], :external_encoding=>"something", :internal_encoding=>"something" but can't find an actual reference of what can be there.
[21:30:46] gigetoo: has joined #ruby
[21:31:07] rwb: has joined #ruby
[21:33:00] JoshS: has joined #ruby
[21:34:28] __Yiota: has joined #ruby
[21:36:42] rizonz: has joined #ruby
[21:37:08] rizonz: I have some issue with some url where I need to remove lots of parts from
[21:37:55] rizonz: this is my URL ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/
[21:38:14] LuckyABA: has joined #ruby
[21:38:44] havenwood: rizonz: What are you trying to get at?
[21:38:46] rizonz: now I need a ftp://mirror.nl.leaseweb.net/fedora/linux/updates/25 as well
[21:38:53] rizonz: but my source is the releases one
[21:39:06] SeepingN: .......25/Everything/../
[21:39:32] rizonz: I need to get the absolute path ftp://mirror.nl.leaseweb.net/fedora/linux/
[21:39:34] SeepingN: may or may nto work depending on the server
[21:39:47] rizonz: it's for kickstart
[21:42:10] AvengerX: isn't it regexp you need? http://ruby-doc.org/core-2.4.1/Regexp.html
[21:42:14] rizonz: can I dist it out ?
[21:48:36] al2o3-cr: AvengerX: out, err, _ = Open3.capture3('ls -l')
[21:49:31] AvengerX: rizons: ruby -e 'a="ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/"' -e 'b=a.gsub(/\/releases\//, "\/updates\/")' -e 'puts("original: " + a)' -e 'puts("modified: " + b)'
[21:49:37] AvengerX: to start with, maybe this help
[21:50:12] AvengerX: al2o3-cr: thanks!
[21:51:08] AvengerX: isn't there any leads how to mangle with the :err[:child, :out] parameter in the IO.popen at all? I was hoping there were something that could be done with that, google didn't help at all.
[21:51:18] rizonz: AvengerX: ok thanksa
[21:51:51] matthewd: AvengerX: Why are you trying so hard to avoid open3? :/
[21:52:21] chrisseaton: has left #ruby: ()
[21:53:11] AvengerX: I think now it is of curiosity. I could find no documentation about that options IO.popen takes. Maybe there's ways to do this without any requires and all. Just feels the code would look "simpler"
[21:53:53] cagomez: has joined #ruby
[21:55:32] StoneCypher: hi, i'm sorry for the intensely stupid question. in pry-byebug, both step and next seem to step into. how do i just step over?
[21:56:05] matthewd: AvengerX: You're looking for http://ruby-doc.org/core/Kernel.html#method-i-spawn, for the options
[21:56:07] StoneCypher: the manual only lists break, step, next, finish, continue, and backtrace/up/down/frame
[21:56:39] matthewd: AvengerX: But no, there's really not a way to do what you want while avoiding the library that's there to do this very thing
[21:57:51] matthewd: StoneCypher: next is what you want; if it's not behaving as you expect, you'll need to give more info
[21:58:30] StoneCypher: i have a method on which i'm stopped a line. i type next and expect to be stopped at the next line. instead it's dived into some utility method on mongo.
[21:58:52] StoneCypher: i am not aware of a relevant error at the time.
[21:59:05] matthewd: Is there a breakpoint on said line?
[21:59:24] StoneCypher: no. i want step over, not continue to next breakpoint.
[22:00:04] matthewd: !gist the session?
[22:00:52] StoneCypher: moment. (but really i just want to know how to step over)
[22:01:36] SeepingN: has joined #ruby
[22:01:38] AvengerX: thanks matthewd!
[22:02:19] AvengerX: about the rizonz question above, there's also a nice syntax for rexep on ruby: ruby -e 'a="ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/"' -e 'puts("original: " + a)' -e 'puts("modified: " + a[/(.*\/)releases\/.*/, 1] + "updates" + a[/.*\/releases(\/.*\/)Everything\//, 1])'
[22:02:30] AvengerX: well, golfed like that maybe it does not look as cool. hehe
[22:03:25] StoneCypher: matthewd: https://gist.github.com/StoneCypher/03eeec82dbfc63b20a4de00d05b109ac
[22:03:31] baweaver: >> "ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/".split('releases').last.split('/').first
[22:03:32] ruby[bot]: baweaver: # => "" (https://eval.in/767913)
[22:03:42] baweaver: >> "ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/".split('releases').last.split('/')
[22:03:43] ruby[bot]: baweaver: # => ["", "25", "Everything"] (https://eval.in/767914)
[22:04:06] baweaver: >> "ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/".split('/releases/').last.split('/')
[22:04:07] ruby[bot]: baweaver: # => ["25", "Everything"] (https://eval.in/767915)
[22:04:50] esObe_: has joined #ruby
[22:04:54] StoneCypher: baweaver: please use a local repl instead of making hundreds of people watch you use the bot
[22:05:10] AvengerX: cool, matthewd! You beaten it to the documentation-finding-skills! hehe
[22:05:24] matthewd: StoneCypher: That's not a step, because it doesn't end up at the top of find_by
[22:05:36] ruby[bot]: baweaver: # => "ok" (https://eval.in/767916)
[22:06:03] matthewd: StoneCypher: Also, it's ending up in a nested pry context
[22:06:51] binaryplease: has joined #ruby
[22:07:34] matthewd: (I think -- given the '[1]')
[22:07:50] StoneCypher: matthewd: all i did was type next, per your instruction
[22:07:53] matthewd: But I think my best theory is still that there's a breakpoint set on that line
[22:08:09] StoneCypher: unless breakpoints could be stored in github somehow
[22:08:19] StoneCypher: because i just downloaded this repo a couple hours ago, and i don't know how to set a breakpoint
[22:08:31] StoneCypher: can someone tell me how to step over in pry-byebug, please
[22:09:51] matthewd: StoneCypher: Asked and answered
[22:10:09] StoneCypher: sorry, no, next isn't step over
[22:10:11] StoneCypher: thanks though
[22:10:28] jdm: has joined #ruby
[22:10:28] StoneCypher: can someone else please tell me how to step over? as you can see from the docs and the logs, next is not what i'm actually asking for
[22:10:42] matthewd: > next: Step over to the next line within the same frame.
[22:10:50] matthewd: StoneCypher: Do not PM.
[22:10:55] baweaver: not a great way to make friends
[22:11:08] StoneCypher: matthewd: are you an op? i want to know if it's safe to use /ignore
[22:11:38] baweaver: StoneCypher: be nice
[22:12:00] matthewd: I was trying to help you work out why the correct command isn't working for you; you were already ignoring me by instead re-asking the original question
[22:12:20] StoneCypher: baweaver: i just want someone else to answer, because this gentleman is confused about what i'm asking for, and isn't taking the polite hint
[22:12:26] baweaver: because I most certainly am an op and not nearly as patient :)
[22:12:40] baweaver: ps: that was a polite hint too
[22:13:12] StoneCypher: can someone please tell me how to step over in pry-byebug? as you can see from the log, typing 'next' does not stop at the next line.
[22:13:29] StoneCypher: and/or what i'm failing to understand.
[22:13:55] matthewd: StoneCypher: It's getting interrupted before it gets to the next line
[22:15:12] jusa: has joined #ruby
[22:15:47] Rodya_: has joined #ruby
[22:20:42] ruby[bot]: It's popcorn time! 🍿🍿🍿
[22:23:32] postmodern: has joined #ruby
[22:24:02] rakm: has joined #ruby
[22:26:59] AvengerX: matthewd: now I know how it works :B
[22:27:00] AvengerX: ruby -e 'stderr_r, stderr_w = IO.pipe' -e 'result = IO.popen([ "ls", "-l", "invalid_file.ext" ], :err=>stderr_w)' -e 'stderr_w.close()' -e 'p result.readlines' -e 'puts "========="' -e 'p stderr_r.readlines' -e 'stderr_r.close()'
[22:27:07] AvengerX: thanks for the link!
[22:27:56] matthewd: AvengerX: Note that isn't safe; you really want open3
[22:28:26] AvengerX: okay, noted!
[22:28:30] havenwood: AvengerX: Open3 is in the stdlib. I can't think of a reason to avoid it.
[22:29:26] matthewd: AvengerX: "Isn't safe" here == "will hang forever, depending on the command's output"
[22:29:47] AvengerX: yup, I reproduced this before I closed both FDs. :)
[22:30:24] matthewd: (but yes, it's still neat to know how it works)
[22:30:38] LuckyABA: has joined #ruby
[22:31:48] matthewd: Oh, right, I missed that you were closing stderr_w. At a glance, I think that'll prevent it from hanging.
[22:32:20] matthewd: It'll also mean you potentially don't see any of the stderr output, of course
[22:33:29] AvengerX: I can close it as soon as I'm done writing to it (after popen()). Then I can read it at will thru stderr_r. Until I close it, that is.
[22:33:32] TomyLobo: has joined #ruby
[22:34:38] AvengerX: I guess idea is read what I have to (write to stderr_w), bind that to a variable (copy whatever is in stderr_r over), and close them.
[22:36:15] gigetoo: has joined #ruby
[22:36:23] AvengerX: and also I was frustrated on finding no docs on the :err and FDs usage!.. I still think it is a problem with the docs having no reference at least once in the class for where that is taken from. (used in IO but taken from Kernel). I was really helpless trying to find that.
[22:38:01] matthewd: AvengerX: I promise the above will not work reliably. But I'm afraid I'm too tired to keep trying to convince you, so.. you do you.
[22:38:28] AvengerX: Don't worry, I used that only for educational purposes hehe
[22:41:03] AvengerX: Now that I know it is on spawn I found in the examples there's a reference to Kernel.spawn there. hehehe (on IO.popen() docs)
[22:41:26] SeepingN: has joined #ruby
[22:43:27] gigetoo: has joined #ruby
[22:43:34] matthewd: It does seem like it could be more explicit, with a line like the ones on Kernel#system and Kernel#exec
[22:43:43] SeepingN_: has joined #ruby
[22:45:39] dtzuzu: has joined #ruby
[22:48:10] gdonald: has joined #ruby
[22:48:49] gigetoo: has joined #ruby
[22:50:27] dviola: has joined #ruby
[22:54:47] cagomez: is it possible to map over an array of symbols, call them as a method on an object, and set a value ? eg I want to call :mon, :tue, :wed, on a Week object. and set all the dates to Date.today()
[22:58:41] cagomez: got it, used obj.send()
[22:59:14] outreachdan: has joined #ruby
[22:59:47] outreachdan: Anyone here with EventMachine experience? My reactor keeps stopping before my tests are complete and only gets part-way through code execution before failing.
[23:00:57] havenwood: cagomez: #public_send is a bit nicer, if you're using the public interface
[23:01:04] havenwood: cagomez: Some code for fun: require 'date'; DAYS = Date::ABBR_DAYNAMES.map(&:downcase).map(&:to_sym); class Week; DAYS.each { |day| define_method day, ->{ Date.today } } end; DAYS.map { |day| Week.new.public_send day }
[23:01:27] naprimer: has joined #ruby
[23:01:30] havenwood: >> require 'date'; Date::ABBR_DAYNAMES
[23:01:31] ruby[bot]: havenwood: # => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] (https://eval.in/767938)
[23:04:50] justizin: has joined #ruby
[23:06:47] shterrett: has joined #ruby
[23:08:35] hutch34_: has joined #ruby
[23:09:07] justizin: anyone know if it's possible with tempfile, or an alternative existing implementation, to limit length of temp filenames? trying to generate nagios check result files, which want a 7-char name beginning with 'c'
[23:10:02] justizin: mkstemp seems to conform by default, but Tempfile seems to generate much longer names.
[23:11:38] justizin: or if not by default, with a template. i guess python tempfile.mkstemp conforms by default.
[23:12:31] havenwood: justizin: having it begin with "c" by setting the tempfile basename to "c"
[23:13:19] cagomez: is there a way to avoid explicitly returning `Foo`? Is it bad style? def foo_maker(foo, bar); bar.map { |b| foo.send(b.to_s + "=", Date.today()) }; return foo; end ... called like so: foo_maker(Foo.new, [:one, :two, :three])
[23:13:44] justizin: havenwood: right, but limiting the length, not so much, by default Tempfile.new('c') on this particular ruby, at least, gives me: `/tmp/c20170404-31444-12jgzda`
[23:14:07] justizin: whereas 'mktemp -t cXXXXXX' gives me '/tmp/cTnvL5y'
[23:14:14] justizin: any way to influence what the generated component of the filename is?
[23:14:29] havenwood: the latter is much more likely to collide, for what it's worth
[23:14:37] justizin: i don't see anything in docs, i'm just trying to avoid shelling out to tmpfile or calling mkstemp via ffi
[23:14:58] justizin: havenwood: right, but ... this is how nagios works, so ... it will reject anything else.
[23:15:30] justizin: currently i'm processing items from a kafka stream and sending a value to graphite, then i'm checking graphite for the age of the last data point, which is fairly expensive compared to, say, writing out a text file on the nagios host. :)
[23:15:43] justizin: it is an esoteric use case and i don't entirely fault the ruby Tempfile for not accommodating, it's just what I need.
[23:15:55] justizin: worst case I probs just reimplement mkstemp or something, but that feels icky.
[23:16:55] patarr: has joined #ruby
[23:18:58] bkxd: has joined #ruby
[23:22:29] voiceme: has joined #ruby
[23:23:46] gigetoo: has joined #ruby
[23:26:08] patarr: has joined #ruby
[23:28:32] Tau: has joined #ruby
[23:29:14] cagomez: has joined #ruby
[23:30:45] jamesaxl: has joined #ruby
[23:36:32] Verity: Anyone doing code audits
[23:37:46] Verity: I just reached another milestone
[23:38:10] patarr: has joined #ruby
[23:38:56] minimalism: has joined #ruby
[23:46:04] CloCkWeRX: has joined #ruby
[23:47:24] patarr: has joined #ruby
[23:51:43] raspado: has joined #ruby
[23:55:41] FoX_77: has joined #ruby
[23:57:51] FoX_77: -server: FoX_77: Has earned 100 points!