🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #1321

Re: Testing ADDGROUP-with-'real'-names

#1321
From: John Washington
Date: Sat, 02 Dec 1995 00:00
41 lines
1888 bytes
On Thursday, in article <817773091snz@keris.demon.co.uk>
     chris@keris.demon.co.uk "Chris Croughton" wrote:

CC> >Someone could write a small test program, using nicename.c, to
..
CC> Well, I just wrote that program, and with the aid of a couple of
CC> programs (sort and a couple of command-line awk scripts) ran it on the
CC> active list (as of yesterday) and got some stats:
CC> 
CC> # newsgroups:   13956
CC> # duplications:  2128 (that's duplicate names your code generates)
CC> max. dupl.:        24 (max. same name generated)

What a star!  Thanks Chris!

..
CC> <g>.  So in the worst case, your code would need to generate 24 unique
CC> names - I think your code just replaces the last character with a digit,
CC> which won't be enough.

Good point.

CC> One suggestion could be to replace the underscore with a digit as well,
CC> or hyphen (there aren't many other characters legal in DOS filenames -
CC> quote, hash, bang?)...

How about (since this will never happen in practice anyway, well,
hardly ever <g>) just working backwards, which, with less than
99 clashes means just a 2nd digit?

However, some names are less than 8 chars.  I wonder if extending
such names would be worthwhile?

..
CC> If you're interested, the awk script I used (on a sorted file with each
..

A succint star, too.  Good stuff, this Awk thingie.

--
John Washington
Technical Details
Message-ID: <817904288snz@wash.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <817661125snz@keris.demon.co.uk> <817747310snz@wash.demon.co.uk> <817773091snz@keris.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,32d7a9ff38d6545d
X-Google-Attributes: gid10bb05,public
From: John Washington <john@wash.demon.co.uk>
Subject: Re: Testing ADDGROUP-with-'real'-names
Date: 1995/12/02
Message-ID: <817904288snz@wash.demon.co.uk>
X-Deja-AN: 121056146
x-nntp-posting-host: wash.demon.co.uk
references: <817661125snz@keris.demon.co.uk> <817747310snz@wash.demon.co.uk> <817773091snz@keris.demon.co.uk>
newsgroups: demon.ip.developers