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

GMT+2
[00:21:27] mawuli.ypa leaves the room
[00:54:45] cillian.deroiste leaves the room
[02:19:58] mawuli.ypa joins the room
[02:59:50] mawuli.ypa leaves the room
[04:28:13] aRyo joins the room
[04:28:33] aRyo leaves the room
[04:28:35] aRyo joins the room
[04:29:45] aRyo leaves the room
[06:20:26] simon.smithies joins the room
[06:51:09] arcusfelis joins the room
[07:45:49] simon.smithies leaves the room
[07:51:26] simon.smithies joins the room
[08:50:41] <Andreas Stenius> Arjan: that works too.. then you skip the bot name, and just send the commands... and you get the reply in private as well...
[08:51:04] <Andreas Stenius> my idea is that you may have a command that you want the reply to be in the public channel...
[08:51:27] z-bot leaves the room
[08:51:27] z-bot joins the room
[08:51:53] <Andreas Stenius> but it doesn't seem to work over xmpp right now... had only tested it on irc last night.. :p
[09:11:28] arcusfelis leaves the room
[09:14:00] z-bot leaves the room
[09:17:24] z-bot joins the room
[09:19:58] <Andreas Stenius> fixed. try /msg z-bot help
that'll bring up a private chat with the bot.. :)
[11:04:29] simon.smithies leaves the room
[11:06:31] simon.smithies joins the room
[11:10:31] <Andreas Stenius> Hi simon.smithies! All well?
[11:10:45] <simon.smithies> hi Andreas
[11:11:00] <simon.smithies> Yes very well thanks
[11:11:16] <simon.smithies> Putting together another zotonic site :)
[11:11:23] <Andreas Stenius> glad to hear it :)
[11:12:29] <simon.smithies> Am starting to realise I've only been scratching the surface with Zotonic... there's a lot of power there!
[11:13:52] <simon.smithies> discovered how easy it is to use categories to extend the datamodel and in the process finally understood (I think!) the resource table
[11:14:06] <Andreas Stenius> even we stumble upon hidden secret powers sometimes..
[11:14:24] <Andreas Stenius> congrats! :D
[11:14:27] <simon.smithies> hehe
[11:14:35] <simon.smithies> zootnic code must write itself
[11:14:54] <Andreas Stenius> indeed, not even sure Marc is aware of everything you can do with it.. :p
[11:15:42] <simon.smithies> doing some sites for a new designer here in Christchurch - she is doing some nice stuff and am really enjoying the work
[11:16:35] <Andreas Stenius> nice
[11:16:57] <Andreas Stenius> looking into teaching z-bot to translate messages.. ;)
[11:17:30] <simon.smithies> I better stop writing so many tpyos then ;)
[11:17:58] <Andreas Stenius> hehe.. that should be taken care of with a spelling filter.. ;)
[11:18:28] <simon.smithies> so what is z-bot exactly?
[11:18:57] <z-bot> [kaos] not much right now... apart from bridging the #zotonic IRC channel on freenode.net.. :)
[11:19:24] <Andreas Stenius> you can try "/msg z-bot hi" .. ;)
[11:19:45] <Andreas Stenius> in this channel to talk to him/her/.... it :p
[11:20:03] <simon.smithies> /msg z-bot hi
[11:20:12] <Andreas Stenius> hmm...
[11:20:26] <Andreas Stenius> that shouldn't have ended up here... did you include the quotes?
[11:20:36] <simon.smithies> nope!
[11:20:40] <Andreas Stenius> strange...
[11:21:08] <simon.smithies> should I have?
[11:21:11] <Andreas Stenius> I got this
(11:20:46 AM) zotonic@conference.zotonic.com/z-bot: Hi!
in another window.. i.e. in private
[11:21:18] <Andreas Stenius> no, no quotes
[11:22:00] <simon.smithies> /msg z-bot are you confused?
[11:22:06] <Andreas Stenius> wonder if the / thingy is a client specific feature, then
[11:22:15] <Andreas Stenius> what happens if you send /help
[11:22:32] <Andreas Stenius> I get a help text in the chatlog
[11:23:15] <simon.smithies> /help z-bot
[11:23:34] <Andreas Stenius> ok, it got to be a client thing..
[11:23:56] <Andreas Stenius> you could try to send a chat message to zotonic@conference.zotonic.com/z-bot...
[11:24:12] <Andreas Stenius> or, talk to him in this channel,
[11:24:24] <Andreas Stenius> z-bot: Hi! :)
[11:24:24] <z-bot> Hi!
[11:25:09] <simon.smithies> z-bot: do you reply?
[11:25:09] <z-bot> Huh?! I don't know what you are talking about, simon.smithies. (do)
[11:28:44] <Andreas Stenius> huh?
[11:29:05] <Andreas Stenius> z-bot: should not echo everything..
[11:29:05] <z-bot> Uh-oh, I don't know what to do with 'should'.
[11:29:29] <Andreas Stenius> z-bot: do you reply to this?
[11:29:29] <z-bot> Huh?! I don't know what you are talking about, Andreas Stenius. (do)
[11:29:42] <simon.smithies> I'm not seeing any messages at all from z-bot - are you?
[11:29:50] <Andreas Stenius> yes, I am..
[11:30:05] <Andreas Stenius> you mean you don't?
thats strange..
[11:30:42] <simon.smithies> I think he finds me boring
[11:30:48] <Andreas Stenius> http://zotonic.com/chatlogs/2013/04/30.html#11:25:09
[11:31:43] <simon.smithies> wow
[11:31:45] <Andreas Stenius> something odd is going on here... as I got this message:
(11:25:09 AM) simon.smithies: z-bot: do you reply?
(11:25:09 AM) z-bot: z-bot: do you reply?
[11:32:08] <Andreas Stenius> which is not what was logged... really strange.
[11:32:16] <simon.smithies> really strange!
[11:32:31] <simon.smithies> in the log he picks up the first word
[11:32:55] <simon.smithies> was wondering if my im client is filtering his messages out
[11:32:58] <Andreas Stenius> he picks up all words, but the first is the command.. and if he doesn't know the command, he doesn't bother with the args :p
[11:33:11] <Andreas Stenius> I'll reboot him, see if it improves matters...
[11:33:12] mawuli.ypa joins the room
[11:33:19] z-bot leaves the room
[11:34:08] z-bot joins the room
[11:34:45] <Andreas Stenius> Hi mawuli.ypa :)
[11:35:00] <mawuli.ypa> Hi Andreas :)
[11:37:37] <mawuli.ypa> I have been working on the dependency manager
[11:37:59] <Andreas Stenius> ok :)
[11:38:33] <mawuli.ypa> doing some research using git tags, or a file meta-data
[11:39:31] <mawuli.ypa> * research on using git tags
[11:40:14] <mawuli.ypa> for marking/fetching specific versions of a module etc etc
[11:40:56] <Andreas Stenius> Have you read pro git?
http://git-scm.com/book/commands (search for tag) ;)
[11:41:16] <mawuli.ypa> not really. just skimmed through
[11:41:19] <mawuli.ypa> thanks
[11:42:13] <mawuli.ypa> And this blog post http://hyperthunk.wordpress.com/2012/05/28/does-erlangotp-need-a-new-package-management-solution/
[11:42:27] <mawuli.ypa> mentioned a couple of things that i didn't understand
[11:43:09] <mawuli.ypa> it is actually on building a package manager for Erlang, but i thought i could learn a thing or two from it
[11:43:52] <mawuli.ypa> like the packaging namespace
[11:44:35] <Andreas Stenius> good post. if we had that, it would make our life easier ;)
[11:44:46] <mawuli.ypa> same modules names but different implementation/urls, or developers
[11:44:50] <mawuli.ypa> ok
[11:46:41] mawuli.ypa leaves the room
[11:48:40] mawuli.ypa joins the room
[11:50:08] <simon.smithies> I'm working on a site for a vineyard, that has paypal shopping cart buttons for buying wine
[11:50:32] <simon.smithies> they need to ask the user to confirm they are over 18 before going to the "purchase" page
[11:50:51] <simon.smithies> Is there a "zotonicish" way to do that?
[11:51:00] <Andreas Stenius> let me check.. :)
[11:52:41] <Andreas Stenius> I'm thinking that you can store arbitrary values in the session, and check those values in the template
[11:53:10] <Andreas Stenius> so, if a value is missing (or wrong value) you can bring up an alternative page instead of the one requested
[11:53:35] <simon.smithies> I think I see
[11:53:36] <Andreas Stenius> that other page in turn, can have a form that once submitted updates the session value, so the real page gets loaded..
[11:53:54] <Andreas Stenius> that's how I'd try to solve it.. ;)
[11:54:39] <simon.smithies> I think I see :)
[11:54:39] <Andreas Stenius> maybe this: http://zotonic.com/edoc/core/z_session.html#set-2
[11:55:07] <simon.smithies> ah great
[11:55:41] <simon.smithies> Thanks!
[11:56:15] <simon.smithies> Will do some reading, sleep on it, and try it out tomorrow :)
[11:56:53] <Andreas Stenius> http://zotonic.com/edoc/core/z_context.html#set_session-3
[11:57:28] <Andreas Stenius> is probably better, as the matching model value uses: http://zotonic.com/edoc/core/z_context.html#get_session-3
[11:57:48] <Andreas Stenius> sounds good. (sleep on it, that is :)
[11:57:49] <simon.smithies> Nice
[11:58:12] <Andreas Stenius> the m.session[Key] ( https://github.com/zotonic/zotonic/blob/master/src/models/m_session.erl )
[12:01:32] <simon.smithies> just stepping back a tiny bit :) would I create a module that does the setting and getting, and somehow call that from my template?
[12:01:56] <simon.smithies> no need to answer that if there's documentation that would get me started
[12:02:31] <Andreas Stenius> no, templates should be side-effect free..
[12:03:33] <Andreas Stenius> you'd make a template that has a button/form/postback something that triggers a even of sorts that you handle in your site/action/scomp in the backend
[12:03:33] <simon.smithies> I haven't yet had to write any erlang in zotonic ... so not quite sure how to bridge from the front end stuff to that
[12:03:47] <Andreas Stenius> ah, good point.
[12:04:05] <Andreas Stenius> and this is one of the bigger hurdles to overcome, I think..
[12:04:38] <simon.smithies> I enjoy being on this part of the learning curve ... sounds like I should read about actions and scomps?
[12:04:57] <Andreas Stenius> indeed, now sounds like a good time for it :)
[12:05:22] <Andreas Stenius> I'm thinking that maybe we could have some sort of generic action/scomp for setting session values
[12:06:53] <simon.smithies> Reading back through what you've said so far, I think I'm starting to understand what to do.
[12:07:14] <Andreas Stenius> n.b. just to avoid confusion, scomps are referred to as custom tags now.. but the scomp name still lingers somewhaat
[12:07:26] <Andreas Stenius> cool! :)
[12:07:46] <simon.smithies> thanks for the help :)
[12:08:19] mawuli.ypa leaves the room
[12:13:11] <simon.smithies> good night
[12:13:18] <Andreas Stenius> g'night :)
[12:13:36] simon.smithies leaves the room
[12:14:50] mawuli.ypa joins the room
[12:49:17] arcusfelis joins the room
[15:39:18] mawuli.ypa leaves the room
[15:40:29] mawuli.ypa joins the room
[15:41:54] mawuli.ypa leaves the room
[15:42:13] mawuli.ypa joins the room
[15:44:29] yashshah joins the room
[15:54:27] <mawuli.ypa> There is a typo on http://modules.zotonic.com/page/326/howto
[15:54:46] <mawuli.ypa>  "clone it using git or mercurial in the priv/modules director" . "director" should rather be "directory"
[16:00:14] mawuli.ypa leaves the room
[16:24:01] mawuli.ypa joins the room
[16:26:15] <Andreas Stenius> fixed, thank you :)
[16:26:48] z-bot leaves the room
[16:26:54] z-bot joins the room
[16:29:33] z-bot leaves the room
[16:29:51] z-bot joins the room
[16:32:22] z-bot leaves the room
[16:32:50] Andreas Stenius leaves the room
[16:38:38] Andreas Stenius joins the room
[17:01:04] Andreas Stenius leaves the room
[17:22:27] <mawuli.ypa> :)
[17:47:23] mawuli.ypa leaves the room
[18:04:04] mawuli.ypa joins the room
[19:37:39] mawuli.ypa leaves the room
[19:38:10] mawuli.ypa joins the room
[19:51:40] cillian.deroiste joins the room
[20:01:17] mawuli.ypa leaves the room
[20:18:48] arcusfelis leaves the room
[21:03:40] yashshah leaves the room
[21:04:27] yashshah joins the room
[21:21:16] cillian.deroiste leaves the room
[21:21:39] cillian.deroiste joins the room
[22:21:25] yashshah leaves the room
[22:21:27] yashshah joins the room
[23:41:28] mawuli.ypa joins the room
[23:44:15] mawuli.ypa leaves the room
[23:56:08] mawuli.ypa joins the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!