« Back to channel list

#ruby - 14 November 2018

« Back 1 day Forward 1 day »
[00:02:18] Inside: You can't tell what exceptions statically typed languages will throw either, can you?
[00:02:53] Inside: You would need to pre-execute all code branches to every stack depth to determine if there is a throw routine somewhere
[00:03:46] Inside: Unless you were... using some esoteric language that has no side effects?
[00:08:11] Dimik: has joined #ruby
[00:11:37] Exuma: has joined #ruby
[00:15:34] Radar: Does Haskell have no side effects because it's not used in production? :P
[00:18:14] shterrett: has joined #ruby
[00:18:47] emerson: has joined #ruby
[00:23:31] venmx: has joined #ruby
[00:24:14] dviola: has joined #ruby
[00:25:00] TomyLobo: has joined #ruby
[00:28:33] ua: has joined #ruby
[00:31:15] nchambers: has joined #ruby
[00:36:53] Exuma: has joined #ruby
[00:42:42] cliluw: has joined #ruby
[00:45:37] Tempesta: has joined #ruby
[00:47:05] Emmanuel_Chanel: has joined #ruby
[00:47:49] queip: has joined #ruby
[00:51:38] DigitallyBorn: has joined #ruby
[00:53:50] TheBloke: has joined #ruby
[00:57:09] ivanskie: im not sure how to search for this..
[00:57:55] ivanskie: if im making a gem... how do I specify to create a directory and copy certain files when gem is being installed? is that possible?
[01:01:55] blackmesa1: has joined #ruby
[01:06:32] orbyt_: has joined #ruby
[01:11:22] DigitallyBorn: has joined #ruby
[01:11:49] bmurt: has joined #ruby
[01:17:30] druonysus: has joined #ruby
[01:28:45] jetchisel: has joined #ruby
[01:28:49] dviola: has joined #ruby
[01:29:52] DigitallyBorn: has joined #ruby
[01:38:13] Exuma: has joined #ruby
[01:40:06] akosednar: has joined #ruby
[01:48:40] truenito: has joined #ruby
[01:53:57] queip: has joined #ruby
[01:56:44] smutnysyn: has joined #ruby
[01:57:59] DigitallyBorn: has joined #ruby
[02:00:45] smutnysyn: has joined #ruby
[02:04:02] DigitallyBorn: has joined #ruby
[02:04:37] smutnysyn: has joined #ruby
[02:09:48] ogres: has joined #ruby
[02:25:27] shterrett: has joined #ruby
[02:30:59] esrse: has joined #ruby
[02:31:41] smutnysyn: has joined #ruby
[02:37:52] blackmesa: has joined #ruby
[02:40:41] ivanskie: has joined #ruby
[02:41:00] smutnysyn: has joined #ruby
[02:42:44] bambanx: has joined #ruby
[02:44:46] BiHi: has joined #ruby
[02:47:16] blackmesa: has joined #ruby
[02:48:02] minimal_life: has joined #ruby
[02:50:05] queip: has joined #ruby
[03:01:32] jetchisel: has joined #ruby
[03:05:45] shterrett: has left #ruby: ()
[03:07:17] akaiiro: has joined #ruby
[03:10:02] akaiiro: has joined #ruby
[03:11:02] jetchisel: has joined #ruby
[03:12:45] JankyDoodle: has joined #ruby
[03:15:28] JankyDoodle: Hi! Can anyone tell me what's wrong with my program? I have a directory with 11 text files in it. I'm trying to go through each one, remove the spaces in the text files, and write the output to the same text file. The problem I'm having is that all of the output goes into the first text file. https://pastebin.com/QBs0WbLg
[03:15:28] ruby[bot]: JankyDoodle: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[03:15:36] jetchisel: has joined #ruby
[03:16:13] Exuma: has joined #ruby
[03:20:16] donofrio_: has joined #ruby
[03:23:02] jetchisel: has joined #ruby
[03:26:58] elcontrastador: has joined #ruby
[03:28:58] Xiti`: has joined #ruby
[03:46:30] Iambchop: ivanskie: you mean like a post-install script? by design gems don't support that; depending on why it needs done perhaps the installed gem could detect the need and do it automatically on first run or include instructions in a post-install message https://stackoverflow.com/questions/14395992/how-to-execute-a-script-while-gem-installation
[03:46:52] ivanskie: Yeah i'll have to do that :(
[03:53:41] queip: has joined #ruby
[03:54:02] Xiti: has joined #ruby
[04:08:12] kapil____: has joined #ruby
[04:09:00] braincrash: has joined #ruby
[04:12:01] darkhanb: has joined #ruby
[04:16:30] roshanavand1: has joined #ruby
[04:23:49] zwliew: has joined #ruby
[04:24:39] Mikasi: has joined #ruby
[04:27:33] Fusl: has joined #ruby
[04:39:35] MoritaShinobu: has joined #ruby
[04:48:15] white_lilies: has joined #ruby
[04:48:46] queip: has joined #ruby
[04:55:11] dinfuehr: has joined #ruby
[05:20:22] Fusl__: has joined #ruby
[05:32:15] dinfuehr: has joined #ruby
[05:37:02] ReallyDigital: has joined #ruby
[05:43:29] Xiti: has joined #ruby
[05:46:26] jordanm: has joined #ruby
[05:47:06] ReallyDigital: has joined #ruby
[05:56:17] jetchisel: has joined #ruby
[05:57:03] ReallyDigital: has joined #ruby
[06:00:09] dellavg_: has joined #ruby
[06:05:32] marmotini_: has joined #ruby
[06:05:47] chongtxtx: has joined #ruby
[06:06:43] ReallyDigital: has joined #ruby
[06:14:12] akaiiro: has joined #ruby
[06:16:26] DigitallyBorn: has joined #ruby
[06:16:48] baweaver: Here we go: https://twitter.com/keystonelemur/status/1062589386225664000
[06:22:30] conta: has joined #ruby
[06:22:47] sauvin: has joined #ruby
[06:26:16] DigitallyBorn: has joined #ruby
[06:27:08] IanMalcolm: has joined #ruby
[06:29:11] venmx: has joined #ruby
[06:29:32] solocshaw: has joined #ruby
[06:35:17] solocshaw: has joined #ruby
[06:37:17] aupadhye: has joined #ruby
[06:38:09] aufi: has joined #ruby
[06:41:01] DigitallyBorn: has joined #ruby
[06:44:47] bga57: has joined #ruby
[06:50:51] DigitallyBorn: has joined #ruby
[06:53:49] gix: has joined #ruby
[07:00:49] DigitallyBorn: has joined #ruby
[07:14:00] whysthatso: has joined #ruby
[07:15:35] DigitallyBorn: has joined #ruby
[07:22:05] dogweather: has joined #ruby
[07:22:50] Exuma: has joined #ruby
[07:24:59] dogweather: deathwishdave: https://github.com/public-law/naturally should work for that
[07:25:14] DigitallyBorn: has joined #ruby
[07:25:25] dogweather: You're looking for "natural sorting algorithm"
[07:31:55] roshanavand: has joined #ruby
[07:34:56] DigitallyBorn: has joined #ruby
[07:38:23] despai: has joined #ruby
[07:46:29] roshanavand: has joined #ruby
[07:49:43] DigitallyBorn: has joined #ruby
[07:50:25] za1b1tsu: has joined #ruby
[07:51:58] aupadhye: has joined #ruby
[07:52:39] queip: has joined #ruby
[07:54:41] DigitallyBorn: has joined #ruby
[08:04:21] DigitallyBorn: has joined #ruby
[08:11:12] clemens3_: has joined #ruby
[08:14:06] DigitallyBorn: has joined #ruby
[08:19:06] DigitallyBorn: has joined #ruby
[08:20:41] Exuma: has joined #ruby
[08:25:33] elphe: has joined #ruby
[08:26:39] smutnysyn: has joined #ruby
[08:28:47] DigitallyBorn: has joined #ruby
[08:35:16] phaul: has joined #ruby
[08:38:19] DigitallyBorn: has joined #ruby
[08:41:25] JamieD: has joined #ruby
[08:42:30] jetchisel: has joined #ruby
[08:42:34] cd: has joined #ruby
[08:44:52] alem0lars: has joined #ruby
[08:46:39] burgestrand: has joined #ruby
[08:47:49] cd: has joined #ruby
[08:50:16] queip: has joined #ruby
[08:52:06] cd: has joined #ruby
[08:53:00] DigitallyBorn: has joined #ruby
[08:54:17] elphe: has joined #ruby
[08:56:11] ur5us: has joined #ruby
[09:02:45] DigitallyBorn: has joined #ruby
[09:03:26] roshanavand: has joined #ruby
[09:13:46] aufi: has joined #ruby
[09:20:39] venmx: has joined #ruby
[09:42:36] Azure: has joined #ruby
[09:45:04] whysthatso: has joined #ruby
[09:53:52] queip: has joined #ruby
[10:10:58] im0nde: has joined #ruby
[10:22:41] lxsameer: has joined #ruby
[10:26:05] yohji: has joined #ruby
[10:26:51] voolik: has joined #ruby
[10:38:58] Azure|dc: has joined #ruby
[10:48:57] queip: has joined #ruby
[10:56:06] DigitallyBorn: has joined #ruby
[10:59:24] elphe: has joined #ruby
[11:07:44] venmx: has joined #ruby
[11:19:16] gregf_: has joined #ruby
[11:19:29] AltLock: has joined #ruby
[11:33:01] conta: has joined #ruby
[11:46:41] ua: has joined #ruby
[11:51:10] keden: has joined #ruby
[11:53:53] MoritaShinobu: has joined #ruby
[11:54:07] queip: has joined #ruby
[12:03:06] donofrio: has joined #ruby
[12:13:13] kapil____: has joined #ruby
[12:14:19] bmurt: has joined #ruby
[12:19:34] za1b1tsu: has joined #ruby
[12:20:48] dminuoso: has joined #ruby
[12:28:33] reber: has joined #ruby
[12:31:11] discopatrick: has joined #ruby
[12:32:08] despai: has joined #ruby
[12:33:48] LinuxKnight: has joined #ruby
[12:37:06] despai: has joined #ruby
[12:37:51] AJA4350: has joined #ruby
[12:45:54] Cupid: has joined #ruby
[12:46:34] lxsameer: has joined #ruby
[12:50:10] roshanavand: has joined #ruby
[12:52:12] queip: has joined #ruby
[12:55:53] conta: has joined #ruby
[13:04:26] yohji: has joined #ruby
[13:06:45] defarge: has joined #ruby
[13:08:31] AJA4350: has joined #ruby
[13:09:05] mahlon: has joined #ruby
[13:10:18] roshanavand: has joined #ruby
[13:13:03] LinuxKnight: Dear Ruby experts, can you please guide me how to limitize an inner loop to run only for one iteration? when nested in one or more outer loops? I am going in circles with no solutions so far.
[13:13:58] voolik: has joined #ruby
[13:18:12] roshanavand: has joined #ruby
[13:21:26] Cupid: hi, quick question, what port does webrick use by default? (version is 2.4.3 if that helps)
[13:22:52] za1b1tsu: has joined #ruby
[13:29:20] znz_jp: has joined #ruby
[13:36:10] dminuoso: baweaver: where is he?
[13:39:37] vondruch: has joined #ruby
[13:44:24] troulouliou_div2: has joined #ruby
[13:54:50] queip: has joined #ruby
[13:57:12] za1b1tsu: has joined #ruby
[13:59:30] DigitallyBorn: has joined #ruby
[14:02:04] vondruch_: has joined #ruby
[14:07:26] za1b1tsu: has joined #ruby
[14:09:55] dinfuehr_: has joined #ruby
[14:12:11] _whitelogger: has joined #ruby
[14:25:17] dviola: has joined #ruby
[14:26:22] vondruch: has left #ruby: ()
[14:45:57] jcalla: has joined #ruby
[14:49:53] queip: has joined #ruby
[14:53:46] conta1: has joined #ruby
[14:54:19] rippa: has joined #ruby
[14:57:17] smutnysyn: has joined #ruby
[14:58:03] whysthatso: has joined #ruby
[15:03:01] Inline: has joined #ruby
[15:05:04] kaleido: has joined #ruby
[15:05:54] whysthatso: has joined #ruby
[15:07:07] Fridtjof: has joined #ruby
[15:09:19] DigitallyBorn: has joined #ruby
[15:10:10] foldr: has joined #ruby
[15:14:00] Rapture: has joined #ruby
[15:18:30] LinuxKnight: Hello All, I need some help to make sure that the inner loop in following example runs only once , please suggest : https://carc.in/#/r/5iq7
[15:20:45] nertzy: has joined #ruby
[15:21:29] vondruch: has joined #ruby
[15:22:52] bak1an: has joined #ruby
[15:23:46] foldr: LinuxKnight adding an 'if i == 1' after the first 'end'?
[15:31:03] dminuoso: has left #ruby: ("WeeChat 2.0.1")
[15:34:01] dviola: has joined #ruby
[15:37:23] conta2: has joined #ruby
[15:45:50] keden: has joined #ruby
[15:50:39] jhass: LinuxKnight: why is it inside a loop if it should run only once?
[15:51:01] queip: has joined #ruby
[15:57:05] phaul: loop { loop { some_code_here; nuke_earth } } # then some_code_here will run only once
[15:57:43] jhass: what if it's a satelite control program?
[15:58:09] phaul: pff then I have a bug
[16:00:59] vondruch: has joined #ruby
[16:03:23] troulouliou_div2: has joined #ruby
[16:05:54] SirFunk: has joined #ruby
[16:12:18] phaul: ?xy, LinuxKnight
[16:12:30] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[16:16:34] jhass: sans the ,
[16:17:31] phaul: jhass: sorry, what's sansing?
[16:17:38] jhass: eh, without
[16:19:57] jhass: https://en.wiktionary.org/wiki/sans
[16:22:20] phaul: TIL << 'sans'; # thanks jhass
[16:28:45] jcarl43: has joined #ruby
[16:30:58] cats: has joined #ruby
[16:31:40] keden: phaul: What is that semi-colon? ;)
[16:33:57] phaul: too much js today
[16:38:13] akemot: has joined #ruby
[16:40:42] akemot: has joined #ruby
[16:43:29] keden: has joined #ruby
[16:44:39] dminuoso: has joined #ruby
[16:44:51] dminuoso: havenwood: where is apeiros :<
[16:44:56] dminuoso: Need to make fun of him
[16:48:36] queip: has joined #ruby
[16:49:52] smutnysyn: has joined #ruby
[16:54:21] skarlso: has joined #ruby
[16:55:33] Nicmavr: has joined #ruby
[16:59:12] ivanskie: has joined #ruby
[17:01:20] roshanavand: has joined #ruby
[17:01:32] Exuma: has joined #ruby
[17:03:18] ivanskie: has joined #ruby
[17:18:35] dmitch: has joined #ruby
[17:20:07] Fusl: has joined #ruby
[17:25:03] al2o3-cr: has joined #ruby
[17:28:35] gix: has joined #ruby
[17:28:36] darkhanb: has joined #ruby
[17:30:05] keden: has joined #ruby
[17:30:35] cthulchu: has joined #ruby
[17:34:38] jetchisel: has joined #ruby
[17:36:00] kapil____: has joined #ruby
[17:40:56] Dimik: has joined #ruby
[17:46:41] millerti: has joined #ruby
[17:46:56] Puffball: has joined #ruby
[17:49:11] jetchisel: has joined #ruby
[17:52:02] sanscoeur: has joined #ruby
[17:52:15] queip: has joined #ruby
[17:56:17] AKPWD: has joined #ruby
[18:15:12] Dark_Arc: has left #ruby: ("Konversation terminated!")
[18:15:51] orbyt_: has joined #ruby
[18:16:28] LinuxKnight: foldr, jhass, phaul, I got timed out and moved away from desk, please allow me some time to read back and reply
[18:21:39] LinuxKnight: foldr, jhass, phaul, i amsure not trying to use your help for a specific solution, however, what i am doing for real is trying to make a multi provider , multi vm vagrantfile ;
[18:22:34] LinuxKnight: need for nested loop is to decide and apply count of disks , count of network adapters
[18:23:35] LinuxKnight: so, i am trying to understand and solve that as per the required fundaments
[18:31:31] za1b1tsu: has joined #ruby
[18:31:39] JamieD: has joined #ruby
[18:33:07] schneider: has joined #ruby
[18:39:33] Eiam: if you are building vagrant files shouldn't that be in #vagrant ?
[18:39:39] Puffball: has joined #ruby
[18:41:31] whysthatso: has joined #ruby
[18:42:07] LinuxKnight: Eiam, you are right but since the file uses Ruby and needed a specific looping experience, I thought that awesome people here could help either ways
[18:43:15] Eiam: okay, well im not sure why you decided on needing a nested for loop. can't recall the last time i wrote a for loop in ruby but just personal experience. Whats the actual issue you are trying to solve?
[18:45:50] akemot: has joined #ruby
[18:46:00] LinuxKnight: Eiam, so this loop is needed because when I need to apply the additional devices to a vagrant vm, the customization can be provider specific , it makes sense to work such statements in an inner loop
[18:46:15] JamieD: has joined #ruby
[18:47:04] LinuxKnight: say I want a createhd satement to run, once, it instead runs 4times being being nested.
[18:52:21] Fr4n: has joined #ruby
[18:53:25] queip: has joined #ruby
[18:53:29] safetypin: has joined #ruby
[18:56:15] smutnysyn: has joined #ruby
[18:59:57] LinuxKnight: foldr, jhass, phaul, its late for me and I got to go again, but thanks for trying to help as always, in case you want to dig into the exact Vagrant I am trying to get done and hitting wall with unbreakable loop then here it is - > https://carc.in/#/r/5irn
[19:00:57] za1b1tsu: has joined #ruby
[19:02:10] LinuxKnight: (inspired by https://github.com/scottslowe 's work - but trying to address addition of additional disk and net devices)
[19:07:56] akaiiro: has joined #ruby
[19:13:48] akemot: has joined #ruby
[19:14:00] Puffball: has joined #ruby
[19:14:42] whysthatso: has left #ruby: ()
[19:15:00] whysthatso: has joined #ruby
[19:15:38] tdy: has joined #ruby
[19:25:03] eckhardt_: has joined #ruby
[19:26:30] Azure: has joined #ruby
[19:36:28] phaul: has joined #ruby
[19:36:35] dviola: has joined #ruby
[19:37:46] z64: has joined #ruby
[19:38:29] tag: has joined #ruby
[19:51:40] jcalla: has joined #ruby
[19:54:28] Dbugger: has joined #ruby
[19:54:29] queip: has joined #ruby
[20:01:14] akemot: has joined #ruby
[20:06:22] akemot: has joined #ruby
[20:06:41] cd: has joined #ruby
[20:16:46] akemot: has joined #ruby
[20:19:30] chouhoulis: has joined #ruby
[20:20:11] akemot: has joined #ruby
[20:32:05] setient: has joined #ruby
[20:34:56] ur5us: has joined #ruby
[20:38:19] despai: has joined #ruby
[20:42:49] lomex: has joined #ruby
[20:44:42] beanish: has joined #ruby
[20:48:07] pavelz: hello, I am using bundler but I need to install some gems by hand but bundler still tries install gems that I have installed and fails
[20:48:23] pavelz: how can i make sure bundler does not do that
[20:50:01] pavelz: specifically libv8
[20:56:16] kaleido: has joined #ruby
[20:56:17] ellcs: has joined #ruby
[20:57:47] im0nde: has joined #ruby
[21:06:36] bmurt: has joined #ruby
[21:25:03] dviola: has joined #ruby
[21:27:12] Dimik: has joined #ruby
[21:46:17] tdy1: has joined #ruby
[21:46:33] kaleido: has joined #ruby
[21:47:46] druonysus: has joined #ruby
[21:54:08] roshanavand: has joined #ruby
[22:06:03] bluebeary: has joined #ruby
[22:09:29] bluebeary: are the talks for rubycon going to be recorded and hosted somewhere?
[22:09:40] bluebeary: i looked on the ruby-community site but didn't see anything
[22:10:06] tdy1: has joined #ruby
[22:10:22] Lytol: has joined #ruby
[22:10:28] Xeago_: has joined #ruby
[22:12:26] akem: has joined #ruby
[22:13:05] akosednar: has joined #ruby
[22:14:04] dionysus69: has joined #ruby
[22:16:08] yxhuvud: bluebeary: https://www.youtube.com/watch?v=_YU_gIEPABQ
[22:16:25] safetypin: has joined #ruby
[22:20:20] bluebeary: nice, thanks
[22:21:01] zenspider: they're ALSO being recorded and will be on confreaks
[22:21:24] zenspider: pavelz: did you figure it out?
[22:23:31] zenspider: anyone around who is willing to test this out for me?
[22:23:43] zenspider: curl -L https://tinyurl.com/graphics-setup | bash
[22:23:56] zenspider: obviously... remove "| bash" and read it first
[22:27:45] troulouliou_div2: has joined #ruby
[22:30:02] BH23: has joined #ruby
[22:30:53] akem: has joined #ruby
[22:31:58] Exuma: has joined #ruby
[22:35:32] Lytol: has joined #ruby
[22:38:12] TheDracle: has joined #ruby
[22:40:02] ss_much: has joined #ruby
[22:40:11] elphe: has joined #ruby
[22:50:55] al2o3-cr: zenspider: https://imgur.com/a/cPb5NgF (hey, works in arch with manual intervention and code change. =)
[22:52:57] al2o3-cr: are you making turtle graphics?
[22:54:20] queip: has joined #ruby
[23:17:57] mroutis: has joined #ruby
[23:19:50] DigitallyBorn: has joined #ruby
[23:34:47] sputnik13: has joined #ruby
[23:37:44] mroutis_: has joined #ruby
[23:47:23] queip: has joined #ruby
[23:48:52] sputnik13: question... I'm not fluent in ruby in the least, but from my reading of https://ruby-doc.org/stdlib-2.4.1/libdoc/net/http/rdoc/Net/HTTP.html I am assuming https://github.com/htgc/fluent-plugin-azureeventhubs/blob/master/lib/fluent/plugin/azureeventhubs/http.rb#L59-L72 would open a new https connection for every invocation of that block... is this correct?
[23:53:20] al2o3-cr: sputnik13: invocation of that method.
[23:56:48] sputnik13: al2o3-cr right, for every invocation of that method/block a new https connection would be created yes?
[23:57:33] al2o3-cr: sputnik13: yes.
[23:58:06] sputnik13: I was afraid of that... thank you
[23:58:51] al2o3-cr: sputnik13: yw.
[23:59:12] sputnik13: the example in the doc page has the connection persisting if you execute inside a .start(...) block, but is that the only way to use a persistent connection or is the connection lifetime tied to the lifetime of the connection object?
[23:59:31] Scriptonaut: has joined #ruby