[00:01:28] Looks like he forgot to update the main page. [00:01:48] I have no idea how to delete a page, so the old helloworld doc is still there, though it looks a bit messed up. [00:02:19] Oh, there's a deletepage link. Well, I think I won't do that yet. [00:14:27] my eyes are getting bleary [00:14:33] it may be time to zzzzzzzzzzz [00:18:40] Well, pje doesn't have to worry about me getting much farther ahead. The barbershop chorus I sing with is putting on its christmas show this weekend, so I probably won't be able to do any more work on the tutorial until next week. [00:19:30] And it is time for me to z-out, as well :) [00:29:22] ** _Maniac has joined us [01:51:49] ** gpciceri has joined us [02:54:02] vlado|zzzzzzzzzz is now known as vlado [03:28:18] ** vlado_ has joined us [04:51:22] ** gpciceri_ has joined us [05:02:23] jack-e|away is now known as jack-e [05:02:25] morning [05:04:39] morning [05:19:24] ** _Maniac_ has joined us [06:43:06] ** gpciceri has joined us [10:15:37] jack-e is now known as jack-e|away [10:23:00] ** _Maniac__ has joined us [11:35:06] ** Maniac has joined us [12:27:11] * Maniac wonders if his internet connectivity issues are resolved [12:27:35] * Maniac bodyslams his router kicks his broadband modem and pours cofee on the switch [13:01:00] ** rdmurray has joined us [13:02:08] ** hazmat has joined us [14:40:46] wow, i've sucesfully been online @ work for 2 hours! [14:40:54] yay me! [14:46:20] ** _jpl_ has joined us [15:24:27] mmm, trying to construct plugins for bots that work on irc and jabber networks and am getting dangerously close to creating a whole IM abstraction thing [15:24:44] i must be able to do some adapt magic somewhere here..... [15:26:48] Sounds like a natural for it. [15:30:49] Create an Interface your bots would love to have to talk to the network, and then write adapters for irc and jabber. [15:31:11] ** _jpl_ has joined us [15:31:13] s/bot/plugin/ [15:38:10] ** Maniac has joined us [15:38:53] yes. that sounds like the way to do this. the twisted project wrote a while im abstraction thing that doesn't seem to work too well [15:38:56] or at least even they don't like too much [15:38:59] how would a plugin know which adapter to use. [15:39:12] * Maniac kicks the internet in the head [15:43:10] maniac: it doesn't care. It says objectwithinterfaceIwant = adapt(connection-to-server, IMyNiceInterface) [15:54:25] anyone a networking expert? [16:04:25] connection-to-server needs to "advise" what protocol is it though right? [16:06:43] or no, the adapter can be "declared" [16:07:35] ** vlado has joined us [16:07:43] <_jpl_> Yes, you declare adapters separately and adapt() knows where to find them. [16:08:41] <_jpl_> Your code that uses adapt() doesn't care about the existence of any adapters or where they come from, it only cares about seeing whether an object its been given will support a particular interface. [16:13:54] ** hazmat has joined us [16:14:36] protocols.declareAdapter( [16:14:36] AdaptJabberToBotInterface, [16:14:36] provides = [IBotInterface], [16:14:36] forTypes = [IJabberInterface] [16:14:36] ) [16:14:43] protocols.declareAdapter( [16:14:43] AdaptIRCToBotInterface, [16:14:43] provides = [IBotInterface], [16:14:45] forTypes = [IIRCInterface] [16:14:47] ) [16:16:22] myInterface = adapt(connection-to-server,IBotInterface) [16:16:29] kinda like that? [16:16:58] yes [16:17:18] in my jabber class i have: [16:18:02] protocols.advise( [16:18:02] instancesProvide=[IJabberInterface] [16:18:02] ) [16:18:52] ok this is neat stuff. i think i like adaption :) [16:19:24] Adaption is my favorite programming concept of the last decade, at least :) [16:22:26] <_jpl_> IT'S A WHOLE NEW PARADIGM! [16:27:01] * vlado is away, somewhere far beyond... (l!on)(p!off) [cRk/bx] [16:29:32] <_jpl_> Combined with components, it really is, actually. [16:29:41] ** _jpl_ has left us [16:36:42] * Maniac wonders how he would learn this stuff without irc... [16:36:54] IRC it's a whole new PARADIGM! [16:36:58] but not so new [16:37:00] ... [16:51:29] adapt(peak,IMyBrain) [17:17:48] vlado is now known as vlado|zzzzzzzzzz [17:28:26] * Maniac is writing a customer satisfaction procedure..... [17:28:26] can't adapt this somehow.... [17:38:53] ** pje has joined us [17:38:56] Hey. [17:39:04] rdmurray, I just got done with lesson three. [17:39:14] So it's now edited, but the code is untested. :) [17:39:30] Perhaps you can play guinea pig when you update your example files. :) [17:39:55] I redid it to not use regexes, and to show the use of some advanced techniques like preloadState() and self.cache [17:41:53] Ok. I might have some time to do that tomorrow. [17:42:57] Cool. I hope I'll get to look at lesson 4 and/or 5 tomorrow. [17:43:15] Maybe this weekend I can actually implement syslog/logtee, so that lesson 5 will work. :) [17:43:26] :) [17:43:44] * pje wonders if rdmurray's secret plan is to write lessons such that I'm forced to add new features to PEAK [17:43:48] :) [17:44:28] Nah, when researching the logging chapter I did a search using google on the peak site, and it pulled up a CVS checkin message where you talked about those two. I thought that meant they were implemented already! [17:45:11] You'll note that I don't talk about logging.logger or whatever it is in that chapter, because I don't understand it. [17:45:46] Think of it this way: logging.logger:foo -> PropertyName(peak.logs.foo) [17:45:54] That's all it does. [17:46:04] I've got to run, dress rehersal starts in fifteen minutes :) [17:46:10] I'm thinking of dropping the 'logging.' part, though. [17:46:11] I think about it tomorrow :) [17:46:14] Have fun! [17:46:16] See ya. [17:46:18] see you [17:52:01] ** gpciceri has joined us [18:03:59] * pje idly wonders why "so-and-so has quit" messages don't show up in the logbot. [18:11:10] [disconnected at Wed Dec 10 18:11:10 2003] [18:11:18] [connected at Wed Dec 10 18:11:18 2003] [18:11:18] <> *** Looking up your hostname... [18:11:18] <> *** Checking ident [18:11:18] <> *** Found your hostname [18:11:49] <> *** No identd (auth) response [18:11:49] <> *** Your host is orwell.freenode.net[orwell.freenode.net/6667], running version dancer-ircd-1.0.32 [18:11:49] [I have joined #peak] [18:11:49] ** orwell.freenode.net set the topic to PEAK http://peak.telecommunity.com || WikiPages at http://peak.telecommunity.com/DevCenter || IRC-Logs: http://peak.telecommunity.com/irc-logs/ [18:12:11] Okay, now to try quitting... [18:12:38] ** pje has joined us [18:12:46] That didn't work. [18:15:44] Ah well, no time to mess with it now. [18:27:11] * _Maniac_ waves at pje [18:45:39] * pje yawns [19:37:24] ** vlado|zzzzzzzzzz has joined us [19:37:24] ** Maniac has joined us [19:37:24] ** jack-e|away has joined us [19:52:04] * _Maniac_ DCC's pje some cofee [19:52:43] Ugh. [19:52:52] No thanks. :) [19:53:11] That cure is worse than the disease. [19:54:22] <_Maniac_> oh, not a cofee drinker? [19:54:29] * _Maniac_ drinks too much [19:54:49] <_Maniac_> i'm itching to adapt() something [20:14:18] ** vlado|zzzzzzzzzz has joined us [20:14:18] ** Maniac has joined us [20:14:18] ** jack-e|away has joined us [20:24:27] <_Maniac_> um, cofee that is [20:29:25] * pje hands Maniac another 'f'. [20:29:26] :) [20:32:35] Well, I better head home... many a coconut to juice tonight. [20:32:51] Laters, all. [20:52:14] <_Maniac_> coffeee? [20:56:27] * _Maniac_ notes his work connection tanked again [20:56:32] * _Maniac_ is about to lose his temper [23:22:13] ** Maniac has joined us [23:43:45] ** Maniac_ has joined us