mdbm_

Activity Graph

Page 1 of 3 | Next »

2019-09-18

[05:43:37] mdbm_: has joined #elixir-lang
[09:00:25] mdbm_: Remote host closed the connection

2019-09-14

[09:17:42] mdbm_: has joined #elixir-lang
[12:24:12] mdbm_: Ping timeout: 245 seconds
[13:42:51] mdbm_: has joined #elixir-lang
[15:59:53] mdbm_: Ping timeout: 245 seconds

2019-09-03

[06:41:12] mdbm_: has joined #elixir-lang
[07:20:03] mdbm_: Ping timeout: 245 seconds

2019-09-02

[10:04:06] mdbm_: has joined #elixir-lang
[10:23:47] mdbm_: Ping timeout: 245 seconds
[14:22:58] mdbm_: has joined #elixir-lang
[19:02:57] mdbm_: Ping timeout: 245 seconds

2019-09-01

[15:03:57] mdbm_: has joined #elixir-lang
[16:39:15] mdbm_: Read error: Connection reset by peer
[16:40:08] mdbm_: has joined #elixir-lang
[16:51:02] mdbm_: Ping timeout: 258 seconds

2019-08-30

[02:01:11] mdbm_: has joined #elixir-lang
[04:03:26] mdbm_: Read error: Connection reset by peer
[04:03:36] mdbm_: has joined #elixir-lang
[05:01:20] mdbm_: Read error: Connection reset by peer
[05:01:48] mdbm_: has joined #elixir-lang
[13:50:52] mdbm_: Ping timeout: 245 seconds

2019-08-29

[09:13:29] mdbm_: has joined #elixir-lang
[11:24:38] mdbm_: Ping timeout: 245 seconds

2019-08-27

[10:10:44] mdbm_: has joined #elixir-lang
[11:19:18] mdbm_: Ping timeout: 258 seconds
[14:57:46] mdbm_: has joined #elixir-lang
[18:41:43] mdbm_: Ping timeout: 245 seconds

2019-08-24

[19:23:12] mdbm_: has joined #elixir-lang
[19:27:58] mdbm_: Ping timeout: 245 seconds

2019-08-23

[07:01:27] mdbm_: has joined #elixir-lang
[08:47:36] mdbm_: Ping timeout: 244 seconds
[09:28:37] mdbm_: has joined #elixir-lang
[10:47:16] mdbm_: Ping timeout: 272 seconds
[11:09:42] mdbm_: has joined #elixir-lang
[12:20:22] mdbm_: Ping timeout: 272 seconds

2019-08-22

[12:07:07] mdbm_: has joined #elixir-lang
[12:30:25] mdbm_: Ping timeout: 276 seconds

2019-08-21

[08:39:29] mdbm_: has joined #elixir-lang
[09:35:28] mdbm_: Ping timeout: 258 seconds
[11:33:12] mdbm_: has joined #elixir-lang
[11:56:10] mdbm_: Ping timeout: 246 seconds
[13:24:13] mdbm_: has joined #elixir-lang
[14:09:07] mdbm_: is it possible to pattern match on a struct and on a map, I mean have two different functions who will be called whether a map is given or a struct?
[14:10:40] mdbm_: gamache, it can be any Ecto Schema struct, so I'll just try %{__struct__: StructName} then
[14:22:03] mdbm_: gamache, if I assign something into conn, typically I'll have conn.assign.some_var in my controller action? just seems long (I assign the locale in the conn and must often do conn.assign.locale I think)
[15:21:08] mdbm_: Ping timeout: 248 seconds
[20:27:29] mdbm_: has joined #elixir-lang
[21:12:08] mdbm_: Ping timeout: 245 seconds

2019-08-20

[08:08:40] mdbm_: has joined #elixir-lang
[09:09:40] mdbm_: Ping timeout: 264 seconds
[13:37:03] mdbm_: has joined #elixir-lang
[16:01:26] mdbm_: Ping timeout: 272 seconds
[16:30:20] mdbm_: has joined #elixir-lang
[17:21:48] mdbm_: Ping timeout: 258 seconds
[18:16:08] mdbm_: has joined #elixir-lang
[18:35:01] mdbm_: Ping timeout: 258 seconds

2019-08-19

[06:57:02] mdbm_: has joined #elixir-lang
[08:42:02] mdbm_: string interpolation doesn't work inside a sigil like: ~E(<link rel="canonical" href="#{path}" />) what should I write instead?
[09:00:52] mdbm_: Ping timeout: 245 seconds
[10:49:16] mdbm_: has joined #elixir-lang
[11:23:23] mdbm_: Ping timeout: 245 seconds

