Logs for jdev

Show join/part/nick changes:

[00:19:58] * misha left the chat.
[00:21:14] * naw left the chat.
[00:27:55] * waqas left the chat.
[00:32:18] * evilotto left the chat.
[00:45:36] * mlundblad left the chat.
[00:59:17] * hawke left the chat.
[01:16:50] * harrykar left the chat.
[01:29:36] * Neustradamus left the chat.
[01:32:52] * Neustradamus joined the chat.
[01:34:30] * jameschurchman joined the chat.
[01:43:58] * Florob left the chat.
[01:46:25] * jameschurchman left the chat.
[01:50:42] * tofu left the chat.
[02:40:49] * darkrain left the chat.
[03:21:16] * Zash joined the chat.
[03:23:07] * jcea left the chat.
[03:53:09] * justin left the chat.
[05:35:23] * tofu joined the chat.
[05:49:02] * tofu left the chat.
[06:30:55] * darkrain joined the chat.
[06:57:05] * waqas joined the chat.
[07:13:37] * teo1 left the chat.
[07:13:40] * teo1 joined the chat.
[07:31:55] * lastsky joined the chat.
[07:32:36] * gigam left the chat.
[07:46:08] * Alex joined the chat.
[07:50:37] * mazzachre joined the chat.
[07:50:46] <mazzachre> Morning
[07:51:28] <Zash> morrn'
[08:01:25] * jonas joined the chat.
[08:06:44] * scippio left the chat.
[08:09:10] * tkoski joined the chat.
[08:16:32] * lastsky left the chat.
[08:23:15] * Tobias joined the chat.
[08:23:34] * Tobias left the chat.
[08:30:08] * luca tagliaferri joined the chat.
[08:32:25] * tkoski left the chat.
[08:38:44] * mlundblad joined the chat.
[08:45:39] * MattJ joined the chat.
[08:45:43] * tkoski joined the chat.
[08:48:21] * nabatt joined the chat.
[08:51:07] * 1ntellect joined the chat.
[08:53:46] * waqas left the chat.
[08:59:15] * Tobias joined the chat.
[09:05:37] * Alex left the chat.
[09:05:41] * Alex joined the chat.
[09:09:41] <1ntellect> hey guys
[09:09:46] * rtreffer left the chat.
[09:10:22] <1ntellect> does gtalk have support for server components ?
[09:11:15] <Kev> If they did, only the GTalk admins would be able to install them, so it's not terribly useful. I don't believe so, in any case. I think all their stuff is in-core.
[09:12:01] <1ntellect> Kev: I mean, if I host a component on my server, will other people be ble to add them ?
[09:12:02] * Kev left the chat.
[09:12:50] * Kev joined the chat.
[09:13:45] <Kev> It doesn't matter if an XMPP entity is a server or a component, the traffic to it is routed in exactly the same way (until it reaches the final server).
[09:14:43] <Kev> So GTalk neither knows nor cares that transports.otherserver.lit is a component on otherserver.lit.
[09:14:46] <1ntellect> Kev: I was reading this article - http://www.gabrielweinberg.com/blog/2011/03/imddggg-duckduckgo-chat-bot.html
[09:15:34] <1ntellect> "This is undesirable since google has a limit on the amount of traffic that a single user can generate and the bot would most certainly cross that limit very easily (since it is a jabber client and not a jabber component). I'm not sure if talk.google.com allows jabber components (If anyone knows anything about whether this is possible, please do let me know). "
[09:15:42] <1ntellect> hence the question
[09:17:46] <Kev> I believe that is either very badly worded, or indicates a slight misunderstanding.
[09:19:10] <Link Mauve> Why would a client be more limited in bandwidth than a component? In the server policy?
[09:19:34] <Kev> That is the slight misunderstanding.
[09:19:47] <Kev> It wouldn't the remote server has no way of knowing which is which.
[09:20:30] <Kev> However, on some servers a locally connected component is allowed more traffic over the link than a local c2s session.
[09:21:21] <Zash> "However, since the bot connects to our own jabber server, we can always be generous with shaping traffic to it."
[09:23:10] * scippio joined the chat.
[09:23:29] <Zash> And, they set it up as a google apps domain ^^
[09:24:13] <Kev> Ok, so, it's 1ntellect that's mixing concepts slightly. The linked page (having now scanread it) seems to have it right.
[09:24:42] <Kev> Their component comment *was* about connecting to gtalk directly as a component, not about remote users being on/off a component.
[09:25:29] * tkoski left the chat.
[09:30:42] <1ntellect> Kev: I am a little confused. What do you mean by connecting to gtalk directly as a component?
[09:31:30] <1ntellect> you mean the component is hosted on the gtalk server?
[09:36:12] * naw joined the chat.
[09:41:36] * rtreffer joined the chat.
[10:04:14] * 1ntellect left the chat.
[10:06:31] * 1ntellect joined the chat.
[10:07:57] <1ntellect> Kev?
[10:08:33] <Kev> Hmm?
[10:09:42] <1ntellect> did you get that question? I think I got disconnected or something
[10:09:42] * naw left the chat.
[10:09:49] * bear left the chat.
[10:09:50] * bear joined the chat.
[10:09:54] <Kev> /me scrolls up.
[10:09:57] <louiz’> yes, it got sent
[10:10:50] <Kev> Ah, yes. The article you link seems to have an open question in it as to whether you could connect to gtalk over XEP-0114 (although it doesn't word it like this). You can't.
[10:11:30] * Treebilou joined the chat.
[10:12:18] <1ntellect> what do you mean by connect to gtalk over XEP-0114 and how is it different from what I asked earlier, i.e. other people adding my component hosted on my server on their gtalk
[10:12:30] <1ntellect> and talking to it
[10:13:16] <MattJ> 1ntellect, as Kev said earlier, Google doesn't *know* if you use a component or not
[10:13:34] <MattJ> It just hands your server a message and says it is for user@blah
[10:13:37] <louiz’> no, kev is talking about: I have a component and I connect it directly to Google’s server. You can’t
[10:13:43] <MattJ> if "blah" is a component, your server routes it
[10:16:35] <1ntellect> MattJ: I got that part and assumed such. What I didn't get is what exactly do you mean by connecting a component directly to google's server
[10:17:05] <MattJ> e.g. yourcomponent.gmail.com
[10:17:28] <1ntellect> ah ok
[10:19:35] <1ntellect> Ok, I have a question. I have a web layer where the user registers, and upon registering I want an invite to be sent to that user on his IM. I have a component bot running using sleekxmpp.
[10:20:23] <1ntellect> currently I just add a record in a db when the user registers on the web, and I have a my python script poll it continuously and send out invites
[10:20:29] <1ntellect> what is a better way to do this?
[10:20:55] <1ntellect> i.e. the communication between my website and my python bot script
[10:21:38] <MattJ> Either use XMPP on the site, and post to the bot, or use IPC from the server-side web stuff to the bot
[10:21:39] <1ntellect> not that it matters but my website is not on python
[10:22:17] <1ntellect> IPC?
[10:23:05] <MattJ> http://en.wikipedia.org/wiki/Inter-process_communication
[10:23:16] <1ntellect> I can't have my component logged in from more than one place right? How do I login both on the site and on the python side
[10:24:13] <MattJ> Whether you can have the component logged in from more than one place is up to your server
[10:24:15] * Zash left the chat.
[10:24:29] <1ntellect> oh
[10:24:56] <1ntellect> so it is possible to have it process stuff on the python side and also have it running on the site and have it send out invites?
[10:25:33] <1ntellect> also, the db method that I am currently using, is it a really bad way of doing it?
[10:28:18] * scippio left the chat.
[10:30:34] <MattJ> Not really bad, but not ideal
[10:31:05] <MattJ> If you ever have lots of sign-ups, you'll be having bursts of processing, where you could spread the load more evenly
[10:31:23] <MattJ> and if you don't have many sign-ups, you are wasting time polling
[10:33:30] <1ntellect> right
[10:33:33] <1ntellect> thanks MattJ
[10:33:54] <MattJ> np
[10:35:23] <Link Mauve> Using a simple signal-based IPC and sleep, you’ll economize a lot of resources while being as reactive as now.
[10:37:54] * lastsky joined the chat.
[10:38:21] <1ntellect> never done IPC before, but I will check it out, thanks
[10:39:04] <MattJ> IPC covers lots of things, even sockets can be used - which is probably how you are connecting to your database
[10:39:12] <MattJ> so your database library is doing IPC for you :)
[10:39:29] <1ntellect> heh, yea
[10:39:36] <MattJ> If your database supported watching an SQL query, that would be a nice way to do it without polling
[10:39:39] * lastsky left the chat.
[10:39:47] <1ntellect> so what should I look into to do C# -> python communication
[10:39:51] <MattJ> Unfortunately that's a rather "special" requirement in most databases (though I think the feature is out there in some)
[10:40:17] <Kev> Or you could just send an XMPP message to the component, which sounds much easier.
[10:40:22] <MattJ> I tend to use sockets a lot, but then you have to come up with a protocol
[10:40:24] <1ntellect> or maybe I will use XMPP on the c# side. Sadly there are no decent free .net libraries
[10:40:26] * scippio joined the chat.
[10:40:26] <MattJ> so... what Kev said :)
[10:40:27] <1ntellect> for xmpp
[10:40:43] <Kev> If your website's in C#, you can probably even use a long-lived connection object to do it.
[10:41:36] <1ntellect> jabber.net looks really old
[10:42:15] <1ntellect> and agsxmpp isn't free
[10:46:22] <Tobias> agsxmpp is free for open source IIRC, Matrix isn't though
[10:46:28] <Tobias> but Alex should know exactly
[10:47:02] <1ntellect> our app is commercial though
[10:47:32] <1ntellect> Matrix is kind of costly :S
[10:54:35] <Alex> here now, yes MatriX is commercial only, agsXMPP is GPL
[10:59:03] <Alex> 1ntellect: I guess there are 3 options for c#, 1) agsXMPP, free when you stay with the GPL model 2) MatriX, commercial 3) jabber-net, free is LGPL licences which is also fine for commercial development
[10:59:54] * Tobias left the chat.
[11:03:01] <Kev> Or 4) wrap some C/C++ thing (Yes, some people do this for C#).
[11:06:07] * jcea joined the chat.
[11:06:11] <1ntellect> hmm yea
[11:06:22] <1ntellect> Or 5) move the website to python
[11:06:37] <MattJ> Or 6) move the website, bot and component to Lua!
[11:07:08] <1ntellect> I am using prosody as the server
[11:07:12] * Tobias joined the chat.
[11:07:13] <1ntellect> for now atleast
[11:07:19] <MattJ> Oh yay :)
[11:07:36] <1ntellect> Lua has web frameworks? o.O
[11:07:38] <Alex> if you don't want to spend money, and GPL is no option then take jabber-net, it works fine
[11:08:03] <MattJ> 1ntellect, of course, various assortments
[11:08:37] <1ntellect> Alex: yea, probably. I don't think I need to do much through it. Just send invites for now
[11:09:21] <MattJ> 1ntellect, http://keplerproject.org/ & http://tir.mongrel2.org/home for example
[11:09:33] <MattJ> these are just the first two that spring to mind
[11:09:37] <1ntellect> MattJ: I don't think I know anythone who uses lua for web work
[11:09:39] <1ntellect> :P
[11:09:45] <MattJ> Me neither :)
[11:09:57] <1ntellect> I did like lua when I first checked it a few years ago
[11:10:01] <MattJ> I don't even use it myself (much), but I don't tend to do much server-side web stuff now
[11:10:02] <1ntellect> but I am loving python currently
[11:10:16] <1ntellect> and I love C#
[11:10:43] <1ntellect> MattJ: here is a xmpp lib on lua?
[11:10:47] <1ntellect> *there
[11:10:57] <MattJ> http://code.matthewwild.co.uk/verse
[11:11:20] <MattJ> In need of a release (probably around the end of this month if I have a little more time)
[11:11:40] <MattJ> It has a lot of libs shared with Prosody
[11:12:55] <1ntellect> cool, but I will probably stick to python for now
[11:13:47] * lastsky joined the chat.
[11:13:51] <1ntellect> great work though :)
[11:14:06] * lastsky left the chat.
[11:21:14] * luca tagliaferri left the chat.
[11:24:19] * bear left the chat.
[11:26:59] * harrykar joined the chat.
[11:28:15] * bear joined the chat.
[11:34:49] * Zash joined the chat.
[11:41:52] * exelleron joined the chat.
[11:43:43] * scippio left the chat.
[11:43:59] * scippio joined the chat.
[11:46:30] * Zash left the chat.
[11:47:15] * exelleron left the chat.
[11:48:22] * Zash joined the chat.
[11:50:22] * rtreffer left the chat.
[11:50:46] * scippio left the chat.
[11:51:42] * scippio joined the chat.
[11:53:47] * xnyhps joined the chat.
[11:56:47] * xnyhps left the chat.
[12:02:07] * xnyhps joined the chat.
[12:05:07] * xnyhps left the chat.
[12:08:18] * bear left the chat.
[12:15:45] * Treebilou left the chat.
[12:22:11] * rtreffer joined the chat.
[12:25:28] * xnyhps joined the chat.
[12:28:11] <MattJ> Alex, does Matrix do proxy65?
[12:28:28] * xnyhps left the chat.
[12:30:10] * scippio left the chat.
[12:32:06] * xnyhps joined the chat.
[12:32:22] <Alex> MattJ: yes it has proxy65 support. With the next version there will be control which handles all the file transfer stuff automatically. And I plan to switch to Jingle soon because its much better on fallback
[12:35:06] * xnyhps left the chat.
[12:38:07] * xnyhps joined the chat.
[12:41:07] * xnyhps left the chat.
[12:42:24] <Zash> MattJ: Does Verse do jingle? ;)
[12:48:08] <MattJ> Zash, for file transfer, yes
[12:57:01] * xnyhps joined the chat.
[13:00:03] * xnyhps left the chat.
[13:00:16] * scippio joined the chat.
[13:05:11] * Link Mauve left the chat.
[13:05:52] * Link Mauve joined the chat.
[13:10:54] * luca tagliaferri joined the chat.
[13:14:11] * naw joined the chat.
[13:17:14] * Link Mauve left the chat.
[13:18:09] * Link Mauve joined the chat.
[13:33:48] * scippio left the chat.
[13:34:46] * scippio joined the chat.
[13:39:06] * scippio left the chat.
[13:39:21] * scippio joined the chat.
[13:39:56] * Alex left the chat.
[13:40:44] * teo1 left the chat.
[13:42:06] * Alex joined the chat.
[13:50:35] * Tobias left the chat.
[13:57:03] * scippio left the chat.
[13:57:14] * scippio joined the chat.
[13:58:14] * scippio left the chat.
[13:59:35] * scippio joined the chat.
[14:05:48] * luca tagliaferri left the chat.
[14:05:53] * luca tagliaferri joined the chat.
[14:09:45] * luca tagliaferri left the chat.
[14:13:47] * luca tagliaferri joined the chat.
[14:20:35] * scippio left the chat.
[14:21:02] * scippio joined the chat.
[14:25:01] * lastsky joined the chat.
[14:32:45] * scippio left the chat.
[14:45:51] * teo1 joined the chat.
[14:46:09] * lastsky left the chat.
[15:07:38] * Alex left the chat.
[15:17:34] * bear joined the chat.
[15:18:23] * 1ntellect left the chat.
[15:37:28] * peter.j joined the chat.
[15:38:21] <peter.j> Hi, how do i get an account on the WIKI-page?
[15:39:19] <MattJ> PM me your desired username, your full name, and your email address
[15:52:53] * mazzachre left the chat.
[16:10:09] * hawke joined the chat.
[16:11:53] * jcea left the chat.
[16:18:35] * nabatt left the chat.
[16:45:45] * wjt joined the chat.
[16:46:29] <wjt> So. Imagine I'm trying to calculate a XEP-0115 hash, but one of the data forms has no FORM_TYPE field (or indeed, there are two forms with the same type).
[16:47:29] <wjt> What do you folks think the right behaviour would be?
[16:49:10] <wjt> give up and assume the entity has no capabilities? still use the capabilities, but don't cache them? treat the missing FORM_TYPE field as being the empty string, and hash anyway and hope for the best? (In the two-forms-with-the-same-FORM_TYPE case, just pick an order and hope for the best?)
[16:50:30] <wjt> we can't cache the hash negatively, because then someone could poison my cache by sending corrupt forms in response to a query for that hash, and then if you use the hash legitimately I won't get any caps for you
[16:56:24] * peter.j left the chat.
[16:57:30] <Kev> If you believe the result is invalid, you shouldn't cache it. You're welcome to use it for the current session, if you believe you can get something useful out of it, though.
[16:57:42] <Kev> (disclaimer, only scanread your comment, sorry)
[16:57:51] <wjt> yeah. i think using the caps but not caching them is the right behaviour in these cases
[16:58:01] <wjt> xep-0004 doesn't actually mention FORM_TYPE in anything except examples, which is nice
[16:59:01] <Zash> xep 4 could use some reviewing
[17:00:04] <MattJ> Prosody uses and doesn't cache
[17:00:18] <Zash> variations of empty fields isn't specified well iirc
[17:00:47] <Zash> eg <field><value/></field> vs <field/> vs no field at all
[17:01:25] <wjt> good point
[17:07:15] * jonas left the chat.
[17:10:24] * waqas joined the chat.
[17:10:59] * waqas left the chat.
[17:11:18] * waqas joined the chat.
[17:12:50] * Tobias joined the chat.
[17:19:03] * misha joined the chat.
[17:21:24] * tofu joined the chat.
[17:25:24] * peter.j joined the chat.
[17:26:50] * xnyhps joined the chat.
[17:29:26] * xnyhps left the chat.
[17:33:32] * xnyhps joined the chat.
[17:36:02] * xnyhps left the chat.
[17:36:53] * xnyhps joined the chat.
[17:39:53] * xnyhps left the chat.
[17:49:43] * naw left the chat.
[17:53:10] * teo1 left the chat.
[17:53:15] * teo1 joined the chat.
[18:04:01] * xnyhps joined the chat.
[18:07:01] * xnyhps left the chat.
[18:07:18] * xnyhps joined the chat.
[18:10:18] * xnyhps left the chat.
[18:11:27] * misha left the chat.
[18:26:36] * Zash left the chat.
[18:27:54] * peter.j left the chat.
[18:28:10] * Tobias left the chat.
[18:39:20] * hawke left the chat.
[18:40:32] * hawke joined the chat.
[18:54:08] * wjt left the chat.
[18:54:35] * xnyhps joined the chat.
[18:57:35] * xnyhps left the chat.
[19:17:17] * Tobias joined the chat.
[19:18:34] * Tobias left the chat.
[19:18:42] * xnyhps joined the chat.
[19:21:43] * xnyhps left the chat.
[19:24:06] * luca tagliaferri left the chat.
[19:30:10] * xnyhps joined the chat.
[19:32:40] * xnyhps left the chat.
[19:33:34] * Zash joined the chat.
[19:45:29] * scippio joined the chat.
[19:48:06] * Florob joined the chat.
[19:54:38] * Treebilou joined the chat.
[20:04:01] * Ludovic joined the chat.
[20:08:17] * gigam joined the chat.
[20:11:06] * Ludovic left the chat.
[20:13:05] * Florob left the chat.
[20:24:37] * Tobias joined the chat.
[20:27:23] * nabatt joined the chat.
[20:45:07] * stpeter joined the chat.
[21:15:02] * Florob joined the chat.
[21:20:40] * scippio left the chat.
[21:20:51] * scippio joined the chat.
[21:21:48] * scippio left the chat.
[21:22:04] * scippio joined the chat.
[21:23:36] * naw joined the chat.
[21:28:03] * nabatt left the chat.
[21:36:39] * naw left the chat.
[21:38:29] * naw joined the chat.
[21:46:43] * bear left the chat.
[21:46:44] * bear joined the chat.
[21:49:12] * waqas left the chat.
[22:05:11] * Florob left the chat.
[22:05:13] * Florob joined the chat.
[22:27:55] * Treebilou left the chat.
[22:31:06] * luca tagliaferri joined the chat.
[23:00:13] * Florob left the chat.
[23:08:55] * stpeter left the chat.
[23:17:57] * Zash left the chat.
[23:18:48] * Zash joined the chat.
[23:22:44] * MattJ left the chat.
[23:50:26] * mlundblad left the chat.
[23:59:00] * Zash left the chat.
[00:02:38] * harrykar left the chat.
[00:02:44] * harrykar joined the chat.
[00:05:14] * Tobias left the chat.