🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #233779

--

#233779
From: _
Date: Wed, 17 Jun 2009 03:54
122 lines
6203 bytes
Oops, my bad, xNews' “Get Parent” button works like a charm.
I didn't see a way to downLoad an article via a message-ID.
UTF-8 doesn't display properly, of course.

It doesn't kill attribution lines nor does it “muffle” >quoted lines,
i.e. it doesn't limit >quoted lines to the last 5 nonBlank.

It doesn't recognize/kill many(10+) different sigs,
especially not ones from Google Groups users.

I doesn't come with its source code, so I can't modify it.

It can't track replies to a “Proxy”, as if it were the user himself.

It can't rename&combine known nymshifters.

It doesn't take a simple list of nyms to “watch”, in order.

It can't “xRank usenetPages”,
i.e. it can't PageRank a nym as if it were a webPage.
So it can't sort nyms from Most-Watched to Least-Watched.

It can't muffle nyms, i.e. it can't limit nyms to 5 unRead posts.
It can't limit nyms to 30 wasRead posts.

It doesn't put all posts into a single .TXT file,
for easy handling in a code editor(Visual Studio).

It can't quickSort using this per-post information:

  A. The catagory the post is in, “ Top·0, Middle·1, Bottom·2 ”.
     “Top” has replies to the user and/or his proxies,
     “Bottom” has posts the user made... the rest are in “Middle”.

  B. Information about the nym that made the post, to wit:

     1. His count of unRead posts, “cnt·unReads”.
     2. His “hardRank”, manually assigned by the user.
        A higher number puts him higher in the “Most Watched” list.

     3. His “i·xRank” (an int), based on who replied to him.
     4. How long ago he last posted, “ageYoungest”.
        ( “ageOldest” is for reporting “posts per day”, not sorting )
     
  C. How old the post is, “AgeDays” ( in days, a 32 bit float ).
  
  D. A boolean, to know if the post was read or not, “wasRead”.

//  Posts are to be listed from most-watched to least-watched,
//  grouped by nym. Lower numbers ( e.g. larger negative numbers )
//  come first, at the top of the list.

//  “Case” is the post that's being scored;
//  “Vs” is the post  Case  is being compared against.
  int by·unReads ;         
inline float Cmp( LsP  Case, LsP  Vs ) {

  //  There are 3 Catagories, “Cat”: “ Top·0, Middle·1, Bottom·2 ”.
  if ( Case->Cat != Vs->Cat )
    //  “Case” goes up the list ( e.g. has a larger negative number )
    //  when “Vs” has a higher “Cat”.
    return  Case->Cat - Vs->Cat ;
    
  NymT & caseNym = * Case->Nym, & vsNym = * Vs->Nym ;
  if ( Case->Cat == Cat_Mid && & caseNym != & vsNym ) {
    //  Here, both Case and Vs are in Cat_Mid and
    //  they don't have the same nym.
    
    if ( by·unReads && !vsNym.cnt·unReads != !caseNym.cnt·unReads )
      //  Case goes up the list when
      //  caseNym has unReads and vsNym doesn't.
      return  !caseNym.cnt·unReads - !vsNym.cnt·unReads ;

    if ( caseNym.hardRank != vsNym.hardRank )
      //  Case goes up the list when caseNym has a higher “hardRank”.
      return  vsNym.hardRank - caseNym.hardRank ;

    if ( vsNym.i·xRank != caseNym.i·xRank )
      //  Case goes up when caseNym has a higher “i·xRank”.
      return  caseNym.i·xRank - vsNym.i·xRank ;
      
    //  caseNym and vsNym have the same i·xRank.
    //  Case goes up the list when vsNym hasn't posted as recently.
  
    //  This groups posts by nym because
    //  no two nyms have the same i·xRank.
    //  ageYoungest is a float with a one second resolution.
    return  caseNym.ageYoungest - vsNym.ageYoungest ;
  }
  
  if ( Case->Cat == Cat_Bot )

    //  Case and Vs are in Cat_Bot,
    //  i.e. they're posts from the user ).
    
    //  Sort by oldest first,
    //  so the most recent post is at the very bottom.
    //  Case goes up when it's older.
    return Vs->AgeDays - Case->AgeDays ;
    
  //  Case and Vs either “ have the same nym and are in Cat_Mid ”
  //  or they're both in Cat_Top, possibly with differnt nyms.

  if ( Case->wasRead != Vs->wasRead )

    //  Here, both posts must be in Cat_Mid, with the same nym,
    //  because Cat_Top has no wasRead posts.
    //  Case goes up when it's unRead and Vs isn't.
    return  Case->wasRead - Vs->wasRead ;
    
  //  Sort by youngest first, Case goes up when Vs is older.
  return  Case->AgeDays - Vs->AgeDays ;  }

//  “Quick Sort” posts using “Cmp()”, above.
PostsByMostWatched( LsA _B,  LsA _E ) {  if ( _E <= _B ) return;
  LsA  BB = _B - 1, EE = _E + 1 ;  LsP  Std = _B [ ( _E - _B ) / 2 ] ;
  LOOP {
    while ( Cmp( * ++ BB , Std ) < 0. );
    while ( EE >= BB && Cmp( * -- EE , Std ) > 0. );
    if ( EE <= BB ) break;  LsP T = * BB ; * BB = * EE ; * EE = T ;  }
  PostsByMostWatched( _B, EE < _E ? EE : -- EE );  
  PostsByMostWatched( EE + 1, _E ); }
Technical Details
Message-ID: <_@Jeff_Relf.Seattle.2009_Jun16.8.54pm.wx>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
References: <79kgqhF1rckkeU1@mid.individual.net> <MPG.24a00f7d2bb90d6f989934@news.virginmedia.com> <_@Jeff_Relf.Seattle.2009_Jun15.3.07pm.OO> <007d70c2$0$24258$c3e8da3@news.astraweb.com> <_@Jeff_Relf.Seattle.2009_Jun16.10.25am.B7> <20090616153833.3cac9cc6@prezmyra.remarqs.net>

Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_Jun16.8.54pm.wx>
Subject: --
Date: Wed, 17 Jun 2009 03:54:41 +0000
From: _@Jeff_Relf.Seattle.inValid
References: <79kgqhF1rckkeU1@mid.individual.net> <MPG.24a00f7d2bb90d6f989934@news.virginmedia.com> <_@Jeff_Relf.Seattle.2009_Jun15.3.07pm.OO> <007d70c2$0$24258$c3e8da3@news.astraweb.com> <_@Jeff_Relf.Seattle.2009_Jun16.10.25am.B7> <20090616153833.3cac9cc6@prezmyra.remarqs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
Newsgroups: alt.comp.hardware.pc-homebuilt,news.software.readers
Organization: Glorb Internet Services, http://www.glorb.com
Lines: 122
NNTP-Posting-Host: OHSjF5ZiwfG8+MWzvqBdpQ.user.posting2.glorb.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Wed, 17 Jun 2009 03:54:41 +0000 (UTC)
X-Notice: Scanned by Mr. Bill
User-Agent: JeffRelf.F-M.FM/X.ZIP