<     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 _2_5 26 27  
28 29 30 31
00:00 ishahnaz joined
00:02 gmcabrita_ joined
00:03 ahf joined
00:03 killtheliterate joined
00:07 sfbw joined
00:08 lexmag_ joined
00:16 gvaughn__ joined
00:18 nighty-- joined
00:18 asabil joined
00:21 ishahnaz joined
00:23 nighty-- joined
00:28 ishahnaz joined
00:28 cemilowski joined
00:28 northfurr joined
00:29 r00tl3ss joined
00:33 mika_ joined
00:43 __charly__ joined
00:45 rkazak joined
00:47 Obi_obi_____ joined
00:48 asabil joined
00:53 griffinbyatt joined
00:53 richjdsmith joined
00:55 sevenseacat joined
00:58 northfurr joined
00:59 chrismcg joined
01:07 elgenie joined
01:17 sunaku joined
01:20 fmcgeough joined
01:20 asabil joined
01:20 barttenbrinke joined
01:27 gvaughn joined
01:27 gvaughn_ joined
01:28 gvaughn__ joined
01:30 fmccann joined
01:39 tomterl joined
01:41 cschneid_ joined
01:41 gvaughn joined
01:42 gvaughn_ joined
01:50 __charly__ joined
01:51 mika_ joined
01:53 cschneid_ joined
01:53 richjdsmith joined
01:54 griffinbyatt joined
01:57 richjdsmith joined
01:58 mika_ joined
02:12 dikaio joined
02:14 jerel joined
02:18 northfurr joined
02:19 asabil joined
02:20 richjdsmith joined
02:24 bbhoss joined
02:30 elgenie joined
02:36 olinkl joined
02:36 pbj joined
02:40 sunaku joined
02:42 icecreamcohen joined
02:43 griffinbyatt joined
02:45 r00tl3ss joined
02:49 asabil joined
02:54 jerme_ joined
02:55 elgenie joined
03:03 mika_ joined
03:04 ssswitch joined
03:05 wangbus joined
03:13 akeating joined
03:15 svishnevskiy_ joined
03:18 CARAM__ joined
03:19 asabil joined
03:21 hakunin_ joined
03:22 jmcintosh joined
03:25 refriedchicken joined
03:32 richjdsmith joined
03:34 asabil joined
03:37 refriedchicken joined
03:38 hugo_dc joined
03:39 refriedchicken joined
03:40 imack joined
03:42 srxa_ joined
03:47 chatter29 joined
03:47 <chatter29> hey guys
03:47 <chatter29> allah is doing
03:47 <chatter29> sun is not doing allah is doing
03:47 <chatter29> to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger
03:48 sorentwo joined
03:48 chatter29 joined
03:51 richjdsmith joined
03:53 muncman joined
03:53 griffinbyatt joined
03:57 bambanx joined
03:58 <nhooyr> I have the following in my router https://gist.github.com/anonymous/8e0ef9af25a1a642f2905e95701d8f78
03:59 <nhooyr> I am following the phoenix guide. It says I should get a "warning: this clause cannot match because a previous clause at line 1 always matches" when compiling, but I don't
03:59 <nhooyr> if I move the `get "/", RootController, :index` to right under `get "/", PageController, :index` then I get the warning. Is this a bug?
04:04 griffinbyatt joined
04:04 elgenie joined
04:04 asabil joined
04:04 pbj joined
04:09 <asonge> nhooyr: you mind linking me to what you're looking at in the guide?
04:09 <asonge> nhooyr: basically, the first "/" will always match, so the one on line 7 never will.
04:09 <nhooyr> asonge: http://www.phoenixframework.org/docs/routing#section-resources
04:09 <nhooyr> i know
04:09 <nhooyr> but i don't get a warning for it
04:09 <nhooyr> unless they are right after each other
04:10 <nhooyr> asonge: my bad, wrong link, http://www.phoenixframework.org/docs/routing#section-examining-routes scroll slightly up
04:10 <asonge> oh, the guide says to put the PageController inside the scope block.
04:10 <asonge> the root controller goes outside the scope block
04:11 <asonge> hrm. i wonder if this is some editing weirdness in the instructions
04:12 <asonge> oh, you're *not* seeing the warning and you're expecting to.
04:12 <asonge> blah.
04:12 <Radar> bingo.
04:12 <asonge> well, you should. try saving the file again and recompiling?
04:14 <nhooyr> i have, multiple times
04:14 <Radar> Going to try to replicate this myself.
04:16 <Radar> nhooyr: I can't replicate this in a new app. Could you please add this app to GitHub? Then I can try cloning + running it myself locally.
04:16 richjdsmith joined
04:16 <Radar> nhooyr: Also: what version of Elixir are you using?
04:16 <nhooyr> ok, just a sec
04:17 <nhooyr> 1.4.2 for elixir and 1.3 for phoenix
04:17 <nhooyr> might be phoenix 1.3?
04:18 <Radar> I'll know when I see the app :)
04:18 <asonge> i think phoenix 1.3 added some annotations to suppress unused variable warnings because they were opaque
04:19 <asonge> but i'm not sure at all.
04:19 <Radar> I tried replicating it under Elixir 1.4.2 + Phoenix 1.3 but I can't.]
04:19 <asonge> Radar: oh, it emits warnings for you? then nevermind.
04:19 <asonge> nhooyr: what version of erlang/OTP?
04:19 hakunin joined
04:19 <nhooyr> my bad guys
04:19 <Radar> asonge: Correct
04:19 <nhooyr> mix was caching the build
04:19 <asonge> did you have a weird time change?
04:19 <Radar> There it is :)
04:20 <nhooyr> i had a phoenix server running in the background
04:20 <nhooyr> it was building it for me
04:20 <asonge> ohhhh
04:20 <nhooyr> and i noticed warnings sometimes and sometimes not
04:20 <asonge> so it was never actually rebuilding
04:20 <nhooyr> so i got confused
04:20 <nhooyr> thanks for clearing it up for me :)
04:20 sunaku joined
04:20 <Radar> That'd do it. Each time I was restarting my phoenix server.
04:26 rfv joined
04:30 cschneid_ joined
04:31 __charly__ joined
04:34 asabil joined
04:37 nhooyr joined
04:39 mika_ joined
04:56 mudphone joined
04:56 treaki_ joined
04:57 richjdsmith joined
05:03 bigkevmcd joined
05:04 asabil joined
05:05 Yonk__ joined
05:06 jeffweiss joined
05:07 gvaughn joined
05:07 dec0n joined
05:14 adamkittelson joined
05:20 icanhazbroccoli joined
05:20 imack joined
05:21 refriedchicken joined
05:23 pbj joined
05:24 sfbw joined
05:26 hakunin joined
05:27 northfurr joined
05:28 griffinbyatt joined
05:28 marceldegraaf joined
05:30 hakunin joined
05:31 hakunin joined
05:33 nii236 joined
05:33 ariejan joined
05:34 asabil joined
05:42 ariejan joined
05:46 solatis joined
05:47 craigp joined
05:48 dch_ joined
05:55 cemilowski joined
06:00 dvim joined
06:01 johnwick_ joined
06:01 johnwick_ left
06:01 gvaughn joined
06:05 asabil joined
06:12 rkazak joined
06:15 srxa joined
06:20 yourname joined
06:21 jamick joined
06:24 l14n joined
06:25 sfbw joined
06:28 msch joined
06:29 griffinbyatt joined
06:31 manukall joined
06:32 pbj joined
06:34 dignifiedquire joined
06:35 asabil joined
06:37 DeadTrickster joined
06:41 skunkwerks joined
06:45 synProgrammer joined
06:57 hansihe joined
06:59 danmcclain joined
07:02 tuacker joined
07:06 asabil joined
07:06 Cohedrin joined
07:17 vmoravec joined
07:18 flaviodesousa joined
07:19 ZippoWeb joined
07:25 sfbw joined
07:27 ZippoWeb joined
07:27 Cohedrin joined
07:27 mark_66 joined
07:28 mattyw joined
07:28 cemilowski joined
07:30 ariejan joined
07:33 ZippoWeb joined
07:36 asabil joined
07:36 srxa joined
07:38 skunkwerks joined
07:43 skunkwerks joined
07:44 josevalim joined
07:44 pbj joined
07:46 dch_ joined
07:48 fxn joined
07:48 craigp joined
07:56 ZippoWeb joined
07:56 akeating joined
07:57 pmbauer joined
07:58 akeating joined
08:03 ZippoWeb joined
08:12 marr joined
08:13 folz joined
08:15 colrack joined
08:16 OliverMT joined
08:16 stephen_m joined
08:18 Guest67 joined
08:19 gvaughn joined
08:21 jkreeftmeijer joined
08:23 jkreeftmeijer joined
08:25 pbj joined
08:25 metalrain joined
08:25 akeating joined
08:26 sfbw joined
08:26 billstclair joined
08:28 alxndr joined
08:29 manveru joined
08:37 hbraun joined
08:37 Lyubo1 joined
08:39 PaReeOhNos joined
08:39 flaviodesousa joined
08:40 cemilowski joined
08:41 dignifiedquire joined
08:42 proteus-guy joined
08:42 dch_ joined
08:47 schaary_ joined
08:47 schaary joined
08:53 klaus_trainer joined
08:53 raymorgan joined
08:53 ur5us joined
08:54 PaReeOhN_ joined
09:06 dch_ joined
09:08 fredsir joined
09:09 josevalim joined
09:15 eddd joined
09:18 lexmag joined
09:20 m00dy joined
09:22 ZippoWeb joined
09:28 sfbw joined
09:31 cschneid_ joined
09:42 m00dy joined
09:43 gmcabrita joined
09:44 jeffweiss joined
09:45 gvaughn joined
09:49 akeating joined
10:00 nahtnam joined
10:02 inoas joined
10:03 m00dy joined
10:07 elixir007 joined
10:08 <elixir007> new to elixir. can someone recommend a auth library for phoenix
10:11 nighty-- joined
10:11 <cbarratt> This is one lib ive seen used highly before - https://github.com/ueberauth/guardian
10:12 <elixir007> thanx
10:19 ZippoWeb joined
10:23 cschneid_ joined
10:24 vood joined
10:26 <vood> Hi guys. Is there any ui library for elixir to use in software development?
10:29 <Nicd-> with UI do you mean GUI or web frontend or something else?
10:29 sfbw joined
10:32 fmccann joined
10:33 <vood> ye gui not for web but for desktop application
10:35 <vood> i'm looking for something that use native system gui instead of "webish" interfaces
10:39 <bigkevmcd> vood: I'd start by looking at the wx erlang library
10:39 gvaughn joined
10:41 <vood> ok that sounds good. Thanks bigkevmcd
10:41 mattyw joined
10:43 <bigkevmcd> vood: if you want to see it in action, try :observer.start in an Elixir console
10:46 <vood> thanks
10:55 samof76 joined
11:01 m00dy joined
11:04 elgenie joined
11:06 m00dy_ joined
11:06 elixir007 left
11:23 griffinbyatt joined
11:24 nhooyr joined
11:24 <OliverMT> {:secure_random, "~> 0.5.1"}
11:24 <OliverMT> err, wrong window
11:26 clemlais joined
11:27 asabil joined
11:28 <gazler> josevalim: could we support something like setup [&AuthTestHelpers.login_user/1, &BlogFixture.create_posts/1] or setup [{AuthTestHelpers, :login_user}, [BlogFixture, :create_posts}] for describe in ExUnit?
11:29 <gazler> It can be handled using imports at the moment.
11:30 sfbw joined
11:30 [0__0] joined
11:30 mentero joined
11:33 asabil_ joined
11:35 fmccann joined
11:35 gvaughn joined
11:40 sfbw joined
11:41 dimitarvp joined
11:42 eddd joined
11:48 griffinbyatt joined
11:48 ZippoWeb joined
11:49 griffinbyatt joined
11:49 samof76 joined
11:50 griffinbyatt joined
11:50 dch_ joined
11:53 m00dy joined
11:54 kansi joined
11:55 <kansi> hi, can anyone explain how does render function in phoenix know which view module to call ?
11:55 <gazler> kansi: You mean from a controller?
11:55 <kansi> yes\
11:56 <gazler> By default, Controllers render templates in a view with a similar name to the controller. For example, MyApp.UserController will render templates inside the MyApp.UserView. This information can be changed any time by using render/3, render/4 or the put_view/2 function
11:56 <gazler> From the docs https://hexdocs.pm/phoenix/Phoenix.Controller.html#render/2
12:00 <gazler> The place in code where this is actually set is https://github.com/phoenixframework/phoenix/blob/aeccae9658ed3d85d8af8f28ce2584d407b43d6b/lib/phoenix/controller.ex#L171 if you were curious
12:00 <gazler> Which is derived using the code here https://github.com/phoenixframework/phoenix/blob/aeccae9658ed3d85d8af8f28ce2584d407b43d6b/lib/phoenix/controller.ex#L1343
12:02 ZippoWeb joined
12:06 <kansi> gazler: thx, that helped :)
12:08 m00dy joined
12:08 ZippoWeb2 joined
12:09 Vooch joined
12:16 mika_ joined
12:18 akeating joined
12:35 ctp joined
12:39 gvaughn joined
12:40 fmcgeough joined
12:41 ur5us joined
12:45 Guest67 joined
12:46 sfbw joined
12:50 m00dy joined
12:51 griffinbyatt joined
12:57 akeating joined
12:58 <tuacker> vood: inside iex/elixir console you can also do :wx.demo for some wx examples
12:58 <tuacker> they are all in erlang though IIRC
13:04 pbj joined
13:05 ZippoWeb2 joined
13:05 m00dy joined
13:06 mika__ joined
13:07 akeating joined
13:09 cdg joined
13:14 ramortegui joined
13:17 akeating joined
13:23 akeating joined
13:26 northfurr joined
13:29 maxbeizer joined
13:30 JEG2 joined
13:31 robatosan joined
13:36 <dimitarvp> tuacker: Damn! Thanks, never heard of that.
13:36 <dimitarvp> So useful
13:37 <Ghouli> whoa
13:43 m00dy joined
13:46 m00dy joined
13:46 m00dy joined
13:47 m00dy joined
13:52 griffinbyatt joined
13:54 gvaughn joined
13:58 tuacker1 joined
13:59 akeating joined
13:59 jerel joined
14:00 waleee joined
14:00 kronicdeth joined
14:03 <kronicdeth> I added `@dialyzer :unmatched_returns` to https://github.com/C-S-D/calcinator/blob/master/lib/calcinator/controller.ex, but dialyzer isn't flagging that my `case` statements are missing clauses. Is `unmatched_returns` not the right options to flag missing case clauses?
14:06 __charly__ joined
14:08 cemilowski joined
14:16 meh` joined
14:16 m00dy joined
14:18 Vooch joined
14:19 ZippoWeb2 joined
14:29 sfbw joined
14:30 sfbw joined
14:31 sfbw joined
14:32 fxn joined
14:32 <nonninz> Hi. I am having a problem using distillery for releasing an app to our staging server. Basically distillery refuses to include a dependency unless it's listed in mix.exs' applications or included_applications
14:33 <nonninz> Which is fine, but this dependency I'm using doesn't define any application, it's just a stand-alone module
14:34 <nonninz> So i'm not sure what I'm supposed to do. Include it into _included_applications_, even if there is no Application?
14:38 sfbw joined
14:39 sfbw joined
14:39 cschneid_ joined
14:42 robatosan joined
14:47 srxa_ joined
14:49 justelex joined
14:51 tuacker joined
14:52 myers joined
14:55 griffinbyatt joined
14:56 dimitarvp joined
14:56 jleon joined
14:57 sfbw joined
15:00 <benwilson512> nonninz: it's just a git repo with some modules?
15:00 <benwilson512> can you link to it?
15:02 jleon joined
15:07 ZippoWeb2 joined
15:08 cevado joined
15:10 <nonninz> benwilson512: https://github.com/mschae/cors_plug
15:10 <nonninz> it is deployed to hex.pm
15:11 <fishcakez> kronicdeth: unmatched returns means when you have MyMod.fun() that can return different values and all values are ignored, it means explicitly doing _ = MyMod.fun() to ignore it
15:11 richjdsmith joined
15:12 <fishcakez> s/to ignore it/to remove the warning
15:12 <kronicdeth> fishcakez: So is there anyway to get dialyzer to mark a case doesn't have totality?
15:12 <fishcakez> what warnings do you have on?
15:12 <fishcakez> dialyzer shouldnt complain that all cases arent handled
15:13 <fishcakez> only if patterns can never match
15:13 <kronicdeth> I'm using your `dialyze`, so whatever is default for `mix dialyze`
15:13 <fishcakez> which version?
15:13 <kronicdeth> 0.2.1 and elixir 1.5.0-deve
15:13 <fishcakez> can you show the warning?
15:14 sfbw joined
15:16 cschneid_ joined
15:17 akeating joined
15:23 cschneid_ joined
15:25 ZippoWeb2 joined
15:25 wsieroci joined
15:30 PaReeOhNos joined
15:35 tuacker joined
15:36 greengriminal joined
15:36 s_kilk joined
15:39 __charly__ joined
15:44 NeverDie joined
15:46 ejpcmac joined
15:47 jleon joined
15:56 amclain joined
15:57 cevado joined
16:03 rkazak joined
16:04 <kronicdeth> fishcakez: my point is that there wasn't a warning. I want a warning that `case Calcinator.show` is missing `{:error, :timeout}` and it's not
16:05 PaReeOhNos joined
16:05 Vooch joined
16:06 <fishcakez> kronicdeth: thats not how success typing works, it will only show when it something is definitely wrong, whereas {:error, :timeout} may not occur, so not including that clause is not definitely wrong, and so no error
16:06 <jer> if i'm opening a file, and multiple processes are trying to write to it, is there possibility if process A is writing "aaaa" to the file, and B is writing "bbbb" that i could end up with data in the file like "aababbba" ?
16:06 <kronicdeth> ok, I was hoping there was a way to force it to do that when I listed it in the @spec (it can't infer the type since it calls a callback implentation module)
16:07 <kronicdeth> jer: it depends on your flush settings and how your OS works
16:07 stephen_m joined
16:07 <jer> hrmm ok
16:08 <kronicdeth> Like if the message size exceeds the chunk size when a flush would occur it could intermingle
16:08 <kronicdeth> I doubt it can happen with something as sort as your example though
16:09 <jer> yeah i'll be writing tens of kilobytes at a time though
16:09 <kronicdeth> You'd have to read up on Linux and POSIX rules for the atomicness of `write` and `writev`
16:09 <jer> i mean i could break it up into chunks and write them out according to the block size
16:09 <jer> the filesystem block size rather
16:09 <jer> kronicdeth, gotcha thanks
16:11 robatosan joined
16:12 <kronicdeth> The underlying erlang open/2 (http://erlang.org/doc/man/file.html#open-2) has a bunch of settings like read and write buffer and compression that means there's probably a lot of indirection between the message you send to the File pid and what is written to the OS calls
16:13 meandi_3 joined
16:18 dj_goku joined
16:18 dj_goku joined
16:19 sunaku joined
16:20 <jer> kronicdeth, yep got some good info out of there as to options; just perusing write/writev specifics
16:20 cemilowski joined
16:23 hbraun joined
16:31 PaReeOhNos joined
16:42 gvaughn_ joined
16:42 asabil joined
16:43 jeffweiss joined
16:43 gvaughn joined
16:44 rkazak joined
16:45 __charly__ joined
16:46 northfurr joined
16:47 josevalim_ joined
16:47 icecreamcohen joined
16:48 <kronicdeth> fishcakez: have there been any reports of dialyzer working weird with 1.5.0-dev related to Application.start or Supervisor.start_link? I get `test/support/calcinator/application.ex:8: Function start/2 has no local return`, but that doesn't happen on 1.4.2.
16:49 akeating joined
16:52 asabil joined
16:55 gvaughn_ joined
16:56 griffinbyatt joined
16:58 jbhannah joined
16:58 imack joined
17:09 gvaughn_ joined
17:10 elgenie joined
17:10 elixir1298 joined
17:10 refriedchicken joined
17:10 Gasher joined
17:11 duane joined
17:13 <elixir1298> Hey everyone, I have a question. I'm using Phoenix 1.3.rc.1. Is there any explanation for the different subdirectories in "/assets"? For instance, when would js go into "/assets/js" vs "/assets/static" vs "/assets/vendor"?
17:13 <duane> Using Timex on production in a Heroku app and Timex.DateTime.now is returning the same time...it seems to be set when the server started and never updated. What config am I missing that updates that time value?
17:17 richjdsmith joined
17:17 <Nicd-> duane: can you show how you are using it?
17:17 jbhannah joined
17:18 mika__ joined
17:19 OtherAllan joined
17:21 <duane> Nicd-: field :date, Timex.Ecto.DateTime, default: Timex.DateTime.now
17:22 sunaku joined
17:26 chrismccord joined
17:29 <Nicd-> I think the default is evaluated once at compile time
17:29 <Nicd-> so the result of Timex.DateTime.now() is used as the default
17:31 <Nicd-> "The default value is calculated at compilation time, so don’t use expressions like DateTime.utc_now or Ecto.UUID.generate as they would then be the same for all records"
17:33 lexmag joined
17:33 northfurr joined
17:36 PaReeOhNos joined
17:39 <duane> Nicd-: thats what i was figuring. is there way around that? like whats the preferred pattern to have a value like that as a default value?
17:39 Cohedrin joined
17:40 <Nicd-> you can create the default in the SQL level
17:40 <Nicd-> then when you create a new struct the datetime will be null but when you store and retrieve it, it will be there
17:41 <duane> yeah - makes sense
17:41 <duane> thanks Nicd-
17:41 <Nicd-> or you can write a utility function / changeset to add the current datetime manually
17:41 <Nicd-> then always use that
17:42 <Nicd-> maybe there's a better way but I don't know it
17:43 imack joined
17:48 RxDx joined
17:48 richjdsmith joined
17:54 pbj joined
17:55 fnux joined
17:56 rozap joined
17:57 griffinbyatt joined
17:57 inoas joined
17:58 <iFire> a changeset option seems proper
18:03 Cohedrin joined
18:06 al-maisan joined
18:08 squallstter joined
18:10 northfurr joined
18:10 __charly__ joined
18:10 myronmarston joined
18:11 imack joined
18:12 <the_voice_> Hi All,
18:13 <the_voice_> We have our second elixir meetup tomorrow, and the second topic is going to be "fun with observer" I have downloaded chrismccord phoenixchat application for a demo of this. One of things we are going to demo is how supervisor automatically restarts processes etc..
18:14 <the_voice_> Works great with websockets, but when I kill the Elixir Chat Endpoint server everything blows up and it doesn't restart
18:14 <the_voice_> Which we are thinking maybe do to the fact that the endpoint port is still occupied, but I just wanted to confirm
18:16 d10n-work joined
18:17 m00dy joined
18:24 <Siyo> yeah that happened to me too
18:24 mika__ joined
18:24 <Siyo> i asked the same question here a few months ago
18:25 <Siyo> if i remember correctly, something inside cowboy blew up and left entries in ets
18:25 <Siyo> which prevented it from starting again
18:27 TarVanim_ joined
18:30 pbj joined
18:31 wsieroci joined
18:32 <Siyo> the_voice_ https://botbot.me/freenode/elixir-lang/2016-10-25/?msg=75458760&page=8
18:35 adityau joined
18:35 maxbeizer joined
18:39 Gasher joined
18:41 rozap joined
18:43 asabil joined
18:44 <the_voice_> Thanks
18:46 ikcerog joined
18:47 northfurr joined
18:49 richjdsmith joined
18:51 srxa joined
18:54 travis-ci joined
18:54 <travis-ci> elixir-lang/elixir#14520 (master - 5319756 : Aleksei Magusev): The build passed.
18:54 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/e47914cc3983...531975610fce
18:54 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/230472060
18:54 travis-ci left
18:57 myronmarston joined
18:57 __charly__ joined
18:58 griffinbyatt joined
18:58 richjdsmith joined
19:00 cevado joined
19:02 myronmarston joined
19:04 Vooch joined
19:05 richjdsmith joined
19:06 pbj joined
19:07 myronmarston joined
19:11 elgenie joined
19:13 richjdsmith joined
19:14 richjdsmith joined
19:14 stephen_m joined
19:18 myronmarston joined
19:18 cevado joined
19:22 Ven joined
19:23 ejpcmac left
19:26 mika__ joined
19:27 Vooch joined
19:27 Ven_ joined
19:29 richjdsmith joined
19:30 wsieroci_ joined
19:30 InternetFriend joined
19:34 myronmarston joined
19:35 richjdsmith joined
19:36 Ven_ joined
19:41 wsieroci joined
19:42 Cohedrin joined
19:46 dimitarvp` joined
19:49 richjdsmith joined
19:51 richjdsmith joined
19:55 travis-ci joined
19:55 <travis-ci> elixir-lang/elixir#14523 (v1.4 - 16ea29d : Andrea Leopardi): The build passed.
19:55 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/16a90cedda90...16ea29d51875
19:55 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/230492321
19:55 travis-ci left
19:58 myronmarston joined
19:59 griffinbyatt joined
19:59 mika__ joined
20:00 richjdsmith joined
20:01 elgenie joined
20:07 hakunin joined
20:07 Guest67 joined
20:07 northfurr joined
20:12 cdg joined
20:14 Ven_ joined
20:15 definiv joined
20:16 papachan joined
20:23 richjdsmith joined
20:26 nkantar joined
20:26 nkantar left
20:28 nkantar joined
20:29 nkantar joined
20:29 nkantar left
20:30 amclain joined
20:30 myronmarston joined
20:34 cevado joined
20:35 Vooch joined
20:36 Ven joined
20:41 Cohedrin joined
20:43 hakunin joined
20:45 pbj joined
20:50 myronmarston joined
20:56 PaReeOhNos joined
20:59 griffinbyatt joined
21:00 PaReeOhNos joined
21:00 PaReeOhNos joined
21:01 PaReeOhNos joined
21:02 Ven_ joined
21:02 PaReeOhNos joined
21:02 nhooyr joined
21:03 PaReeOhNos joined
21:04 PaReeOhNos joined
21:04 PaReeOhNos joined
21:05 PaReeOhNos joined
21:15 Guest67 joined
21:17 ur5us joined
21:20 Ven joined
21:24 Gasher joined
21:25 srxa joined
21:25 notdaniel joined
21:25 mrus joined
21:30 northfurr joined
21:30 myronmarston joined
21:30 eddd joined
21:31 tuacker joined
21:35 <Zarathu> hi everyone. I'm designing an API; does elixir feature the :except option in function calls often? I found it's accepted by import(), but that's it
21:35 Vooch joined
21:40 mrus joined
21:44 elixir1298 joined
21:44 <elixir1298> Hey everyone, I have a question. I'm using Phoenix 1.3.rc.1. Is there any explanation for the different subdirectories in "/assets"? For instance, when would js go into "/assets/js" vs "/assets/static" vs "/assets/vendor"?
21:44 cevado joined
21:50 jerel joined
21:53 __charly__ joined
21:54 sfbw joined
21:57 Ioyrie joined
22:00 griffinbyatt joined
22:09 sfbw joined
22:14 myronmarston joined
22:15 jleon joined
22:15 definiv joined
22:19 <Ilyes512> Is there a nicer fix for getting records out of a .erl file (made by erlsome) that have record name starting with a uppercased letter?
22:19 m00dy joined
22:20 <Ilyes512> it seems I would need to excess it by using unquote(:UppercasedRecord)
22:20 rozap joined
22:21 <Ilyes512> It was mentioned no where that I couldn't use uppercased named records the normal way. The only thing I found was here: https://groups.google.com/forum/#!topic/elixir-lang-talk/2UNUVbM83kw
22:24 <benwilson512> Ilyes512: you can just do `:UppercasedRecord
22:24 <benwilson512> why do you need to unquote?
22:25 <Ilyes512> does not work
22:25 <benwilson512> in what contexts?
22:25 <benwilson512> oh as a function call?
22:25 <benwilson512> or rather the macros?
22:25 <Ilyes512> so the erl file has multiple records defined.
22:25 <Ilyes512> got these two macro's: Record.defrecord :AuthenticationType, Record.extract(:AuthenticationType, from: @hrl)
22:25 <Ilyes512> Record.defrecord :qname, Record.extract(:qname, from: @hrl)
22:25 <Ilyes512> the first one does not work, the second does
22:26 myronmarston joined
22:26 <Ilyes512> if i define a function like def foo, do: unquote(:AuthenticationType). Then I does return the record
22:28 <benwilson512> interesting, you may want to make a forum post, I haven't used records very much
22:28 northfurr joined
22:29 dimitarvp_ joined
22:29 <Ilyes512> it's late so I will be doing that tomorrow :)
22:30 <Ilyes512> btw also my first time using records. Only using them because I am using erlsome to parse an xml (with xsd).
22:30 <icecreamcohen> Ilyes512: this seems familiar;
22:30 <icecreamcohen> I think the problem with the first is that it starts with a capital
22:30 <Ilyes512> erlsome can auto generate erl file (records) by looking at the xsd
22:31 <Ilyes512> icecreamcohen correct
22:31 <icecreamcohen> these macros generate functions, and I don’t think they can start with a capital letter
22:31 <icecreamcohen> it’s been along time since I played with records, tbh.
22:32 <Ilyes512> that is what I got out from: https://groups.google.com/forum/#!topic/elixir-lang-talk/2UNUVbM83kw
22:33 <icecreamcohen> Do you want the record name to start with a capital?
22:33 <icecreamcohen> like {:AuthenticationType, val, val, val} ?
22:33 srxa joined
22:34 <fishcakez> a few erlang libs do all caps record tags
22:34 <Ilyes512> no it's not that I want that but it's the ersome library that auto-generates records based on the given XSD file (xml schema defination file)
22:34 <icecreamcohen> fishcakez: yes ;)
22:35 <icecreamcohen> Ilyes512: what outcome do you want?
22:35 <icecreamcohen> MyRecordModule.MyRecord(arg, arg) ?
22:35 jleon joined
22:35 <Ilyes512> yes, the same as I get with lowercased record's
22:35 <icecreamcohen> you can’t have the above, unfortunately.
22:36 <icecreamcohen> the best you can get is MyRecordModule.myRecord(arg, arg)
22:36 <icecreamcohen> but that will still interoperate with erlang correctly.
22:37 myronmarston joined
22:37 <Ilyes512> if MyModule.authenticationType() would work then that is fine as well
22:37 <Ilyes512> as long as it still uses the erlang record named 'AuthenticationType'
22:38 <icecreamcohen> it should.
22:38 <icecreamcohen> proof: https://github.com/pinterest/riffed/blob/master/lib/riffed/struct.ex#L169
22:38 <icecreamcohen> ^^ that’s interoperating with an erlang module. Note `record_name` is downcased and struct_module_name isn't.
22:38 <fishcakez> what about? Record.defrecord :authenticationType, :AuthenticationType, Record.extract(:AuthenticationType, from: @hrl)
22:39 <icecreamcohen> that’ll work
22:40 <fishcakez> maybe i messed up arg order :S, i am rusty on records
22:40 <Ilyes512> icecreamcohen it throwing me an error
22:40 <icecreamcohen> it’s name, tag, kv
22:40 <fishcakez> thanks, so should be right
22:40 <icecreamcohen> Ilyes512: did you try fishcakez’s solution?
22:41 <icecreamcohen> that allows you to munge the key
22:41 <* icecreamcohen> isn’t the biggest record fan.
22:41 <Ilyes512> when I type Ot.Poc.authenticationType() it says: do you mean any of the fallowing Ot.Poc.AuthenticationType/1, Ot.Poc.authenticationType/2, Ot.Poc.authenticationType/3. But when I try that: Ot.Poc.AuthenticationType() it throws an error: "iex:24: syntax error before: '('"
22:42 <Ilyes512> icecreamcohen i did that earlier, but I will try it again
22:42 <icecreamcohen> those functions build records
22:43 <fishcakez> missing require?
22:43 <Ilyes512> hmm... okey strange.
22:43 <icecreamcohen> do you need to require the record module?
22:43 <Ilyes512> so when I define it as: Record.defrecord :authenticationType, Record.extract(:AuthenticationType, from: @hrl)
22:43 <icecreamcohen> (yes)
22:43 <fishcakez> that first fun name looks dangerously like we have misdefined myrecord/0 macro
22:44 <Ilyes512> then it works ...hmm!?? I did exactly this a half an hour ago and it didn't work then :O
22:44 <icecreamcohen> Oh, Elixir doesn’t work between 15:00 and 15:45 PST
22:44 <icecreamcohen> (known bug)
22:45 <fishcakez> haha
22:45 <Ilyes512> haha lol
22:45 <icecreamcohen> Ilyes512: macros are a black art, you might have defined some and needed to restart iex. (just guessing)
22:46 <Ilyes512> i must be tired it's 0:45 :( I was planning on getting to bed early today *cry* failed again
22:46 <icecreamcohen> well, at least it works now.
22:46 <Ilyes512> i was doing "r module" and then "import module".... might done something wrong with that
22:47 <Ilyes512> guys thanks!
22:48 <icecreamcohen> np. credit goes to mr. fish.
22:48 <Ilyes512> I am off to bed :) Was a fun day with elixir and erlang
22:48 <Ilyes512> 0/
22:50 asabil joined
22:59 Vooch joined
23:00 cschneid_ joined
23:00 nighty- joined
23:01 griffinbyatt joined
23:04 josevalim joined
23:04 cemilowski joined
23:08 lexmag joined
23:11 jleon joined
23:12 lexmag_ joined
23:16 hakunin joined
23:23 InternetFriend joined
23:24 hakunin joined
23:24 hakunin joined
23:26 jerel joined
23:29 cschneid_ joined
23:29 Vooch joined
23:31 duane joined
23:31 griffinbyatt joined
23:33 mika__ joined
23:39 rpip joined
23:44 rexly joined
23:45 asabil joined
23:53 myronmarston joined
23:58 r00tl3ss joined