<    March 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 25  
26 27 28 29 30 31
00:00 chriswarren joined
00:03 jamilbk joined
00:13 celyr joined
00:14 jmiven joined
00:29 johnstorey joined
00:37 celyr joined
00:45 chriswarren joined
00:45 meandi joined
00:52 celyr joined
00:54 chriswarren joined
01:06 celyr joined
01:07 rschmukler joined
01:12 chriswarren joined
01:20 celyr joined
01:24 nomicflux joined
01:26 mk[] joined
01:27 <mk[]> why are dependencies have to be specified in both application and deps callbacks in mix.exs?
01:30 chriswarren joined
01:30 <alisdair> they don't, as of 1.4
01:31 <mk[]> alisdair: I see. let me read the release info for 1.4
01:31 <alisdair> i think it's still good practice to explicitly define your applications though
01:32 <mk[]> why so?
01:32 alex88 joined
01:32 <alisdair> it's entirely reasonable to define multiple releases in a mix project with different application sets
01:32 <mk[]> it's confusing to know which dependencies are applications and which ones aren't
01:33 <alisdair> anything you may want to call at runtime should be an application
01:33 <alisdair> deps is anything you may want to call at compile time
01:33 bitmod joined
01:33 <mk[]> oh, makes sense now
01:34 <alisdair> applications will often include things not in deps (like if they are defined in your project or are from the standard release)
01:34 <mk[]> alisdair: what's an example of something that's only used at compile time?
01:34 celyr joined
01:35 <alisdair> and deps will often include things not in applications (like a mix plugin)
01:37 <mk[]> alisdair: what is the standard release?
01:37 <mk[]> OTP and some elixir specific stuff?
01:38 wtetzner joined
01:40 chriswarren joined
01:44 <alisdair> yeah
01:45 <alisdair> stuff like inets, crypto, logger
01:48 celyr joined
01:49 chriswarren joined
01:52 fernandomm joined
01:52 jkreeftmeijer joined
01:58 chriswarren joined
02:03 celyr joined
02:03 <asonge> mk[]: just btw, technically, all libraries are "applications" (have a .app file that groups modules together with some other properties), like alisdair said, the applications list is just the stuff you're taking with you on a build
02:03 <asonge> (i should really pay attention to timestamps)
02:04 raycoll joined
02:04 wtetzner joined
02:06 <mk[]> asonge: still here :)
02:08 racycle joined
02:08 dhk joined
02:09 <mk[]> asonge: so an application is a group of modules and some env variables?
02:10 <mk[]> where's the .app file typically located?
02:11 <asonge> .app files are stored in the system library path, which is typically a list of ebin/ folders
02:11 <asonge> (the erlang application path)
02:11 <alisdair> in elixir the .app file is generate from mix.exs
02:11 <mk[]> so it's not supposed to be edited manually?
02:12 <alisdair> no
02:12 <alisdair> not for elixir apps
02:12 <asonge> so, in the past, people edited this stuff manually, but mix's job is to generate that file correctly
02:12 <asonge> so you don't forget to add a module (for instance)
02:12 <alisdair> (built by mix at least, things might be different for alternate build tools)
02:12 <asonge> yeah, rebar has a appname.app.src that turns into a .app in the ebin directory
02:13 <asonge> but i remember doing it by hand before rebar was a thing
02:13 <alisdair> emake
02:13 <asonge> (i never used emake)
02:14 <mk[]> great to have nice build tools
02:15 <asonge> yep
02:16 <asonge> btw, there are tons of hand-editable pieces of config that we now generate that just kinda...tie things together...it's a lot more ad-hoc than the tooling makes it feel
02:16 <mk[]> I just got into OTP, I wrote some Erlang when I was a student, but had little time for it
02:16 <mk[]> and my university taught pig-disgusting Java and C++
02:17 <asonge> learn you some erlang actually walks you through how all the stuff is wired together, if you want to dig into the guts of things like OTP releases or apps
02:17 celyr joined
02:18 <mk[]> yeah, elixir's docs can be sparse, so knowing erlang internals is a must
02:18 <alisdair> i doubt anyone ever wrote a boot script by hand
02:18 <alisdair> i think that's purely a post systools thing
02:20 <mk[]> boot script like an init system?
02:23 <mk[]> I assume that should be handled by the OS
02:24 dhk left
02:24 <asonge> mk[]: the vm has to boot up, it's almost like its own OS
02:25 chriswarren joined
02:27 <mk[]> asonge: what exactly happens when BEAM boots up?
02:30 <asonge> i'm not 100% familiar, but aside from starting up the scheduler threads of various kinds, erlang's got a "kernel" that provides some core services (networking ports, file ports, timer support, code and file servers, the portable IO stuff that forwards remote IO to your console if you remsh in, etc)
02:30 tomterl joined
02:30 <asonge> different error reporting mechanisms that you can turn on and swap out
02:30 <asonge> defining a specific boot order for different applications is also done
02:31 celyr joined
02:31 <mk[]> how is usually initialized? mix run?
02:32 <asonge> oh, there's some default strategies, mix and iex are shell scripts that wrap erl, which (iirc) is also a shell script for calling the beam executable
02:33 <asonge> yeah, that's right. just ran `less $(which erl)`
02:33 mrFrog joined
02:33 <mk[]> asonge: so it's one vm handling all applications? or multiple vm instances are possible?
02:34 <mrFrog> dumb question but i'm adding a migration that adds a non null column. since some records already exist, how do i set values for them in the same migration so as to avoid the `not_null_violation` error?
02:34 <mrFrog> (using Ecto)
02:34 <asonge> mk[]: 1 vm handling all applications, clustering is what we call running applications on different vm's, which can message-pass to each other
02:35 <mk[]> asonge: clustering is usually done over tcp?
02:36 <asonge> yeah. it's pluggable, but you usually want tcp or tls
02:36 <asonge> mrFrog: you could add then drop a default value for the not null column
02:37 <asonge> mrFrog: you may need to abandon the dsl, and use up/down and execute some sql
02:37 <mrFrog> asonge: so you think in one migration add column with allowing null / generating value followed by removing allowing null
02:38 <asonge> mrFrog: yeah. i mean, there's no other way around that.
02:38 <asonge> ah, you can use modify/3, i missed that
02:39 <asonge> `modify :field, :text, null: false`
02:39 nomicflux joined
02:39 <asonge> erm, or add the null true later
02:40 alex88 joined
02:44 rschmukler joined
02:52 chriswarren joined
02:55 celyr joined
03:01 alex88 joined
03:01 chriswarren joined
03:03 <johnhamelink> Anyone else getting "Access Denied" when making a call to hex.pm through mix (mix deps.get/deps.update)
03:04 <johnhamelink> https://gist.github.com/johnhamelink/d0658f0114534707891e9bdd001755e2
03:08 mk[] left
03:10 celyr joined
03:11 alex88 joined
03:11 chriswarren joined
03:13 ignacio_ joined
03:14 refriedchicken joined
03:16 <johnhamelink> ^ nvm, it was an error due to me mistyping a package name. @dpehrson on the slack channel kindly helped me out
03:20 chriswarren joined
03:21 steffkes joined
03:21 steffkes joined
03:24 celyr joined
03:29 chriswarren joined
03:29 alex88 joined
03:38 celyr joined
03:38 chriswarren joined
03:41 sfbw joined
03:47 chriswarren joined
03:52 celyr joined
03:52 gvaughn joined
03:53 jkreeftmeijer joined
03:56 chriswarren joined
03:58 alex88 joined
03:58 jerel joined
04:00 wtetzner joined
04:05 chriswarren joined
04:06 proteusguy joined
04:07 celyr joined
04:14 chriswarren joined
04:20 chavito joined
04:21 celyr joined
04:21 pHcF joined
04:24 chriswarren joined
04:25 alex88 joined
04:34 alex88 joined
04:35 celyr joined
04:42 chriswarren joined
04:49 celyr joined
04:51 chriswarren joined
04:54 craigp joined
04:56 IRCFrEAK joined
04:58 IRCFrEAK left
05:00 _IRCFrEAK joined
05:00 chriswarren joined
05:04 celyr joined
05:07 wtetzner joined
05:09 chriswarren joined
05:11 harfangk joined
05:17 celyr joined
05:18 chriswarren joined
05:22 steffkes joined
05:27 chriswarren joined
05:36 chriswarren joined
05:37 celyr joined
05:39 cemilowski joined
05:40 willyk joined
05:40 willyk left
05:41 gvaughn joined
05:50 m_m joined
05:50 celyr joined
05:55 jkreeftmeijer joined
05:55 jkreeftmeijer joined
05:58 vendethiel joined
05:59 rschmukler joined
06:02 meandi_2 joined
06:05 celyr joined
06:13 chriswarren joined
06:14 jkreeftmeijer joined
06:19 celyr joined
06:22 chriswarren joined
06:24 cemilowski1 joined
06:31 chriswarren joined
06:33 celyr joined
06:38 m_m joined
06:40 chriswarren joined
06:48 celyr joined
06:49 chriswarren joined
06:53 rschmukler joined
06:55 m_m joined
06:55 icanhazbroccoli joined
07:10 zabirauf joined
07:11 celyr joined
07:11 cemilowski joined
07:13 tuacker joined
07:23 steffkes joined
07:23 steffkes joined
07:23 m_m joined
07:26 celyr joined
07:26 chriswarren joined
07:29 gvaughn joined
07:31 wsieroci joined
07:33 lt_kaopude joined
07:35 chriswarren joined
07:39 jkreeftmeijer joined
07:40 celyr joined
07:44 chriswarren joined
07:49 tuacker1 joined
07:55 celyr joined
07:56 josevalim joined
08:03 steffkes joined
08:03 steffkes joined
08:06 wtetzner joined
08:17 celyr joined
08:27 wsieroci joined
08:29 chriswarren joined
08:30 celyr joined
08:38 chriswarren joined
08:44 celyr joined
08:46 coatezy joined
08:47 bunzz joined
08:57 nd__ joined
08:58 qqwy joined
08:59 celyr joined
09:03 qqwy left
09:06 gokr joined
09:07 wtetzner joined
09:10 rschmukler joined
09:12 celyr joined
09:14 wsieroci joined
09:16 ZippoWeb joined
09:18 gvaughn joined
09:18 montanonic joined
09:26 celyr joined
09:35 griffinbyatt joined
09:36 sigu joined
09:37 chriswarren joined
09:38 chriswar_ joined
09:46 celyr joined
09:48 chriswarren joined
09:52 daneel joined
09:52 daneel left
09:54 sigu joined
09:57 chriswarren joined
09:58 gmcabrita joined
10:00 celyr joined
10:00 celyr joined
10:02 teddysmoker joined
10:06 chriswarren joined
10:11 <tuacker1> what could be the cause that whenever I change a eex template (phoenix) I get 'compiling 33 files' instead of just the one I changed
10:11 <tuacker> could've sworn it usually just recompiled the changed one and be done
10:12 squallstter joined
10:14 celyr joined
10:15 chriswarren joined
10:15 vmoravec joined
10:16 faramarz joined
10:18 <asonge> tuacker: one thing that comes to mind is that eex templates are compiled into the view module, and if that view module is in the dependency of some other file, it might recompile more stuff
10:18 <asonge> but, it might happen for some other external reason (maybe your editor is compiling files for linting purposes, etc)
10:21 lexmag joined
10:24 chriswarren joined
10:24 steffkes joined
10:24 steffkes joined
10:28 celyr joined
10:30 icanhazbroccoli joined
10:30 aaa_ joined
10:31 <tuacker> asonge: was thinking about that (dependencies) is there a way to make the "compiling xx files" output more verbose? to see which files are affected
10:31 <asonge> oh, yeah. you can definitely make that more verbose
10:33 <asonge> tuacker: try `mix compile --long-compilation-threshold 0`
10:33 <tuacker> will do, after food! thanks asonge
10:33 chriswarren joined
10:34 voloyev joined
10:35 wsieroci joined
10:37 voloyev joined
10:37 <micmus> tuacker: also with mix xref graph you can see the file dependencies
10:42 chriswarren joined
10:42 cemilowski joined
10:43 celyr joined
10:45 jkreeftmeijer joined
10:56 vendethiel joined
10:57 celyr joined
11:02 wsieroci joined
11:06 gvaughn joined
11:06 PaReeOhNos joined
11:09 chriswarren joined
11:17 celyr joined
11:19 chriswarren joined
11:19 <jkreeftmeijer> I’m working on a patch to remove Elixir 1.5 warnings for Poison (https://github.com/devinus/poison/pull/125) that uses String.trim/1 instead of strip/1, but that breaks support for Elixir < 1.3 (because trim/1 didn’t exist back then). What’d be a nice way to handle that?
11:19 <jkreeftmeijer> `Module.defines?/2`?
11:27 JuanMiguel joined
11:31 icanhazbroccoli joined
11:32 Guest67_ joined
11:33 <jkreeftmeijer> Removed it altogether in that patch, btw. It was used to strip the trailing newline from the VERSION file. (would still love to know how you'd do something like this, though)
11:35 v0j joined
11:35 griffinbyatt joined
11:37 Uniaika joined
11:40 <tuacker> asonge, micmus: that helped a lot thanks. Turns out I am an idiot. Made a helper in layout_view to mark the 'active' menu in my nav. Called it like that in app.html.eex `<%= active_nav(@view_module, :settings) %>` and then pattern mached on `def active_nav(Egginventory.UserView, :settings) do….` and just like that every change resulted in recompiling every View and Controller I had
11:41 <tuacker> fun times
11:41 <tuacker> xref graph is gud
11:41 josevalim joined
11:41 <tuacker> (allthough I found mix xref graph —format dot and then opening the file easier to grok than the pretty format :D)
11:46 celyr joined
11:52 tomterl joined
11:55 chriswarren joined
12:01 celyr joined
12:04 chriswarren joined
12:15 celyr joined
12:15 cemilowski left
12:25 steffkes joined
12:25 steffkes joined
12:29 celyr joined
12:35 Or1on joined
12:37 griffinbyatt joined
12:41 lexmag joined
12:42 celyr joined
12:51 chriswarren joined
12:52 travis-ci joined
12:52 <travis-ci> elixir-lang/elixir#14073 (master - 7034721 : Michał Muskała): The build passed.
12:52 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/6311c0313ea4...7034721ae97e
12:52 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/214962739
12:52 travis-ci left
12:55 gvaughn joined
13:01 chriswarren joined
13:01 jbranchaud joined
13:02 embik joined
13:03 jbranchaud joined
13:04 wtetzner joined
13:05 jkreeftmeijer joined
13:06 celyr joined
13:07 cemilowski joined
13:10 chriswarren joined
13:12 JuanMiguel joined
13:13 travis-ci joined
13:13 <travis-ci> elixir-lang/elixir#14076 (master - efa0588 : Jeff Kreeftmeijer): The build passed.
13:13 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/7034721ae97e...efa05882d02e
13:13 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/214966071
13:13 travis-ci left
13:14 jhack joined
13:14 cemilowski left
13:14 rschmukler joined
13:14 sfbw joined
13:15 JuanMiguel joined
13:18 jkreeftmeijer joined
13:19 chriswarren joined
13:30 celyr joined
13:37 Cthalupa joined
13:37 chriswarren joined
13:37 griffinbyatt joined
13:44 celyr joined
13:45 jkreeftmeijer joined
13:46 chriswarren joined
13:52 Cthalupa joined
13:55 chriswarren joined
14:03 <Confiks> Is there any way I can connect to Postgresql on localhost using an UNIX domain socket instead of a TCP connection?
14:04 chriswarren joined
14:07 jkreeftmeijer joined
14:07 <Confiks> Using Ecto, excuse me.
14:08 celyr joined
14:11 meh` joined
14:12 monkeyme joined
14:13 chriswarren joined
14:18 bitmod joined
14:19 dani0_ joined
14:21 marr joined
14:22 chriswarren joined
14:26 steffkes joined
14:26 steffkes joined
14:28 monkeyme joined
14:31 josevalim joined
14:31 chriswarren joined
14:32 monkeyme joined
14:33 <monkeyme> how do you create a new application using an older version of phoenix?
14:34 johnstorey joined
14:34 JuanMiguel joined
14:37 celyr joined
14:37 meh` joined
14:37 nomicflux joined
14:41 chriswarren joined
14:43 gvaughn joined
14:50 chriswarren joined
14:50 celyr joined
14:59 wsieroci joined
14:59 chriswarren joined
15:03 danguita joined
15:05 celyr joined
15:07 Guest67_ joined
15:08 chriswarren joined
15:09 gokr joined
15:12 jkreeftmeijer joined
15:13 tuacker joined
15:15 gvaughn joined
15:17 chriswarren joined
15:18 celyr joined
15:25 vendethiel joined
15:27 chriswarren joined
15:29 jkreeftmeijer joined
15:32 celyr joined
15:32 celyr joined
15:33 racycle joined
15:34 nomicflux joined
15:36 chriswarren joined
15:41 griffinbyatt joined
15:43 wsieroci joined
15:43 raycoll joined
15:45 chriswarren joined
15:51 jhack_ joined
15:54 chriswarren joined
15:56 DeadTrickster joined
15:57 gvaughn_ joined
16:02 celyr joined
16:11 dimitarvp joined
16:12 travis-ci joined
16:12 <travis-ci> elixir-lang/elixir#14078 (master - ed1c948 : Andrea Leopardi): The build passed.
16:12 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/efa05882d02e...ed1c9489d40e
16:12 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/214998583
16:12 travis-ci left
16:13 chriswarren joined
16:17 leandro joined
16:20 nomicflux joined
16:22 chriswarren joined
16:22 knotty66 joined
16:23 <knotty66> Hi guys, does anybody here have any experience with Erlangs :crypto ?
16:23 <knotty66> I am trying to decrypt something encrypted with :aes_cbc256, and a :notsup exception is thrown
16:23 <knotty66> e.g. :crypto.block_decrypt(:aes_cbc256, key, iv, encrypted)
16:23 celyr joined
16:24 <knotty66> But :crypto.supports seems to indicate :aes_cbc256 is supported, as does openssl ciphers -v (I think)
16:24 cemilowski joined
16:25 <knotty66> And my Ruby installation can encrypt / decrypt aes_cbc256. I am using Arch Linux, with Erlang and Elixir installed from the official Community repos. Any ideas? Newby here.
16:27 steffkes joined
16:27 steffkes joined
16:28 Guest67_ joined
16:31 chriswarren joined
16:36 griffinbyatt joined
16:37 celyr joined
16:39 maaarcocr joined
16:40 chriswarren joined
16:42 <maaarcocr> Hi everyone! I'm a student in London (UK) and with a group friends we are trying to organise a Hackathon focused on Open Source. We are trying to know which communities would be interested in helping us and also trying to find sponsors! I would also like to know your ideas on this :D
16:45 cemilowski left
16:50 celyr joined
16:50 lexmag joined
16:56 chavito joined
16:58 mmun left
16:58 rschmukler joined
16:58 squallstter joined
16:59 chriswarren joined
17:00 montanonic joined
17:04 hahuang61 joined
17:05 celyr joined
17:05 celyr joined
17:07 chriswarren joined
17:16 rschmukler joined
17:17 chriswarren joined
17:19 wsieroci joined
17:19 travis-ci joined
17:19 <travis-ci> elixir-lang/elixir#14081 (master - d020b18 : Eksperimental): The build passed.
17:19 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/ed1c9489d40e...d020b187a5ac
17:19 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/215012552
17:19 travis-ci left
17:20 celyr joined
17:24 jkreeftmeijer joined
17:27 zabirauf joined
17:31 apotry joined
17:33 kau joined
17:34 celyr joined
17:42 meh` joined
17:43 steffkes joined
17:44 chriswarren joined
17:48 celyr joined
17:50 vmoravec joined
17:52 wsieroci joined
17:54 chriswarren joined
17:56 marcdel joined
17:58 refriedchicken joined
17:59 jerel joined
18:02 celyr joined
18:02 celyr joined
18:07 MarioBranco joined
18:12 chriswarren joined
18:14 meh` joined
18:16 celyr joined
18:21 chriswarren joined
18:24 wsieroci joined
18:25 nepiktaz joined
18:31 chriswarren joined
18:36 celyr joined
18:39 refriedchicken joined
18:44 rschmukler joined
18:45 The-Kid joined
18:46 chavito joined
18:49 nd__ joined
18:49 jhack joined
18:49 jhack joined
18:53 griffinbyatt joined
18:55 lyuha joined
18:55 celyr joined
18:59 raycoll joined
19:05 codestorm joined
19:08 ZippoWeb joined
19:10 pHcF joined
19:16 raycoll joined
19:17 dani0_ joined
19:19 san3091 joined
19:20 johnstorey joined
19:23 raycoll joined
19:25 jkreeftmeijer joined
19:30 codestorm joined
19:35 ZippoWeb joined
19:37 markh joined
19:44 steffkes joined
19:47 rschmukler joined
19:49 rschmukler joined
19:53 ardhitama joined
19:54 tomfbiz joined
19:56 bitmod joined
19:57 <tomfbiz> Hi -- I'm pretty new to Elixir/Phoenix. I'm trying to test out "addict" and I keep getting 403 errors when trying to register a new user. I added IO.inspect statements and IEx.pry statements in the controller, and ran mix deps.compile, but I don't see any change. Does that mean I'm not testing properly or that I'm not reaching the controller method.
19:58 <tomfbiz> Please let me know if I'm in the wrong channel.
19:58 wsieroci joined
19:59 rschmukl_ joined
19:59 kyrix joined
20:01 <griffinbyatt> It may be hitting an error earlier in the request lifetime
20:01 <griffinbyatt> Maybe a CSRF issue
20:02 <griffinbyatt> It's hard to say though w/out more information or logs
20:03 <PaReeOhNos> tomfbiz: Is it an ajax request you're performing? As griffinbyatt said it could be a CSRF token issue, at which point Phoenix itself will be rejecting the request before it hits your controller
20:03 zabirauf joined
20:04 <PaReeOhNos> 401 is a forbidden response as apposed to an unauthorized so it's not even getting as far as the 'addict' plug
20:05 codestorm joined
20:07 josevalim joined
20:07 <tomfbiz> it is an ajax request. I am not seeing any CSRF errors, either on the server or in the client. Would I? (FYI, I am using the canned templates that come with addict)
20:09 <tomfbiz> All I see in the console output is [info] POST /register [info] \n Sent 403 in 114ms
20:12 <PaReeOhNos> Not personally ever seen the error that Phoenix shows for a CSRF problem, but it certainly sounds like one. Especially if you're not explicitly setting the CSRF token in the request
20:13 <PaReeOhNos> easy way to test though. In your `router.ex` file, in your `pipeline` block, comment out the line `plug :protect_from_forgery` which will disabled the CSRF check altogether. If that succeeds, then you know it's a CSRF issue
20:18 rschmukler joined
20:20 <tomfbiz> PaReeOhNos -- thanks, that confirmed your suspition. It is a CSRF issue.
20:22 <PaReeOhNos> excellent :)
20:26 griffinbyatt joined
20:26 jkreeftmeijer joined
20:33 jhack joined
20:34 codestorm joined
20:37 chavito joined
20:41 jerel joined
20:47 johnstorey joined
20:56 josevalim joined
21:00 ctp joined
21:07 nd__ joined
21:11 luke_nukem joined
21:15 meh` joined
21:17 steffkes joined
21:20 wsieroci joined
21:29 PaReeOhNos joined
21:41 rschmukler joined
21:46 sardaukar joined
21:47 wtetzner joined
21:53 nomicflux joined
22:02 rschmukler joined
22:05 PaReeOhNos joined
22:18 greengriminal joined
22:26 jerel joined
22:28 jkreeftmeijer joined
22:30 codestorm joined
22:33 zabirauf joined
22:34 arquebus joined
22:42 marcdel joined
22:45 Guest67_ joined
22:57 exadeci joined
22:57 apotry joined
23:07 MaSven joined
23:07 PaReeOhNos joined
23:19 genq joined
23:19 steffkes joined
23:19 steffkes joined
23:25 codestorm joined
23:29 jkreeftmeijer joined
23:32 jbranchaud joined
23:56 rschmukler joined