🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by David Paigen Tue, 18 Aug 1992 16:44
messages not sorted correctly according to time
#3008
Author: David Paigen
Date: Tue, 18 Aug 1992 16:44
12 lines
1135 bytes
I keep my sort set to 'subject' (i.e. sort-mode == 1), and I see
a log of followup articles before I see the followed-up article.

I have, on occasion, looked into this bug, but without any serious
effort.  Has anyone else noticed this?  Is there a fix?

I am running nn 6.4.16 under 4.3 BSD.

----------------------->"Lay on, McDuff,    14th c. ideals in a 21st c. world
David Paigen            and damn'd be he        N: PLO Bush IRA CIA KKK
TRW Financial Systems   who first cries,        S: terrorism pipe bomb kill
paigen@tfs.com          'hold, enough!'"        A: assasination maim
Re: messages not sorted correctly according to time
#3015
Author: Jesper Lauridsen
Date: Thu, 20 Aug 1992 03:40
83 lines
4303 bytes
paigen@tfs.com (David Paigen) writes:

>I keep my sort set to 'subject' (i.e. sort-mode == 1), and I see
>a log of followup articles before I see the followed-up article.

Are you sure this is a bug? Consider these two articles:

-----------Article one--------------
Xref: daimi alt.folklore.computers:24192 comp.human-factors:2508 comp.misc:14127 comp.programming:2209
Path: daimi!dkuug!sunic!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!destroyer!gumby!wupost!sdd.hp.com!uakari.primate.wisc.edu!ames!pacbell.com!tandem!tandem.com!tvv
From: tvv@tandem.com (Tom Van Vleck)
Newsgroups: alt.folklore.computers,comp.human-factors,comp.misc,comp.programming
Subject: Re: Indentation
Message-ID: <1992Aug14.170444.1576@tandem.com>
Date: 14 Aug 92 17:04:44 GMT
References: <1992Aug14.172656.24763@informatik.uni-bremen.de>
Sender: news@tandem.com
Reply-To: VanVleck_Tom@tandem.com
Organization: Tandem Computers, Inc.
Lines: 20
Nntp-Posting-Host: robin.tsg.tandem.com

Martin Schroeder writes:
|> When did it start that programs were indented?
|> I want to know:
|>  - Which was the first language that mentioned indentation? Algol60 says
|>    something, but it isn't very much.
|>  - What studies have been made about the effects of different levels of
|>    indentation?

I saw FORTRAN programs with leading spaces to indicate indentation in
the early sixites.  I bet this practice preceded ALGOL.  There are two
interlocking ideas here: that the compiler should ignore white space
and that the human user should use it consistently to enhance
readability.

BTI computer systems had an implementation language called DRAGON, in
which the indentation WAS the loop/if scope indicator.  Pat Helland
worked on the language there and told me about it after he left.

--
Tom Van Vleck <vanvleck_tom@tandem.com>
-----------Article two--------------
Xref: daimi alt.folklore.computers:24189 comp.human-factors:2507 comp.misc:14125 comp.programming:2207
Path: daimi!dkuug!sunic!mcsun!Germany.EU.net!unido!ubrinf!lehre2!ms
From: ms@lehre2.informatik.Uni-Bremen.DE (Martin Schroeder)
Newsgroups: alt.folklore.computers,comp.human-factors,comp.misc,comp.programming
Subject: Indentation
Message-ID: <1992Aug14.172656.24763@informatik.uni-bremen.de>
Date: 14 Aug 92 17:26:56 GMT
Sender: ms@lehre2 (Martin Schroeder)
Organization: Universitaet Bremen
Lines: 14
Nntp-Posting-Host: lehre2

When did it start that programs were indented?
I want to know:
 - Which was the first language that mentioned indentation? Algol60 says
   something, but it isn't very much.
 - What studies have been made about the effects of different levels of
   indentation?

I would be grateful for any answer, to this group or as mail to me.

Thank you
------------------------------------------------------------------------------
Martin Schr"oder                EMail:  ms@informatik.Uni-Bremen.de
FB 3, Informatik                UUCP:   unido!ubrinf!ms
Univ. Bremen
------------------------------------

As you can see article 2 is the first one in the thread and is also the
first of those to arrive at my cite (by 2 hours and 4  minutes). However 
number one was displayed first in my nn - why? Because for some wierd reason 
article 2 is written _after_ article 1 according to Date: (and if you look 
closely also according to Message-ID:).

NN behaves correctly here (see the manual under :sort). What is wrong is
that some has got their GMT set wrong. Does this problem occour during
the (northern hemisphere) winter?
-- 
Jesper Lauridsen        |  I survived the rec.arts.sf-lovers split
rorschak@daimi.aau.dk   | 
Re: messages not sorted correctly according to time
#3016
Author: Paul Eggert
Date: Fri, 21 Aug 1992 20:22
115 lines
4123 bytes
NN mishandles non-GMT numeric time zones, and this often causes threads
to be mis-sorted.  Here is a patch to NN 6.4.16 that fixes the problem.
This patch also fixes some other NN time bugs.

Unfortunately, this patch does not fix NN's mishandling of non-GMT time zones
near short month boundaries, but fixing this would be a bit tricky,
and luckily the bug is rare in real news.