2019-08-18

[15:57:10] mdbm_: has joined #elixir-lang
[16:03:48] mdbm_: Ping timeout: 245 seconds
[17:15:46] mdbm_: has joined #elixir-lang
[17:30:38] mdbm_: Read error: Connection reset by peer

2019-08-07

[05:08:30] mdbm_: has joined #elixir-lang
[05:39:47] mdbm_: Ping timeout: 248 seconds
[06:35:57] mdbm_: has joined #elixir-lang
[08:36:43] mdbm_: sometimes I don't know whether to use string or atoms. E.g. I create a function that allows options as a keyword list. Should the user of the function do: [...], type: :textarea or [...], type: "textarea"
[10:59:38] mdbm_: Ping timeout: 245 seconds
[13:46:52] mdbm_: has joined #elixir-lang
[14:20:22] mdbm_: Ping timeout: 246 seconds

2019-08-06

[09:51:45] mdbm_: has joined #elixir-lang
[10:37:57] mdbm_: Ping timeout: 245 seconds
[14:16:53] mdbm_: has joined #elixir-lang
[15:37:59] mdbm_: Quit: Leaving

2019-08-02

[05:15:34] mdbm_: has joined #elixir-lang
[06:20:27] mdbm_: Ping timeout: 245 seconds
[06:50:46] mdbm_: has joined #elixir-lang
[07:05:03] mdbm_: Ping timeout: 245 seconds
[08:12:05] mdbm_: has joined #elixir-lang
[09:15:40] mdbm_: Ping timeout: 272 seconds
[16:39:45] mdbm_: has joined #elixir-lang
[16:47:31] mdbm_: Ping timeout: 246 seconds

2019-08-01

[06:11:09] mdbm_: has joined #elixir-lang
[06:28:54] mdbm_: Ping timeout: 272 seconds
[07:47:37] mdbm_: has joined #elixir-lang
[08:00:31] mdbm_: Ping timeout: 246 seconds
[12:22:52] mdbm_: has joined #elixir-lang
[12:29:19] mdbm_: Ping timeout: 246 seconds

2019-07-31

[17:10:57] mdbm_: has joined #elixir-lang
[18:31:19] mdbm_: Ping timeout: 246 seconds

2019-07-30

[07:08:57] mdbm_: has joined #elixir-lang
[07:11:06] mdbm_: Read error: Connection reset by peer
[09:29:43] mdbm_: has joined #elixir-lang
[11:19:14] mdbm_: is there any phoenix demo/example application out there that is a little more than just a CRUD of one single entity?
[11:53:47] mdbm_: Ping timeout: 268 seconds
[13:41:52] mdbm_: has joined #elixir-lang
[18:07:47] mdbm_: Ping timeout: 258 seconds

2019-07-29

[16:00:31] mdbm_: has joined #elixir-lang
[17:20:38] mdbm_: Ping timeout: 272 seconds

2019-07-28

[08:15:17] mdbm_: has joined #elixir-lang
[08:19:23] mdbm_: serafeim, hey, you here?
[10:39:30] mdbm_: Ping timeout: 248 seconds
[12:50:14] mdbm_: has joined #elixir-lang
[13:02:02] mdbm_: Ping timeout: 272 seconds
[15:29:16] mdbm_: has joined #elixir-lang
[16:51:18] mdbm_: Ping timeout: 245 seconds

2019-07-27

[08:01:27] mdbm_: has joined #elixir-lang
[09:02:01] mdbm_: is there a better way to write this?
[09:02:08] mdbm_: Enum.all?(some_list, &(String.trim(&1) == ""))
[10:42:57] mdbm_: Ping timeout: 245 seconds

2019-07-23

[10:13:35] mdbm_: has joined #elixir-lang
[10:55:37] mdbm_: serafeim, hey still here? I have a question about your code
[10:57:15] mdbm_: serafeim, User.db_user_changeset(attrs) will "cast", i.e. if I understood correctly, filter out unnecessary values from the map passed to it (the params). So how does add_image_path_to_user(attrs) have the "photo" key after the cast? Because I do not see "photo" included in the cast.
[11:00:53] mdbm_: serafeim, the map can be changed, because a *new* map may be returned
[11:01:03] mdbm_: so not really changed..
[11:01:29] mdbm_: ah sorry, ok, wait i'm confused now, i'll read the code again
[11:02:52] mdbm_: yeah, you're right
[11:03:39] mdbm_: serafeim, but... what if the file is uploaded and then the insert fails... it's not atomic
[11:28:47] mdbm_: serafeim, can you send me the correction?
[11:37:35] mdbm_: Ping timeout: 244 seconds

