I want to refine my C skills and have been thinking of trying to write my own zip and unzip program. This seems hit on a lot of areas, CPU/HDD/Memory.
Where do I start? Is there a flow chart of what to do to compress and uncompress? Is it too complicated for this type of project?
A good book that steps through all the steps to take or ...
Hi,
I have Apache configured to compress content from web app running on Tomcat. Also the application uses Compression Filter.
How apache handle such situation when it receives compressed content and it's setup to compress content too.
Does Apache just shift the content to client or unzip content first and then compress it again?
...
I think this might be a classic question but I am not aware of an answer. Can a program output a copy of itself, and, if so, is there a short program that does this?
I do not accept the "empty program" as an answer, and I do not accept programs that have access to there own source code. Rather, I am thinking something like this:
int ma...
IIS 7.0: urlCompression
What is the best configuration of this feature in an enterprise application with heavy ViewState usage, large content pages along with highly configurable data?
Assume:
Strong database server
Web farm
Load balanced
What I am not asking is alternatives to boost performance, just this feature specifically.
...
Hi Guys,
I was wondering whether anyone knew of any ASP.NET compression modules that can use GZIP without relying on the IIS dynamic compression module ?
We have some content which we want serve up as GZIPPED but we dont want to rely on IIS compression.
Anyone have any ideas?
...
Hi,
I want to compress/transform a string as new string.
i.e.:
input string:
USERNAME/REGISTERID
output string after compress:
<some-string-in-UTF8-format>
output string after decompress:
USERNAME/REGISTERID
There are some compress or hash method for this transformation?
I prefer some solution using Java or an algorithm with ...
Is it possible to get strings, ints, etc in binary format? What I mean is that assume I have the string:
"Hello" and I want to store it in binary format, so assume "Hello" is
11110000110011001111111100000000 in binary (I know it not, I just typed something quickly).
Can I store the above binary not as a string, but in the actual form...
I came across this question;
"A lossless compression algorithm claims to guarantee to make some files smaller and no files larger.
Is this;
a) Impossible
b) Possible but may run for an indeterminate amount of time,
c) Possible for compression factor 2 or less,
d) Possible for any compression factor?"
I'm leaning ...
I have been trying to write a simple Markdown -> docx parser/writer, but am completely stuck with the last part, which should be the easiest: i.e. compressing the folder into a .docx that Word, or any other .docx reader, will recognize.
My parser-writer is irrelevant really: I have this problem if I simply unzip any old Word-produced...
The Application
I'm working on a simple dictionary search tool, with the main purpose of searching a word-list of around 180,000 words.
To begin with, the word-list was a plain-text document, with each word on a single line. Upon loading, the word-list was processed into a simple array for searching.
The Objective
My objective, howev...
Greetings,
I am trying to find an easy way to manipulate an image so that I can decrease the quality of it from 8bit to 3bit.
What would be the easiest way to achieve this?
Cheers
...
I have a .NET 2.0 WinForms app that connects to a backend WAS server. I am using GZipStream to decode data coming back from a HttpWebRequest call made to the server. The data returned is compressed CSV, which Apache is compressing. The entire server stack is Hibernate-->EJB-->Spring-->Apache.
For small responses, the performance is f...
I'm having trouble reading a compressed (deflated) data file using C# .NET DeflateStream(..., CompressionMode.Decompress). The file was written earlier using DeflateStream(..., CompressionMode.Compress), and it seems to be just fine (I can even decompress it using a Java program).
However, the first Read() call on the input stream to de...
So I set up gzip compression within IIS 6.
I enabled the compression for both static files and application files. I set up a temp directory with the size of 1,024 MB.
I modified the Metbase to include: htm,html,js,css,aspx,xml
I set the compression level to 9.
I added a WSE, called HttoCompression and set it to the gzip.dll aset it ...
In my app I'm using Apple's hdiutil command line utility to create compressed disk images (DMGs) of folders/volumes. Is there any way to calculate the compressed size of a given source path? I've already checked in the man pages, nothing there.
...
Hello,
I was reading about compression in programs and I started to create a new simple project, a zipper (just a zipper, not an unzipper), but I only found zLib, and it's for C. I know that C libraries can be used in C++, but I like to use C++ libraries. Does anyone know a good one to suggest?
Best Regards.
...
The following block is nested by Huffman block markers
-HUFF---------------------------------------------------------------------0084-
10 0 1 2 4 3 4 6 5 6 8 a 9 4 2 3
0 1 2 11 0 3 4 21 5 12 31 6 41 51 61 13
22 71 81 91 a1 14 32 b1 d...
UPDATE Sept 11 2010:
A testing platform has been created for this here
HTTP 1.1 definitions of GZIP and DEFLATE (zlib) for some background information:
" 'Gzip' is the gzip format, and 'deflate' is the zlib format. They
should probably have called the second one 'zlib' instead to avoid
confusion with the raw deflate compressed ...
If I GZip the a POST request form data, will a HTTP server decompress it, or it only works the other way (server -> client)?
...
What is wrong with this code below. I always get FALSE, meaning after compression, decompressed data does not match original value.
public static bool Test()
{
string sample = "This is a compression test of microsoft .net gzip compression method and decompression methods";
System.Text.ASCIIEncoding encodi...