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

GMT+2
[00:00:26] <Maas> Depends a bit on the amount of memory you have on the machine. Otherwise the 64 bit build will waste a lot of space.
[00:01:42] <Maas> Below 4 gig I would go for 32 bit
[00:01:47] <simon.smithies> hmm .. memory isn't a problem for me on that server now, but aim to put more sites on it, so I guess it could become a problem eventually
[00:01:58] <simon.smithies> that settles it then :)
[00:28:34] Maas leaves the room
[01:29:30] simon.smithies leaves the room
[03:04:03] simon.smithies joins the room
[04:04:31] <simon.smithies> Marc are you still up?!
[04:05:12] <simon.smithies> Am wondering about https://github.com/zotonic/dh_date/commit/39937c76acd7c2c5521ef27cb50cb3b96f7eb18f
[04:05:37] <simon.smithies> in relation to my Erlang localtime vs now problem
[05:20:22] simon.smithies leaves the room
[05:31:58] simon.smithies joins the room
[05:32:01] simon.smithies leaves the room
[05:32:03] simon.smithies joins the room
[05:32:23] simon.smithies leaves the room
[05:32:25] simon.smithies joins the room
[05:59:27] simon.smithies leaves the room
[06:56:58] simon.smithies joins the room
[07:14:23] simon.smithies leaves the room
[07:54:05] Maas joins the room
[08:05:42] <Maas> That module parses date strings. It doesn't do anything with the system nor erlang time
[08:08:44] <Maas> So to be precise, if you run z:m(), {calendar:now_to_local_time(erlang:now()), erlang:localtime()}. You see a 5 minute difference between the timestamps.
[08:21:50] simon.smithies joins the room
[08:21:54] simon.smithies leaves the room
[08:21:56] simon.smithies joins the room
[08:22:26] <simon.smithies> yes
[08:23:08] <simon.smithies> sorry - not sure on z:m(),
[08:23:09] Maas leaves the room
[08:23:20] <simon.smithies> I'm running {calendar:now_to_local_time(erlang:now()), erlang:localtime()}. in the erlang shell
[08:23:43] arcusfelis joins the room
[08:24:05] Maas joins the room
[08:25:55] <simon.smithies> another strange thing; the 5minute difference is not always evident. Sometimes it will appear immediately after running a zotonic make, and sometimes not!
[08:26:16] <Maas> what do you mean by zotonic make?
[08:26:41] <simon.smithies> re building zotonic
[08:26:42] <Maas> Is that a make in the shell?
[08:26:48] <Maas> or z:m()
[08:27:19] <simon.smithies> make in the zotonic directory
[08:27:21] <Maas> or something else
[08:27:56] <Maas> ok. i think you should not do that.
[08:28:31] <Maas> you will change the beam files from underneath the running vm
[08:28:44] <simon.smithies> I just did it after re-installing Erlang
[08:28:55] <simon.smithies> haven't been doing it while zotonic is running
[08:29:03] <Maas> ok
[08:29:53] <simon.smithies> zotonic crashes a lot for me, so I get plenty of opportunity to run make :)
[08:30:44] <simon.smithies> and have been experimenting today to try and see some pattern in the time problem
[08:31:33] <simon.smithies> Because no-one else is experiencing this afaik, I think it's probably something in my environment
[08:32:35] <Maas> It is totally weird indeed.
[08:33:08] <simon.smithies> Maybe I'm the only one with Debian 6 on a Virtuozzo VPS, and something about that combination is the problem
[08:33:28] <Maas> So you run make, then start zotonic, connect to it via a shell and then check the times?
[08:34:38] <simon.smithies> I've been running the erl shell first, checking the times there, then running zotonic again, and checking either in erl shell, or the zotonic shell
[08:35:23] <Maas> ?
[08:36:18] <simon.smithies> sorry - still getting to know the terminology!
[08:36:34] <simon.smithies> there are 3 ways I can check the time:
[08:36:35] <Maas> what are the commands you type in the shell?
[08:36:51] <Maas> ./bin/zotonic start probably
[08:37:03] <Maas> then ./bin/zotonic shell?
[08:37:14] <simon.smithies> to start zotonic, either that, or bin/zotonic debug
[08:37:45] <Maas> And both give the wrong time (just cheking)
[08:37:54] <simon.smithies> Andreas also has given me a script that will start zotonic without heart, and which also skips make
[08:38:00] <simon.smithies> yes
[08:38:05] <Maas> trying to replay
[08:38:57] <simon.smithies> also (with or without zotonic running) I can check the time by running erl
[08:39:19] <simon.smithies> and issuing the same command in the shell that provides
[08:39:43] <Maas> And that has the same problem, just an erl shell without anything else running?
[08:45:41] <Maas> Or this? erl -noshell -eval 'io:fwrite(standard_error, "~p - ~p~n", [calendar:now_to_local_time(erlang:now()), erlang:localtime()]).' -s init stop
[08:50:56] <simon.smithies> sorry - guests have just arrived
[08:51:22] <simon.smithies> erl shell with nothing running I haven't seen the problem
[08:52:25] <Maas> I'm sorry we still can't pinpoint the problem you are seeing. Going for family breakfast here.
[08:52:25] <simon.smithies> just tried what you said, and times are the same, with zotonic running
[08:52:48] <simon.smithies> Enjoy your breakfast!
[08:53:01] <simon.smithies> and thanks for the interest in the problem!
[08:53:10] <simon.smithies> better go see my guests
[08:53:16] <Maas> bye
[09:10:00] simon.smithies leaves the room
[09:10:54] Arjan joins the room
[09:23:22] Maas leaves the room
[09:31:41] Maas joins the room
[09:45:59] Maas leaves the room
[10:36:39] Maas joins the room
[10:51:03] Maas leaves the room
[10:51:31] Maas joins the room
[11:34:29] Arjan leaves the room
[11:35:04] Arjan joins the room
[11:38:59] Maas leaves the room
[11:45:50] Maas joins the room
[11:46:06] Maas leaves the room
[12:15:05] arcusfelis leaves the room
[12:15:09] arcusfelis joins the room
[13:10:31] Marc Worrell leaves the room: Disconnected: Replaced by new connection
[13:10:31] Marc Worrell joins the room
[13:20:20] Maas joins the room
[14:52:13] Maas leaves the room
[14:54:05] Maas joins the room
[14:58:44] arcusfelis leaves the room
[15:01:15] arcusfelis joins the room
[15:18:04] Maas leaves the room
[15:18:12] Maas joins the room
[15:18:17] Maas leaves the room
[19:29:17] Arjan leaves the room
[21:14:29] arcusfelis leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!