Zotonic
Zotonic
zotonic@conference.zotonic.com
Thursday, 15 November 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[08:47:00] Andreas Stenius joins the room
[08:53:02] maas.maarten.zeeman joins the room
[09:00:31] arjan joins the room
[09:37:14] <Andreas Stenius> hey, where has page.tpl gone? I can only find those for text, phone or tablet... !?
[09:51:15] <arjan> hi
[09:51:28] <Andreas Stenius> ah, it was removed in 950275fc9e49b532fa120e9bf4a68a94552b936e
[09:51:30] <Andreas Stenius> hi
[09:51:49] <arjan> http://zotonic.com/docs/manuals/templates/lookups.html
[09:51:59] <arjan> it looks for device-class specific page.tpl
[09:52:00] <Andreas Stenius> :) trying to get my trackz project back on track :p
[09:52:04] Ilya Rezvov leaves the room
[09:52:37] <arjan> so for desktop it first tries desktop/page.tpl, then tablet/page.tpl, then phone/page.tpl, then text/page.tpl and THEN the "regular" page.tpl
[09:52:41] <Andreas Stenius> yeah, that's cool ;) but there's no page.tpl for desktop...
[09:52:47] <arjan> if I read the doc correctly
[09:53:09] <arjan> http://zotonic.com/docs/manuals/templates/lookups.html#lookup-by-user-agent-class
[09:54:06] <Andreas Stenius> mod_base_site/templates/[text|phone|tablet] (<- no desktop in there?)
[09:54:39] <arjan> yes so it takes tablet/page.tpl
[09:55:08] <Andreas Stenius> ah... right.
[09:55:35] <Andreas Stenius> so as shipped, you could say that desktop = tablet in this case
[09:55:43] <arjan> the docs could use some proofreading :)
[09:56:21] <arjan> yes
[10:00:01] <Andreas Stenius> does mod_development require inotifywait to work at all..?
[10:00:25] <Andreas Stenius> asking, since it looks like it crashed on me, for that reason...
[10:00:46] <Andreas Stenius> 09:58:24.543 [error] CRASH REPORT Process <0.6094.1> with 1 neighbours crashed with reason: {enoent,[{erlang,open_port,[{spawn_executable,"/usr/bin/inotifywait"},[{args,["-e","modify,create","-m","-r","/h....
[10:02:44] <Andreas Stenius> well, installing inotify-tools certainly helped, any way :p
[10:04:01] <maas.maarten.zeeman> Hmm not nice.
[10:04:12] <maas.maarten.zeeman> I sometimes have this one when shutting down.
[10:04:24] <maas.maarten.zeeman> > Terminating due to shutdown
09:45:35.478 [error] gen_server <0.488.0> terminated with reason: no such process or port in call to gen_server:call('z_notifier$channelwww', {detach,rsc_update_done,<0.488.0>})
09:45:35.564 [error] CRASH REPORT Process <0.488.0> with 0 neighbours crashed with reason: no such process or port in call to gen_server:call('z_notifier$channelwww', {detach,rsc_update_done,<0.488.0>})
[10:04:45] <maas.maarten.zeeman> Shutdown order problem.
[10:05:43] <Andreas Stenius> weird
[10:06:05] <maas.maarten.zeeman> Yup trying to ignore it for now.
[10:06:50] <maas.maarten.zeeman> Looks like a call to notifier, which was already shut down or something.
[10:08:14] <Andreas Stenius> aha
[10:09:44] <maas.maarten.zeeman> I suspect a problem in z_supervisor.
[10:12:58] <maas.maarten.zeeman> It does quite some fancy stuff.
[10:21:39] <arjan> Andreas: i'll fix mod_development
[10:21:51] <arjan> should indeed check for inotifywait's existence
[10:42:06] <Andreas Stenius> bah, my network issues I've had seem to stem from the fact that I had conflicting IP address on my network... can't figure out who is using the other address though... guess I'll have to go through them all, one by one.... heh ;P
[10:45:26] <arjan> you can do a nmap scan?
[10:46:09] <arjan> nmap -sP 10.0.0.0/24
[10:46:19] <arjan> pings the subnet
[10:50:13] <arjan> andreas, btw
[10:50:29] <Andreas Stenius> aha! thanks, namp -O 10.2.0.21 answered it for me :D
[10:50:52] <arjan> mod_development already looks for inotifywait by doing "which inotifywait"
[10:51:00] <Andreas Stenius> especially this part: MAC Address: 00:06:__:42:__:B0 (Syabas Technology (Amquest))
[10:51:13] <arjan> ok..
[10:51:54] <Andreas Stenius> yeah, and returns enoent, which probably isn't matched in a case or some such....
[10:52:14] <arjan> no the problem is that it then uses a hardcoded path /usr/bin
[10:52:23] <arjan> on your system, can you check where inotifywait is?
[10:52:23] <Andreas Stenius> oh, ok.
[10:52:30] <arjan> I suspect you have multiple
[10:52:42] <Andreas Stenius> now that I have it installed, it is in /usr/bin
[10:53:21] <Andreas Stenius> bah, gotta run. talk to later...
[10:53:28] <Andreas Stenius> to you*
[10:53:57] <arjan> k
[11:10:29] Ilya Rezvov joins the room
[11:10:32] <maas.maarten.zeeman> Always fun, supervising external dependencies.
[11:13:38] <arjan> external?
[11:13:46] <arjan> you mean unix processes?
[11:14:02] <maas.maarten.zeeman> yup, or databases,
[11:15:01] <maas.maarten.zeeman> They can go down temporarily which will error your erlang process. Supervisor tries to restart like mad and it fails too.
[11:15:17] <arjan> yes
[11:15:24] <arjan> that sucks
[11:15:40] <arjan> https://github.com/arjan/unixsup
[11:15:46] <arjan> for processes
[11:16:09] <arjan> but it's not very intelligent
[11:16:15] <arjan> just keeps restarting on a constant rate
[11:16:52] <arjan> also assumes that the daemon stops when you close its stdin
[11:17:21] <arjan> which most processes don't do, unfortunately
[11:17:58] <maas.maarten.zeeman> :-) Cool. Was also looking at this: https://github.com/carlosvarelap/ecbreak
[11:22:01] <arjan> interesting
[11:22:03] <maas.maarten.zeeman> More otp-ish
[11:22:13] <arjan> weird however that you can only have one circuit breaker
[11:23:03] <arjan> or not?
[11:23:07] <maas.maarten.zeeman> Yep. I guess it was build for 1 dependency only. Looking at the code. Parts of it look very similar to some stuff in z_supervisor.erl
[11:24:02] <arjan> nice idea though
[11:25:25] <maas.maarten.zeeman> Tracking this in the supervisor kind of conflicts with the fail fast motto of erlang.
[11:25:57] <maas.maarten.zeeman> Need to get back to work :-)
[11:28:21] <maas.maarten.zeeman> Could be nice to prevent one failing site to taking down the others
[11:48:12] <maas.maarten.zeeman> Nice subject for an erlang talk also. Hmm...
[12:16:50] <Andreas Stenius> arjan: could you try $ ejabberdctl killsession zotonic conference.zotonic.com andreas.stenius
[12:29:09] <maas.maarten.zeeman> What is a good zotonic-ish name for a module which provides a service similar to bullet in cowboy?
[12:29:28] <Andreas Stenius> sheriff ?
[12:29:45] <Andreas Stenius> oh, zheriff...
[12:30:18] <maas.maarten.zeeman> haha
[12:30:38] <Andreas Stenius> :p
[12:31:30] <maas.maarten.zeeman> what is a "zotonic" anyway? I can understand bullets and cowboys.
[12:31:38] <maas.maarten.zeeman> Is it a strange drink?
[12:32:28] <Andreas Stenius> medicine for rotting software ;)
[12:32:55] <maas.maarten.zeeman> Anti-bitrot potion
[12:33:45] <Andreas Stenius> haha.. zotonic, the get-out-of-bitrot free card
[12:40:38] arjan leaves the room
[13:18:36] <maas.maarten.zeeman> No guarantees though.
[15:16:57] arjan joins the room
[15:18:22] arjan leaves the room
[15:33:34] arjan joins the room
[16:04:13] maas.maarten.zeeman leaves the room
[16:05:15] maas.maarten.zeeman joins the room
[16:05:28] maas.maarten.zeeman leaves the room
[16:05:52] maas.maarten.zeeman joins the room
[16:14:11] maas.maarten.zeeman leaves the room
[16:33:55] arjan leaves the room
[17:16:05] Ilya Rezvov leaves the room
[17:22:00] arjan joins the room
[17:56:36] arjan leaves the room
[19:25:31] arjan joins the room
[19:34:23] arjan leaves the room
[21:48:04] Andreas Stenius leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!