Thursday, 8 November 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

[00:17:59] Maas leaves the room
[08:40:54] maas.maarten.zeeman joins the room
[08:50:28] andreas.stenius joins the room
[08:56:23] arjan joins the room
[09:09:27] maas.maarten.zeeman6862 joins the room
[09:09:27] maas.maarten.zeeman6862 is now known as maas.maarten.zeeman68980
[09:09:27] maas.maarten.zeeman68980 leaves the room
[09:09:27] maas.maarten.zeeman99170 joins the room
[09:09:27] maas.maarten.zeeman99170 is now known as maas.maarten.zeeman2305
[09:09:27] maas.maarten.zeeman2305 leaves the room
[09:09:27] maas.maarten.zeeman2305 joins the room
[09:46:26] andreas.stenius leaves the room
[09:47:42] andreas.stenius joins the room
[09:49:18] Ilya Rezvov joins the room
[12:10:51] Ilya Rezvov leaves the room
[13:16:21] <maas.maarten.zeeman2305> Watching erlanglive.com <http://erlanglive.com>?
[13:25:33] <maas.maarten.zeeman2305> Marc, I want to be able to start specialized websockets. For this I want to tinker with the current more or less hard-wired setup. I want to pass the name of a handler module which is called during init, handle_message and such. Is that ok?
[13:28:46] <maas.maarten.zeeman2305> I could actually pass the handler via the context.
[13:39:44] <Marc Worrell> hmmm, webmachine doesn't render the error template on a 410 :-s
[13:40:05] <maas.maarten.zeeman2305> ow no
[13:40:14] <Marc Worrell> maas: branch the stuff and go ahead!
[13:40:36] <maas.maarten.zeeman2305> Yup. :-)
[13:42:44] <Marc Worrell> Code when Code == 403; Code == 404 ->
[13:42:48] <Marc Worrell> strange people
[13:43:11] <Marc Worrell> adding 410
[13:43:13] <maas.maarten.zeeman2305> haha
[13:43:53] <Marc Worrell> easier with our own fork....
[13:45:08] <maas.maarten.zeeman2305> 405 was also resulted in a blank page :-) Got that one just a moment ago
[13:46:27] <maas.maarten.zeeman2305> Building controller which can start ws or a comet process. It needs both get and post.
[13:47:45] <maas.maarten.zeeman2305> Definitely need to expand my git skills.
[13:48:32] <maas.maarten.zeeman2305> Still mixing up mercurial and git commands.
[13:52:56] <maas.maarten.zeeman2305> Ill work on my own clone and do a pull request later on.
[14:05:42] <Marc Worrell> Added 410 gone
[14:05:57] <Marc Worrell> 405? have to check what error that is :p
[14:06:06] <maas.maarten.zeeman2305> method not allowed
[14:06:11] <Marc Worrell> aha :p
[14:06:18] <Marc Worrell> that is quite low level though
[14:06:29] <maas.maarten.zeeman2305> Yes right. Didn't list the get to open the socket
[14:06:44] <maas.maarten.zeeman2305> just had the post
[14:07:16] <maas.maarten.zeeman2305> that is probably why the ws spec is so strange..
[14:07:35] <maas.maarten.zeeman2305> so you can program a fallback comet handler on the same url
[14:09:41] <Marc Worrell> the ws spec is strange because it was hacked together :p
[14:10:09] <maas.maarten.zeeman2305> like everything else on the web. nothing functions according to the specs
[14:10:32] <maas.maarten.zeeman2305> like cookies
[14:12:31] <Marc Worrell> :p or javascript parsers
[14:13:55] <maas.maarten.zeeman2305> Yup, but a lot of the js strangeness is in actually in the specs.
[14:14:42] <maas.maarten.zeeman2305> Like automatic semi-colon insertion. Or even the way regexes and division and commets are separated.
[14:15:38] <Marc Worrell> they were crazy - and now a lot of people *expect* this kind of loose grammars in their programming languages. Weird :-s
[14:15:56] <maas.maarten.zeeman2305> js is just the weirdest programming language ever.
[14:16:17] <maas.maarten.zeeman2305> well probably not.
[14:16:41] <maas.maarten.zeeman2305> The location object in the browser is also such a strange thing
[14:17:18] <maas.maarten.zeeman2305> When you do var url = location you actually retrieve the default href property.
[14:17:37] <Marc Worrell> hei, this is handy for the sanitizer:
[14:17:38] <Marc Worrell> http://www.w3.org/TR/CSS21/grammar.html
[14:17:45] <Marc Worrell> LALR(1) grammar for css
[14:17:58] <maas.maarten.zeeman2305> There is no way to actually do the same programmatically.
[14:19:28] <maas.maarten.zeeman2305> That is nice indeed. Need to have that some day for channel too. Luckily not many sites use relative pathnames in css
[14:20:33] <Marc Worrell> given the LALR(1) grammar it is quite straight forward to build a yecc parser
[14:22:09] <maas.maarten.zeeman2305> Indeed, that really helps. For js I actually changed my parsing strategy. I don't need full parsing I just need to recognize very specific constructs
[14:23:24] <maas.maarten.zeeman2305> So I have a scanner and something which recognizes stuff. Otherwise it was too slow to do on the fly.
[14:24:20] <maas.maarten.zeeman2305> Need to filter out the places in js where you navigate from one page to the other.
[14:39:38] <maas.maarten.zeeman2305> Compiling erlang is sooooo slow on the atom.
[14:40:50] <maas.maarten.zeeman2305> Probably also on those new arm servers which are coming.
[14:48:43] <maas.maarten.zeeman2305> Waiting one minute to see you missed a comma is not fun.
[15:56:42] <arjan> hey
[15:56:48] <arjan> when a page is rendered using its page path
[15:56:51] <arjan> which controller is used?
[15:58:55] <arjan> oh never mind
[16:01:25] <Marc Worrell> arjan: internal redirect (I think there is still an issue with the language selection, have to check that)
[16:02:11] <Marc Worrell> arjan: docs are added :p
[16:03:12] <arjan> thanks :D
[16:03:55] <arjan> I see two strange .rst files added though
[16:03:58] <arjan> https://github.com/zotonic/zotonic/commit/b772507987f8c0ac68a215c9172d1f40c2ecf084
[16:04:07] <arjan> mod_livedata.rst
[16:04:14] <arjan> and a template_.rst
[16:04:19] <Marc Worrell> I am removing that one
[16:04:30] <Marc Worrell> don't know where that template_.rst file is coming from
[16:05:02] <Marc Worrell> mod_livedate is my experimental backbone.js module :p
[16:05:25] <arjan> k
[16:05:31] <Marc Worrell> but that template_.rst …. it keeps coming back when doing a make docs
[16:05:48] <arjan> when you do make docs or make stubs?
[16:06:16] <Marc Worrell> just "make docs" in the zotonic root
[16:07:15] <arjan> k probably the stubs cmd generates it
[16:07:16] <arjan> strange
[16:07:34] <Marc Worrell> for now I just remove the livedata one
[16:07:58] <arjan> do you have a ".tpl" file somewhere
[16:08:54] <Marc Worrell> hmmm the docs says it comes from ../modules/mod_translation/templates/text/language_switch.tpl
[16:09:09] <arjan> weird..
[16:09:51] <arjan> maybe because there is a _language_siwtch.tpl and a language_swtich.tpl
[16:09:54] <Marc Worrell> oh, my whole template list is broken anyway
[16:10:02] <arjan> with and without the underscore
[16:10:26] <arjan> if you go into doc you can just do "make doc"
[16:10:29] <arjan> way faster
[16:10:34] <Marc Worrell> i'll try
[16:11:51] <Marc Worrell> I got some paths wrong I think:
[16:11:52] <Marc Worrell> /Users/marc/Sites/zotonic-mx/doc/ref/templates/template_admin.rst:2: SEVERE: Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'ref/templates/meta-admin.rst'.
[16:11:57] <Marc Worrell> kazillion times
[16:13:20] <Marc Worrell> doesn't matter for now
[16:13:37] <arjan> strange
[16:14:46] <Marc Worrell> hmmm, I think I did something wrong when adding the model
[16:14:47] <Marc Worrell> http://zotonic.com/docs/ref/models/model_rsc_gone.html
[16:16:07] <Marc Worrell> or is our push a tad slow
[16:22:00] <Marc Worrell> how can I do a manual update of the docs on the server?
[16:22:24] <Marc Worrell> just git pull in the files/zotonicdocs/?
[16:23:24] <arjan> I'll check it
[16:23:28] <Marc Worrell> done
[16:23:31] <arjan> hey
[16:23:33] <arjan> how?
[16:23:37] <arjan> pushed the button again?
[16:23:51] <Marc Worrell> command line magic :p
[16:24:07] <Marc Worrell> there was an autogenerated m_rsc_gone rst file in the way
[16:24:14] <arjan> ah yes ofcourse
[16:24:34] <arjan> it does make stubs on the server as well
[16:24:42] <arjan> so then you get a conflict, if you commit something without documentation ;)
[16:25:08] <Marc Worrell> but "make html" didn't do all its work… http://zotonic.com/docs/ref/models/model_rsc_gone.html
[16:26:00] <arjan> ?
[16:26:07] <Marc Worrell> a touch did wonders
[16:26:21] <arjan> varnish...
[16:26:28] <Marc Worrell> nope make
[16:26:45] <Marc Worrell> auto generated stub file was newer than the written docs
[16:34:54] <andreas.stenius> hmm... I can see there is room for improvements in the docs build department... :p
[16:35:08] <Marc Worrell> :p details
[16:35:20] <andreas.stenius> Marc, have you seen this? https://github.com/nygge/abnfc
[16:35:35] <andreas.stenius> (speaking of LALR parser and what not....)
[16:36:02] <andreas.stenius> I've not used it, joust found it a while ago (year(s)...?)
[16:36:16] <Marc Worrell> ABNF? have to check that :p
[16:37:16] <Marc Worrell> will bookmark it
[16:37:27] <Marc Worrell> LALR(1) is often a PITA
[16:39:01] <maas.maarten.zeeman2305> Nice, now we can follow specs :-)
[17:41:54] maas.maarten.zeeman leaves the room
[17:41:55] maas.maarten.zeeman2305 leaves the room
[19:16:19] Maas joins the room
[20:33:08] maas.maarten.zeeman joins the room
[20:34:56] Maas leaves the room
[22:49:04] andreas.stenius leaves the room
[23:01:32] <maas.maarten.zeeman> btw. do i have to include meta-template.rst in the documentation of a controller.
[23:02:11] <maas.maarten.zeeman> No, meta-lib.rst
[23:03:54] <arjan> eh,
[23:05:03] <arjan> so controller_lib includes meta-lib
[23:05:03] maas.maarten.zeeman leaves the room
[23:05:18] maas.maarten.zeeman joins the room
[23:05:57] <maas.maarten.zeeman> Sorry, misread it. was looking at something else.
[23:06:27] <arjan> :)
[23:10:53] <maas.maarten.zeeman> Added a little bit of explanation. There is not much else to tell for this controller.
[23:12:18] <maas.maarten.zeeman> Is it possible to pull that into the pull request?
[23:14:34] arjan leaves the room
[23:16:54] <maas.maarten.zeeman> It is added automatically. Now how did it guess I wanted to include that commit.
[23:44:12] maas.maarten.zeeman leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!