<    June 2018     >
Su Mo Tu We Th Fr Sa  
                1  2  
 3  4  5  6  7  8  9  
10 11 12 13 14 15 16  
17 _1_8 19 20 21 22 23  
24 25 26 27 28 29 30
11:35 irclogger_com joined
11:35 Topic for
11:35 davs joined
11:53 alexband joined
11:56 elixir-lang-repo joined
11:56 <elixir-lang-repo> [elixir] josevalim pushed 1 new commit to master: https://git.io/vh2jh
11:56 <elixir-lang-repo> elixir/master 5edb1d2 José Valim: Add hints on mismatched do/end and others pairs...
11:56 elixir-lang-repo left
11:58 _arkgil joined
12:00 jezeniel joined
12:01 gvaughn joined
12:07 jezeniel joined
12:14 _arkgil joined
12:19 jeffro joined
13:04 tgould joined
13:18 dodo75 joined
13:35 oldnborg joined
13:40 toothfairy_ joined
13:46 _arkgil joined
13:46 za1b1tsu joined
13:47 <za1b1tsu> Hello, I'm getting this error (CompileError) lib/cart/application.ex:13: undefined function supervisor/2 for https://gist.githubusercontent.com/bbtdev/f95233363ad45ec933c0d295a3a2280c/raw/ee5f414bd198ed245c7e1bbcc6c366efd0c76547/gistfile1.txt
13:47 <za1b1tsu> but in all tutorials I saw, it's supervisor(Blabla.Repo, [])
13:49 gvaughn joined
13:50 dimitarvp joined
13:53 Avinash joined
14:00 mertonium joined
14:00 beefjoe joined
14:00 jezeniel joined
14:04 mahmudov joined
14:06 jezeniel joined
14:11 <beefjoe> Guys I'm getting this error
14:11 <beefjoe> ** (Mix) You're trying to run :worker on Elixir v1.1.0-dev but it has declared in its mix.exs file it supports only Elixir ~> 1.1
14:11 <beefjoe> how can I change the mix file so it supports that dev version as well
14:14 __charly__ joined
14:14 sihui_io joined
14:16 tgould joined
14:17 <beefjoe> Got it :)
14:19 jezeniel joined
14:20 jeffro joined
14:22 <nickjj> does anyone know what the phoenix syntax would be for nesting content_tags where 2 of the nested content_tags are being situationally used based on a case statement?
14:24 <nickjj> this is what i'm working with so far https://gist.github.com/nickjj/cc6a2ca13a0d994528ef6c8d66a74921 , and it compiles , but the display_name takes priority over the other content tags as the value of the main div
14:32 <nickjj> oh, had to use an array
14:34 lexmag joined
14:42 mertonium joined
14:47 netrino joined
14:56 liberza joined
15:04 za1b1tsu joined
15:28 <za1b1tsu> What's the purpose of the priv folder? What goes there?
15:35 <cadiac> stuff like migrations and gettext translations are there
15:36 <nickjj> chrismccord, is this a bug i should report on github? if i open any config file and save it without modifying the file, phoenix still throws the restart your server error
15:36 <nickjj> this has some issues when trying mix format regularly
15:39 gvaughn joined
15:41 jeffro joined
15:41 iFire joined
15:45 elixir-lang-repo joined
15:45 <elixir-lang-repo> [elixir] josevalim closed pull request #7737: [Formatter : anon_fun] When fn is followed by a newline, use multi-clause formatting style (master...code-formatter-anon-fun-fix) https://git.io/vh2Hn
15:45 elixir-lang-repo left
15:49 nicht joined
15:49 nicht_ joined
15:54 elixir-lang-repo joined
15:54 <elixir-lang-repo> [elixir] josevalim pushed 1 new commit to master: https://git.io/vhaLV
15:54 <elixir-lang-repo> elixir/master 396e0bf José Valim: Only compute eol if necessary
15:54 elixir-lang-repo left
15:55 gvaughn joined
15:56 dodo75 joined
16:02 davs_ joined
16:13 davs joined
16:14 PragTob joined
16:19 wsieroci joined
16:25 lexmag joined
16:31 <za1b1tsu> Regarding Ecto.Schema, when I schema name do... "name" is the name of the table in database? When is the name used?
16:40 take_flight joined
16:46 _arkgil joined
16:49 davs_ joined
16:53 _arkgil joined
16:54 icanhazbroccoli1 joined
16:57 jeffro joined
17:01 <josevalim> table in the database, yes
17:01 <josevalim> it is used when you do an operation in the repository
17:04 _arkgil joined
17:07 davs joined
17:16 <josevalim> okeuday_bak: you should have answered micmus with "yes, you can ask"
17:16 <josevalim> :P
17:16 <Nicd-> za1b1tsu: priv is also used for files you need to include in a distillery release, like static assets and in my case geoip databases
17:17 _arkgil joined
17:19 <micmus> josevalim: thanks, that would be very helpful :P
17:23 <okeuday_bak> wasn't sure how interested you were :-)
17:24 _arkgil joined
17:25 <micmus> I looked in the repo and saw the rebar.config, I haven't really thought about rebar2 vs rebar3
17:25 <micmus> only 3 supports hex, right?
17:26 <za1b1tsu> josevalim, Nicd- thank you
17:27 <okeuday_bak> micmus: yeah, and through strange trickery rebar2 is able to handle filesystem-based deps, but rebar3 requires different more complex trickery, then for backwards compatibility people try to write escripts but there isn't a standard approach for that it seems
17:28 <okeuday_bak> micmus: it makes you like makefiles
17:28 <micmus> that sounds radical :P
17:29 davs_ joined
17:29 <okeuday_bak> micmus: the releases switched from reltool to relx with the rebar3 changes too, but I have a separate escript to handle that
17:30 <ericmj> do you need to support both rebar2 and rebar3?
17:31 <okeuday_bak> ericmj: not sure, it depends on how long I wait to use rebar3 probably
17:32 <ericmj> i would have assumed the rebar2 user base is pretty small by now
17:33 <okeuday_bak> ericmj: not sure, it just depends on the time available, switching from rebar2 to rebar3 doesn't really help me much and no one has complained yet, so all is well
17:34 <ericmj> it sounds like it would help if you only have to support one major version
17:35 <okeuday_bak> ericmj: so you are saying I should stick with rebar2, right?
17:37 <okeuday_bak> anyway, not a big concern, I enjoy using mix, just typically use rebar2 for erlang deps, gradually switching to rebar3 as time allows
17:38 <ericmj> okeuday_bak: no, i think the user base is bigger for rebar3 so it think you should drop rebar2
17:39 <ericmj> but i have no idea what your specific user base is, i can just talk about what i have observed generally
17:40 <ericmj> rebar3 has been out for 3 years and stable for 2
17:50 _arkgil joined
17:51 djelic joined
18:06 take_flight joined
18:08 fmcgeough joined
18:26 mertonium joined
18:29 w1gz joined
18:30 mitchellhenke joined
18:32 dopplergange joined
18:34 greengriminal joined
18:45 TheNet joined
18:55 w1gz joined
18:57 jeffro joined
19:02 icanhazbroccoli joined
19:10 netrino_ joined
19:12 squalloster joined
19:28 mrakic joined
19:31 elixir-lang-repo joined
19:31 <elixir-lang-repo> [elixir] pragdave opened pull request #7739: some notes on a distributed logger (master...distributed-logger) https://git.io/vhasu
19:31 elixir-lang-repo left
19:37 MissingNoIOI joined
19:45 _arkgil joined
19:47 mertonium joined
19:57 mahmudov joined
20:02 mertonium joined
20:10 mertonium joined
20:13 _arkgil joined
20:25 _arkgil joined
20:37 gazler joined
20:38 Guest6 joined
20:44 greengriminal joined
20:46 <micmus> josevalim: when you were optimising the router generation in phoenix, was that with the rewrite of how accumulated attributes are handled in elixir itself?
20:52 <josevalim> micmus: hrm, yes, i was in master all the time
20:52 <micmus> ok, I was just checking
20:53 <Zarathu> lol
20:58 jeffro joined
21:08 ur5us joined
21:26 _arkgil joined
21:42 _arkgil joined
21:44 elixir-lang-repo joined
21:44 <elixir-lang-repo> [elixir] pragdave closed pull request #7739: some notes on a distributed logger (master...distributed-logger) https://git.io/vhasu
21:44 elixir-lang-repo left
21:55 Cthalupa joined
22:01 take_flight joined
22:08 ssswitch joined
22:16 jkh joined
22:17 <jkh> Howdy. Has anyone here managed to find a VS Code extension that allows simple script editing and running using an external (elixir) interpreter and an output window, as one can do fairly easily with Sublime text?
22:17 <jkh> There is an elixir extension for VS Code already but it only works with mix projects, not just “single file projects” for experimenting
22:18 <jkh> (though maybe I’m missing some hidden feature of it)
22:28 mertonium joined
22:39 abhi56rai joined
22:43 jkh joined
22:45 mrBen2k2k2k_ joined
22:50 <jkh> .. anyone even awake in this channel? :)
22:50 <* jkh> listens to the soft soothing sounds of crickets
22:59 jeffro joined
23:00 harfangk joined
23:03 <nickjj> how would one go about responding with just a partial's template contents to an ajax request in a controller?
23:04 <nickjj> i have a feeling this might be impossible due to how elixir compiles templates, but i wonder what the work around would be, because this is a very very common use case
23:05 <nickjj> checking if a request is XMLHttpRequest is fine and dandy -- and rendering the partial there works , but the partial gets compiled into a full html page -- so in the end, the whole html gets returned instead of just the partial's content
23:05 _maz joined
23:08 harfangk joined
23:38 <Zarathu> nickjj: put_layout(conn, false) ?
23:39 <nickjj> Zarathu, what would the full render call look like with that?
23:40 <Zarathu> conn |> put_layout(false) |> render("_partial.html", conn.assigns) ...
23:44 <nickjj> Zarathu, thanks that worked
23:44 <nickjj> although the way i got around it previously was to parse the HTML using jquery (just sniping the partial from the full html src), which didn't require having to add more boilerplate to my controller
23:44 <nickjj> at the cost of potentially parsing ~30kb of html on the client, ohhh the choices web developers must make