<    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 _2_4 25  
26 27 28 29 30 31
00:01 Guest_ joined
00:02 chriswarren joined
00:11 chriswarren joined
00:20 chriswarren joined
00:27 travis-ci joined
00:27 <travis-ci> elixir-lang/elixir#14018 (master - f046508 : Michał Muskała): The build passed.
00:27 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/37896aaa3e7f...f04650849719
00:27 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/213647322
00:27 travis-ci left
00:30 refriedchicken joined
00:30 chriswarren joined
00:31 nomicflux joined
00:38 chriswarren joined
00:48 chriswarren joined
00:49 v0j joined
00:50 Guest_ joined
00:50 rschmukler joined
00:52 jbranchaud joined
00:55 jkreeftmeijer joined
00:56 milad joined
00:57 chriswarren joined
01:00 rschmukler joined
01:01 wtetzner joined
01:03 hexus0 joined
01:07 chriswarren joined
01:11 hp_paul joined
01:11 hexus0 joined
01:13 chrismccord joined
01:16 chriswarren joined
01:22 tomku joined
01:25 nighty- joined
01:25 chriswarren joined
01:26 lexmag_ joined
01:31 jbranchaud joined
01:34 rschmukler joined
01:34 chriswarren joined
01:40 harfangk joined
01:41 ignacio_ joined
01:41 Ioyrie joined
01:44 chriswar_ joined
01:44 inspecteh_deck joined
01:46 rschmukler joined
01:47 adefa joined
01:47 <adefa> Hello, when testing plugs that require 'path_params' being set, what's the best way to get them set when testing without a router?
01:53 chriswarren joined
01:53 gradenb joined
01:56 jkreeftmeijer joined
01:59 steffkes joined
02:02 sfbw joined
02:05 rschmukler joined
02:06 trevoke left
02:11 chriswarren joined
02:14 adefa joined
02:14 zabirauf joined
02:15 zabirauf_ joined
02:16 hexus0 joined
02:20 chriswarren joined
02:21 ignacio_ joined
02:22 scarfacedeb joined
02:23 jbranchaud joined
02:25 chrismccord joined
02:30 chriswarren joined
02:30 tomterl joined
02:30 adefa joined
02:31 rschmukler joined
02:35 c137 joined
02:36 v0j_ joined
02:39 chriswarren joined
02:48 chriswarren joined
02:50 hexus0 joined
02:57 rschmukler joined
02:57 chriswarren joined
02:58 therealwardo joined
03:07 chriswarren joined
03:13 iFire joined
03:15 nomicflux joined
03:16 chriswarren joined
03:25 chriswarren joined
03:26 snappy_ joined
03:26 <snappy_> Hi everyone, I came across this piece of code while working through a Phoenix tutorial, but it seems awfully inelegant. How would you make this better? https://gist.github.com/anonymous/d70af81f87e6294af7066fbb81d09f1d
03:34 chriswarren joined
03:35 chriswarren joined
03:38 chriswarren joined
03:38 chriswarren joined
03:46 rschmukler joined
03:48 adefa joined
03:50 wwwd` joined
03:51 jerel joined
03:55 adefa joined
03:56 racycle joined
03:57 jkreeftmeijer joined
03:58 rschmukler joined
03:59 inspecteh_deck joined
04:00 steffkes joined
04:08 raycoll joined
04:09 jbranchaud joined
04:11 alex88_ joined
04:21 Duckily joined
04:22 scarfacedeb joined
04:24 raycoll joined
04:26 rschmukler joined
04:32 rschmukler joined
04:40 adefa joined
04:43 ignacio_ joined
04:45 chriswarren joined
04:48 raycoll joined
04:53 larshesel joined
04:55 cemilowski joined
04:59 chriswarren joined
04:59 arathunku joined
05:00 therealwardo joined
05:02 craigp_ joined
05:08 gvaughn joined
05:08 chriswarren joined
05:09 jbranchaud joined
05:17 chriswarren joined
05:27 chriswarren joined
05:27 jbranchaud joined
05:27 griffinbyatt joined
05:31 raycoll joined
05:34 imack joined
05:36 chriswarren joined
05:39 raycoll joined
05:45 chriswarren joined
05:53 Reshi joined
05:54 chriswarren joined
05:57 ignacio_ joined
05:59 jkreeftmeijer joined
06:00 therealwardo joined
06:01 steffkes joined
06:04 raycoll joined
06:04 inspecteh_deck joined
06:04 Cohedrin joined
06:07 dec0n joined
06:12 chriswarren joined
06:15 robinsjdotcom joined
06:19 scarfacedeb joined
06:20 voltone joined
06:22 rschmukler joined
06:22 imack joined
06:30 therealwardo joined
06:30 der_graf joined
06:30 Ioyrie joined
06:31 chriswarren joined
06:35 meandi_2 joined
06:40 acscherp joined
06:41 squallstter joined
06:41 adefa joined
06:42 jkreeftmeijer joined
06:49 chriswarren joined
06:56 cemilowski joined
06:56 gvaughn joined
07:00 acscherp joined
07:02 wtetzner joined
07:02 dnorris joined
07:03 craigp_ joined
07:06 cemilowski joined
07:07 l14n joined
07:07 zetashift joined
07:16 rschmukler joined
07:17 agit0 joined
07:22 ignacio_ joined
07:25 icanhazbroccoli joined
07:27 icanhazbroccoli joined
07:30 blahdodo joined
07:34 <phansch_> 
07:35 <Nicd->
07:37 tuacker joined
07:39 milad joined
07:44 laut joined
07:44 chriswarren joined
07:47 cemilowski joined
07:48 cemilowski left
07:49 tuacker1 joined
07:51 <OliverMT> I was googling amounts of people online concurrently on a wow server
07:52 <OliverMT> just out of curiosity, since its the most famous mmo
07:52 <OliverMT> man... some of these comments :D
07:52 <OliverMT> "Usually between 5000-10000 concurrent users per server is normal depending on hardware and a few other things, beyond those figures requires some fun loving hardware that costs way way to much, and internet and lan infrastructure improvements also. Gets a bit funny after a certain amount of connections.
07:52 <OliverMT> "
07:52 <Nicd-> :D
07:52 <OliverMT> (this is from 2014)
07:52 <OliverMT> if it had been in 2006 then ok
07:53 <OliverMT> I wish Eve Online etc had active engineering blogs
07:53 <OliverMT> I have always been fascinated by the mmo concurrency challenes
07:53 <OliverMT> *challenges
07:55 nd__ joined
07:56 mattyw joined
08:02 steffkes joined
08:02 steffkes joined
08:02 icanhazbroccoli joined
08:04 dani0_ joined
08:06 therealwardo joined
08:11 LangeOortjes joined
08:14 arathunku joined
08:14 ZippoWeb joined
08:16 scarfacedeb joined
08:19 vmoravec joined
08:20 milad joined
08:20 icanhazbroccoli joined
08:21 PaReeOhNos joined
08:24 mark_66 joined
08:24 wtetzner joined
08:27 gokr joined
08:28 agit0 joined
08:32 jkreeftm_ joined
08:33 milad joined
08:40 dani0_ joined
08:40 chriswarren joined
08:42 adefa joined
08:44 zetashift joined
08:45 acscherp joined
08:45 gvaughn joined
08:45 josevalim joined
08:46 inoas joined
08:49 stephen_m joined
08:50 jkreeftmeijer joined
08:52 ignacio_ joined
08:59 chriswarren joined
09:00 therealwardo joined
09:01 Guest67_ joined
09:02 Tetiana joined
09:04 jkreeftm_ joined
09:04 rschmukler joined
09:05 jkreeftmeijer joined
09:08 Tetiana joined
09:09 marr joined
09:18 milad joined
09:23 robinsjdotcom joined
09:27 LangeOortjes joined
09:29 gokr joined
09:33 LangeOortjes joined
09:34 dani0_ joined
09:35 blahdodo joined
09:35 griffinbyatt joined
09:38 Tetiana joined
09:41 milad joined
09:42 craigp_ joined
09:51 DeadTrickster joined
09:52 acscherp joined
09:53 chriswarren joined
09:56 <craigp_> hey all
09:56 lexmag joined
09:56 <Nicd-> hello craigp_
09:56 <Nicd-> how are you today?
09:57 <craigp_> not bad mate, yourself?
09:57 <Nicd-> doing fine, anxious to get home from work to finish my blog post
09:57 <Nicd-> but work is nice too, refactoring an ES201x application for best practices
09:57 <craigp_> what're you writing about?
09:57 <Nicd-> I wrote my own frontend build tool in Elixir
09:58 <Nicd-> so a post about my motivations and some examples
09:58 <craigp_> nice!
09:58 <craigp_> please send me a link when it's out
09:59 <craigp_> hey, you guys know if there's a way, with Ecto, to tell if a record was actually updated (ie. there were changes that needed applying) when using update or insert_or_update?
09:59 <craigp_> i mean, other than comparing before and after updated_at timestamps
09:59 <craigp_> which i suppose is not the worst thing ever
10:00 <Nicd-> it's a silly thing, here's my blog's watch configuration using it: https://bitbucket.org/vincit/mebe/src/1c15eda4fa3528fc2cd68a7eaa37bd4d6aedfae3/lib/mix/tasks/frontend.watch.ex?at=master&fileviewer=file-view-default
10:02 scarfacedeb joined
10:03 steffkes joined
10:03 steffkes joined
10:05 <gazler> craigp_: You can check the changes in the changeset before calling update.
10:05 <craigp_> gazler: of course, makes sense :)
10:11 meh` joined
10:12 chriswarren joined
10:13 bigkevmcd joined
10:14 jkreeftm_ joined
10:14 flaviodesousa joined
10:15 DeadTrickster joined
10:16 dani0_ joined
10:16 scarfacedeb joined
10:19 milad joined
10:25 lt_kaopude joined
10:27 dani0_ joined
10:30 chriswarren joined
10:32 DeadTrickster joined
10:32 srodeme joined
10:34 gvaughn joined
10:34 mattyw_ joined
10:35 griffinbyatt joined
10:36 lt_kaopude joined
10:36 nd___ joined
10:37 acscherp joined
10:43 ignacio_ joined
10:43 adefa joined
10:43 Tetiana joined
10:47 DeadTrickster joined
10:49 chriswarren joined
10:55 acscherp joined
10:56 meh` joined
10:58 jkreeftmeijer joined
10:58 nd__ joined
10:59 DeadTrickster joined
11:01 therealwardo joined
11:05 milad joined
11:05 <OliverMT> I see visual studio code got alchemist support now
11:05 <OliverMT> anyone here using it?
11:05 gmcabrita joined
11:05 <OliverMT> I keep finding super annoying atom bugs, pondering if I should swap
11:06 LangeOortjes joined
11:07 chriswarren joined
11:10 DeadTrickster joined
11:16 steffkes joined
11:19 DeadTrickster joined
11:24 nighty joined
11:26 chriswarren joined
11:28 DeadTrickster joined
11:36 cristianR_ joined
11:37 griffinbyatt joined
11:43 zetashift joined
11:44 chriswarren joined
11:45 hbraun joined
11:51 haste joined
12:04 dani0_ joined
12:09 ariejan joined
12:11 <ariejan> Hi! I'm new. :-) Q: I have a string (downloaded with :httpc) and I want to process it with `csv`. However, csv expect a stream (as from `File.stream!`). What's the best way to get the downloaded data into csv? Convert the string to stream? I'm at a loss on how to do so.
12:13 ignacio_ joined
12:13 icanhazbroccoli1 joined
12:15 <ciawal> which csv library ariejan?
12:16 zetashift joined
12:16 <ariejan> ciawal the one named "csv", as found at https://github.com/beatrichartz/csv/
12:17 l14n joined
12:17 <ciawal> maybe just split on lines and do the Stream.map shown here https://hexdocs.pm/csv/CSV.html#decode/2
12:20 nd__ joined
12:21 gokr joined
12:22 gvaughn joined
12:26 craigp_ joined
12:26 jkraus joined
12:26 sfbw joined
12:27 DeadTrickster joined
12:31 klltkr joined
12:33 <nyaray> I'm trying to build a generated project using the 1.3 rc1 but get errors about redefining existing modules during the build
12:34 superherointj joined
12:34 <nyaray> "== Compilation error on file lib/mix/phoenix/context.ex ==" is the first to actually error out
12:35 <nyaray> any pointers?
12:35 <superherointj> When I read Elixir docs, I listen to José´s voice. Quite interesting.
12:35 <ciawal> new project nyaray?
12:35 <josevalim> nyaray: what is your elixir version?
12:35 nomicflux joined
12:36 <josevalim> superherointj: :P
12:36 <nyaray> 1.4.1
12:36 alex88 joined
12:36 <josevalim> nyaray: can you paste the full stacktrace in a gist?
12:37 griffinbyatt joined
12:38 <josevalim> ciawal, ariejan: also look at nimble_csv for CSV parsing
12:38 <superherointj> the feeling of world being small never goes away. Worked on a company that served José´s town.
12:38 <superherointj> A local wireless ISP.
12:38 <nyaray> josevalim: https://gist.github.com/nyaray/139da2ebd6f01d6b7f73375210b08c2f
12:39 <josevalim> you have a wrong archive
12:39 <josevalim> you installed the wrong thing as an archive
12:39 <josevalim> do this
12:39 <josevalim> mix archive.uninstall phoenix
12:39 chriswarren joined
12:39 scarfacedeb joined
12:40 <josevalim> you should have installed phx_new instead
12:40 <josevalim> inside the installer directory
12:42 gokr joined
12:44 execb5 joined
12:44 adefa joined
12:44 jkreeftmeijer joined
12:44 shadowjack joined
12:47 <nyaray> I've run `mix clean` in the top-dir, but also /installer
12:48 <nyaray> now I'll archive.build and archive.install under the installer instead
12:49 superherointj left
12:49 cdg joined
12:55 cdg joined
12:55 mattyw joined
12:58 cfk joined
12:59 <cfk> hello
13:02 ramortegui joined
13:02 therealwardo joined
13:02 rschmukler joined
13:04 <Nicd-> hello cfk
13:04 <Nicd-> how is Denmark?
13:04 <cfk> Cold and rainy
13:06 jbranchaud joined
13:09 <Nicd-> well damn, hope it will get nicer soon
13:11 <cfk> hopefully, hm how may one confince his boss to do elixir in company projects?
13:11 <cfk> convince*
13:17 <Nicd-> I haven't done that yet :P
13:19 edmz_ joined
13:19 dec0n_ joined
13:19 isHavvy joined
13:20 <cfk> hehe its impossible. :)
13:20 <nyaray> apologize afterwards
13:20 <Nicd-> :D
13:21 <Nicd-> I'm just trying to get as good at Elixir as I can and convince my coworkers to use it
13:21 <Nicd-> then it's easier to suggest using it in a project
13:22 gazler_ joined
13:22 <nyaray> you could throw it in on a small/simple/insignificant project :)
13:22 <nyaray> .. done partially on your own time
13:23 willyk joined
13:24 <cfk> Year might try that or the apologize later. :)
13:26 <Nicd-> I'm also setting up an Elixir meetup in my city, hosted at my company
13:27 <Nicd-> so hopefully there's interest internally too
13:28 scarfacedeb joined
13:31 Tetiana joined
13:33 rschmukler joined
13:36 <cfk> what city nicd?
13:38 <nyaray> josevalim: thanks <3
13:38 <Nicd-> Tampere, Finland
13:39 <nyaray> Nicd-: that's not too far from stockholm, will you be coming for EUC?
13:39 <* nyaray> is hoping to IRLify some nicks
13:40 <Nicd-> I can't afford that unless my company sponsors
13:41 ignacio_ joined
13:41 mattyw joined
13:44 ramortegui joined
13:46 <Nicd-> wow these conferences are expensive
13:48 scarfacedeb joined
13:49 cdg joined
13:53 cemilowski joined
13:54 <nyaray> too bad :(
13:56 hbraun joined
13:58 dimitarvp joined
13:59 mattyw joined
14:00 <celyr> Nicd-, yeah I was kind of astonished as well when I sawthe price :)
14:00 <celyr> Nicd-, and someone commented it as "cheap"
14:00 <celyr> but hey I guess there are a lot of costs around that kind of event
14:00 <Nicd-> :D
14:00 <Nicd-> it's all relative
14:01 ignacio_ joined
14:01 rschmukler joined
14:02 <celyr> Yeah I mean the blizzcon ticket is 200dollars and it's basically a fair
14:03 teddysmoker joined
14:03 gvaughn joined
14:04 <Nicd-> it would feel ok to me if it was 10 times cheaper :D
14:08 threedee joined
14:10 jerel joined
14:12 chriswarren joined
14:13 rschmukler joined
14:23 jerel joined
14:23 inspecteh_deck joined
14:25 maxbeizer joined
14:27 gvaughn_ joined
14:31 oneeman joined
14:33 acscherp joined
14:34 jkreeftm_ joined
14:40 jkraus joined
14:40 cdg_ joined
14:41 DeadTrickster joined
14:41 drincruz joined
14:42 racycle joined
14:45 jkraus joined
14:47 chriswarren joined
14:52 inspecteh_deck joined
14:53 dani0_ joined
14:53 jkraus joined
14:59 scarfacedeb joined
15:01 fernandomm joined
15:02 jkraus joined
15:04 therealwardo joined
15:06 nanohest joined
15:08 chriswarren joined
15:08 rschmukler joined
15:09 travis-ci joined
15:09 <travis-ci> elixir-lang/elixir#14026 (master - b32d37f : Andrea Leopardi): The build passed.
15:09 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/f04650849719...b32d37fbab78
15:09 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/213858814
15:09 travis-ci left
15:14 jkreeftmeijer joined
15:15 rschmukler joined
15:16 acscherp joined
15:17 lexmag_ joined
15:18 willyk joined
15:20 ignacio_ joined
15:22 the_voice_ joined
15:23 the_voice_ joined
15:28 dani0_ joined
15:30 ZippoWeb joined
15:31 davidw joined
15:32 adefa joined
15:34 chrismccord joined
15:37 rschmukler joined
15:38 jkreeftm_ joined
15:40 hugo_ joined
15:41 jkreeftmeijer joined
15:41 amclain joined
15:43 snappy_ joined
15:43 griffinbyatt joined
15:44 <snappy_> Quick Phoenix question: what is the purpose of calling halt/0 after a redirect?
15:44 talklittle joined
15:44 <snappy_> Why wouldn't one just end with the redirect?
15:44 execb5 joined
15:45 <Nicd-> to prevent the request from advancing to other plugs
15:48 <snappy_> Nicd-: Gotcha. Would it ever be useful to call halt at the end of a successful request?
15:48 mattyw_ joined
15:49 <Nicd-> you don't call halt for redirect in controllers either
15:49 <Nicd-> you need to call halt if your plug pipeline would continue otherwise
15:49 <Nicd-> if you are in the last one (controller in phoenix), there's no need for halt
15:49 <Nicd-> I think that's the simple explanation
15:51 <whodidth1s> docs have an example when to use halt https://hexdocs.pm/phoenix/Phoenix.Controller.html (Plug pipeline)
15:52 <nyaray> I forgot to git init before I started working on my phoenix thing... is it safe to 1) mix clean 2) git init, and 3) mix to see what changes so that I know what needs ignoring?
15:53 <snappy_> Ah, gotcha. So in my case, I'm using halt after a redirect which occurs when a controller plug can't find the submitted user. If I didn't halt the pipeline, I would get a double render error, yes?
15:53 <fishcakez> Mix will have setup .gitignore so no need to clesn
15:54 hexus0 joined
15:59 tomf_biz joined
16:00 <tomf_biz> Hello, I am new to phoenix and elixir. I am writing a function to return a random row. Should that function be in the model? Should it return a query or resultset?
16:00 <tomf_biz> I heard that models were going away in phoneix 1.3
16:05 travis-ci joined
16:05 <travis-ci> elixir-lang/elixir#14029 (master - 8d3cd32 : Gal Tsubery): The build passed.
16:05 <travis-ci> Change view : https://github.com/elixir-lang/elixir/compare/b32d37fbab78...8d3cd32bca5d
16:05 <travis-ci> Build details : https://travis-ci.org/elixir-lang/elixir/builds/213890892
16:05 travis-ci left
16:07 scarfacedeb joined
16:09 aeliton joined
16:09 therealwardo joined
16:11 steffkes joined
16:13 nanohest joined
16:14 craigp joined
16:14 ignacio_ joined
16:15 racycle joined
16:17 icanhazbroccoli joined
16:22 markh joined
16:25 jerel joined
16:32 steffkes joined
16:32 steffkes joined
16:32 tuacker joined
16:32 wsieroci joined
16:34 <benwilson512> tomf_biz: the name model is, but the idea of having a file w/ a schema for a database table is fine
16:35 <benwilson512> and you could have a function in that schema module that returned a query for a random row
16:35 <benwilson512> you would generally just return the query, not the actual result
16:35 <benwilson512> because that way it can be composed with other queries at the callsite if desired
16:41 <nyaray> fishcakez: Hm. strange, I didn't get one with my phx.new-generated umprella app
16:41 <nyaray> oh, derp
16:41 <nyaray> was looking for .git
16:42 <nyaray> I just wanted to make sure that I got the .DS_Store in so I didn't get a bajillion macOS files all over the place.
16:42 <nyaray> thanks!
16:44 <tomf_biz> benwilson512: thanks! I guess I will leave it in the model file for now, and return the query. When is 1.3 expected to be GA, and are there any good guides for it yet?
16:48 <nyaray> should I commit my mix.lock file?
16:48 <nyaray> I'm guessing yes, to keep things locked and secured, but am asking in case there's some argument against it
16:54 nd___ joined
16:55 jkreeftmeijer joined
16:55 <fishcakez> nyaray: always
16:55 <fishcakez> If you don't commit then there is no locks on deps and so no reproducible builds
16:56 <nyaray> Yeah, been there, done that
16:56 <nyaray> And there was a bug in a dep
16:56 <nyaray> And it was in production
16:57 <nyaray> And github was not working
16:58 <nyaray> But since we had local copies, we could patch things up
16:59 nanohest joined
17:00 therealwardo joined
17:01 hexus0 joined
17:04 rschmukler joined
17:06 montanonic joined
17:07 chrismccord joined
17:14 therealwardo joined
17:16 wsieroci joined
17:20 willyk joined
17:24 jeregrine joined
17:25 nd__ joined
17:27 willyk joined
17:32 espam joined
17:32 gmcabrita joined
17:34 jkreeftmeijer joined
17:34 cristianR_ joined
17:38 <wwwd`> I'm struggling with relationships. I have a situation where I have people that can be either a user or a an owner...or both. So I have a persons table. In my owner table I only have a id, person_id, pet_id, and various dates. I have "field :person_id, :integer" in my owner.ex and "has_one :owner, {"person_owner", Owner}, foreign_key: :person_id" in my person.ex. I'm getting a compilation error. Would be very appreciative if someone
17:38 <wwwd`> could look at my error and code and tell me if I am even close to correct in what I am doing! https://gist.github.com/johnhitz/b84495b0eaff41da8d7f493c07ade0d7
17:38 <nyaray> so... another phoenix question. is it an anti-pattern to check if keys exist in assigns? I feel like I probably should write a helper function for "if this assign exists print that thing"
17:39 hashpuppy joined
17:44 rschmukler joined
17:45 Cohedrin joined
17:48 refriedchicken joined
17:48 hexus0 joined
17:48 <wwwd`> ciderhouse@6090
17:50 montanonic joined
17:52 espam joined
17:53 espam joined
17:55 jbranchaud joined
17:55 racycle joined
17:56 sfbw joined
17:57 execb5 joined
17:57 vmoravec joined
17:58 jbranchaud joined
17:58 luke_nukem joined
18:00 m_m_ joined
18:00 dani0_ joined
18:03 jkraus joined
18:05 steffkes joined
18:05 steffkes joined
18:06 willyk joined
18:10 stephen_m joined
18:17 meh` joined
18:22 m_m_ joined
18:25 alex88 joined
18:27 JuanMiguel joined
18:29 wsieroci joined
18:33 icanhazbroccoli joined
18:34 steffkes joined
18:34 steffkes joined
18:41 arathunku joined
18:42 DeadTrickster joined
18:44 Tetiana joined
18:51 tetiana_ joined
18:52 griffinbyatt joined
18:54 ramortegui joined
18:59 wsieroci joined
19:04 Cohedrin joined
19:08 nanohest joined
19:09 chrismccord joined
19:11 harfangk joined
19:15 jkreeftmeijer joined
19:16 strykerkkd joined
19:16 montanonic joined
19:17 gabrielsch joined
19:21 jkraus joined
19:22 jkreeftmeijer joined
19:25 sfbw joined
19:25 hbraun joined
19:26 jkraus joined
19:27 threedee joined
19:30 sfbw joined
19:41 chrismccord joined
19:42 celyr joined
19:44 zv joined
19:46 <smeevil> wwwd` you have fied :person_id, :integer, and later belongs_to :person.... the belongs to implicitly requires person_id, so basically its telling you you have it double defined. just remove the field declaration
19:46 MotherFlojo joined
19:49 jkraus joined
19:50 MaybeDragon joined
19:54 jkraus joined
19:55 scarfacedeb joined
19:56 MaybeDragon left
19:56 chriswarren joined
19:57 montanonic joined
19:59 <wwwd`> smeevil: Thanks!
19:59 <smeevil> bit late , but hope it still helps :)
19:59 kyrix joined
20:00 <wwwd`> Well, it got me to a new error! For what ever that's worth ;)
20:00 wsieroci joined
20:00 <smeevil> just let me know if you need help :) and remember, in the life of a programmer, a new error is victory :)
20:01 <smeevil> s/new/different/
20:01 <wwwd`> Correct!
20:13 unga joined
20:13 The_Brofessor joined
20:14 The_Brofessor joined
20:16 <The_Brofessor> Is there a way to express that you want a type cast inside ecto query composition? I have a table where the foreign key is a string, but in the main model its a UUID (and I can't edit the schemas). I'm trying to do something like
20:16 <The_Brofessor> join: user in User, where: ^Ecto.UUID.cast!(o.user_id) == user.user_id
20:16 <The_Brofessor> o.user_id is character varying in this case and user.user_id is an Ecto.UUID
20:16 steffkes joined
20:16 steffkes joined
20:25 montanonic joined
20:26 <wwwd`> Smeevil: Since you offered. I have resources 'resources "/persons", PersonController' in router.ex but I am getting 'web/controllers/person_controller.ex:23: undefined function person_path/2'. Any idea what might cause that?
20:27 squallstter joined
20:27 <smeevil> can you paste the person_path with the params you give ?
20:28 <smeevil> should be something like person_path(@conn, :show, person)
20:29 <smeevil> or person_path(@conn, :index)
20:29 <wwwd`> ' |> redirect(to: person_path(conn, :index))'
20:31 <smeevil> ok and what does a `mix phx.routes` give you ?
20:31 <smeevil> (or mix phoenix.routes depending if you are using an older phoenix version)
20:32 pramsky joined
20:33 <wwwd`> smeevil: https://gist.github.com/johnhitz/e050d88400bc07d399abcdc5eb713dcb
20:33 <smeevil> o.O
20:34 <smeevil> did you try turning it off and on again ? :D
20:34 <wwwd`> The server?
20:35 <smeevil> well rather just the phoenix process :)
20:35 <wwwd`> To late...but that seemed to work! How do you turn just the process off?
20:36 <smeevil> good :) if by server you did not mean the physical server , we are on the same page :P
20:36 <wwwd`> No I just stopped with dbl ctl-c.
20:37 <smeevil> sometimes it does not pick up route changes, and then a restart forces an reload of the routes
20:37 <wwwd`> Ah!
20:37 jkraus joined
20:42 scarfacedeb joined
20:43 <wwwd`> I'm totally lost! What am I trying to get done? Now I'm getting a 'relation "abstract table: owners" does not exist. At one point I had a owners table but was not getting a person_id in the foreign key? I have read the docs about 5 times and still don't see the light...
20:46 mbwe joined
20:46 m_m_ joined
20:46 <wwwd`> smeevil: What I want to do is have a owners route that lets me enter for example name and phone number. Then checks the db to see if the owner exists in the persons table. If so I want to load the person into the owners template and add posetions...pets, cars, classes, etc. Am I thinking about this correctly?
20:46 <smeevil> if you like i could help a bit over a screenhero session or appear.in ?
20:48 <wwwd`> I would love. I've never used either. Does it matter which?
20:48 <smeevil> i'll send you a link
20:49 <smeevil> just give me a minute to get something to drink and put a shirt on :)
20:49 <smeevil> no tongue on the first date !
20:49 Duckily joined
20:54 <* OliverMT> slowly backs away from this conversation
20:54 <smeevil> :P
20:54 <OliverMT> :D
20:58 jerel joined
21:02 wtetzner joined
21:05 milad joined
21:05 milad joined
21:07 jkraus joined
21:13 The_Brofessor joined
21:18 execb5 joined
21:20 m_m_ joined
21:22 montanonic joined
21:23 celyr joined
21:23 celyr joined
21:28 pankracy joined
21:31 celyr joined
21:31 jdqx joined
21:36 celyr joined
21:38 espam joined
21:40 celyr joined
21:40 celyr joined
21:40 gokr joined
21:41 jerel joined
21:48 hahuang65 joined
21:49 hahuang61 joined
21:50 milad joined
21:54 wallyd joined
21:56 <smeevil> o/
21:58 PaReeOhNos joined
21:58 rschmukler joined
21:58 <smeevil> so, its safe for me to take me shirt off again right :)
21:59 <smeevil> sexy programming time !
22:01 LBRapid joined
22:06 refriedchicken joined
22:06 rschmukler joined
22:09 celyr joined
22:09 celyr joined
22:11 <OliverMT> is genserver logging treated differently? we have a task bring down our genserver.. and we only see an error in the genserver
22:11 <OliverMT> there is no trace of an error in the genserver itself, it's just dead
22:12 wsieroci joined
22:14 <alisdair> what do you mean genserver logging?
22:14 <alisdair> sasl reports?
22:17 <Radar> OliverMT: We had something similar and we were able to debug it by adding :sasl to our application list.
22:18 <Radar> It's a bit noisy but it did point the finger at exactly what was wrong.
22:18 <OliverMT> ok, I already know its whats wrong
22:18 <OliverMT> just wondering why it didnt log
22:18 <OliverMT> good to have that confirmed
22:18 <OliverMT> next question is: if we have it as a worker() why isnt our app restarting it?
22:19 <Radar> Do you have any special restart_type configuration?
22:20 <OliverMT> I have literally this: worker(Core.Pexip.CdrService, [[name: Pexip.ParticipantServer]]),
22:20 <OliverMT> haste: ping
22:20 <OliverMT> I should probably read more up on this :D
22:21 <OliverMT> we just needed to get a prototype out asap
22:21 <alisdair> i believe the default supervisor worker type is transient, which means it won't be restarted if the worker shuts down normally
22:21 <OliverMT> now its time to fix bugs like the genserver dying and not restarting while doing customer demos
22:21 <Radar> alisdair: it is?
22:21 vmoravec joined
22:21 <Radar> OliverMT: Right, that's the child spec. Do you have any options configured on the Supervisor?
22:21 <alisdair> so check that your worker is not returning `:stop` anywhere
22:21 <alisdair> Radar: i think so? yeah
22:21 <OliverMT> no, that is a child on the main phoenix supervisor
22:21 <Radar> [citation needed]
22:22 <OliverMT> so we're doingn it wrong indeed
22:22 <OliverMT> :D
22:22 <Radar> alisdair: https://hexdocs.pm/elixir/Supervisor.Spec.html#worker/3
22:22 <Radar> On the same page: ":permanent - the child process is always restarted"
22:23 <* OliverMT> hands this conversation to his colleague haste
22:23 <OliverMT> :p
22:23 <* haste> was trying to make breakfast for tomorrow :D
22:23 <OliverMT> I have a crying baby on my chest, I win!
22:23 <OliverMT> hurr hurr
22:24 <OliverMT> but with that default option worker() seems like its right
22:24 LBRapid joined
22:24 <OliverMT> maybe its our reboot code that sucks
22:24 <haste> damn those baby cards :D
22:24 <OliverMT> we do some recovery from the db when the genserver starts
22:24 <OliverMT> but a node restart uses the same code, just a little later
22:24 <OliverMT> and that doesnt deadlock at all
22:24 <OliverMT> so very confusing
22:24 <Radar> OliverMT: Did you try the sasl reports yet?
22:26 <haste> We haven't
22:27 <Radar> I'd recommend trying that first.
22:27 <haste> how noisy is a bit noisy? :P
22:27 ZippoWeb joined
22:27 <Radar> It'll tell you when each process is coming up and when it goes down. That's about it.
22:28 <haste> oh, that should be fine
22:28 jeregrine joined
22:29 <OliverMT> Does it go trough logger?
22:29 <OliverMT> We are using a filelogger backend
22:29 <OliverMT> Sending to aws
22:30 <OliverMT> Thx for help btw Radar
22:31 ignacio_ joined
22:31 jkreeftmeijer joined
22:32 <Radar> It'll go to stdout by default
22:32 <alisdair> there's an option to have logger handle sasl reports
22:33 steffkes joined
22:38 rschmukler joined
22:42 DeadTrickster joined
22:42 <haste> nice, thanks :)
22:48 griffinbyatt joined
22:53 sardaukar joined
22:53 jeregrine joined
23:02 nd__ joined
23:03 celyr joined
23:09 DeadTrickster joined
23:19 rschmukler joined
23:33 celyr joined
23:33 celyr joined
23:43 rschmukler joined
23:48 celyr joined
23:53 rschmukler joined