2019-07-22

[10:59:43] mdbm_: has joined #elixir-lang
[11:56:43] mdbm_: Ping timeout: 245 seconds

2019-07-20

[02:22:49] mdbm_: has joined #elixir-lang
[02:42:09] mdbm_: Read error: Connection reset by peer
[02:42:34] mdbm_: has joined #elixir-lang
[05:15:34] mdbm_: Ping timeout: 272 seconds
[10:06:18] mdbm_: has joined #elixir-lang
[10:14:33] mdbm_: Ping timeout: 244 seconds

2019-07-19

[02:13:49] mdbm_: has joined #elixir-lang
[04:14:41] mdbm_: Read error: Connection reset by peer
[04:15:07] mdbm_: has joined #elixir-lang
[04:55:30] mdbm_: Quit: Leaving
[05:11:52] mdbm_: has joined #elixir-lang
[06:04:01] mdbm_: Ping timeout: 244 seconds
[17:00:17] mdbm_: has joined #elixir-lang
[17:29:22] mdbm_: Read error: Connection reset by peer
[17:30:10] mdbm_: has joined #elixir-lang
[19:13:49] mdbm_: Ping timeout: 246 seconds

2019-07-18

[02:54:58] mdbm_: has joined #elixir-lang
[05:14:16] mdbm_: Ping timeout: 246 seconds
[05:39:41] mdbm_: has joined #elixir-lang
[06:57:27] mdbm_: Quit: Leaving
[08:26:15] mdbm_: has joined #elixir-lang
[09:50:13] mdbm_: Ping timeout: 268 seconds
[17:56:51] mdbm_: has joined #elixir-lang
[18:11:17] mdbm_: Ping timeout: 245 seconds

2019-07-17

[13:05:05] mdbm_: has joined #elixir-lang
[13:23:54] mdbm_: Ping timeout: 272 seconds
[13:43:32] mdbm_: has joined #elixir-lang
[14:30:27] mdbm_: Ping timeout: 245 seconds

2019-07-16

[09:08:17] mdbm_: has joined #elixir-lang
[09:54:20] mdbm_: Read error: Connection reset by peer
[09:54:49] mdbm_: has joined #elixir-lang
[10:02:23] mdbm_: Quit: Leaving

2019-07-14

[13:07:27] mdbm_: has joined #elixir-lang
[13:17:21] mdbm_: Ping timeout: 258 seconds

2019-07-13

[10:31:39] mdbm_: has joined #elixir-lang
[10:41:19] mdbm_: Ping timeout: 246 seconds

2019-07-11

[03:26:46] mdbm_: has joined #elixir-lang
[05:14:11] mdbm_: Ping timeout: 258 seconds

2019-07-09

[18:46:05] mdbm_: has joined #elixir-lang
[18:55:29] mdbm_: Ping timeout: 268 seconds

2019-07-08

[04:13:04] mdbm_: has joined #elixir-lang
[04:14:38] mdbm_: serafeim, good morning
[06:00:47] mdbm_: Ping timeout: 258 seconds
[07:10:16] mdbm_: has joined #elixir-lang
[07:37:10] mdbm_: serafeim, how much data can you insert in a cookie? you mentioned you reached once the cap limit
[07:38:12] mdbm_: serafeim, yeah but how should I translate this in terms of amount of data that can be stored?
[07:39:25] mdbm_: serafeim, well in the end, what I really have is text in the cookie I guess, so I have to count in terms of UTF8 bytes?
[07:39:56] mdbm_: serafeim, cookies are text files right?
[07:40:57] mdbm_: serafeim, yes and they are files as well
[07:44:26] mdbm_: serafeim, do you use not_qwerty123?
[07:45:17] mdbm_: serafeim, check strength of password
[07:45:55] mdbm_: nvm I check the code and it loads 40k+ common words (passwords) in to memory
[07:46:03] mdbm_: was wondering how much memory that consumes
[10:07:29] mdbm_: Ping timeout: 248 seconds

2019-07-02

[01:45:05] mdbm_: has joined #elixir-lang
[03:21:12] mdbm_: Quit: Leaving

2019-07-01

[11:37:50] mdbm_: has joined #elixir-lang
[12:20:53] mdbm_: Read error: Connection reset by peer
[12:21:18] mdbm_: has joined #elixir-lang
[14:05:53] mdbm_: Ping timeout: 248 seconds
[14:21:58] mdbm_: has joined #elixir-lang
[19:35:27] mdbm_: Ping timeout: 245 seconds

