mdbm

Activity Graph

Page 1 of 6 | Next »

2019-09-15

[02:35:24] mdbm: has joined #elixir-lang
[03:30:22] mdbm: Ping timeout: 268 seconds
[03:36:39] mdbm: has joined #elixir-lang
[05:26:41] mdbm: Ping timeout: 265 seconds
[08:35:56] mdbm: has joined #elixir-lang
[11:55:22] mdbm: Ping timeout: 258 seconds
[12:02:37] mdbm: has joined #elixir-lang
[12:29:37] mdbm: Ping timeout: 245 seconds

2019-09-14

[08:40:10] mdbm: has joined #elixir-lang
[09:20:47] mdbm: Ping timeout: 276 seconds

2019-09-13

[07:12:00] mdbm: has joined #elixir-lang
[09:27:32] mdbm: Ping timeout: 276 seconds
[09:28:01] mdbm: has joined #elixir-lang
[12:19:47] mdbm: Ping timeout: 276 seconds

2019-09-07

[06:24:10] mdbm: has joined #elixir-lang
[06:37:52] mdbm: Ping timeout: 264 seconds

2019-09-03

[05:43:10] mdbm: has joined #elixir-lang
[06:44:12] mdbm: Ping timeout: 245 seconds
[07:28:51] mdbm: has joined #elixir-lang
[08:20:28] mdbm: Ping timeout: 264 seconds
[08:34:20] mdbm: has joined #elixir-lang
[13:09:46] mdbm: Ping timeout: 246 seconds
[13:38:13] mdbm: has joined #elixir-lang
[15:44:13] mdbm: Quit: Leaving

2019-09-02

[03:45:34] mdbm: has joined #elixir-lang
[06:22:07] mdbm: Ping timeout: 245 seconds
[06:36:23] mdbm: has joined #elixir-lang
[07:37:53] mdbm: Read error: Connection reset by peer
[07:38:20] mdbm: has joined #elixir-lang
[07:48:13] mdbm: Ping timeout: 246 seconds
[09:21:47] mdbm: has joined #elixir-lang
[10:06:28] mdbm: Ping timeout: 246 seconds
[12:28:13] mdbm: has joined #elixir-lang
[14:25:02] mdbm: Ping timeout: 245 seconds

2019-09-01

[12:30:23] mdbm: has joined #elixir-lang
[15:07:32] mdbm: Ping timeout: 258 seconds

2019-08-30

[01:15:52] mdbm: has joined #elixir-lang
[02:01:05] mdbm: Read error: Connection reset by peer

2019-08-29

[04:36:49] mdbm: has joined #elixir-lang
[06:57:45] mdbm: Ping timeout: 268 seconds
[08:16:28] mdbm: has joined #elixir-lang
[09:16:28] mdbm: Ping timeout: 246 seconds
[16:31:35] mdbm: has joined #elixir-lang
[16:37:26] mdbm: Ping timeout: 272 seconds

2019-08-28

[05:10:32] mdbm: has joined #elixir-lang
[05:29:42] mdbm: Ping timeout: 272 seconds
[12:42:57] mdbm: has joined #elixir-lang
[16:19:38] mdbm: Ping timeout: 245 seconds

2019-08-27

[05:49:50] mdbm: has joined #elixir-lang
[08:03:16] mdbm: Ping timeout: 248 seconds
[08:29:06] mdbm: has joined #elixir-lang
[09:03:36] mdbm: Ping timeout: 258 seconds
[09:30:19] mdbm: has joined #elixir-lang
[10:13:48] mdbm: Ping timeout: 245 seconds

2019-08-24

[07:35:34] mdbm: has joined #elixir-lang
[07:58:52] mdbm: Read error: Connection reset by peer
[19:21:49] mdbm: has joined #elixir-lang
[19:26:18] mdbm: Ping timeout: 245 seconds

2019-08-23

[04:38:06] mdbm: has joined #elixir-lang
[05:03:23] mdbm: Ping timeout: 245 seconds
[06:43:38] mdbm: has joined #elixir-lang
[07:01:22] mdbm: Read error: Connection reset by peer
[09:21:26] mdbm: has joined #elixir-lang
[09:31:43] mdbm: Ping timeout: 245 seconds
[11:03:31] mdbm: has joined #elixir-lang
[11:11:42] mdbm: Ping timeout: 245 seconds
[13:51:42] mdbm: has joined #elixir-lang
[14:58:04] mdbm: Ping timeout: 272 seconds
[20:08:52] mdbm: has joined #elixir-lang
[20:14:06] mdbm: Ping timeout: 272 seconds

