archive

Creating a ZIP archive from a Cocoa application

僤鯓⒐⒋嵵緔 提交于 2019-11-28 08:44:32
Are there Objective-C classes that are equivalent to the ones contained in the Java package java.util.zip ? Is to execute a CLI command the only alternative? marcprux As of iOS8/OSX10.10 there is a built-in way to create zip archives using NSFileCoordinatorReadingOptions.ForUploading . A simple example of create zip archives without any non-Cocoa dependencies: public extension NSURL { /// Creates a zip archive of the file/folder represented by this URL and returns a references to the zipped file /// /// - parameter dest: the destination URL; if nil, the destination will be this URL with ".zip"

How to extract a single file from a remote archive file?

青春壹個敷衍的年華 提交于 2019-11-28 08:33:18
Given URL of an archive (e.g. a zip file) Full name (including path) of a file inside that archive I'm looking for a way (preferably in Java) to create a local copy of that file, without downloading the entire archive first . From my (limited) understanding it should be possible, though I have no idea how to do that. I've been using TrueZip , since it seems to support a large variety of archive types, but I have doubts about its ability to work in such a way. Does anyone have any experience with that sort of thing? EDIT: being able to also do that with tarballs and zipped tarballs is also

xcodebuild arguments ignored when using archive

≯℡__Kan透↙ 提交于 2019-11-28 07:32:38
问题 My name is Luca and I am currently working on iOS continuous integration to build apps in xcode for distribution (Ad Hoc and App Store) using shell-scripting. So far I achieved good results with IPA files. My problem comes for distribution in App Store. To build a .app from script (passing some arguments) I do: xcodebuild -scheme myScheme -configuration myConfiguration PRODUCT_NAME=myProductName TARGETED_DEVICE_FAMILY=myTargetedDeviceFamily .... etc Since with XCode 4.2, apps submission is

Delete log files after x days

狂风中的少年 提交于 2019-11-28 06:12:19
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? ccellar 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.org/2001/XMLSchema-instance"> <targets> <target name="file" xsi:type="File" layout="${longdate} $

Read skype message archive

不问归期 提交于 2019-11-28 05:20:24
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? AlexS 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 8 and above the path is %USERDIR%\AppData\Local\Packages\Microsoft.SkypeApp\Localstate\ %your_skype

Xcode 8: Preparing Archive takes forever

旧城冷巷雨未停 提交于 2019-11-28 04:31:17
Today I tried to archive and upload a App to iTunes Connect Beta Testing. Xcode stays at the point "Copying Swift standard libraries" for about 10 minutes.. Two days ago it just were some seconds.. The CPU runs at 100% an the Fan is really really loud. it never did that before.. Then I try to upload it to the AppStore using the Organizer. But it stays ridiculously long at "Preparing Archive - Codesigning libswiftAVFoundation.dylib..." I left it over night and it still was at the same spot.. I really don't know what to do. I need to upload this build as soon as possible.... Please help me

Exporting / Archiving changed files only in Git

时光总嘲笑我的痴心妄想 提交于 2019-11-28 04:25:46
Is there a simple way to export / archive only the changed files from a given commit or series of commits in git? I can't seem to find clear instructions to do this (and I'm new to Linux/Git). I am using msysgit, and for the most part I'm fine with deploying entire repositories but in many cases it is much more efficient to deploy small fixes a few files at a time. Pushing/pulling/installing git on the remote servers isn't really an option as my level of access varies between projects and clients. Is there a straight-forward way to (rough guess): pipe 'diff --names-only' to 'git-archive'? I

What's the best “file format” for saving complete web pages (images, etc.) in a single archive? [closed]

被刻印的时光 ゝ 提交于 2019-11-28 03:49:30
I'm working on a project which stores single images and text files in one place, like a time capsule. Now, most every project can be saved as one file, like DOC, PPT, and ODF. But complete web pages can't -- they're saved as a separate HTML file and data folder. I want to save a web page in a single archive, and while there are several solutions, there's no "standard". Which is the best format for HTML archives? Microsoft has MHTML -- basically a file encoded exactly as a MIME HTML email message. It's already based on an existing standard, and MHTML as its own was proposed as rfc2557 . This is

Python in-memory zip library

拈花ヽ惹草 提交于 2019-11-28 03:32:48
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 ZipInputStream/ZipOutputStream would do the trick, although any interface at all that avoids disk access would be

What is the difference between 7zip's 7z.sfx and 7zsd.sfx?

 ̄綄美尐妖づ 提交于 2019-11-27 23:55:55
问题 I can't figure out what the difference is between the 7z.sfx file available with 7zip and the downloadable 7zsd.sfx from the developer's site, which is not bundled with 7zip. The 7z.sfx appears not to honor my request to include the config.txt file I created for it, but the 7zsd.sfx inclusion method works perfectly. 7zip comes with 7z.sfx bundled. The application history.txt in the program files directory shows that 7zsd.sfx used to be bundled with 7zip back in 2005. 7z.sfx is referred to as