Friday, 21 September 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

[02:46:08] arjan leaves the room
[02:48:36] arjan joins the room
[08:27:50] arjan leaves the room
[08:53:35] arjan joins the room
[09:50:35] andreas.stenius joins the room
[11:04:22] maas.maarten.zeeman joins the room
[11:06:50] maas.maarten.zeeman leaves the room
[11:08:19] Ilya Rezvov joins the room
[11:09:45] <Ilya Rezvov> i can't build and run erlv8 on Mac x64
[11:09:52] <Ilya Rezvov> it is impossible %)
[11:26:26] <andreas.stenius> go for Lua! ;)
[11:27:17] <andreas.stenius> I'll support you (with tips and Lua insights, at least)
[11:32:29] <Ilya Rezvov> https://github.com/rvirding/luerl ??
[11:34:03] <andreas.stenius> Nah... fun project, but I think it's a bit experimental at the moment. I'd go with a Lua NIF or module binding to the standard lua c lib.
[11:35:01] <Ilya Rezvov> https://github.com/Eonblast/Erlualib
[11:35:02] <andreas.stenius> what was it you wanted to do? (something about a remote api for accessing zotonic internals, if I recall correctly)
[11:35:33] <andreas.stenius> yeah, that's more like it :)
[11:36:44] <andreas.stenius> I've not been an active Lua user for a long time (and picked up Erlang after leaving Lua) so I've never used them togheter. I did a Lua binding for the Pike programming language, long time ago...
[11:36:55] <Ilya Rezvov> i want link simple lite script for each my data provider
[11:37:36] <Ilya Rezvov> this script must normalize data and import it to zotonic
[11:38:07] <arjan> what's wrong with just using erlang for that? :)
[11:38:22] <andreas.stenius> I've not looked at the erlualib features, but you should be able to call into erlang from your lua code, so that shouldn't be too hard..
[11:38:33] <andreas.stenius> good question
[11:39:59] <Ilya Rezvov> arjan: i don't want write erlang module for things like reformat price from column in csv
[11:40:44] <Ilya Rezvov> i need in simple tool for writing simple scripts just in browser
[11:40:59] <Ilya Rezvov> or for single tasks
[11:41:53] <Ilya Rezvov> remove some goods depend on a complex condition
[11:41:56] <andreas.stenius> parse the csv data, then pass it through a template that spits out transformed data for another parse run and then import that... ? (using the same template engine as zotonic ;)
[11:42:23] <arjan> hehe
[11:42:27] <arjan> zotonic has a csv parser, btw
[11:42:47] <arjan> even a csv import module, although that one is pretty basic at the moment
[11:42:51] <andreas.stenius> and for easier transformations, the template language code be feasible
[11:42:52] <Ilya Rezvov> but csv import has specific format
[11:44:02] <arjan> yes
[11:45:13] <andreas.stenius> what? it seems to support arbitrary field separator. What else is fixed that won't work with the data you have? (in which case it doesn't sound to be csv data)
[11:46:11] <andreas.stenius> even so, the parse_csv.erl file isn't that long, so adapting it to your own needs shouldn't be too hard ;)
[11:46:27] <Ilya Rezvov> somebody i have csv data exported from xls
[11:46:42] <andreas.stenius> then it should be fine
[11:46:51] <Ilya Rezvov> rows in it can be separated by subtitles
[11:47:05] <Ilya Rezvov> and another useless data
[11:47:10] <andreas.stenius> oh, it's on todo to handle qutoed fields...
[11:47:21] <Ilya Rezvov> yeah
[11:47:34] <Ilya Rezvov> i encountered with it problem :)
[11:47:42] <arjan> whoops ... :)
[11:47:57] <andreas.stenius> does Lua have proper functions to grok your data then?
[11:47:57] <Ilya Rezvov> i write my own csv parser
[11:48:02] <Ilya Rezvov> on FSM
[11:48:18] <andreas.stenius> FSM, as in finite state machine?
[11:48:33] <Ilya Rezvov> yes
[11:48:39] <andreas.stenius> in what language?
[11:48:47] <Ilya Rezvov> in erlang
[11:49:00] <Ilya Rezvov> i think about js
[11:49:10] <Ilya Rezvov> as language for people
[11:49:20] <arjan> you could contribute the fsm-based csv parser to zotonic if you like?
[11:49:21] <Ilya Rezvov> who don't know erlang
[11:49:32] <Ilya Rezvov> for lighweigh tasks
[11:49:33] <andreas.stenius> ok, so you have a parser, in erlang, so you want some custom transformation code for the parsed data before importing it
[11:49:35] <andreas.stenius> ?
[11:49:42] <andreas.stenius> ah
[11:50:02] <Ilya Rezvov> and it can be usefull for me
[11:50:08] <Ilya Rezvov> for simple scripts
[11:50:15] <andreas.stenius> I still think that passing the data through a template could do it :)
[11:50:48] <Ilya Rezvov> it is good idea
[11:51:48] <Ilya Rezvov> but module for lite scripts solves several tasks
[11:52:04] <Ilya Rezvov> and i think it is usefull things
[11:52:49] <Ilya Rezvov> s/things/thing
[11:53:26] <Ilya Rezvov> and erlv8 seems the cheap solution
[11:53:44] <Ilya Rezvov> but it has troubles with building
[11:55:32] <arjan> let's see
[11:56:55] <Ilya Rezvov> erlang have cool architecture
[11:57:07] <Ilya Rezvov> s/erlang/zotonic
[11:57:33] <arjan> :)
[11:57:44] <Ilya Rezvov> it trigger more events
[11:57:52] <Ilya Rezvov> and in some cases
[11:58:29] <Ilya Rezvov> events can to be handled by simple code
[11:58:49] <Ilya Rezvov> if i have blog and want add field for registeration
[11:59:11] <Ilya Rezvov> i need add handler in site module
[11:59:37] <Ilya Rezvov> but i know nothing about erlang
[11:59:45] <Ilya Rezvov> i am html-coder :)
[12:00:47] <arjan> yes indeed, some things could me made easier
[12:01:15] <Ilya Rezvov> i write site on zotonic without erlang code
[12:01:29] <Ilya Rezvov> but i need it for registration
[12:01:39] <Ilya Rezvov> and for pivot trigger
[12:02:10] <Ilya Rezvov> it consumes some time
[12:03:34] <Ilya Rezvov> probably i explain not clear
[12:04:27] <arjan> you mean custom search fields?
[12:04:37] <Ilya Rezvov> yes
[12:05:09] <Ilya Rezvov> it is pain for newcomer
[12:06:39] <Ilya Rezvov> i have some background in erlang development, but for non-professional programmer it is significant obstacle
[14:47:59] <Ilya Rezvov> maybe try erlang_js
[16:08:57] Ilya Rezvov leaves the room
[16:23:13] andreas.stenius leaves the room
[16:25:39] andreas.stenius joins the room
[17:44:00] arjan leaves the room
[18:20:26] <andreas.stenius> alone... ?
[18:57:29] andreas.stenius leaves the room
[20:18:12] Marc Worrell leaves the room: Disconnected: Replaced by new connection
[20:18:12] Marc Worrell joins the room
[20:26:51] arjan joins the room
[23:27:11] andreas.stenius joins the room
[23:29:29] andreas.stenius leaves the room
[23:51:20] arjan leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!