<     May 2017     >
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 _2_5 26 27  
28 29 30 31
00:07 srxa joined
00:13 elgenie joined
00:28 <Ankhers> Ioyrie: I would not want to duplicate my routes.
00:29 <zealsham_> can someone help me explain closures in elixir
00:29 TheNet joined
00:30 gvaughn_ joined
00:35 gvaughn joined
00:35 jeramyRR joined
00:41 asabil joined
00:52 gvaughn joined
00:53 gvaughn_ joined
00:54 gvaughn__ joined
00:56 mika__ joined
00:57 jmill joined
01:00 gvaughn_ joined
01:01 justelex_ joined
01:14 jschneck joined
01:23 MarioBranco joined
01:24 ssswitch joined
01:25 <asonge> zealsham_: go ahead.
01:25 <zealsham_> asonge: i dont really get how closures work here
01:26 <asonge> zealsham_: got some sample code?
01:26 <zealsham_> yes i do
01:26 <zealsham_> hold up let me get it on pastebin
01:26 MarioBranco joined
01:32 jschneck joined
01:33 MarioBranco joined
01:36 jschneck joined
01:36 MarioBranco joined
01:39 tomterl joined
01:41 inoas joined
01:58 jschneck joined
01:59 justelex joined
02:03 gvaughn joined
02:04 gvaughn_ joined
02:07 hxc joined
02:14 proteusguy joined
02:15 elgenie joined
02:17 elgenie joined
02:19 srxa joined
02:20 Cohedrin joined
02:43 karmajun_ joined
02:50 refriedchicken joined
02:57 refriedchicken66 joined
03:04 kronicdeth joined
03:14 refriedchicken33 joined
03:22 jeramyRR joined
03:23 tofutoon joined
03:36 mmonkeyking joined
03:37 myronmarston joined
03:37 srxa joined
03:42 srxa_ joined
03:43 elgenie joined
03:48 jeramyRR joined
03:52 cschneid_ joined
04:00 jpterry joined
04:01 myronmarston joined
04:28 cschneid_ joined
04:30 karmajunkie joined
04:35 codestorm joined
04:36 cschneid_ joined
04:36 arekinath joined
04:36 arekinath joined
04:39 cschneid_ joined
04:51 elgenie joined
04:54 craigp_ joined
04:54 treaki joined
05:00 wsieroci joined
05:07 tofutoon joined
05:10 squallstter joined
05:24 nd___ joined
05:28 meandi_2 joined
05:30 gvaughn joined
05:33 jrahmy_ joined
05:35 jrahmy_ left
05:55 cemilowski joined
06:04 fernandomm joined
06:06 Scramblejams joined
06:22 myronmarston joined
06:24 refriedchicken33 joined
06:48 tuacker joined
06:58 griffinbyatt joined
07:10 codestorm joined
07:12 ivan joined
07:18 ariejan joined
07:18 gvaughn joined
07:21 marr joined
07:27 josevalim joined
07:29 <nyaray> that pastebin session is like taking the ring to the mountain, it would appear
07:37 cschneid_ joined
07:38 dikaio joined
07:47 cryo28 joined
07:59 griffinbyatt joined
07:59 <Nicd-> nyaray: :D
08:08 returntrip joined
08:13 nbg joined
08:34 PaReeOhNos joined
08:35 <dikaio> lexit
08:35 <dikaio> sorry
08:35 dikaio joined
08:46 jcspencer joined
08:47 dch_ joined
08:48 wsieroci joined
08:58 dignifiedquire joined
08:59 griffinbyatt joined
09:01 codestorm joined
09:02 cemilowski joined
09:07 gvaughn joined
09:13 PaReeOhNos joined
09:17 jkreeftmeijer joined
09:21 dimitarvp joined
09:21 ljp joined
09:39 tuacker joined
09:40 jkreeftmeijer joined
09:55 icanhazbroccoli1 joined
09:55 icanhazbroccoli2 joined
09:56 dimitarvp` joined
09:57 jkreeftmeijer joined
09:59 gmcabrita joined
10:00 griffinbyatt joined
10:01 gvaughn joined
10:05 Jean__ joined
10:08 martstan joined
10:15 mikker joined
10:18 cacciald joined
10:24 lexmag joined
10:39 jschneck joined
10:40 proteusguy joined
10:50 sillyotter joined
10:52 jschneck joined
11:00 Guest67 joined
11:01 the_voice_ joined
11:01 griffinbyatt joined
11:05 jkreeftmeijer joined
11:29 tuacker joined
11:36 zealsham_ joined
11:37 <zealsham_> why can't i ouput an array on the console
11:37 <zealsham_> bam=[1,2,3,4,5]
11:37 <zealsham_> sam=[6,7,8,9,10]
11:37 <zealsham_> IO.puts(bam)
11:37 <zealsham_> nothing appears on the console
11:38 cschneid_ joined
11:40 <benwilson512> zealsham_: you probably want IO.inspect
11:40 <benwilson512> IO.puts assumes you're handing it something that is valid text
11:40 <benwilson512> IO.inspect is for debug output
11:41 <dimitarvp> zealsham_: IO.puts will print weird things if anything in the array resembles a printable character.
11:41 <dimitarvp> Since, you know, arrays can be character lists as well.
11:49 cemilowski joined
11:49 <gausby> they are lists to be specific, they don't have random access
11:50 gvaughn joined
11:52 PaReeOhNos joined
11:55 jkreeftmeijer joined
11:57 <zealsham_> benwilson512: so io.inspect will print them out
11:59 <zealsham_> thanks everyone
12:02 griffinbyatt joined
12:08 jkreeftmeijer joined
12:09 Arkham joined
12:11 ariejan joined
12:12 jschneck joined
12:23 mmonkeyking joined
12:24 mmonkeyking_ joined
12:24 NeverDie joined
12:26 kronicdeth joined
12:27 jschneck joined
12:51 nhooyr joined
12:52 jschneck joined
12:57 <zealsham_> how does 'and' differ from && in elixir
13:00 jschneck joined
13:03 sfbw joined
13:03 griffinbyatt joined
13:07 inoas joined
13:10 jkreeftmeijer joined
13:11 ariejan joined
13:11 NeverDie joined
13:13 mmonkeyking joined
13:29 jschneck joined
13:32 CapNemo joined
13:33 mijoharas joined
13:35 <mijoharas> Hi all, I'm slightly confused about something I've been playing around in with phoenix. Does anyone know what the right forum for that might be?
13:36 <mijoharas> actually to be more accurate, my question would be about Ecto.
13:41 <Ankhers> mijoharas: You can ask your question here.
13:44 gvaughn joined
13:47 JuanMiguel joined
13:55 kronicdeth joined
14:02 Guest67 joined
14:04 griffinbyatt joined
14:05 smt joined
14:08 __charly__ joined
14:30 meh` joined
14:32 MarioBranco joined
14:35 jhack joined
14:36 MarioBranco joined
14:39 gvaughn joined
14:41 fmcgeough joined
14:44 franco joined
14:50 InternetFriend joined
15:05 griffinbyatt joined
15:09 __charly__ joined
15:10 ssswitch joined
15:13 jkreeftmeijer joined
15:19 gvaughn joined
15:21 fmcgeough joined
15:25 MarioBranco joined
15:26 PaReeOhNos joined
15:28 newdayrising joined
15:34 elgenie joined
15:37 strykerkkd joined
15:47 fmcgeough joined
15:50 gvaughn_ joined
15:55 shymega joined
15:56 kronicdeth joined
15:57 fmcgeough joined
16:00 kronicdeth joined
16:06 griffinbyatt joined
16:08 kronicdeth joined
16:08 tuacker joined
16:10 fmcgeough joined
16:15 jkreeftmeijer joined
16:30 NeverDie joined
16:32 srxa joined
16:35 elgenie joined
16:37 gvaughn_ joined
16:40 seaword joined
16:45 <seaword> I'm writing a test where I need an Account record (id, email, password) and User record (id, account_id, first_name, last_name) in the db first. I'm calling Repo.insert in the setup function to do this however the `cast` call on my User changeset only allows first_name and last_name. So I'm unable to set the account_id using this insert method.
16:46 <seaword> If I add account_id to cast then the user record can be added to the db however I don't want account_id to be able to be set in this way. It gets set once when the user record is created and is never updated.
16:48 <seaword> How can I create this data for my test? I was thinking of trying to call the Account post of my API (conn = post conn, account_path(conn, :create), @account_attrs) in setup which would create the Account and User records however I'm not sure if that's the correct approach (and it's not actually working).
16:57 lexmag joined
16:59 WhiskyRyan joined
17:01 Cohedrin joined
17:12 <seaword> Actually I got that method working (calling the Account post to have the db seeded with data correctly).
17:12 <micmus> seaword: you don't need to go always through the changeset
17:13 <micmus> you can call Repo.insert with just the struct you build right there in the test
17:13 <seaword> Ah, gotcha. I'll try that.
17:25 srxa joined
17:29 JuanMiguel joined
17:35 MarioBranco joined
17:36 Reapster joined
17:37 kronicdeth joined
17:49 craigp_ joined
17:52 myronmarston joined
17:55 peterpp joined
17:57 kronicdeth joined
17:59 Lokathor_ joined
18:00 the_voice- joined
18:00 s`_ joined
18:01 antipax_ joined
18:01 bitwalker_ joined
18:01 apotry joined
18:02 __vy_ joined
18:02 bcavileer_ joined
18:03 mudphone_ joined
18:04 gausby_ joined
18:04 raidiant_ joined
18:04 j0ni_ joined
18:04 racycl3 joined
18:05 _2easy_ joined
18:05 ephe_meral_ joined
18:06 jerel joined
18:07 _Nemo_ joined
18:07 nicholasr joined
18:07 griffinbyatt joined
18:07 ambrosia joined
18:08 Cthalupa joined
18:10 Ven joined
18:11 Oliphaunte joined
18:14 pratch joined
18:16 jkreeftmeijer joined
18:18 Oliphaunte joined
18:19 spawnthink[m] joined
18:19 M-nickgal joined
18:23 codestorm joined
18:26 akeating joined
18:43 Ven_ joined
18:44 Cohedrin joined
18:48 akeating joined
18:49 jimmyrcom joined
18:54 griffinbyatt joined
18:58 griffinbyatt joined
19:03 zambal joined
19:03 bitmod joined
19:09 ur5us joined
19:10 returntrip joined
19:12 Sgeo_ joined
19:12 srxa joined
19:13 Oliphaunte joined
19:17 jkreeftmeijer joined
19:18 satireguff left
19:19 satireguff joined
19:26 <Nicd-> what's the status on erlang 20 support?
19:28 <Nicd-> apparently https://github.com/elixir-lang/elixir/issues/5851
19:30 mmonkeyking joined
19:33 wsieroci joined
19:46 Notimik joined
19:47 ssswitch joined
19:48 myronmarston joined
19:49 __charly__ joined
19:52 smt joined
19:56 elgenie joined
20:00 griffinbyatt joined
20:06 myronmarston joined
20:06 Ven joined
20:07 mmonkeyking joined
20:09 myronmarston joined
20:12 myronmarston joined
20:13 pb_ joined
20:16 ariejan joined
20:18 jkreeftmeijer joined
20:19 kronicdeth joined
20:27 <iFire> Dirty schedulers enabled and supported on VM with SMP support. erlang 20 :o
20:27 <iFire> rejoice!
20:27 returntrip joined
20:27 nd___ joined
20:33 griffinbyatt joined
20:35 MarioBranco joined
20:35 travis-ci joined
20:35 <travis-ci> elixir-lang/elixir#14579 (master - 1891d8d : Dorian Iacobescu): The build was fixed.
20:35 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/e50e72d2500d...1891d8d31175
20:35 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/232193041
20:35 travis-ci left
20:36 elgenie joined
20:39 Oliphaunte joined
20:41 kronicdeth joined
20:43 ur5us joined
20:50 griffinbyatt joined
20:53 asabil joined
20:58 strykerkkd joined
21:01 griffinbyatt joined
21:10 Cohedrin joined
21:23 fmccann joined
21:35 mmonkeyking joined
21:37 srxa joined
21:39 smt_ joined
21:39 mika__ joined
21:40 Sgeo__ joined
21:40 nhooyr_ joined
21:40 kronicdeth joined
21:41 harrow` joined
21:41 listrophy_ joined
21:41 cmk_zzz_ joined
21:42 alphawaffle joined
21:42 capin1 joined
21:42 vili- joined
21:42 corys joined
21:42 nForce_ joined
21:43 glasz joined
21:43 evax joined
21:43 minus joined
21:43 cryptomata joined
21:43 thread joined
21:44 jpterry joined
21:45 robotmayo joined
22:00 gvaughn joined
22:11 marr joined
22:11 Ioyrie joined
22:16 jeramyRR joined
22:17 fmccann joined
22:19 jkreeftmeijer joined
22:27 sunaku joined
22:31 jhack_ joined
22:32 MarioBranco joined
22:41 Sgeo joined
22:48 weaksauce joined
22:53 Ioyrie joined
23:03 isubasti joined
23:10 jerel joined
23:17 mika__ joined
23:20 jkreeftmeijer joined
23:20 akeating joined
23:26 mika__ joined
23:33 isubasti joined
23:43 elgenie joined
23:47 isubasti joined
23:49 mika__ joined
23:54 isubasti joined
23:59 codestorm joined