compress

Can sIFR js files be combined into 1 js file?

In the new sifr 3, the author has implemented the ability to combine the css files into 1 file. There are 4 .js files total and I was wondering if there were any ideas how to combine these files for a faster loading time on the client side and also I was wondering if there was any way to just include the sIFR css styles in an already exi...

Compressing content with PHP ob_start() vs Apache Deflate/Gzip?

Most sites want to compress their content to save on bandwidth. However, When it comes to apache servers running PHP there are two ways to do it - with PHP or with apache. So which one is faster or easier on your server? For example, in PHP I run the following function at the start of my pages to enable it: /** * Gzip compress page o...

efficient way to compress a numpy array (python)

Hi, I am looking for an efficient way to compress a numpy array. I have an array like: dtype=[(name, (np.str_,8), (job, (np.str_,8), (income, np.uint32)] (my favourite example;). if I'm doing something like this: my_array.compress(my_array['income'] > 10000) I'm getting a new array with only incomes > 10000, and it's quite quick. But if...

Compress Object/String through webservice and consume in .net compact framework

We need to compress (or rather uncompress) some data we send to a pda client using a webservice. Below I have a simple concept that will work if consumed by a regular .net app. Unfortuantly, as the compact framework doesn't have the IO.Compression classes we can't see how this is possible without writing our own compression algorithms...

Acrobat SDK File Compression

Can someone please help me with how to compress a pdf file using Acrobat SDK. I am using CAcroApp acroApp = new AcroAppClass(); acroApp.MenuItemExecute("ReduceFileSize"); which brings up the "Make Compatible With" dialog to specify the version and I do not know what to do next. I want to, given a new file name and version, create a...

compressor for javascript and css

What compressor is the best for javascript and css minified ? I am using YUI compressor , now. Any other best than YUI compressor ? ...

Zip function junk directory paths

Wow I feel silly asking this question but here goes. I'm creating a zip file by relatively specifying file locations. Here is an example of the command I'm running: zip priv/purchases/test.zip priv/audio/5001.mp3 priv/audio/5002.mp3 When the file compresses it maintains the relative paths of the files. Thus I get a file hierarchy of: ...

Tar problem with apache commons compress

Hello, I'm having a hard time trying to tar some files using the compress library. My code is the following, and is taken from the commons.compress wiki exemples : private static File createTarFile(String[] filePaths, String saveAs) throws Exception{ File tarFile = new File(saveAs); OutputStream out = new FileOutputStream...

Compressing Object in Dot Net

Hi, I want to Compress an Object in dot net to reduce its size and then UnCompress it on in my client application. Thanks, Mrinal Jaiswal ...

Compressing result of Web Service

I have a .NET web service that returns XML, and I'd like to compress this before it is sent. There's a couple of ways that I can do this, but I'd rather not have to do it in code. Can I set up IIS to gzip all content returned by my WebService? It's not being called from a browser. The other question is if this web service is being co...

Shared Server not supporting gzip.

I have designed a website in ASP and uploaded on readyhosting's windows shared server. I ask them to enable gzip option from IIS web server but they are no supporting. Is there any option to compress files over network? thanks, Rau ...

Compressing and Decompress in PHP and JS

I was wondering if someone has come up with something similar to this?? a way to compress a text: <?php $str = 'Hello world!';// the text here can be any characters long $key = compress($str);// should return a key 32characters long/ or a fixed number of characters $value = decompress($key);// should return "Hello World!" ?...

How can I Compress a directory with .NET?

I have a directory that contains several files. I want compress this folder to a zip or tar.gz file. How can I do his work in C#? ...

Suse 11 Compress utility

"compress" command doesn't work on Suse 11. Is it possible to get the compress utility for Suse 11 from somewhere? ...

uncompressing tar.Z file with python ?

I need to write a python script that retrieves tar.Z files from an FTP server, and uncompress them on a windows machine. tar.Z, if I understood correctly is the result of a compress command in Unix. Python doesn't seem to know how to handle these, it's not gz, nor bz2 or zip. Does anyone know a library that would handle these ? Thanks ...

Is there a library in php to handle and compress mp3 files in php..?

Hi Everyone... Is there anyway in php to handle i.e compress a mp3 file using php...? Is there any library out there like ZZIPlib library (To handle .ZIP files)...? Thanks for your suggestions...! ...

Archive/Compress Command FTP Through Terminal?

Hi. Is it possible to compress a folder and create a .zip on my server through a command in terminal via FTP? Is there a archive command? Thanks. ...

How to compress javascript in realtime?

I was wondering if there was a way to compress javascript in realtime, much like gzip works for HTML (and CSS apparently)? I don't want to have to compress my file manually before upload everytime, I want the server to do it for me without any added work from lazy coders. ...

SQL Server 2008 - how to zip backup files and move to remote server

Hi, I have the non-enterprise edition of SQL Server 2008. I do nightly backups, manually zip the files and then manually copy to a remote server. I need to automate this using batch files. Copying files from server to server is easy but how do I automate the zipping of the backup first? The full process I need is: Run the backup nig...

CSS Compressor with @include support

Is there any CSS compressor that supports the @include directive? I have a bunch of css files that have one main file and are linked via those @include directives. Now that I want to compress the CSS files I'm looking for a compression tool that supports that. I'm not able to change the original files not to use includes because those ...