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

GMT+2
[01:24:13] Maas leaves the room
[08:04:06] Ilya Rezvov joins the room
[08:39:19] Maas joins the room
[08:56:54] arjan joins the room
[08:59:25] Ilya Rezvov leaves the room
[09:52:42] arjan leaves the room
[09:54:08] Ilya Rezvov joins the room
[09:56:13] Ilya Rezvov leaves the room: Replaced by new connection
[09:56:14] Ilya Rezvov joins the room
[09:56:21] Ilya Rezvov leaves the room
[09:57:27] Ilya Rezvov joins the room
[10:00:09] Ilya Rezvov leaves the room
[10:09:55] Ilya Rezvov joins the room
[10:23:41] andreas.stenius joins the room
[10:30:27] <andreas.stenius> this link is broken: http://zotonic.com/multilingual-support has it moved, or does not exist?
[10:30:51] <andreas.stenius> from http://zotonic.com/tag-trans
[10:32:44] <andreas.stenius> Marc Worrell: on the trans page, there's an "alternative" representation. What is the purpose with that?
[11:15:12] arjan joins the room
[11:32:03] arjan leaves the room
[12:20:26] <Marc Worrell> @andreas no idea :p have to look it up
[12:21:03] <Marc Worrell> Oh, that is a Django TL thing
[12:21:22] <Marc Worrell> All tags have an alternative presentation, so that you can see the page without tags (as HTML)
[12:22:45] <andreas.stenius> huh?
[12:24:25] arjan joins the room
[12:25:14] <Marc Worrell> :P
[12:25:24] <Marc Worrell> ls -la
[12:25:32] <Marc Worrell> lol - wrong window
[12:25:45] <andreas.stenius> la la la...
[12:26:43] <andreas.stenius> I don't think the alternative syntax makes any sense in the docs. At least not in it's current form...
[12:29:19] <arjan> agreed
[12:31:34] <andreas.stenius> if it hasn't been clarified until next time I update some more tags docs, I'll remove that part from tag_trans.rst.
[12:32:04] <Marc Worrell> hmmm running into the max open ports on women on waves
[12:46:34] <Marc Worrell> we need to set ERL_MAX_PORTS in the startup scripts
[12:46:39] <Marc Worrell> to something high
[13:41:14] <Maas> Ai. There is something in the scripts already :-)
[13:43:17] <Maas> export MAX_PORTS in your start script and your done.
[13:53:49] <Maas> just exporting ERL_MAX_PORTS does not work because of the way heart is used.
[14:28:00] arjan leaves the room
[14:30:27] Maas leaves the room
[15:26:51] arjan joins the room
[15:54:21] <arjan> Maas: why is that a problem
[15:54:27] <arjan> oh lol
[15:54:29] <arjan> maas != here
[16:24:21] Ilya Rezvov leaves the room
[16:56:24] <Marc Worrell> Andreas!!!!! You just stole my Masterbranch MVP of Zotonic!!!!!
[16:56:28] <Marc Worrell> :-D
[16:58:19] <Marc Worrell> For the stats. Miffy (the server of women on waves, maxclass, etc etc) was just handling 9mbit out and 6 mbit in traffic
[16:58:25] <Marc Worrell> still flying
[17:03:38] <arjan> mvp?
[17:04:02] <andreas.stenius> Marc Worrell: Moohahaha!! :p
[17:04:17] <andreas.stenius> arjan: masterbranch stuff...
[17:04:40] <andreas.stenius> https://masterbranch.com/developer-achievements?uid=4004&from=email
[17:05:28] <andreas.stenius> Marc Worrell: wow, that's pretty neat :)
[17:05:47] <arjan> congrats :)
[17:05:58] <arjan> I think documentation commits weigh more :P
[17:06:11] <andreas.stenius> lol :D
[17:07:49] <andreas.stenius> just looking at catinclude. I find it both as a builtin tag and as a scomp... (doc wise, will look in the source too...)
[17:08:16] <arjan> I think the tag calls the scomp
[17:08:36] <arjan> in that case the scomp doc can go, I think
[17:08:44] <arjan> do the .ignore trick
[17:08:50] <arjan> like I did in models/.generate
[17:09:19] <andreas.stenius> ok, I'll have a look.
[17:10:14] <andreas.stenius> why is it done like that?
[17:10:56] <arjan> because m_rsc_update is not really a model
[17:11:01] <arjan> neither is m_rsc_import/export
[17:11:14] <arjan> it generated stubs for those
[17:11:35] <andreas.stenius> no no, I mean, why is the builtin tag catinclude calling the mod_base scomp catinclude.
[17:12:29] <arjan> oh
[17:12:39] <andreas.stenius> is it to support the {% all catinclude %} too ? since that wouldn't work with a scomp alone, I guess...
[17:12:40] <arjan> I think its just that the code needed to go somewhere...
[17:12:50] <arjan> yes probably so
[17:13:15] <andreas.stenius> yeah, because the {% catinclude %} wouldn't need to be a builtin, per se (that I can see)
[17:14:20] <arjan> I dont know
[18:05:24] arjan leaves the room
[18:38:12] arjan joins the room
[18:42:09] arjan leaves the room
[18:45:00] arjan joins the room
[18:49:45] <Marc Worrell> the tag include is implemented as a scomp (if i remember correctly)
[18:49:54] <Marc Worrell> but the compiler adds support, for the special syntax
[19:00:24] arjan leaves the room
[19:16:23] arjan joins the room
[19:25:47] arjan leaves the room
[19:38:13] <andreas.stenius> Ah, include too....
[19:38:29] <Marc Worrell> yep, it is a kind of mixed bag
[19:38:37] <Marc Worrell> the include can do actually two things.
[19:38:50] <Marc Worrell> 1. inline the included template; or
[19:39:00] <Marc Worrell> 2. Runtime include with the scomp
[19:39:50] <Marc Worrell> The notation {% include "template.tpl" … %} is actually just a compiler thing.
[19:40:54] <Marc Worrell> we do a runtime include when the template name is an expression, when there are caching instructions or a special 'scomp' argument to force it to a runtime include
[19:41:03] <andreas.stenius> this ought to be covered by the docs, somehow...
[19:41:08] <Marc Worrell> sometime you want a runtime include for recursive templates
[19:41:33] <andreas.stenius> ah, intricate...
[19:41:35] <Marc Worrell> there is quite a bit in the docs, though not how it is internally managed
[19:41:49] <andreas.stenius> anyhow, I've .ignore'd the include scomp.
[19:41:57] <Marc Worrell> maybe split it, and add a special chapter how the stuff is compiled
[19:42:15] <Marc Worrell> that is good, the include scomp is not really a scomp
[19:42:24] <andreas.stenius> yeah, it's too much detail to have in the include tag reference, I think...
[19:43:15] <andreas.stenius> working on extracting the builtin tags from the erlydtl scanner... I found there's a nice list of tags that I can pull out :)
[19:43:27] <Marc Worrell> yes? wow :-)
[19:43:37] <andreas.stenius> and recognize a few that aren't mentioned in the docs, too ;)
[19:43:39] <Marc Worrell> the scanner is quite straight forward
[19:44:02] <andreas.stenius> yeah, a little sed is all it takes :[
[19:44:04] <Marc Worrell> I want to redo the syntax for the {% with %} and multiple args
[19:44:08] <andreas.stenius> ;P
[19:44:23] <andreas.stenius> bah, slippy fingers... :p
[19:44:56] <andreas.stenius> ah, I never quite grok'ed the with tag..
[19:45:13] <andreas.stenius> maybe if I found a use case for it...
[19:45:52] <andreas.stenius> do you have any plans for the acl module (support for groups)?
[19:45:56] Ilya Rezvov joins the room
[19:46:23] <Marc Worrell> not yet worked out
[19:46:29] <Marc Worrell> we should do something :p
[19:46:51] <andreas.stenius> Indded. My trackz project got to a stall on that... :]
[19:46:55] <Marc Worrell> there were some ideas at the start, never got around to implement them (other work had higher prio)
[19:47:25] <Marc Worrell> maybe we can make a nice acl module, when we have a good description of the rules needed
[19:47:26] <andreas.stenius> I'm willing to pull some weight, but it could be nice with some input, ideas and general pointers. :p
[19:47:45] <Marc Worrell> the acl system is actually quite flexible
[19:47:47] <andreas.stenius> I have a very specific use case for it :)
[19:48:05] <andreas.stenius> yeah, that's part of the problem... too many ways to go about it :p
[19:48:07] <Marc Worrell> and a few tricks can come a long way, like adding columns to the rsc table :p
[19:48:38] <andreas.stenius> ah, I never went down that path... ;)
[19:48:39] <Marc Worrell> (in maxclass there are a school_id and class_id column extra, the rsc module is so flexible that it actually can handle them without any problems)
[19:48:54] <andreas.stenius> nice
[19:49:25] <andreas.stenius> I was wondering how max class had done it, since I'm sure it must have solved it already...
[19:49:46] <Marc Worrell> the acl module in maxclass is rather complex… 1000 lines
[19:50:06] <Marc Worrell> all kinds of nasty details covered
[19:50:13] <andreas.stenius> would be nice with a generic module, that you can configure
[19:50:27] <andreas.stenius> similar to the simple roles, but with support for groups too
[19:50:46] <andreas.stenius> would be nice with custom actions too, of course :p
[19:50:47] <Marc Worrell> alter table rsc
add column school_id int,
add column class_id int,
add column visible_for_role int not null default 2,
add constraint fk_rsc_school_id foreign key (school_id) references rsc(id)
on update cascade
on delete cascade,
add constraint fk_rsc_class_id foreign key (class_id) references rsc(id)
on update cascade
on delete cascade
[19:51:06] <Marc Worrell> an interesting part :p
[19:51:16] <andreas.stenius> indeed :)
[19:51:43] <Marc Worrell> yes, we need a simple roles like one, with content belonging to a group
[19:51:49] <Marc Worrell> shouldn't be too hard :p
[19:52:35] <andreas.stenius> what I have is projects, that has members (users), and admins, and perhaps other roles too. And depending on which role you have in the project, you can do/see different things...
[19:53:10] <andreas.stenius> so, a project is like the center, to which you can have different roles applied to, for users to be members of
[19:53:11] <Marc Worrell> yep, the normal matrix
[19:53:27] <Marc Worrell> with lots of checkboxes for activities
[19:53:32] <andreas.stenius> yep
[19:53:44] <Marc Worrell> we could make one of those
[19:53:51] <andreas.stenius> :D
[19:54:13] <Marc Worrell> and add a column to things to define the ownership of a rsc (group/user)
[19:54:19] <andreas.stenius> that would be useful for our upcoming full-blown CMS system, too ;)
[19:54:27] <Marc Worrell> :p
[19:54:37] <Marc Worrell> then we are immediately ready ;-)
[19:56:19] <Marc Worrell> maybe you can work out a matrix
[19:56:26] <Marc Worrell> that is the hardest part :p
[19:56:48] <Marc Worrell> the rest involves some caching here and there, no big deal for us.
[19:57:01] <andreas.stenius> yeah, was thinking perhaps have a google doc for it, where we can scribble down ideas and work out how it should work, from a user perspective, and go from there... ?
[19:57:31] <andreas.stenius> I'll kick it off, see how far I get :)
[19:58:16] <Marc Worrell> this is what we used and adapted for anymeta: http://phpgacl.sourceforge.net/manual.pdf
[19:58:37] <Marc Worrell> maybe check it, it is super flexible (a bit too much)
[19:58:53] <andreas.stenius> nice
[19:59:08] <andreas.stenius> will read it, always nice to borrow ideas :)
[19:59:25] <Marc Worrell> but because we can keep the ACL matrix in memory we can speed things up quite nicely
[19:59:43] <Marc Worrell> borrowing is better than coming up with something completely new :p
[19:59:49] <andreas.stenius> yeah, mem + cache = speed :)
[19:59:54] <Marc Worrell> yep
[20:00:06] <Marc Worrell> keep the matrix in a gen_server and message that thing
[20:00:11] <Marc Worrell> will be fast enough
[20:00:19] <Marc Worrell> way faster than most other systems
[20:01:02] <andreas.stenius> should have some more comparative benchmarks for marketing... ;)
[20:01:06] <Marc Worrell> also means that you can make it a structure that doesn't need to fit in SQL tables, just serialize it into and store it into the db
[20:01:20] <Marc Worrell> :p
[20:01:35] Ilya Rezvov leaves the room
[20:01:46] <Marc Worrell> women on waves is today at 1.7M hits and counting...
[20:01:52] <andreas.stenius> well, work out the use patterns first
[20:02:01] <andreas.stenius> nice. popular site :)
[20:02:15] <Marc Worrell> going to morocco helps :p
[20:02:28] <andreas.stenius> morocco?
[20:02:47] <andreas.stenius> who's going there?
[20:02:47] <Marc Worrell> https://www.womenonwaves.org/en/page/3416/in-collection/2604/morocco-2012
[20:03:03] <andreas.stenius> aha
[20:04:19] <Marc Worrell> their https for all the editing works great btw
[20:05:09] <andreas.stenius> :)
[20:05:22] <andreas.stenius> kaos@morpheus:~/zotonic/doc$ ./ref/tags/.get_tags ../src/erlydtl/erlydtl_scanner.erl
identifier_to_keyword({identifier, Pos, String}, {PrevToken, Acc}) when PrevToken == open_tag; PrevToken == all_keyword ->
%% At the start of a {% .... %} tag we accept all keywords
RevString = lists:reverse(String),
fornemptynendforninnincludencatincludenblocknendblockn,
extendsnoverrulesninheritnautoescapenendautoescapenifnelsenelseifnendifn,
notnornandnxorncommentnendcommentncyclenfirstofn,
ifchangednifequalnendifequalnifnotequalnendifnotequaln,
nownregroupnrscnspacelessnendspacelessnssintemplatetagn,
loadncallnwithnurlnprintnimagenimage_urlnmedian_nwithnendwithn,
allnlibncachenendcachenfilternendfilternjavascriptnendjavascriptn ],
Type = case lists:member(RevString, Keywords) of
[20:05:32] <andreas.stenius> just needs to break it up, and clean it a bit....
[20:05:36] <Marc Worrell> LOL
[20:05:38] <Marc Worrell> *just*
[20:06:10] <andreas.stenius> that's from three lines of sed script...
[20:06:26] <andreas.stenius> only took two hours to figure out :P
[20:07:13] <Marc Worrell> yeah, figuring stuff out is the hard part
[20:09:13] <andreas.stenius> kaos@morpheus:~/zotonic/doc$ ./ref/tags/.get_tags ../src/erlydtl/erlydtl_scanner.erl
fornemptynendforninnincludencatincludenblocknendblockn,
extendsnoverrulesninheritnautoescapenendautoescapenifnelsenelseifnendifn,
notnornandnxorncommentnendcommentncyclenfirstofn,
ifchangednifequalnendifequalnifnotequalnendifnotequaln,
nownregroupnrscnspacelessnendspacelessnssintemplatetagn,
loadncallnwithnurlnprintnimagenimage_urlnmedian_nwithnendwithn,
allnlibncachenendcachenfilternendfilternjavascriptnendjavascriptn ],
k
[20:09:17] <andreas.stenius> better :)
[20:10:01] <andreas.stenius> for empty endfor in include catinclude block endblock ,
extends overrules inherit autoescape endautoescape if else elseif endif ,
not or and xor comment endcomment cycle firstof ,
ifchanged ifequal endifequal ifnotequal endifnotequal ,
now regroup rsc spaceless endspaceless ssi templatetag ,
load call with url print image image_url media _ with endwith ,
all lib cache endcache filter endfilter javascript endjavascript ],
[20:10:04] <andreas.stenius> aknist there
[20:10:07] <andreas.stenius> almost*
[20:12:27] <Marc Worrell> aknist - nice word
[20:12:28] <Marc Worrell> :p
[20:12:49] <andreas.stenius> ha, my hand was misaligned... :p
[20:15:02] <andreas.stenius> ; doneorpheus:~/zotonic/doc$ for tag in `./ref/tags/.get_tags ../src/erlydtl/erlydtl_scanner.erl` ; do echo tag is $tag
tag is for
tag is empty
tag is endfor
tag is in
tag is include
tag is catinclude
tag is block
tag is endblock
tag is extends
tag is overrules
tag is inherit
tag is autoescape
tag is endautoescape
tag is if
tag is else
tag is elseif
tag is endif
tag is not
tag is or
tag is and
tag is xor
tag is comment
tag is endcomment
tag is cycle
tag is firstof
tag is ifchanged
tag is ifequal
tag is endifequal
tag is ifnotequal
tag is endifnotequal
tag is now
tag is regroup
tag is rsc
tag is spaceless
tag is endspaceless
tag is ssi
tag is templatetag
tag is load
tag is call
tag is with
tag is url
tag is print
tag is image
tag is image_url
tag is media
tag is _
tag is with
tag is endwith
tag is all
tag is lib
tag is cache
tag is endcache
tag is filter
tag is endfilter
tag is javascript
tag is endjavascript
[20:15:05] <andreas.stenius> there :)
[20:15:35] <andreas.stenius> ah, I don't want the end* tags...
[20:22:16] Maas joins the room
[20:25:47] <Marc Worrell> or, and, xor :p
[20:26:15] <Marc Worrell> hey, do we have firstof?
[20:26:16] <Marc Worrell> :p
[20:26:31] <andreas.stenius> yeah
[20:26:47] <Marc Worrell> haha, I was thinking of adding it last week
[20:26:53] <andreas.stenius> or, and, xor is not opening tags
[20:27:05] <Marc Worrell> nope, just reserved keywords
[20:27:15] <andreas.stenius> I can get them too... but should I ?
[20:27:25] <Marc Worrell> no, skip them
[20:27:36] <Marc Worrell> should be in the section discussing expressions
[20:27:42] <andreas.stenius> yup
[20:27:47] <andreas.stenius> thought so
[20:27:47] <Marc Worrell> which is quite complex on its own...
[20:27:54] <andreas.stenius> :)
[20:28:01] <andreas.stenius> commenting my sed script....
[20:28:05] <Marc Worrell> with all the filters, models, priorities etc
[20:28:32] arjan joins the room
[20:29:10] <Marc Worrell> where shall I add SSL docs?
[20:29:51] <andreas.stenius> mmm....
[20:30:42] <Marc Worrell> we have ' • Run secure sites using SSL
[20:30:48] <Marc Worrell> under Zotonic installation
[20:30:57] <andreas.stenius> yeah... just saw you there :P
[20:31:13] <Marc Worrell> :p
[20:31:25] <Maas> Shall I add elseif and document an addition (if) to the cache tag? First I have to put the kids in bed.
[20:31:27] <arjan> just add it somewhere under manuals
[20:31:38] <arjan> Maas: yes good one
[20:31:47] <andreas.stenius> I'll generate stubs for the tags, so hold on a sec....
[20:31:55] <andreas.stenius> oh, not sec, more like an hour...
[20:32:04] <Marc Worrell> Maybe I first add the details in mod_ssl? Then from there we can make an installation like manual
[20:32:13] <Maas> k. that is probably how long it takes me to get the kids in bed :-)
[20:32:13] <andreas.stenius> sounds good
[20:32:26] <Marc Worrell> an hour? you have fast kids
[20:32:39] <Marc Worrell> ok, mod_ssl…. learning rst….
[20:32:45] Marc Worrell diving into the deep
[20:32:48] arjan leaves the room
[20:32:53] <Maas> haha. They are 7 and 9 I don't have to babysit them anymore (i hope)
[20:33:06] <andreas.stenius> ah :)
[20:33:09] <Marc Worrell> you can come here to babysit Mr T :p
[20:33:22] <Marc Worrell> then Lily and I go partying :p
[20:33:32] <andreas.stenius> lol :p
[20:33:36] <Maas> lol
[20:34:15] <Marc Worrell> how shall we document the modules?
[20:34:20] <andreas.stenius> I have a script picking up tags from erlydtl scanner:
[20:34:37] <andreas.stenius> ah, nevermind...
[20:34:44] <andreas.stenius> Marc Worrell: ?
[20:34:45] <Marc Worrell> Hmmm, every module is quite different
[20:34:50] <Marc Worrell> that is me!
[20:35:02] <andreas.stenius> you're a module!
[20:35:06] <Marc Worrell> I mean the sections inside the mod_xxxx pages
[20:35:33] <andreas.stenius> first, the meta file has the title already, so your titles in the docs start of at a ----- level
[20:35:42] <andreas.stenius> if you have any...
[20:36:13] <andreas.stenius> ok, I've a kid to put to bed too, now... brb
[20:37:37] arjan joins the room
[20:37:42] <arjan> alrighty
[20:37:48] <arjan> on the couch with laptop
[20:37:52] <arjan> time for some docs :)
[20:40:29] arjan leaves the room
[20:41:43] <Marc Worrell> any document I could use as a template for mod_ssl docs?
[20:41:56] <Marc Worrell> So that I don't need to google for the magic tags
[20:43:07] arjan joins the room
[20:43:08] <Marc Worrell> what does this?
[20:43:09] <Marc Worrell> .. include:: meta-add_day.rst
[20:43:22] <arjan> those meta files are automatically generated
[20:43:29] <arjan> they contain amongst other the title of the page
[20:43:36] <Marc Worrell> great
[20:43:37] <arjan> and a label so you can create x-refs
[20:44:10] <arjan> the actual text goes below the meta include
[20:44:46] <Marc Worrell> I first write something, then mark it up
[20:45:15] <arjan> does ST2 support rst?
[20:45:21] <Marc Worrell> yep
[20:45:24] <arjan> nice
[20:45:29] <Marc Worrell> it recognized it as rst
[20:45:37] <Marc Worrell> don't know what it can do though
[20:45:55] <arjan> as long as it does some smart indenting and syntax coloring...
[20:46:01] <Maas> Not much I'm afraid.
[20:46:11] <arjan> Maas: you use ST2 too?
[20:46:16] <Maas> yes
[20:46:27] <Maas> love it. in vi mode
[20:46:30] <arjan> heh
[20:46:35] <arjan> vi!
[20:46:40] <arjan> evil :P
[20:46:54] <arjan> anyhow
[20:46:56] <Maas> that's what i had to learn at uni
[20:47:17] <arjan> RST tables are the most challenging to do
[20:48:59] <Maas> +-----+
[20:49:23] <arjan> yes..
[20:49:38] <arjan> challenging is resizing columns and text wrapping :P
[20:49:44] <arjan> maybe this works for you
[20:49:45] <arjan> https://github.com/vkocubinsky/SublimeTableEditor
[20:49:53] <arjan> andreas and me use emacs which makes tables pretty easy
[20:51:37] <Marc Worrell> how do we describe configuration keys?
[20:51:39] <Marc Worrell> Table?
[20:51:51] <Marc Worrell> Or a definition list?
[20:52:04] <arjan> hmm
[20:52:11] <arjan> I dont think we have reached consistency about that yet
[20:52:17] <arjan> lets see
[20:52:58] <arjan> definition list is OK, I think
[20:53:25] <Marc Worrell> ok, we can apply style sheets to those
[20:53:28] <arjan> the definition maybe in ``preformatted``
[20:53:40] <arjan> yeah also true
[20:53:45] <arjan> dont do the preformatted thing then
[20:55:20] <Marc Worrell> do we wrap lines? Or just long lines with soft wrap?
[20:55:37] <arjan> I think its nicer to wrap them
[20:55:58] <Marc Worrell> ``mod_ssl.is_secure`` is ok, we can apply styles to those as well
[20:56:04] <Marc Worrell> ok, hard wrap
[20:56:07] <arjan> k
[20:58:52] <Marc Worrell> And now I want to refer to "How to bind Zotonic to Port 80 and Port 443 <http://zotonic.com/documentation/871/running-on-port-80-and-port-443>"
[20:58:56] <Marc Worrell> how do I do that?
[20:59:30] <arjan> is that already a rst doc?
[21:11:36] <andreas.stenius> Marc Worrell: exists or not, make up a target ref name for it and use it. sphinx will emit a warning until we define it
[21:11:48] <andreas.stenius> something like :ref:`manual-ssl` could do it... :)
[21:12:07] <andreas.stenius> oh, it was port 80 too....
[21:12:26] <andreas.stenius> :ref:`manual-bind-to-privileged-ports` maybe...?
[21:13:19] <andreas.stenius> the target is then defined with a .. _manual-what-ever:
[21:13:41] <andreas.stenius> and the link text will become the same text as the following heading after the .. _manual...: stuff...
[21:19:09] <arjan> I'll reshuffle the docs a but
[21:19:11] <arjan> *bit
[21:19:14] <arjan> adding an install section
[21:19:27] <arjan> like in the outline
[21:20:22] <andreas.stenius> k
[21:30:03] <andreas.stenius> Marc Worrell: regarding not, or, xor, they are allowed as first token after the opening {%, so I let them pass.
[21:31:39] <andreas.stenius> ok, I pushed my .generate script for built-in tags! ;)
[21:32:22] <arjan> nice
[21:32:35] <Maas> I remember the port mapping chapter needs an extra iptables line. The current prevents one from contacting the server on the machine itself as 127.0.0.1 is not mapped.
[21:34:08] arjan leaves the room
[21:34:13] <Marc Worrell> mod_ssl is actually a quite long story....
[21:34:43] <Marc Worrell> @Maas indeed, also found that out the hard way :p
[21:34:45] <Maas> I can imagine. keys, certs and whatnot
[21:35:03] <Maas> Me to a couple of weeks ago.
[21:35:27] <Marc Worrell> Yep, and also helping with generating the correct files etc etc
[21:35:36] <Marc Worrell> To prevent too many questions.
[21:35:46] <andreas.stenius> +1 :)
[21:36:15] <andreas.stenius> Maas: stubs for the remaining built-in tags in place now... ;)
[21:36:38] <Maas> Cool. Was figuring out a good example for elseif.
[21:36:47] <andreas.stenius> :)
[21:37:26] <Maas> Can i just pull and edit the existing tag documentation?
[21:37:53] <Maas> Or do I have to call something
[21:38:08] <Maas> :q
[21:38:12] <Maas> wrong window
[21:39:06] <andreas.stenius> wrong window?
[21:39:33] <Maas> wanted to quit vi in another window
[21:39:45] <andreas.stenius> oh, that
[21:39:53] <andreas.stenius> looked like a smiley :d
[21:40:10] <andreas.stenius> smoking a pipe, or something :p
[21:40:27] <Maas> lol it probably is too.
[21:40:53] <andreas.stenius> pull and edit is fine
[21:40:59] <Maas> k
[21:42:53] <andreas.stenius> hey arjan: will you hear this if I shout!? ;) the doc hook ought to rebuild the entire docs, otherwise fixed refs in docs that otherwise wasn't touched won't be rebuilt...
[21:43:28] andreas.stenius is hoping Arjan will show up again tonight... :p
[21:44:10] <andreas.stenius> there's quite a few nice tags I wasn't aware of... :)
[21:45:41] <andreas.stenius> hmm I'm missing the debug tag.... ah, it's not a built in, it's a custom tag (hey, scomp)... :p
[21:46:57] <Maas> I think we don't need separate tag documentation on else and elseif as these are optional blocks of the if tag.
[21:47:25] <Maas> or is that something else?
[21:47:33] <andreas.stenius> ok, we can .ignore them (I fix)
[21:47:39] <andreas.stenius> no I think you're right
[21:52:44] <Marc Worrell> how do I generate the docs?
[21:53:21] <Marc Worrell> I want to see my beautiful file :p
[21:53:23] <andreas.stenius> from zot root, make docs, from doc dir, make html (and in that case, don't forget to run make stubs at least once first)
[21:53:54] <Maas> Thanks. Just what I wanted to ask too.
[21:54:01] <andreas.stenius> Maas: else, elseif now gone :p
[21:54:41] <andreas.stenius> it was an either or there...
[21:55:02] <Maas> Need to install sphinx I see. make[1]: sphinx-build: Command not found
[21:55:03] <andreas.stenius> either make docs from root dir, or make html from the doc dir... :p
[21:55:14] <andreas.stenius> ah, yes.
[21:55:50] <Marc Worrell> uh oh
[21:55:53] <Marc Worrell> I have /usr/bin/sed
[21:55:57] <Marc Worrell> and not /bin/sed
[21:56:12] <andreas.stenius> bah, should've used /bin/env sed then... :/
[21:56:29] <andreas.stenius> feel free to change it :P
[21:56:45] <Marc Worrell> ?
[21:56:45] <Marc Worrell> /bin/env sed
[21:56:47] <Marc Worrell> :p
[21:57:25] <andreas.stenius> mine is actually in /usr/gnu/bin/sed... guess they've linked it to /bin/sed .... :p
[21:57:48] <Maas> And here it is /usr/bin/env :-D
[21:58:16] <Marc Worrell> LOL
[21:58:21] <Marc Worrell> can't we just use "sed"
[21:58:29] <andreas.stenius> bah, I have /usr/bin/sed too... go with that then
[21:59:10] <andreas.stenius> well, you got me there... I'm used to always specify a path, or use env... dunno why actually...
[21:59:50] <andreas.stenius> but since I have /usr/bin/sed, and I guess that is the "common" place to find it, I think that should be fine....
[22:00:16] <andreas.stenius> I'm on an "uncommon" system, so.... :p
[22:00:16] <Maas> $ which sed
/bin/sed
[22:00:29] <Maas> :-) LOL
[22:00:52] <andreas.stenius> well, I seem to have sed all over the place! :d
[22:01:03] <Maas> I think it is common wisdom to use env
[22:01:19] <andreas.stenius> SunOS morpheus 5.11 oi_151a5 i86pc i386 i86pc Solaris
[22:01:37] <andreas.stenius> oi = OpenIndiana
[22:01:50] <andreas.stenius> a sort of fork of OpenSolaris
[22:01:58] <Maas> O boy, slowlaris :-p
[22:02:12] <andreas.stenius> what's slow about it?
[22:02:14] <Maas> old joke
[22:02:19] <andreas.stenius> ah :p
[22:02:45] <Maas> From when we moved from the thing before solaris to solaris
[22:02:54] <andreas.stenius> I've not run anything demanding off it yet, but it feels good :)
[22:03:37] arjan joins the room
[22:03:39] <Maas> The university was used as a testing bed by sun. We got all the beta releases and then sometimes things where wrong.
[22:03:43] <andreas.stenius> I like zfs, zones, boot environments, services, and networking, etc....
[22:04:43] <andreas.stenius> arjan: hint: look for a shout out for you further back in the history (perhaps gone now, we've been chatty... :p
[22:05:04] <Maas> I miss sun.
[22:05:19] <andreas.stenius> me too :(
[22:05:29] <andreas.stenius> 9:42:58 PM) andreas.stenius: hey arjan: will you hear this if I shout!? ;) the doc hook ought to rebuild the entire docs, otherwise fixed refs in docs that otherwise wasn't touched won't be rebuilt...
(9:43:32 PM) ***andreas.stenius is hoping Arjan will show up again tonight... :p
[22:05:31] <arjan> dont see the it
[22:05:43] <arjan> ok
[22:05:51] <arjan> so basically I need to do make clean stubs all?
[22:05:57] <andreas.stenius> yeah
[22:05:59] <arjan> I mean
[22:06:02] <arjan> make clean stubs html
[22:06:07] <arjan> k
[22:06:09] <arjan> hold on
[22:06:14] <Marc Worrell> ok, installing sphinx… where is google?
[22:06:25] <Maas> and for sphinx-build you need the ubuntu package sphinxsearch?
[22:06:42] <andreas.stenius> ?
[22:06:48] <andreas.stenius> I installed only one thing...
[22:07:25] <arjan> Maas: no!
[22:07:30] <Maas> k
[22:07:39] <arjan> python-sphinx
[22:07:44] <Maas> just asking. stupid user :-)
[22:07:48] <arjan> on mac its easy_install sphinx
[22:07:50] <arjan> or something
[22:08:02] <Maas> thats a bit of a gotcha
[22:08:25] <Marc Worrell> seems to work
[22:08:50] <arjan> sphinxsearch is a fulltext index thing
[22:08:55] <arjan> Marc Worrell: cool
[22:09:08] <Marc Worrell> loads of text scrolling past
[22:09:08] <Maas> I thought it was part of it.
[22:09:15] <arjan> nope totally separate things
[22:09:28] <Marc Worrell> downloading stuff over http, which will run with root rights, yeah!
[22:09:36] <arjan> lol
[22:09:48] <Marc Worrell> living dangerously
[22:09:55] <arjan> sudo easy_install is considered harmful
[22:10:05] <arjan> virtualenvs are the way to go
[22:10:10] <arjan> but whatever :)
[22:10:22] <arjan> rebuiding docs
[22:10:23] <andreas.stenius> lol
[22:10:35] <andreas.stenius> arjan: k :)
[22:11:11] <arjan> built
[22:11:14] <andreas.stenius> I noticed the issue when adding the tag docs. the former last item, print, had a link to the next topic, Custom Tags, but there were now loads of tags following it...
[22:11:32] <arjan> heh
[22:11:32] <andreas.stenius> next topic raw! yay :)
[22:11:49] <Maas> Nice everything built.
[22:11:49] <arjan> nice
[22:11:54] <andreas.stenius> cool
[22:11:56] <arjan> I did not produce anything useful yet
[22:12:02] <arjan> working on the deployment chapter
[22:12:13] <Marc Worrell> this is of course completely ok, not?
[22:12:14] <Marc Worrell> /Users/marc/Sites/zotonic-mx/doc/ref/models/model_search.rst:2: SEVERE: Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'ref/models/meta-search.rst'.
[22:12:22] <arjan> Marc Worrell:
[22:12:24] <arjan> make stubs
[22:12:26] <arjan> first
[22:12:27] <arjan> once
[22:12:34] <Marc Worrell> nou nou
[22:12:39] <arjan> :)
[22:12:46] <andreas.stenius> yes yes
[22:12:59] <arjan> im signing off, catch you guys later...
[22:13:02] <andreas.stenius> nou meaning? not "no" ?
[22:13:06] <andreas.stenius> cya
[22:13:16] <Maas> bye
[22:13:21] arjan leaves the room
[22:13:58] <Marc Worrell> make stubs doesn' help
[22:14:13] <andreas.stenius> hmmm... ok, lets crack this
[22:15:02] <Marc Worrell> it is just some warnings :p
[22:15:10] <Marc Worrell> we don't place that stuff into git, do we?
[22:15:30] <andreas.stenius> not the meta stuff, no
[22:15:48] <andreas.stenius> do you run make stubs from the doc dir?
[22:15:51] <Maas> Btw, side issue. Does make-stubs also work for sites and custom modules?
[22:16:08] <andreas.stenius> nope
[22:17:01] <andreas.stenius> but it's not too hard to include them. But I'd vote for fixing the generate scripts to be a little bit more generic and coherent first... ;)
[22:17:12] <Marc Worrell> Andreas: yes i did
[22:17:16] <Maas> Yeah you are right.
[22:17:31] <andreas.stenius> Marc Worrell: and you don't get a ref/model/meta-search.rst file?
[22:18:02] <Marc Worrell> ref/model?
[22:18:10] <Marc Worrell> in doc?
[22:18:18] <andreas.stenius> ah, yes, doc/ref/model...
[22:18:28] <andreas.stenius> hmm... could be arjan's .ignore thing...
[22:18:39] <Marc Worrell> nope, meta-search misses
[22:18:40] <andreas.stenius> he calls break
[22:18:48] <Marc Worrell> aha
[22:19:00] <Marc Worrell> nothing to worry about for now :p
[22:19:00] <andreas.stenius> I thought it might break the for loop, but it should only continue with the next item
[22:20:23] <Marc Worrell> committing my mod_ssl :p
[22:21:37] <andreas.stenius> ah, yes. break => continue fixed it... committing in a sec, shall fix the other places too....
[22:21:59] <Marc Worrell> pushed
[22:22:43] <Marc Worrell> oops? http://zotonic.com/docs/
[22:24:02] <andreas.stenius> oops what?
[22:24:09] <Marc Worrell> usr/bin/sed was not there...
[22:24:12] <Marc Worrell> linked it
[22:24:32] <Maas> got that warning too here.
[22:24:38] <Marc Worrell> guess next push will be ok
[22:24:58] <Marc Worrell> which is the correct location of sed? that is the question :p
[22:25:18] <Maas> Signing off. Good evening all.
[22:25:24] <andreas.stenius> g'night
[22:25:39] <andreas.stenius> marc: /bin/env sed
[22:26:29] <Marc Worrell> LOL
[22:26:33] <Marc Worrell> /usr/bin/env here
[22:26:36] <Marc Worrell> same problem
[22:26:49] <andreas.stenius> bah
[22:26:53] <Marc Worrell> very bah
[22:27:02] <andreas.stenius> you're machine is broken
[22:27:06] <Marc Worrell> LOL
[22:27:09] <andreas.stenius> your*
[22:27:18] <Marc Worrell> Uni* is broken
[22:28:20] <andreas.stenius> ah, reading wikipedia, it says /usr/bin/env
[22:28:30] <andreas.stenius> http://en.wikipedia.org/wiki/Shebang_(Unix)
[22:28:32] <Marc Worrell> http://www.gnu.org/software/sed/manual/sed.html#Increment-a-number
[22:28:38] <Marc Worrell> here it is /usr/bin/sed
[22:29:09] <andreas.stenius> yeah, I would expect /usr/bin/sed and other /usr/bin/ stuff to work...
[22:29:25] <Marc Worrell> http://en.wikipedia.org/wiki/Env
[22:29:25] <andreas.stenius> but not on miffy? (or which server is hosting zotonic.com?)
[22:29:36] <Marc Worrell> here it is /usr/bin/env
[22:29:49] <andreas.stenius> /usr/bin/env it is then
[22:29:53] <Marc Worrell> miffy = zotonic.com = debian = /bin/
[22:30:05] <andreas.stenius> ok, so debian is broken
[22:30:15] <Marc Worrell> marc@miffy:~$ which env
/usr/bin/env
[22:30:21] <andreas.stenius> aha!
[22:30:22] <Marc Worrell> that one is ok
[22:30:31] <Marc Worrell> so #!/iusr/bin/env sed
[22:30:37] <andreas.stenius> exactly
[22:30:50] <Marc Worrell> will fix
[22:30:55] <andreas.stenius> oh, #!/usr/bin/env sed -f
[22:31:24] <andreas.stenius> I've pushed the break vs continue fix, too...
[22:31:53] <Marc Worrell> pushed
[22:32:14] <Marc Worrell> http://zotonic.com/docs/ is not happy
[22:32:34] <andreas.stenius> it'll take a min or two for it to rebuld
[22:32:40] <andreas.stenius> rebuild*
[22:33:03] <Marc Worrell> :p almost there
[22:33:05] <Marc Worrell> http://zotonic.com/docs/
[22:33:24] <Marc Worrell> yeah! http://zotonic.com/docs/ref/modules/mod_ssl.html
[22:33:40] <andreas.stenius> nice!
[22:33:56] <andreas.stenius> will toss in a quick glance over....
[22:34:46] <Marc Worrell> we need to do a bit for the css
[22:34:52] <Marc Worrell> nice for later
[22:35:00] <andreas.stenius> yep
[22:35:06] <Marc Worrell> designer work - Mannschaft and Joost
[22:35:15] <andreas.stenius> :d
[22:35:56] <Marc Worrell> Oh, will add a section about the dispatch rules :p
[22:35:58] <andreas.stenius> if you want your Note to stand out a bit more, you can use .. note:: foo bar
[22:36:12] <Marc Worrell> complicated stuff, ssl
[22:36:19] <andreas.stenius> http://zotonic.com/docs/manuals/dispatch.html
[22:36:22] <Marc Worrell> and rst
[22:37:00] <Marc Worrell> yep, I need to cover the {ssl, any|true|false} option
[22:37:16] <andreas.stenius> ah, rigth
[22:38:13] <Marc Worrell> When I write:
[22:38:14] <Marc Worrell> The dispatch rule options define if a page
[22:38:29] <Marc Worrell> how do I make "dispatch rule options" a ref?
[22:39:10] <andreas.stenius> uh
[22:39:28] <andreas.stenius> do you want it to link somewhere else, or to be a link target from the index? or...?
[22:39:48] <Marc Worrell> yep, to http://zotonic.com/docs/manuals/dispatch.html
[22:40:02] <andreas.stenius> :ref:`manual-dispatch`
[22:40:09] <andreas.stenius> I think...
[22:40:17] andreas.stenius checks the source...
[22:40:49] <andreas.stenius> yep
[22:40:58] <andreas.stenius> as seen at the top of manuals/dispatch.rst:
.. _manual-dispatch:
[22:41:47] <andreas.stenius> if you want a custom title, use :ref:`my link title <manual-dispatch>`
[22:43:58] <andreas.stenius> if you're tweaking mod_ssl.rst...
"SSL support can be switched on for every site separately. " perhaps change every to each? .. on for each site ....
[22:45:29] andreas.stenius leaves the room
[22:45:49] <Marc Worrell> wow
[22:45:53] <Marc Worrell> complicated stuff :p
[22:46:05] <Marc Worrell> yep each
[22:47:47] andreas.stenius joins the room
[22:48:29] <andreas.stenius> my comp froze...
[22:49:20] <andreas.stenius> MS got rid of the bluescreen... now its black, with no text at all... :p
[22:49:58] <andreas.stenius> oh, well.... I should be off to bed any how..
[23:47:40] <andreas.stenius> nighty night....
[23:47:43] andreas.stenius zzzzzz
[23:47:47] andreas.stenius leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!