Zotonic
Zotonic
zotonic@conference.zotonic.com
Monday, 7 January 2013< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[08:50:40] Arjan joins the room
[08:55:39] Andreas Stenius joins the room
[08:58:13] Maas joins the room
[09:00:42] Maas_ joins the room
[09:54:32] <Andreas Stenius> Hi, any of you looked at http://www.corosync.org/ ? (could perhaps be used by zynamo...)
[10:07:52] Andreas Stenius leaves the room
[10:11:25] Andreas Stenius joins the room
[10:51:13] <Maas_> is there a reason why urlencode translate a space into a + instead of %20?
[10:52:00] <Maas_> I know a plus should work too, only not for javascript :-p
[10:52:23] <Arjan> no idea
[10:52:32] <Arjan> looks nicer probably :p
[10:52:41] <Arjan> weird though
[10:52:46] <Maas_> haha
[10:53:02] <Maas_> strange usecase. busy with a bookmarklet
[10:53:12] <Maas_> nasty js
[10:54:50] <Maas_> weird that it doesn't work. chrome interprets the + as a real +
[10:55:02] <Maas_> instead of a space..
[10:58:22] <Arjan> https://www.google.nl/search?q=javascript+decodeuricomponent+plus&aq=1&oq=javascript+decodeuri&aqs=chrome.2.57j0l3.4062&sugexp=chrome,mod=18&sourceid=chrome&ie=UTF-8
[10:58:27] <Arjan> strange
[10:59:47] <Maas_> wow
[11:00:06] <Maas_> how many escape functions do you need.
[11:06:46] <Maas_> We should look into that for filter_urlencode.
[11:19:00] Protagores joins the room
[11:24:21] <Maas_> This php weirdness tops it all :-p decodeURIComponent((str+'').replace(/\+/g, '%20'));
[11:25:25] <Maas_> conclusion... zotonic should have a replace filter :-D
[11:26:37] <Andreas Stenius> write one? ;)
[11:26:57] <Arjan> doesnt it have one?
[11:27:00] <Andreas Stenius> there's a replace_args filter, but that doesn't quite do what you want...
[11:27:05] <Arjan> http://zotonic.com/docs/latest/ref/filters/filter_replace.html
[11:27:14] <Maas_> o wow.
[11:27:20] <Maas_> was just kidding
[11:27:22] <Andreas Stenius> haha :D
[11:28:21] <Andreas Stenius> there it was again, the when instead of if: "When you don not..." :p
[11:35:20] <Arjan> fixed
[11:36:15] <Andreas Stenius> and a minor spelling typo too, nice :)
[11:37:05] <Arjan> :)
[11:50:01] Arjan leaves the room
[11:57:07] Maas_ leaves the room
[12:47:19] maas.maarten.zeeman joins the room
[13:14:24] <maas.maarten.zeeman> I would like to adapt controller_lib so it can be used to concatenate js files on the server with a dispatch rule instead of using the lib tag. Ok? I will document it of course ;-)
[13:41:20] Arjan joins the room
[13:42:39] <Arjan> maas.maarten.zeeman: so you give the JS files as dispatch arguments?
[14:22:23] <maas.maarten.zeeman> yep
[14:23:28] <maas.maarten.zeeman> Then I can create a dispatch rule bookmarklet.js which is actually a collection of stuff.
[14:26:06] <maas.maarten.zeeman> First I have to finish some other things though.
[14:26:27] <Arjan> k
[15:29:27] Andreas Stenius leaves the room
[15:38:41] Protagores leaves the room
[15:42:00] Andreas Stenius joins the room
[15:47:24] protagores joins the room
[17:07:28] maas.maarten.zeeman leaves the room
[17:59:58] Arjan leaves the room
[18:54:46] Andreas Stenius leaves the room
[18:54:46] Andreas Stenius joins the room
[19:02:07] protagores leaves the room
[19:07:44] Arjan joins the room
[19:27:14] Arjan leaves the room
[20:05:43] Arjan joins the room
[20:30:40] maas.maarten.zeeman joins the room
[20:39:01] maas.maarten.zeeman leaves the room
[20:44:13] maas.maarten.zeeman joins the room
[20:50:09] maas.maarten.zeeman leaves the room
[20:50:12] Arjan leaves the room
[20:51:00] Arjan joins the room
[20:52:26] Maas leaves the room
[20:53:32] Maas joins the room
[20:54:54] <Arjan> maybe, just maybe, we should give edges data
[20:55:00] <Arjan> e.g. a props field like rsc has
[20:55:38] <Arjan> sometimes the need arises for this
[21:00:37] Maas leaves the room
[21:01:42] maas.maarten.zeeman joins the room
[21:10:48] <maas.maarten.zeeman> Hmm, yes, but then those values are not directly usable from a query. Could be a non issue.
[21:11:14] <maas.maarten.zeeman> Or pivot table?
[21:13:02] <Arjan> initially I dont really care about queries actually :)
[21:13:10] <maas.maarten.zeeman> haha
[21:13:25] <Arjan> but for some edges it makes sense
[21:13:41] <Arjan> although you can always solve it with an extra rsc and having 2 edges
[21:13:48] <Arjan> but yeah :p
[21:13:59] <maas.maarten.zeeman> Hehe
[21:14:26] <maas.maarten.zeeman> Every "thing" should be able to have props.
[21:14:57] <maas.maarten.zeeman> At times when I had that need marcs kv module helped me out.
[21:15:22] <Arjan> hmm indeed
[21:15:31] <Arjan> just have the edge id as key
[21:15:33] <Arjan> :p
[21:15:37] <maas.maarten.zeeman> yup.
[21:15:45] <Arjan> pretty elegant actually :)
[21:15:56] <maas.maarten.zeeman> with something extra. works pretty well actually
[21:16:09] <Arjan> type = edge
[21:16:16] <Arjan> tkv :)
[21:16:19] <Arjan> or edge_data, whatever
[21:16:22] <Arjan> but yeah
[21:16:24] <maas.maarten.zeeman> kv to the rescue :-)
[21:16:28] <Arjan> I'll suggest this to the guy on the list
[21:16:50] <maas.maarten.zeeman> ow wasn't aware of that.
[21:17:00] <Arjan> he wants to store a password on an edge basically
[21:17:37] <maas.maarten.zeeman> a hash i hope
[21:17:47] <Arjan> :)
[21:17:49] <Arjan> indeed
[21:19:42] <maas.maarten.zeeman> I also use it for access control I see.
[21:20:10] <maas.maarten.zeeman> For giving access to users which are not yet signed up.
[21:25:43] <maas.maarten.zeeman> Hmm.. documentation is a bit sparse here.
[21:26:33] <Arjan> for tkv?
[21:26:39] <maas.maarten.zeeman> Yes.
[21:26:50] <maas.maarten.zeeman> Simple (type,key)/value store. Stores data in the store with minimal latency and (local) serialization of get/put requests.
[21:26:56] <maas.maarten.zeeman> That's it.
[21:27:02] <Arjan> lol
[21:27:12] <maas.maarten.zeeman> Well it is that flexible :-)
[21:27:43] <Arjan> at least http://zotonic.com/docs/0.9/ref/models/model_tkvstore.html?highlight=m_tkvstore needs documenting
[21:27:50] <Arjan> e.g. how to use the thing :p
[21:27:56] <Arjan> I'll have a go at it
[21:28:15] <maas.maarten.zeeman> use the source.
[21:28:25] <maas.maarten.zeeman> (for now)
[21:28:38] <maas.maarten.zeeman> bye. I have to stop too :-)
[21:29:50] maas.maarten.zeeman leaves the room
[22:05:41] <Arjan> OK I documented m_tkvstore and mailed the list
[22:13:54] Arjan leaves the room
[22:47:56] <Andreas Stenius> nice! I've asked for props on edges too, at some point. Can't remeber for what now, but if I ever encounter it again, I'll try to remember the tkv trick and see if it applies :)
[23:03:09] Andreas Stenius leaves the room
[23:27:19] Arjan joins the room
[23:29:03] Arjan leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!