<    March 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:03 MaybeDragon joined
00:04 chriswarren joined
00:06 Guedes joined
00:13 chriswarren joined
00:14 jerel joined
00:16 luke_nukem joined
00:23 chriswarren joined
00:23 rschmukler joined
00:25 steffkes joined
00:25 steffkes joined
00:26 jbranchaud joined
00:31 chriswarren joined
00:37 rschmukler joined
00:37 hahuang61 joined
00:38 hexus0 joined
00:40 inspecteh_deck joined
00:41 chriswarren joined
00:48 zetashift joined
00:49 oetjenj joined
00:49 nighty- joined
00:50 chriswarren joined
00:51 hexus0 joined
00:51 lagbox joined
00:54 griffin_nod joined
00:55 markh joined
00:56 bitshift joined
00:57 inspecteh_deck joined
00:59 chriswarren joined
01:01 wtetzner joined
01:02 jerel joined
01:04 rschmukler joined
01:04 iwada joined
01:08 zetashift joined
01:16 rschmukler joined
01:17 chriswarren joined
01:20 milad joined
01:22 hexus0 joined
01:22 cdg joined
01:26 chriswarren joined
01:26 inspecteh_deck joined
01:26 atrerus joined
01:27 jbranchaud joined
01:29 BenMorganIO joined
01:35 chriswarren joined
01:36 cdg joined
01:36 chrismccord joined
01:44 chriswarren joined
01:45 cschneid_ joined
01:48 inspecteh_deck joined
01:50 <BenMorganIO> Hey guys, I've got a bit of a predicament with trying to pass a module to a dependency via a config.
01:50 <BenMorganIO> When I go to call it, it says it doesn't exist.
01:51 jerel joined
01:51 <BenMorganIO> https://gist.github.com/BenMorganIO/bfd5907e7341d1884e3173ca460414ce
01:53 chriswarren joined
01:54 <BenMorganIO> Updated the Gist with information.
01:54 <BenMorganIO> Is there a way to be able to pass a module to a dependency from an application? Or rather, a way for a dependency to know about some of the application's functions?
01:55 hexus0 joined
01:56 rkazak_ joined
02:02 chriswarren joined
02:06 msantos joined
02:11 chriswarren joined
02:16 PaReeOhNos joined
02:20 rschmukler joined
02:21 chriswarren joined
02:23 hahuang61 joined
02:25 john2x joined
02:26 steffkes joined
02:29 chriswarren joined
02:30 tomterl joined
02:34 jbranchaud joined
02:39 chriswarren joined
02:43 cdg joined
02:45 rschmukler joined
02:48 chriswarren joined
02:49 inspecteh_deck joined
02:49 wtetzner joined
02:49 wong2 joined
02:57 chriswarren joined
03:06 <benwilson512> you can pass that function in at runtime
03:06 chriswarren joined
03:06 <benwilson512> or rather the module in
03:07 rschmukler joined
03:08 milad joined
03:09 griffin_nod joined
03:10 shamanime joined
03:11 hexus0 joined
03:15 chriswarren joined
03:16 inspecteh_deck joined
03:20 zabirauf joined
03:21 cdg joined
03:21 cschneid_ joined
03:24 chriswarren joined
03:25 codestorm joined
03:33 chrismccord joined
03:33 chriswarren joined
03:34 webnanners joined
03:36 inspecteh_deck joined
03:40 jbranchaud joined
03:42 chriswarren joined
03:42 refriedchicken joined
03:42 chriswar_ joined
03:42 racycle joined
03:44 codestorm joined
03:47 zabirauf_ joined
03:50 raycoll joined
03:50 PaReeOhNos joined
03:51 inspecteh_deck joined
03:51 chriswarren joined
04:00 chriswarren joined
04:01 hexus0 joined
04:09 proteusguy joined
04:10 chriswarren joined
04:13 proteus-guy joined
04:16 inspecteh_deck joined
04:18 john2x joined
04:19 chriswarren joined
04:22 arekinath_ joined
04:24 hahuang61 joined
04:24 arekinath joined
04:26 steffkes joined
04:26 steffkes joined
04:28 chriswarren joined
04:28 tofutoon joined
04:28 <tofutoon> What is the kiex equivalent of .ruby-version?
04:29 <tofutoon> On a similar note, does evm or another erlang version manager have something like a .evmrc file?
04:30 Havvy joined
04:31 <z1mvader> Hello guys, I have some basic knowledge of Elixir but I'd like to learn more about web development on it. Of course I was thinking on starting with Phoenix, do you have any sources to learn how to use it? Or do you any suggestions about starting with other framework?
04:37 chriswarren joined
04:38 wwwd joined
04:40 luke_nukem joined
04:41 jbranchaud joined
04:42 <wwwd> Hey all, I am working on an online class on Phoenix. Everything has been going well until the very end. He is going over channels. I have a web/channels/user_socke.ex file but don't have a static/js/socket.js folder. Did I do something wrong or has the js code been moved?
04:45 inspecteh_deck joined
04:46 chriswarren joined
04:47 rkazak joined
04:49 gvaughn joined
04:52 larshesel joined
04:54 rschmukler joined
04:54 codestorm777 joined
04:56 milad joined
04:59 BeerLover joined
05:01 arathunku joined
05:04 chriswarren joined
05:05 codestorm joined
05:14 chriswarren joined
05:14 PaReeOhNos joined
05:15 tofutoon left
05:15 tofutoon joined
05:22 chriswarren joined
05:25 Havvy joined
05:26 <BeerLover> Elixir doesn't have Math functions right? How should I go about that?
05:27 <Havvy> BeerLover: Use them from Erlang.
05:28 <Havvy> E.g., if there's an Erlang stdlib module 'math' with an atan2 function, you call it as :math.atan2
05:30 rschmukler joined
05:32 chriswarren joined
05:33 markh joined
05:34 luke_nukem joined
05:36 imack joined
05:41 chriswarren joined
05:41 proteus-guy joined
05:45 jbranchaud joined
05:50 chriswarren joined
05:50 codestorm joined
05:54 refriedchicken joined
05:54 craigp joined
05:55 cemilowski joined
05:57 rjzmml joined
05:59 chriswarren joined
06:00 eagle_ joined
06:00 <eagle_> Hi
06:01 <eagle_> While I run iex -S mix phoenix.server, I see the below log
06:01 <eagle_> warning: Float.to_string/2 is deprecated, use :erlang.float_to_binary/2 instead
06:01 <eagle_> (elixir) lib/float.ex:414: Float.to_string/2
06:01 <eagle_> (exq) lib/exq/redis/job_queue.ex:131: Exq.Redis.JobQueue.scheduler_dequeue/2
06:01 <eagle_> (exq) lib/exq/scheduler/server.ex:68: Exq.Scheduler.Server.dequeue/1
06:01 <eagle_> (exq) lib/exq/scheduler/server.ex:56: Exq.Scheduler.Server.handle_info/2
06:01 <eagle_> (stdlib) gen_server.erl:601: :gen_server.try_dispatch/4
06:02 <eagle_> What shall I do to avoid this warning?
06:04 inspecteh_deck joined
06:06 imack joined
06:07 dec0n joined
06:08 chriswarren joined
06:10 harfangk joined
06:17 chriswarren joined
06:17 laut joined
06:20 luke_nukem joined
06:23 eagle_ joined
06:24 rschmukler joined
06:25 hahuang61 joined
06:26 codestorm joined
06:26 codestorm joined
06:26 chriswarren joined
06:28 steffkes joined
06:29 cemilowski joined
06:34 m_m joined
06:35 chriswarren joined
06:37 PaReeOhNos joined
06:38 zabirauf joined
06:44 chriswarren joined
06:48 jbranchaud joined
06:49 icanhazbroccoli joined
06:53 cemilowski joined
06:53 chriswarren joined
06:54 codestorm joined
06:57 <Nicd-> eagle_: you should follow the instruction :)
06:58 <Nicd-> in the error message
07:00 <Nicd-> as it is coming from exq maybe this will help: https://github.com/akira/exq/issues/238
07:02 chriswarren joined
07:11 chriswarren joined
07:19 alakra joined
07:21 chriswarren joined
07:21 cschneid_ joined
07:22 craigp joined
07:22 MaSven joined
07:25 cemilowski joined
07:26 luke_nukem joined
07:30 chriswarren joined
07:39 chriswarren joined
07:47 rvanlieshout joined
07:47 rvanlieshout joined
07:48 rschmukler joined
07:48 chriswarren joined
07:48 iwada joined
07:49 codestorm joined
07:49 <iwada> Following on with the Programming Phoenix Book
07:50 <iwada> changed my project structure to 1.3
07:50 jbranchaud joined
07:51 oetjenj joined
07:53 m_m joined
07:53 <iwada> would need a little help in resolving this
07:53 <iwada> https://gist.github.com/iwada/61f3ed6f2b95f102018c220f27c2a486
07:54 <Nicd-> your create function takes three arguments
07:54 <Nicd-> but the router is expecting it to take 2
07:55 nanohest joined
07:55 PaReeOhNos joined
07:56 <iwada> Nicd-, Ok..., so how would i possibly pass in the owner of a video
07:56 <iwada> Knowing, i'm new to Phoenix
07:56 <OliverMT> not like a third argument, you could have a plug put it in params
07:56 <OliverMT> or you would get the user *inside* the action
07:57 <OliverMT> eh I mean have a plug put it in Conn
07:57 chriswarren joined
07:57 <Nicd-> iwada: usually you check the user's session and get their information from the session (or from the database based on the session)
07:59 Guest67_ joined
07:59 <iwada> let me make some changes ...
08:00 proteus-guy joined
08:04 acscherp joined
08:04 <iwada> OliverMT, please can you look at my update - https://gist.github.com/iwada/61f3ed6f2b95f102018c220f27c2a486
08:05 mattyw joined
08:06 inspecteh_deck joined
08:06 chriswarren joined
08:06 josevalim joined
08:09 <celyr> Is elixir suitable to parse and manipulate files ? I guess not
08:09 <Nicd-> celyr: why not?
08:10 <celyr> Nicd-, Well maybe it's just my onw mind limit but..
08:11 tuacker joined
08:11 <celyr> Nicd-, I have to modify a file, adding some lines in it, in C it's easy i can just open the two files a while cycle and I'm done with a couple of ifs
08:12 <celyr> Nicd-, I guess that in elixir I'll have to use recursions with guards ? but I can't use string matching as guard ?
08:12 <OliverMT> I have no idea what you're specifically trying to do
08:12 <OliverMT> but writing to the middle of a file is trivial
08:12 <Nicd-> you can use string matching in the function head
08:13 gokr joined
08:13 ZippoWeb2 joined
08:14 <celyr> OliverMT, for me to jump an 1,3mt obstacle with a horse is trivial, like everything you already know how to do :P
08:14 <OliverMT> well, you said guess not to elixir being suitable
08:14 <celyr> Well I'll try to, and let you know if I get stuck somewhere
08:15 <OliverMT> so its more like knowing nothign about horses, pointing at one and saying that one cant jump the obstacle
08:15 <OliverMT> :P
08:15 chriswarren joined
08:15 <celyr> OliverMT, I asked because I wasn't sure
08:16 vmoravec joined
08:16 arathunku joined
08:18 mark_66 joined
08:18 <Nicd-> but you did say "I guess not" :P
08:18 <whodidth1s> uh oh, if i use the umbrella stuff of apps/app and apps/app_web, how do i make app recompile automatically
08:19 eagle_ joined
08:19 scarfacedeb joined
08:19 <celyr> So how would you do it ? Like with a list and inserting the rows ?
08:21 craigp joined
08:22 <OliverMT> are you adding the lines in the middle or at the end or what?
08:22 <celyr> in the middle
08:23 <celyr> I have to read some lines get some info and based upon those info I have to write some lines in the middle
08:23 <celyr> This elixir thing is reconfiguring my brain
08:23 <OliverMT> you need to shuffle all lines after what you're inserting
08:23 <OliverMT> if you dont want to overwrite
08:24 <OliverMT> if the file is small enough, just read it to memory, modify and then write it back out
08:24 <celyr> OliverMT, my plan was to actually write a new file
08:24 <OliverMT> if not, you need to pre-buffer more lines than you are adding, so you can keep reading and re-writing after your insert
08:24 chriswarren joined
08:24 <OliverMT> ok, then its just a matter of reading lines, inserting to your list of lines, then writing the lines back out to a file
08:25 <OliverMT> for larger files, read the file as a stream, write to a tmp file, delete original file and rename tmp file
08:26 hahuang61 joined
08:27 hbraun joined
08:29 steffkes joined
08:29 steffkes joined
08:33 milad joined
08:33 chriswarren joined
08:34 vadviktor joined
08:34 milad joined
08:41 zabirauf_ joined
08:42 chriswarren joined
08:42 rschmukler joined
08:51 jbranchaud joined
08:51 chriswarren joined
08:53 colrack joined
08:54 flaviodesousa joined
08:56 scarfacedeb joined
09:01 chriswarren joined
09:05 PaReeOhNos joined
09:05 <whodidth1s> how would i have a has_one select field in a phoenix form :thinking:
09:10 Tetiana joined
09:10 chriswarren joined
09:10 luke_nukem joined
09:12 BeerLover joined
09:17 cemilowski joined
09:18 PaReeOhNos joined
09:19 chriswarren joined
09:19 Radar joined
09:20 vmoravec joined
09:21 hexus0 joined
09:22 guacamole joined
09:23 x0nic joined
09:23 lexmag joined
09:24 dec0n joined
09:26 rschmukler joined
09:27 marr joined
09:28 chriswarren joined
09:29 imack joined
09:34 MarioBranco joined
09:36 imack joined
09:37 chriswarren joined
09:38 MarioBranco joined
09:44 <eagle_> @ Nicd-, Thanks a lot. I was able to fix it.
09:46 chriswarren joined
09:52 jbranchaud joined
09:54 travis-ci joined
09:54 <travis-ci> elixir-lang/elixir#13951 (master - c3f5973 : Gal Tsubery): The build passed.
09:54 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/c47ddffeddae...c3f59736aaae
09:54 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/212056961
09:54 travis-ci left
09:55 chriswarren joined
09:56 imack joined
10:04 chriswarren joined
10:05 jadlr joined
10:06 inspecteh_deck joined
10:07 scarfacedeb joined
10:08 <jadlr> Hi all, can someone point me to an example of how to handle fan-out / fan-in with gen_stage? Example would be: an event contains 3 URLs, perform a GET req to all of them in parallel and gather the results.
10:13 chriswarren joined
10:14 gvaughn joined
10:14 gmcabrita joined
10:16 imack joined
10:18 MarioBranco_2 joined
10:20 <josevalim> jadlr: simpler to use Task.async/await
10:22 chriswarren joined
10:23 <jadlr> What if it is part of a larger pipeline?
10:24 stephen_m joined
10:25 <jadlr> I also got the feeling, that gen_stage might not be the right thing for what we're doing.
10:26 fxn joined
10:26 hahuang61 joined
10:29 steffkes joined
10:29 steffkes joined
10:30 lexmag joined
10:31 MarioBranco joined
10:31 chriswarren joined
10:41 chriswarren joined
10:41 zabirauf joined
10:43 tetiana_ joined
10:47 acscherp joined
10:50 chriswarren joined
10:51 jbranchaud joined
10:51 craigp joined
10:58 tomaz_b joined
10:59 chriswarren joined
10:59 inoas joined
11:00 aeliton joined
11:02 <aeliton> is there a better way to find a tuple on a list? I'm using this: Enum.find(headers, &(try do {"Retry-After", _} = &1 rescue MatchError -> nil end))
11:03 <aeliton> i'm interested in remove the 'try-rescue' from it
11:03 <ciawal> try List.keyfind
11:03 <asonge> aeliton: &match?({"Retry-After", _}, &1)
11:03 cemilowski joined
11:03 mattyw_ joined
11:03 <asonge> there's also that, but if you wanted to shorten up the function in general, match? is your friend
11:04 <asonge> (List.keyfind is probably faster, btw)
11:04 <ciawal> or you can do something like this:
11:04 <ciawal> Enum.find(headers, fn
11:04 <ciawal> {"Retry-After", _} -> true
11:04 <ciawal> _ -> false
11:04 <ciawal> end)
11:04 <asonge> i like multi-clause anonymous functions, but that's "almost as bad" as the try
11:06 <ciawal> I would just use List.keyfind
11:06 <ciawal> but for the same of learning I think this is clear
11:07 <asonge> yeah, multi-clause anonymous functions are under-utilized
11:07 <ciawal> possibly keyfind won't work actually
11:07 <aeliton> thank you guys, I'll check all the options to select one of them
11:07 <ciawal> if try/rescue is being used instead of comparing the first tuple item, maybe there are non tuples in the list?
11:08 <nox> josevalim: Is there a macro for checking whether an expression matches a pattern and returning a boolean?
11:08 chriswarren joined
11:08 <ciawal> lol
11:08 <aeliton> there are tuples with more than 2 items
11:08 <asonge> nox: you just missed it, match?
11:08 <asonge> answer to previous question :)
11:08 <ciawal> excellent timing
11:08 <ciawal> that's finet hen aeliton
11:08 <nox> That's why I asked. :)
11:08 <nox> Only saw ciawal's snippet and missed your answer, asonge.
11:08 <asonge> ah
11:09 <asonge> scrollback
11:09 nighty joined
11:11 <OliverMT> tristan__: ping
11:12 bitshift joined
11:13 Radar joined
11:14 rschmukler joined
11:17 chriswarren joined
11:26 chriswarren joined
11:28 teddysmoker joined
11:35 inoas joined
11:35 chriswarren joined
11:35 Guedes joined
11:35 Guedes joined
11:44 chriswarren joined
11:51 jbranchaud joined
11:52 _2easy joined
11:52 _2easy joined
11:53 chriswarren joined
12:00 steffkes joined
12:02 gvaughn joined
12:02 chriswarren joined
12:03 nanohest joined
12:05 griffin_nod joined
12:09 rschmukler joined
12:09 mattyw joined
12:10 bitmod joined
12:11 chriswarren joined
12:12 inspecteh_deck joined
12:18 <OliverMT> is there a way to broadcast to all channels on a node?
12:18 <OliverMT> I need a way to message all connected clients to ask them to reconnect
12:19 <OliverMT> doing forward rolling deploys
12:19 cristianR_ joined
12:19 cschneid_ joined
12:20 chriswarren joined
12:27 hahuang61 joined
12:30 chriswarren joined
12:30 dimitarvp joined
12:32 superherointj joined
12:32 scarfacedeb joined
12:39 chriswarren joined
12:42 zabirauf joined
12:43 <superherointj> Just ran my first http server using Plug. =D
12:43 <superherointj> So far the thing I dislike the most is the global namespace.
12:44 scarfacedeb joined
12:44 <gazler> superherointj: What do you mean by the global namespace?
12:45 <superherointj> When creating a module it needs to include "full path": "defmodule AAAA.BBB.CCC.DDDD do ... end"
12:46 <superherointj> Would be nice if it was possible to infer the full name.
12:46 <gazler> superherointj: Well, you can alias before defining a module `alias AAAA.BBB.CCC.DDDD; defmodule DDDD`
12:46 <superherointj> From folders. Because when I move things. I need to rename every file.
12:46 <stephen_m> superherointj: there are aliases.
12:46 <stephen_m> it's not so bad renaming in general.
12:47 <stephen_m> with a good IDE
12:47 <superherointj> If I were using alias, when renaming a folder or a project name I would just have to rename it at single place?
12:47 <gazler> Nope, you'd have to rename each module. You can do it in 1 line with bash though.
12:48 <stephen_m> no, you would have to rename it where all the alias statements are.
12:48 chriswarren joined
12:48 dimitarvp joined
12:49 jbranchaud joined
12:49 <gazler> superherointj: something like find `lib/ -type f -exec sed -i \ "s/MyOldModule/MyNewModule/g" {}`
12:52 <superherointj> That would be a hard (instead of soft) workaround. I'm used to hierarchies. That is what I meant. I know this can be dealt with somehow.
12:53 <superherointj> Can this sort of thing be solved by metaprogramming?
12:54 <nox> Why do you have so much nesting?
12:54 <Nicd-> eh, you have the same thing in JS and Python for example, not really an issue IMO
12:55 <superherointj> I don't have this much nesting yet. I'm just trying to understand things.
12:56 <superherointj> In JavaScript it is not required to add projectname.parentProjectName.moduleName. to every JS modulefile.
12:56 <superherointj> That is the part that seemed weird.
12:56 <nox> Wait, I missed something... Elixir makes special stuff with folders?
12:57 <gazler> nox: No
12:57 <Nicd-> you need to `import Foo from './some/path/foo.module';` and you need to rewrite that anyway if you move files :P
12:57 chriswarren joined
12:57 <Nicd-> in JS
12:57 <nox> So I don't understand what you mean.
12:57 execb5 joined
12:57 <superherointj> Actually it is not necessary to provide full path. For example ./ is current path. And ../ is parent path. Without stating the name of parent or current main module file.
12:58 <stephen_m> No paths are provided in elixir - just the name of the module.
12:58 <superherointj> Yes.
12:59 <Nicd-> superherointj: my example uses ./, you would still need to rewrite it. the same thing applies here, if you change your module name you need to change it in places you use it
12:59 <nox> Nicd-: Only at the level of the rename.
13:00 nanohest joined
13:01 <Nicd-> nox: what do you mean?
13:01 <OliverMT> what you dont like isnt a global namespace, but a flat namespac e:)
13:01 <OliverMT> superherointj: I guess your statement is about aliasing and imports, feels tedious to do the whole path
13:02 <superherointj> Yes.
13:02 <OliverMT> you can add a macro to your module that aliases the module below
13:02 <OliverMT> that way you can alias the parent namespace and do only alias TheOtherModule
13:02 <nox> What about just keeping it flat?
13:02 <OliverMT> but in all honesty
13:02 <OliverMT> this felt weird for me after coming from java
13:02 <OliverMT> fror about 1 week
13:03 ramortegui joined
13:03 execb5 joined
13:06 rschmukler joined
13:06 chriswarren joined
13:06 cdg joined
13:07 <gazler> I don't see what the big deal is. Just do this https://gist.github.com/Gazler/092b5b5ce15b7ffeb6da469a66887a19
13:08 <gazler> I forgot to infer the filename :(
13:11 <gazler> There, I've added it to the gist.
13:13 <superherointj> Hehe. I like your example.
13:14 <Nicd-> would probably break all IDE intellisense tools?
13:14 cristianR_ joined
13:15 <gazler> Nicd-: It would certainly break me if I saw that in someones code base :)
13:15 chriswarren joined
13:18 <superherointj> But now you don't repeat yourself. :P
13:18 <superherointj> I doubt you felt terrible doing this. Meta programming seems fun.
13:19 <gazler> Haha, I was just curious.
13:20 <superherointj> Can "defmodule nested do" be inferred too?
13:21 <superherointj> I mean considering the whole file a "standard module" by lack of defmodule, does it make sense?
13:21 <superherointj> What does it break?
13:23 <micmus> you can have multiple modules per file
13:24 <gazler> You probably could, but you'd have to invoke the compiler manually and build the AST which would include the defmodule
13:24 <micmus> and you can also have code in a file, that is outside module
13:24 chriswarren joined
13:26 Tetiana joined
13:26 mozzarella joined
13:30 jbranchaud joined
13:30 <superherointj> gazler: thanks for the example. learned lots. :)
13:31 <fishcakez> gazler: your use of String, instead of Path, is mildly upsetting
13:31 <gazler> fishcakez: That's what you find upsetting about the example? :)
13:31 <superherointj> That is the part I liked. O.o
13:32 <superherointj> I have never thought of using "hd" that way.
13:32 <fishcakez> gazler: yes, the rest is just crazy
13:32 <gazler> superherointj: Path.basename is what you are looking for.
13:33 Duckily joined
13:33 chriswarren joined
13:35 <gazler> fishcakez: https://gist.github.com/Gazler/092b5b5ce15b7ffeb6da469a66887a19
13:35 <fishcakez> gazler: you still used String
13:38 apotry joined
13:42 chriswarren joined
13:50 gvaughn joined
13:50 rschmukler joined
13:51 chriswarren joined
13:56 jbranchaud joined
13:56 cdg_ joined
14:00 harfangk joined
14:00 chrismccord joined
14:00 chriswarren joined
14:01 steffkes joined
14:02 gvaughn joined
14:04 tetiana_ joined
14:07 alex88 joined
14:10 chriswarren joined
14:11 maxbeizer joined
14:11 racycle joined
14:15 inspecteh_deck joined
14:17 rschmukler joined
14:19 chriswarren joined
14:22 wong2 joined
14:22 cody_ joined
14:25 cdg joined
14:28 chriswarren joined
14:28 hahuang61 joined
14:31 Guest67__ joined
14:37 chriswarren joined
14:37 scarfacedeb joined
14:41 gokr joined
14:42 chriswarren joined
14:42 Lykve joined
14:42 Cthalupa joined
14:43 <cristianR_> Hi
14:44 Exagone313 joined
14:44 <OliverMT> 4369 is reachable between two machines, and remote console say they have the correct name@ip
14:44 zabirauf_ joined
14:44 <OliverMT> but Node.connect returns false
14:45 <OliverMT> where do I start troubleshooting?
14:45 <micmus> cookie?
14:45 <micmus> Sorry, I meant: "have you checked cookie is the same?"
14:45 <OliverMT> is there a way to show debug info for the connect?
14:45 <OliverMT> cookie is the same on both hosts yes
14:46 <OliverMT> telnet 10.0.1.132 4369 <...snip ..> Connected to 10.0.1.132.
14:47 potatosalad joined
14:48 cdg joined
14:49 cschneid_ joined
14:50 <OliverMT> haste: ^ I gotta run, added your privkey to all three hosts, if anyone know what we could do to troubleshoot I'd be very happy
14:51 <haste> Hi!
14:54 tomaz_b joined
14:56 <tristan__> OliverMT: pong
15:00 codestorm joined
15:02 potatosalad joined
15:04 potatosalad joined
15:05 Cthalupa joined
15:09 ZippoWeb3 joined
15:10 <haste> tristan__: he asked if there was a way to broadcast to all channels on a node?
15:11 <tristan__> oh, then he had the wrong person :)
15:12 raphaelmro joined
15:16 laut joined
15:17 scarfacedeb joined
15:17 keathley joined
15:17 Ven joined
15:18 scarfacedeb joined
15:18 oborot joined
15:19 atrerus joined
15:21 mozzarella joined
15:21 <OliverMT> No, my earlier ping was if i could piggyback is k8s circleci config tristan__ ;)
15:22 <haste> you need to stop pining people and then asking questions OliverMT :D
15:22 ZippoWeb3 joined
15:27 <tristan__> OliverMT: hm? "is k8s circleci config"?
15:27 <tristan__> oh
15:27 <tristan__> his?
15:27 rkazak joined
15:28 <OliverMT> No, dont u do circle + kubernetez tristan__ ?
15:28 <tristan__> yea
15:29 <OliverMT> I was wondering if you would share your yml and/or build script
15:29 <OliverMT> As inspiration
15:30 execb5 joined
15:30 <tristan__> yea, sure. will do in a second. figure I should scrub it even though it doesn't really matter, nothing sensitive in it
15:30 <tristan__> I have a yml and a script it runs
15:30 <tristan__> my yml is for circle 2.0 though
15:32 <OliverMT> I jut bumped us to 2.0 too
15:33 <tristan__> ah nice. it is great
15:34 <tristan__> going to finally get dialyzer running in it today by rebuilding the base docker image to include the plt
15:35 <OliverMT> Anyone got a clue about the above problem with node.connect?
15:37 amclain joined
15:37 jerel joined
15:37 <tristan__> OliverMT: and you aren't using google right? so don't care for any gcloud auth stuff?
15:39 nbg joined
15:40 meh` joined
15:41 <OliverMT> Feel free to include
15:41 <OliverMT> As i can translate to s3
15:41 <OliverMT> If you dont mind
15:45 <tristan__> OliverMT: https://gist.github.com/tsloughter/99312f3f3012a4cd2fd15244cf9e5a70
15:45 racycle joined
15:45 <OliverMT> micmus: its exrm release if that matters
15:46 icecreamcohen joined
15:50 MarioBranco joined
15:53 davidw joined
15:58 josevalim joined
16:01 Duckily joined
16:01 abassetto joined
16:02 celyr joined
16:02 steffkes joined
16:03 Duckily joined
16:03 hexus0 joined
16:04 refriedchicken joined
16:05 fxn joined
16:06 <OliverMT> tristan__: thanks!
16:10 <cristianR_> Hello \o
16:12 milad joined
16:13 <cristianR_> I'm considering using the Presence API track multiple connections from the same user. In my use case there is no interaction among users, so I am not interested keeping the presence state in the client. Can I use it only server side? Should I still import the presence library at client side for it to work?
16:16 nickjj joined
16:20 milad joined
16:24 rschmukler joined
16:27 tuacker joined
16:29 hahuang61 joined
16:32 NeverDie joined
16:38 jeregrine joined
16:38 willingc joined
16:38 wsieroci joined
16:39 <jeregrine> has anyone got the "Could not render "show.html" for App.Web.UserView" with the generated controller tests for 1.3-rc?
16:39 teddysmoker joined
16:39 <jeregrine> for all templates
16:40 hexus0 joined
16:40 rschmukler joined
16:40 <jeregrine> straight new generated project
16:40 hxegon joined
16:42 <jeregrine> oh maybe I need to regen >>
16:45 codestorm joined
16:45 zabirauf joined
16:50 Tetiana joined
16:50 hahuang61 joined
16:52 rschmukler joined
16:52 milad joined
16:53 NeverDie_ joined
16:53 <jeregrine> no
16:54 Gasher joined
16:55 arathunku joined
16:56 gvaughn joined
17:00 keathley joined
17:00 scarfacedeb joined
17:08 milad joined
17:16 Guest__ joined
17:17 Tetiana joined
17:18 Ven joined
17:21 davidw joined
17:29 inspecteh_deck joined
17:34 scarfacedeb joined
17:41 lexmag joined
17:48 davidw joined
17:54 wsieroci joined
17:57 junsuijin joined
17:59 milad joined
17:59 colrack joined
18:01 dustinfarris joined
18:01 mozzarella joined
18:03 steffkes joined
18:09 davidw joined
18:09 <benwilson512> silly question
18:10 <benwilson512> if I remote console into another node, and then run a bunch of memory intensive stuff
18:10 <benwilson512> which node's memory is being used?
18:10 <benwilson512> the one I've remote consoled into?
18:10 <benwilson512> or the one I'm remote consoling from?
18:10 <alisdair> depends what you mean by remote console
18:11 <alisdair> if you connect to another node via erlang distribution
18:11 <alisdair> then it depends how you spawn the processes you start
18:12 <benwilson512> hm I suppose what I have in mind is whatever ./bin/my_app remote_console does
18:12 <benwilson512> although presumably run from another actual server
18:12 smt_ joined
18:13 <alisdair> pretty sure your shell process is on the remote server in that case, but i never do that, so not 100% on that
18:13 <benwilson512> k
18:13 <benwilson512> right yeah it seems like it boils down to how --remsh works
18:18 <cristianR_> Hello again
18:19 <cristianR_> I have just generated the presence module for my application, I have included it in the application supervisor child list, but fails to start
18:19 <cristianR_> It complains when starting Phoenix.Tracker
18:19 <cristianR_> ** (ArgumentError) argument error
18:19 <cristianR_> (stdlib) :ets.lookup(Betrm.PubSub, :node_name)
18:20 <cristianR_> I tried googling the error but I've found no related results
18:20 icanhazbroccoli joined
18:21 chriswar_ joined
18:22 snappy_ joined
18:23 <snappy_> Hey everyone, quick question. Is there a way to search the phoenix docs as a whole, across all libraries (Phoenix + Plug + Ecto + etc)? Sometimes I search the API docs for a function, but have to bounce from one library to another to find it.
18:24 <adamkittelson> cristianR_: iirc an argument error on an :ets lookup often means the table with that name either doesn't exist (was never created, or its owner process crashed or otherwise exited) or process trying to access it doesn't have permission (e.g. reads on a private table, writes on a private/protected table owned by another process)
18:24 <benwilson512> snappy_: I mean, ecto is not a phoenix project
18:24 <benwilson512> I understand the annoyance with phoenix and pug
18:24 <benwilson512> *plug
18:24 milad joined
18:25 <benwilson512> cause you'll see functions in a controller and sometimes it's a phoenix function and sometimes it's a plug function
18:25 <benwilson512> but ecto is pretty solidly its own little world
18:26 <cristianR_> adamkittelson: indeed, the only thing I did was running the presence generator
18:26 DeadTrickster joined
18:26 <snappy_> benwilson512: yup that's true, but was just thinking how nice it would be to be able to have one source to search docs for every function you could possibly encounter when working with phoenix.
18:27 chrismccord joined
18:27 <benwilson512> snappy_: yeah I hear. Unfortunately I don't really know of any
18:27 <cristianR_> maybe there are some missing files from the generated project structure
18:27 <adamkittelson> cristianR_: given that i'd double check whether something like `pubsub: [name: Betrm.PubSub,
18:27 <adamkittelson> adapter: Phoenix.PubSub.PG2]` is in your endpoint config
18:27 <snappy_> benwilson512: Like, if there was a docs site that read an mix.exs file and allowed you to search within every dep.
18:27 <adamkittelson> the config for YourApp.Endpoint that is
18:28 <benwilson512> snappy_: well FWIW it should be generally pretty easy to know what project to search
18:28 <cristianR_> found the issue
18:28 <benwilson512> in that
18:28 <benwilson512> either you're calling the function on a module
18:28 <cristianR_> I need to start the endpoint before the presence module
18:28 <benwilson512> or that module is imported
18:28 <benwilson512> you can have issues if you import a LOT
18:29 <benwilson512> but about the only things I import these days are Ecto.Query and Plug.Conn
18:29 smferris joined
18:29 <benwilson512> so if I see a bare function and I don't know where it is I just have one of those two places to look
18:29 montanonic joined
18:29 <benwilson512> and if it's db related i'll look in Ecto.Query, and if it's connection related I look in plug
18:29 <snappy_> benwilson512: I definitely agree with you on that.
18:29 <cristianR_> adamkittelson: thanks for the input, I found it because you pointed out that the pub_sub config is related to the Endpoint module
18:30 <snappy_> benwilson512: Plug vs Phoenix is most frustrating.
18:30 <benwilson512> yea
18:32 klltkr joined
18:37 <chrismccord> snappy_ : what are you finding frustrating?
18:38 <snappy_> chrismccord: "cause you'll see functions in a controller and sometimes it's a phoenix function and sometimes it's a plug function" ^benwilson512
18:38 <snappy_> chrismccord: it's a silly little frustration, but sometimes you have to switch between hexdoc projects to find the function you're looking for
18:39 <chrismccord> snappy_ : we put a lot of thought into this in general. That's one reason when you open `Phoenix.Controller.__using__` we try to make it as clear as possible what's coming in scope
18:39 <chrismccord> you don't have to search anymore than 1 level deep
18:40 <chrismccord> In future releases, we will take this even further to help make it more obvious what is in scope and from where
18:41 hashpuppy joined
18:42 steffkes joined
18:44 jbranchaud joined
18:46 zabirauf joined
18:47 <snappy_> chrismccord: hmm, not sure I understand (still a relative noob). when I want to see the docs for a function I find in a controller, I typically just open up the Phoenix Hexdocs page and start typing the function. Sometimes it's there, sometimes it's in another project's hexdocs (e.g. plug)
18:48 <snappy_> chrismccord: is there a better way to search for a given function's documentation?
18:49 <PeregrinePDX> h in iex?
18:52 mattyw joined
18:52 <snappy_> PeregrinePDX: but that doesn't help if you don't know which module the function was imported from, no?
18:56 milad joined
18:56 icanhazbroccoli joined
18:57 willingc joined
18:59 milad joined
18:59 IRCFReAK joined
19:00 wtetzner joined
19:00 milad joined
19:00 squallstter joined
19:01 inspecteh_deck joined
19:02 <PeregrinePDX> I suppose you're right
19:03 hexus0 joined
19:03 <PeregrinePDX> iex could use something like clojure's apropos but since I'm a really new elixir developer i don't know if that's doable.
19:05 tahon joined
19:05 gvaughn_ joined
19:05 <tuacker> do I have this correct that the swoosh config is set in stone during compilation https://github.com/swoosh/swoosh/blob/master/lib/swoosh/mailer.ex#L63
19:05 <snappy_> PeregrinePDX: I'm new, too, so I'm frequently unsure if there's a better way to do something :P
19:05 <snappy_> PeregrinePDX: what's apropos?
19:06 IRCFReAK joined
19:06 <tuacker> unless I set the key with {:system…} (https://github.com/swoosh/swoosh/blob/master/lib/swoosh/mailer.ex#L123) … meaning if I do api_key: "${MY_KEY_ENV}" in my conf it wont work (given that I use replace_os_vars)
19:06 hexus0 joined
19:06 <PeregrinePDX> apropos searches all of the documentation in a loaded name space for the string or regex you provide.
19:07 <alisdair> elixir doesn't really have namespaces, unfortunately :(
19:07 <snappy_> PeregrinePDX: oh neat
19:07 <tuacker> https://github.com/swoosh/swoosh/blob/master/lib/swoosh/mailer.ex#L100 <— I guess I should read comments :|
19:08 <snappy_> alisdair: wouldn't modules themselves be considered namespaces?
19:09 IRCFReAK joined
19:09 Cohedrin joined
19:14 <PeregrinePDX> snappy_ https://gist.github.com/ChrisLappe/1bd6d71226f965f32d00039db1b3d6ee
19:15 <PeregrinePDX> That's an example of using apropos to find any function that contains the string "max" in a clojure repl
19:15 IRCFReAK joined
19:16 <snappy_> PeregrinePDX: seems like it would be very useful!
19:16 <tuacker> how to debug prod (staging, really) because bug only happens there: copy erroring_file.ex to server, litter it with IO.Inspect's, remsh and Code.eval_file(path) and run the failing command :P … I'm a very happy customer right now because of that
19:18 cristianR_ joined
19:19 <PeregrinePDX> Since you can tab complete in iex I imagine it would be possible to write something like apropos for iex.
19:19 hexus0 joined
19:20 <OliverMT> whats apropos?
19:22 <PeregrinePDX> apropos is a clojure repl helper. It searches the documentation for loaded name spaces for a given string.
19:23 <PeregrinePDX> It's very useful for finding a function when you don't know the name but can describe what it does.
19:23 rschmukler joined
19:25 <OliverMT> not bad
19:26 klltkr joined
19:26 davidw joined
19:32 josevalim joined
19:33 hexus0 joined
19:36 hexus0 joined
19:37 hexus0 joined
19:39 chriswarren joined
19:40 chriswarren joined
19:40 wsieroci joined
19:41 chriswarren joined
19:42 chriswarren joined
19:42 chriswarren joined
19:43 acscherp joined
19:43 chriswarren joined
19:44 chriswarren joined
19:46 ctp joined
19:47 patrickoscity joined
19:47 patrickoscity left
19:50 Guedes joined
19:51 chriswarren joined
19:52 padde_ joined
19:53 test joined
19:53 MarioBranco joined
19:56 padde_ left
19:57 rschmukler joined
19:59 kyrix joined
20:00 chriswarren joined
20:01 icanhazbroccoli joined
20:02 luke_nukem joined
20:07 rschmukler joined
20:09 IRCFReAK joined
20:10 chriswarren joined
20:13 NeverDie_ joined
20:14 hexus0 joined
20:18 chriswarren joined
20:18 cdg joined
20:21 rschmukler joined
20:23 icecreamcohen joined
20:25 milad joined
20:26 wsieroci joined
20:27 steffkes joined
20:27 steffkes joined
20:30 m_m joined
20:30 IRCFReAK joined
20:32 hakunin joined
20:35 IRCFReAK joined
20:35 IRCFReAK left
20:36 chriswarren joined
20:39 rschmukler joined
20:40 IRCFReAK joined
20:42 codestorm777 joined
20:43 IRCFReAK joined
20:46 PaReeOhNos joined
20:46 chriswarren joined
20:46 hexus0 joined
20:46 colrack joined
20:47 zabirauf joined
20:48 IRCFReAK joined
20:50 PaReeOhNos joined
20:51 chriswarren joined
20:52 hexus0 joined
20:53 chrismccord joined
20:55 <josevalim> does anyone know if there is a way to get the credo options for any check through the command line?
20:57 IRCFReAK joined
21:02 IRCFReAK joined
21:07 cemilowski joined
21:08 givemeparttt2000 joined
21:13 rschmukler joined
21:14 givemeparttt2000 joined
21:16 apotry joined
21:19 milad joined
21:19 givemeparttt2000 joined
21:26 PaReeOhNos joined
21:30 MotherFlojo joined
21:34 rschmukler joined
21:38 IRCFrEAK joined
21:46 dustinfarris joined
21:53 milad joined
22:03 milad joined
22:09 willingc joined
22:13 montanonic joined
22:18 rschmukler joined
22:21 chrismccord joined
22:25 IRCFrEAK joined
22:28 IRCFrEAK joined
22:32 PaReeOhNos joined
22:34 vmoravec joined
22:36 rschmukler joined
22:36 IRCFrEAK joined
22:47 milad joined
22:48 zabirauf joined
22:48 stephen_m joined
22:53 jhack joined
22:53 jhack joined
23:00 IRCFrEAK joined
23:04 <hxegon> Any screencast series where people build stuff with elixir?
23:08 <hxegon> Found one: https://www.youtube.com/channel/UCp01DFl8kp-239gW289C0ew
23:09 Or1on joined
23:13 oetjenj joined
23:19 cemilowski joined
23:25 IRCFrEAK joined
23:28 luke_nukem joined
23:29 tahon joined
23:31 PaReeOhNos joined
23:32 Duckily joined
23:35 scarfacedeb joined
23:40 rschmukler joined
23:41 bitshift joined
23:57 klltkr joined