===================================================================
RCS file: pack_date.c,v
retrieving revision 1.6
diff -c -r1.6 pack_date.c
*** pack_date.c	1991/04/17 08:32:40	1.6
--- pack_date.c	1991/06/07 21:51:24
***************
*** 4,9 ****
--- 4,11 ----
   *	Calculate an approximate "time_stamp" value for a date
   *	string.  The actual value is not at all critical,
   *	as long as the "ordering" is ok.
+  *	The current algorithm mishandles non-GMT time zones near
+  *	short month boundaries, but this is rare in real news.
   *
   *	The result is NOT a time_t value, i.e. ctime() will
   *	not produce the original Date string.
***************
*** 31,43 ****
      int32 tz_offset;
  } ztab[] = {
      "a",	UTC 1,		/* UTC+1h */
-     "acsst",	9 E 30 DST,	/* Cent. Australia */
      "acst",	9 E 30,		/* Cent. Australia */
      "adt",	4 W 0 DST,	/* Atlantic (Canada) */
-     "aesst",	10 E 0 DST,	/* E. Australia */
      "aest",	10 E 0,		/* E. Australia */
      "ast",	4 W 0,		/* Atlantic (Canada) */
-     "awsst",	8 E 0 DST,	/* W. Australia */
      "awst",	8 E 0,		/* W. Australia */
      "b",	UTC 2,		/* UTC+2h */
      "bst",	0 E 0 DST,	/* Great Britain summertime */
--- 33,42 ----
***************
*** 61,71 ****
--- 60,73 ----
      "gmt",	0,		/*  */
      "h",	UTC 8,		/* UTC+8h */
      "hdt",	10 W 0 DST,	/* Hawaii/Alaska */
+     "hkt",	8 E 0,		/* Hong Kong */
      "hst",	10 W 0,		/* Hawaii/Alaska */
      "i",	UTC 9,		/* UTC+9h */
      "ist",	2 E 0,		/* Israel */
      "jst",	9 E 0,		/* Japan */
      "k",	UTC 10,		/* UTC+10h */
+     "kdt",	9 E 0 DST,	/* Korea */
+     "kst",	9 E 0,		/* Korea */
      "l",	UTC 11,		/* UTC+11h */
      "m",	UTC 12,		/* UTC+12h */
      "mdt",	7 W 0 DST,	/* Mountain US */
***************
*** 76,81 ****
--- 78,85 ----
      "n",	UTC -1,		/* UTC-1h */
      "ndt",	3 W 30 DST,	/* Nfld. (Canada) */
      "nst",	3 W 30,		/* Nfld. (Canada) */
+     "nzdt",	12 E 0 DST,	/* New Zealand */
+     "nzst",	12 E 0,		/* New Zealand */
      "o",	UTC -2,		/* UTC-2h */
      "p",	UTC -3,		/* UTC-3h */
      "pdt",	8 W 0 DST,	/* Pacific */
***************
*** 165,179 ****
       case 1:	/* +H */
  	adjust += (num[0] - '0') * 60;
  	break;
-      case 2:	/* +HH */
- 	adjust = atoi(num) * 60;
- 	break;
       default:	/* +HHMM */
! 	if (num[2] != '0' || num[3] != '0') {
! 	    num[4] = NUL;
! 	    adjust = atoi(num + 2);
! 	}
  	num[2] = NUL;
  	adjust += atoi(num) * 60;
  	break;
      }
--- 169,179 ----
       case 1:	/* +H */
  	adjust += (num[0] - '0') * 60;
  	break;
       default:	/* +HHMM */
! 	num[4] = NUL;
! 	adjust = atoi(num + 2);
  	num[2] = NUL;
+      case 2:	/* +HH */
  	adjust += atoi(num) * 60;
  	break;
      }
***************
*** 256,262 ****
      res *= 24 * 60;
      res += (hour * 60) + min;
  
!     return res + tzone(date);
  }
  
  
--- 256,262 ----
      res *= 24 * 60;
      res += (hour * 60) + min;
  
!     return res - tzone(date);
  }
  
  
Re: messages not sorted correctly according to time
#3019
Author: John Brownie
Date: Mon, 24 Aug 1992 00:11
28 lines
1737 bytes
In <bjn&Gvf&@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:

<stuff omitted>

>***************
>*** 31,43 ****
>      int32 tz_offset;
>  } ztab[] = {
>      "a",	UTC 1,		/* UTC+1h */
>-     "acsst",	9 E 30 DST,	/* Cent. Australia */
>      "acst",	9 E 30,		/* Cent. Australia */
>      "adt",	4 W 0 DST,	/* Atlantic (Canada) */
>-     "aesst",	10 E 0 DST,	/* E. Australia */
>      "aest",	10 E 0,		/* E. Australia */
>      "ast",	4 W 0,		/* Atlantic (Canada) */
>-     "awsst",	8 E 0 DST,	/* W. Australia */
>      "awst",	8 E 0,		/* W. Australia */
>      "b",	UTC 2,		/* UTC+2h */
>      "bst",	0 E 0 DST,	/* Great Britain summertime */
>--- 33,42 ----

What have you got against Australian summer time?  I know that it is
chaotic and changes from year to year, but we do have it still!
--
John Brownie
School of Mathematics and Statistics   |    Wycliffe Bible Translators
University of Sydney NSW 2006          |    Graham Rd
Internet: jhb@maths.su.oz.au           |    Kangaroo Ground Vic 3097 AUSTRALIA
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads