🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by -Lost Sun, 12 Aug 2007 13:00
[Xnews] Lines = ? [size] ?
#203619
Author: -Lost
Date: Sun, 12 Aug 2007 13:00
20 lines
2216 bytes
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.

1.  It's 50 lines.
2.  Assuming the lines wraps at 72 characters or so then that makes it 
50x72.
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.
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?

-- 
-Lost
Remove the extra words to reply by e-mail.  Don't e-mail me.  I am kidding.  
No I am not.
Re: [Xnews] Lines = ? [size] ?
#203634
Author: Nobody
Date: Sun, 12 Aug 2007 17:17
22 lines
1854 bytes
-Lost 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. 
> 
> 1.  It's 50 lines.
> 2.  Assuming the lines wraps at 72 characters or so then that
> makes it 50x72.
> 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. 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?

Just hold your cursor over the 'lines' and it will show you the bytes.
Re: [Xnews] Lines = ? [size] ?
#203636
Author: Rikishi 42
Date: Sun, 12 Aug 2007 17:27
40 lines
2752 bytes
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.


-- 
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
Re: [Xnews] Lines = ? [size] ?
#203637
Author: Rikishi 42
Date: Sun, 12 Aug 2007 17:29
33 lines
2368 bytes
On 2007-08-12, Nobody <not@home.anymore> wrote:
>
>
> -Lost 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. 
>> 
>> 1.  It's 50 lines.
>> 2.  Assuming the lines wraps at 72 characters or so then that
>> makes it 50x72.
>> 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. 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?
>
> Just hold your cursor over the 'lines' and it will show you the bytes.

Wouldn't that show the size of the mesage, rather than the size of the
attachment?


-- 
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
Re: [Xnews] Lines = ? [size] ?
#203643
Author: -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.
Re: [Xnews] Lines = ? [size] ?
#203644
Author: -Lost
Date: Sun, 12 Aug 2007 18:17
17 lines
2047 bytes
Rikishi 42's response:

>>> So... is there a reliable method of knowing how big a file is in
>>> Xnews?  Based on line count or otherwise?
>>
>> Just hold your cursor over the 'lines' and it will show you the bytes.
> 
> Wouldn't that show the size of the mesage, rather than the size of the
> attachment?

Yeah, that gives the bytes of the lines *plus* the message body.  Basically 
the entire article including attachment.

-- 
-Lost
Remove the extra words to reply by e-mail.  Don't e-mail me.  I am kidding.  
No I am not.
Re: [Xnews] Lines = ? [size] ?
#203662
Author: Rikishi 42
Date: Sun, 12 Aug 2007 20:28
25 lines
2054 bytes
On 2007-08-12, -Lost <maventheextrawords@techie.com> wrote:

> 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?

Mainly something I tested on a number of different types of files, about 10
years ago or so.

In those days, there was a 2 MB limit per email limit, I needed to know the
practical limit of an email attachment.

If your mail system tells you there is a limit of 10 MB per email, you
obviously can't attach a 10 MB binary file. 
The limit will be closer to 6 MB.

Same problem for the total allowed size in the mailbox your have at your
provider.

-- 
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
Re: [Xnews] Lines = ? [size] ?
#203663
Author: Rikishi 42
Date: Sun, 12 Aug 2007 20:36
32 lines
2262 bytes
On 2007-08-12, -Lost <maventheextrawords@techie.com> wrote:
>
>
> Rikishi 42's response:
>
>>>> So... is there a reliable method of knowing how big a file is in
>>>> Xnews?  Based on line count or otherwise?
>>>
>>> Just hold your cursor over the 'lines' and it will show you the bytes.
>> 
>> Wouldn't that show the size of the mesage, rather than the size of the
>> attachment?
>
> Yeah, that gives the bytes of the lines *plus* the message body.  Basically 
> the entire article including attachment.

Well, the body of the mail won't be that significant in size. Leaving that
out of the equation, I meant: if it announces 100 KB, that's the size of the
attachment when it's still encoded. When you save the attachment, it'll have
about 100/1.6 KB = 62.5 KB.

Before someone starts quoting other results, I repeat that the 1.6 factor is
a rule of thumb.  YMMV   :-) 

For instance, I recall a DXF file approaches 1.1, because DXF files are
mainly text.


-- 
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
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