compression

Decompression and extraction of files from streaming archive on the fly

I'm writing a browser plugin, similiar to Flash and Java in that it starts downloading a file (.jar or .swf) as soon as it gets displayed. Java waits (I believe) until the entire jar files is loaded, but Flash does not. I want the same ability, but with a compressed archive file. I would like to access files in the archive as soon as the...

How many times a file be compressed?

I was thinking about compression, and it seems like there would have to be some sort of limit to the compression that could be applied to it, otherwise it'd be a single byte. So my question is, how many times can I compress a file before: It does not get any smaller? The file becomes corrupt? Are these two points the same or differe...

Randomly accessing a compressed file without using ZipFile (since ZipFile has a major bug).

I know, I know, who would want to compress or uncompressed large files in java. Completely unreasonable. For the moment suspend disbelief and assume I have a good reason for uncompressing a large zip File. Issue 1: ZipFile has a bug (bug # 6280693), sun has fixed this in java 1.6 (Mustang). The fix isn't isn't helpful as our software ne...

Http Compression Module issue

Iam using HttpCompressionModule technique in my solution. In one page I am using AJAX MultiSlider control. Problem I am facing is that because of HttpCompressionModule file the MultiSlider control does not get rendered in IE7 and FireFox but it works fine in IE6. Also please let me know that if I dont want to compress .axd file then wh...

How can I tail a zipped file without reading its entire contents?

I want to emulate the functionality of gzcat | tail -n. This would be helpful for times when there are huge files (of a few GB's or so). Can I tail the last few lines of such a file w/o reading it from the beginning? I doubt that this won't be possible since I'd guess for gzip, the encoding would depend on all the previous text. But s...

How to properly compress Jquery and lots of plugins?

Hi all, I am trying to clean up the javascript of a site. I am finding the header of my site is looking like this and growing: <script type="text/javascript" src="jquery.base.js"></script> <script type="text/javascript" src="jquery.plugin1.js"></script> <script type="text/javascript" src="jquery.plugin2.js"></script> <script type="tex...

extracting compressed file with boost::iostreams

Hi I'm searching for a way to extract a file in c++ by using the boost::iostreams classes. There is an example in the boost documentation. But it outputs the content of the compressed file to std::cout. I'm looking for a way to extract it to a file structure. Does anybody know how to do that? Thanks! ...

Really simple short string compression

Does anyone know of a really simple compression technique for strings up to about 255 characters in length (yes I'm compressing urls)? Not concerned with strength of compression - I am looking for something that performs very well and is quick to implement. I would like something simpler than SharpZipLib: something that can be impleme...

Is there a way to create an uncompressed zip from PHP?

Is there a way to create an uncompressed ZIP (level 0) from PHP? I can't find any info in the php documentation. ...

creating zip file from a folder - in c++

I want to create a program that , when executed, will compress a selected folder. Can it be done? Thanks, Oded ...

Burrows-Wheeler Move to Front

For a project that I'm working on, I need to implement Burrows-Wheeler's MoveToFront transformation in O(n) space. For some reason, though, my code works on most values that I throw at it, but not all. My implementation looks something like this: public byte[] transform (byte[] input) { if (input.length == 0) return input;...

Multithreaded compression in C#

Is there a library in .net that does multithreaded compression of a stream? I'm thinking of something like the built in System.IO.GZipStream, but using multiple threads to perform the work (and thereby utilizing all the cpu cores). I know that, for example 7-zip compresses using multiple threads, but the C# SDK that they've released doe...

Gzipped content expected

Dear folks, I enabled gzip compression on my website, and tested with the following tools: http://www.whatsmyip.org/http_compression/ http://www.gidnetwork.com/tools/gzip-test.php http://web-sniffer.net/ Though, Firefox and all its extensions (Firebug, Yslow and Google Page Speed) say they receive noncompressed content. text/html i...

Latitude/Longitude storage and compression in C

Does anyone know the most efficient representation for lat/long coordinates? Accuracy level should be enough for consumer GPS devices. Most implementations seem to use double for each unit, but I'm suspicious that a float or fixed point format should be sufficient. I'd be curious to hear from anyone who has tried to compress and or stor...

Best Way to automatically compress and minimize JavaScript files in an ASP.NET MVC app

So I have an ASP.NET MVC app that references a number of javascript files in various places (in the site master and additional references in several views as well). I'd like to know if there is an automated way, and if so what is the recommended approach, for compressing and minimizing such references into a single .js file where poss...

gzipped Apache response packet analysis

After enabling gzip compression in my Apache server (mod_deflate) I found consistently that end user was being served on average 200 ms slower than uncompressed responses. This was unexpected so I modified the compression directive to ONLY compress text/HTML responses, fired up wireshark and looked at the network dump before and after ...

C/C++ Packing and Compression

Hey guys, I'm working on a commercial project that requires a couple of files to be bundled (packed) into an archive and then compressed. Right now we have zlib in our utility library, but it doesn't look like zlib has the functionality to compress multiple files into one archive. Anyone know of free libraries I'd be able to use for thi...

Multi-part gzip file random access (in Java)

This may fall in the realm of "not really feasible" or "not really worth the effort" but here goes. I'm trying to randomly access records stored inside a multi-part gzip file. Specifically, the files I'm interested in are compressed Heretrix Arc files. (In case you aren't familiar with multi-part gzip files, the gzip spec allows multipl...

Does VisualSVN Server 3 support HTTP compression?

Does anyone know if version 3 of VisualSVN server supports HTTP compression? It was in 2.0 then dropped in 2.0.4 and I thought it was meant to be incorporated back into 3 but now can’t find any references (Visual SVN is very light on documentation). ...

Fast PDF Compression Library for .NET

I need a fast PDF Compression library for .NET that will allow me to run 10 concurrent threads each compressing a separate PDF file to around 10% of its original size. Any suggestions? (I have already tried out the product from neeviaPDF.com. It is not as fast as I need.) ...