cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: [how-to] Contribute with my own tutorial
Date Thu, 28 Feb 2002 15:42:27 GMT
TREGAN Fabien wrote:
> >BTW - what does "2mo" and "20ko" actually mean?
> >I can guess the meaning, but I've never seen it before.
> >And Google didn't find a quick answer for me ...
> Binary Digit (aka 'bit') is a number that can have to values (0 or 1)
> An Octet is 8 bits
> 1ko (kilo-octet) is 1024 bits (not 1000 because computer work with bit and
> then work with powre of 2, not power of 10)
> 1mo (mega-octet) is 1024 ko

I think that everybody here knows about bits and octets, Fabien :) Just
that 2Kb is *must* more used than 2Ko.

Moreover, 'm' means 'milli' and there is no indication of this in
computer science since there is no 'bit fraction' (well, there is, but
only for information theory and we are not dealing with that).

Mega, thus 2^16 is written as 'M' even if scientifically 'mega' means
10^6, so using Mb is somewhat wrong in any sense, even if people are so
used with it that it doesn't really matter.

> if your .java file is encoded in ascii, 1 octet = 1 char (space en
> cariage-return count as 1 char :) )
> So you can gues that finding a bug hidden in 20ko of code is 100 times
> shorted than finding it in 2mo of code.

This is the funniest complexity metric I ever heard of, even worse than
LoC (lines of code).

Proving you wrong is so easy that I would leave it as an exercise to the
reader :)
> >All articles on cocooncenter are written in xdoc (with some additions to
> fit the needs of my pages). So, if you wrote your tutorial in xdoc, it would
> be easy to publish.
> Since now, all my docs have been written in .doc (ms word), but i'll try to
> read the docs about how to write xdocs :)

xdocs are XML files that use a simple HTML-like DTD that we used for our

Anyway, any new contributed doc will be gladly accepted.

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche

To unsubscribe, e-mail:
For additional commands, email:

View raw message