compression

min or gzip, which is better?

jquery-1.4.2.min.js is 71.8KB Same file compressed through this tool, with gzip enabled, becomes 32.9 KB Which is better? If latter, why doesn't jQuery provide a packed file too instead of just uncompressed and min versions? My Question: One is minified and gzip enabled, other is minified and packed and gzip enabled. Which should I use...

VB.NET compress Decompress String

Hello, How do I compress/decompress a string in VB.NET ? I am trying to send long string through the Network and need them to be as small as possible before sending. Thanks ...

Are there any executable compressors that work with 64 bit binaries?

Hello everyone :) I'm looking for a tool like Bitsum Technologies' excellent PECompact tool for compressing Windows executables, but which works with 64 bit binaries. Does such a tool exist? Note: I don't care about the supposed obfuscation such a compressor provides; I'd simply like to reduce the size of my binaries. ...

Counting common Bytes, Words and Double Words.

I am scanning over a large amount of data and looking for common trends in it. Every time I meet a recurrence of a unit, I want to increment the count of it. What is the best data structure or way to hold this data. I need to be able to search it quickly, and also have a count with each unit of data. ...

Problems compiling peazip on OSX

I'm having some problems with compiling Peazip on OSX (10.6). I emailed the Peazip developer and he said he probably couldn't help me too much as the error seems to be OSX specific and he doesn't have access to an OSX machine any more. The compiler I'm using is Lazarus as the source is in Pascal. The actual compile process seems to go ...

Can i store sqlite db as zip file in iphone application

My sqlite file has a size of 7MB. I want to reduce its size. How i can do that ? When am simply compressing it will come around only 1.2 MB. Can i compress my mydb.sqlite to a zip file ? If it is not possible, any other way to reduce size of my sqlite file ? ...

Need to convert a ZIP file to a random text file.

As title says need to convert a Zip file to text file , no matter the size and no matter if it will make sense or not.But i need to reconvert it to that zip file again (Lose less). The main problem i am having is how to find a alternative text/number version of a character. The Ascii wont work clearly ,So need help what can be a alterna...

Which file types are worth compressing (zipping) for remote storage? For which of them the compressed size/original size ratio is << 1?

I am storing documents in sql server in varbinary(max) fileds, I use filestream optionally when a user has: (DB_Size + Docs_Size) ~> 0.8 * ExpressEdition_Max_DB_Size I am currently zipping all the files, anyway this is done because the Document Read/Write work was developed 10 years ago where Storage was more expensive than now. Many...

How come, diffrent text files become diffrent sizes after compression ?

I have file of some random text size = 27 gb and after compression it becomes 40 mb or so. And a 3.5 GB sql file become 45 Mb after compression. But a 109 mb text file become 72 mb after compression so what can be wrong with it. Why so less compressed, it must 10 mb or so , or i am missing something . All files as i can see is Engli...

bacula calculate original file size after compression

hi, i am using bacula -3.0.2, with gzip software compression, is there any way i can calculate the original backup size before compression. FD Bytes Written: 178,226,785 (178.2 MB) SD Bytes Written: 178,288,385 (178.2 MB) Rate: 331.3 KB/s Software Compression: 92.7 % ...

How to creating animation videos programmatically ( Java or C ) from pictures

I am creating a animation video for which I have the frame by frame pictures. I want to create a video out of it but only programmatically and not using any tool like MovieMaker, Flash or AdobePremier. Please let me know if there any apis which can combine these frames and create compressed video in any of the formats like AVI, MPEG-4 e...

LZINT compression algorithm

Can someone point me to some resources or papers on the LZINT compression algorithm? I Google'd it and only found a handful of link that were in Chinese or Russian. After I Google translated, they were just briefly mentioning it. Is the algorithm even open source? If not, does anyone know the company that licenses it? ...

Send large JSON data to WCF Rest Service

Hi I have a client web page that is sending a large json object to a proxy service on the same domain as the web page. The proxy (an ashx handler) then forwards the request to a WCF Rest Service. Using a WebClient object (standard .net object for making a http request) The JSON successfully arrives at the proxy via a jQuery POST on th...

Is it possible to reload a specific image if it did not finish loading after a preset amount of time? javascript/jquery

I am running a online photography portfolio and sometimes, 1 or 2 images on a page fails to load. and refreshing will display the failed to load image. Scenario: I click on the link and the images start to load. but the page never finishes loading because one of the images fails to load. After a refresh, the browser loads the failed ima...

tomcat compression

Hi, If compression is setup on tomcat, will it also compress data that is uploaded by the client - via browser/applet ? ...

Algorithms to find longest common prefix in a sliding window.

Hi, I have written a Lempel Ziv compressor and decompressor. I am seeking to improve the time to search the dictionary for a phrase. I have considered K-M-P and Boyer-Moore, but I think an algorithm that adapts to changes in the dictionary would be faster. I've been reading that binary search trees (AVL or with splays) improve the per...

For compressed archives, is XTS still viable?

For one of my projects @ college, I wanted to create a WinMo application to secure data. I have previously used FreeOTFE and I wanted to implement similar functionality to my application. My choice of encryption algorithm was AES-128 with XTS mode of operation. I also wanted to create a stream interface driver for my application as well ...

Exclude debug javascript code during minification

I'm looking into different ways to minify my javascript code including the regular JSMin, Packer, and YUI solutions. I'm really interested in the new Google Closure Compiler, as it looks exceptionally powerful. I noticed that Dean Edwards packer has a feature to exclude lines of code that start with three semicolons. This is handy to e...

asp.net mvc compress stream and remove whitespace

So I am compressing my output stream via an action filter: var response = filterContext.HttpContext.Response; response.Filter = new DeflateStream(response.Filter), CompressionMode.Compress); Which works great. Now, I would also like to remove the excess whitespace present. I found Mads Kristensen's http module http://madskristensen.ne...

Is there a python wrapper for a FastLZ implementation

Looking to use FastLZ in Python, or something similar. Tried Google and didn't find anything. Wondering if there is another algorithm with similar performance available in Python? ...