2019-08-22

[11:08:18] mdbm: has joined #elixir-lang
[11:34:41] mdbm: I have a small piece of code using if's and else's
[11:34:50] mdbm: wonder if I can improve this code:
[11:34:51] mdbm: https://pastebin.com/raw/KWx5FSNE
[11:48:01] mdbm: thank you
[12:10:55] mdbm: Ping timeout: 276 seconds
[12:52:39] mdbm: has joined #elixir-lang
[14:04:35] mdbm: benwilson512, ok, I did not think about that
[14:12:49] mdbm: benwilson512, thank you, looks nice. shouldn't I code defensive and still check for the "" string?
[14:35:39] mdbm: ok thank you
[14:56:18] mdbm: Ping timeout: 245 seconds
[14:58:05] mdbm: has joined #elixir-lang
[15:36:36] mdbm: Ping timeout: 248 seconds
[15:38:24] mdbm: has joined #elixir-lang
[19:20:04] mdbm: Ping timeout: 248 seconds

2019-08-21

[07:12:52] mdbm: has joined #elixir-lang
[07:45:58] mdbm: dysfun, little struggle with FP paradigm again:D How should I make this code work again? var = 1 Enum.each([1..5], fn number -> var = var + number end)
[07:46:17] mdbm: dysfun, the var variable doesn't change
[07:48:13] mdbm: ok thank you:)
[08:42:57] mdbm: Ping timeout: 245 seconds
[09:31:59] mdbm: has joined #elixir-lang
[11:35:52] mdbm: Ping timeout: 245 seconds

2019-08-20

[03:51:37] mdbm: has joined #elixir-lang
[05:51:01] mdbm: Ping timeout: 250 seconds
[05:56:55] mdbm: has joined #elixir-lang
[08:12:40] mdbm: Ping timeout: 264 seconds
[13:24:56] mdbm: has joined #elixir-lang
[13:40:50] mdbm: Ping timeout: 272 seconds
[15:58:22] mdbm: has joined #elixir-lang
[16:30:48] mdbm: Read error: Connection reset by peer
[17:46:26] mdbm: has joined #elixir-lang
[18:18:47] mdbm: Ping timeout: 245 seconds

2019-08-19

[04:09:13] mdbm: has joined #elixir-lang
[04:12:21] mdbm: Read error: Connection reset by peer
[04:15:02] mdbm: has joined #elixir-lang
[04:40:37] mdbm: Ping timeout: 246 seconds
[06:10:57] mdbm: has joined #elixir-lang
[06:20:20] mdbm: Ping timeout: 248 seconds
[06:26:07] mdbm: has joined #elixir-lang
[07:00:37] mdbm: Ping timeout: 246 seconds
[08:58:01] mdbm: has joined #elixir-lang
[09:00:12] mdbm: I found it:
[09:00:14] mdbm: ~E(<link rel="canonical" href="<%= path %>" />)
[10:51:05] mdbm: Ping timeout: 268 seconds
[14:35:03] mdbm: has joined #elixir-lang
[14:50:12] mdbm: Ping timeout: 248 seconds

2019-08-18

[07:28:39] mdbm: has joined #elixir-lang
[07:37:32] mdbm: Ping timeout: 272 seconds
[07:41:51] mdbm: has joined #elixir-lang
[09:45:12] mdbm: Ping timeout: 244 seconds
[09:51:59] mdbm: has joined #elixir-lang
[12:01:40] mdbm: Ping timeout: 248 seconds
[14:00:21] mdbm: has joined #elixir-lang
[16:00:36] mdbm: Ping timeout: 248 seconds

2019-08-08

[03:09:34] mdbm: has joined #elixir-lang
[03:16:57] mdbm: Quit: Leaving

2019-08-07

[03:17:58] mdbm: has joined #elixir-lang
[05:11:34] mdbm: Ping timeout: 246 seconds
[17:33:56] mdbm: has joined #elixir-lang
[17:38:17] mdbm: can't believe there is no built-in support for nested layouts. Most websites have cover/landing pages which need another layout, but a lot of html is common (<head>, <script>, ...) Would have been nice to be able to specify a list of layouts to the plug put_layout
[17:39:30] mdbm: I guess I'll have to resort to <%= render "_partial.html" %> or some hacky solution to nest the layout into a base layout
[19:33:23] mdbm: Ping timeout: 245 seconds

