🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #203643

Re: [Xnews] Lines = ? [size] ?

#203643
From: -Lost
Date: Sun, 12 Aug 2007 18:16
47 lines
3356 bytes
Rikishi 42's response:

> On 2007-08-12, -Lost <maventheextrawords@techie.com> wrote:
> 
>> OK, I'm not too swift so can someone tell me how *lines* equate to
>> the size of a file?  For example, if I'm getting a binary attachment
>> that is 100 lines long.  I know only a few things about this.
> A bin attachment of 100 lines is very, very small.
> 
>> 1.  It's 50 lines.
>> 2.  Assuming the lines wraps at 72 characters or so then that makes
>> it 50x72.
> I've looked at a few examples. Assume 60, in mime/uuencoded messages.
> There is another format, but I doubt the number of lines makes much
> sense at all for those cases.
> 
>> 3.  50x72 (assuming that isn't already a screwed up theory) is 3,600.
>> 4.  3,600 characters equate to 3.51 Kilobytes.  And that's assuming
>> ASCII.  I've no clue if Unicode would make a large difference.
> The binary part would not contain any unicode.
> 
>> 5.  I'm not saving the characters of each binary attachment into a
>> text file just so I can come up with these numbers.
>> So... is there a reliable method of knowing how big a file is in
>> Xnews?  Based on line count or otherwise?
> Not exactly, no.
> 
> You also have to account for the mime -> binary coding/decoding. When
> a binary file is coded into ASCII, the result is a larger file. I've
> allways used 1.6 as a general factor. Mind you, the content of the
> original file is going to influence that factor.
> 
> But is general, bin -> ASCII is x1.6,
> so the reverse is /1.6. 
> 
> Your 3.51 KB would be reduced to 2.2 KB at decoding.

Thanks for the information.  That works out about right by the examples I 
have.

Did you come up with that number on your own or is it general 
compression/decompression knowledge or something?

-- 
-Lost
Remove the extra words to reply by e-mail.  Don't e-mail me.  I am 
kidding.  No I am not.
Technical Details
Message-ID: <Xns998A9190C7717lostthreads@216.196.97.136>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
References: <Xns998A5C1616E72lostthreads@216.196.97.136> <pgs3p4-48q.ln1@whisper.very.softly>

Show Full Headers
Complete Article Headers
Message-ID: <Xns998A9190C7717lostthreads@216.196.97.136>
Subject: Re: [Xnews] Lines = ? [size] ?
Date: Sun, 12 Aug 2007 13:16:17 -0500
From: "-Lost" <maventheextrawords@techie.com>
References: <Xns998A5C1616E72lostthreads@216.196.97.136> <pgs3p4-48q.ln1@whisper.very.softly>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 12 Aug 2007 13:16:17 -0500
Newsgroups: news.software.readers
User-Agent: Xnews/2006.08.24
X-Face: %`,?v|nnm?KLn'=g{_"r!V}jG<p^32(~'L?&GB~+Zn}BY2@~>K)d}*; iE/xT`eCub7a5PM
X-Kiss-My-Arse: Don't Like Me? Kiss My Arse.
Lines: 47
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 68.53.38.40
X-Trace: sv3-h1oO8Rw+rwiQasiGB/aRwNVWeMNei6QHQlTBAU5VfziJuh9sSG0txx5PfE4/dO2lD8ocZ9GRXraMtJT!48lZ1XMqeGNMO2c9FOCf5Fnb5FleG8VSbRrzU5aGeAWHhmZEAlPCeXObVriTrfKdDPsxdKr1OtbF!qAOzKUYyBJXDfs80n6P7K2Ta
X-Complaints-To: abuse@comcast.net
X-DMCA-Complaints-To: dmca@comcast.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.35