« Back to channel list

#ruby - 09 December 2018

« Back 1 day Forward 1 day »
[00:12:55] Swyper: has joined #ruby
[00:13:06] SeepingN: has joined #ruby
[00:29:14] Swyper: has joined #ruby
[00:33:52] white_lilies: has joined #ruby
[00:39:56] Swyper: has joined #ruby
[00:49:53] b6b: has joined #ruby
[00:53:28] cnsvc: has joined #ruby
[00:56:06] hutch: has joined #ruby
[01:03:13] Renich: has joined #ruby
[01:09:39] Pisuke: has joined #ruby
[01:09:46] nchambers: has joined #ruby
[01:10:43] dbz: has joined #ruby
[01:20:55] themsay: has joined #ruby
[01:25:26] dbz: has joined #ruby
[01:31:13] cnsvc_: has joined #ruby
[01:54:41] Swyper: has joined #ruby
[02:03:00] themsay: has joined #ruby
[02:09:13] cnsvc_: has joined #ruby
[02:10:59] weird_error: has joined #ruby
[02:31:15] cnsvc_: has joined #ruby
[02:37:31] arescorpio: has joined #ruby
[02:41:51] varesa: has joined #ruby
[02:43:20] sonofentropy: has joined #ruby
[03:02:44] donofrio_: has joined #ruby
[03:15:42] ellcs: has joined #ruby
[03:16:26] millerti: has joined #ruby
[03:19:55] carbone5: has joined #ruby
[03:20:16] Tom-_: has joined #ruby
[03:20:33] dbz: has joined #ruby
[03:29:24] sonofentropy: has joined #ruby
[03:30:35] KeyJoo: has joined #ruby
[03:34:33] sonofentropy: has left #ruby: ()
[03:35:59] sonofentropy: has joined #ruby
[03:36:04] Junaos: has joined #ruby
[03:36:57] sonofentropy: has left #ruby: ()
[03:37:05] hutch: has joined #ruby
[03:38:49] sonofentropy: has joined #ruby
[04:00:12] _whitelogger: has joined #ruby
[04:09:43] braincrash: has joined #ruby
[04:54:51] hutch: has joined #ruby
[04:59:23] cnsvc_: has joined #ruby
[05:04:07] elcontrastador: has joined #ruby
[05:19:30] sonofentropy: has joined #ruby
[05:20:12] graphene: has joined #ruby
[05:25:12] rippa: has joined #ruby
[05:26:00] dbz: has joined #ruby
[05:35:29] xall: has joined #ruby
[05:39:34] eam: can someone clue me in wy this raises? https://gist.github.com/eam/bc1821aac128d8cb9d57538a332183c8
[05:40:25] dbz: has joined #ruby
[05:49:24] themsay: has joined #ruby
[05:53:10] sonofentropy: has joined #ruby
[05:53:56] sonofentropy: has joined #ruby
[05:54:45] sonofentropy: has joined #ruby
[05:55:31] sonofentropy: has joined #ruby
[05:58:47] donofrio__: has joined #ruby
[06:06:56] cnsvc_: has joined #ruby
[06:32:47] piks3l: has joined #ruby
[06:40:57] dinfuehr_: has joined #ruby
[06:40:57] uplime: has joined #ruby
[06:42:51] dellavg_: has joined #ruby
[06:48:39] donofrio__: has joined #ruby
[06:51:01] xall: has joined #ruby
[06:51:26] segy: has joined #ruby
[06:53:51] donofrio__: has joined #ruby
[06:59:11] reber: has joined #ruby
[07:00:36] dbz: has joined #ruby
[07:06:35] donofrio__: has joined #ruby
[07:07:21] hutch: has joined #ruby
[07:08:39] baweaver: wrong app :P
[07:09:08] baweaver: https://www.ruby-forum.com/t/attr-accessor-and-nomethoderror-for-variable/243506
[07:09:12] baweaver: Well that's silly
[07:10:09] baweaver: Near as I can guess it gets pissed on attr writer and reader being called at the same time, but that makes no sense.
[07:10:11] baweaver: havenwood: That look like a bug to you?
[07:11:08] baweaver: eam: https://twitter.com/keystonelemur/status/1071643387034386432
[07:12:31] baweaver: !connection sonofentropy
[07:12:32] ruby[bot]: +bb sonofentropy!*@*$#ruby-fix-your-connection *!*@84-10-10-170.static.chello.pl$#ruby-fix-your-connection
[07:13:55] baweaver: eam: general consensus is it treats it like a local variable because of the way the parser expands it
[07:15:48] baweaver: AHA! The expansion ends up treating it like `local_var = local_var + other` instead of `local_var.=(local_var + other)`
[07:25:54] themsay: has joined #ruby
[07:27:19] themsay: has joined #ruby
[07:31:19] themsay: has joined #ruby
[07:33:04] Xiti: has joined #ruby
[07:37:58] donofrio: has joined #ruby
[07:39:09] Dbugger: has joined #ruby
[08:00:35] KeyJoo: has joined #ruby
[08:09:46] gix: has joined #ruby
[08:16:49] donofrio: has joined #ruby
[08:54:14] serard: has joined #ruby
[08:54:51] dbz: has joined #ruby
[09:03:58] graphene: has joined #ruby
[09:21:20] phaul: has joined #ruby
[09:32:41] roshanavand: has joined #ruby
[09:43:05] clemens3: has joined #ruby
[09:58:37] y0u: has joined #ruby
[10:01:12] dhollin3: has joined #ruby
[10:08:40] Inline: has joined #ruby
[10:13:05] phaul: has joined #ruby
[10:35:19] lucasb: has joined #ruby
[11:09:40] hiroaki: has joined #ruby
[11:18:40] LinuxKnight: has joined #ruby
[11:20:18] jottr: has joined #ruby
[11:28:46] jottr: has joined #ruby
[11:39:06] cnsvc_: has joined #ruby
[11:40:08] lxsameer: has joined #ruby
[12:14:57] Puffball: has joined #ruby
[12:27:52] weird_error: has joined #ruby
[12:45:02] AJA4350: has joined #ruby
[12:54:54] CrazyEddy: has left #ruby: ()
[12:56:55] CrazyEddy: has joined #ruby
[12:59:24] CrazyEddy: has left #ruby: ()
[13:00:08] CrazyEddy: has joined #ruby
[13:21:12] vonfry: has joined #ruby
[13:30:44] DTZUZO: has joined #ruby
[13:35:59] kapil____: has joined #ruby
[13:40:50] reber: has joined #ruby
[13:45:04] CrazyEddy: has joined #ruby
[13:46:25] piks3l: has joined #ruby
[13:50:00] graphene: has joined #ruby
[13:57:12] roshanavand: has joined #ruby
[14:13:05] graphene: has joined #ruby
[14:24:45] Tau: has joined #ruby
[14:43:22] exchgr`: has joined #ruby
[14:52:46] EXCHGR: has joined #ruby
[15:08:27] rippa: has joined #ruby
[15:10:35] Vile`: has joined #ruby
[15:12:55] pep7: has joined #ruby
[15:20:42] cow[moo]: has joined #ruby
[15:21:46] Bounga: has joined #ruby
[15:24:59] sgen: has joined #ruby
[15:27:39] jottr: has joined #ruby
[15:33:29] serard: has joined #ruby
[15:35:14] Bounga: has joined #ruby
[15:43:36] Swyper: has joined #ruby
[15:54:15] cow[moo]: has joined #ruby
[16:00:55] serard: has joined #ruby
[16:08:39] cow[moo]: has joined #ruby
[16:11:46] hutch: has joined #ruby
[16:15:54] dbz: has joined #ruby
[16:29:58] Azure: has joined #ruby
[16:33:18] code_zombie: has joined #ruby
[16:33:19] clemens3: has joined #ruby
[16:35:49] Swyper: has joined #ruby
[16:43:14] wolfshappen: has joined #ruby
[16:44:29] bak1an: has joined #ruby
[16:51:47] dviola: has joined #ruby
[16:54:39] clemens3: has joined #ruby
[17:12:15] dbz: has joined #ruby
[17:17:29] alfiemax: has joined #ruby
[17:18:19] alfiemax_: has joined #ruby
[17:21:38] Mike11: has joined #ruby
[17:23:52] Guest14049: has joined #ruby
[17:25:13] clemens3: has joined #ruby
[17:31:36] graphene: has joined #ruby
[17:36:26] jottr: has joined #ruby
[17:44:25] zapata: has joined #ruby
[17:45:08] perplexity: has joined #ruby
[17:46:03] Nicmavr: has joined #ruby
[17:55:16] houhoulis: has joined #ruby
[17:56:15] alfiemax: has joined #ruby
[17:57:06] Exuma: has joined #ruby
[18:05:54] DarthGandalf: has joined #ruby
[18:07:29] Renich: has joined #ruby
[18:08:21] jottr: has joined #ruby
[18:09:50] alfiemax_: has joined #ruby
[18:15:26] DTZUZO: has joined #ruby
[18:19:47] Aqo: has joined #ruby
[18:20:01] dbz: has joined #ruby
[18:23:19] perplexity: has left #ruby: ("Leaving")
[18:25:19] alfiemax: has joined #ruby
[18:26:07] serard: has joined #ruby
[18:33:22] Exuma: has joined #ruby
[18:35:59] graphene: has joined #ruby
[18:36:56] DTZUZO: has joined #ruby
[18:38:01] jottr: has joined #ruby
[18:48:49] Swyper: has joined #ruby
[18:57:19] reber: has joined #ruby
[18:58:21] uplime: has joined #ruby
[19:05:56] serard: has joined #ruby
[19:18:12] DTZUZO: has joined #ruby
[19:23:29] alfiemax: has joined #ruby
[19:26:12] dbz: has joined #ruby
[19:28:08] orbyt_: has joined #ruby
[19:30:13] ellcs: has joined #ruby
[19:51:20] sgen: has joined #ruby
[20:13:03] weird_error: has joined #ruby
[20:20:15] alxd: has joined #ruby
[20:20:26] patr0clus: has joined #ruby
[20:27:14] houhoulis: has joined #ruby
[20:28:17] alfiemax: has joined #ruby
[20:29:44] randmin: has joined #ruby
[20:31:18] randmin: Hello dear world! I am heaving a sticky permission error when I 'bundle install' - bundler wants to install the gems globally (afaik). I came across this issue several times now, and thus there are many people out there heaving similar issues, no real answer seems to exist. thus my hope that you may help me here (please)
[20:33:47] randmin: I managed to install the bundle locally using the flag --local (but i am not sure what exactly happens here). I downloaded another gem, and now I dont get it to install, so I quit this s**t and askhere: How would I configure bundler to be both secure/best practice and DRY? e.g. How can I configure bundler to install gems globally? Is there any comprehensive source on this issue?
[20:37:52] randmin: Short review on what I did so far: As I dont have fast internet atm, I copied the bundle files of an 'older' (but not too old) app I created to $appdir$/vendor/bundle, and ran 'bundle install --path vendor/bundle', this worked fine. Later I had to add a gem. I 'bundle install'ed again, and the gem got fetched from github. Now it is (or should be) on my hearddrive. I found it, and build it, but no matter
[20:37:58] randmin: what I do, I dont get it to install with the bundle. (I dont want to reload it, to save traffic). Anyone who feels my despair here?
[20:40:53] jenrzzz: has joined #ruby
[20:45:57] randmin: has joined #ruby
[20:46:39] DTZUZO: has joined #ruby
[20:47:04] sgen: has joined #ruby
[20:52:03] graphene: has joined #ruby
[20:57:12] cow[moo]: has joined #ruby
[20:58:37] hutch: has joined #ruby
[21:12:01] jenrzzz: has joined #ruby
[21:33:45] jenrzzz: has joined #ruby
[21:34:56] dbz: has joined #ruby
[21:42:28] jetchisel: has joined #ruby
[21:42:44] jenrzzz: has joined #ruby
[21:50:43] sgen: has joined #ruby
[21:52:39] SeepingN: has joined #ruby
[21:54:41] houhoulis: has joined #ruby
[21:54:59] graphene: has joined #ruby
[21:56:42] piks3l: has joined #ruby
[21:57:56] graphene: has joined #ruby
[21:59:08] wolfshappen: has joined #ruby
[21:59:50] piks3l_: has joined #ruby
[22:16:57] alfiemax_: has joined #ruby
[22:18:37] hutch: has joined #ruby
[22:20:40] cow[moo]: has joined #ruby
[22:27:30] dbz: has joined #ruby
[22:29:02] dbz: has joined #ruby
[22:35:33] jottr: has joined #ruby
[22:35:38] cow[moo]: has joined #ruby
[22:40:06] weird_error: has joined #ruby
[22:41:08] Radar: To get all the digits for an integer, I can call Integer#digits. Is there a comparable method for floating point numbers?
[22:50:01] kapil____: has joined #ruby
[22:52:42] piks3l_: has joined #ruby
[23:00:51] dbz: has joined #ruby
[23:03:36] dbz: has joined #ruby
[23:04:06] Radar: &&> number = 8.15; number - number.to_i
[23:04:07] rubydoc: did not understand that, parser error @ char position 0
[23:04:43] Radar: &> puts 'hi'
[23:04:48] Radar: brain fail
[23:05:55] kaleido_: >> puts 'i hate this bot?'
[23:06:02] ruby[bot]: kaleido: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[23:07:06] sgen: has joined #ruby
[23:09:41] Radar: (byebug) decimal = BigDecimal.new(number, 16)
[23:09:41] Radar: 0.8000014999999999e1
[23:09:41] Radar: (byebug) number
[23:09:57] Radar: "work with floating point numbers", he thought. "It'll be fun", he thought.
[23:12:16] eam: baweaver: seems like a bug?
[23:12:32] eam: isn't the entire point of attr_accessor and bar= that I can assign to it?
[23:14:17] phaul: &> puts 'hi'
[23:14:29] Radar: phaul: am I mis-remembering the syntax for the bot?
[23:14:38] Zarthus: It's >> afaik..
[23:14:49] phaul: no. I think it's dead
[23:14:59] Zarthus: it replied to kaleido
[23:15:08] phaul: that's an other bot
[23:15:16] Zarthus: the other bot replied to Radar already :P
[23:15:37] Radar: (byebug) BigDecimal.new(number, 15)
[23:15:37] Radar: 0.8000015e1
[23:15:37] Radar: (byebug) BigDecimal.new(number, 16)
[23:15:37] Radar: 0.8000014999999999e1
[23:15:44] Radar: oops my table is suddenly upside down
[23:16:22] phaul: &> puts 'hi'
[23:16:24] rubydoc: has joined #ruby
[23:16:27] phaul: &> puts 'hi'
[23:16:43] phaul: &>> puts 'hi'
[23:16:44] rubydoc: # => hi ...check link for more (https://carc.in/#/r/5quc)
[23:17:24] kaleido: &>> puts 'john connor...i was sent from the future.'
[23:17:26] rubydoc: # => john connor...i was sent from the future. ...check link for more (https://carc.in/#/r/5que)
[23:17:31] Radar: oh it's double >>
[23:17:40] Radar: I think the other one is the ri syntax?
[23:18:42] phaul: yes. works more or less
[23:18:46] phaul: &ri Array
[23:18:46] rubydoc: https://ruby-doc.org/core-2.5.3/Array.html
[23:19:07] phaul: but there are holes:
[23:19:12] rubydoc: Found no entry that matches class ERB
[23:21:12] kaleido: &>> def roll(r,s); dice_sides = s; num_rolls = r; x = 1; total = 0; results = []; while x <= num_rolls; number = rand(1..s); results << number; x += 1; total = total + number; end; puts "Total: #{total}"; puts Each Die: #{results}"; end; roll(3,7)
[23:21:13] rubydoc: # => (https://carc.in/#/r/5quh)
[23:22:11] Zarthus: kaleido: missing quote at the second puts
[23:22:26] kaleido: &>> def roll(r,s); dice_sides = s; num_rolls = r; x = 1; total = 0; results = []; while x <= num_rolls; number = rand(1..s); results << number; x += 1; total = total + number; end; puts "Total: #{total}"; puts "Each Die: #{results}"; end; roll(3,7)
[23:22:27] rubydoc: # => Total: 8 ...check link for more (https://carc.in/#/r/5quj)
[23:23:21] kaleido: probly a much simpler way to do that, but i feel 32% accomplished. :P
[23:26:55] cow[moo]: has joined #ruby
[23:30:43] cow[moo]: has joined #ruby
[23:41:38] weird_error: has joined #ruby
[23:45:47] Swyper: has joined #ruby
[23:49:45] Swyper: has joined #ruby
[23:58:47] patr0clus: has joined #ruby