archive

C/C++ Packing and Compression [closed]

本秂侑毒 提交于 2020-01-12 21:04:10
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I'm working on a commercial project that requires a couple of files to be bundled (packed) into an archive and then compressed. Right now we have zlib in our utility library, but it doesn't look like zlib has the functionality to compress multiple files into one archive. Does

Create a tar.xz in one command

ぐ巨炮叔叔 提交于 2020-01-11 14:47:48
问题 I am trying to create a .tar.xz compressed archive in one command. What is the specific syntax for that? I have tried tar cf - file | xz file.tar.xz , but that does not work. 回答1: Use the -J compression option for xz . And remember to man tar :) tar cfJ <archive.tar.xz> <files> Edit 2015-08-10: If you're passing the arguments to tar with dashes (ex: tar -cf as opposed to tar cf ), then the -f option must come last , since it specifies the filename (thanks to @A-B-B for pointing that out!). In

How to create an archive list in php?

流过昼夜 提交于 2020-01-11 07:12:06
问题 I am creating my companies blog and would like to know how to go about creating an archive page where the reader can click on the month/year and display all blog posts for that time period. I see this very often on blogs these days and would like to know how I can myself create it. It will look something like this: July 2012 June 2012 March 2012 Obviously I would want the list created dynamically by referencing the time field in my blog table, but where to start? Is there any documentation on

Can I re-open .xcarchive on Xcode?

一个人想着一个人 提交于 2020-01-11 05:09:27
问题 Is it possible to re-open an .xcarchive file on Xcode? I know this is not common, but I would like to open a project exactly as it was submitted to the App Store. I don't have back up of that exact build, so it would be really great to open the archive copy! Before you ask why don't I just download it from the store, I must say this build has been approved and is just pending on my release. :) Thanks! 回答1: A xcarchive is a folder containing a (compiled) app bundle, a dSYM (debug file) for the

Creating and extracting files from zip archives

故事扮演 提交于 2020-01-10 05:38:07
问题 Is there a library for crating/extracting zip files in php? The ZipArchive class works erratically, and this is mentioned on php.net : (for every function I checked) ZipArchive::addEmptyDir (No version information available, might be only in CVS) 回答1: Check PEAR Archive_Zip it might help you http://pear.php.net/package/Archive_Zip/docs/latest/Archive_Zip/Archive_Zip.html 回答2: PHP has native Zip support via GZip (may not be enabled by default): http://php.net/zlib You can also use this class

boost 序列化

。_饼干妹妹 提交于 2020-01-09 15:35:43
#include "stdafx.h" #include <iostream> using namespace std; #include <boost/archive/binary_iarchive.hpp> #include <boost/archive/binary_oarchive.hpp> using namespace boost::archive; #include <sstream> int main() { int a = 10; // 4 string s("你好!"); // 序列化时字节是9 cout << s.size() << endl;// 5字节长度(2字节/汉字 + 4字节(成员大小)) uint32_t b = 23; // 4 string ss("abcdfrg"); // 序列化时字节是11(7字母 + 4字节(成员大小)) cout << ss.size() << endl; int64_t c = 2456; // 8 // char、double会有问题 //char d = 'a'; //double e = 3.14; std::stringstream os; boost::archive::binary_oarchive arSend(os, boost::archive::no_header); arSend << a <<

unzip error “End-of-central-directory signature not found”

血红的双手。 提交于 2020-01-07 00:54:00
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> https://askubuntu.com/questions/54904/unzip-error-end-of-central-directory-signature-not-found Archive: upload.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of upload.zip or upload.zip.zip, and cannot find upload.zip.ZIP, period. The problem is exactly what it says. Unzip can't find the line of code that signals the

Does lipo increase final binary size?

半腔热情 提交于 2020-01-06 08:16:29
问题 I know I can use lipo to create a universal static library that I can then include in my project. It's convenient because it builds for the simulator or device, but will it make my project's archive bigger than if I had (a) included the static library built for device only or (b) made the static library project a subproject of my project? 来源: https://stackoverflow.com/questions/22489812/does-lipo-increase-final-binary-size

How to create a RAR archive with current date in archive file name?

依然范特西╮ 提交于 2020-01-05 02:27:49
问题 I have folder D:\data with lots of subfolders and files and I want to archive this folder with a batch file to a specified directory with current date added in archive file name, e.g. F:\11.08.2016_data . My command line is so far: "C:\Program Files\WinRAR\rar.exe" a -ep1 -r "data" "D:\data" This command line creates RAR archive file data.rar in folder My Documents . How can I add date and change the archiving directory? 回答1: How to build a WinRAR command line? Start WinRAR . Click in menu

Can I use PowerShell `Expand-Archive` upon a zip file with no extension

こ雲淡風輕ζ 提交于 2020-01-03 10:57:31
问题 I'm working upon a PowerShell script, where I have to extract the content out of a .zip archive which extension is removed, so, archive's name is let's say not test.zip but just test , and it is compressed as a .zip archive. I'm trying to use for this purpose the PowerShell cmdlet Expand-Archive like shown below : Expand-Archive -LiteralPath "Path to the archive" -DestinationPath "Extraction Path" But, it doesn't seem to work, is there a possibility of extracting this archive's content with