« Back to channel list

#elixir-lang - 24 May 2019

« Back 1 day Forward 1 day »
[00:08:24] Adkron: has joined #elixir-lang
[00:11:11] netrino: has joined #elixir-lang
[00:14:50] Sgeo_: has joined #elixir-lang
[00:26:52] Sgeo__: has joined #elixir-lang
[00:28:21] SirFunk: has joined #elixir-lang
[00:50:07] netrino: has joined #elixir-lang
[00:54:30] Adkron: has joined #elixir-lang
[00:56:27] oneark: has joined #elixir-lang
[01:00:53] kapilp: has joined #elixir-lang
[01:18:09] orbyt_: has joined #elixir-lang
[01:24:18] jeffro_: has joined #elixir-lang
[01:25:32] __charly__: has joined #elixir-lang
[01:29:07] netrino: has joined #elixir-lang
[01:31:58] praveenperera: has joined #elixir-lang
[01:33:47] Adkron: has joined #elixir-lang
[01:34:59] tomterl: has joined #elixir-lang
[01:59:44] praveenperera: has joined #elixir-lang
[02:02:56] nageV: josevalim: awesome, thanks! :) so I guess it's only GenStage that requires me to create the topology manually
[02:06:46] Linuus: has joined #elixir-lang
[02:08:12] netrino: has joined #elixir-lang
[02:11:30] Adkron: has joined #elixir-lang
[02:45:13] Adkron: has joined #elixir-lang
[02:47:14] netrino: has joined #elixir-lang
[03:07:07] jmiven: has joined #elixir-lang
[03:24:26] Adkron: has joined #elixir-lang
[03:26:15] netrino: has joined #elixir-lang
[03:54:11] mog: is there a way 13:41:14.495 ip-10-0-0-33 /var/www/api/api/var/log/erlang.log.1 17:41:11.056 request_id=2mgm1ck57h34ag9f4k14os04 [error] [is there a way to debug where in my code the task is hanging when it times out {:timeout, {Task, :await, [%Task{owner: #PID<0.24543.1117>, pid: #PID<0.23728.1133>, ref: #Reference<0.3233932738.3938975748.41493>}, 5000]}}
[03:54:47] mog: sorry for bad paste. is there a way to debug where in my code the task is hanging when it times out {:timeout, {Task, :await, [%Task{owner: #PID<0.24543.1117>, pid: #PID<0.23728.1133>, ref: #Reference<0.3233932738.3938975748.41493>}, 5000]}}
[03:55:48] mog: only 1% or so of my requests are hanging so its a little difficult to put in things around it.
[04:05:18] netrino: has joined #elixir-lang
[04:05:27] Adkron: has joined #elixir-lang
[04:10:45] praveenperera: has joined #elixir-lang
[04:24:16] mbuf: has joined #elixir-lang
[04:30:04] samrose_: has joined #elixir-lang
[04:43:06] Adkron: has joined #elixir-lang
[04:44:25] netrino: has joined #elixir-lang
[04:44:32] gvaughn: has joined #elixir-lang
[04:48:05] BitBot: has joined #elixir-lang
[04:50:26] jeffro_: has joined #elixir-lang
[04:55:53] atk: has joined #elixir-lang
[04:56:13] sevenseacat: has joined #elixir-lang
[05:07:21] Sgeo_: has joined #elixir-lang
[05:21:01] jnoon: has joined #elixir-lang
[05:22:57] Adkron: has joined #elixir-lang
[05:24:04] kyrylo: has joined #elixir-lang
[05:24:39] jnoon: does anyone know or could point me to the right terms to google: looking into using elixir/phoenix that will make use of separate c++ processes (ports or cnodes, not such which yet) for graphics processing work. when spawning these, if i have a cluster of elixir nodes, does the erlang vm have ways to automatically decide where in the cluster it might spawn a process, like which node is the most resources available etc? o
[05:24:39] jnoon: not part of what it can do with the builtin otp stuff?
[05:28:21] Sgeo__: has joined #elixir-lang
[05:29:14] squalloster: has joined #elixir-lang
[05:31:46] Nicd-: Your first message was cut at "available etc? o"
[05:40:32] blahdodo: has joined #elixir-lang
[05:41:41] jimmyrcom: has joined #elixir-lang
[05:56:10] gvaughn: has joined #elixir-lang
[06:03:27] Adkron: has joined #elixir-lang
[06:23:32] netrino: has joined #elixir-lang
[06:29:15] blahdodo: has joined #elixir-lang
[06:44:59] Adkron: has joined #elixir-lang
[07:04:03] netrino_: has joined #elixir-lang
[07:24:04] Adkron: has joined #elixir-lang
[07:28:26] jnoon: Nicd-: oops sorry. the end was: …available etc?  or is that not part of what it can do with the builtin otp stuff?
[07:38:35] gvaughn: has joined #elixir-lang
[07:40:11] JSharp: has joined #elixir-lang
[07:40:52] c355E3B: has joined #elixir-lang
[07:43:09] m0lok: has joined #elixir-lang
[07:43:09] tobias: has joined #elixir-lang
[07:43:13] Net: has joined #elixir-lang
[07:43:14] bbielsa___: has joined #elixir-lang
[07:43:17] blahdodo: has joined #elixir-lang
[07:43:17] c355E3B: has joined #elixir-lang
[07:43:17] JSharp: has joined #elixir-lang
[07:43:21] Brend: has joined #elixir-lang
[07:43:22] rfv: has joined #elixir-lang
[07:43:22] serafeim: has joined #elixir-lang
[07:43:23] reachfh: has joined #elixir-lang
[07:43:25] starbelly: has joined #elixir-lang
[07:43:26] hahuang65: has joined #elixir-lang
[07:43:27] tallysmartins_: has joined #elixir-lang
[07:43:27] jetpack_joe: has joined #elixir-lang
[07:43:27] ytruly: has joined #elixir-lang
[07:43:28] bitwalker: has joined #elixir-lang
[07:43:28] rvirding: has joined #elixir-lang
[07:43:32] wojtekmach: has joined #elixir-lang
[07:43:33] mitchellhenke: has joined #elixir-lang
[07:43:35] RJ2: has joined #elixir-lang
[07:43:45] yrashk: has joined #elixir-lang
[07:43:59] billstclair: has joined #elixir-lang
[07:44:00] ahills: has joined #elixir-lang
[07:44:02] chewbranca: has joined #elixir-lang
[07:44:08] alunduil: has joined #elixir-lang
[07:44:11] profit_: has joined #elixir-lang
[07:44:11] adulteratedjedi: has joined #elixir-lang
[07:44:15] gen_ale_drinker: has joined #elixir-lang
[07:44:40] hahuang65: has joined #elixir-lang
[07:45:11] pmarreck: has joined #elixir-lang
[07:45:40] uranoss: has joined #elixir-lang
[07:46:14] mdbm: has joined #elixir-lang
[07:46:46] hflw___: has joined #elixir-lang
[07:47:32] gonz_: has joined #elixir-lang
[07:48:06] CARAM_______: has joined #elixir-lang
[07:48:48] FMJz__: has joined #elixir-lang
[08:04:58] kaniini: has joined #elixir-lang
[08:05:33] bcavileer: has joined #elixir-lang
[08:05:38] fertapric: has joined #elixir-lang
[08:06:19] c355E3B: has joined #elixir-lang
[08:08:09] billstclair: has joined #elixir-lang
[08:08:20] teadrop____: has joined #elixir-lang
[08:08:51] gmcintire: has joined #elixir-lang
[08:09:05] uranoss: has joined #elixir-lang
[08:09:08] zpconn__________: has joined #elixir-lang
[08:09:31] Net: has joined #elixir-lang
[08:09:32] chazlever: has joined #elixir-lang
[08:09:35] CornishPasty_: has joined #elixir-lang
[08:09:50] hflw___: has joined #elixir-lang
[08:10:02] profit_: has joined #elixir-lang
[08:10:26] zkat: has joined #elixir-lang
[08:10:33] HashNuke: has joined #elixir-lang
[08:11:01] masteinhauser: has joined #elixir-lang
[08:11:17] jlpeters: has joined #elixir-lang
[08:11:21] guan: has joined #elixir-lang
[08:11:21] Adkron: has joined #elixir-lang
[08:11:27] duoi: has joined #elixir-lang
[08:11:34] oneark: has joined #elixir-lang
[08:11:41] serafeim: has joined #elixir-lang
[08:11:59] cmeiklejohn: has joined #elixir-lang
[08:12:03] bytesighs: has joined #elixir-lang
[08:12:12] adulteratedjedi: has joined #elixir-lang
[08:12:41] gausby_: has joined #elixir-lang
[08:12:56] feld: has joined #elixir-lang
[08:14:43] danmcclain_: has joined #elixir-lang
[08:14:50] wojtekmach: has joined #elixir-lang
[08:16:11] zeeshanlakhani: has joined #elixir-lang
[08:16:17] chops: has joined #elixir-lang
[08:16:54] hmans: has joined #elixir-lang
[08:18:51] dignifiedquire: has joined #elixir-lang
[08:19:36] Robdor: has joined #elixir-lang
[08:20:33] Liothen: has joined #elixir-lang
[08:21:28] mcspud: has joined #elixir-lang
[08:21:58] cmeiklejohn: has joined #elixir-lang
[08:24:42] netrino_: has joined #elixir-lang
[08:32:38] synProgrammer_: has joined #elixir-lang
[08:41:12] netrino_: has joined #elixir-lang
[08:43:42] mdbm_: has joined #elixir-lang
[08:47:04] kapilp: has joined #elixir-lang
[08:47:37] lexmag: has joined #elixir-lang
[08:50:21] netrino_: has joined #elixir-lang
[08:51:50] Adkron: has joined #elixir-lang
[09:09:58] gvaughn: has joined #elixir-lang
[09:18:09] mdbm__: has joined #elixir-lang
[09:25:00] mdbm: has joined #elixir-lang
[09:29:06] mdbm_: has joined #elixir-lang
[09:29:21] netrino_: has joined #elixir-lang
[09:29:34] Adkron: has joined #elixir-lang
[09:31:55] jegaxd26: has joined #elixir-lang
[09:38:26] sickill: has joined #elixir-lang
[09:50:54] lexmag: has joined #elixir-lang
[09:55:13] _barcode_: has joined #elixir-lang
[10:08:36] Adkron: has joined #elixir-lang
[10:08:48] netrino_: has joined #elixir-lang
[10:20:51] lexmag: has joined #elixir-lang
[10:22:58] jegaxd26: has joined #elixir-lang
[10:30:13] jegaxd26: has joined #elixir-lang
[10:34:38] laszloh: has joined #elixir-lang
[10:36:28] griffinbyatt: has joined #elixir-lang
[10:42:02] lexmag: has joined #elixir-lang
[10:47:42] proteusguy: has joined #elixir-lang
[10:47:51] Adkron: has joined #elixir-lang
[10:47:52] netrino_: has joined #elixir-lang
[10:51:16] Mieserkadser: has joined #elixir-lang
[10:54:40] gvaughn: has joined #elixir-lang
[10:57:45] Mieserkadser: Phoenix Live View: Is it possible to nest live views ? I mean when i do this, then the html separate the both views.
[11:07:35] Mieserkadser: So in elixir i can nest live views. But as soon as they are rendered, they are separated in the dom-tree. Is this because of the re-rendering of live-view?
[11:09:56] kyrylo: has joined #elixir-lang
[11:24:22] Adkron: has joined #elixir-lang
[11:27:01] netrino_: has joined #elixir-lang
[11:28:06] drincruz: has joined #elixir-lang
[11:33:18] garazdawi: has joined #elixir-lang
[11:34:01] blahdodo: has joined #elixir-lang
[11:37:18] Mieserkadser: Phoenix Live View: Is it possible to nest live views ? I mean when i do this, then the html appears in different places inside the dom.
[11:37:45] chrismccord: Mieserkadser yes
[11:42:49] Mieserkadser: chrismccord: consider the table from bootstrap https://getbootstrap.com/docs/4.0/content/tables/ the content inside <thread> is my second live view. When i render the page the <thread> stuff is outside the <table>
[11:43:44] chrismccord: Mieserkadser did you pass the `container` option to tell the LV what container to use?
[11:44:03] chrismccord: by default it will use a div, which would be why you see the browser putting it outside the table
[11:45:24] chrismccord: <%= live_render(@socket, MyLive, container: {:thead, class: "foo bar"} %>
[11:45:56] Mieserkadser: Ah, i guess that's the point. I'll try it out
[11:47:01] Notimik: has joined #elixir-lang
[11:48:17] digia: has joined #elixir-lang
[11:48:17] digia: has joined #elixir-lang
[11:49:19] Liru: has joined #elixir-lang
[11:50:52] jsehop98: has joined #elixir-lang
[11:51:48] FatalNIX: has joined #elixir-lang
[11:53:21] meimeix: has joined #elixir-lang
[11:56:00] kdisneur: has joined #elixir-lang
[12:02:25] Mieserkadser: chrismccord: weird. It's still placing outside the table. :/
[12:02:49] chrismccord: Mieserkadser can you share the code you're trying?
[12:02:55] chrismccord: also can you make sure you are on latest LV?
[12:03:16] Adkron: has joined #elixir-lang
[12:04:05] Mieserkadser: hm i reload quickly my deps
[12:06:01] netrino_: has joined #elixir-lang
[12:08:20] garazdawi: has joined #elixir-lang
[12:09:49] Sigma-: has joined #elixir-lang
[12:19:30] blahdodo: has joined #elixir-lang
[12:31:19] gvaughn: has joined #elixir-lang
[12:39:15] nickjj: glancing through the convention guide on elixir -- is it ever a good idea to end a function name with ? even if it doesn't return a boolean but wording it as a question makes sense?
[12:39:43] dysfun: you might confuse some people
[12:40:18] nickjj: something like: user_can_enroll? , but it returns back this type of data structure: {:ok, :already_enrolled}
[12:40:35] nickjj: and there's a few states that can be returned back (it's not just yes or no)
[12:40:40] dysfun: that would be something like check_enrollable
[12:40:50] Adkron: has joined #elixir-lang
[12:40:58] garazdawi: has joined #elixir-lang
[12:41:16] nickjj: oh i like that, so check_ is usually used for that type of lookup?
[12:41:33] dysfun: many words are, but i wouldn't put a question mark on the end
[12:41:47] dysfun: ? does rather imply a boolean return
[12:41:54] dysfun: i haven't yet seen a good use of it otherwise
[12:42:39] nickjj: thanks, check_ makes sense at a human / english level too
[12:42:51] ernie: has joined #elixir-lang
[12:45:01] netrino_: has joined #elixir-lang
[12:57:21] KeyJoo: has joined #elixir-lang
[12:58:00] nox: nickjj: I would just name that enrollment_status
[12:59:08] nickjj: nox, that's what i had originally but i wanted to stay away from that because it could be potentially confusing in this context since i have an "active" field on the schema
[13:00:00] nickjj: and that active dictates whether or not the enrollment can be accessed -- right now it's just a boolean (active) but down the line i may rename that to status
[13:10:02] griffinbyatt: has joined #elixir-lang
[13:11:30] __charly__: has joined #elixir-lang
[13:12:03] tnez: has joined #elixir-lang
[13:13:41] Adkron: has joined #elixir-lang
[13:18:43] jeffro_: has joined #elixir-lang
[13:20:26] feld: has joined #elixir-lang
[13:20:47] warmwaffles: has joined #elixir-lang
[13:24:03] netrino_: has joined #elixir-lang
[13:24:45] jeffro: has joined #elixir-lang
[13:25:23] DTZUZU2: has joined #elixir-lang
[13:28:39] __charly__: has joined #elixir-lang
[13:41:19] Cthalupa: has joined #elixir-lang
[13:43:05] praveenperera: has joined #elixir-lang
[13:47:03] kdisneur: has joined #elixir-lang
[13:54:15] Adkron: has joined #elixir-lang
[14:03:02] netrino_: has joined #elixir-lang
[14:04:14] gvaughn: has joined #elixir-lang
[14:04:55] Zarathu: this new update on ordered_set ets tables from otp 22 <33333
[14:05:05] Zarathu: it's beautiful
[14:15:28] lexmag: has joined #elixir-lang
[14:15:29] Adkron: has joined #elixir-lang
[14:25:39] notzmv: has joined #elixir-lang
[14:32:52] blahdodo: has joined #elixir-lang
[14:36:21] fastfresh: has joined #elixir-lang
[14:37:52] knack: has joined #elixir-lang
[14:42:08] netrino_: has joined #elixir-lang
[14:43:45] kdisneur: has joined #elixir-lang
[14:51:18] cryptomata: has joined #elixir-lang
[14:54:19] Sgeo__: has joined #elixir-lang
[14:57:01] gvaughn: has joined #elixir-lang
[14:59:16] aalmazan: has joined #elixir-lang
[15:01:09] wsieroci: has joined #elixir-lang
[15:01:57] lexmag: has joined #elixir-lang
[15:13:29] drrty: has joined #elixir-lang
[15:21:09] netrino_: has joined #elixir-lang
[15:27:37] kapilp: has joined #elixir-lang
[15:32:42] duaneb: has joined #elixir-lang
[15:38:36] lexmag: has joined #elixir-lang
[15:45:35] gvaughn_: has joined #elixir-lang
[15:53:09] kdisneur: has joined #elixir-lang
[16:00:07] netrino_: has joined #elixir-lang
[16:26:51] thurloat: has joined #elixir-lang
[16:35:47] BitBot: has joined #elixir-lang
[16:37:06] orbyt_: has joined #elixir-lang
[16:38:34] notzmv: has joined #elixir-lang
[16:38:55] jegaxd26: has joined #elixir-lang
[16:39:07] netrino_: has joined #elixir-lang
[16:53:08] lexmag: has joined #elixir-lang
[17:17:22] pera: has joined #elixir-lang
[17:18:12] netrino_: has joined #elixir-lang
[17:33:52] feld: has joined #elixir-lang
[17:52:16] netrino_: has joined #elixir-lang
[17:53:22] squalloster: has joined #elixir-lang
[18:07:06] Adkron: has joined #elixir-lang
[18:13:51] Sgeo__: has joined #elixir-lang
[18:23:02] blahdodo: has joined #elixir-lang
[18:33:27] pera: has joined #elixir-lang
[18:34:00] squall: has joined #elixir-lang
[19:10:06] blahdodo: has joined #elixir-lang
[19:14:27] work_: has joined #elixir-lang
[19:20:38] mahmudov: has joined #elixir-lang
[19:26:41] Phylock: has joined #elixir-lang
[19:27:09] __charly__: has joined #elixir-lang
[19:51:52] zigpaw: has joined #elixir-lang
[19:56:17] dsimon: has joined #elixir-lang
[19:56:45] dsimon: hey all, i'm wondering if someone here could help me out with a Logger question
[19:57:17] dsimon: i'm running elixir on a Heroku instance, and using the console logger backend, so that log messages end up going through Heroku's logging systems
[19:57:26] kyrylo: has joined #elixir-lang
[19:57:26] dsimon: and that all works great
[19:57:40] dsimon: however, i run into problems when i remotely log into my server
[19:58:24] dsimon: i use ps:exec to ssh to into the same VM as my elixir server, then use iex --remsh to connect to it
[19:59:50] dsimon: when i run stuff from there that calls Logger.info in the same process, that logger output goes to my iex, but *not* to the actual server node's stdout and hence on to my Heroku setup's logging infrastructure
[20:00:30] dsimon: is there some way to have messages logged from my iex remote shell go to the server node's stdout, or (better yet) to both stdouts?
[20:01:08] dsimon: for forensic purposes, it's really important in my app to keep track of stuff that's done manually at the console in production
[20:10:27] kyrylo: has joined #elixir-lang
[20:21:17] josevalim: dsimon: fixed in master ^
[20:23:54] dsimon: josevalim: oh, it was a bug? i thought i had just configured something wrong :-)
[20:24:55] dsimon: oh wow, you just now wrote that fix! thank you!
[20:26:12] dsimon: josevalim: would this mean also that log messages from the main node would be logged at my remsh node?
[20:29:33] dsimon: that's cool if so, it may just mean that i need to turn down/off the logging level on the remsh node so it doesn't get swamped
[20:33:53] gvaughn: has joined #elixir-lang
[20:40:08] thurloat: has joined #elixir-lang
[20:54:52] blahdodo: has joined #elixir-lang
[21:13:05] dimitarvp: has joined #elixir-lang
[21:17:47] m1dnight_: has joined #elixir-lang
[21:17:59] blahdodo: has joined #elixir-lang
[21:35:10] jnoon2: has joined #elixir-lang
[21:36:30] jnoon2: does anyone know when using send_file, if a HEAD request comes in, does it actually still do the work of sending the file? i found that Plug.HEAD just seems to change the method to GET and doesn't seem to keep an "original_method" around, so im not sure how any code would know its not a GET
[21:59:22] icecreamcohen: has joined #elixir-lang
[22:07:18] josevalim: dsimon: yes, it logs on both
[22:08:44] josevalim: jnoon2: you can CURL it and check
[22:09:04] josevalim: But I am almost sure nothing is sent because the web server knows it is a HEAD request
[22:14:28] orbyt_: has joined #elixir-lang
[22:19:06] nickjj_: has joined #elixir-lang
[22:19:58] jnoon2: josevalim: yes nothing appears sent using curl. but it seems to execute the same code (send_file), so im curious if the server is still doing all the same sending work even though the client is not receiving. more of a curiosity :)
[22:22:32] NickZA: has joined #elixir-lang
[22:23:10] blahdodo: has joined #elixir-lang
[22:25:00] nickjj: has joined #elixir-lang
[22:26:27] gvaughn_: has joined #elixir-lang
[22:32:23] praveenperera: has joined #elixir-lang
[23:11:38] orbyt_: has joined #elixir-lang
[23:19:51] jnoon2: does anyone know with erlang/otp if spawning ports in a cluster in a load-balanced way is automated? for example, if i need to spawn a new worker external process (port or cnode), do i build the logic in of which node would spawn it or is that built into the erlang vm to decide based on the resources in the cluster where it would be best spawned?
[23:23:18] tristanm_: jnoon2: there is the pool module
[23:23:46] tristanm_: http://erlang.org/doc/man/pool.html
[23:24:31] jnoon2: tristan__: neat, thanks!