compression

Compress Script Resources of ASP.Net

How do you compress Script Resources of ASP.Net? I saw a file there reached up to 255 KB! I tried finding solutions, but so far it only talks about scripting dynamic and static files. I checked the compression temp folder of IIS and found no compressed scripted resource there. That led me to the conclusion that these files are transferre...

Find the prefix substring which gives best compression

Problem: Given a list of strings, find the substring which, if subtracted from the beginning of all strings where it matches and replaced by an escape byte, gives the shortest total length. Example: "foo", "fool", "bar" The result is: "foo" as the base string with the strings "\0", "\0l", "bar" and a total length of 9 bytes. "\0" is ...

How do you know if the HTTP Compression is Working?

How do you know if the HTTP Compression setup is working? Is there any tool I can use to see the compressed page before it is uncompressed by the browser? are there any tools to measure the amount compressed and response speed? ...

Software for creating PNG 8bit transparent images?

I'm looking for software to create PNG8 format transparent images as per this article. NOTE: I need a linux solution myself, but please submit answers for other OSes. ...

Which is the fastest TAR application?

I've got a script that tars an entire source code directory (around 800MB), and I want it to run as fast as possible. GNU Tar, for some reason, was kind of slow when untarring. I was wondering if anyone's already made this comparison and knows which application has the fastest tar/untar implementation. For Windows, btw. ...

Best Voice Compression Algorithms/Formats

We have some raw voice audio that we need to distribute over the internet. We need decent quality, but it doesn't need to be of musical quality. Our main concern is usability by the consumer (i.e. what and where they can play it) and size of the download. My experience has shown that mp3s do not produce the best compression numbers for v...

How to convert a number to a bytearray in bit endian order

I am trying to uncompress some data created in VB6 using the zlib API. I have read this is possible with the qUncompress function: http://doc.trolltech.com/4.4/qbytearray.html#qUncompress I have read the data in from QDataStream via readRawBytes into a char array, which I then converted to a QByteArray for decompression. I have the com...

Obtaining MP3 Audio Compression Library

Hi, I would like to find out where I would be able to find the MP3 library, for implementation in an Operating System. Thanks. ...

what is a good cross-platform css compressor?

i need to compress my css as part of my ant build. i noticed that csstidy does this, but it would not be easy to include this in my ant build because i would need to use a different binary on different platforms. so, is there a java css compressor that people use? ...

How to use System.IO.Compression to read/write ZIP files?

I know there are libraries out there for working with ZIP files. And, you can alternatively use the functionality built into Windows for working ZIP files. But, I'm wondering if anyone has worked out how to use the tools built into the System.IO.Compression namespace within .NET for reading/writing ZIP files? Or, is it not possible usin...

Does repeated loading and saving of a compressed audio file reduce quality?

Like it is the case with jpeg images for example? What's about mp3 or ogg vorbis audio files? ...

HTTP Compression in IIS 6 - vs Third Party Solutions

Anyone had any experience with httpZip product (ISAPI - based compression for IIS). I'm wondering if this is worthwhile compared to the native compression in IIS6... Pros / Cons / pitfalls of either approach? ...

How to inflate a file with zlib.NET?

I'm using the zlib.NET library to try and inflate files that are compressed by zlib (on a Linux box, perhaps). Here's what I'm doing: zlib.ZInputStream zinput = new zlib.ZInputStream(File.Open(path, FileMode.Open, FileAccess.Read)); while (stopByte != (data = zinput.ReadByte())) { // check data here } zinput.Close(); The data...

Apache: Caching a DEFLATE'd file.

It seems redundant to have zlib compress a web page during every request. It is also the bottleneck of my files' response times. Is there a way to cache the zlib'd file so that it is compressed only once at each modification? Or should I just keep wishing? ...

Is it possible to enable compression with SQL Server 2005 Replication

I am sending data across a link with very little bandwidth and I will probably be sending large data files. I have Merge Replication and Snapshot replication configured at present. Is it possible to enable compression in SQL Server 2005 replication and if so, how? Thanks. ...

How to link to a gzipped javascript in an html document?

I've seen a number of references to gzipping a javascript to save download time. But I also see a number of warnings that certain browsers do not support this. I have two different methods at my disposal: use mod_deflate to make Apache compress JS/CSS files in a given directory through htaccess use ob_start('gzhandler') to compress a...

asp.net and HTTP compression - shared hosting

What are my options when it comes to implementing page compression is asp.net.Right now I have a custom home grown httpmodule and its not very mature. Google links me to MbCompression. The project has few views and downloads which discourages me a bit. Edit: I am under shared hosting, which limits my access to IIS settings ...

SharpLibZip: Add file without path.

I'm using the following code, using the SharpZipLib library, to add files to a .zip file, but each file is being stored with its full path. I need to only store the file, in the 'root' of the .zip file. string[] files = Directory.GetFiles(folderPath); using (ZipFile zipFile = ZipFile.Create(zipFilePath)) { zipFile.BeginUpdate(); ...

ASP.NET compression

From an earlier post about trying to improve my sites performance I have been looking at HTTP compression. I have read about setting it up in IIS but it seems to be a global thing for all IIS application pools I may not be allowed to do this as there is another site running on it as well. I then saw some code to put in global.asax to ach...

What's the best audio compression library for .NET?

I'm looking for a good audio compression library for .NET. Anything using MP3 is out (because of the licensing issue). Basically I just need to be able to compress regular WAV audio data into some format, and decompress back to WAV. Preferably the code would be all .NET (C# or VB.NET), but I don't think this is likely. It should eith...