compression

RubyZip turning JPGs into "not JPGs, starts with 0x89"

Hi, I'm using RubyZip to compress a set of images (uploaded using Paperclip) and allow the user to download them in one file, and all works fine until I come to open an image. It wont display, and trying on Ubuntu I get the error message: "Error interpreting JPEG image file (Not a JPEG file: starts with 0x89..." So the user is downlo...

ECG SMS how to ?

How to copresss ECG data to fit into an sms. ...

how to compress an unsorted list of numbers?

I am working on compressing graphs. The graph is represented as an adjacency list i.e each node in graph maintains a list of adjacent nodes. The lists contain Node_IDs(4 byte integers) and they are ordered by popularity of each Node_ID(score). So, I end with up unsorted list of Node_ID numbers and I have to compress them while maintainin...

How to make an Ant task to sign and pack200 all my JAR files?

My JAR files must be signed for a webstart application. It would be nice to also have them packed to minimize the download time. I'm trying to configure an Ant task to automatically do it during the deploy of the application. Since the pack process reorganizes the jar internal structure invalidating the signature, the Pack200 documentati...

java image compression and reduce bytes size

Hello coders I developed a mass file up loader (a swing application) recently.One of the new requirements is to support uploading thousands of documents (GIF,JPG,PNG,DOCX,XLSX), each of these are like 3MB-10MB of size and we don't want to upload these huge files, we generally support TIFF files which has small byte size like 60KB-100KB....

Disabling "Unicode Compression" property by SQL Query ( Access )

Is it possible to have a SQL statement in Microsoft Access that can disable the unicode compression property on a column ? Something in the lines of : ALTER TABLE MyTable ALTER COLUMN MyColumn DISABLE UNICODE COMPRESSION ...

Access: Get list of all columns in DB that have "unicode compression"

In Microsoft Access , is it possible somehow to get a list (via a SQL query ) of all columns that have UNICODE compression enabled ? Maybe by executing a query on some Microsoft Access system table ? Any ideas ? ...

Coroutine demo source

Here's an example of a program, where coroutines really help to simplify the algorithm - imho its hardly possible to implement otherwise. I also tried to choose a useful task for the demo - this utility converts a binary file to a sequence of A-Z symbols (and back), without any significant redundancy, and it has an ability to work with a...

speeding up ajax requests - can gzip compression be applied?

Hi guys I want to speed up my ajax requests, I'm returning large amounts of information from the requests and was wondering if any sort of compression could be applied here to speed things up a bit. My ajax requests typically all send in JSON encoded objects such as objects and arrays which contain html elements and other stuff at time...

Fast infoset or .net binary compression open source libraries

Hi, are there open source libraries implementing the fast infoset or the .net binary compression format? I'd need them for C, C++ and C# (including support for the .net framework, I'm not sure it natively supports the binary compression). The final goal is that of compressing xml files with a fast algorithm available for a wide range of...

Wrong ELF class - Python

Hi folks, I'm trying to install this library for LZJB compression. PyLZJB LINK The library is a binding for a C library, the file is located here PyLZJB.so Unfortunately by copying to the site-packages directory when import I get the "Wrong ELF class" error. >>> import PyLZJB Traceback (most recent call last): File "<stdin>", li...

Resuming a failed compression using Java.

I have a smallish number (2-10) of largeish files (6-15GB) that compress really well (4:1). I'm writing the client and server in Java, and I want to send the files from the client to the server, so that 1. the client compresses the files as they are sent (i.e. no intermediate .zip file is created) 2. the compressed stuff on the server...

Compress and decompress XML in Flex and Java

I want to compress XML in Flex, send it to Java, decompress it in Java and recompress it in Java, resend it to Flex, decompress it and use it. How to do please ? thnx ...

ZIPX Compression Method 2048

Hi, I have a zipx file that is using compression method 2048. I know that the ZIPX format uses one of four compression methods (LZMA, BZIP2, PPMd, WavPack). The compression method number associated with each of these methods is: LZMA (14) BZIP2 (12) PPMd (98) WavPack (97) Does someone understand what compression method 2048 stand...

What is the best way to load a CCITT T.3 compressed tiff using python?

Hey guys, I am trying to load a CCITT T.3 compressed tiff into python, and get the pixel matrix from it. It should just be a logical matrix. I have tried using pylibtiff and PIL, but when I load it with them, the matrix it returns is empty. I have read in a lot of places that these two tools support loading CCITT but not accessing the...

Compress an HTTP Request in java

Hello, I want to compress my HTTP request before sending it in java. how to do please ? I'm using JBoss4.2 as a Server ...

converting floating point to 32-bit fixed point in Java

I have to convert a floating point to 32-bit fixed point in Java . Not able to understand what is a 32-bit fixed point ? Can any body help with algorithm ? ...

Flex remoteObject compression

I have a Flex application which sends/receive a lot of data to/from the server. The bandwidth usage is high. I'm using RemoteObject to send an XML(Document in Java). So I'd like to compress this XML and reduce the size. ...

compressed vector/array class with random data access.

I would like to make "compressed array"/"compressed vector" class (details below), that allows random data access with more or less constant time. "more or less constant time" means that although element access time isn't constant, it shouldn't keep increasing when I get closer to certain point of the array. I.e. container shouldn't do ...

How to defeat gzip (or other lossless compression)

By pigeonhole principle, every lossless compression algorithm can be "defeated", i.e. for some inputs it produces outputs which are longer than the input. Is it possible to explicitly construct a file which, when fed to e.g. gzip or other lossless compression program, will lead to (much) larger output? (or, betters still, a file which in...