From icculus at clutteredmind.org Thu Oct 10 11:02:23 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Thu, 10 Oct 2002 11:02:23 -0400 (EDT) Subject: vogon's libinews and ignus projects... Message-ID: ...are now in the IcculusNews cvs. If you are tracking these sorts of things, you should either do a fresh checkout, or do "cvs update -d" on an existing one to get the new directories. --ryan. From vogon at icculus.org Thu Oct 10 11:13:00 2002 From: vogon at icculus.org (Colin Bayer) Date: Thu, 10 Oct 2002 08:13:00 -0700 Subject: [IcculusNews] vogon's libinews and ignus projects... References: Message-ID: <3DA598FC.6070001@icculus.org> Ryan C. Gordon wrote: > ...are now in the IcculusNews cvs. If you are tracking these sorts of > things, you should either do a fresh checkout, or do "cvs update -d" on an > existing one to get the new directories. > > --ryan. > > > Thus spake Chorathustra: "Error Encountered - 403 Forbidden : Permission Denied Please contact The icculus.org Ninja Hack Squad for further information." Now, shall I assume that the Ninja Hack Squad hasn't had its morning coffee yet? ;) -- vogon. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3241 bytes Desc: S/MIME Cryptographic Signature URL: From icculus at clutteredmind.org Thu Oct 10 14:53:48 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Thu, 10 Oct 2002 14:53:48 -0400 (EDT) Subject: [IcculusNews] vogon's libinews and ignus projects... In-Reply-To: <3DA598FC.6070001@icculus.org> Message-ID: > Now, shall I assume that the Ninja Hack Squad hasn't had its morning > coffee yet? ;) Apparently not. Try now. --ryan. From vogon at icculus.org Thu Oct 10 16:32:48 2002 From: vogon at icculus.org (Colin Bayer) Date: Thu, 10 Oct 2002 13:32:48 -0700 Subject: [IcculusNews] vogon's libinews and ignus projects... References: Message-ID: <3DA5E3F0.9040205@icculus.org> Ryan C. Gordon wrote: >>Now, shall I assume that the Ninja Hack Squad hasn't had its morning >>coffee yet? ;) > > > Apparently not. Try now. > > --ryan. > Excellent. My evil plan is finally coming to fruition. Muwahahahahahaahahahahah. -- vogon. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3241 bytes Desc: S/MIME Cryptographic Signature URL: From vogon at icculus.org Thu Oct 10 16:45:17 2002 From: vogon at icculus.org (Colin Bayer) Date: Thu, 10 Oct 2002 13:45:17 -0700 Subject: Revenge of the Ninja Hack Squad (was something about my libinews, etc. projects) Message-ID: <3DA5E6DD.6090309@icculus.org> Tragedy strikes while attempting to commit code cleanups: bash-2.05a$ cvs -z3 -dvogon at icculus.org:/cvs/cvsroot commit cvs commit: Examining . Checking in IcculusNews.h; /cvs/cvsroot/IcculusNews/libinews/IcculusNews.h,v <-- IcculusNews.h new revision: 1.3; previous revision: 1.2 cvs [server aborted]: could not open lock file `/cvs/cvsroot/IcculusNews/libinews/,IcculusNews.h,': Permission denied cvs commit: saving log message in /tmp/cvsIsCpH7 The Ninja Hack Squad knows what to do. I hope. -- vogon. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3241 bytes Desc: S/MIME Cryptographic Signature URL: From icculus at clutteredmind.org Thu Oct 10 21:01:11 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Thu, 10 Oct 2002 21:01:11 -0400 (EDT) Subject: [IcculusNews] Revenge of the Ninja Hack Squad (was something about my libinews, etc. projects) In-Reply-To: <3DA5E6DD.6090309@icculus.org> Message-ID: > The Ninja Hack Squad knows what to do. I hope. The ninja hack squad knows that you needed to be added to the iccnews group. Argh. --ryan. From icculus at clutteredmind.org Wed Oct 16 18:06:43 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Wed, 16 Oct 2002 18:06:43 -0400 (EDT) Subject: IcculusNews protocol definition... Message-ID: Colin's starting to put together protocol docs for the daemon (initial work is in CVS...protocol.txt). A few comments from me, after seeing another's interpretation of what's going on in my mind based on the daemon source: Just to be clear, the server responses are nonsense text that shouldn't be parsed. They are there for debugging over telnet and passing on to humans when something goes wrong. A robot that is interacting with the daemon should really only be looking for a '+' or '-' and disregard the rest to end of line in most cases, since these messages can change at any time (and/or be localized, extended, made more rude and surly, etc.). There are exceptions: 1) The initial connection: "IcculusNews daemon " should not change (or rather, we should agree upon a standard that won't change). Since this tells the robot that the program on the other side of the socket really _is_ an IcculusNews daemon, and whether it has a compatible protocol version. Probably better done as: + IcculusNews daemon x.x.x str\012 where 'x.x.x' is the protocol version, and "str" is some human-readable identifier of the daemon's version (in case someone wants to write their own implementation of the daemon (har)). 2) "+ You have x bytes. Go hose." ... as we talked about before, this needs to change. Probably better done as: + x\012 I'll find somewhere else to wedge in the term "go hose". :) 3) Successful response to AUTH is constant. Reasons for failing responses to AUTH are meant to be human-readable, and intentionally vague (if the username/password isn't correct, it won't tell you which one failed, or whether the account even exists). I've debated taking out the "This account has been disabled", but I don't want locked-out users to spam the daemon thinking their password is fucked up. Like I said, human-readable. 4) MSG_USAGE isn't constant, either...at least, I think there's some commands that don't implement this but should. I dunno. --ryan. From icculus at clutteredmind.org Wed Oct 16 18:32:56 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Wed, 16 Oct 2002 18:32:56 -0400 (EDT) Subject: also... Message-ID: There's an IcculusNews daemon listening on port 3333 that has a new syntax for the DIGEST command: The old syntax was: DIGEST Now it's: DIGEST is the maximum news item number wanted. '-' can be used if you don't have a preference, and will give you the newest item first. So, you could say: "Give me the 3 newest items." -> DIGEST - 3 Daemon gives back items 822, 712, and 605. "Give me the next five newest items after that." -> DIGEST 605 5 (Remember that it's checking "item < startIndex", so specifying '605' skips item #605.) This isn't set in stone (so let me know if you want a syntax change), but once we have something agreed upon and have updated ignus and php_interface to handle the new syntax, I'll put it live on the standard port. --ryan. From vogon at icculus.org Wed Oct 16 21:49:59 2002 From: vogon at icculus.org (Colin Bayer) Date: Wed, 16 Oct 2002 18:49:59 -0700 Subject: [IcculusNews] also... In-Reply-To: References: Message-ID: <20021016184959.1c8eee1f.vogon@icculus.org> On Wed, 16 Oct 2002 18:32:56 -0400 (EDT) "Ryan C. Gordon" wrote: > This isn't set in stone (so let me know if you want a syntax change), but > once we have something agreed upon and have updated ignus and > php_interface to handle the new syntax, I'll put it live on the standard > port. It's fine with me. I'll probably hack in the changes to libinews in a bit. IGnus doesn't currently need to be changed, as it doesn't actually use news digests yet (I'm still trying to figure out the finer points of GtkTreeView.) Thanks for changing it. -- vogon. From vogon at icculus.org Thu Oct 17 01:06:48 2002 From: vogon at icculus.org (Colin Bayer) Date: Wed, 16 Oct 2002 22:06:48 -0700 Subject: Offset digests, &c. Message-ID: <20021016220648.3e46f411.vogon@icculus.org> Version 1.9 of net.c in the CVS tree fixes INEWS_digest() to work with the new-world protocol (I might hack up an autodetect for old-world), and adds (hopefully) working client-side digest caching. cvs up it today! -- vogon. From icculus at clutteredmind.org Thu Oct 17 03:26:22 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Thu, 17 Oct 2002 03:26:22 -0400 (EDT) Subject: [IcculusNews] Offset digests, &c. In-Reply-To: <20021016220648.3e46f411.vogon@icculus.org> Message-ID: > Version 1.9 of net.c in the CVS tree fixes INEWS_digest() to work with > the new-world protocol (I might hack up an autodetect for old-world), > and adds (hopefully) working client-side digest caching. cvs up it > today! I wouldn't bother with an autodetect; we control all known IcculusNews daemons and clients. :) After I update php_interface and make sure all related sites are using it, I'll kill the dual daemons and put the new code into effect on port 263. --ryan. From vogon at icculus.org Thu Oct 17 04:06:25 2002 From: vogon at icculus.org (Colin Bayer) Date: Thu, 17 Oct 2002 01:06:25 -0700 Subject: [IcculusNews] Offset digests, &c. In-Reply-To: References: <20021016220648.3e46f411.vogon@icculus.org> Message-ID: <20021017010625.1d165d4a.vogon@icculus.org> On Thu, 17 Oct 2002 03:26:22 -0400 (EDT) "Ryan C. Gordon" wrote: > I wouldn't bother with an autodetect; we control all known IcculusNews > daemons and clients. :) > > After I update php_interface and make sure all related sites are using it, > I'll kill the dual daemons and put the new code into effect on port 263. Excellent. Rock on. -- vogon. From icculus at clutteredmind.org Fri Oct 18 00:35:43 2002 From: icculus at clutteredmind.org (Ryan C. Gordon) Date: Fri, 18 Oct 2002 00:35:43 -0400 (EDT) Subject: The updated daemon... Message-ID: ...is now live on port 263, and the latest-and-greatest is now in CVS. I've updated icculus.org and timedoctor.org to use the daemon's new DIGEST syntax, but I didn't touch vogon's 'blog code (or ignus/libinews). If you used IcculusNews.php's API to talk to the daemon, after updating that PHP file, all you need to change is any of your calls to news_digest(): old: news_digest($sock, &$digestArray, 10); new: news_digest($sock, &$digestArray, false, 10); ("false" can be an integer in line with the discussion we had about DIGEST the other day. "false" is what you pass if you wanted to send "-" to the daemon, otherwise it's a starting point item number.) --ryan. From vogon at icculus.org Fri Oct 18 02:31:39 2002 From: vogon at icculus.org (Colin Bayer) Date: Thu, 17 Oct 2002 23:31:39 -0700 Subject: [IcculusNews] The updated daemon... In-Reply-To: References: Message-ID: <20021017233139.71333dc2.vogon@icculus.org> On Fri, 18 Oct 2002 00:35:43 -0400 (EDT) "Ryan C. Gordon" wrote: > I've updated icculus.org and timedoctor.org to use the daemon's new DIGEST > syntax, but I didn't touch vogon's 'blog code (or ignus/libinews). - My blog code is nonexistent (I overwrote it accidentally), and I have to get to rewriting it one of these days. - IGnus doesn't use INEWS_digest() yet, so it's safe. - Libinews is fixed. - Thanks for hacking this in. - That's it; kthxbye. -- vogon.