Go Back   Winamp Forums > Community Center > General Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 8th September 2003, 19:39   #1
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,232
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
How do .zip files work?

Well, how do they? and Why don't OS and files jsut make themseves smaller by default?
dlinkwit27 is offline   Reply With Quote
Old 8th September 2003, 19:44   #2
zootm
Forum King
 
zootm's Avatar
 
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,378
there are many, many ways of compressing data. i'm not really an expert so i can't answer your first question.

the answer to the second one is that it takes CPU time and resources to compress and decompress files - zip files are fine for things you don't use much, but to use a file you have to unzip it - if this is a system file, you don't want to be constantly zipping and unzipping every time you change or use the file. it would slow your system down an awful lot.

zootm is offline   Reply With Quote
Old 8th September 2003, 19:49   #3
dylman
Forum King
 
dylman's Avatar
 
Join Date: Oct 2001
Location: Hawarden
Posts: 2,115
http://computer.howstuffworks.com/file-compression.htm

There's no need to tell me when I'm right;
I operate on that principle exclusively and with absolute certainty
dylman is offline   Reply With Quote
Old 8th September 2003, 21:14   #4
godoncrack
Forum King
 
godoncrack's Avatar
 
Join Date: Aug 2003
Location: http://www.mossad.gov.il
Posts: 2,135
winME and XP both have built in compression
godoncrack is offline   Reply With Quote
Old 8th September 2003, 21:24   #5
mikm
Major Dude
 
mikm's Avatar
 
Join Date: May 2001
Location: 2001:4978:20f::/48
Posts: 1,244
It isn't as powerful as a standalone, though.

powered by Câ‚‚Hâ‚…OH | eff | aclu
mikm is offline   Reply With Quote
Old 8th September 2003, 21:30   #6
Merlin
¯¯¯¯¯¯¯
(Forum King)
 
Merlin's Avatar
 
Join Date: Nov 2001
Location: Manchester
Posts: 4,209
The built-in NTFS compression in windows XP annoys me. All it does is slow down certain apps. I have 40+ gigs of free space, I don't need to compress a 400K text file.

Haven't found a way to turn it off. Disk Defragmenter insists on compressing files when it really doesn't need to.


as he faced the sun, he cast no shadow
Merlin is offline   Reply With Quote
Old 8th September 2003, 21:56   #7
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
What annoys me is that programs like Winzip don't compress accross multiple files. If you zip 8 identical images, it should only be slightly larger than the size of one of those images zipped. :-/

