<    April 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
00:03 cristianR_ joined
00:08 povilas joined
00:09 milad joined
00:22 DLSteve joined
00:23 nighty-- joined
00:28 rschmukler joined
00:32 refriedchicken joined
00:39 rschmukler joined
00:40 griffinbyatt joined
00:46 codestorm joined
00:46 codestorm777 joined
00:48 iCharlie joined
00:55 maxbeizer joined
01:03 milad joined
01:07 rschmukler joined
01:14 lessless joined
01:17 PhatLe_ joined
01:20 chavito joined
01:25 Guest15538 joined
01:27 povilas joined
01:27 unga joined
01:28 willyk joined
01:28 mbwe joined
01:32 pankracy joined
01:36 claudevandort joined
01:38 hellomika joined
01:39 tomterl joined
01:49 griffinbyatt joined
01:51 refriedchicken joined
01:53 steffkes joined
01:55 InternetFriend joined
01:57 wong2 joined
02:02 icanhazbroccoli joined
02:03 codestorm joined
02:15 unga joined
02:17 nahtnam joined
02:23 rschmukler joined
02:28 duane joined
02:35 griffinbyatt joined
02:36 rschmukler joined
02:39 racycle joined
02:42 povilas joined
02:47 jerel joined
02:47 nomicflux joined
02:52 milad joined
02:56 meandi_2 joined
03:03 Cohedrin joined
03:06 harfangk joined
03:10 kblake joined
03:11 rschmukler joined
03:15 siruf joined
03:16 codestorm joined
03:21 bionj joined
03:30 <vans163> iFire: ended up passing a context
03:30 <vans163> context == a map, not sure how to use a struct here
03:31 sevenseacat joined
03:32 jimt_ joined
03:35 raycoll joined
03:41 demo joined
03:41 <demo> hi
03:42 <demo> dasdasd
03:42 chrismccord joined
03:42 akeating joined
03:46 milad joined
03:51 rschmukler joined
03:52 jerel left
03:52 bionj joined
03:54 steffkes joined
03:56 InternetFriend joined
03:58 jimt joined
04:11 Cohedrin joined
04:19 kblake joined
04:32 <wwwd> I'm trying to create a date of birth selector. Currently the date picker is defaulting to 2012/january/01-00:00. Is there a way to get Ecto.DateTime to default to nil so that it does not show a until the user selects one?
04:42 codestorm joined
04:50 lessless joined
04:55 codestorm joined
04:55 steffkes joined
04:55 steffkes joined
04:59 proteusguy joined
05:03 codestorm joined
05:04 kblake joined
05:18 dec0n joined
05:18 sfbw joined
05:28 nForce joined
05:29 duane joined
05:35 teamj joined
05:38 lessless joined
05:40 rschmukler joined
05:45 peterpp joined
05:46 <peterpp> is there no reduce function for streams?
05:49 <micmus> peterpp: there is - Enum.reduce
05:50 <peterpp> oh... thanks ;-)
05:50 <micmus> Enum & Stream are not things on their own - Enum is about consuming an enumerable in an eager way, while Stream is about consuming an enumerable in a lazy way - both work on the same enumerables
05:50 <micmus> to reduce, you always need to "force" (or compute) the whole enumerable, so it needs to always be eager
05:51 <peterpp> ok, thanks for explanation
05:56 CvRoques1 joined
06:02 <whodidthis> can i force trailing slashes with phoenix somehow :thinking:
06:03 tomku joined
06:04 <whodidthis> some static relative paths on a page can really differ depending on this
06:15 PhatLe joined
06:19 sfbw joined
06:20 jmcintosh joined
06:20 <iFire> reduce, stream and recycle
06:21 <iFire> :D
06:23 m_m joined
06:37 rschmukler joined
06:38 Antiarc joined
06:39 manukall joined
06:42 tuacker joined
06:47 CvRoques joined
06:50 steffkes joined
06:50 steffkes joined
07:08 codestorm joined
07:10 lessless joined
07:12 <whodidthis> or can i do the opposite, no trailing slashes, just that it would be uniform and not mess me up hehe
07:19 l14n joined
07:20 sfbw joined
07:20 PhatLe joined
07:20 milad joined
07:20 milad joined
07:22 asabil joined
07:22 refriedchicken joined
07:23 m_m_ joined
07:23 cemilowski joined
07:26 ZippoWeb2 joined
07:28 mark_66 joined
07:31 Gasher joined
07:35 cemilowski joined
07:35 gokr joined
07:43 ivan_ joined
07:45 josevalim joined
07:45 colrack joined
07:45 lessless joined
07:48 robinsjdotcom joined
07:51 tuacker1 joined
07:52 steffkes joined
07:52 steffkes joined
07:53 Sgeo joined
07:57 gregman_ joined
07:57 InternetFriend joined
07:59 Benjojo joined
08:03 codestorm joined
08:04 the_voice_ joined
08:11 akeating joined
08:11 dani0_ joined
08:13 asabil joined
08:17 dani0_ joined
08:17 lessless joined
08:20 sfbw joined
08:25 rschmukler joined
08:26 mattyw joined
08:27 asabil joined
08:39 milad joined
08:39 milad joined
08:50 bionj joined
08:51 marr joined
08:51 steffkes joined
08:51 steffkes joined
08:52 milad joined
08:53 lexmag joined
08:57 codestorm joined
09:05 <whodidthis> i mad a plug
09:09 Taca joined
09:11 colrack joined
09:12 robinsjdotcom joined
09:13 gregman_ left
09:14 cemilowski joined
09:15 steffkes joined
09:15 steffkes joined
09:19 balo joined
09:20 rschmukler joined
09:21 sfbw joined
09:23 wakatara joined
09:24 jimt joined
09:26 juan_ joined
09:27 <juan_> hi anyone here who could help me with a phoenix question?
09:28 dani0_ joined
09:29 <besc> juan_: Just go ahead and ask it :)
09:30 <juan_> besc: hi ok, well I want to catch exceptions like Ecto.NoResultsError and render a specific json response based on the exceptions
09:30 <besc> juan_: Are you on phoenix 1.2 or 1.3?
09:31 <juan_> it looks like I should be able to do this in ErrorView but its just showing the full stracktrace
09:31 codestorm joined
09:31 <juan_> phoenix 1.2.1
09:32 renl joined
09:32 akeating joined
09:33 <renl> hi is there a way to map a string of 8bits to a string of 16bits like <<x :: binary>> = "abcdef" but binary being a 16bit word
09:33 akeating joined
09:33 <besc> juan_: This article might help: http://joshwlewis.com/essays/elixir-error-handling-with-plug/
09:34 jimt_ joined
09:36 <juan_> Hi besc: thanks, this method should work but the wierd thing is shouldn't Ecto.NoResultsError be being caught by ErrorView anyway? Its seems like maybe there is some Plug that doesn't get hooked in in development?
09:36 jkreeftm_ joined
09:36 <besc> juan_: NoResultsError should result in a 404 I believe
09:41 proteusguy joined
09:46 sixstone joined
09:51 bionj joined
09:51 jkreeftmeijer joined
09:53 inoas joined
09:56 CvRoques joined
09:57 jimt joined
09:58 cemilowski joined
10:02 gmcabrita joined
10:17 squallstter joined
10:22 sfbw joined
10:24 greengriminal joined
10:25 codestorm joined
10:38 <ciawal> iex(63)> nil > 0
10:38 <ciawal> true
10:38 <ciawal> :|
10:42 lexmag joined
10:44 duane joined
10:47 dani0_ joined
10:48 steffkes joined
10:48 steffkes joined
10:48 Guest67 joined
10:50 cemilowski joined
10:50 jimt_ joined
10:50 odogono joined
10:51 bionj joined
10:54 <hellomika> ciawal: because nil is an atom (:nil)
10:54 <hellomika> number < atom < reference < function < port < pid < tuple < map < list < bitstring
10:56 pzel joined
11:07 cevado joined
11:08 rschmukler joined
11:19 codestorm joined
11:23 sfbw joined
11:24 PhatLe joined
11:25 PhatLe joined
11:26 PhatLe joined
11:27 PhatLe joined
11:27 PhatLe joined
11:28 PhatLe joined
11:29 PhatLe joined
11:30 PhatLe joined
11:30 PhatLe joined
11:32 PhatLe joined
11:37 <m1dnight_> Hey guys, I'm trying to do an httpoison get with redirect following but for some reason it fails on this particular url
11:37 <m1dnight_> when I try it with curl it seems to work fine
11:37 <craigp> hey all
11:37 <m1dnight_> The rror I get is this one:
11:37 <m1dnight_> https://hastebin.com/uteguyosir.php
11:37 <m1dnight_> I tried with another url (http://call-cc.be, which redirects to https) and that does work.
11:37 <craigp> is a world where `is_map(Date.utc_today)` is true, how do you use guards or otherwise weed out dates?
11:37 <m1dnight_> Have I stumbled upon a bug?
11:38 <craigp> I have a function that recurses over a map or maps, and this is spelling doom for me
11:38 <Nicd-> craigp: a date should match %Date{}
11:38 <craigp> Nicd-: thanks mate
11:39 <m1dnight_> Seems like I'm not the only one with the issue. I found it on the httpoison git
11:39 balo joined
11:44 lstor joined
11:49 <m1dnight_> Ah, I think I found the issue even! :)
11:52 bionj joined
11:52 dani0_ joined
11:54 hellomika left
11:55 DeadTrickster joined
11:57 duane joined
11:57 cristianR_ joined
11:57 dani0_ joined
11:59 InternetFriend joined
12:02 duane joined
12:05 claudevandort joined
12:06 mika_ joined
12:09 pzel joined
12:09 akeating joined
12:11 <Nicd-> what was it?
12:11 <m1dnight_> I havent fixed it
12:11 <m1dnight_> but some redirects have the header "location" and some have the heaer "Location"
12:11 <m1dnight_> so that causes errors
12:12 <Nicd-> it shouldn't :o a bug?
12:12 <m1dnight_> It depends on your webserver i guess
12:12 <m1dnight_> going to do a quick search through the git
12:12 <Nicd-> but I think clients and servers should accept both
12:13 <Nicd-> and treat them the same
12:13 <Nicd-> so is it a bug in httpoison?
12:13 <m1dnight_> oh no, hackney does a to_lower on all the headers
12:13 <m1dnight_> so that shouldn't be it
12:13 <m1dnight_> Well, https://github.com/benoitc/hackney/issues/400
12:13 codestorm joined
12:14 akeating joined
12:14 <m1dnight_> I dont have the time to figure the details out, now
12:14 <m1dnight_> maybe later today
12:14 <m1dnight_> meeting now
12:14 <m1dnight_> got to run, sorry
12:15 CvRoques left
12:22 dimitarvp joined
12:23 sfbw joined
12:24 rschmukler joined
12:31 dani0_ joined
12:33 rschmukler joined
12:34 sfbw joined
12:38 Guest67 joined
12:40 asabil joined
12:41 mpsag joined
12:52 akeating joined
12:53 nomicflux joined
12:53 bionj joined
12:55 eddd joined
12:58 smt joined
12:59 <benwilson512> m1dnight_: what version of hackney are you on?
13:01 maxbeizer joined
13:01 ramortegui joined
13:02 akeating joined
13:03 agit0 joined
13:08 codestorm joined
13:10 smt joined
13:12 chrismccord joined
13:13 gvaughn joined
13:19 sfbw joined
13:23 mattyw joined
13:30 peterpp joined
13:32 PhatLe joined
13:41 mattyw joined
13:43 akeating joined
13:51 Stratus3D joined
13:52 mattyw joined
13:54 bionj joined
13:57 <Stratus3D> I remember seeing a library that could produce colored diffs of Elixir terms but I can't find it. I tried Google and hex.pm but was unable to locate it. Anyone remember the name of the library?
14:00 claudevandort joined
14:00 InternetFriend joined
14:02 codestorm joined
14:07 gvaughn joined
14:08 Hates_ left
14:10 gvaughn joined
14:13 harfangk joined
14:13 InternetFriend joined
14:16 seancribbs joined
14:17 eddd joined
14:20 willyk joined
14:20 <fnux> Wow. Poison is something like twice faster than Json.
14:21 ctp joined
14:22 rschmukler joined
14:25 <seancribbs> fnux: it's pretty good
14:28 codestorm joined
14:36 nighty-- joined
14:41 Jellybob joined
14:42 <micmus> fnux: the parser can be even faster if compiled with HiPE (the partial native compiler for erlang), you can configure this using config :poison, native: true in config/config.exs
14:43 BramD_ joined
14:44 maxbeizer joined
14:46 cdg joined
14:47 akeating joined
14:47 mattyw joined
14:50 racycle joined
14:50 dani0_ joined
14:51 PhatLe joined
14:52 <ivan> oh huh I noticed that native: ... in poison's config file but forgot that config files aren't inherited
14:54 akeating joined
14:54 asabil joined
14:55 bionj joined
14:56 codestorm joined
14:59 codestorm777 joined
14:59 nyaray joined
15:02 mozzarel1 joined
15:03 refriedchicken joined
15:03 andersh_ joined
15:03 HalcyonicStorm_ joined
15:03 lancetw_ joined
15:04 Brend_ joined
15:04 HashNuke_ joined
15:04 tazjin_ joined
15:05 Acidic_ joined
15:05 fishcakez_ joined
15:05 elskwid___ joined
15:05 chops_ joined
15:05 heroiceric____ joined
15:07 hosh_ joined
15:07 s_kilk joined
15:08 ericmj_ joined
15:08 besc_ joined
15:08 spl_ joined
15:08 blambi` joined
15:09 wsgs joined
15:09 cevado joined
15:09 sgarciapdx_ joined
15:09 slashrsm_ joined
15:09 mitchellvanw_ joined
15:09 esmiurium_ joined
15:09 dnorris_ joined
15:09 dmilith- joined
15:10 cryptomata_ joined
15:10 Peregrin- joined
15:10 machuga_ joined
15:10 haste_ joined
15:11 vili_ joined
15:11 ckrailo joined
15:11 coryschmitt joined
15:11 ckrailo joined
15:11 askatasuna joined
15:11 Fire-Dragon-DoL joined
15:11 thread joined
15:11 Frost joined
15:11 skace joined
15:12 dani0_ joined
15:12 CARAM__ joined
15:12 seungha_________ joined
15:13 billstclair joined
15:14 lattenwald joined
15:15 proteusguy joined
15:19 Yonk__ joined
15:19 danmcclain joined
15:20 ahf joined
15:23 jlouis joined
15:26 <drewolson> does anyone know if there are plans to add something like http://rmosolgo.github.io/graphql-ruby/schema/limiting_visibility to absinthe?
15:26 <drewolson> seems like it would be a nice to have feature
15:26 <drewolson> (it may already exist and i just missed it)
15:28 icecreamcohen joined
15:28 jkreeftmeijer joined
15:29 Uniaika joined
15:30 jkreeftmeijer joined
15:31 dani0_ joined
15:31 <drewolson> i suppose it could probably be solved via a plugin, but i don't know much about how they work yet
15:33 <drewolson> it seems potentially the adapter behavior could be expanded to allow returning `nil` for a field that shouldn't be accessed. though i don't know if adapters have access to the context at a given node.
15:35 craigger joined
15:35 tuacker joined
15:36 masteinhauser joined
15:38 elmcrest joined
15:40 rpip_ joined
15:41 gvaughn_ joined
15:41 haste joined
15:42 bitmod joined
15:45 dani0_ joined
15:48 gvaughn_ joined
15:54 davidw joined
15:56 bionj joined
15:56 amclain joined
15:57 kblake joined
15:58 jmiven joined
15:59 jmiven joined
16:01 bionj joined
16:10 kblake joined
16:12 ejpcmac joined
16:14 jamesdphillips_ joined
16:16 cevado joined
16:17 racycle joined
16:20 jkreeftmeijer joined
16:21 likestoplay joined
16:22 mattyw joined
16:26 webdev007 joined
16:29 greengriminal joined
16:29 jkreeftm_ joined
16:29 gvaughn joined
16:31 dignifiedquire_ joined
16:31 lancetw_ joined
16:31 chrismcc_ joined
16:32 Brend_ joined
16:32 HashNuke_ joined
16:32 hxegon_a1k joined
16:32 xsmalbil joined
16:32 nyaray joined
16:33 rekyuu_ joined
16:33 teamj joined
16:33 Xikeon joined
16:33 lopex joined
16:33 m1dnight_ joined
16:35 C0deMaver1ck joined
16:35 vegax87 left
16:36 minus joined
16:38 Gasher joined
16:38 jeffweiss joined
16:40 mika_ joined
16:41 gvaughn joined
16:44 josevalim joined
16:45 uamana joined
16:45 masteinhauser joined
16:52 rschmukler joined
16:52 imush joined
16:53 mika_ joined
16:53 HashNuke joined
16:53 peanutlove_ joined
16:54 m_m joined
16:56 milad joined
16:56 milad joined
16:57 jkreeftmeijer joined
17:00 jlpeters joined
17:00 Isaiah joined
17:00 sa1_ joined
17:00 tomia_ joined
17:01 joshdholtz joined
17:01 DavidAntaramian joined
17:01 gjaldon__ joined
17:01 jadams|cloud joined
17:05 rschmukler joined
17:09 meh` joined
17:19 <vans163> I made a macro shortcut for __ENV__.line but now everytime I use it, i get this warning.
17:19 <vans163> warning: variable "__LINE__" does not exist and is being expanded to "__LINE__()", please use parentheses to remove the ambiguity or change the variable name
17:20 <vans163> Anyway to squelch it to somehow deal with it?
17:21 <Ankhers> Add the parens?
17:21 <vans163> Ankhers: not an option it has to behave like __MODULE__ for example
17:21 MaSven joined
17:28 Cohedrin joined
17:29 LastWhisper____ joined
17:31 bitmod joined
17:35 fishcakez joined
17:36 Miah_ joined
17:39 elmcrest joined
17:42 bpmcd joined
17:46 steffkes joined
17:46 steffkes joined
17:53 refriedchicken joined
17:54 ZippoWeb2 joined
17:55 Internet1riend joined
17:55 webdev007 joined
18:00 racycle joined
18:00 squallstter joined
18:00 <codestorm777> benwilson512: hello. Question for you - is there a way to enforce uniqueness on a field. I want to have a SKU, and there should never be more than one object with the same SKU. Would I need to use an ID type for that? The SKUs are strings
18:01 bionj_ joined
18:04 <codestorm777> oh, maybe that's something I would do in ecto...
18:04 <Ankhers> codestorm777: You can validate uniqueness of the field in ecto, you can also mark the field as unique within your database.
18:05 <codestorm777> thanks Ankhers, googling now...
18:05 termos joined
18:06 davisp left
18:06 kblake joined
18:07 mika_ joined
18:09 steffkes_ joined
18:09 steffkes_ joined
18:13 lalo2302 joined
18:17 s_kilk joined
18:18 asabil joined
18:19 pankracy joined
18:20 Cohedrin joined
18:25 SoreGums joined
18:31 mischov joined
18:37 rschmukler joined
18:42 chops joined
18:43 codestorm joined
18:47 codestorm777 joined
18:48 rschmukler joined
18:48 refriedchicken joined
18:50 m_m joined
18:51 webdev007 joined
18:58 refriedchicken66 joined
18:58 dnorris joined
18:59 kyrix joined
19:03 dani0_ joined
19:04 dnorris joined
19:06 m_m joined
19:06 kblake joined
19:07 kblake joined
19:08 kblake joined
19:09 kblake joined
19:10 marr joined
19:10 cevado joined
19:10 kblake joined
19:10 colrack joined
19:12 Ioyrie joined
19:15 rschmukler joined
19:21 mattyw joined
19:24 cevado joined
19:24 Gringill joined
19:28 josevalim_ joined
19:34 jorendorff joined
19:40 dnorris joined
19:41 martin_langhoff joined
19:41 rschmukler joined
19:55 bturnbull joined
19:59 tomaz_b joined
20:01 bionj joined
20:04 lbotos__ joined
20:06 milad joined
20:09 drincruz joined
20:11 jeffweiss joined
20:21 lexmag joined
20:21 <mika_> is "alias __MODULE__" kosher?
20:25 mika_ joined
20:29 cdg joined
20:35 imush joined
20:35 tolerablyjake joined
20:37 Quanttek joined
20:38 <sorentwo> mika_: sure, it's used fairly regularly
20:38 jkreeftmeijer joined
20:38 <sorentwo> Curious, is anybody picking up the elixirfmt project? https://github.com/beamcommunity/beamcommunity.github.com/wiki/Project:-Elixir#idea-3-elixirfmt
20:38 <mika_> thanks, I wasn't sure :)
20:40 <Quanttek> Hey there! Quick question: I want to iterate through a list and process each iteration a variable number of elements. How do I do that? I basically have a list and a list of configuration values with a associated count for the number of elements to be processed with that value. Tried to use comprehensions but can't 'pop' the elements of that list b
20:40 <Quanttek> ecause of the scoping
20:50 dch_ joined
20:50 greengriminal joined
21:04 jkreeftmeijer joined
21:06 vifino joined
21:08 dastagg joined
21:15 cdg joined
21:16 steffkes joined
21:16 steffkes joined
21:17 sfbw joined
21:18 <gausby> Quanttek: could you create a gist with an example of the scenario ?
21:19 kau joined
21:20 bionj joined
21:23 potatosalad joined
21:27 chrismccord joined
21:32 ctp joined
21:32 dch_ joined
21:54 colrack joined
21:57 <Quanttek> @gausby https://gist.github.com/Quanttek/77e2c111ffd74f5496171aef0527b950
21:58 rschmukler joined
21:58 mwbrown joined
22:02 sfbw joined
22:09 Cohedrin joined
22:09 sfbw joined
22:15 DeadTrickster joined
22:22 <drincruz> quit
22:25 robinsjdotcom joined
22:27 rschmukler joined
22:35 PhatLe joined
22:35 PhatLe joined
22:37 junsuiji1 joined
22:43 refriedchicken joined
22:55 edmz joined
22:56 codestorm joined
22:58 <mika_> I have a struct with defstruct [bit: <<0::4>>]
22:59 <mika_> when I try to use the struct, I get an error... "no function clause matching in :elixir_bitstring.extract_bit_type/2"
22:59 <mika_> I'm not sure why... thoughts?
23:00 <seancribbs> mika_: do you mean size(4)
23:01 <* seancribbs> shrugs
23:01 <mika_> yes, same error using <<0::size(4)>>
23:02 <seancribbs> try adding bits to the type?
23:02 <mika_> if I don't specify a size, no errors (but of course it's 8 bit now)
23:05 jkreeftmeijer joined
23:07 greengriminal joined
23:11 kblake joined
23:16 steffkes joined
23:20 sfbw joined
23:20 praveen joined
23:24 rschmukler joined
23:34 PaReeOhNos joined
23:34 potatosalad joined