« Back to channel list

#elixir-lang - 01 May 2019

« Back 1 day Forward 1 day »
[00:06:22] starbelly: I do think there should be an option for this. I'm surprised there isn't, but not completely because this is what people want most of the time.... still, there's enough people that don't want it, to warrant a PR. And I do believe that's all that's ever prevented from said option being in place, no one has ever done a PR.
[00:07:24] also_uplime: hm, I can do a PR for that. I assumed it was shot down for an esoteric reason (like ctrl+d for exiting iex)
[00:07:38] starbelly: Well, it would not be a PR to iex
[00:07:43] starbelly: it would be a PR to erlang/otp
[00:08:03] also_uplime: the ctrl+d thing was also because of erlang, is what I meant
[00:08:38] starbelly: You mean to make ctrl-d exit as opposed to ctrl-c?
[00:09:05] starbelly: Yeah, I mean, I can't think of a good reason to shoot that down, other than erlang shell is a bit complex.
[00:09:39] also_uplime: something about how erlang interprets signals (or doesn't have signals) in the lower shell, or something like that
[00:09:43] also_uplime: went above my head tbh
[00:10:05] starbelly: That makes sense... I'd have to look into it.
[00:10:37] starbelly: But yeah, if you have doubts, propose the idea on the erlang mailing list
[00:10:48] also_uplime: sounds good, will do
[00:13:51] starbelly: https://ferd.ca/repl-a-bit-more-and-less-than-that.html
[00:19:28] sparogy: has joined #elixir-lang
[00:35:03] bnasty: has joined #elixir-lang
[00:45:42] ariedler: starbelly: everytime I see your name I think care bears instead of dr seuss
[00:46:48] starbelly: ariedler: Works for me! 👍
[00:53:50] starbelly: ACTION likes care bears
[00:59:12] jimmyrcom: has joined #elixir-lang
[01:00:46] craigp: has joined #elixir-lang
[01:06:38] carldd: has joined #elixir-lang
[01:21:32] socket-guy: has joined #elixir-lang
[01:25:14] greengriminal: has joined #elixir-lang
[01:28:11] MuffinPimp: has joined #elixir-lang
[01:29:45] orbyt_: has joined #elixir-lang
[01:39:34] socket-guy: I have a rather unusual question. Perhaps someone with experience with binary data, or Pheonix channels, could help me out. I have a channel that a javascript client is connecting to, and it is pushing a message with a payload containing a binary string of byte-length characters across this channel. The pushed message is received, but the payload of bytes is approximately 1.5x the size of the original payload, and the bytes t
[01:40:28] chrismccord: socket-guy binary data is supported, but you need to implement your own serializer. Have you done so?
[01:40:35] socket-guy: I will provide an example of the transformation that is occuring: These 8 bytes are sent << 255, 216, 255, 226, 2, 28, 73, 67 >> but what appears to have been received is << 195, 191, 195, 152, 195, 191, 195, 162 >>.
[01:41:03] socket-guy: Oh hello Chris. No I have not implemented my own serializer. Thanks for the direction.
[01:42:49] jegaxd26: has joined #elixir-lang
[01:48:04] jmcgnh: has joined #elixir-lang
[01:55:56] mog: has joined #elixir-lang
[02:00:09] also_uplime: has joined #elixir-lang
[02:01:27] tomterl: has joined #elixir-lang
[02:18:40] sevenseacat: has joined #elixir-lang
[02:22:24] craigp: has joined #elixir-lang
[02:23:08] jegaxd26: has joined #elixir-lang
[02:24:04] ariedler: has joined #elixir-lang
[02:34:33] conceivably: has joined #elixir-lang
[02:46:41] greengriminal: has joined #elixir-lang
[02:49:46] sparogy: has joined #elixir-lang
[02:55:18] jmcgnh: has joined #elixir-lang
[03:08:40] jmcgnh: has joined #elixir-lang
[03:09:06] Siyo: has joined #elixir-lang
[03:09:06] Siyo: has joined #elixir-lang
[03:19:56] carldd: has joined #elixir-lang
[03:20:18] uranoss: has joined #elixir-lang
[03:24:58] wagnerst: has joined #elixir-lang
[03:41:45] duaneb: has joined #elixir-lang
[04:06:33] mdbm__: has joined #elixir-lang
[04:06:50] also_uplime: has joined #elixir-lang
[04:29:56] Avinash: has joined #elixir-lang
[04:49:53] Sentreen: has joined #elixir-lang
[04:56:15] gvaughn: has joined #elixir-lang
[05:15:15] Guest42: has joined #elixir-lang
[05:21:05] sparogy: has joined #elixir-lang
[05:21:22] raindrop: has joined #elixir-lang
[05:22:30] wsieroci: has joined #elixir-lang
[05:25:32] voltone: has joined #elixir-lang
[05:28:42] mdbm: has joined #elixir-lang
[05:51:05] Avinash: has joined #elixir-lang
[05:51:13] wsieroci_: has joined #elixir-lang
[05:51:56] blahdodo: has joined #elixir-lang
[05:52:45] mdbm_: has joined #elixir-lang
[06:00:23] gvaughn: has joined #elixir-lang
[06:25:08] ariedler: has joined #elixir-lang
[06:30:19] jegaxd26: has joined #elixir-lang
[06:31:36] Phylock: has joined #elixir-lang
[06:36:29] medzin: has joined #elixir-lang
[06:44:40] brandfilt: has joined #elixir-lang
[06:48:12] lexmag: has joined #elixir-lang
[06:51:21] lexmag: has joined #elixir-lang
[06:52:34] asabil: has joined #elixir-lang
[07:14:27] gvaughn: has joined #elixir-lang
[07:15:04] squall: has joined #elixir-lang
[07:26:08] lexmag: has joined #elixir-lang
[07:29:10] odogono: has joined #elixir-lang
[07:45:45] wsieroci: has joined #elixir-lang
[07:50:16] sparogy: has joined #elixir-lang
[07:52:09] gvaughn: has joined #elixir-lang
[07:52:14] odogono_: has joined #elixir-lang
[07:56:56] brandfilt: has joined #elixir-lang
[07:58:05] odogono: has joined #elixir-lang
[08:11:04] Lyfe: has joined #elixir-lang
[08:14:05] PragTob: has joined #elixir-lang
[08:26:17] ariedler: has joined #elixir-lang
[08:27:30] DeadTrickster: has joined #elixir-lang
[08:42:10] medzin: has joined #elixir-lang
[08:58:56] gvaughn: has joined #elixir-lang
[09:03:59] ur5us: has joined #elixir-lang
[09:06:14] lexmag: has joined #elixir-lang
[10:07:26] gvaughn: has joined #elixir-lang
[10:20:15] sparogy: has joined #elixir-lang
[10:29:15] voltone: has joined #elixir-lang
[10:30:02] jegaxd26: has joined #elixir-lang
[10:35:11] Sgeo__: has joined #elixir-lang
[10:35:31] griffinbyatt: has joined #elixir-lang
[10:36:04] griffinbyatt: has joined #elixir-lang
[10:36:19] asabil: has joined #elixir-lang
[10:37:19] isHavvy: has joined #elixir-lang
[10:37:46] craigp: has joined #elixir-lang
[10:43:46] voltone: has joined #elixir-lang
[10:55:08] ariedler: has joined #elixir-lang
[10:56:21] asabil: has joined #elixir-lang
[11:05:08] jegaxd26: has joined #elixir-lang
[11:16:25] gvaughn: has joined #elixir-lang
[11:22:55] Guest42: has joined #elixir-lang
[11:24:58] kyrylo: has joined #elixir-lang
[11:25:28] Guest42: has joined #elixir-lang
[11:30:37] wsieroci: has joined #elixir-lang
[11:45:35] netrino: has joined #elixir-lang
[11:54:18] asabil: has joined #elixir-lang
[12:20:40] Sgeo__: has joined #elixir-lang
[12:37:29] duaneb: has joined #elixir-lang
[12:39:06] dysfun: can i make mix compile erlang files that aren't *.erl?
[12:42:34] paxis: has joined #elixir-lang
[12:46:12] sparogy: has joined #elixir-lang
[12:58:21] blahdodo: has joined #elixir-lang
[12:58:51] Saukk: has joined #elixir-lang
[12:59:36] aither: has joined #elixir-lang
[13:07:51] gvaughn: has joined #elixir-lang
[13:12:27] either|or: has joined #elixir-lang
[13:32:45] lexmag: has joined #elixir-lang
[13:44:46] gvaughn: has joined #elixir-lang
[13:50:12] dysfun: hmm, iex -S mix doesn't seem to automatically load files compiled with erlc. how can i make it do that?
[13:51:00] mahmudov: has joined #elixir-lang
[13:59:04] drincruz: has joined #elixir-lang
[14:00:57] subsonik: has joined #elixir-lang
[14:07:49] duaneb: has joined #elixir-lang
[14:24:52] asabil: has joined #elixir-lang
[14:25:18] jegaxd26: has joined #elixir-lang
[14:27:14] starbelly: dysfun: `mix help compile.erlang`
[14:27:51] starbelly: I usually just make a src dir, and mix takes care of the rest, but as you stated, these are files not ending in .erl, or already beam files
[14:28:04] starbelly: https://hexdocs.pm/mix/Mix.Tasks.Compile.html
[14:28:15] dysfun: i have looked through all of these :/
[14:28:28] dysfun: and indeed, i've gotten the erlang to compile correctly with compile.erlang
[14:28:51] dysfun: but i don't know why it isn't loading the beam files
[14:29:09] starbelly: so, I know this much ... mkdir src, put erl files in there, mix will compile and load these.
[14:29:27] starbelly: but it's going to be path options, I believe
[14:29:39] dysfun: my suspicion is that while it seems to find the erl files in a nested tree, it's ignoring ones that weren't toplevel
[14:29:51] starbelly: ACTION tries to replicate
[14:31:22] dysfun: https://gist.github.com/jjl/23b6e91ed28619e44abdb47d7ec3cbc9
[14:31:39] dysfun: i've got it .erl files now
[14:32:09] dysfun: but output is a a directory of directories which contain erlang sources
[14:34:33] tnez: has joined #elixir-lang
[14:36:44] starbelly: Yeah that worked for me
[14:37:43] starbelly: Where in `output` I have a file that consists of
[14:37:53] starbelly: https://www.irccloud.com/pastebin/8ntcqr0S/
[14:38:12] starbelly: which is named foo.erl
[14:38:34] dysfun: okay, if i File.ls!() in my erlc_sources, it picks it up
[14:38:37] dysfun: looks like i was right
[14:42:37] greengriminal: has joined #elixir-lang
[14:47:58] aalmazan: has joined #elixir-lang
[14:55:52] dysfun: i'm not sure where the bug is though
[15:02:52] mdbm__: has joined #elixir-lang
[15:13:48] mdbm__: has joined #elixir-lang
[15:25:20] lexmag: has joined #elixir-lang
[15:34:33] lexmag: has joined #elixir-lang
[15:38:52] asabil: has joined #elixir-lang
[15:41:48] PragTob: has joined #elixir-lang
[15:41:55] icecreamcohen: has joined #elixir-lang
[15:43:02] lexmag_: has joined #elixir-lang
[15:55:46] pera: has joined #elixir-lang
[16:03:38] Havvy: has joined #elixir-lang
[16:04:52] lexmag: has joined #elixir-lang
[16:09:39] brandfilt: has joined #elixir-lang
[16:11:42] tpl_: has joined #elixir-lang
[16:44:34] serafeim: has joined #elixir-lang
[16:44:55] serafeim: i've got the following snippet in an eex template: <%= @authority.users |> Enum.map(& "#{&1.name}") |> Enum.join("<br />") %>
[16:45:39] serafeim: this outputs a literal <br /> (i.e &lt;br /&gt;) between my entries... how can I mark it as "safe" ?
[16:57:38] serafeim: has joined #elixir-lang
[17:03:23] tynanbe: has joined #elixir-lang
[17:07:48] jnoon2: has joined #elixir-lang
[17:09:22] jnoon2: has joined #elixir-lang
[17:14:34] serafeim_: has joined #elixir-lang
[17:22:17] andersju: serafeim_: haven't touched eex in a while but iirc you can pipe it through raw() if you're sure it's fine. but how about something like <%= for user <- @authority.users do %> <%= user.name %><br /> <% end %>
[17:36:26] FatalNIX: Hm. Anyone ever use exabnf?
[17:42:45] serafeim_: andersju, yes it works with the for thanks
[17:45:20] asabil: has joined #elixir-lang
[17:46:08] serafeim_: let's say that I want a special behavior on the 1st or the last element of the for loop. is there a way to find them ?
[17:51:38] jeffweiss: has joined #elixir-lang
[17:52:20] thomasross: has joined #elixir-lang
[17:56:17] lexmag: has joined #elixir-lang
[18:02:08] FatalNIX: Maybe I'll drink a beer
[18:02:14] FatalNIX: see if if it gives me superhuman elixir powers
[18:02:15] wonko77: has joined #elixir-lang
[18:24:07] serafeim__: has joined #elixir-lang
[18:32:44] asabil: has joined #elixir-lang
[18:33:12] serafeim_: has joined #elixir-lang
[18:56:33] lexmag: has joined #elixir-lang
[19:18:13] dysfun: ACTION raises mysterious mixture of booze to Fatalnix 
[19:21:12] lexmag_: has joined #elixir-lang
[19:30:13] squall: has joined #elixir-lang
[19:33:02] lexmag: has joined #elixir-lang
[19:40:55] also_uplime: has joined #elixir-lang
[20:04:28] jnoon21: has joined #elixir-lang
[20:16:57] jnoon2: has joined #elixir-lang
[20:22:36] Jetimon: has joined #elixir-lang
[20:25:02] icecreamcohen: has joined #elixir-lang
[20:27:46] oldman: has joined #elixir-lang
[20:38:19] serafeim_: let's say that I want a special behavior on the 1st or the last element of the for loop. is there a way to find them ? i.e in for n <- [1, 2, 3, 4], do: n I want to output something else instead of 1 or 4.
[20:44:21] notzmv: has joined #elixir-lang
[20:46:30] tnez: has joined #elixir-lang
[20:48:43] helmut_1: has joined #elixir-lang
[20:50:27] ur5us: has joined #elixir-lang
[20:50:30] helmut_1: has left #elixir-lang: ()
[20:52:08] wagnerst: has joined #elixir-lang
[20:53:00] tpl_: has joined #elixir-lang
[20:55:33] andersju: serafeim_: for {n, index} <- Enum.with_index([1, 2, 3, 4]), do: n # check value of index
[20:57:18] serafeim_: andersju, thanks! that's what I needed :) it's similar to python's enumerate
[21:07:04] meimeix: has joined #elixir-lang
[21:14:46] serafeim: has joined #elixir-lang
[21:23:18] kyrylo_: has joined #elixir-lang
[21:23:48] jnoon2: has joined #elixir-lang
[21:26:54] jnoon2: ive surely messed something up, but i have lib/my_project/file1.ex with references MyProject.Foo.Bar.something/3, which is defined in lib/my_project/foo/bar.ex. For some reason its telling me MyProject.Foo.Bar.something/3 is "undefined or private". i dont think its finding/compiling bar.ex. its allowed to be in a subdir right?
[21:27:51] griffinbyatt: And bar.ex has "defmodule MyProject.Foo.Bar"?
[21:28:41] jnoon2: yes exactly, checked for typos, copy pasted, even avoided alias to make sure its exact
[21:29:51] griffinbyatt: Is the code hosted anywhere?
[21:30:31] jnoon2: no sorry just local/work :/ ill keep fiddling. im sure its something ive done
[21:35:31] jnoon2: griffinbyatt: as expected, something i did! elixir was correct obviously and i had the modules named right but had swapped the functions incorrectly between two files while reorganizing :)
[21:36:48] griffinbyatt: jnoon2: Nice! Glad you figured it out :P
[21:39:33] asabil: has joined #elixir-lang
[21:49:57] markmm: has joined #elixir-lang
[22:05:46] sparogy: has joined #elixir-lang
[22:07:40] drincruz: has joined #elixir-lang
[22:55:03] wagnerst: has joined #elixir-lang
[22:59:44] jnoon2: has joined #elixir-lang
[23:08:07] weird_error: has joined #elixir-lang
[23:11:00] jimmyrcom: has joined #elixir-lang
[23:12:00] jnoon2: has joined #elixir-lang
[23:18:38] icecreamcohen: has joined #elixir-lang
[23:19:44] Guest42: has joined #elixir-lang
[23:36:57] greengriminal: has joined #elixir-lang
[23:47:00] craigp: has joined #elixir-lang
[23:56:03] duaneb: has joined #elixir-lang