2019-06-28

[03:10:52] mdbm_: has joined #elixir-lang
[04:36:30] mdbm_: Ping timeout: 252 seconds
[04:52:03] mdbm_: has joined #elixir-lang
[07:48:58] mdbm_: Ping timeout: 258 seconds

2019-06-27

[18:38:27] mdbm_: has joined #elixir-lang
[19:44:12] mdbm_: Ping timeout: 245 seconds

2019-06-24

[03:53:34] mdbm_: has joined #elixir-lang
[04:27:56] mdbm_: Ping timeout: 272 seconds
[09:22:52] mdbm_: has joined #elixir-lang
[12:11:35] mdbm_: Ping timeout: 244 seconds
[12:25:58] mdbm_: has joined #elixir-lang
[12:32:33] mdbm_: Ping timeout: 268 seconds
[15:17:07] mdbm_: has joined #elixir-lang
[18:51:43] mdbm_: Ping timeout: 245 seconds

2019-06-23

[06:21:37] mdbm_: has joined #elixir-lang
[12:26:37] mdbm_: Ping timeout: 244 seconds
[12:36:40] mdbm_: has joined #elixir-lang
[13:26:22] mdbm_: how do you manage to stay connected forever?
[14:29:11] mdbm_: Ping timeout: 268 seconds
[14:47:26] mdbm_: has joined #elixir-lang
[15:01:43] mdbm_: andersju, actually i nhave a VPS server
[18:24:58] mdbm_: Ping timeout: 246 seconds

2019-06-22

[04:41:44] mdbm_: has joined #elixir-lang
[06:45:53] mdbm_: Ping timeout: 248 seconds
[08:58:28] mdbm_: has joined #elixir-lang
[09:02:59] mdbm_: smeevil_, hi?
[13:07:15] mdbm_: Ping timeout: 268 seconds
[14:27:30] mdbm_: has joined #elixir-lang
[16:20:15] mdbm_: Read error: Connection reset by peer

2019-06-21

[09:57:18] mdbm_: serafeim, do we need a third party lib for dates like the one you use timex? I thought elixir had now a new date api
[10:02:02] mdbm_: it seems a pretty basic demand
[10:02:18] mdbm_: surprised then that you cannot do that with the included modules really
[10:04:57] mdbm_: serafeim, what about the combination of those functions:
[10:05:05] mdbm_: https://hexdocs.pm/elixir/DateTime.html#from_unix/3
[10:05:06] mdbm_: https://hexdocs.pm/elixir/DateTime.html#shift_zone/3
[10:05:41] mdbm_: you get your utc datetime and change the timezone according to your local timezone
[10:06:42] mdbm_: serafeim, database should always use UTC as timezone, so i don't see the problem, except if you're working with a legacy database
[10:07:40] mdbm_: sorry i misunderstood
[10:10:17] mdbm_: serafeim, interesting because if I remember well, the new date api in elixir is pretty recent, compared to timex. I'd have expected that the API would be at least as good. But I guess they have their reasons
[10:27:12] mdbm_: maybe I'm just blind but I can't see the docs for Ecto.Migration
[10:27:13] mdbm_: https://hexdocs.pm/ecto
[10:30:32] mdbm_: ah right I remember it's split in two..
[12:21:58] mdbm_: serafeim, I have a noob question about changeset. In this code variable translations contains user-provided data, so I need to use cast/4 instead of change/2
[12:22:00] mdbm_: https://pastebin.com/raw/iFitUiAZ
[12:22:33] mdbm_: but I don't understand how to use cast because I need to cast on the children of Organisation (translations, struct OrganizationTranslation)
[12:23:22] mdbm_: also translations is an array
[12:25:27] mdbm_: serafeim, np
[12:50:53] mdbm_: Ping timeout: 245 seconds
[13:59:20] mdbm_: has joined #elixir-lang
[15:11:16] mdbm_: How would you transform
[15:11:26] mdbm_: %{"en" => "dog", "fr" => "chien"}
[15:11:31] mdbm_: into [%{language: "en", text: "dog"}, %{language: "fr", text: "chien"}] ?
[15:27:28] mdbm_: josevalim, thanks josé! so easy with Enum.map, forgot I can pass a map
[15:27:32] mdbm_: Enum.map(translations, fn {language, text} -> %{language: language, text: text} end)
[20:40:33] mdbm_: Ping timeout: 248 seconds