#elixir-lang - 19 March 2019
« Back 1 day Forward 1 day »
[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
[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
[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:46] benwilson512: there's a vscode plugin to make the keyboard shortcuts work like atom too I think
[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:06:40] ericmj: https://github.com/elixir-lang/elixir/blob/master/lib/iex/lib/iex/helpers.ex#L690
[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: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: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: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:51:35] toothfairy_: Nicd-: opened up the graphiql interface just to see if its running. Website I opened up via a domain through browser
[18:02:34] Nicd-: with the IP the HTTPS connection cannot be formed. 127.0.0.1 is just the same as localhost
[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:33] toothfairy_: Strange also that it worked before on the same machine, just made a major update to it...
[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:15:00] Nicd-: https://www.helasverigespelar.se:4443 is not responding, do you actually have something running on that port?
[18:17:15] toothfairy_: Nicd-: [info] Running GraceApiWeb.Endpoint with cowboy 2.6.1 at https://localhost:4443
[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:37:20] toothfairy_: Nicd-: found a hint in nginx conf: *83 open() "/usr/local/www/helasverigespelar/dist.graphiql" failed
[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?
[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: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: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 ;)