2019-08-06

[03:39:49] mdbm: has joined #elixir-lang
[06:34:43] mdbm: Ping timeout: 248 seconds
[07:16:27] mdbm: has joined #elixir-lang
[09:55:47] mdbm: Ping timeout: 248 seconds

2019-08-05

[12:02:44] mdbm: has joined #elixir-lang
[12:39:21] mdbm: so I coded a module that uses Agent to store some state. I have a start_link function which start Agent.start_link. But when/where should I call this function? I want to use this module as soon as my application starts
[13:15:18] mdbm: Ping timeout: 268 seconds
[14:25:27] mdbm: has joined #elixir-lang
[14:30:57] mdbm: dysfun, back, sorry was away eating
[14:31:03] mdbm: <dysfun> in a supervisor?
[14:31:33] mdbm: yeah that's what I did finally
[18:08:34] mdbm: Ping timeout: 244 seconds

2019-08-04

[12:15:17] mdbm: has joined #elixir-lang
[12:42:36] mdbm: Ping timeout: 244 seconds

2019-08-03

[08:57:06] mdbm: has joined #elixir-lang
[10:10:53] mdbm: Ping timeout: 258 seconds
[10:12:49] mdbm: has joined #elixir-lang
[10:41:59] mdbm: Read error: Connection reset by peer
[10:42:27] mdbm: has joined #elixir-lang
[12:28:11] mdbm: Ping timeout: 244 seconds
[14:16:14] mdbm: has joined #elixir-lang
[16:05:53] mdbm: Ping timeout: 245 seconds

2019-08-02

[02:13:15] mdbm: has joined #elixir-lang
[03:55:25] mdbm: Ping timeout: 246 seconds
[04:21:19] mdbm: has joined #elixir-lang
[05:16:37] mdbm: Ping timeout: 246 seconds
[09:25:05] mdbm: has joined #elixir-lang
[11:23:47] mdbm: Ping timeout: 248 seconds
[11:33:13] mdbm: has joined #elixir-lang
[11:45:40] mdbm: Read error: Connection reset by peer
[11:46:04] mdbm: has joined #elixir-lang
[12:14:17] mdbm: Ping timeout: 244 seconds
[12:21:42] mdbm: has joined #elixir-lang
[12:52:54] mdbm: Ping timeout: 272 seconds
[14:03:22] mdbm: has joined #elixir-lang
[16:10:42] mdbm: Read error: Connection reset by peer
[16:11:01] mdbm: has joined #elixir-lang
[16:39:39] mdbm: Read error: Connection reset by peer

2019-08-01

[05:32:57] mdbm: has joined #elixir-lang
[06:12:51] mdbm: Ping timeout: 248 seconds
[07:02:28] mdbm: has joined #elixir-lang
[07:50:59] mdbm: Ping timeout: 248 seconds
[08:33:08] mdbm: has joined #elixir-lang
[08:35:55] mdbm: I'm trying to run an open-source phoenix application. but I can't create the database. Because in the config I can't find the :username parameter for the database
[08:35:57] mdbm: https://github.com/thoughtbot/constable/blob/master/config/dev.exs#L41
[08:36:20] mdbm: so I have the error: ** (RuntimeError) connect raised KeyError exception: key :username not found.
[08:36:59] mdbm: I don't think I'm supposed to code and add options
[08:39:30] mdbm: thank you
[08:46:58] mdbm: serafeim, once I added dev.secret.exs, what should I do in order for the file being taken into account?
[08:53:54] mdbm: serafeim, you have an import here: https://github.com/spapas/phxcrd/blob/master/config/dev.exs#L51
[08:54:01] mdbm: serafeim, but I can't see it in their project, weird..
[08:59:53] mdbm: serafeim, I don't see the use of env vars for the dev config
[09:00:20] mdbm: serafeim, ah.. or phoenix or ecto will look in some predefined env vars automatically?
[09:10:50] mdbm: serafeim, found it. in the postgrex library (dependency of ecto). Keyword.put_new(:username, System.get_env("PGUSER") || System.get_env("USER"))
[09:44:32] mdbm: serafeim, may I know the reason why you don't like to rely on env variables?
[09:49:40] mdbm: ah alright
[09:49:51] mdbm: well I have no opinions, was just wondering
[12:25:50] mdbm: Ping timeout: 258 seconds
[12:28:03] mdbm: has joined #elixir-lang
[12:36:25] mdbm: I want to override action/2 ina controller, but I don't understand its arguments:
[12:36:27] mdbm: def action(conn, params) do
[12:36:39] mdbm: I have the router params in conn.params
[12:36:47] mdbm: but what is params (second argument of action/2) ?
[12:36:54] mdbm: when I inspect it, it's an empty list
[12:50:08] mdbm: ah ok, thank you
[13:01:02] mdbm: what is the difference between:
[13:01:07] mdbm: Changeset.put_change(video, :user_id, user.id)
[13:01:21] mdbm: Changeset.put_assoc(video, :user, user)
[14:17:39] mdbm: Ping timeout: 248 seconds

