<     May 2017     >
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 25 26 27  
28 29 30 31
00:04 griffinbyatt joined
00:33 Cohedrin joined
00:36 Cohedrin joined
00:42 srxa_ joined
00:46 willyk joined
00:46 willyk left
00:55 wpcarro joined
01:00 Ven joined
01:05 nighty-- joined
01:05 griffinbyatt joined
01:06 PaReeOhNos joined
01:10 kronicdeth joined
01:12 kronicdeth joined
01:25 ssswitch joined
01:29 exadeci joined
01:35 wpcarro joined
01:39 tomterl joined
02:01 akeating joined
02:06 griffinbyatt joined
02:06 kronicdeth joined
02:09 PaReeOhNos joined
02:22 joelwallis joined
02:23 <joelwallis> Hi! I'm *very* new to the Elixir world. I'm facing a weird thing I'm not used to: `@nucleotides [?A, ?C, ?G, ?T]`
02:23 <joelwallis> In this code example, what is this `@nucleotides`? Why does it have a `@` prepended to it?
02:24 <joelwallis> Does the `@` has any special meaning?
02:24 <joelwallis> And, the characters inside that list are prepended with a interrogation point, I'm not sure what it means
02:25 <joelwallis> I'm looking for some help in both Elixir School and the elixir-lang.org website, but with no luck
02:32 <asonge> joelwallis: in the module context, @foo <expr> stores the result of the expression as a "module attribute"
02:33 <joelwallis> so it's just like a constant that lives inside a module?
02:33 <asonge> when used elsewhere @foo will "get" the module attribute. module attributes are evaluated at compile time, and get resolved and often removed at a later compile stage
02:33 <asonge> it's not necessarily constant. they can be appended to and/or removed and/or modified
02:33 <asonge> but that's how it's usually used.
02:34 proteusguy joined
02:35 kronicdeth joined
02:39 codestorm joined
02:44 MarioBranco joined
02:48 wsieroci joined
02:48 <joelwallis> got it. thank you very much asonge!
03:03 hoodunit joined
03:06 griffinbyatt joined
03:23 Cohedrin joined
03:31 kronicdeth joined
03:36 fhoffmann joined
04:07 griffinbyatt joined
04:15 PaReeOhNos joined
04:16 Cohedrin joined
04:18 jcspencer joined
04:19 wpcarro joined
04:23 __charly__ joined
04:32 srxa joined
04:36 refriedchicken joined
05:08 griffinbyatt joined
05:19 PaReeOhNos joined
05:22 meandi_2 joined
05:23 refriedchicken joined
05:26 elgenie joined
05:55 cemilowski joined
06:00 elgenie joined
06:07 wpcarro joined
06:23 tuacker joined
06:24 jkreeftmeijer joined
06:26 PaReeOhNos joined
06:34 m00dy joined
06:42 Antiarc joined
06:49 nd__ joined
06:55 kronicdeth joined
07:09 josevalim joined
07:10 griffinbyatt joined
07:23 Sgeo_ joined
07:24 cemilowski joined
07:48 vadviktor left
07:57 srxa joined
08:06 ejpcmac joined
08:11 griffinbyatt joined
08:17 PaReeOhNos joined
08:23 Tica2 joined
08:26 jkreeftmeijer joined
08:33 PaReeOhNos joined
08:36 nbg joined
08:44 marr joined
08:45 jcspencer_ joined
08:49 squallstter joined
08:50 srxa joined
08:53 cemilowski joined
08:59 m00dy joined
09:08 Uniaika joined
09:11 MotherFlojo joined
09:12 griffinbyatt joined
09:15 Uniaika joined
09:18 lexmag joined
09:37 MotherFlojo joined
09:46 arquebus joined
09:46 arquebus joined
09:47 arquebus joined
09:51 tuacker joined
09:52 MotherFlojo joined
10:00 fhoffmann joined
10:12 MotherFlojo joined
10:13 griffinbyatt joined
10:20 PaReeOhNos joined
10:23 jkreeftmeijer joined
10:23 cschneid_ joined
10:31 MotherFlojo joined
10:34 gvaughn joined
10:37 Ven joined
10:38 m00dy joined
10:47 Ven_ joined
10:48 cschneid_ joined
10:54 Ven_ joined
10:56 zodiak_ joined
10:59 zodiak_ joined
11:01 Ven_ joined
11:07 Ven_ joined
11:08 papachan` joined
11:14 griffinbyatt joined
11:21 Ven_ joined
11:29 <nox> If you see josevalim, tell him to ping me.
11:29 zodiak_ joined
11:34 <Uniaika> ok
11:42 kronicdeth joined
11:49 dstrunk joined
11:50 PaReeOhNos joined
11:54 dimitarvp joined
11:58 refriedchicken joined
12:00 Ven joined
12:08 syndikate joined
12:08 <syndikate> Hello people
12:10 juan_ joined
12:10 <juan_> Hi guys I have a quick question about mix can anybody help me out?
12:15 griffinbyatt joined
12:18 jkreeftmeijer joined
12:19 stephen_m joined
12:23 gvaughn joined
12:26 wpcarro joined
12:39 willykaram joined
12:40 m00dy joined
12:45 m00dy joined
12:54 PaReeOhNos joined
13:00 josevalim joined
13:05 wpcarro joined
13:05 Ven joined
13:12 <Ankhers> josevalim: I believe nox is looking for you.
13:12 <* josevalim> hides
13:12 <sevenseacat> lol
13:12 <nox> josevalim: I was wrong I think.
13:13 <josevalim> nox: about? :)
13:13 <nox> josevalim: "• If a noncharacter that does not have a specific internal use is unexpectedly encountered in processing, an implementation may signal an error or replace the noncharacter with U+FFFD replacement character. If the implementa- tion chooses to replace, delete or ignore a noncharacter, such an action consti- tutes a modification in the
13:13 <nox> interpretation of the text. In general, a noncharacter should be treated as an unassigned code point. For example, an API that returned a character property value for a noncharacter would return the same value as the default value for an unassigned code point."
13:13 <nox> http://www.unicode.org/versions/Unicode9.0.0/ch03.pdf page 82.
13:13 <nox> Not sure I am wrong actually, but at least it's debatable.
13:14 <nox> Depends on who you consider does "processing".
13:14 <josevalim> nox: oh, this is about non-characters
13:15 <josevalim> and not self-synchronization, right?
13:15 <nox> josevalim: Other discussion we had.
13:15 <josevalim> nox: i think you are right though
13:15 <josevalim> the string is still valid even with non-characters
13:15 <nox> I guess "In general, a noncharacter should be treated as an unassigned code point." makes me right.
13:15 griffinbyatt joined
13:15 <nox> josevalim: Yeah but the Standard itself also says that errorring out can be a good choice too.
13:16 <nox> josevalim: And I'm too old now to read that and not ping you back about my potential mistake. :P
13:16 <josevalim> better to be compliant though
13:16 josevalim_ joined
13:17 gvaughn joined
13:19 jkreeftmeijer joined
13:22 cemilowski joined
13:27 meh` joined
13:28 seaword joined
13:28 seaword joined
13:31 Tica2 joined
13:34 patientplatypus joined
13:34 <patientplatypus> hi
13:35 m00dy joined
13:35 <patientplatypus> im new to phoenix and am looking for resources on making a simple API call to a third party api. I've looked around on the internet, but all the tutorials that I can find are about BUILDING your own API. Does anyone have a good pointer to making api requests?
13:41 tuacker joined
13:42 wpcarro joined
13:51 zodiak_ joined
13:52 <manukall> patientplatypus: you could use httpoison for that
13:53 srxa joined
13:53 <Ove_> I asked yesterday if there's additional stuff to do for hot code reloads. The upgrade went fine, but new code was not being served until I restarted the release. I use MIX_ENV=prod mix do deps.get, compile && MIX_ENV=prod mix release --env=prod --upgrade to generate release.
13:59 PaReeOhNos joined
13:59 tuacker1 joined
14:00 PSvils joined
14:01 proteusguy joined
14:03 <bcardarella> can you give a task a name/atom to reference back later for response rather than the Task.async result?
14:09 <bcardarella> I think I can get what I want by sending within the task fn
14:11 gvaughn joined
14:16 griffinbyatt joined
14:16 <patientplatypus> thanks manukall. ive got another question for anybody that can answer it. I'm looking at the routing for phoenix. I want to send what amounts to an api request to the backend that will send a canvas file. I could emit the whole thing on a channel, but I want to send it as an api call. It looks like I need to do this in through routing. Is there a good example of this up anywhere?
14:21 jkreeftmeijer joined
14:37 <bcardarella> if I have a Phoenix acceptance test and I am doing a db insert with a Task.async how do I prevent that dbconnection from being torn down until the async task is complete?
14:38 <bcardarella> actually, I guess I could return a known atom in the Task.async then assert_receive on that value
14:38 __charly__ joined
14:39 gvaughn joined
14:41 wpcarro joined
14:45 MotherFlojo joined
14:46 griffinbyatt joined
14:46 cfreeze joined
14:47 <cfreeze> I'm looking at the source code of cowboy, and I keep seeing (erlang)macros but cannot find where they are defined.
14:48 <cfreeze> Macros such as `?LOWER` and `?IS_TOKEN`
14:48 <cfreeze> and `?IS_WS`
14:51 <cfreeze> Ah, they're probably in cowlib
14:53 OtherAllan joined
14:55 MarioBranco joined
14:58 inoas joined
15:02 PaReeOhNos joined
15:07 zodiak_ joined
15:11 lexmag joined
15:14 wpcarro joined
15:18 lexmag joined
15:21 jkreeftmeijer joined
15:21 dustinfarris joined
15:35 wsieroci joined
15:36 srxa joined
15:37 willyk joined
15:42 wpcarro joined
15:43 ssswitch joined
15:53 ciawal joined
15:56 josevalim joined
16:06 PaReeOhNos joined
16:19 Scramblejams joined
16:22 jkreeftmeijer joined
16:23 elixirguy3 joined
16:32 Cohedrin joined
16:32 <elixirguy3> Hello Elixir community. While reading Elixir in Action I tried to build a simple calculator process. I registered the process successfully under an alias. To avoid repetitive typing I created an example method that sends some messages to the server using the alias. However I always get an Argument error. Can I not use the alias when I'm sending messages in the same receiving process? Here's the pastebin with the code +
16:32 <elixirguy3> error: https://pastebin.com/VDLFZRhk
16:39 srxa_ joined
16:41 srxa joined
16:49 danguita joined
16:51 <dimitarvp> elixirguy3: what is the send(...) call supposed to do?
16:51 <dimitarvp> Like in Ruby? Reflection?
16:51 <dimitarvp> Or like in the OTP semantics?
16:52 <dimitarvp> sending a process a message?
16:52 justinweiss joined
16:53 <dimitarvp> (nevermind, stupid question lol)
16:59 elgenie joined
16:59 kau joined
16:59 kronicdeth joined
17:00 tuacker joined
17:08 nhooyr joined
17:10 PaReeOhNos joined
17:19 MarioBranco joined
17:21 jkreeftmeijer joined
17:24 <elixirguy3> excuse my absence. You're right send sends a message like this: send(pid_of_receiver, msg)
17:27 Tica2 joined
17:32 jkreeftmeijer joined
17:34 griffinbyatt joined
17:46 <dimitarvp> elixirguy3: did you copy-paste, or have you modified?
17:47 jkreeftmeijer joined
17:49 exadeci joined
17:49 <Tica2> OTP at Microsoft https://www.microsoft.com/en-us/research/blog/p-programming-language-asynchrony/
17:50 <Tica2> “executing state machines communicating via events”
17:50 <Tica2> https://github.com/p-org/P
17:51 m00dy joined
17:51 <Nicd-> you mean buggy implementation of half of Erlang? or how did that go ;)
17:59 Guest67 joined
18:01 <nox> Nicd-: Sometimes I think that's what Erlang is.
18:01 <nox> Nicd-: Troll aside, if MS Research wants to do a language similar to Erlang, IMO Erlang can step away.
18:01 <nox> MS Research is full of smart people and they have way deeper pockets than Ericsson.
18:04 wpcarro joined
18:04 karmajun_ joined
18:04 <notriddle> nox: MS Research has a habit of starting things and not finishing them (Midori...)
18:05 <nox> notriddle: Oh granted, that *if* is damn huge. :)
18:05 wsieroci joined
18:05 <notriddle> That's what makes it "Research" instead of "Product Development," of course.
18:05 <nox> notriddle: "P was used to implement and verify the core of the USB device driver stack that ships with Microsoft Windows 8."
18:06 <nox> So I guess at least they eat their own dog food.
18:06 <notriddle> Huh. That is a good sign.
18:06 __charly__ joined
18:07 <Tica2> Nice vide about “P” https://www.youtube.com/watch?v=R8ztpfMPs5c
18:07 <Nicd-> then we just need Peelixir
18:08 <elixirguy3> @dimitarvp what do you mean with copy and paste? this is the module as it us which is runnable. My comment in example() contians the calls I made in iex
18:08 Cohedrin joined
18:13 PaReeOhNos joined
18:20 MarioBranco joined
18:25 MarioBranco joined
18:35 rkazak joined
18:35 griffinbyatt joined
18:40 srxa_ joined
18:45 MotherFlojo joined
18:46 jkreeftmeijer joined
18:47 ktje joined
18:47 Ilyes512 joined
18:52 MarioBranco joined
19:05 PaReeOhNos joined
19:07 dignifiedquire joined
19:10 PaReeOhNos joined
19:14 griffinbyatt joined
19:16 codestorm joined
19:20 srxa joined
19:25 danguita joined
19:31 kronicdeth joined
19:33 jimmyrcom_ joined
19:35 josevalim joined
19:35 mikebonar joined
19:35 elixirguy3 joined
19:41 lexmag joined
19:44 egis joined
19:45 kronicdeth joined
19:46 <egis> Hello. I'm learning elixir so I've decided to rewrite one of my hobby projects (written in php + kohana framework, looong time ago) in elixir + phoenix.
19:48 willyk joined
19:48 <egis> And that moment when Task.start(Website.Module, :update_item, item) replaces at least two 3rd party tools (beanstalkd, supervisord) and bunch of code that puts/retrieves/executes job from background queue.
19:49 <egis> Damn I love elixir. Keep up the good work!
19:52 karmajunkie joined
19:58 josevalim joined
20:04 dorei joined
20:04 cemilowski joined
20:06 <lagbox> :)
20:06 jkreeftmeijer joined
20:06 <Nicd-> egis: welcome to the community :)
20:07 <egis> thanks :)
20:10 Tidur joined
20:17 <bcardarella> I'm having an issue with edeliver. It doesn't actually build from the given tag
20:18 <bcardarella> the command: `mix edeliver build release --to=vX.Y.Z
20:18 <bcardarella> I don't see any error in the build
20:18 <bcardarella> the tag exists, and on the build server I confirm that the branch of the cloned repo is on master, not the given tag
20:19 <bcardarella> however, I don't know if it resets after the build completes
20:19 <bcardarella> is there any way to diagnose?
20:20 NickJagged joined
20:21 wsieroci joined
20:27 <tonyc> bcardarella: i haven't used edeliver.. but searching the git repo for tag doesn't yield a lot of results :o
20:27 josevalim joined
20:28 <bcardarella> well, I've tracked it down to: https://github.com/boldpoker/edeliver/blob/4381b82d2a222cd7342fb568c5ec677f5cf01fb5/strategies/erlang-upgrade#L78
20:28 <bcardarella> that determines the revision to reset to later in the build process
20:28 <bcardarella> and according to: https://github.com/boldpoker/edeliver/blob/4381b82d2a222cd7342fb568c5ec677f5cf01fb5/strategies/erlang-upgrade#L18-L19
20:29 <bcardarella> the default is HEAD on master. I am passing a value to `--to` but its as if that's being ignored and edeliver is falling back to default behavior
20:34 srxa_ joined
20:39 <bcardarella> oh, looks like I was using the wrong options
20:39 <bcardarella> --tag instead of --to
20:39 <bcardarella> --to is when building an upgrade
20:53 mau133 joined
21:03 kronicdeth joined
21:04 PaReeOhNos joined
21:18 tuacker joined
21:19 kronicdeth joined
21:31 MotherFlojo joined
21:32 josevalim joined
21:33 exadeci joined
21:48 griffinbyatt joined
21:52 srxa joined
21:57 willyk joined
21:57 bvcosta joined
21:59 gvaughn joined
22:09 PaReeOhNos joined
22:13 jkreeftmeijer joined
22:17 junsuijin joined
22:19 mikebonar joined
22:20 ssswitch joined
22:24 kronicdeth joined
22:26 iFire joined
22:36 laut joined
22:49 kronicdeth joined
22:52 griffinbyatt joined
22:55 dorei_ joined
23:00 zv joined
23:04 Ven joined
23:09 dimitarvp joined
23:12 PaReeOhNos joined
23:16 notdaniel joined
23:17 willyk joined
23:18 nhooyr joined
23:19 junsuiji1 joined
23:22 MarioBranco joined
23:22 nahtnam joined
23:25 cemilowski joined
23:25 __charly__ joined
23:25 willyk joined
23:27 Ioyrie joined
23:31 willyk joined
23:38 codestorm joined
23:40 mikebonar joined
23:53 griffinbyatt joined