compression

Is there a javascript/css compressor plugin for visual studio?

Hi guys, I'm looking for a visual studio plugin with the following functionality: On building the project or executing the tool, the plugin looks for all *.js and *.css files in your project and compresses/minimizes them into *.min.js and *.min.css files. Executing the tool on project build would enable you to keep the references to ...

How to compress a .net object instance using gzip.

I am wanting to compress results from QUERYS of the database before adding them to the cache. I want to be able to compress any reference type. I have a working version of this for compressing strings.. the idea based on scott hanselman 's blog post http://shrinkster.com/173t any ideas for compressing a .net object? I know that it w...

Why the jpg file I converted from a gif file isn't crisp and clear ?

I use the following code to convert a gif file to a jpg file, it works but the result jpg file isn't the same quality as the original gif file, why ? Any way to improve the quality ? try { ImageIO.write(ImageIO.read(new File("C:/abc.gif")),"jpg",new File("C:/abc.jpg")); } catch (Exception e) { e.printStackTrace(); } So, to ask this ...

YSlow gives F grade to files compressed with mod_deflate

Hey all, I'm using mod_deflate on Apache 2.2 and the compression level is set to 9. I've fine tuned every possible aspects of the site based on the recommendations of YSlow (v2) and have managed to get an overall A grade (Total Score: 91) as well as on all categories except for: Make fewer HTTP requests (Grade C - I'm still workin...

Need help with some web.config settings.

I'm trying to play with my IIS7 compression settings in my web.config file. I'm trying to enable HTTP 1.0 requests to be gzip. MSDN has all the info about it here. Is it possible to have this config info in my own website's web.config file? Or do i need to set it at an application level? Currently, I have that code in my web.config... ...

How to create compression decompression program using gZIP in symbian

I want to create compression and decompression program with gzip in symbian platform which will be compatible with that in java Means if I compress the data in symbian I must be able to decompress the same in java Thanks Sunil ...

Finding the right caching and compression strategy for asp.net

I'm trying to figure out the best way to do caching for a website I'm building. It relies heavily on screen scraping the wikipedia website. Here is the process that I'm currently doing: User requests a topic from wikipedia via my site (i.e. http://www.wikipedia.org/wiki/Kevin_Bacon would be http://www.wikipediamaze.com/wiki?topic?=Kevi...

Determining the best initial buffer size for decompressing streamed compressed data

I am trying to calculate an initial buffer size to use when decompressing data of an unknown size. I have a bunch of data points from existing compression streams but don't know the best way to analyze them. Data points are the compressed size and the ratio to uncompressed size. For example: 100425 (compressed size) x 1.3413 (compressi...

Balancing IIS compression with CPU time?

For instance, with a level of IIS compression set to 9, the web browsing is significantly faster. However, I also have a Web Services application on the box, which transfers significant amounts of data (e.g. 3MB payload is typical), it actually takes 20-30% longer for the data to get to the client, because the CPU on the server takes a ...

Is it possible to optimize/shrink images before uploading?

I am working on a web application that will deal with many image uploads. Its quite likely that the users will be in areas with slow internet connections and I'm hoping to save them upload time by compressing the images before uploading. I have seen that Aurigma Image Uploader achieves this using a java applet or active x but it's expe...

Can pack200 be used to compress class files to run on jdk 1.4?

I would like to compress a jar file as much as possible for distribution (for downloading over dial-up modem). Can pack200, which was included in jdk5, be used on pre-jdk5 class files? To clarify, the target environment is jdk 1.4.x. ...

javascript text compression/decompression

Suppose I have a 400K text file which I want to read from a javascript. The problem is, my target audience have a slow connection, so 400k might take too long to load. I suppose I need to compress the file, but well, how can I decompress it via javascript on the client side? Is it worth it, or will the time needed for decompression neg...

YUI Compression? gui? and comptible with european letterS?

Hi there, I am trying to find some sort of gui or batch utility where i can YUI compress a JS file i have.. I have a utility that sort of consolidates all my js into 1 single js .. and works great but i need to compress this file.. I was using something similar before to compress but it failed on european character i.e. character with ...

tradeoffs of different compression algorithms

What are the tradeoffs of the different compression algorithms? The purpose is backup, transfer & restore. I don't care about popularity, as long as a mature enough tool exists for unix. I care about time cpu memory compression level the algorithms I am considering are zip bzip gzip tar others? ...

Why are my pages still not gzipped?

With the help of YSlow I'm trying to tune my pages a bit. I thought it would be little effort for big gain to have my pages compressed. After trying everything from here, here, here and here YSlow is still showing my pages are nog compressed. I'm using asp.net mvc 1.0 on IIS6. With the following rules in my global.asax I make sure that...

How do I compress a file with GZipStream and maintain meta-data about the original file?

How can I get the extension of compressed file after being compressed with System.IO.Compression.GZipStream? For example, if the original file is named test.doc and compresses to test.gz, how do I know what file extension to use when decompressing? ...

IIS 6 compression on Urlrewritten pages doesn't work

I'm developing a asp.net site (running .net 3.5 SP 1) and using UrlRewriter.Net (http://urlrewriter.net/) for urlrewriting. The site is hostet on a Windows 2003 server with all servicepacks and so forth. It runs IIS 6. In order to enable url rewriting I've setup a wildcard handler for *, which means all requests are sent through the a...

Twitter text compression challenge

Rules Your program must have two modes: encoding and decoding. When encoding: Your program must take as input some human readable Latin1 text, presumably English. It doesn't matter if you ignore punctuation marks. You only need to worry about actual English words, not L337. Any accented letters may be converted to simple ASCII. You m...

Sending compressed response in ASP.NET

I am running a website on IIS6 for ASP.NET application and enabled compression, which worked fine for the .aspx web pages. What isn't working is downloaded binary files that are transmitted as part of a postback response: e.g. link button is 'download to excel' - user clicks and the code generates a binary file, does a Response.Clear() ...

How to Look for a binary sequence in a file

Possible Duplicate: byte[] array pattern search I am trying to write a simple compression algorthm in C# and .NET 3.5 and I need to be able to search a particular file for occurrences of a certain sequence of bits. what is the fastest way of doing this? ...