« Back to channel list

#ruby - 15 March 2019

« Back 1 day Forward 1 day »
[00:00:55] DaRock: has joined #ruby
[00:01:22] elcontrastador: Why the startup latency when executing from gem compared to running script as argument to ruby? See timings below each example. https://gist.github.com/elcontrastador/44f6beed60246296616f610c5025990a
[00:04:03] crankharder: has joined #ruby
[00:04:31] Eiam: has joined #ruby
[00:04:43] zenspider: elcontrastador: please tell me you don't have "." in your PATH
[00:05:21] zenspider: latency is probably proportional to `gem list | wc -l`
[00:05:26] elcontrastador: zenspider; nope
[00:06:18] tiogrand: has joined #ruby
[00:06:20] elcontrastador: Thinking it has something to do with the aws-sdk gemset
[00:06:23] zenspider: or, more accurately, to the size of the contents of that mess of gems
[00:07:04] elcontrastador: This is similar startup latency on the linux server this is deployed to, as well.
[00:07:41] elcontrastador: that server has very few gems installed
[00:08:18] elcontrastador: aws-sdk gemset is huge....only using aws-sdk-s3 but will have to look at all that pulls in or references
[00:08:24] zenspider: might depend on too many things that I won't speculate on. depends on what log2s3.rb is doing, how it loads its dependencies, etc.
[00:09:28] zenspider: you can start to feel it out with something like `time ruby -d -S log2s3.rb`
[00:09:46] zenspider: `ruby -d` prints out ALL exceptions, even if they're handled... so don't freak out at the noise
[00:10:15] zenspider: but time to first (relevant) exception might be revealing
[00:11:29] elcontrastador: zenspider: Lots of aws-sdk warnings....
[00:11:51] Renich: has joined #ruby
[00:11:55] zenspider: yup. expected. but go compare it against your fast / good run
[00:12:35] zenspider: might be something really stupid tho... run it locally, it might load locally. who knows. you're gonna have to dig in an dread
[00:12:38] zenspider: dread -> read
[00:13:33] elcontrastador: yeah... first pass groking thru outputs look similar/identical....will get into it
[00:13:43] elcontrastador: this is a great place to start tho
[00:14:01] bjpenn: has joined #ruby
[00:14:39] JoeA2552: has joined #ruby
[00:24:52] orbyt_: has joined #ruby
[00:26:25] akosednar: has joined #ruby
[00:26:26] akosednar: has joined #ruby
[00:28:15] yqt: has joined #ruby
[00:43:03] Echo: has joined #ruby
[00:50:11] segy: has joined #ruby
[00:55:58] Swyper: has joined #ruby
[00:56:39] GreenBio: has joined #ruby
[00:56:56] GreenBio: i need help!
[01:06:47] lupine: has joined #ruby
[01:12:42] tdy: has joined #ruby
[01:15:30] tpanarch1st: has joined #ruby
[01:23:19] Swyper: has joined #ruby
[01:29:38] havenwood: GreenBio: please ask away!
[01:30:12] Renich_: has joined #ruby
[01:37:22] b6b: has left #ruby: ("Leaving")
[01:40:55] Swyper: has joined #ruby
[01:41:47] GreenBio: this is my error ... "cannot load such file -- bundler/setup (LoadError)"
[01:47:29] havenwood: GreenBio: Is Bundler installed on your current Ruby?
[01:47:37] havenwood: GreenBio: gem install bundler
[01:47:56] havenwood: GreenBio: If so, sanity check:
[01:47:57] havenwood: gem which bundler
[01:47:58] havenwood: which bundle
[01:47:59] havenwood: which -a bundle
[01:48:29] havenwood: which bundle | head -n1
[01:58:40] Devalo: has joined #ruby
[02:02:51] esrse: has joined #ruby
[02:08:04] ogres: has joined #ruby
[02:39:20] houhoulis: has joined #ruby
[02:51:10] _whitelogger: has joined #ruby
[02:53:34] ````````iMadper: has joined #ruby
[03:05:08] mangold: has joined #ruby
[03:05:23] devil_tux: has joined #ruby
[03:09:34] cow[moo]: has joined #ruby
[03:19:35] mangold: has joined #ruby
[03:21:31] j416: has joined #ruby
[03:25:09] csjp: has joined #ruby
[03:25:14] csjp: has left #ruby: ()
[03:29:32] Swyper: has joined #ruby
[03:34:12] bambanx: has joined #ruby
[03:34:21] tdy1: has joined #ruby
[03:34:54] houhoulis: has joined #ruby
[03:35:05] bambanx: has joined #ruby
[03:40:47] devil_tux: has joined #ruby
[04:00:10] bjpenn: has joined #ruby
[04:01:15] Swyper: has joined #ruby
[04:10:04] iNs: has joined #ruby
[04:10:07] braincrash: has joined #ruby
[04:10:12] laaron: has joined #ruby
[04:10:16] apparition: has joined #ruby
[04:10:49] Fusl: has joined #ruby
[04:13:37] mangold: has joined #ruby
[04:17:30] Swyper: has joined #ruby
[04:20:13] devil_tux: has joined #ruby
[04:27:34] gix-: has joined #ruby
[04:34:46] Swyper: has joined #ruby
[05:07:01] ChanServ: +o havenwood
[05:07:13] ChanServ: -o havenwood
[05:12:47] laaron: has joined #ruby
[05:15:02] Swyper: has joined #ruby
[05:18:27] havenwood: So many Rubies this week. 2.5.5!
[05:19:18] havenwood: It includes some nice backported fixes.
[05:19:23] uplime: i can't wait for the inevitable ruby that breaks all backwards compatibility
[05:23:26] havenwood: In traditional font size names Pearl is 5 points, Ruby is 5.5 and Nonpareil is 6.
[05:24:10] havenwood: Or just skip to 28 points, Double English. I speak English, and program in Double English.
[05:28:34] devil_tux: has joined #ruby
[05:35:23] dellavg__: has joined #ruby
[05:36:23] marmotini_: has joined #ruby
[05:44:37] bjpenn: has joined #ruby
[05:45:46] Tempesta: has joined #ruby
[06:03:51] devil_tux: has joined #ruby
[06:06:25] esrse: has joined #ruby
[06:17:11] marmotini_: has joined #ruby
[06:19:24] conta: has joined #ruby
[06:21:30] ansraliant: has joined #ruby
[06:35:31] qual: has joined #ruby
[06:40:28] devil_tux: has joined #ruby
[06:49:51] Cthulu201: has joined #ruby
[06:53:11] aufi: has joined #ruby
[06:55:07] mangold: has joined #ruby
[06:56:07] Fusl: has joined #ruby
[07:04:42] Nicmavr: has joined #ruby
[07:05:44] marmotini_: has joined #ruby
[07:06:11] reber: has joined #ruby
[07:32:39] clemens3_: has joined #ruby
[07:33:27] am0123: has joined #ruby
[07:35:58] Renich_: has joined #ruby
[07:36:29] DaRock: has joined #ruby
[07:38:31] andikr: has joined #ruby
[07:50:32] apparition: has joined #ruby
[07:51:15] devil_tux: has joined #ruby
[08:00:52] ferr: has joined #ruby
[08:13:35] TomyWork: has joined #ruby
[08:15:50] clemens3_: has joined #ruby
[08:17:04] LightStalker: has joined #ruby
[08:24:01] devil_tux: has joined #ruby
[08:35:38] lxsameer: has joined #ruby
[08:36:07] ams__: has joined #ruby
[08:38:22] _joes_: has joined #ruby
[08:44:44] schleppel: has joined #ruby
[08:53:33] alem0lars: has joined #ruby
[08:55:29] DaRock: has joined #ruby
[08:57:25] aufi: has joined #ruby
[08:59:12] aufi_: has joined #ruby
[09:00:25] rindolf: has joined #ruby
[09:03:24] TomyWork: has joined #ruby
[09:07:28] Fridtjof: has joined #ruby
[09:07:34] marcoecc: has joined #ruby
[09:12:06] bjpenn: has joined #ruby
[09:19:38] marcoecc: has joined #ruby
[09:22:19] bjpenn: has joined #ruby
[09:25:48] Stan: has joined #ruby
[09:26:44] themsay: has joined #ruby
[09:29:28] bjpenn: has joined #ruby
[09:35:27] devil_tux: has joined #ruby
[09:41:14] RougeR: has joined #ruby
[09:49:17] mangold: has joined #ruby
[09:50:42] alem0lars_: has joined #ruby
[09:53:11] xlued: has joined #ruby
[09:53:42] skryking: has joined #ruby
[09:54:06] Stan: has joined #ruby
[10:04:24] xlued: has joined #ruby
[10:04:28] ged_: has joined #ruby
[10:11:45] suukim: has joined #ruby
[10:21:31] Stan: has joined #ruby
[10:22:07] minimal_life: has joined #ruby
[10:22:57] Cyrus: has joined #ruby
[10:25:27] Stan: has joined #ruby
[10:31:42] Stan: has joined #ruby
[10:45:34] stanc: has joined #ruby
[10:51:06] AJA4350: has joined #ruby
[10:51:16] devil_tux: has joined #ruby
[10:51:39] Stan: has joined #ruby
[10:57:59] ellcs: has joined #ruby
[11:02:31] lucasb: has joined #ruby
[11:04:16] conta: has joined #ruby
[11:06:52] sinanislekdemir: has joined #ruby
[11:12:24] bjpenn: has joined #ruby
[11:15:44] cyberarm: has joined #ruby
[11:24:59] apparition: has joined #ruby
[11:32:27] claw: has joined #ruby
[11:32:52] xrexeon: has joined #ruby
[11:36:27] RedSnarf: has joined #ruby
[11:37:27] ldnunes: has joined #ruby
[11:41:34] segy: has joined #ruby
[11:49:13] aufi_: has joined #ruby
[11:56:36] qual_: has joined #ruby
[11:59:24] _joes_: has joined #ruby
[12:07:24] devil_tux: has joined #ruby
[12:08:23] DaRock: has joined #ruby
[12:12:29] jottr: has joined #ruby
[12:15:59] bjpenn: has joined #ruby
[12:20:10] teclator: has joined #ruby
[12:20:12] Ai9zO5AP: has joined #ruby
[12:21:22] AJA4350: has joined #ruby
[12:23:06] bmurt: has joined #ruby
[12:24:01] _joes_: has joined #ruby
[12:36:17] hightower2: has joined #ruby
[12:40:44] devil_tux: has joined #ruby
[13:03:00] Semtex-H: has joined #ruby
[13:04:14] ubuntuisloved: has joined #ruby
[13:08:51] TomyWork: # require 'date'; DateTime.parse('2019-03-15 13:01:11 UTC').strftime('%F %T') # How can I make this display times in the local time zone?
[13:09:22] Guest30977: has joined #ruby
[13:09:44] TomyWork: local time zone = the system's configured time zone, basically whatever the "date" bash command shows
[13:12:41] darix: uplime: you youngster probably forgot all the fun of 1.8 to 2.0
[13:14:12] TomyWork: that was a fun time to start writing ruby
[13:22:11] jcalla: has joined #ruby
[13:26:44] bjpenn: has joined #ruby
[13:27:33] Tau: has joined #ruby
[13:34:01] Swyper: has joined #ruby
[13:34:24] jokester: has joined #ruby
[13:37:37] Swyper: has joined #ruby
[13:40:43] stryek: has joined #ruby
[13:52:51] Rapture: has joined #ruby
[13:55:24] alem0lars_: has joined #ruby
[13:58:14] kke: is there some neat way to "cyclically" (rolling?) get an item from an array? like let's say i have KEY = [1, 2, 3, 4, 5]. something clever to make something like KEY.cyclical(5) point to KEY[0], KEY.cyclical(6) to KEY[1], KEY.cyclical(11) to KEY[0]
[13:58:47] kke: well that method shouldn't be that difficult. i'm just thinking there's probably some trick i can't think of how this could be done with science.
[14:00:18] phaul: index % 5
[14:00:43] phaul: &>> [1,2,3,4,5][13 % 5]
[14:00:47] rubydoc: # => 4 (https://carc.in/#/r/6i5u)
[14:02:43] TomyWork: >> require 'date'; DateTime.parse('2019-03-15 13:01:11 UTC').strftime('%F %T') # How can I make this display times in the local time zone?
[14:02:45] ruby[bot]: TomyWork: # => "2019-03-15 13:01:11" (https://eval.in/1084311)
[14:03:02] kke: phaul: ah, that's the trick i was looking for :)
[14:03:28] c-c: shouldn't that be
[14:04:03] TomyWork: c-c talking to me?
[14:04:12] c-c: &>> ar = [1,2,3,4,"foo","bar"]; ar[ar.length % 5]
[14:04:12] rubydoc: # => 2 (https://carc.in/#/r/6i5v)
[14:04:30] c-c: &>> ar = [1,2,3,4,"foo","bar"]; ar[22 % ar.length]
[14:04:30] rubydoc: # => "foo" (https://carc.in/#/r/6i5w)
[14:04:32] devil_tux: has joined #ruby
[14:04:41] TomyWork: yeaht the first one was wrong :)
[14:04:41] c-c: TomyWork: just fooling around
[14:05:05] c-c: ACTION has convoluted mind
[14:05:43] TomyWork: ACTION sets convolution matrix [[0,0,0],[0,1,0],[0,0,0]]
[14:05:59] TomyWork: that should help
[14:06:22] qual: has joined #ruby
[14:06:41] phaul: c-c arr.length is certainly nicer as, but 5 == 5 :)
[14:10:23] rippa: has joined #ruby
[14:12:31] Swyper: has joined #ruby
[14:17:33] reber: has joined #ruby
[14:27:27] mangold: has joined #ruby
[14:37:27] al2o3-cr: KEY.rotate(n).first
[14:38:54] al2o3-cr: nah, that's slow and dumb
[14:42:53] grilix_: has joined #ruby
[14:45:12] polishdub: has joined #ruby
[14:49:14] _joes_: has joined #ruby
[14:51:40] devil_tux: has joined #ruby
[14:53:43] tpanarch1st: has joined #ruby
[15:01:01] yokel: has joined #ruby
[15:01:40] Swyper: has joined #ruby
[15:04:06] cyberarm: has joined #ruby
[15:09:55] ngw: has joined #ruby
[15:10:37] ngw: does anybody have any idea how to solve this? https://stackoverflow.com/questions/55168878/decrypting-keys-from-aws-kms-in-ruby
[15:10:44] ngw: I'm losing my mind on it
[15:11:27] xrexeon: has joined #ruby
[15:13:58] Swyper: has joined #ruby
[15:20:41] faitswulff: has joined #ruby
[15:29:06] troulouliou_div2: has joined #ruby
[15:31:45] mangold: has joined #ruby
[15:32:21] Swyper: has joined #ruby
[15:39:52] bmurt: has joined #ruby
[15:41:51] bjpenn: has joined #ruby
[15:48:16] Swyper: has joined #ruby
[15:50:41] Blaguvest: has joined #ruby
[15:52:01] tdy1: has joined #ruby
[15:52:38] Renich: has joined #ruby
[15:54:53] dante: has joined #ruby
[15:54:53] mangold: has joined #ruby
[15:56:53] jaddison: has joined #ruby
[16:03:19] apparition: has joined #ruby
[16:04:31] Renich_: has joined #ruby
[16:04:56] orbyt_: has joined #ruby
[16:06:32] [Butch]: has joined #ruby
[16:11:19] dante: has joined #ruby
[16:15:57] Azure: has joined #ruby
[16:18:58] bjpenn: has joined #ruby
[16:27:10] Inline: has joined #ruby
[16:31:52] cthulchu: has joined #ruby
[16:32:19] dante: has joined #ruby
[16:36:01] cyberarm: has joined #ruby
[16:36:18] jcarl43: has joined #ruby
[16:36:35] ljarvis_: has joined #ruby
[16:37:10] orbyt_: has joined #ruby
[16:41:41] al2o3-cr: why does this return 0..12 instead 1..13? https://carc.in/#/r/6i6j
[16:42:31] al2o3-cr: does it return back the indices?
[16:45:00] Renich: has joined #ruby
[16:46:02] devil_tux: has joined #ruby
[16:47:23] eb0t: has joined #ruby
[16:47:37] eblip: has joined #ruby
[16:51:15] Swyper: has joined #ruby
[16:51:19] Renich: has joined #ruby
[16:56:26] al2o3-cr: yeah, forget that. i was getting confucius.
[16:59:15] cthulchu_: has joined #ruby
[16:59:16] bjpenn: has joined #ruby
[17:02:18] _joes_: has joined #ruby
[17:02:49] SuperL4g: has joined #ruby
[17:04:13] phaul: &>> fake Hacker.say_something_smart
[17:04:13] rubydoc: stderr: -e:2:in `<main>': uninitialized constant Hacker (NameError) (https://carc.in/#/r/6i6o)
[17:04:55] phaul: &fake Hacker.say_something_smart
[17:04:55] rubydoc: I'll transmit the digital IB hard drive, that should matrix the AI bandwidth!
[17:15:03] eddof13: has joined #ruby
[17:16:21] Stan: has joined #ruby
[17:19:59] grilix_: has joined #ruby
[17:23:04] havenwood: phaul: AI bandwidth engines set to full. engage!
[17:36:21] kapil____: has joined #ruby
[17:36:41] bjpenn: has joined #ruby
[17:41:46] bjpenn: has joined #ruby
[17:44:52] Nicmavr: has joined #ruby
[17:46:12] waheedi: has joined #ruby
[17:46:56] devil_tux: has joined #ruby
[17:52:44] bjpenn: has joined #ruby
[17:54:02] nowhere_man: has joined #ruby
[18:00:04] phaul: how do you specify --jit for rails db:seed ?
[18:00:57] dionysus69: has joined #ruby
[18:01:57] havenwood: phaul: I guess: ruby --jit -S rails db:seed
[18:02:26] phaul: havenwood: thanks
[18:05:57] voidwatch: has joined #ruby
[18:10:28] dionysus69: does the new jit compiler have noticeable performance improvements?
[18:11:09] Dbugger: has joined #ruby
[18:21:24] ubuntuisloved: has joined #ruby
[18:21:31] havenwood: dionysus69: for some things, yes! for other things, no!
[18:21:46] phaul: I'm doing a bulk import of 'stuff about 200_000_000 of them in a loop.. I think it's a good candidate for it
[18:21:58] dionysus69: I will see in time I guess :D
[18:28:52] grilix_: has joined #ruby
[18:29:44] Deesl: has joined #ruby
[18:30:56] hightower2: has joined #ruby
[18:34:20] hightower2: has joined #ruby
[18:46:08] grilix: has joined #ruby
[18:46:39] AJA4350: has joined #ruby
[19:01:56] Lytol: has joined #ruby
[19:03:33] SeepingN: has joined #ruby
[19:05:36] code_zombie: has joined #ruby
[19:07:06] SuperLag: has joined #ruby
[19:13:37] cthu|: has joined #ruby
[19:16:40] ellcs: has joined #ruby
[19:35:52] sameerynho: has joined #ruby
[19:43:22] cow[moo]: has joined #ruby
[20:01:53] cow[moo]: has joined #ruby
[20:02:53] D9: has joined #ruby
[20:04:43] zachk: has joined #ruby
[20:10:02] ellcs: has joined #ruby
[20:10:38] themsay: has joined #ruby
[20:18:52] hightower3: has joined #ruby
[20:19:06] hightower3: has joined #ruby
[20:21:56] zenspider: havenwood: hah!
[20:26:05] DWSR: has joined #ruby
[20:27:42] za1b1tsu: has joined #ruby
[20:27:49] DWSR: Hey all, I'm trying to build a Docker container for my company's Rails 5.0.7.1 app. I'm trying to precompile assets in the container build (rather than before), but I'm running into some issues with initializers that are reaching out to things like MySQL or Redis which is not ideal. I noticed that 'initialize_on_precompile' was removed in Rails 4.1. What's the recommended way to deal with this situation?
[20:29:41] za1b1tsu: so regarding irb, there is this option:--single-irb Share self with sub-irb. Does anyone know what this is about, an example? Can't find anything on google
[20:29:58] zachk: has joined #ruby
[20:36:18] t0xik: has joined #ruby
[20:39:05] leftylink: za1b1tsu: in irb, I do `a = 5`, then I do `irb`, that is a sub-irb. In the sub-irb, what happens if I ask for `a` ? Without flag, it is not defined, NameError. With flag, it is defined (it is 5)
[20:42:15] leftylink: I hope it was clear. if not, maybe a quick log of my session will help, https://dpaste.de/PHbz/raw
[20:44:13] zleap: has joined #ruby
[20:44:13] zleap: has joined #ruby
[20:45:51] zenspider: DWSR: please ask rails questions in the rails channel
[20:46:19] DWSR: zenspider: I've also asked it in there.
[20:46:21] zleap: DWSR: #rubyonrails
[20:46:49] za1b1tsu: leftylink, wow ok, I never knew I could start irb within irb, what's the usecase? how could it be useful to start irb in irb?
[20:47:01] zenspider: corollary: please don't ask rails questions in here
[20:47:36] zenspider: za1b1tsu: it's like starting a subshell... not terribly useful imo, but sometimes it is nice to have a stack to push/pop
[20:47:58] devil_tux: has joined #ruby
[20:48:39] zenspider: and I guess... the single-irb flag means that it is NOT like a subshell, and more like a dynamically scoped (Or non-scoped?) language.
[20:48:44] zenspider: I don't think I like that option
[20:49:03] za1b1tsu: hmm, ok, thank you
[20:49:12] dar123: has joined #ruby
[20:49:27] dar123: hey guyz, i have install ruby 1.9.3 on ubuntu bionic with rvm or rbenv
[20:49:44] dar123: i was able to do it using 'apt-get install ruby1.9.3 on trusty
[20:49:49] zenspider: dar123: you know that's a bad idea, right?
[20:50:10] dar123: yes i know, but no choice. The app i am installing is very old
[20:50:40] dar123: will try to fork and update it when i have time
[20:51:15] dar123: atleast i am trying to update the OS from trusty to bionic
[20:51:23] za1b1tsu_: has joined #ruby
[20:52:16] aqd: has joined #ruby
[20:58:47] zenspider: dar123: doesn't matter if you update the OS if your app has gaping holes in it
[20:59:00] zenspider: not saying it does... but it probably does
[20:59:26] debajit: has joined #ruby
[20:59:46] debajit: I'm looking for a data structure / entity that will let me share some state across multiple threads. It looks like I could use Concurrent::Map or an Concurrent::Atom for this. Both reads and writes will be frequent. What is the best Concurrent Ruby solution I could use for this problem?
[21:03:05] segy: has joined #ruby
[21:03:05] zenspider: "best" is a myth. it entirely depends on what you're trying to do
[21:03:17] Falcon: has joined #ruby
[21:04:03] debajit: zenspider: "good enough" is good for me :)
[21:04:48] zenspider: if you need to pipeline workers, for example, then queue is perfectly sufficient. If you need some sort of shared mutable state object (which always feels like a bad idea to me), then you'll need something else. Even just a proxy wrapper with a mutex could work, but ... this way madness yadda yadda
[21:04:56] bjpenn: has joined #ruby
[21:14:34] Falcon: has left #ruby: ()
[21:17:30] ur5us: has joined #ruby
[21:21:36] gix: has joined #ruby
[21:28:20] ravenousmoose: has joined #ruby
[21:29:37] devil_tux: has joined #ruby
[21:29:45] Azure: has joined #ruby
[21:33:32] ur5us: has joined #ruby
[21:36:16] robotcars: i am trying to iterate over a folder of yml files that contain intelligent guess of csv data, and update the columns in the yml (c0,c1,c3) with the headers of a csv template
[21:36:33] robotcars: i'm having an issue updating the yml value
[21:36:33] robotcars: https://pastebin.com/Dak67ZT6
[21:36:35] ruby[bot]: robotcars: 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
[21:37:35] robotcars: https://gist.github.com/robert-carroll/c4824e9965852b21c4289d1211d7d821
[21:41:49] zenspider: robotcars: "having an issue"...
[21:41:55] ellcs: has joined #ruby
[21:42:32] robotcars: i got it, ty zenspider
[21:42:54] zenspider: ... got what?
[21:44:37] robotcars: did the ruby[bot] kill my first question?
[21:45:42] zenspider: bots don't kill questions
[21:45:58] zenspider: I see no question marks. no questions.
[21:46:16] zenspider: I see you saying that you're "having an issue" and then never describe it
[21:48:03] devil_tux: has joined #ruby
[21:49:35] robotcars: can I update the yml file I've read with the values I replaced?
[21:50:05] robotcars: the yml file contains other values, but when I write it empties the .yml file
[21:50:07] zenspider: ?answers robotcars
[21:50:07] ruby[bot]: robotcars: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[21:50:32] zenspider: robotcars: you're not writing anything in your gist
[21:51:01] robotcars: i commented out L20, because it truncates the file
[21:51:24] zenspider: line 20 doesn't write out anything to a file
[21:51:38] mochiyoda: has joined #ruby
[21:52:29] zenspider: ...and I'm not patient enough to wait 5 minutes between responses
[21:53:07] robotcars: can you refresh the gist please
[21:53:53] zenspider: ok... read line 20, preferably out loud to yourself
[21:57:35] debajit: zenspider: thanks!
[21:58:23] leftylink: note that as we can see from https://ruby-doc.org/core-2.5.0/File.html#method-c-open , the file is passed to the block. no other assumptions are made about the block. if the block needs to do something to the file, then it is obligated to do so by using the appropriate operations on the file
[22:04:56] zenspider: debajit: totally. good luck!
[22:05:29] zenspider: leftylink: I was hoping they'd work that out on their own by code reading..
[22:13:38] zenspider: meh... I'm simply not patient enough to help out in this case. not while I still have a new gem release to do
[22:13:49] zenspider: so... have at it :P
[22:14:15] Fernando-Basso: has joined #ruby
[22:14:55] robotcars: good luck ;D
[22:19:45] devil_tux: has joined #ruby
[22:22:55] jcarl43: has joined #ruby
[22:38:12] zenspider: ruby_parser-legacy 1.0.0 released... finally. I'm so glad to get that off my plate
[22:43:53] nowhere_man: has joined #ruby
[23:02:42] dar123: has joined #ruby
[23:13:51] physikoi: has joined #ruby
[23:16:13] physikoi: hello #ruby , I'm suddenly getting a bunch of "make" errors. Even after wiping my gems, I get errors like this: "... make: *** No rule to make target ...". Thoughts? ty
[23:25:51] Tempesta: has joined #ruby
[23:27:04] raulp: has joined #ruby
[23:27:22] raulp: has left #ruby: ()
[23:31:32] houhoulis: has joined #ruby
[23:33:30] Puffball: has joined #ruby
[23:43:19] miah: is there a Makefile in your directory? make isn't really related to ruby in any way.
[23:44:41] SuperL4g: has joined #ruby
[23:45:21] bjpenn: has joined #ruby
[23:46:33] physikoi: hey miah : full error: "make: *** No rule to make target `/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h', needed by `ruby_http_parser.o'. Stop."
[23:46:59] miah: are you trying to build ruby?
[23:47:11] physikoi: no, just trying to install gems
[23:47:40] miah: do you have xcode installed and activated?
[23:48:23] miah: (as it looks like you're using the system ruby and its going to rely on the xcode dev kit stuff)
[23:49:45] DaRock: has joined #ruby
[23:50:38] physikoi: yeah, i do. did that stuff a while ago because I use macports for most stuff. any other possibilities spring to mind?
[23:52:04] miah: have you updated osx recently?
[23:52:28] hahuang65: has joined #ruby
[23:54:31] physikoi: relatively recently. im on 10.14.3
[23:54:46] miah: you have to re-do the xcode stuff every time you update macos
[23:56:16] physikoi: hm, pretty sure that' just for major points 10.13.x -> 10.14.x
[23:57:14] physikoi: are you on macos?
[23:58:45] hahuang65: has joined #ruby