« Back to channel list

#elixir-lang - 30 March 2019

« Back 1 day Forward 1 day »
[00:05:11] darkSeid_: has joined #elixir-lang
[00:25:20] vhbueno: has joined #elixir-lang
[00:26:10] vhbueno: has joined #elixir-lang
[00:29:53] vhbueno: Hi! I'm new to phoenix. I'm trying to have a subfolder inside the "templates" folder, but templates inside this one doesn't seems to get compiled. I already tried to add a pattern the use Phoenix.View call, with no success. Here is my code: quote do use Phoenix.View, root: "lib/docdocs_web/templates", pattern: "**/*", namespace: DocdocsWeb
[01:02:46] rawtaz: vhbueno: nice question. stay tuned and youll probably get an answer. patience ;)
[01:02:50] rawtaz: ACTION &
[01:04:33] vhbueno: rawtaz: thanks
[01:06:28] carldd: has joined #elixir-lang
[01:12:53] rhbvkleef: has joined #elixir-lang
[01:23:04] vhbueno: rawtaz: I got it. Inside my controller's index method, I was trying to render "app/controller_name/index" instead of only "index". Now it is working. =)
[01:29:39] davidw: has joined #elixir-lang
[01:35:28] pemminvee: has joined #elixir-lang
[01:42:08] jeffro: has joined #elixir-lang
[01:53:21] Devalo: has joined #elixir-lang
[02:22:58] tomterl: has joined #elixir-lang
[03:01:58] jeffro: has joined #elixir-lang
[03:09:25] lauromoura_: has joined #elixir-lang
[03:22:04] carldd: has joined #elixir-lang
[03:36:26] proteusguy: has joined #elixir-lang
[03:38:53] proteusguy: has joined #elixir-lang
[03:58:43] jeffro: has joined #elixir-lang
[04:01:13] tnez: has joined #elixir-lang
[04:08:51] jeffro: has joined #elixir-lang
[04:45:20] jeffro: has joined #elixir-lang
[04:48:17] nighty-: has joined #elixir-lang
[04:48:32] Whipstickgostop: has joined #elixir-lang
[04:49:24] kapil____: has joined #elixir-lang
[04:55:39] Whipstickgostop: has joined #elixir-lang
[05:05:20] proteusguy: has joined #elixir-lang
[05:17:49] wsieroci: has joined #elixir-lang
[05:19:10] jeffro: has joined #elixir-lang
[05:33:09] Saukk: has joined #elixir-lang
[05:53:45] Devalo: has joined #elixir-lang
[05:56:15] salasrod: has joined #elixir-lang
[06:43:14] gvaughn: has joined #elixir-lang
[07:30:46] milmazz: has joined #elixir-lang
[07:31:32] LordPraslea: has joined #elixir-lang
[07:38:20] squalloster: has joined #elixir-lang
[07:48:01] Nicd-: hypercore: are you referring to the rendered HTML? the indentations do not matter
[07:48:52] gvaughn: has joined #elixir-lang
[07:49:42] Nicd-: you would be inspecting the HTML with your browser's devtool's inspector anyway, and that will render a tree view of the DOM, no matter what the HTML looks like
[08:35:02] Beam`: has joined #elixir-lang
[08:45:01] psy: has joined #elixir-lang
[08:45:42] lexmag: has joined #elixir-lang
[08:56:43] gvaughn: has joined #elixir-lang
[09:26:18] PragTob: has joined #elixir-lang
[09:27:37] PragTob: And once for the IRC folks, benchee has finally released in version 1.0! Changelog: https://github.com/bencheeorg/benchee/blob/master/CHANGELOG.md#100-2019-03-28 Blog post: https://pragtob.wordpress.com/2019/03/28/released-benchee-0-99-1-0-friends/
[09:35:31] netrino: has joined #elixir-lang
[09:46:35] inhortte1: has joined #elixir-lang
[09:46:54] Beam`: does anyone know if it's possible to use on_conflict and conflict_targets with Repo.update_all/3 or there is any alternatives to handle a possible constraint error on the database level?
[09:57:11] mahmudov: has joined #elixir-lang
[10:12:30] gvaughn: has joined #elixir-lang
[10:16:35] dimitarvp: has joined #elixir-lang
[10:38:36] dimitarvp: has joined #elixir-lang
[10:49:03] Saukk: has joined #elixir-lang
[10:50:27] vasilakisFiL: has joined #elixir-lang
[10:52:14] vasilakisFiL: hi! I am trying to implement merge sort in Elixir to learn functional programming and elixir, but I am stuck. Specifically, I get an error as explained here: https://gist.github.com/vasilakisfil/4563c9f014ce90271d76a90d52869a16
[10:53:04] vasilakisFiL: I am wondering why the '\t' appears. Shouldn't after split, list_a be just an empty list? ([])
[10:54:00] kyrylo: has joined #elixir-lang
[10:58:16] craigp_: has joined #elixir-lang
[10:59:12] dysfun: ecto doesn't seem to be fetching a column from my database when i do a get. the field exists in the database and is populated with a value. the declaration in the schema is just `field :next_depth, :integer, default: 1`. any ideas?
[11:00:59] dysfun: oh good god it was the wrong directory
[11:01:09] dysfun: dear coffee, please work
[11:12:47] lexmag: has joined #elixir-lang
[11:17:57] helpa: has joined #elixir-lang
[11:17:59] marcusr: has joined #elixir-lang
[11:18:18] lemald: has joined #elixir-lang
[11:18:49] lexmag: has joined #elixir-lang
[11:18:54] netrino: has joined #elixir-lang
[11:19:07] subsonik: has joined #elixir-lang
[11:19:21] grg: has joined #elixir-lang
[11:19:28] verto: has joined #elixir-lang
[11:20:02] Derperperd: has joined #elixir-lang
[11:20:53] Sigma-: has joined #elixir-lang
[11:21:30] vasilakisFiL: ok found the issue
[11:21:32] Fire-Dragon-DoL: has joined #elixir-lang
[11:21:40] LnL: has joined #elixir-lang
[11:21:52] juba: has joined #elixir-lang
[11:21:54] vasilakisFiL: I had [head_a, tail_a] instead of [head_a | tail_a]
[11:31:05] sterl: has joined #elixir-lang
[11:31:17] gvaughn: has joined #elixir-lang
[11:40:31] sterl: has joined #elixir-lang
[11:42:53] kapil____: has joined #elixir-lang
[11:50:32] sterl: has joined #elixir-lang
[12:00:05] sterl: has joined #elixir-lang
[12:03:35] lpil: has joined #elixir-lang
[12:09:41] sterl: has joined #elixir-lang
[12:20:10] sterl: has joined #elixir-lang
[12:24:48] proteusguy: has joined #elixir-lang
[12:26:43] proteusguy: has joined #elixir-lang
[12:30:07] sterl: has joined #elixir-lang
[12:46:14] gvaughn: has joined #elixir-lang
[12:47:09] wsieroci: has joined #elixir-lang
[12:59:51] bokay: has joined #elixir-lang
[13:18:55] psy: has joined #elixir-lang
[13:20:05] jeffro: has joined #elixir-lang
[13:52:36] PragTob: has joined #elixir-lang
[13:57:35] kapil____: `conn |> put_session(:current_user_id, user.id)` also put session on subdomain too?
[13:59:18] gvaughn: has joined #elixir-lang
[14:11:27] thomasfedb: Good book/guide for people coming from OOP to Elixir?
[14:16:46] lpil_: has joined #elixir-lang
[14:26:01] lpil: has joined #elixir-lang
[14:42:05] fxer: has joined #elixir-lang
[14:42:51] Jetimon: has joined #elixir-lang
[14:43:10] mahmudov: has joined #elixir-lang
[15:01:26] lpil: has joined #elixir-lang
[15:04:24] gvaughn: has joined #elixir-lang
[15:08:33] Phylock: has joined #elixir-lang
[15:12:52] bokay: has joined #elixir-lang
[15:15:07] psy: has joined #elixir-lang
[15:17:32] foob11: has joined #elixir-lang
[15:20:10] laut: has joined #elixir-lang
[15:20:28] davidw: has joined #elixir-lang
[15:21:09] tnez: has joined #elixir-lang
[15:21:16] jeffro: has joined #elixir-lang
[15:23:37] __charly__: has joined #elixir-lang
[15:25:40] Beam`: has joined #elixir-lang
[15:26:30] dysfun: thomasfedb: there are lots, pick one that sounds good to you
[15:29:35] milmazz: has joined #elixir-lang
[15:42:02] uranoss: has joined #elixir-lang
[15:42:44] umamaistempo: has joined #elixir-lang
[15:43:02] umamaistempo: Hey allo everyone o/
[15:43:07] Tau: has joined #elixir-lang
[15:43:12] lpil: Hey umamaistempo
[15:55:56] inhortte: has joined #elixir-lang
[16:07:08] dysfun: how goes?
[16:07:41] lpil: It's mostly going well. I'm trying to remember how IRC works. It has been a few years
[16:08:07] dysfun: i'm just casually writing an operator that happens to be a macro
[16:08:17] lpil: What does it do? :)
[16:09:11] dysfun: it's |>, except it expects the thing to the left to return an ok/error tuple
[16:09:57] lpil: I think there might be a few hex packages that define that operator, if you're interested in that kind of thing
[16:10:11] dysfun: i didn't find one
[16:10:29] dysfun: anyway, it's an obvious one
[16:10:57] lpil: https://github.com/vic/ok_jose perhaps?
[16:11:43] lpil: https://github.com/CrowdHailer/OK or this
[16:12:43] dysfun: ok_jose replaces the regular pipe
[16:13:20] dysfun: OK looks better
[16:13:47] lpil: Yes that's a good point. I prefer not to override existing operators
[16:14:04] dysfun: i wanted something absolutely opt in
[16:14:21] dysfun: and while some may argue for the taste of an operator, it's not much of an imposition
[16:14:53] dysfun: ok, going to use OK
[16:16:28] dysfun: well that was easy
[16:16:30] dysfun: thanks lpil
[16:17:45] notzmv: has joined #elixir-lang
[16:38:10] fxer: has joined #elixir-lang
[16:41:44] lexmag: has joined #elixir-lang
[16:44:10] BitGonzo: has joined #elixir-lang
[17:13:26] lexmag: has joined #elixir-lang
[17:19:50] orbyt_: has joined #elixir-lang
[18:09:44] lpil: has joined #elixir-lang
[18:13:56] orbyt_: has joined #elixir-lang
[18:28:41] Devalo: has joined #elixir-lang
[18:37:30] Devalo: has joined #elixir-lang
[18:47:00] lauromoura: has joined #elixir-lang
[19:14:05] squalloster: has joined #elixir-lang
[19:26:04] Devalo: has joined #elixir-lang
[19:55:06] ankhers: OvermindDL1: pm?
[20:09:46] __charly__: has joined #elixir-lang
[20:12:55] OvermindDL1: Ankhers: always feel free, if I'm available I'll respond otherwise I will whenever I get on my bouncer. 🙂
[20:17:10] DTZUZO: has joined #elixir-lang
[20:24:53] Guest60941: has joined #elixir-lang
[20:27:25] Devalo: has joined #elixir-lang
[20:30:37] PragTob: has joined #elixir-lang
[20:44:30] griffinbyatt: has joined #elixir-lang
[21:00:17] rogersanctus: has joined #elixir-lang
[21:01:46] craigp_: has joined #elixir-lang
[22:00:13] darkSeid_: has joined #elixir-lang
[22:24:31] orbyt_: has joined #elixir-lang
[22:45:59] netrino: has joined #elixir-lang
[23:14:59] fyber: has joined #elixir-lang
[23:15:33] fyber: So I'm following an (older) guide that uses the mix task phx.gen.model, but this no longer exists in v1.4.3. What do I use instead?
[23:16:31] fyber: Also would it be accurate to say that Phoenix/elixir are generally API unstable? Most of the mix tasks (1.3.X > 1.4.X) have been renamed "phx" < "phoenix" even though it's not a major version bump...
[23:28:38] bokay: has joined #elixir-lang
[23:33:17] rogersanctus: I am not active on elixir for a time. But if you can give a look at: https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Json.html
[23:34:06] fyber: I don't want it to generate a controller and view, just the Ecto model.
[23:42:52] rogersanctus: fyber, there is no Model in phoenix anymore. I don't recall where I saw about this change. But the documentation for phoenix is that I linked. There is also this tutorial about JSON Api: https://lobotuerto.com/blog/building-a-json-api-in-elixir-with-phoenix/
[23:43:26] rogersanctus: yet, u can use gen.schema to generate what was called "model"
[23:48:36] lauromoura: has joined #elixir-lang
[23:56:17] BitGonzo: has joined #elixir-lang