<    April 2017    >
Su Mo Tu We Th Fr Sa  
 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  
00:02 steffkes joined
00:15 Cohedri__ joined
00:21 jkreeftmeijer joined
00:22 Cohedrin joined
00:36 kblake joined
00:44 Cohedrin joined
00:50 codestorm joined
00:58 dimitarvp` joined
01:05 stevecohen joined
01:07 aedigix joined
01:14 bturnbull joined
01:26 <alisdair> so how come reverse/1 is in Enum?
01:29 codestorm joined
01:29 Raticide_ joined
01:32 <Raticide> In a phoenix app I have my users as members of an 'account', what's the best way to split channels based on the account? Should I just use a topic of "chat:lobby:${account_id}" ?
01:33 griffinbyatt joined
01:33 mika__ joined
01:36 whharris joined
01:39 tomterl joined
01:44 soro joined
01:51 chrismccord joined
01:56 Sgeo__ joined
01:57 <iFire> benwilson512: how do I tell the poolboy is working?
01:57 <iFire> I'm getting maxed 1 core and everything is low
01:58 <iFire> with ecto
02:00 Cohedrin joined
02:03 cemilowski joined
02:03 steffkes joined
02:08 harfangk joined
02:16 maxirater joined
02:22 jkreeftmeijer joined
02:25 <benwilson512> iFire: I don't understand what you mean
02:25 <benwilson512> nor do I have any context
02:31 josevalim joined
02:34 griffinbyatt joined
02:38 mika__ joined
02:39 kblake joined
02:47 itsgg joined
02:58 racycle joined
02:59 fastjames joined
03:00 griffinbyatt joined
03:10 wyzzard joined
03:16 nighty-- joined
03:19 nighty-- joined
03:33 raycoll joined
03:40 kblake joined
03:47 cemilowski joined
03:53 raycoll joined
03:56 raycoll joined
03:58 whharris joined
04:03 mika__ joined
04:04 steffkes joined
04:06 raycoll joined
04:15 codestorm joined
04:17 wyzzard joined
04:24 jkreeftmeijer joined
04:25 MarioBranco joined
04:41 kblake joined
04:57 InternetFriend joined
05:02 junsuijin joined
05:07 wyzzard joined
05:11 gvaughn joined
05:12 codestorm joined
05:30 peterpp joined
05:30 Ioyrie joined
05:41 milad joined
05:43 kblake joined
05:50 Cohedrin joined
05:55 cemilowski joined
06:05 steffkes joined
06:17 nomicflux joined
06:26 jkreeftmeijer joined
06:32 tuacker joined
06:33 sevenseacat joined
06:42 tolerablyjake joined
06:45 <OliverMT> benwilson512: if I have four pools and I fill them with a garden hose, when is the third one full?
06:57 jkreeftmeijer joined
07:00 gvaughn joined
07:02 squallstter joined
07:07 m_m joined
07:11 griffinbyatt joined
07:13 jkreeftmeijer joined
07:27 <peterpp> is there a way to make this work? https://gist.github.com/anonymous/cd29e8a7c7cbec9ff6888203ddfd7f01
07:29 whharris joined
07:32 <peterpp> I'm trying to use update_in for nested maps and structs
07:32 <peterpp> should I use something else?
07:37 colrack joined
07:41 codestorm joined
07:49 <Fire-Dragon-DoL> Hello! I have an architecture-wise question which I'm not sure how to handle on Elixir. I have a single queue (AWS SQS) holding various messages divided by group. I want to process the message per group one-by-one, but process N groups in parallel. I was thinking of using new GenStage for fetching messages from SQS, and N GenStage workers based on these groups to digest them. Is it reasonable?
07:50 <Fire-Dragon-DoL> Please note that the operation these workers have to perform is very IO bound, and the number of groups is dynamic, although strictly related to the number of customers (so 1000 customers ~3000 workers), which means I don't think I'll ever hit any CPU limit
07:52 <Fire-Dragon-DoL> My doubt is if I should use a plain GenServer instead of a GenStage since the number of worker is strictly tied to groups and in any case every worker per group can't handle more than one message at a time
07:52 tuacker1 joined
07:52 josevalim joined
07:53 ZippoWeb joined
08:06 steffkes joined
08:10 jkreeftmeijer joined
08:12 griffinbyatt joined
08:19 kblake joined
08:19 dongcarl joined
08:20 robinsjdotcom joined
08:22 milad joined
08:30 whharris joined
08:35 codestorm joined
08:45 dignifiedquire joined
08:46 embik joined
08:48 gvaughn joined
08:49 <embik> hey guys, I'm a bit confused about the workflow when creating models with relationships. When following the docs and adding e.g. belongs_to to the model, I need to modify the migration that creates the underlying table
08:49 <embik> but that changed migration won't be run unless I blank the database and start from new
08:49 <embik> is that how it's supposed to work?
08:49 <Nicd-> no, you create a new migration
08:49 <Nicd-> which docs are you following?
08:50 <embik> should've said I'm using Phoenix, sorry
08:50 <embik> http://www.phoenixframework.org/docs/ecto-models
08:51 <embik> whoops, did not copy the anchor. it's http://www.phoenixframework.org/docs/ecto-models#section-data-relationship-and-dependencies
08:52 <Fire-Dragon-DoL> embik: you alter a migration only if you have never run it, or if you are in development in which case you can rollback the migration. Otherwise, if you need to deploy a new change to db structure, just create a new migration
08:52 <Fire-Dragon-DoL> by "rollback" I mean that you can destroy the DB locally without destroying your business :P
08:53 <embik> oh well, okay. guess that makes more sense
08:54 <embik> Do I create said migration by hand by creating a new file in priv/repo/migrations?
08:54 <Nicd-> your "phoenix.gen.model" step creates the migration
08:54 <Nicd-> you can see it says "creating priv/repo/migrations/20150611051558_create_video.exs"
08:54 <Nicd-> if you need to create one yourself, use "mix ecto.gen.migration <migration_name>"
08:55 <embik> Nicd-: ah, thanks! :-)
08:57 <embik> oh well I should just read the tasks' documentation, it answers my question.
08:57 <embik> RTFM I guess ...
08:59 PaReeOhNos joined
09:12 <embik> okay another question, why is ":utc_datetime" an unknown type when using "mix phoenix.gen.html"? :/
09:13 griffinbyatt joined
09:14 marr joined
09:21 Theophane joined
09:21 <Theophane> hohai!
09:21 meandi joined
09:22 <Theophane> I wanted to know if I could reuse a @type definition from a module in another one and how
09:22 <Theophane> like, I just want to import a type def from a module
09:23 dastagg joined
09:29 mika__ joined
09:30 codestorm joined
09:33 lexmag joined
09:33 <micmus> Theophane: you can use Module.type to refer to a definition from another module
09:37 imush joined
09:44 <Theophane> okay, thanks =)
09:48 icanhazbroccoli joined
09:49 jkreeftmeijer joined
09:52 <Theophane> micmus: will `alias` work on types as well?
09:53 <Theophane> maybe I'm just too biaised by how haskell manages imports & exports…
09:55 gokr joined
09:56 gmcabrita joined
10:00 nighty-- joined
10:07 steffkes joined
10:07 steffkes joined
10:15 griffinbyatt joined
10:18 Gasher joined
10:21 kblake joined
10:21 eddd joined
10:24 codestorm joined
10:27 wong2 joined
10:28 Guest67 joined
10:36 uamana joined
10:37 gvaughn joined
10:41 dimitarvp joined
10:47 wsieroci joined
10:50 jkreeftmeijer joined
10:53 jkreeftmeijer joined
11:10 <micmus> Theophane: on the module part, yes
11:13 <Fire-Dragon-DoL> is mocking or stubbing used in elixir or is it considered a bad practice? I'm writing a module which performs an HTTP call to an AWS service and I don't want to run it during my tests
11:14 <micmus> Fire-Dragon-DoL: the canonical answer to that will be this article http://blog.plataformatec.com.br/2015/10/mocks-and-explicit-contracts/
11:15 <Fire-Dragon-DoL> let me read
11:15 <micmus> Fire-Dragon-DoL: For testing HTTP I like to use https://github.com/PSPDFKit-labs/bypass
11:15 <Fire-Dragon-DoL> I usually know all traps of mocks, I already fell in all of them, but with the new paradigm there might be a good approach :P
11:16 griffinbyatt joined
11:18 codestorm joined
11:21 uamana joined
11:23 eddd joined
11:25 <Fire-Dragon-DoL> mh micmus but that article shows a very wrong approach... I mean, you need to hit the Twitter API and you are testing your controller... and you mock the whole HTTP Client. That's like saying, I'll mock the entire database because I need to have that User returned
11:27 <Fire-Dragon-DoL> oh ok it moves on :P
11:33 leons joined
11:33 rschmukler joined
11:33 greengriminal joined
11:36 cemilowski joined
11:48 MaSven joined
12:07 jhack joined
12:07 steffkes joined
12:08 embik joined
12:12 codestorm joined
12:15 robinsjdotcom joined
12:15 whharris joined
12:16 robinsjdotcom joined
12:17 griffinbyatt joined
12:23 kblake joined
12:25 gvaughn joined
12:36 <Theophane> thanks micmus
12:37 uamana joined
12:38 jkreeftmeijer joined
12:42 codestorm joined
12:50 <iFire> does anyone know if the ecto tests execute on the database?
12:52 <Fire-Dragon-DoL> any convention around test naming scheme? In ruby I was used to put "#methodname do something"
12:54 bturnbull joined
13:13 m_m joined
13:18 griffinbyatt joined
13:22 imush joined
13:30 bturnbull joined
13:37 m_m joined
13:41 lexmag joined
14:07 embik joined
14:09 steffkes joined
14:14 gvaughn joined
14:17 harfangk joined
14:17 embik joined
14:19 griffinbyatt joined
14:27 kblake joined
14:30 m_m joined
14:37 dastagg joined
14:40 jkreeftmeijer joined
14:46 josevalim joined
14:47 wsieroci joined
14:52 bitmod joined
15:05 griffinbyatt joined
15:06 jeznet3 joined
15:12 nomicflux joined
15:16 raycoll joined
15:18 dastagg joined
15:19 LastWhisper____ joined
15:24 racycle joined
15:29 eddd joined
15:29 cemilowski joined
15:29 gvaughn joined
15:29 whharris joined
15:44 kau joined
15:52 nbg joined
16:07 codestorm joined
16:09 jhack_ joined
16:09 steffkes joined
16:09 steffkes joined
16:12 lacour joined
16:20 refriedchicken joined
16:21 whharris joined
16:22 shymega joined
16:23 mika__ joined
16:29 kblake joined
16:30 elixir1923 joined
16:30 <elixir1923> Do any of you use the asdf version manager? If so, how does one update asdf itself?
16:31 <elixir1923> I have v0.2.1 and I would like to upgrade to v.0.3.0
16:32 peterpp joined
16:34 rawtaz joined
16:35 steffkes joined
16:39 cemilowski joined
16:40 hotpancakes joined
16:42 jkreeftmeijer joined
16:43 wong2 joined
16:44 refriedchicken joined
16:46 wsieroci joined
16:58 mika__ joined
17:02 iamvery joined
17:09 Guest67 joined
17:14 eddd joined
17:15 adgtl- left
17:17 meh` joined
17:20 jkreeftmeijer joined
17:23 tolerablyjake joined
17:26 tolerablyjake joined
17:41 griffinbyatt joined
17:56 codestorm joined
17:56 adgtl- joined
17:56 bturnbull joined
18:00 peterpp joined
18:07 eddd joined
18:13 tuacker joined
18:23 codestorm joined
18:36 imush joined
18:39 jkreeftmeijer joined
18:39 peterpp joined
18:43 wyzzard joined
18:43 jkreeftm_ joined
18:44 griffinbyatt joined
18:44 <peterpp> why does mix run my program when I do `mix compile`?
18:46 <asonge> peterpp: do you have code that's not in a module?
18:47 <peterpp> oh
18:47 <peterpp> yes
18:47 MaSven joined
18:47 merlinff joined
18:47 <asonge> well, "compiling" actually means "run the code in these files". defmodule actually emits modules which the compiler stores in .beam files
18:48 <asonge> code not in a module will run at compile time, which is just how macros kinda work.
18:49 <peterpp> when I created a new project with mix, I could find something like a main.ex
18:50 <peterpp> couldn't!
18:51 vendethiel joined
18:53 codestorm joined
18:53 <peterpp> I guess I should've studied the output of `mix help new` first
18:55 <peterpp> pretty quiet in here, especially given the number of users
18:56 zv joined
18:58 diastack joined
19:01 kblake joined
19:02 <lagbox> its saturday
19:02 lexmag joined
19:05 <diastack> the sky is blue
19:05 ffmerlin joined
19:05 Cohedrin joined
19:06 <lixmon> is it bad practice to make an umbrella app?
19:06 ffmerlin joined
19:07 squallstter joined
19:16 <asonge> lixmon: imho, "it depends", umbrella support is generally improving over time, but this is an area under active exploration for best practices.
19:17 <lixmon> thanks asponge
19:17 m_m joined
19:19 ffi_merlin joined
19:20 zv joined
19:22 ffi_merlin joined
19:22 MaSven joined
19:23 codestorm joined
19:25 ffi_merlin joined
19:28 josevalim_ joined
19:31 <peterpp> diastack, good for you! over here the sky's been grey for a week and now it's raining
19:34 wsieroci_ joined
19:36 <lixmon> haha
19:39 tolerablyjake joined
19:42 tolerablyjake joined
19:45 griffinbyatt joined
19:48 zv joined
19:51 ffi_merlin joined
19:53 jkreeftmeijer joined
19:55 ffi_merlin joined
19:56 ffi_merlin joined
20:02 <lixmon> how do you read and write metadata from Mp3 file using Elxir?
20:04 <lixmon> everything I see is built in Python
20:04 <Nicd-> lixmon: try: https://hex.pm/packages?_utf8=✓&search=id3&sort=downloads
20:05 <lixmon> Nicd-: Perfecto thanks much
20:05 <Nicd-> always try searching hex :)
20:06 ffi_merlin joined
20:07 whharris joined
20:08 <ffi_merlin> bind ^] command nicklist scroll +10
20:09 <ffi_merlin> wrong, window haha
20:12 Cohedrin joined
20:12 bitli joined
20:16 strykerkkd joined
20:22 codestorm joined
20:22 ffi_merlin joined
20:24 zv joined
20:44 Ven joined
20:46 ffi_merlin joined
20:46 griffinbyatt joined
20:47 ffi_merlin joined
20:49 ffi_merlin joined
20:50 raycoll joined
20:51 ffi_merlin joined
20:55 jkreeftmeijer joined
20:57 Ven_ joined
21:03 wyzzard joined
21:03 fhoffmann joined
21:03 cemilowski joined
21:04 Gasher joined
21:06 codestorm joined
21:06 kblake joined
21:06 steffkes joined
21:09 samgranieri joined
21:27 Ioyrie joined
21:27 LastWhisper____ joined
21:33 codestorm joined
21:35 samgranieri joined
21:55 jkreeftmeijer joined
21:56 fhoffmann joined
21:58 imush joined
22:10 kblake joined
22:13 coatezy joined
22:19 LastWhisper____ joined
22:30 m_m joined
22:31 m_m joined
22:32 m_m joined
22:35 <LastWhisper____> hey guys im trying to learn a bit more about general application design, and the technology I want to learn on top of that is elixir / phoenix, I was wondering if you guys have any suggestions on reading materials for the former, so going from an idea to model/schema design?
22:37 mika__ joined
22:37 <LastWhisper____> I guess the proper term for that is Data Modeling ?
22:39 <alisdair> data modelling or domain driven design
22:39 codestorm joined
22:40 <asonge> i'd say look at the discussion about the way phoenix currently works and how it will work in the next version (soon to be released, and a huge improvement)
22:40 Gasher joined
22:40 <asonge> this is a lot more important than how your database schema looks precisely
22:41 <LastWhisper____> right... even before defining my schema/model mappings I guess I need to do some reading on how to properly gather requirements and define the business processes, so I was looking for some interesting reading materials
22:44 <asonge> i think the best practices for that are just being ironed out, but the basics have been illustrated in a recent talk or two
22:45 <asonge> but the concepts are pretty simple ones, so i don't know if there's ever going to be that much written on it outside of the guides when phoenix 1.3 is released.
22:46 <alisdair> there was a really good blogpost from i thought soundcloud recently about their application design, but i can't find it now
22:47 <LastWhisper____> yeah I'm really just interested in learning more about how people go from an idea to beginning to design their application, obviously phoenix/elixir will be a little different given the functional approach
22:47 griffinbyatt joined
22:48 <asonge> basically, business logic takes place in a context module with functions, and contexts also group related schemas together (as far as a namespace goes)
22:48 <alisdair> LastWhisper____: https://getpocket.com/a/read/1664643629
22:48 <alisdair> found it
22:48 <alisdair> wait, sorry
22:48 <alisdair> http://philcalcado.com/2017/03/22/pattern_using_seudo-uris_with_microservices.html
22:48 <asonge> login required D:
22:49 <LastWhisper____> Ive nver used getpocket haha -- alright cool let me add this to my reading queue
22:50 samgranieri joined
22:50 <alisdair> it's about distributed systems and identifiers, but i think it has a lot of good points about what you do with your data and things you need to be aware of
22:52 <LastWhisper____> that's pretty cool -- yeah I actually created a custom URI parser/manager for one of my company's internal CRM's to point to all the right places when on different apps
22:53 <LastWhisper____> e.g. I can post partner:vendor_link:encrypted_id
22:53 <LastWhisper____> and if you're on the app, it'll know to deep link to it, if you're on the web, it'll find the actual storefront link for 'em
22:53 <alisdair> yeah we are in the process of switching to something like that, "namespace:xxxxxxxx:collection:xxxxxxxx"
22:54 <LastWhisper____> ya it was a fun project
22:54 <LastWhisper____> it was based on overriding some markdown helpers for links
22:54 <alisdair> so instead of ending up with an integer identifier that could be anything, you know the user, the collection type and the object id just from the identity
22:54 <LastWhisper____> thats cool
23:07 steffkes joined
23:22 dastagg joined
23:33 m_m joined
23:36 mika__ joined
23:47 codestorm joined
23:48 griffinbyatt joined
23:49 PaReeOhNos joined
23:50 <dimitarvp> Can anybody tell me if I can have a Time / DateTime and calculate a new one in the future, given amount of seconds?
23:50 <dimitarvp> without libraries, I mean.
23:56 jkreeftmeijer joined