archive

RAR archives with java [closed]

徘徊边缘 提交于 2019-11-27 01:26:42
Is there a good java API for manipulating RAR archive files someone could recommend? Googling did not turn up anything overwhelmingly convincing. Fabian Steeg You could try JUnRar , "a RAR handling API implemented in pure Java" (quoting the site). There is also this fork from SF(@Fabian's answer and this one are forked from an old SF project): https://github.com/jukka/java-unrar I think this will help you. raroscope A pure Java library for scanning and enumerating RAR archive contents 来源: https://stackoverflow.com/questions/561107/rar-archives-with-java

Delete log files after x days

谁说我不能喝 提交于 2019-11-27 01:13:36
问题 I would like to log with Nlog using the file target like in this example. How can I realize a deletion of the files after X days without archiving them? Or is it possible to archive the files to the same folder? 回答1: You could simply use the built-in archiving functionality. This setting will keep 7 old log files in addition to your current log. The cleanup is done by NLog automatically. <?xml version="1.0" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3

Read skype message archive

百般思念 提交于 2019-11-27 00:54:36
问题 I would like to read my skype message archive outside of the Skype app. And be able to export it in some sort (other than copy-paste it from my messages) as far i can figure skype only provides 30 days or archives. Any one out there using an app for archiving / exporting Skype messages? 回答1: You can also look at skype's profile database ( %USERDIR%\Application Data\Skype\%your profile name%\main.db ) which is basically SQLite database and see what you can get from it. If you are using Windows

Python in-memory zip library

故事扮演 提交于 2019-11-27 00:05:34
问题 Is there a Python library that allows manipulation of zip archives in memory, without having to use actual disk files? The ZipFile library does not allow you to update the archive. The only way seems to be to extract it to a directory, make your changes, and create a new zip from that directory. I want to modify zip archives without disk access, because I'll be downloading them, making changes, and uploading them again, so I have no reason to store them. Something similar to Java's

How to include all objects of an archive in a shared object?

谁说胖子不能爱 提交于 2019-11-26 22:25:07
When compiling our project, we create several archives (static libraries), say liby.a and libz.a that each contains an object file defining a function y_function() and z_function() . Then, these archives are joined in a shared object, say libyz.so , that is one of our main distributable target. g++ -fPIC -c -o y.o y.cpp ar cr liby.a y.o g++ -fPIC -c -o z.o z.cpp ar cr libz.a z.o g++ -shared -L. -ly -lz -o libyz.so When using this shared object into the example program, say x.c , the link fails because of an undefined references to functions y_function() and z_function() . g++ x.o -L. -lyz -o

How to combine several C/C++ libraries into one?

帅比萌擦擦* 提交于 2019-11-26 22:12:56
I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries? Avner On Unix like systems, the ld and ar utilities can do this. Check out http://en.wikipedia.org/wiki/Ar_(Unix) or lookup the man pages on any linux box or through google, e.g 'unix man ar'. Please note that you might be better off linking to a shared (dynamic) library. This would add a dependency to your executable but will

Unpack inner zips in zip with Maven

假如想象 提交于 2019-11-26 17:40:11
问题 I can unpack zip file via the maven-dependency plugin, but currently I have the problem that inside that zip file other zip files are include and I need to unpack them as well. How can I do this? 回答1: You can unzip any files using ant task runner plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>prepare</id> <phase>validate</phase> <configuration> <tasks> <echo message="prepare phase" /

Manipulate an Archive in memory with PHP (without creating a temporary file on disk)

落爺英雄遲暮 提交于 2019-11-26 17:38:13
I am trying to generate an archive on-the-fly in PHP and send it to the user immediately (without saving it). I figured that there would be no need to create a file on disk as the data I'm sending isn't persistent anyway, however, upon searching the web, I couldn't find out how. I also don't care about the file format. So, the question is: Is it possible to create and manipulate a file archive in memory within a php script without creating a tempfile along the way? nettle I had the same problem but finally found a somewhat obscure solution and decided to share it here. I came accross the great

Zip folder in C#

家住魔仙堡 提交于 2019-11-26 17:31:05
What is an example (simple code) of how to zip a folder in C#? Update: I do not see namespace ICSharpCode . I downloaded ICSharpCode.SharpZipLib.dll but I do not know where to copy that DLL file. What do I need to do to see this namespace? And do you have link for that MSDN example for compress folder, because I read all MSDN but I couldn't find anything. OK, but I need next information. Where should I copy ICSharpCode.SharpZipLib.dll to see that namespace in Visual Studio? This answer changes with .NET 4.5. Creating a zip file becomes incredibly easy . No third-party libraries will be

How can my Java program store files inside of its .jar file?

只谈情不闲聊 提交于 2019-11-26 17:26:22
问题 I know that .jar files are basically archives as well as being applications. What I'm asking is how can I store data(actual files not just strings) packed inside my program? I want to do this within my Java code. The reason for this if your wondering is that I'm producing a server mod of a game. The server starts and creates all the level data and I want to store all these file inside my .jar app. 回答1: Yes you can do this. Non-code resources in a JAR file on the classpath can be access using