2019-07-31

[05:42:43] mdbm: has joined #elixir-lang
[06:42:07] mdbm: Ping timeout: 245 seconds
[07:24:36] mdbm: has joined #elixir-lang
[09:10:32] mdbm: Ping timeout: 258 seconds
[09:36:06] mdbm: has joined #elixir-lang
[11:10:27] mdbm: Ping timeout: 245 seconds
[11:31:53] mdbm: has joined #elixir-lang
[12:43:14] mdbm: Read error: Connection reset by peer
[12:43:38] mdbm: has joined #elixir-lang
[14:11:09] mdbm: Ping timeout: 244 seconds
[15:00:11] mdbm: has joined #elixir-lang
[17:14:22] mdbm: Ping timeout: 268 seconds

2019-07-30

[04:05:41] mdbm: has joined #elixir-lang
[05:21:39] mdbm: Ping timeout: 248 seconds
[06:08:19] mdbm: has joined #elixir-lang
[07:10:44] mdbm: Ping timeout: 268 seconds
[09:11:08] mdbm: has joined #elixir-lang
[09:30:17] mdbm: Ping timeout: 258 seconds
[13:27:07] mdbm: has joined #elixir-lang
[13:44:46] mdbm: Ping timeout: 246 seconds

2019-07-29

[05:53:56] mdbm: has joined #elixir-lang
[06:44:59] mdbm: Remote host closed the connection
[06:45:24] mdbm: has joined #elixir-lang
[07:33:27] mdbm: can anyone explain what static_path really does?
[07:33:29] mdbm: i.e. what is the difference between "/some_image.jpg" and Routes.static_path(@conn, "/some_image.jpg")
[07:42:45] mdbm: gazler_, the documentation says: static_path(path) Generates a route to a static file in priv/static.
[07:43:05] mdbm: gazler_, there's no mentioning of configurating it through another config variable
[07:45:03] mdbm: but I see it in the source code
[09:17:51] mdbm: gazler_, I think that static_path won't allow me to use e.g. a CDN but I would have to use Phoenix.Router.Helpers.static_url\2
[09:18:53] mdbm: gazler_, static_path doesn't make use of parameters host, scheme, etc. only static_url does. I wonder then why we even use static_path/2, and not stick with just static_url/2
[09:29:40] mdbm: josevalim, I generated an app few days ago and static_path/2 is used for assets (images,css,js,..). Or maybe you are talking about a very recent change.
[09:30:24] mdbm: ok I check now
[09:33:44] mdbm: josevalim, yeah well, which you talked with about Plug.Static this morning. I try to make it all make sense, :static_url config, :url config, static_url/2 and static_path/2 route helpers, options in Plug.Static (:at path, :from path), and I can't reason with all this :D
[09:33:58] mdbm: *I'm Thomas whith whom you talked*
[09:39:20] mdbm: however static_path/2 makes use of a configurable :path parameter, which I could set to an absolute url pointing to a CDN if I decide to switch from local storage to a CDN
[09:46:50] mdbm: josevalim, yeah I will go for the simplest solution. I just wanted to serve them from a different configurable location to distinguish them well from regular assets, but I add complexity for nothing.
[11:44:58] mdbm: Ping timeout: 272 seconds
[13:54:55] mdbm: has joined #elixir-lang
[16:03:47] mdbm: Ping timeout: 258 seconds