« Back to channel list

#ruby - 02 June 2019

« Back 1 day Forward 1 day »
[00:11:19] skryking: has joined #ruby
[00:11:40] exmortus: has joined #ruby
[00:14:50] staticx: has joined #ruby
[00:19:52] al2o3-cr: has joined #ruby
[00:26:24] Tempesta: has joined #ruby
[00:39:41] matheusmoreira: has joined #ruby
[00:41:14] laaron: has joined #ruby
[01:05:49] roadt_: has joined #ruby
[01:08:16] m27frogy: has joined #ruby
[01:09:48] orbyt_: has joined #ruby
[01:29:31] Swyper: has joined #ruby
[01:45:32] esp32_prog: has joined #ruby
[01:47:53] codefriar: has joined #ruby
[01:54:58] maryo: has joined #ruby
[02:13:06] bambanxx: has joined #ruby
[02:17:35] Swyper: has joined #ruby
[02:23:49] bambanxx: has joined #ruby
[02:25:03] al2o3-cr: has joined #ruby
[02:26:01] roadt_: has joined #ruby
[02:28:22] orbyt_: has joined #ruby
[02:30:54] Harlin: mozzarella: thaks for pointing that out the other night
[02:33:54] al2o3-cr: has joined #ruby
[02:44:14] Argorok: has joined #ruby
[02:45:13] Argorok: When running "rails server" it exits telling me the following: /var/lib/gems/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
[02:46:09] Argorok: But pg is listed inside my Gemfile. I had run "bundle install" with no errors. I also had run "gem install pg". When I run "bundle info pg" I get this: Path: /var/lib/gems/2.2.0/gems/pg-1.1.4
[02:46:16] Argorok: What can I be doing wrong?
[02:48:25] Argorok: Using Ubuntu 18.04 x64, Ruby 2.2
[02:49:23] apparition: has joined #ruby
[02:52:30] Swyper: has joined #ruby
[03:08:23] ricekrispie: has joined #ruby
[03:09:51] braincrash: has joined #ruby
[03:12:56] Argorok: Found, 1.1.4 doesn't work with my setup, changed it on Gemfile to < 1.0.0 and worked. Thanks anyway :D
[03:26:18] Ai9zO5AP: has joined #ruby
[03:26:56] laaron: has joined #ruby
[03:30:46] gix-: has joined #ruby
[03:33:44] esp32_prog: has joined #ruby
[03:34:32] xco: has joined #ruby
[03:35:15] mac_ava: has joined #ruby
[03:41:36] xco: has joined #ruby
[03:45:45] laaron: has joined #ruby
[03:48:22] Guest7: has joined #ruby
[03:52:14] fphilipe: has joined #ruby
[03:56:03] codefriar: has joined #ruby
[04:11:37] codefriar: has joined #ruby
[04:12:01] haxx0r: has joined #ruby
[04:12:50] laaron: has joined #ruby
[04:17:32] exmortus: has joined #ruby
[04:19:21] staticx: has joined #ruby
[04:20:41] xco: has joined #ruby
[04:49:21] polishdub: has joined #ruby
[04:50:28] Swyper: has joined #ruby
[05:01:33] pwnd_nsfw: has joined #ruby
[05:21:52] laaron: has joined #ruby
[05:21:55] esp32_prog: has joined #ruby
[05:27:47] kyrylo: has joined #ruby
[05:33:40] envex: has joined #ruby
[05:37:30] weteamsteve1: Hey is anybody around? I have a member model that has many users. I want to access member.user_id in my mailer but it keeps saying undefined method member.user_id doesnt exist. Could somebody help? My model relationships work everywhere else in my application
[05:38:50] weteamsteve1: member inspect shows: {:member=>#<Member id: 2, user_id: 2, position: nil, number: nil, membership: "member", created_at: "2019-06-02 05:17:44", updated_at: "2019-06-02 05:18:05", squad_id: 1>}
[05:49:05] laaron: has joined #ruby
[05:52:45] fphilipe: has joined #ruby
[05:54:16] weteamsteve1: nvm guess it the parametters are passed in as a hash and not an object
[06:12:46] laaron: has joined #ruby
[06:23:20] gix: has joined #ruby
[06:31:06] rafadc: has joined #ruby
[06:38:21] laaron: has joined #ruby
[07:10:12] esp32_prog: has joined #ruby
[07:11:23] laaron: has joined #ruby
[07:32:24] fphilipe: has joined #ruby
[07:35:15] Hanmac: has joined #ruby
[07:54:51] sameerynho: has joined #ruby
[07:54:58] dellavg_: has joined #ruby
[08:09:51] apparition: has joined #ruby
[08:18:46] reber: has joined #ruby
[08:25:42] conta: has joined #ruby
[08:31:36] TheSpectre: has joined #ruby
[08:45:31] laaron: has joined #ruby
[08:49:49] laaron: has joined #ruby
[08:58:26] esp32_prog: has joined #ruby
[09:14:40] laaron: has joined #ruby
[09:19:08] foxxx0: has joined #ruby
[09:21:16] fphilipe: has joined #ruby
[09:38:40] jpaulo6ba: has joined #ruby
[09:54:15] JRF: has joined #ruby
[09:56:40] JRF: hmm, is this a bug? ''.chop returns ''; ''.chop! returns nil
[09:57:36] JRF: i did rather surprise me. but also i feel like it almost makes sense, just not sure how/why
[10:00:58] phaul: &ri String#chomp!
[10:00:58] rubydoc: https://ruby-doc.org/core-2.6/String.html#method-i-chomp-21
[10:01:24] phaul: "or nil if no modifications were made"
[10:01:49] phaul: behaviour matches the documentation at least
[10:02:26] JRF: hmm, what is the best way to deal with such behavior then? (aside from using non-destructive form :P)
[10:03:14] JRF: one way that springs to mind is thing.chop!.to_s << ""
[10:04:15] phaul: when using destructive methods, I usually don't even care about the return value. thing.chop! ; thing << ""
[10:04:55] phaul: communicates more clearly that these are all operations on thing
[10:06:43] JRF: oh, duh you'
[10:07:26] JRF: *you're right; in my case i can just return `thing` instead of `thing.chop!`
[10:30:11] _whitelogger: has joined #ruby
[10:38:13] schne1der: has joined #ruby
[10:41:20] fphilipe: has joined #ruby
[10:46:43] esp32_prog: has joined #ruby
[11:00:58] laaron: has joined #ruby
[11:01:34] hiroaki: has joined #ruby
[11:06:11] _whitelogger: has joined #ruby
[11:10:33] AJA4350: has joined #ruby
[11:20:52] fphilipe: has joined #ruby
[11:26:50] xco: has joined #ruby
[11:45:27] esp32_prog: has joined #ruby
[11:49:53] laaron: has joined #ruby
[11:54:26] MuffinPimp: has joined #ruby
[12:02:50] MuffinPimp: has joined #ruby
[12:07:18] laaron-: has joined #ruby
[12:11:24] Swyper: has joined #ruby
[12:15:56] comet23: has joined #ruby
[12:16:42] comet23: what is the difference between Hash.new { |h, k| h[k] = k } and Hash.new{ [] }
[12:21:37] havenwood: comet23: the latter is the same Array for every default Hash value
[12:21:50] havenwood: comet23: the former is a new Array for every default Hash value
[12:22:19] comet23: how can i "see" the what the empty hash looks like?
[12:22:48] havenwood: comet23: You can check #default and #default_proc
[12:22:49] comet23: i tried p hash_name and all it gave back to me is {}
[12:23:17] havenwood: &>> Hash.new([]).default
[12:23:20] rubydoc: # => [] (https://carc.in/#/r/70wj)
[12:23:44] havenwood: &>> Hash.new { [] }.default_proc.call
[12:23:46] rubydoc: # => [] (https://carc.in/#/r/70wk)
[12:24:14] AJA4350: has joined #ruby
[12:25:43] laaron: has joined #ruby
[12:27:35] comet23: there is no way to see a nice output at the moment, right?
[12:27:52] rippa: has joined #ruby
[12:27:53] comet23: thinking about it how could i see an output if it doesn't have any data
[12:28:22] comet23: like i was hoping to see something along the lines of { nil => [] }
[12:28:34] comet23: but i guess nil would already be a value
[12:31:44] comet23: thank you havenwood it's something magical i am going to have to get used to i guess lol
[12:34:41] apparition: has joined #ruby
[12:34:47] Swyper: has joined #ruby
[12:44:13] laaron: has joined #ruby
[12:51:26] fphilipe: has joined #ruby
[12:55:47] CrazyEddy: has joined #ruby
[13:04:04] laaron: has joined #ruby
[13:07:46] niceperl: has joined #ruby
[13:19:52] lupine: has joined #ruby
[13:26:31] AJA4350: has joined #ruby
[13:31:11] marahin: has joined #ruby
[13:31:11] marahin: has joined #ruby
[13:31:33] AJA4351: has joined #ruby
[13:33:18] Emmanuel_Chanel: has joined #ruby
[13:36:06] Emmanuel_Chanel: has joined #ruby
[13:40:19] conta: has joined #ruby
[13:40:42] esp32_prog: has joined #ruby
[13:45:17] laaron: has joined #ruby
[13:49:33] al2o3-cr: has joined #ruby
[13:51:12] gravitation: has joined #ruby
[14:01:16] fphilipe: has joined #ruby
[14:11:07] kyrylo: has joined #ruby
[14:14:51] Esa_: has joined #ruby
[14:25:13] queip: has joined #ruby
[14:40:35] queip: has joined #ruby
[14:57:45] laaron: has joined #ruby
[14:59:12] dtzuzu: has joined #ruby
[15:05:01] codefriar: has joined #ruby
[15:19:01] ellcs1: has joined #ruby
[15:22:44] queip: has joined #ruby
[15:25:17] madhatter: has joined #ruby
[15:27:08] dtzuzu: has joined #ruby
[15:28:41] oczek: has joined #ruby
[15:28:56] esp32_prog: has joined #ruby
[15:29:44] queip: has joined #ruby
[15:31:40] fphilipe: has joined #ruby
[15:40:50] madhatter: has joined #ruby
[15:44:56] MonacoDoom: has joined #ruby
[15:46:59] AJA4350: has joined #ruby
[15:50:13] queip: has joined #ruby
[15:53:36] aferreira: has joined #ruby
[16:07:59] SeepingN: has joined #ruby
[16:15:49] Guest30: has joined #ruby
[16:17:33] ravenousmoose: has joined #ruby
[16:18:44] ravenousmoose: has joined #ruby
[16:21:28] dellavg_: has joined #ruby
[16:24:28] Guest30: Hi folks. A long time PHP developer, now learning Ruby. I currently use VS Code on the Mac. I realize there are probably a lot of opinions, but just curious as to what editor/IDE most seasoned developers enjoy the most on the Mac? Any thoughts?
[16:31:41] queip: has joined #ruby
[16:32:33] fphilipe: has joined #ruby
[16:32:41] s3nd1v0g1us: has joined #ruby
[16:33:49] moei: has joined #ruby
[16:36:13] weteamsteve: has joined #ruby
[16:44:32] haxx0r: has joined #ruby
[16:49:58] Guest30: has joined #ruby
[16:51:05] SeepingN: Sublime Text for editor. RubyMine for more of a full IDE
[16:51:14] doodlebug: has joined #ruby
[16:56:25] GodFather: has joined #ruby
[16:59:28] cropcircle: has joined #ruby
[17:01:03] queip: has joined #ruby
[17:01:47] nowhere_man: has joined #ruby
[17:17:12] esp32_prog: has joined #ruby
[17:18:53] codefriar: has joined #ruby
[17:33:30] tdy: has joined #ruby
[17:45:39] jud: has joined #ruby
[17:45:39] jud: has joined #ruby
[17:46:47] Dbugger: has joined #ruby
[17:47:09] hutch1: has joined #ruby
[17:52:28] AJA4351: has joined #ruby
[17:54:38] queip: has joined #ruby
[18:02:58] fphilipe: has joined #ruby
[18:03:03] nowhere_man: has joined #ruby
[18:03:14] doodleb89: has joined #ruby
[18:13:15] salasrod: has joined #ruby
[18:15:39] comet23: has joined #ruby
[18:16:02] comet23: what is it called when you create a array with sub arrays?
[18:16:23] comet23: i want to create an array with x distinct sub arrays
[18:18:05] orbyt_: has joined #ruby
[18:18:06] phaul: &>> x = Array.new(2) {[]}; x[0] << 'hi'; x[1] << 'comet23'; x
[18:18:17] rubydoc: stderr: playpen: timeout triggered! (https://carc.in/#/r/70xh)
[18:18:27] phaul: &>> x = Array.new(2) {[]}; x[0] << 'hi'; x[1] << 'comet23'; x
[18:18:29] rubydoc: # => [["hi"], ["comet23"]] (https://carc.in/#/r/70xi)
[18:20:51] phaul: not sure what it's called.. if all sub arrays are the same size maybe you can call it a matrix, given that it stores numbers
[18:39:16] doodlebug: has joined #ruby
[18:44:44] comet23: thank you :)
[18:48:47] lunarkitty7: has joined #ruby
[18:58:53] AJA4351: has joined #ruby
[19:05:27] esp32_prog: has joined #ruby
[19:33:20] fphilipe: has joined #ruby
[19:40:01] Swyper: has joined #ruby
[19:40:05] cd: has joined #ruby
[19:41:15] ellcs1: has joined #ruby
[19:58:19] duderonomy: has joined #ruby
[19:59:56] queip: has joined #ruby
[20:06:10] AJA4351: has joined #ruby
[20:08:50] code_zombie: has joined #ruby
[20:09:58] staticx: has joined #ruby
[20:12:10] lubekpl: has joined #ruby
[20:15:01] kyrylo: has joined #ruby
[20:21:33] ur5us: has joined #ruby
[20:27:58] fphilipe: has joined #ruby
[20:39:35] kwerle: has joined #ruby
[20:43:28] kwerle: I have an order-dependent minitest failure. I would like to know which tests are running in what order. I'm running `ruby ..my_test_spec.rb -v --seed myseed` - but it is not listing the tests, just the dots and failure. What am I doing wrong?
[20:44:24] Leopere: has joined #ruby
[20:53:41] esp32_prog: has joined #ruby
[21:05:05] houhoulis: has joined #ruby
[21:05:37] xco: has joined #ruby
[21:13:55] AJA4351: has joined #ruby
[21:15:13] clemens3: has joined #ruby
[21:15:15] Swyper_: has joined #ruby
[21:33:03] ellcs1: has joined #ruby
[21:48:59] Mrgoose: has joined #ruby
[21:50:58] Azure: has joined #ruby
[21:51:38] troulouliou_dev: has joined #ruby
[22:04:40] fphilipe: has joined #ruby
[22:17:48] queip: has joined #ruby
[22:29:26] alnk: has joined #ruby
[22:34:58] orbyt_: has joined #ruby
[22:35:31] fphilipe: has joined #ruby
[22:36:25] AJA4350: has joined #ruby
[22:37:35] ixti: has joined #ruby
[22:42:01] esp32_prog: has joined #ruby
[22:56:20] rafadc: has joined #ruby
[23:02:54] ricekrispie2: has joined #ruby
[23:06:51] Swyper: has joined #ruby
[23:07:59] queip: has joined #ruby
[23:43:46] fphilipe: has joined #ruby
[23:55:47] shanks8080: has joined #ruby
[23:59:35] Swyper: has joined #ruby