Merlin - like are all files showing up as blue? (XP's code for compressed) If so, just right click the foler, hit properties, then advanced, then uncheck "compress contents to save diskspace" or whatever it's called.

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 8th September 2003, 22:17   #8
Merlin
¯¯¯¯¯¯¯
(Forum King)
 
Merlin's Avatar
 
Join Date: Nov 2001
Location: Manchester
Posts: 4,209
Yeah, but that doesn't stop it getting compressed in the first place, which would be better.

Love the font you're using for audio-tracker.


as he faced the sun, he cast no shadow
Merlin is offline   Reply With Quote
Old 8th September 2003, 23:31   #9
bored154
Major Dude
 
bored154's Avatar
 
Join Date: Jul 2003
Location: near mid of CA Posts: not much........ B-Day: August 1st
Posts: 1,348
Send a message via Yahoo to bored154
zip just has them in temp then decompresses them and moves them to the folder you want(thats what i think im probabily wrong i know). My reason for believing that is because it says moving from what ever temp folder it has it in to the folder you are sending it to.

Supporting"RE-MOD Bilbo"
.::My SETI::..::My Forums::..::My New Site::..::Winamp IRC::..::My DeviantArt Page::.
bored154 is offline   Reply With Quote
Old 9th September 2003, 01:01   #10
eleet-2k2
Forum King
 
eleet-2k2's Avatar
 
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
Re: How do .zip files work?

Quote:
Originally posted by dlinkwit27
Well, how do they? and Why don't OS and files jsut make themseves smaller by default?
In answer to your last question, it sounds like you mean: "Why doesnt Windows just say it's a smaller file size?". If that's the case, then it's wrong to ask that question because a program cant just dictate an arbitrary size for a file, like a 100 MB movie file occupying 100 KB of diskspace, because file contents are dictated by teh amount of bytes written to them, and in essence how many bits of data on the hard drive were used to store the entire contents of the file, which, in total is the size of the file. It would be nice to have the movie example be true, but out data would corrupt quite easily as we cant just expand out physical capacity just cuz you want it to.

If you meant compression wise, "Why cant the compression be better and stronger to make smaller files?", then it all depends on the crazy math and algorithms used, but I'll bet that eventually, mathematically, it's impossible to compress beyond a certain point.

"Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!"
See what I'm listening too.
eleet-2k2 is offline   Reply With Quote
Old 9th September 2003, 01:28   #11
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,232
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
I meant the second one. If a program can be compressed, why does the OS jsut not do that in the first place, but zootm 'splained why that wouldn't work.
dlinkwit27 is offline   Reply With Quote
Old 9th September 2003, 02:31   #12
teh Nightwing
Senior Member
 
teh Nightwing's Avatar
 
Join Date: Aug 2003
Location: Denver, Colorado
Posts: 439
Send a message via Yahoo to teh Nightwing
MAN.....I REMEMBER WHEN ALL WE HAD WAS DOS! And you could get MSUNZIIP.ExE and add it to your c:\dos\command\ file! And....it was so great!

www.joellindow.com
teh Nightwing is offline   Reply With Quote
Old 9th September 2003, 02:32   #13
teh Nightwing
Senior Member
 
teh Nightwing's Avatar
 
Join Date: Aug 2003
Location: Denver, Colorado
Posts: 439
Send a message via Yahoo to teh Nightwing
^OOPS! I meant PKUNZIP.exe

www.joellindow.com
teh Nightwing is offline   Reply With Quote
Old 9th September 2003, 02:32   #14
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,232
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
use that button next time plase.
dlinkwit27 is offline   Reply With Quote
Old 9th September 2003, 02:37   #15
DragonSon
Fears the boots
Forum King
 
DragonSon's Avatar
 
Join Date: May 2003
Posts: 3,444
Mayhaps Atmo could enlighten us all...
DragonSon is offline   Reply With Quote
Old 9th September 2003, 02:48   #16
teh Nightwing
Senior Member
 
teh Nightwing's Avatar
 
Join Date: Aug 2003
Location: Denver, Colorado
Posts: 439
Send a message via Yahoo to teh Nightwing
HAH! Crap.....Sorry! I didn't even use the edit button! Please forgive me everyone! I usually do but....I don't know what came over me

www.joellindow.com
teh Nightwing is offline   Reply With Quote
Old 9th September 2003, 02:49   #17
liquidmotion
Smokes Two Joints
Beta Team
 
liquidmotion's Avatar
 
Join Date: Feb 2001
Location: SFBA
Posts: 3,680
Send a message via ICQ to liquidmotion
HUFFMAN ENCODING!

For a good time: shup | stashbox | my homepage
liquidmotion is offline   Reply With Quote
Old 9th September 2003, 05:50   #18
s0be
Major Dude
 
s0be's Avatar
 
Join Date: Jun 2001
Location: melbourne Posts: First
Posts: 1,313
Send a message via ICQ to s0be Send a message via AIM to s0be Send a message via Yahoo to s0be
in response to zipping multiple identical files...

under unix, you generally make tar.gz/bz2 files.

what tar does is take all the files and merge them into a single file. Then your choice of compression programs (bzip2 is better than gzip, which is compatible with regular old zip) compresses the tar file. it's slightly slower to compress this way because it has to search a much much larger file for patterns, but it can save quite a bit.

s0be

And On that day, the Lords of the land said unto their Master Architect, "The temple you have made to the gods of Wasabi and Maki has brought us no great prosperity" and they sent out him into the lands.

As he traveled to a far off land, he found he wasn't traveling alone, but that he had gained companions, and when they found their new land, they started work on a new temple, one that would be OPEN to all who wanted to worship.

from The Book of Wasabi C 12 Vs 09 (pg 2003)
s0be is offline   Reply With Quote
Old 9th September 2003, 09:24   #19
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Quote:
Originally posted by Merlin
Love the font you're using for audio-tracker.
Me too! Credits to gigantus for giving it to me to install on my AT remote. Here's the font if you're interested.

http://www.1001fonts.com/font_details.html?font_id=2578

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 10th September 2003, 05:05   #20
Coman
Punk
(Forum King)
 
Coman's Avatar
 
Join Date: Apr 2003
Location: 4.5th dimension . . Posts: infinitely few
Posts: 2,799
howstuffworks is great, it explains everything.

"Most of my male friends get their hair trimmed, including the hair around their temples, even though this is expressly forbidden by Lev. 19:27. How should they die?"
Coman is offline   Reply With Quote
Old 10th September 2003, 05:53   #21
bored154
Major Dude
 
bored154's Avatar
 
Join Date: Jul 2003
Location: near mid of CA Posts: not much........ B-Day: August 1st
Posts: 1,348
Send a message via Yahoo to bored154
even how to pic a lock

Supporting"RE-MOD Bilbo"
.::My SETI::..::My Forums::..::My New Site::..::Winamp IRC::..::My DeviantArt Page::.
bored154 is offline   Reply With Quote
Old 10th September 2003, 23:07   #22
Coman
Punk
(Forum King)
 
Coman's Avatar
 
Join Date: Apr 2003
Location: 4.5th dimension . . Posts: infinitely few
Posts: 2,799
where? linky?

"Most of my male friends get their hair trimmed, including the hair around their temples, even though this is expressly forbidden by Lev. 19:27. How should they die?"
Coman is offline   Reply With Quote
Old 10th September 2003, 23:18   #23
bored154
Major Dude
 
bored154's Avatar
 
Join Date: Jul 2003
Location: near mid of CA Posts: not much........ B-Day: August 1st
Posts: 1,348
Send a message via Yahoo to bored154
http://home.howstuffworks.com/lock-picking.htm

they have little flash things or something to show you step by step

Supporting"RE-MOD Bilbo"
.::My SETI::..::My Forums::..::My New Site::..::Winamp IRC::..::My DeviantArt Page::.
bored154 is offline   Reply With Quote
Old 11th September 2003, 00:54   #24
Coman
Punk
(Forum King)
 
Coman's Avatar
 
Join Date: Apr 2003
Location: 4.5th dimension . . Posts: infinitely few
Posts: 2,799
man that's great.

one of the authors of the site used to be my neighbor

"Most of my male friends get their hair trimmed, including the hair around their temples, even though this is expressly forbidden by Lev. 19:27. How should they die?"
Coman is offline   Reply With Quote
Old 11th September 2003, 03:24   #25
bored154
Major Dude
 
bored154's Avatar
 
Join Date: Jul 2003
Location: near mid of CA Posts: not much........ B-Day: August 1st
Posts: 1,348
Send a message via Yahoo to bored154
cool, did you help him or give him some ideas?

Supporting"RE-MOD Bilbo"
.::My SETI::..::My Forums::..::My New Site::..::Winamp IRC::..::My DeviantArt Page::.
bored154 is offline   Reply With Quote
Old 11th September 2003, 06:07   #26
whiteflip
Post Master General
(Forum King)
 
whiteflip's Avatar
 
Join Date: Jun 2000
Location: Seattle, Now Las Vegas
Posts: 6,032
When you put a bunch of identical files in a zip file try zipping the zip file. The new zip file will see the patern in the old zip file and compress it all

Or you can put all the pictures in a cab file.

I'm Back?
whiteflip is offline   Reply With Quote
Old 11th September 2003, 22:15   #27
Coman
Punk
(Forum King)
 
Coman's Avatar
 
Join Date: Apr 2003
Location: 4.5th dimension . . Posts: infinitely few
Posts: 2,799
of course.

"Most of my male friends get their hair trimmed, including the hair around their temples, even though this is expressly forbidden by Lev. 19:27. How should they die?"
Coman is offline   Reply With Quote
Old 11th September 2003, 23:51   #28
Starbucks
Forum King
 
Starbucks's Avatar
 
Join Date: Jul 2003
Location: Forums
Posts: 2,685
Quote:
If you zip 8 identical images, it should only be slightly larger than the size of one of those images zipped. :-/
Image files already contain their own compression, so further compression won't make it much smaller. Same goes with ISO files. I've got one that is 700MB, extracted is 1.6GB!!
Starbucks is offline   Reply With Quote
Old 12th September 2003, 03:42   #29
whiteflip
Post Master General
(Forum King)
 
whiteflip's Avatar
 
Join Date: Jun 2000
Location: Seattle, Now Las Vegas
Posts: 6,032
Starbucks I beleive you misread his statement.

Even with a compressed image format like shitty jpegs or awesome PNG's if you have 8 identical files for some odd reason and you compress those 8 identical files into the same zip file than the zip file should recognize the pattern across the multiple files and just zip it once and add the extra data in the zip file to say that when you view or extrat any of the 8 image files that its comming from that single source dilly.

Makes senese?

I'm Back?
whiteflip is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Community Center > General Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump