[thelist] What is a k? What is a gig?

Ben Henick persist1 at io.com
Mon Jun 4 10:34:18 CDT 2001


On Mon, 4 Jun 2001, Erik Sabowski wrote:

> correct me if i'm wrong, but i think that sometimes 1K = 1000
> meg...usually when dealing with hard drives. i seem to remember hearing
> the HD manufacturers use the 1K = 1000 meg conversion cause it makes the
> HD seem bigger than using 1K = 1024 megs.
> 
> If you look at the fine print in alot of computer ads these days, some of
> them say "1 GB = 1 billion bytes," which is, of course, not 100%
> accurate...

Depends on who you ask.

According to some standards 1GB *is* one billion (ten to the ninth
power) bytes.

Even though 1KB is still 1024 bytes, and 1MB is still 1,048,576 bytes.

Bah!

It's all about standards, I tell you.

<tip type="writing HTML into form fields with PHP" author="Ben Henick">

If you're building something that allows HTML (e.g. a 'blog) edit
functionality would, naturally, dump that markup into a form field.

However, the browser will interpret entities before this happens, which
may create issues because you want your entities to be preserved.

If you're using PHP, the following statement will fix the problem:

print(str_replace("&","&amp;",$original_entry));

...where $original_entry is the HTML you're dumping back into your form
from a database field or a file.

</tip>


-- 
Ben Henick
Web Author At-Large              Managing Editor
http://www.io.com/persist1/      http://www.digital-web.com/
persist1 at io.com                  bmh at digital-web.com
--
"Are you pondering what I'm pondering, Pinky?"
"I think so, Brain, but... (snort) no, no, it's too stupid."
"We will disguise ourselves as a cow."
"Oh!" (giggles) "That was it exactly!"






More information about the thelist mailing list