Zotonic
Zotonic
zotonic@conference.zotonic.com
Friday, 30 August 2013< ^ >
Arjan has set the subject to: Zotonic - The Erlang Web Framework & CMS
Room Configuration

GMT+2
[00:03:55] Steffen Hanikel joins the room
[00:11:24] Mawuli Adzaku leaves the room
[00:13:23] Mawuli Adzaku joins the room
[00:13:57] Mawuli Adzaku leaves the room
[00:14:41] Mawuli Adzaku joins the room
[00:17:32] Mawuli Adzaku leaves the room
[00:19:29] Mawuli Adzaku joins the room
[00:29:08] Mawuli Adzaku leaves the room
[00:29:48] Mawuli Adzaku joins the room
[00:31:49] Mawuli Adzaku leaves the room
[00:33:53] Mawuli Adzaku joins the room
[00:50:53] Mawuli Adzaku leaves the room
[00:51:38] Mawuli Adzaku joins the room
[00:54:03] Mawuli Adzaku leaves the room
[00:54:53] Mawuli Adzaku joins the room
[00:59:31] Mawuli Adzaku leaves the room
[01:00:09] Mawuli Adzaku joins the room
[01:04:09] Mawuli Adzaku leaves the room
[01:49:50] Steffen Hanikel leaves the room
[07:21:03] Maas joins the room
[08:12:22] Maas leaves the room
[08:12:32] Maas joins the room
[08:20:32] Maas leaves the room
[08:34:22] arjan joins the room
[08:44:02] arjan leaves the room
[09:08:28] Piotr Nosek joins the room
[09:16:04] arjan joins the room
[09:17:23] arjan leaves the room
[09:19:51] arjan joins the room
[09:19:53] arjan leaves the room
[09:21:15] Maas joins the room
[10:04:39] Kaos joins the room
[10:06:11] <Kaos> Why not put the SCSS in the resource body of a resource with a specific name, then?
[10:06:48] <Kaos> editing the config field fromt the admin is pain when the value is longer than just a few words..
[10:07:27] <Kaos> Oh, blarg.. it said PM...
[10:08:00] <Kaos> why can't they present the timestamps in proper 24H format.. :/
[10:23:22] Steffen Hanikel joins the room
[10:26:51] <Kaos> Anyone has any good idea how to include _some_template_*.tpl ?
[10:27:23] <Kaos> all include doesn't cut it, as they all come from the same module..
[10:40:45] Maas leaves the room
[10:44:31] Maas joins the room
[11:13:40] arjan joins the room
[11:14:02] <arjan> http://stick.im/s/tr8
[11:14:13] <arjan> Made a new module for batch-uploading of media files
[11:14:15] <arjan> http://modules.zotonic.com/page/378/mod-admin-multiupload
[11:14:24] <arjan> simpel but effective
[11:24:14] <Marc Worrell> I also have a batch upload module, but it uses Flash, with some jumping-through-hoops for getting the upload at the right spot. So I am a bit hesistant to publish it.
[11:24:43] <arjan> :P
[11:25:01] <arjan> this one is pretty simple, just uses JS post to an iframe or something
[11:25:20] <arjan> it posts to an API service
[11:26:12] <arjan> progress tracking is done with javascript
[11:26:27] <arjan> uses this, http://blueimp.github.io/jQuery-File-Upload/
[11:27:54] <Kaos> neat :)
[11:38:36] <Kaos> got inspired and registered mod_knockout : http://modules.zotonic.com/page/381/mod-knockout
[11:41:22] <Marc Worrell> yeah! that is very useful :)
[11:41:22] <Marc Worrell> And here is some docs of what I am working on (needed some extra communication for edit pages etc) https://github.com/zotonic/zotonic/wiki/MQTT-Integration
[11:42:59] <Kaos> will the transport be pluggable?
[11:44:59] <Marc Worrell> the encoding?
[11:46:32] <Kaos> yes, in case you'd want to use the mqtt protocol with a client not speaking ubf..
[11:52:36] <arjan> "The MQTT socket is only accessible for users with valid authentication"
[11:52:46] <arjan> what about the public/ topics?
[12:48:30] Mawuli Adzaku joins the room
[12:57:58] <Maas> Looks great marc. Sounds like a plan :-)
[13:16:46] Mawuli Adzaku leaves the room
[13:16:48] <Marc Worrell> @arjan - maybe rename the topics a bit, indeed - and then have public accessible for anonymous users. Maybe good.
[13:16:55] Mawuli Adzaku joins the room
[13:18:23] <Marc Worrell> @kaos I we have to check the encoding over the mqtt socket - though I think that most agents can use UBF, I didn't see any way to specify the transport encoding in the signup… but we can always mix something into the username :p
[13:22:15] <Marc Worrell> @arjan, I added the following:
[13:22:16] <Marc Worrell> The user @sitename (or @mysite.com) can authenticate with an empty password. Guest will have access to the public topics.
[13:29:34] Mawuli Adzaku leaves the room
[13:29:39] <Maas> We use email addresses as username :-p
[13:30:08] <Maas> people always forget their username.
[13:30:39] Mawuli Adzaku joins the room
[13:33:39] Mawuli Adzaku leaves the room
[13:34:25] Mawuli Adzaku joins the room
[13:40:38] <Marc Worrell> Then we have "maas@zeeman.org@mysite.com" :p
[13:41:17] <Marc Worrell> just split on the last '@'
[13:42:37] <Maas> You are so smart :-)
[13:43:23] <Marc Worrell> LOL - only when sipping coffee
[13:43:45] Mawuli Adzaku leaves the room
[13:44:07] Mawuli Adzaku joins the room
[13:47:30] <arjan> I regularly get errors in my zotonic log like this
[13:47:33] <arjan> 12:39:25.108 [error] Error in process <0.18474.3> on node 'zotonic001@x1' with exit value: {{badmatch,{error,noresult}},[{z_db,'-update/4-fun-2-',4,[{file,"src/dbdrivers/postgresql/z_db.erl"},{line,406}]},{timer,tc,2,[{file,"timer.erl"},{line,179}]},{z_stats,timed_update,4,[{file,"src/support/z_stats.erl"},{line,70}]},{z_db...
[13:48:55] <Marc Worrell> strange - didn't see them
[13:49:11] <Marc Worrell> could that happen when you update something that isn't there?
[13:49:21] <arjan> indeed
[13:49:34] <arjan> {ok, OldProps} = pgsql:equery1(C, "select props from \""++Table++"\" where id = $1", [Id]),
[13:49:42] <arjan> some kind of race
[13:49:51] <Marc Worrell> race?
[13:49:55] <arjan> race condition
[13:50:09] <arjan> I can make that function in z_db less strict
[13:50:17] <arjan> it is already checking for is_list as well there
[13:50:19] <Marc Worrell> like in fetching that stuff before the transaction writing it is finished?
[13:50:22] <arjan> I'll refactor it a bit
[13:50:44] <Marc Worrell> that routine needs major refactoring anyway - grew a tad large over the years
[13:55:23] <arjan> pushed fix
[13:59:28] Mawuli Adzaku leaves the room
[14:01:28] Mawuli Adzaku joins the room
[14:02:30] arjan leaves the room
[14:04:19] Steffen Hanikel leaves the room
[14:04:50] <Marc Worrell> yeah :-) one fix per day
[14:04:59] <Marc Worrell> and already two modules and a proposal today
[14:05:02] <Marc Worrell> we are on a roll!
[14:05:05] arjan joins the room
[14:06:57] <Marc Worrell> wow, emqtt defines this as the max topic string length:
[14:06:58] <Marc Worrell> -define(MAX_LEN, 64*1024).
[14:07:10] <Marc Worrell> 64K sounds like a bit much to me....
[14:08:16] <Maas> That was the size of the memory of my first computer.
[14:08:47] <Marc Worrell> yep - more than the usual space in my first one
[14:08:55] <Marc Worrell> fitted a complete compile
[14:08:56] arjan leaves the room
[14:08:57] <Marc Worrell> compiler
[14:09:11] <Marc Worrell> you can fit a compiler and OS in that topic
[14:09:15] <Mawuli Adzaku> 64K ?
[14:09:21] <Marc Worrell> yep
[14:09:31] <Marc Worrell> 512 bytes sounds more logical to me....
[14:09:40] <Mawuli Adzaku> Ha! that must have been a long long time ago.
[14:09:43] <Marc Worrell> or 1024
[14:09:47] <Marc Worrell> LOL
[14:10:03] <Marc Worrell> I made my first compiler in high school - in the CP/M days
[14:10:16] <Marc Worrell> we had 54KB space (or so)
[14:10:32] <Marc Worrell> that was in 1983
[14:10:53] <Maas> Nice one. My uncle had an amstrad cp/m computer... with 8" floppies.
[14:11:26] <Maas> No it was an osborne
[14:11:39] <Mawuli Adzaku> *-)
[14:11:54] <Marc Worrell> the school's CP/M machine had also 8" floppies - made a wooshing sound when they were turning
[14:12:04] Mawuli Adzaku leaves the room
[14:12:35] <Maas> Those where the day's... My highschool started with commodore 64, but that was a bit later. I remember programming logo.
[14:12:45] <Marc Worrell> so advanced!
[14:12:46] Mawuli Adzaku joins the room
[14:12:49] <Maas> pen down
[14:13:16] <Marc Worrell> at university we even used parts of the screen memory - not enough space in those Apple ]['s
[14:14:06] <Maas> Boy, when I started we already had nice sun workstations, Motorola 68030... 32 bit yeah!
[14:14:16] <Mawuli Adzaku> The kind of conversations I only read about in old forgotten Geek journals!
[14:14:34] <Marc Worrell> :) and now you see it live!
[14:14:43] <Maas> Of course time-shared with 30 others
[14:14:43] <Mawuli Adzaku> :)
[14:14:52] <Mawuli Adzaku> Yes!!
[14:15:31] <Marc Worrell> at university we got super advanced HP X terminals - black and white, but a kazillion pixels.
[14:15:54] <Marc Worrell> remember we used anonymous FTP to fetch satellite photos from the states - was quite a miracle
[14:16:36] <Maas> At university somebody wrote a program to let the printer drop of its table...
[14:16:53] <Mawuli Adzaku> Mass: really?
[14:17:00] <Marc Worrell> and on another time sharing machine we used a coaster as a token—whoever had the coaster was allowed to compile, if two people compiled then the machine crashed
[14:17:22] <Marc Worrell> @Maas LOL, walking printers
[14:17:36] Mawuli Adzaku leaves the room
[14:17:36] <Maas> That was in a converted chemistry lab, printer on a table, and then let the head move so the printer got in eigenfrequency
[14:18:30] <Maas> Boy later on we got Sun X terminals.
[14:19:33] <Maas> We even got visited by the us at the start of the gulf war. A student found out there was no security whatsoever on making screendumps of other screens.
[14:19:50] <Maas> What was not so bright that he took screendumps of army computers.
[14:21:35] <Marc Worrell> LOL
[14:22:21] <z-bot> [mawuli] Clearly, you guys have seen better days
[14:22:29] <Maas> He got kicked off if I remember. We where allowed to hack and things, but only if we told the admins how we did it.
[14:23:20] <Marc Worrell> And prob only allowed to hack internally
[14:24:41] arjan joins the room
[14:24:44] <Maas> Yes indeed. He took things way to far. But there was no security, just guessing the name of the screen. X windows was already pretty advanced.
[14:28:29] <Maas> Just: xwd -display workstation1.x.y:0
[14:29:58] <Maas> making false login screens was a no-no... too easy.
[14:35:58] <Marc Worrell> yep - always use wrong credentials on first login, then try with your real ones
[15:02:33] <Marc Worrell> so, now exmpp understands binaries instead of lists for topics etc. quite a bit more efficient.
[15:21:05] <Maas> xmpp? you mean emqtt?
[15:22:31] <arjan> I hope so :)
[15:26:23] arjan leaves the room
[15:29:15] <Marc Worrell> LOL
[15:29:19] <Marc Worrell> emqtt
[15:29:26] <Marc Worrell> they sound similar :p
[15:30:19] <Marc Worrell> -export([
'mqtt:/test'/3
]).
'mqtt:/test'({route, Message}, Pid, Context) ->
?DEBUG({Message, Pid, z_context:site(Context)}),
ok.
[15:30:21] <Marc Worrell> works
[15:30:56] arjan joins the room
[15:31:08] <Marc Worrell> This publishes a message to that function:
[15:31:09] <Marc Worrell> emqtt_router:publish(<<"test">>, #mqtt_msg{}).
[15:31:52] <arjan> ugh
[15:32:05] <arjan> does it support subscribing to wildcards?
[15:32:10] <Marc Worrell> yep
[15:32:16] <Marc Worrell> things like:
[15:32:23] <Marc Worrell> /foo/bar
[15:32:30] <Marc Worrell> /foo/#
[15:32:35] <arjan> ah
[15:32:44] <Marc Worrell> /foo/+/plop
[15:32:53] <arjan> interesting syntax to put it in the function name
[15:33:10] <Marc Worrell> you need some info in those function names :p
[15:35:18] <Marc Worrell> so a function like 'mqtt:#' will catch the firehose for a site
[15:35:41] arjan leaves the room
[15:35:49] <Marc Worrell> and 'mqtt:/#' is (I guess) the system firehose
[15:36:24] arjan joins the room
[15:42:01] <Kaos> looks cool :)
[15:45:39] <Maas> Pretty slick stuff.
[15:47:28] <Maas> I guess we can burn mod_signal after this :-)
[15:47:58] <Marc Worrell> quite a bit of work to go - don't burn your ships just yet :p
[15:48:00] Maas68784 joins the room
[15:48:00] Maas68784 leaves the room
[15:48:00] Maas73087 joins the room
[15:48:00] Maas73087 is now known as Maas73138
[15:48:00] Maas73138 leaves the room
[15:48:00] Maas12076 joins the room
[15:48:00] Maas12076 leaves the room
[15:48:00] Maas4740 joins the room
[15:48:44] Maas4740 leaves the room
[15:49:16] <Maas> It looks like somebody at home logs into my computer
[15:49:50] <Marc Worrell> now I am going to subscribe my sessions etc.
[15:49:50] <Marc Worrell> want to do the subscription internally via notifiers (and also the publish) - so that we can mix the correct sitenames in the topics
[15:52:25] <Marc Worrell> Those bootstrap people are a bit silly, they use '-lg'/'-sm' like suffixes for element sizes and also for the size of your user-agent screen.
[15:53:46] <Maas> Second time I have to call killall -9 chrome today... Doesn't even listen to quit anymore.
[16:39:21] Piotr Nosek leaves the room
[17:18:17] Maas65691 joins the room
[17:18:17] Maas65691 leaves the room
[17:18:18] Maas65691 joins the room
[17:18:18] Maas65691 leaves the room
[17:18:18] Maas94730 joins the room
[17:18:37] Maas94730 leaves the room
[17:21:43] <Marc Worrell> @kaos, cool those themes http://bootswatch.com
[17:45:51] arjan leaves the room
[17:50:53] Maas leaves the room
[21:37:22] Maas joins the room
[23:55:41] arjan joins the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!