« Back to channel list

#elixir-lang - 19 March 2019

« Back 1 day Forward 1 day »
[00:00:10] duane: has joined #elixir-lang
[00:03:36] fantasticsid: has joined #elixir-lang
[00:14:08] orbyt_: has joined #elixir-lang
[00:19:50] NeilCarvalho: has joined #elixir-lang
[00:22:04] kasim: has joined #elixir-lang
[00:22:33] kasim: has left #elixir-lang: ()
[00:22:43] kasim: has joined #elixir-lang
[00:23:33] kasim: has left #elixir-lang: ()
[00:30:17] edmz: has joined #elixir-lang
[00:33:33] kiltzman: has joined #elixir-lang
[00:34:09] beatpanic: has joined #elixir-lang
[00:54:19] Nicd-[m]: has joined #elixir-lang
[00:54:20] Anders[m]: has joined #elixir-lang
[00:54:20] Ablu: has joined #elixir-lang
[00:54:20] dyce[m]: has joined #elixir-lang
[00:54:21] beedaddy[m]: has joined #elixir-lang
[00:54:22] MartinFrost[m]: has joined #elixir-lang
[00:54:23] wilo[m]: has joined #elixir-lang
[00:54:23] rassilon[m]: has joined #elixir-lang
[00:54:23] ejpcmac: has joined #elixir-lang
[00:54:23] tcit: has joined #elixir-lang
[00:54:23] Hawkheart[m]: has joined #elixir-lang
[00:54:26] is0x3F: has joined #elixir-lang
[00:54:26] borislehashoir[m: has joined #elixir-lang
[00:54:26] Phillipp[m]: has joined #elixir-lang
[00:54:28] mindflayer[m]: has joined #elixir-lang
[00:54:29] tkarstens[m]: has joined #elixir-lang
[00:54:29] nolan_d: has joined #elixir-lang
[00:54:29] Bla[m]: has joined #elixir-lang
[00:54:29] krigare[m]: has joined #elixir-lang
[00:54:30] kamidev[m]: has joined #elixir-lang
[00:54:30] chronostamp: has joined #elixir-lang
[00:54:30] meatcar: has joined #elixir-lang
[00:54:30] uhoreg: has joined #elixir-lang
[00:59:53] orbyt_: has joined #elixir-lang
[01:07:55] carldd: has joined #elixir-lang
[02:13:22] NightMonkey: has joined #elixir-lang
[02:19:01] Devalo: has joined #elixir-lang
[02:26:33] drincruz: has joined #elixir-lang
[02:33:44] tomterl: has joined #elixir-lang
[02:44:24] kronicdeth: has joined #elixir-lang
[03:03:51] Saukk: has joined #elixir-lang
[03:07:09] nickjj: has joined #elixir-lang
[03:07:15] drincruz: has joined #elixir-lang
[03:16:48] orbyt_: has joined #elixir-lang
[03:22:24] carldd: has joined #elixir-lang
[03:26:13] Guest51817: has joined #elixir-lang
[03:29:21] sevenseacat: has joined #elixir-lang
[03:38:52] ariedler_: has joined #elixir-lang
[04:01:40] mbuf: has joined #elixir-lang
[04:07:24] kronicdeth: has joined #elixir-lang
[04:49:12] Notimik: has joined #elixir-lang
[04:53:16] cschneid: has joined #elixir-lang
[05:31:05] cschneid: has joined #elixir-lang
[05:31:06] craigp_: has joined #elixir-lang
[05:39:25] kronicdeth: has joined #elixir-lang
[05:41:03] nighty-: has joined #elixir-lang
[06:22:49] kiltzman: has joined #elixir-lang
[06:24:22] Devalo: has joined #elixir-lang
[06:38:14] cschneid: has joined #elixir-lang
[06:43:33] ur5us: has joined #elixir-lang
[06:54:49] DarkSeid: has joined #elixir-lang
[06:59:43] Licenser: has joined #elixir-lang
[07:01:08] bjorngi: has joined #elixir-lang
[07:04:02] Notimik: has joined #elixir-lang
[07:09:19] lao-tzu: has joined #elixir-lang
[07:31:36] toothfairy__: has joined #elixir-lang
[07:39:23] kapil____: has joined #elixir-lang
[07:40:18] ariedler_: has joined #elixir-lang
[07:47:37] cschneid: has joined #elixir-lang
[07:47:47] zigpaw: has joined #elixir-lang
[07:48:45] za1b1tsu: has joined #elixir-lang
[07:50:19] za1b1tsu: I am using postgresql, and in a table I got a jsonb field where I want to put ids from another table
[07:50:57] za1b1tsu: how would I declare this with ecto schema?
[07:51:22] za1b1tsu: I am looking at embeds_many but but wants a map?!
[08:01:35] dysfun: i didn't answer you yesterday because i didnt know, but i'm presuming since noone else has, it's not possible
[08:02:53] dysfun: you can query, read the field and then search in a new query from those. not ideal, i know
[08:09:04] netrino_: has joined #elixir-lang
[08:14:25] PragTob: has joined #elixir-lang
[08:21:53] hypercore: has joined #elixir-lang
[08:30:33] inhortte: has joined #elixir-lang
[08:32:45] neozor: has joined #elixir-lang
[08:37:40] squall: has joined #elixir-lang
[08:38:10] za1b1tsu: I did not ask this yesterday :D
[08:38:20] za1b1tsu: but thank you :D
[08:42:46] dysfun: oh, then someone else did
[08:43:13] dysfun: but yeah, embeds take a schema
[08:43:21] dysfun: which kinda implies maps
[08:44:12] Devalo: has joined #elixir-lang
[08:44:26] DarkSeid: has joined #elixir-lang
[08:44:29] lexmag: has joined #elixir-lang
[08:44:57] toothfairy__: has joined #elixir-lang
[08:53:55] cschneid: has joined #elixir-lang
[08:55:19] wonko7: has joined #elixir-lang
[08:59:27] SoniEx2: has joined #elixir-lang
[09:10:10] lexmag_: has joined #elixir-lang
[09:10:45] psy: has joined #elixir-lang
[09:17:02] lexmag: has joined #elixir-lang
[09:32:25] toothfairy__: has joined #elixir-lang
[09:33:36] mhinz: has joined #elixir-lang
[09:48:28] DarkSeid: has joined #elixir-lang
[09:56:11] cschneid: has joined #elixir-lang
[10:08:45] irclogger_com: has joined #elixir-lang
[10:44:58] dps: has joined #elixir-lang
[11:01:07] cschneid: has joined #elixir-lang
[11:02:14] kbkeller: has joined #elixir-lang
[11:07:18] wonko7: has joined #elixir-lang
[11:07:29] Gazler: has joined #elixir-lang
[11:12:40] tnez: has joined #elixir-lang
[11:17:44] toothfairy__: has joined #elixir-lang
[11:41:48] ariedler_: has joined #elixir-lang
[11:43:22] duane: has joined #elixir-lang
[11:44:49] DarkSeid: has joined #elixir-lang
[11:57:28] DarkSeid: has joined #elixir-lang
[11:59:02] 7YUAA8Y22: has joined #elixir-lang
[12:02:48] wonko7: has joined #elixir-lang
[12:03:18] Notimik: has joined #elixir-lang
[12:03:24] za1b1tsu: has joined #elixir-lang
[12:04:11] CapNemo: has joined #elixir-lang
[12:04:26] craigp_: has joined #elixir-lang
[12:09:12] duane: has joined #elixir-lang
[12:09:58] cschneid: has joined #elixir-lang
[12:13:03] verto: has joined #elixir-lang
[12:17:47] ailo: has joined #elixir-lang
[12:24:48] notzmv: has joined #elixir-lang
[12:30:08] wormwood: has joined #elixir-lang
[12:35:28] knack: has joined #elixir-lang
[12:36:37] DeadTrickster_: has joined #elixir-lang
[12:39:48] hypercore: has joined #elixir-lang
[12:39:57] DeadTrickster__: has joined #elixir-lang
[12:42:11] ailo: What is the best ide for elixir? I'm currently using Atom with atom-elixir package (and some others), but that package is outdated, broken and not maintained.
[12:42:31] benwilson512: ailo: I use vscode with its elixir plugin, works very very well
[12:42:46] benwilson512: there's a vscode plugin to make the keyboard shortcuts work like atom too I think
[12:43:15] omg_it_is_DeadTr: has joined #elixir-lang
[12:43:41] work_: has joined #elixir-lang
[12:47:38] ailo: ok, thanks, will check it
[13:01:05] ariedler_: has joined #elixir-lang
[13:03:02] mk[]: I'm trying to get all mailbox messages in a phoenix test, but it says that flush/0 is undefined
[13:03:14] mk[]: receive works
[13:03:55] ericmj: flush/0 is only available in the shell
[13:05:52] mk[]: receive only gives me 1 message, how do I get them all?
[13:06:35] mk[]: but then it'll hang forever
[13:06:40] ericmj: https://github.com/elixir-lang/elixir/blob/master/lib/iex/lib/iex/helpers.ex#L690
[13:06:42] dysfun: nah, timeout
[13:07:03] ericmj: add `after 0 ->`, it will match if there are no more messages
[13:07:27] mk[]: thanks, let me try that
[13:07:41] dysfun: 0 meaning "don't wait if there are no more messages"
[13:11:11] ariedler_: has joined #elixir-lang
[13:11:53] lauromoura_: has joined #elixir-lang
[13:14:36] cschneid: has joined #elixir-lang
[13:19:49] lemald: has joined #elixir-lang
[13:20:34] DeadTrickster: has joined #elixir-lang
[13:27:35] Hauleth: has joined #elixir-lang
[13:29:52] DeadTrickster_: has joined #elixir-lang
[13:35:18] DarkSeid: has joined #elixir-lang
[13:47:31] ariedler_: Morning / Evening / Afternoon Everyone!
[13:47:46] dysfun: appropriate time of day to you as well
[13:47:49] Saukk: has joined #elixir-lang
[13:49:56] cschneid: has joined #elixir-lang
[13:56:35] danecando: has joined #elixir-lang
[14:01:12] PragTob: has joined #elixir-lang
[14:22:23] dps: has joined #elixir-lang
[14:24:55] Sgeo__: has joined #elixir-lang
[14:28:13] Sgeo__: has joined #elixir-lang
[14:33:47] Nicd-: ariedler_: thanks for being timezone inclusive
[14:34:22] nox: Nicd-: Not enough, it's yesterday here
[14:37:01] ariedler_: has joined #elixir-lang
[14:38:19] ariedler_: has joined #elixir-lang
[14:38:42] zakora___: has joined #elixir-lang
[14:40:44] cschneid: has joined #elixir-lang
[14:40:50] ariedler_: is it yesterdays tomorrow ?
[14:49:22] 92AABQ7CI: has joined #elixir-lang
[14:49:28] haste: http://www.total-knowledge.com/~ilya/mips/ugt.html is the one true way
[14:53:54] zakora___: Any good resources out there on Ecto associations?
[14:55:20] zakora___: https://hexdocs.pm/ecto/associations.html is gone
[14:59:08] cschneid: has joined #elixir-lang
[14:59:46] psy: has joined #elixir-lang
[15:03:56] warmwaffles: has joined #elixir-lang
[15:04:37] kansi: has joined #elixir-lang
[15:23:18] bingobingolotto: has joined #elixir-lang
[15:24:11] orbyt_: has joined #elixir-lang
[15:29:15] ariedler_: has joined #elixir-lang
[15:30:24] neozor: has joined #elixir-lang
[15:30:38] tobias: has joined #elixir-lang
[15:32:30] neozor: has joined #elixir-lang
[15:38:30] wormwood: has joined #elixir-lang
[15:38:37] bingobingolotto: has joined #elixir-lang
[15:52:26] za1b1tsu: has joined #elixir-lang
[16:08:01] toothfai1y__: has joined #elixir-lang
[16:18:50] orbyt_: has joined #elixir-lang
[16:22:41] ariedler_: has joined #elixir-lang
[16:28:42] orbyt_: has joined #elixir-lang
[16:32:04] bingobingolotto: has joined #elixir-lang
[16:43:35] Devalo: has joined #elixir-lang
[16:48:07] torwegia: has joined #elixir-lang
[16:49:58] Devalo: has joined #elixir-lang
[16:53:48] manveru: is there documentation somewhere about syntax like ~r or ~S?
[16:54:00] Nicd-: they are sigils
[16:54:16] Nicd-: https://elixir-lang.org/getting-started/sigils.html
[16:54:17] manveru: ah, thanks, found it :)
[16:54:48] laut: has joined #elixir-lang
[16:56:16] charh: has joined #elixir-lang
[17:01:39] rht: has joined #elixir-lang
[17:03:10] rht: has left #elixir-lang: ()
[17:25:06] Devalo: has joined #elixir-lang
[17:26:05] OliverMT: does anyone know if its possible to connect a remote iex shell over ssh protocol to the erlang ssh daemon?
[17:26:13] OliverMT: to a running release
[17:26:27] OliverMT: I have some port constraints
[17:26:28] ariedler_: has joined #elixir-lang
[17:37:45] toothfairy_: has joined #elixir-lang
[17:39:01] toothfairy_: Any Angel out there? Stuck trying to get Apollo (Vue) to communicate with my Phoenix/Absinthe Graphql setup on production machine (works locally) ... Error and code> https://dpaste.de/2bnt
[17:40:19] Nicd-: the server is refusing the connection
[17:41:11] Nicd-: is any request working?
[17:42:21] toothfairy_: Nicd-: there is not any status code, just "failed" in console
[17:42:43] Nicd-: that's because there was no response
[17:43:04] Nicd-: the connection was refused, thus no request was even made
[17:43:48] toothfairy_: its strange, phoenix is running and not showing any errors: info] Running GraceApiWeb.Endpoint with cowboy 2.6.1 at https://localhost:4443
[17:44:41] toothfairy_: and if I open that up in links, its running
[17:45:03] toothfairy_: Nicd-: What would you do?
[17:46:10] Nicd-: "localhost" doesn't sound like production, or is it reverse proxied?
[17:49:02] toothfairy_: Nicd-: when I start the phoenix server in either prod or dev it says: https://localhost:4443 ... However I have also tried uri: 'https://127.0.0.1:4443/graphiql', in the apollo.js file
[17:49:29] toothfairy_: Vue and Phoenix runs on same server
[17:49:38] Nicd-: but your browser is not on that server
[17:50:07] toothfairy_: Nicd-: I ssh'd in and opened up localhost with links
[17:50:39] Nicd-: links runs JS?
[17:51:03] Nicd-: I'd try to open the actual domain where the site is accessible
[17:51:35] toothfairy_: Nicd-: opened up the graphiql interface just to see if its running. Website I opened up via a domain through browser
[17:51:53] toothfairy_: Nicd-: helasverigespelar.se
[17:52:11] Nicd-: that domain is not resolving for me
[17:52:41] Nicd-: it won't matter because the domain does not exist
[17:52:51] toothfairy_: https://www.helasverigespelar.se
[17:53:32] Nicd-: the site is trying to access localhost
[17:53:46] Nicd-: it should try to access https://www.helasverigespelar.se:4443 probably
[17:54:00] toothfairy_: even if its on same server?
[17:54:16] Nicd-: yes because localhost will refer to the user's own machine
[17:54:26] Nicd-: hosts are resolved by the client
[17:59:20] Devalo: has joined #elixir-lang
[17:59:40] wsieroci: has joined #elixir-lang
[18:00:29] toothfairy_: Nicd-: I tried it, and now trying 127.0.0.1 again, but still same for both
[18:00:54] toothfairy_: will try the ip
[18:01:49] wonko7: has joined #elixir-lang
[18:02:13] Nicd-: the domain is the only correct solution
[18:02:32] toothfairy_: Ok, will change it back to it then
[18:02:34] Nicd-: with the IP the HTTPS connection cannot be formed. 127.0.0.1 is just the same as localhost
[18:02:36] beedaddy[m]: has left #elixir-lang: ("User left")
[18:04:18] toothfairy_: Nicd-: what confused me a little bit is that i have not configured the domain for phoenix, and nginx only for Vue.
[18:05:07] bingobingolotto: has joined #elixir-lang
[18:05:33] toothfairy_: Strange also that it worked before on the same machine, just made a major update to it...
[18:07:40] orbyt_: has joined #elixir-lang
[18:08:08] Nicd-: you are missing the www. on the graphiql address
[18:08:20] Nicd-: (btw you should really add a redirect from domain.se to www.domain.se)
[18:12:44] toothfairy_: Nicd-: www is included now, however I am not quite sure how that could work when phoenix is not listening on the public ip. (phoenix is just running its standard server process, Vue, phoenix and Nginx is on same server)
[18:13:20] Nicd-: what do you have nginx for if you have phoenix directly there?
[18:13:48] Nicd-: either you reverse proxy phoenix through nginx or you don't use nginx
[18:15:00] Nicd-: https://www.helasverigespelar.se:4443 is not responding, do you actually have something running on that port?
[18:15:39] toothfairy_: Nicd-: I use nginx to serve Vue.. Phoenix I use for graphql only
[18:16:08] toothfairy_: but before it worked on same server, same setup
[18:16:14] Nicd-: so phoenix is running on port 4443? did you bind phoenix to 0.0.0.0?
[18:17:15] toothfairy_: Nicd-: [info] Running GraceApiWeb.Endpoint with cowboy 2.6.1 at https://localhost:4443
[18:17:35] Nicd-: that might only listen to localhost
[18:19:17] toothfairy_: I am quite sure I used localhost before when it worked, from Vue
[18:19:39] danecando: has joined #elixir-lang
[18:19:44] Nicd-: maybe try https://stackoverflow.com/a/37777279/3533441
[18:20:04] Nicd-: it will not work in production because localhost will refer to the client's own machine
[18:22:03] toothfairy_: strange is it worked before in production on same machine. Tnx will try that
[18:23:14] toothfairy_: then I made a small update and replaced the database... Had similar problem first time as well (ERR Connection) but solved it with the cors.plug
[18:28:34] DarkSeid: has joined #elixir-lang
[18:31:11] toothfairy_: Nicd-: added 0.0.0.0 and updated apollo but still same :/
[18:32:09] kiltzman: has joined #elixir-lang
[18:36:53] jeffro: has joined #elixir-lang
[18:37:20] toothfairy_: Nicd-: found a hint in nginx conf: *83 open() "/usr/local/www/helasverigespelar/dist.graphiql" failed
[18:39:42] kapil____: has joined #elixir-lang
[18:41:09] toothfairy_: appreciate your effort Nicd-, will keep on trying :)
[18:41:43] Nicd-: Yeah I have to go
[18:43:21] assemblyman: has joined #elixir-lang
[18:43:31] neozor: has joined #elixir-lang
[18:49:46] squall: has joined #elixir-lang
[18:58:29] Fire-Dragon-DoL: has joined #elixir-lang
[19:03:32] neozor: has joined #elixir-lang
[19:04:09] Devalo: has joined #elixir-lang
[19:08:47] neozor: has joined #elixir-lang
[19:13:30] ariedler_: TIL you can do this: 1 |> (&(&1 + 1)).() ... although you probably shouldn't
[19:17:28] wsieroci: has joined #elixir-lang
[19:28:55] Devalo: has joined #elixir-lang
[19:29:16] kiltzman: has joined #elixir-lang
[19:34:29] jeffro: has joined #elixir-lang
[19:41:21] Devalo: has joined #elixir-lang
[19:51:46] PragTob: has joined #elixir-lang
[19:55:36] jeffro: has joined #elixir-lang
[19:58:53] ur5us: has joined #elixir-lang
[20:00:24] Devalo: has joined #elixir-lang
[20:08:33] lexmag: has joined #elixir-lang
[20:18:07] netrino: has joined #elixir-lang
[20:23:59] Devalo: has joined #elixir-lang
[20:24:48] Devalo: has joined #elixir-lang
[20:25:39] dysfun: yeah, don't do that
[20:27:34] toothfairy_: Nicd-: funny, works with localhost now :)
[20:29:12] neozor: has joined #elixir-lang
[20:30:33] ahovgaard: has joined #elixir-lang
[20:32:59] Devalo: has joined #elixir-lang
[20:33:23] Phylock: has joined #elixir-lang
[20:34:33] ahovgaard: Hi. I'm looking for information on parsing ASN.1 UTCTime and GeneralizedTime values using Elixir/Erlang. The documentation on this is pretty limited. Can anyone provide some suggestions?
[20:40:14] Nicd-: toothfairy_: did you test with a browser running on the server itself?
[20:44:22] Devalo: has joined #elixir-lang
[20:49:50] Devalo: has joined #elixir-lang
[21:06:29] Net: ahovgaard: Timex
[21:07:38] ahovgaard: Net: Yes I say that it has some support, but I'm trying to avoid including extra libraries and I was hoping to do it with plain Erlang.
[21:10:03] Nicd-: you shouldn't attempt to write your own buggy code for this
[21:11:26] ahovgaard: Isn't it weird that Erlang has built-in certificate parsing, but you have to deal with the ASN.1 types yourself?
[21:12:45] ahovgaard: There is some built-in asn1 modules that you can use to generate decode/encode functions given some ASN.1 specification file. But how about just decoding a standard ASN.1 type...
[21:12:45] markh: has joined #elixir-lang
[21:14:53] ariedler_: has joined #elixir-lang
[21:29:02] starbelly: There's lots of weird things about erlang and the stdlib :) There's usually history... I'd bring this up on the mailing list . Also, https://github.com/voltone/x509
[21:35:11] starbelly: > Certificates were originally defined by ITU (CCITT) and the latest definitions are described in X.509, but those definitions are (as always) not working.
[21:35:40] starbelly: ahovgaard: Sounds like you could simply expose a function in the ssl module, would make a good PR ;)
[21:39:27] ahovgaard: starbelly: Thanks. I'll consider bringing it up on the mailing list.
[21:39:47] __charly__: has joined #elixir-lang
[21:50:32] jeffro: has joined #elixir-lang
[21:59:56] NeilCarvalho: has joined #elixir-lang
[22:02:16] griffinbyatt: has joined #elixir-lang
[22:05:04] jeffro: has joined #elixir-lang
[22:15:25] ariedler_: has joined #elixir-lang
[22:16:35] duane: has joined #elixir-lang
[22:21:47] jeffro: has joined #elixir-lang
[22:23:46] lao-tzu: has joined #elixir-lang
[22:58:58] jeffro: has joined #elixir-lang
[23:08:37] griffinbyatt: has joined #elixir-lang
[23:22:37] jeffro: has joined #elixir-lang
[23:38:34] jeffro: has joined #elixir-lang
[23:47:15] lauromoura: has joined #elixir-lang
[23:51:07] danecando: has joined #elixir-lang
[23:54:03] jeffro: has joined #elixir-lang
[23:54:44] nighty-: has joined #elixir-lang