« Back to channel list

#elixir-lang - 03 June 2019

« Back 1 day Forward 1 day »
[00:00:48] atk: has joined #elixir-lang
[00:06:12] harfangk: has joined #elixir-lang
[00:16:57] netrino_: has joined #elixir-lang
[00:25:50] dtzuzu: has joined #elixir-lang
[00:33:29] theWhisper__: has joined #elixir-lang
[00:49:00] ur5us: has joined #elixir-lang
[00:50:16] ur5us: has joined #elixir-lang
[00:55:56] netrino_: has joined #elixir-lang
[01:06:02] ariedler: has joined #elixir-lang
[01:14:25] greengriminal: has joined #elixir-lang
[01:25:23] drincruz_: has joined #elixir-lang
[01:25:47] orbyt_: has joined #elixir-lang
[01:35:01] netrino_: has joined #elixir-lang
[01:51:01] tomterl: has joined #elixir-lang
[02:00:41] jeffro: has joined #elixir-lang
[02:14:02] netrino_: has joined #elixir-lang
[02:14:44] theWhisper___: has joined #elixir-lang
[02:27:22] greengriminal: has joined #elixir-lang
[02:34:55] orbyt_: has joined #elixir-lang
[02:42:05] jeffro: has joined #elixir-lang
[02:48:21] __charly__: has joined #elixir-lang
[02:53:02] netrino_: has joined #elixir-lang
[03:04:35] Saukk: has joined #elixir-lang
[03:05:06] orbyt_: has joined #elixir-lang
[03:19:17] iamvery: has joined #elixir-lang
[03:19:53] netrino__: has joined #elixir-lang
[03:40:36] jeffro: has joined #elixir-lang
[03:41:19] netrino__: has joined #elixir-lang
[03:50:24] netrino__: has joined #elixir-lang
[03:59:27] netrino__: has joined #elixir-lang
[04:04:55] mbuf: has joined #elixir-lang
[04:33:49] meimeix: has joined #elixir-lang
[04:38:35] netrino__: has joined #elixir-lang
[04:44:34] Phylock: has joined #elixir-lang
[05:00:42] iamvery: has joined #elixir-lang
[05:07:52] ariedler: has joined #elixir-lang
[05:08:18] Cloudflare: has joined #elixir-lang
[05:17:32] netrino__: has joined #elixir-lang
[05:33:11] aalmazan: has joined #elixir-lang
[05:33:56] tnez: has joined #elixir-lang
[05:38:54] gvaughn: has joined #elixir-lang
[05:48:45] serafeim: has joined #elixir-lang
[05:48:53] serafeim: good morning
[05:50:01] serafeim: i'm trying to understand the Presence a bit: https://hexdocs.pm/phoenix/presence.html the docs aren't very helpful though. what does this offer in addition to channels ? it seems that presence actually is using channels from what i see. but what does it do on top of that ?
[05:50:57] Nicd-: > A simple use-case would be showing which users are currently online in an application.
[05:51:46] serafeim: Nicd-: yes i've read that. but isn't this possible with channels ?
[05:52:04] Nicd-: sure if you replicate what Presence does yourself
[05:52:19] serafeim: can't i just watch a socket and when it's closed remove the user from the list?
[05:52:31] serafeim: Nicd-: well that's what I can't understand. what does presence do :)
[05:52:41] Nicd-: what if the user opens the page many times and thus has many sockets?
[05:52:46] Nicd-: what if you have users on multiple nodes?
[05:53:05] Nicd-: I haven't used Presence but at least it claims to handle that with no single point of failure
[05:53:11] serafeim: Nicd-: multiple nodes you mean multiple application servers ?
[05:53:49] serafeim: Nicd-: if the user opens many pages then i'll have a counter next to his username and remove it when it reaches zero
[05:54:11] serafeim: Nicd-: ok the multiple nodes is more difficult i guess
[05:54:13] Nicd-: and where do you store that information?
[05:54:27] Nicd-: you can't store it in the socket because the user has many sockets
[05:54:36] Nicd-: Presence allows you to store the info
[05:55:08] serafeim: Nicd- ok you've convinced me i'll try it.
[05:56:34] netrino__: has joined #elixir-lang
[06:19:37] ndee: has joined #elixir-lang
[06:24:55] garazdawi: has joined #elixir-lang
[06:30:11] tuacker: has joined #elixir-lang
[06:30:32] netrino__: has joined #elixir-lang
[06:45:58] squall: has joined #elixir-lang
[06:46:31] gvaughn: has joined #elixir-lang
[06:52:20] DTZUZO: has joined #elixir-lang
[06:53:06] PragTob: has joined #elixir-lang
[07:00:07] iamvery: has joined #elixir-lang
[07:02:21] ur5us: has joined #elixir-lang
[07:06:51] serafeim: ok ii am trying presence and i'd like to ask if there's a way to allow only specific users to retrieve the presense list
[07:07:05] serafeim: i.e i want everybody to declare their presense but only admins to be able to see who's online
[07:08:31] ariedler: has joined #elixir-lang
[07:09:05] serafeim: is this even possible ?
[07:22:05] jeffro: has joined #elixir-lang
[07:25:08] serafeim: i think that i was able to implement that by changing the `handle_info` function to `push` the presense list only if the user is admin
[07:35:14] anykey: has joined #elixir-lang
[07:35:59] netrino__: has joined #elixir-lang
[07:42:57] zv: has joined #elixir-lang
[07:43:55] wonko77: has joined #elixir-lang
[07:45:29] vnz: has joined #elixir-lang
[07:45:29] vnz: has joined #elixir-lang
[07:45:42] zeeshanlakhani: has joined #elixir-lang
[07:45:47] jameshaydon: has joined #elixir-lang
[07:45:50] jeregrine: has joined #elixir-lang
[07:46:11] lackac: has joined #elixir-lang
[07:47:20] targaf: has joined #elixir-lang
[07:52:49] hindenbug[m]: has joined #elixir-lang
[07:52:49] cbw[m]: has joined #elixir-lang
[07:52:49] Ablu: has joined #elixir-lang
[07:52:49] lpvb: has joined #elixir-lang
[07:52:49] Net: has joined #elixir-lang
[07:52:49] chops: has joined #elixir-lang
[07:52:49] adulteratedjedi: has joined #elixir-lang
[07:52:49] reachfh: has joined #elixir-lang
[07:52:49] bbielsa___: has joined #elixir-lang
[07:52:50] povilas: has joined #elixir-lang
[07:52:50] celyr: has joined #elixir-lang
[07:52:50] Poeticode: has joined #elixir-lang
[07:52:50] lehoff: has joined #elixir-lang
[07:52:50] Siyo: has joined #elixir-lang
[07:53:26] null__: has joined #elixir-lang
[07:53:26] davisp: has joined #elixir-lang
[07:53:26] whatyouhide: has joined #elixir-lang
[07:53:26] HashNuke: has joined #elixir-lang
[07:53:27] nolan_d: has joined #elixir-lang
[07:53:27] aither: has joined #elixir-lang
[07:53:27] RJ2: has joined #elixir-lang
[07:53:27] wojtekmach: has joined #elixir-lang
[07:53:27] fertapric: has joined #elixir-lang
[07:53:27] Nicd-: has joined #elixir-lang
[07:53:27] Liquid_X_: has joined #elixir-lang
[07:53:27] Reapster_: has joined #elixir-lang
[07:53:27] rassilon: has joined #elixir-lang
[07:53:27] fxer: has joined #elixir-lang
[07:53:27] uplime: has joined #elixir-lang
[07:54:31] jeffro: has joined #elixir-lang
[07:55:53] gvaughn: has joined #elixir-lang
[07:56:15] anykey: has joined #elixir-lang
[07:58:05] kiltzman: has joined #elixir-lang
[07:59:33] lexmag: has joined #elixir-lang
[08:03:45] jeffro: has joined #elixir-lang
[08:12:45] jeffro: has joined #elixir-lang
[08:15:01] netrino__: has joined #elixir-lang
[08:34:04] jeffro: has joined #elixir-lang
[08:43:17] jeffro: has joined #elixir-lang
[08:45:02] harfangk: has joined #elixir-lang
[08:54:02] netrino__: has joined #elixir-lang
[08:54:42] ur5us: has joined #elixir-lang
[09:01:57] jeffro: has joined #elixir-lang
[09:05:21] wonko77: has joined #elixir-lang
[09:09:00] ur5us: has joined #elixir-lang
[09:09:29] ariedler: has joined #elixir-lang
[09:11:06] jeffro: has joined #elixir-lang
[09:11:10] gvaughn: has joined #elixir-lang
[09:16:09] 7ITAAHE4P: has joined #elixir-lang
[09:20:12] jeffro: has joined #elixir-lang
[09:29:14] jeffro: has joined #elixir-lang
[09:33:00] netrino__: has joined #elixir-lang
[09:45:03] rkleef: has joined #elixir-lang
[09:48:50] notzmv: has joined #elixir-lang
[09:55:39] mdbm: has joined #elixir-lang
[10:05:51] jeffro: has joined #elixir-lang
[10:10:58] BitBot: has joined #elixir-lang
[10:12:01] netrino__: has joined #elixir-lang
[10:13:08] dimitarvp: has joined #elixir-lang
[10:16:13] lexmag: has joined #elixir-lang
[10:23:03] Phylock: has joined #elixir-lang
[10:24:13] gvaughn: has joined #elixir-lang
[10:29:01] jegaxd26: has joined #elixir-lang
[10:42:22] jeffro: has joined #elixir-lang
[10:47:16] ur5us: has joined #elixir-lang
[10:51:04] netrino__: has joined #elixir-lang
[10:55:08] ariedler: has joined #elixir-lang
[11:26:20] fastfresh_: has joined #elixir-lang
[11:29:37] fastfresh: has joined #elixir-lang
[11:30:02] netrino__: has joined #elixir-lang
[11:33:43] gvaughn: has joined #elixir-lang
[11:37:15] jegaxd26: has joined #elixir-lang
[11:42:09] mdbm_: has joined #elixir-lang
[11:48:16] gde33: has joined #elixir-lang
[11:53:49] jeffro: has joined #elixir-lang
[11:57:10] greengriminal: has joined #elixir-lang
[12:02:55] griffinbyatt: has joined #elixir-lang
[12:03:04] jeffro: has joined #elixir-lang
[12:13:59] jegaxd26: has joined #elixir-lang
[12:26:28] lexmag: has joined #elixir-lang
[12:28:40] proteusguy: has joined #elixir-lang
[12:30:38] jeffro: has joined #elixir-lang
[12:31:46] either|or: has joined #elixir-lang
[12:39:42] jeffro: has joined #elixir-lang
[12:41:47] null__: has joined #elixir-lang
[12:42:15] wojtekmach: has joined #elixir-lang
[12:42:47] HashNuke: has joined #elixir-lang
[12:42:50] ytruly: has joined #elixir-lang
[12:43:01] hahuang65: has joined #elixir-lang
[12:43:15] bbielsa___: has joined #elixir-lang
[12:43:29] reachfh: has joined #elixir-lang
[12:44:26] fastfresh: has joined #elixir-lang
[12:44:31] Brend: has joined #elixir-lang
[12:45:03] Liothen: has joined #elixir-lang
[12:46:14] rvirding: has joined #elixir-lang
[12:46:18] chewbranca: has joined #elixir-lang
[12:46:34] fertapric: has joined #elixir-lang
[12:46:43] adulteratedjedi: has joined #elixir-lang
[12:48:02] Nicd-: has joined #elixir-lang
[12:48:02] zeeshanlakhani: has joined #elixir-lang
[12:48:17] RJ2: has joined #elixir-lang
[12:51:53] whatyouhide: has joined #elixir-lang
[12:52:14] tomterl: has joined #elixir-lang
[12:52:43] gvaughn: has joined #elixir-lang
[12:53:22] Net: has joined #elixir-lang
[12:55:55] duoi: has joined #elixir-lang
[12:59:07] chops: has joined #elixir-lang
[13:00:12] griffinbyatt: has joined #elixir-lang
[13:04:30] Brend: has joined #elixir-lang
[13:04:31] netrino__: has joined #elixir-lang
[13:05:04] lexmag: has joined #elixir-lang
[13:05:43] lexmag: has joined #elixir-lang
[13:06:42] DTZUZO: has joined #elixir-lang
[13:09:16] jegaxd26: has joined #elixir-lang
[13:14:44] tomterl: has joined #elixir-lang
[13:15:30] tallysmartins_: has joined #elixir-lang
[13:17:51] duaneb: has joined #elixir-lang
[13:21:37] lexmag: has joined #elixir-lang
[13:28:50] lexmag: has joined #elixir-lang
[13:36:23] zeeshanlakhani: has joined #elixir-lang
[13:36:51] JSharp: has joined #elixir-lang
[13:41:00] mdepolli: has joined #elixir-lang
[13:42:59] duoi: has joined #elixir-lang
[13:42:59] rvirding: has joined #elixir-lang
[13:43:31] netrino__: has joined #elixir-lang
[13:44:31] gvaughn: has joined #elixir-lang
[13:50:55] aalmazan: has joined #elixir-lang
[13:56:57] greengriminal: has joined #elixir-lang
[14:00:54] odogono: has joined #elixir-lang
[14:01:24] duaneb: has joined #elixir-lang
[14:05:33] drincruz_: has joined #elixir-lang
[14:06:47] ndee: has joined #elixir-lang
[14:09:25] hypercore: has joined #elixir-lang
[14:12:29] hypercore: guys why do i get this "constraint error when attempting to delete struct" error (https://paste.ubuntu.com/p/PJhdf5GSrq/) when i try to delete a row in my Articles table?
[14:13:25] josevalim: hypercore: what do you think it is about?
[14:14:31] hypercore: hypercore: i would guess it has something to do with ecto not knowing the correct action to take wrt tags when deleting an article
[14:14:46] hypercore: josevalim: ^
[14:15:47] hypercore: i do have an "on_replace: :delete" config set for the many_to_many line on my event schema, thought that would be enough
[14:19:11] hypercore: also tried adding foreign_key_constraint(:name) in my changeset, but no dice
[14:19:14] josevalim: things related to constraints means the error is coming from the database
[14:19:29] josevalim: the issue is that you are trying to remove a row but another table is pointing to that row
[14:19:56] josevalim: you may want to tell your database how to behave in thiss case, look at references() options in your migration
[14:21:24] harrow: has joined #elixir-lang
[14:22:32] netrino__: has joined #elixir-lang
[14:28:20] hypercore: oh ok, so in my create_articles_tags migration i would add something like 'add :tag_id, references("tags"), on_delete: :delete_all', and then whenever i delete an Article (that has a few tags), the entries in my articles_tags table would also be deleted (but not the entries in the "tags" table)?
[14:34:11] __charly__: has joined #elixir-lang
[14:34:32] hypercore: josevalim: that did the trick (and adding an on_delete option to my schema), thanks jose! just one more thing, can i modify my migration by using "modify :tag_id, references("tags"), on_delete: :delete_all" in a new migration?
[14:37:13] hypercore: oh, i didn't even need to touch the articles_tags migration apparently...
[14:37:48] hypercore: just needed a on_delete option in my Article config
[14:37:58] mdbm: has joined #elixir-lang
[14:38:01] hypercore: (just had on_replace)
[14:53:03] thread: has joined #elixir-lang
[14:56:24] hypercore: has joined #elixir-lang
[14:59:40] thread: has joined #elixir-lang
[14:59:46] netrino__: has joined #elixir-lang
[15:00:27] mdbm_: has joined #elixir-lang
[15:02:17] lexmag: has joined #elixir-lang
[15:03:03] wsieroci: has joined #elixir-lang
[15:05:58] thread: has joined #elixir-lang
[15:06:27] mdbm__: has joined #elixir-lang
[15:13:03] orbyt_: has joined #elixir-lang
[15:19:02] hypercore: has joined #elixir-lang
[15:23:53] DTZUZO: has joined #elixir-lang
[15:26:49] jeffro: has joined #elixir-lang
[15:28:42] tuacker1: has joined #elixir-lang
[15:41:06] BitBot: has joined #elixir-lang
[15:58:41] icecreamcohen: has joined #elixir-lang
[16:06:00] Salek: has joined #elixir-lang
[16:06:09] jegaxd26: has joined #elixir-lang
[16:07:06] jeanlucas_: has joined #elixir-lang
[16:10:35] jeanlucas: has joined #elixir-lang
[16:10:36] lexmag: has joined #elixir-lang
[16:27:54] hypercore: has joined #elixir-lang
[16:32:31] hypercore: has joined #elixir-lang
[16:40:41] proteusguy: has joined #elixir-lang
[16:45:05] pera: has joined #elixir-lang
[16:48:27] Sgeo__: has joined #elixir-lang
[16:48:50] odogono: has joined #elixir-lang
[16:49:04] jnoon2: has joined #elixir-lang
[16:57:20] squall: has joined #elixir-lang
[17:02:15] hypercore: should persistent sessions be reset when i restart my phoenix app?
[17:07:21] lexmag: has joined #elixir-lang
[17:08:40] jeffro: has joined #elixir-lang
[17:14:41] hypercore: also, what's the phoenix 1.4 equivalent of this? -> https://github.com/danschultzer/pow#cache-store
[17:19:59] wonko77: has joined #elixir-lang
[17:21:09] wsieroci: has joined #elixir-lang
[17:23:34] jeffro: has joined #elixir-lang
[17:29:24] tnez: has joined #elixir-lang
[17:36:38] jegaxd26: has joined #elixir-lang
[17:48:29] benwilson512: hypercore: depends on how you persist them
[17:48:41] benwilson512: anyone had an issue with link_to method: "delete" with phoenix live view?
[17:48:59] chrismccord: benwilson512 update your phoenix html
[17:49:11] chrismccord: and make sure to blow away it from node_modules and reup
[17:49:21] benwilson512: chrismccord: thanks
[17:49:39] benwilson512: chrismccord: should I be on git phoenix html?
[17:51:38] chrismccord: benwilson512 no should be fixed on hex
[17:51:46] benwilson512: chrismccord: confirmed hex works, thanks!
[17:53:49] hypercore: benwilson512: tried to follow the instructions here (https://github.com/danschultzer/pow/blob/master/lib/extensions/persistent_session/README.md), but it doesn't seem to work. e.g. when i restart my app, i have to login again
[17:54:24] hypercore: (using the non-mnesia method listed above)
[17:57:10] benwilson512: chrismccord: weird, worked locally, not working in prod, probably a prod build cache issue w/ node
[18:00:52] benwilson512: chrismccord: oh, it's a CSRF issue
[18:01:07] benwilson512: shows up in local and prod
[18:02:24] chrismccord: benwilson512 : hrm I will take a look. Can you handle the click in the LV instead?
[18:02:37] benwilson512: chrismccord: it's the logout link, so not easily
[18:02:51] benwilson512: however I can safely disable csrf for that
[18:03:15] benwilson512: if it helps, this showed up after we did the body extraction per our call the other day
[18:04:20] thurloat: has joined #elixir-lang
[18:04:54] nickjj: hypercore, depends on the use case. do you want your users to be logged out if you restart your app? i would think for most web apps / services the answer to that is no
[18:05:34] __charly__: has joined #elixir-lang
[18:05:34] hypercore: nickjj: yeah ideally they wouldn't be logged out
[18:05:39] benwilson512: nickjj hypercore using the cookie ought to work
[18:06:25] nickjj: there was a period of time where i kept getting logged out of netflix (almost every day) on my TV and i had to type a 30 char password with a remote to login, it was enough to consider cancelling my subscription
[18:07:04] nickjj: benwilson512, yeah that's where i persist mine
[18:07:08] hypercore: benwilson512: problem is i'm a bit unclear about what i need to do, i followed the instructins here (https://github.com/danschultzer/pow/blob/master/lib/extensions/persistent_session/README.md), but i'm not getting a persistent session on my dev environment
[18:07:36] hypercore: and also, i'm not sure what the phx 1.4 equivalent code of this (https://github.com/danschultzer/pow/blob/master/lib/extensions/persistent_session/README.md) is
[18:07:46] hypercore: sorry, of this (https://github.com/danschultzer/pow/blob/master/README.md#cache-store)
[18:08:04] benwilson512: hypercore: you don't want to use the cache store
[18:08:07] benwilson512: you want to use the cookie store
[18:08:20] benwilson512: phoenix version is actually irrelevant for all of this
[18:09:48] hypercore: not sure what the problem is, i've already got (https://github.com/danschultzer/pow/blob/master/README.md#phoenix-app) in my endpoint
[18:10:17] benwilson512: hypercore: sounds like you need to add it to the extensions list of pow too
[18:10:18] hypercore: and i added "plug PowPersistentSession.Plug.Cookie" to my endpoint
[18:10:36] hypercore: benwilson512: did that too (in config/config.exs)
[18:11:14] benwilson512: can you show your endpoint?
[18:12:54] hypercore: benwilson512: sure -> https://paste.ubuntu.com/p/v4r5VDnmfG/
[18:13:02] nickjj: are you visiting your site on localhost or an IP address?
[18:13:19] benwilson512: hypercore: when you have :my_app
[18:13:23] benwilson512: is that what you have literally?
[18:13:26] benwilson512: or did you swap out your app name?
[18:13:37] hypercore: benwilson512: swapped out my name
[18:15:53] ndee: has joined #elixir-lang
[18:16:53] benwilson512: hypercore: not sure sorry, I'd consider filing an issue on pow with all of the requisite code
[18:19:13] d10n-work: has joined #elixir-lang
[18:19:45] hypercore: benwilson512: no worries man, thanks anyway
[18:20:37] nickjj: probably wouldn't hurt to write / read a cookie manually to, just to make sure that's all working
[18:23:05] hypercore: nickjj: should it show up in my console under document.cookie?
[18:23:52] hypercore: at the moment all i get is "LANG=en" or something
[18:25:40] orbyt_: has joined #elixir-lang
[18:31:15] praveenperera: has joined #elixir-lang
[18:32:08] hypercore: is this necessary for persistent sessions to work? (https://github.com/danschultzer/pow/blob/master/README.md#authorization-plug)
[18:40:39] jegaxd26: has joined #elixir-lang
[18:59:01] nickjj: has joined #elixir-lang
[19:01:51] icecreamcohen: has joined #elixir-lang
[19:13:23] Sgeo_: has joined #elixir-lang
[19:17:58] Sgeo__: has joined #elixir-lang
[20:02:21] __charly__: has joined #elixir-lang
[20:06:53] davisp_: has joined #elixir-lang
[20:06:57] rvirding_: has joined #elixir-lang
[20:07:44] tnez_: has joined #elixir-lang
[20:07:49] d10n-work_: has joined #elixir-lang
[20:09:30] traxo: has joined #elixir-lang
[20:10:10] fxer_: has joined #elixir-lang
[20:10:18] uplime^: has joined #elixir-lang
[20:10:32] aither64: has joined #elixir-lang
[20:10:43] Reapster: has joined #elixir-lang
[20:10:47] praveenperera: has joined #elixir-lang
[20:10:49] Liquid_X: has joined #elixir-lang
[20:17:53] orbyt_: has joined #elixir-lang
[20:18:37] TechDragon: has joined #elixir-lang
[20:19:54] cjk101010: has joined #elixir-lang
[20:20:19] nickjj: is there any type of trick to get a radio button's label to use both the field name and value as its id?
[20:21:10] nickjj: situation is if you have 2 radio buttons for :foo , and you define them using phoenix's tags , then the label will end up being the same for both radio buttons (which is an invalid state)
[20:21:16] sgarciapdx: has joined #elixir-lang
[20:21:28] nickjj: the hack i'm doing for now is hard coding for: "foo_0" where 0 is one of the radio's values and foo_1 for the other
[20:22:37] nolan_d: has joined #elixir-lang
[20:39:04] montanonic: has joined #elixir-lang
[20:40:27] icecreamcohen: has joined #elixir-lang
[20:51:46] dimitarvp: has joined #elixir-lang
[21:11:09] helpa: has joined #elixir-lang
[21:19:56] ur5us: has joined #elixir-lang
[21:22:03] greengriminal: has joined #elixir-lang
[21:25:02] mariotomo: has joined #elixir-lang
[21:27:23] mariotomo: good day, I'm new to elixir, I was looking for a brief tutorial like the one they have at https://tutorial.djangogirls.org/en/
[21:27:58] mariotomo: I'm available for developing one, in the sense of porting that one to Elixir.
[21:28:22] mariotomo: unless it's already somewhere else
[21:30:19] jnoon2: i have a mix alias but the second task is silently just not being run. is there something obvious im missing about how these work? the alias is defined as: reset: ["do deps.get, ecto.drop, ecto.create, ecto.migrate, schema", "cmd --app subapp mix run priv/repo/seeds.exs"]. everything in the "do" all the way through schema works. then the second "cmd" one just never happens
[21:32:18] ankhers: mariotomo: Are you looking for something for Elixir, or something for Phoenix (the framework that would be most similar to django)?
[21:33:44] ankhers: jnoon2: Is there a reason you are defining it like that? Why not just ["deps.get", "ecto.drop", "ecto.create", "ecto.migrate", "schema", "cmd --app subapp mix run priv/repo/seeds.ex"]? Does that make any difference?
[21:35:02] gvaughn: has joined #elixir-lang
[21:43:49] jnoon2: Ankhers: oddly, they all run except for the last one! i tried some more stuff and it appears "schema" kills the chain. if i get rid of it, the seeds.ex one runs. but seeds.ex will stop the chain. for example i added ecto.drop at the end and that didn't happen. so some of these can break the chain it appears. i wonder what the rules are
[21:48:17] benwilson512: mariotomo: hey! I don't know of any that are as introductory as that django tutorial
[21:48:26] benwilson512: in so far as it covers internet fundamentals
[21:52:11] warmwaffles: has joined #elixir-lang
[21:55:07] jnoon2: i have a feeling the cmd --app part is doing something to the chain. my "schema" is an alias that also does a cmd --app in it. maybe it alters the scope of anything that follows
[21:55:22] drincruz_: has joined #elixir-lang
[21:56:04] greengriminal: has joined #elixir-lang
[21:56:50] slashrsm: has joined #elixir-lang
[22:02:02] mariotomo: indeed, Phoenix
[22:02:37] threadj: has joined #elixir-lang
[22:02:48] drincruz_: has joined #elixir-lang
[22:05:32] mariotomo: benwilson512, Ankhers: as I was writing, I plan spending a day or two adapting the djangogirls tutorial to Phoenix/Elixir. somewhere on github. not decided yet where. possibly under mfrasca/phoenixgirls, just to keep a clear link to the original.
[22:06:41] mariotomo: I don't think it would fit as an extra page to their tutorials, since it's not about django.
[22:19:10] icecreamcohen: has joined #elixir-lang
[22:31:48] vaer-k: has joined #elixir-lang
[22:33:53] vaer-k: has left #elixir-lang: ("WeeChat 2.4")
[22:34:45] vaer-k: has joined #elixir-lang
[22:35:21] vaer-k: has left #elixir-lang: ("WeeChat 2.4")
[22:36:32] vaer-k: has joined #elixir-lang
[22:38:48] vaer-k: has joined #elixir-lang
[22:43:27] vaer-k: has joined #elixir-lang
[22:47:30] _barcode_: has joined #elixir-lang
[22:51:23] _barcode_: hi, i am beginning with Elixir and would verify one thing: when pattern-matching a map as function parameter, it seems to me that, say: def ... (my_map = %{..pattern..}) do... is exactly the same as if I switch the sides (%{..pattern} = my_map). Or is there any difference? Thanks
[22:54:45] rawtaz: im curious too
[22:54:49] rawtaz: lets see what someone says
[22:55:30] benwilson512: rawtaz: _barcode_ there is no difference
[22:55:51] benwilson512: this is true of all pattern areas
[22:56:09] rawtaz: so there's no assignment going on, just matching?
[22:56:19] rawtaz: that would make more sense than if you read it as an assignment
[22:58:45] _barcode_: benwilson512, thanks. Honestly, what I kinda expected was that my_map = %{a: 1, b: val}, if passed %{a: 1, b: 2, c: 3}, would bind %{a: 1, b: 2) to my_map (and of course, val would be 2)
[22:59:03] benwilson512: rawtaz: matching and assignment are the same thing
[22:59:17] _barcode_: while if swapped, the my_map would indeed be entire map which was passed
[23:00:01] _barcode_: so that not only i would extract a certain value, but also part of the map itself
[23:01:21] _barcode_: in any case, it's clear now and if one person uses both ways, it's only because of inconsistency
[23:01:44] _barcode_: benwilson512, thanks ;)
[23:01:54] benwilson512: https://www.irccloud.com/pastebin/HbD1wilu/
[23:02:13] benwilson512: https://www.irccloud.com/pastebin/poJgWvAd/
[23:04:12] _barcode_: makes perfect sense thanks
[23:05:10] _barcode_: has joined #elixir-lang
[23:07:04] _barcode_: has joined #elixir-lang
[23:13:31] drincruz_: has joined #elixir-lang
[23:15:41] pera: has joined #elixir-lang
[23:15:43] duaneb: has joined #elixir-lang
[23:16:06] _barcode_: has left #elixir-lang: ("Leaving")
[23:16:42] _barcode_: has joined #elixir-lang
[23:17:58] __barcode__: has joined #elixir-lang
[23:18:24] _barcode_: has joined #elixir-lang
[23:20:51] _barcode_: has joined #elixir-lang
[23:22:01] _barcode_: has joined #elixir-lang
[23:28:36] icecreamcohen: has joined #elixir-lang
[23:30:53] nickjj: has joined #elixir-lang
[23:35:12] mariotomo: has left #elixir-lang: ("Killed buffer")
[23:51:43] gde33: has joined #elixir-lang