Thursday, 1 March 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang CMS
Room Configuration

[08:19:32] maas.maarten.zeeman joins the room
[08:45:20] maas.maarten.zeeman leaves the room
[08:49:35] maas.maarten.zeeman joins the room
[08:54:49] maas.maarten.zeeman leaves the room
[09:02:26] maas.maarten.zeeman joins the room
[09:10:27] arjan joins the room
[09:12:27] kaos joins the room
[10:51:28] Yves joins the room
[10:51:57] hc joins the room
[10:54:47] <Yves> Dear all, if you're not too busy: I'm start to writing module that plug import interface into admin interface and dialog. But, what is the best way to import a set of media files : write a mod_xxxxxx event method or use the existing action_admin_dialog_media_upload.erl ?
[10:55:53] <Yves> PS: I want to use a XmlHttpRequest javascript object...
[10:57:27] <Yves> And : Hello kaos and maas.maarten.zeeman !!
[11:03:15] Yves leaves the room
[11:05:25] Yves joins the room
[11:10:59] <kaos> Yves: Hi, I'm back... :)
[11:11:02] <arjan> hey
[11:11:13] <kaos> arjan: nice timing...
[11:11:39] <arjan> Yves: you could do either way
[11:11:53] <arjan> it is fairly easy to make an extra tab in the media upload dialog
[11:12:01] <arjan> mod_oembed does that, for instance
[11:14:27] <Yves> the extra tab is done, but now, i try to make the import for more than one media file...
[11:16:01] <Yves> So I plan to use javascript to build the files stream...
[11:21:02] <arjan> How are you planning to do the files upload?
[11:21:05] <arjan> one POST request per file?
[11:21:11] <arjan> or one big post with all files in it?
[11:21:35] <arjan> do you have some kind of javacript component for that?
[11:21:47] <arjan> I remember marc worrell having done something on this topic
[11:23:15] <arjan> he used http://www.swfupload.org/
[11:26:31] <Yves> Good question. There are some limitations in the choice: 1 1. SWFupload use flash… one POST per file because it seems that some versions of Safari have problems
[11:27:10] <Yves> I reformulate the response:
[11:28:09] <Yves> 1. browser compatibilities with HTML 5: some versions of Safari (and I want eliminate the Windows Safari Version).
[11:28:49] <Yves> 2. Use of "external" plug like java or flash. Avoid if possible. SWFUpload use flash.
[11:31:02] <Yves> 3. Integration with Zotonic problems: E.g., for some reasons (no investigations at this time), things like dropZone[0].ondragover return error on zotonic admin page, but not in a simple page...
[11:33:44] <Yves> 4. one post per file (a la Gmail) , because i prefers catch error if any file transfer abort, than transfer abort just for one file.
[11:34:39] <Yves> ...
[11:34:57] <Yves> (end)
[11:35:14] <kaos> have you looked ad http://www.plupload.com/ ? seems to support a wide range of different options...
[11:36:02] <kaos> if GPLv2 is ok as license....
[11:37:26] <Yves> kaos: Yes, it's an option in the short list…
[11:38:42] <Yves> But what can I use to make the server side ?
[11:39:21] <Yves> a mod_<anything>.erl or reuse an existing component is possible ?
[11:43:38] <kaos> for plupload I think you can use the existing functionality for uploading media files.... It sends them one by one...
[11:44:06] <kaos> from what I understood after browsing the example forms on their site....
[11:45:08] <Yves> kaos : mmmmh… plupload seems to be a list wher you add files one by one then push all to the server…
[11:46:33] <Yves> kaos: yes… maybe just modify the property of input type="file" and add "multiple" tag...
[11:47:17] <kaos> Yves: yes... perhaps it sends all files in one request... but that ought to be configurable/solvable....
[12:18:26] maas.maarten.zeeman leaves the room
[13:09:43] <hc> oops - my zotonic instance all of a sudden started to use 450MB of ram... is there an easy way to debug this? (for now, i've just restarted it - now using 25MB or RAM)
[13:41:54] <kaos> I've not looked into it earlier, but you have the erland tool appmon, which may be usefull...
[13:42:08] <kaos> erlang*
[13:43:51] <hc> hmm, i'll check it out
[13:46:00] <arjan> what were you doing?
[13:46:08] <arjan> something special?
[13:51:15] <hc> not really
[13:51:38] <hc> a pretty basic installation with one very small self-written resource
[13:51:56] <hc> ran for weeks without troubles
[14:27:35] <arjan> that's quite strange indeed
[14:27:55] <arjan> you should use appmon once it happens again
[14:27:57] <arjan> just to check
[14:28:05] <hc> yeah, i'll do that
[14:28:21] <arjan> I seem to remember that maas-maarten made a mechanism to limit the amount of memory of the z_depcache process
[14:28:31] <arjan> (which is the memo-caching server of zotonic)
[14:34:31] <hc> what does the memo-cache cache? the contents of the sites i'm hosting is not remotely as big as 400MB
[14:34:47] <arjan> the rsc table, mostly
[14:34:55] <arjan> but also the category tree and the predicates
[14:35:48] <hc> hmm. well, i'll just see if it happens again, wrote a small script monitoring the beam processes size. i'll then use appmon as suggested
[14:36:11] <arjan> k
[16:53:37] arjan leaves the room
[17:38:37] hc leaves the room: Computer went to sleep
[17:46:36] hc joins the room
[20:02:49] kaos leaves the room
[20:27:13] hc leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!