Zotonic
Zotonic
zotonic@conference.zotonic.com
Monday, 5 August 2013< ^ >
Arjan has set the subject to: Zotonic - The Erlang Web Framework & CMS
Room Configuration

GMT+2
[00:16:24] cillian.deroiste leaves the room
[02:22:36] mawuli.ypa leaves the room
[02:26:03] mawuli.ypa joins the room
[02:56:27] mawuli.ypa leaves the room
[06:23:18] mawuli.ypa joins the room
[08:50:35] arcusfelis joins the room
[08:53:58] arjan joins the room
[10:09:57] mawuli.ypa leaves the room
[11:42:57] Maas joins the room
[12:07:52] <Maas> Strange, site won't start. It say's {error,{missing_dependencies,[base]}}
[12:23:10] <arjan> mod_base not activated in db?
[12:24:09] <Maas> how do I check that? z_module_manager:all just returns the site and mod_authentication
[12:24:20] <arjan> select * from module; :P
[12:24:47] <Maas> monday's ;-)
[12:25:29] <arjan> hehe
[12:25:44] <arjan> did you see my changes to the websocket module api
[12:25:48] <Maas> Weird... indeed, probably another kind of timeout during db initialization
[12:26:12] <Maas> No not yet, getting back upto speed after the holiday.
[12:26:18] <arjan> :)
[12:26:30] <arjan> I added the the From pid() in the handle_message call
[12:26:45] <arjan> otherwise you dont know where to send a message to as a reply on an incoming ws message
[12:27:13] <arjan> because the websocket handler uses a receiver process and a sender process
[12:27:30] <arjan> and we need the pid of the sender but the handle_message function is called in the receiver process
[12:27:35] <Maas> aha, yes, I do that via a mod_signal, because mostly more session need to know it.
[12:28:23] <arjan> https://github.com/zotonic/zotonic/commit/1246f630b2b6dab2c2d1c1f1a1727f68c4db08b9
[12:28:24] <arjan> ok
[12:28:43] <arjan> also this one was interesting, https://github.com/zotonic/zotonic/commit/39430f40a1051eaca6e323234fc4ca68a5d82ee3
[12:28:57] <arjan> the {ws_handler, ...} option in the dispatch rule did not work
[12:29:13] <arjan> probably you never used it that way, right?
[12:29:32] <arjan> http://zotonic.com/docs/0.9/ref/controllers/controller_websocket.html
[12:29:34] <Maas> Yes, all the time :-)
[12:29:55] <Maas> different branch though,
[12:29:56] <arjan> oh..?
[12:30:02] <arjan> via the dispatch option?
[12:31:44] <Maas> ah, no you are right, not used indeed.
[12:32:12] <Maas> communicating via bus module with the same module setup.
[12:33:09] <Maas> That has a builtin fallback mechanism
[12:34:53] <arjan> k
[12:37:20] <Maas> it has its own controller, which acts as a websocket handler.
[12:40:42] <Maas> It does: %% @doc Initiate the websocket connection upgrade
websocket_start(ReqData, Context) ->
Context1 = z_context:set(ws_handler, ?MODULE, Context),
controller_websocket:websocket_start(ReqData, Context1).
[12:41:09] <Maas> Then ws_handler works :-)
[12:42:52] Maas leaves the room
[13:11:04] Maas joins the room
[13:23:02] arjan leaves the room
[14:22:32] arjan joins the room
[14:23:18] Maas leaves the room
[14:30:19] Maas joins the room
[15:16:34] <Maas> back to work.. weird problem... never had it do that. Error starting module mod_authentication: {error,{missing_dependencies,[acl,base]}}
[15:18:36] <Maas> other sites just start.
[15:19:00] arjan leaves the room
[16:05:17] arjan joins the room
[17:02:41] Maas leaves the room
[17:04:40] Maas joins the room
[17:46:52] Maas leaves the room
[17:47:03] Maas joins the room
[17:55:07] arjan leaves the room
[18:02:57] Maas leaves the room
[20:25:10] jeff.5nines joins the room
[20:34:07] arcusfelis leaves the room
[20:44:16] arjan joins the room
[20:55:47] arjan leaves the room
[21:18:23] arjan joins the room
[21:35:17] arjan leaves the room
[23:25:55] cillian.deroiste joins the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!