compression

How to see contents of Hive orc files in linux

大城市里の小女人 提交于 2019-11-29 02:33:09
问题 Is there a way to see the contents of an orc file that hive 0.11 and above use. I usually cat gz files and decompress them to see the contents eg: cat part-0000.gz | pigz -d | more Note: pigz is a parallel gz program. I would like to know if there is something similar to this for orc files. 回答1: The ORC file dump utility comes with hive (0.11 or higher): hive --orcfiledump <hdfs-location-of-orc-file> Source link 回答2: There is now also a native executable for Linux and MacOS that prints the

Delphi EXE compressor? [closed]

拟墨画扇 提交于 2019-11-29 02:32:54
At one point I had a nice little compression utility that smashed my Delphi compiled EXE's to a smaller download size, but now I can't find it. Any recommendations? Also, are there any downsides to using these kinds of utilities? (I mainly use them to shorten download times for rural / dial-up users). Related question: Are there any downsides to using UPX to compress a Windows executable? Years ago I looked into compressing my executable to make the download smaller. What I ended up doing, and what I recommend for you, is to use an installer program like Inno Setup instead. Not only does it

Using Java Deflater/Inflater with custom dictionary causes IllegalArgumentException

烈酒焚心 提交于 2019-11-29 02:25:06
The following code is based on the example given in the javadocs for java.util.zip.Deflater . The only changes I have made is to create a byte array called dict and then set the dictionary on both the Deflater and Inflater instances using the setDictionary(byte[]) method. The problem I'm seeing is that when I call Inflater.setDictionary() with the exact same array as I used for the Deflater, I get an IllegalArgumentException. Here is the code in question: import java.util.zip.Deflater; import java.util.zip.Inflater; public class DeflateWithDictionary { public static void main(String[] args)

Tiff compression using Java ImageIO

会有一股神秘感。 提交于 2019-11-29 02:24:21
I am having issues converting a png to tiff. The conversion goes fine, but the image is huge. I think the issue is that I am not doing the compression correctly? Anyone have any suggestions?? Here is the code sample public static void test() throws IOException { // String fileName = "4958813_1"; String fileName = "4848970_1"; String inFileType = ".PNG"; String outFileType = ".TIFF"; ImageIO.scanForPlugins(); File fInputFile = new File("I:/HPF/UU/" + fileName + inFileType); InputStream fis = new BufferedInputStream(new FileInputStream( fInputFile)); PNGImageReaderSpi spi = new PNGImageReaderSpi

Java RMI + SSL + Compression = IMPOSSIBLE!

99封情书 提交于 2019-11-29 02:10:39
I've setup RMI + SSL. This works great. But it doesn't seem possible to slip compression in between RMI and SSL. So that the RMI requests are compressed before they're sent over SSL. I've seen some posts online suggest using SSLSocketFactory.createSocket() which takes a Socket to wrap SSL over a compressing socket. But that seems like it would try to compress the SSL protocol itself, which probably isn't very compressable. I supposed I should create a Socket proxy (subclass of Socket that defers to another Socket , like FilterOutputStream does). Have the proxy wrap the Input/Ouput streams with

Possible to compress SQL Server network traffic?

谁说我不能喝 提交于 2019-11-29 01:29:22
I have a .NET client that needs to connect to a remote SQL Server over the WAN, is it possible to compress SQL traffic between the client and the server? I am using .NET 3.5 and SQL Server 2005 and greater. Looking at the connectionstrings.com here for SQL Server 2008, the database providers do not have some kind of compression scheme...You may need to write a wrapper on a different port, that compresses the data, by using the front end, send the data across that port, from there, compress it, send it across to the remote endpoint, decompress it, and forward it on to the real tcp/ip port where

How do I compress multiple files into a single archive with Delphi

大憨熊 提交于 2019-11-29 01:25:52
问题 I need to compress multiple files into a single archive using Delphi. I'd prefer to use freeware components or open-source components because I am very very cheap :-) My primary requirements are: Possible to encrypt the archive Can create common archives that can be opened by anyone with a copy of WinZip Does anyone have suggestions with components that they have used? Please feel free to suggest free as well as commercial components/libraries. 回答1: Perhaps DelphiZip is what you are looking

How can I tail a zipped file without reading its entire contents?

与世无争的帅哥 提交于 2019-11-29 00:55:51
I want to emulate the functionality of gzcat | tail -n. This would be helpful for times when there are huge files (of a few GB's or so). Can I tail the last few lines of such a file w/o reading it from the beginning? I doubt that this won't be possible since I'd guess for gzip, the encoding would depend on all the previous text. But still I'd like to hear if anyone has tried doing something similar - maybe investigating over a compression algorithm that could provide such a feature. No, you can't. The zipping algorithm works on streams and adapts its internal codings to what the stream

How does MPEG4 compression work?

爱⌒轻易说出口 提交于 2019-11-29 00:55:02
问题 Can anyone explain in a simple clear way how MPEG4 works to compress data. I'm mostly interested in video. I know there are different standards or parts to it. I'm just looking for the predominant overall compression method, if there is one with MPEG4. 回答1: MPEG-4 is a huge standard, and employs many techniques to achieve the high compression rates that it is capable of. In general, video compression is concerned with throwing away as much information as possible whilst having a minimal

Before deployment, is there tool to compress HTML class attribute and CSS selectors?

扶醉桌前 提交于 2019-11-29 00:23:58
问题 In current project, I was asked for compressing the HTML class attribute and corresponding CSS selectors before deployment . For example, the code on production is : <div class="foo"> <div id="bar"></div> </div> .foo {/*Style goes here*/} #bar {/*Style goes here*/} On deployment , I want the HTML class and corresponding CSS selectors to be substituted: <div class="a"> <div id="b"></div> </div> .a {/*Style goes here*/} #b {/*Style goes here*/} What's the available tools there to archive this