archive

Can I get “WAR file” type deployment with ASP.NET?

做~自己de王妃 提交于 2019-12-06 03:38:37
问题 Sometimes J2EE-savvy people look at ASP.NET and wonder, where's the support for deploying an app as a single unit ? JSP/Servlet apps can be deployed as WAR files, with all pages, content, metadata, and code in that single archive. The war file can be versioned, easily moved around. There's an assurance that the entire app is contained in a single unit. That's not a mainstream approach for ASP.NET. What do people do? Do they resort to copying directories and all the myriad files? Is this just

Unzipping with ExtractToDirectory method distorts non-latin symbols

巧了我就是萌 提交于 2019-12-06 02:19:50
问题 I have several folders with files, some folders contain non-latin symbols in their names (russian in my case). This folders are sending to zip archive (by windows explorer) in "D:\test.zip". Then I execute method ZipFile.ExtractToDirectory(@"D:\test.zip", @"D:\result"); and it successfully unzip all content, but all non-latin symbols turn into something wrong. For example, instead of "D:\result\каскады\file.txt" I got "D:\result\Є бЄ ¤л\file.txt" . Default encoding of my system is windows

Is there an equivalent of gzip.open() for .7z files?

て烟熏妆下的殇ゞ 提交于 2019-12-06 00:21:01
问题 I have to frequently search through a couple of .7z (zipped with LZMA) files. I don't have enough memory to have them unpacked at the same time or to change the archive to .gz. At the moment I unpack one, search for what I need, delete what was extracted, unpack the next. I want to go through the archives in the same way as with gzip: f = gzip.open('archive.gz') for i in f: do stuff Is there a module/way to do this with .7z files? 回答1: There is a built in module in Python >= 3.3: http://docs

Only first object of NSMutableArray is stored in NSUserDefaults

天大地大妈咪最大 提交于 2019-12-06 00:07:26
I am trying to store a queue of UILocalNotification to solve the limit problem . I used this approach and it does archive and unarchive my object but only the first one. How do I archive all objects from my NSMutableArray? Code // init/unarchive queue if (self.queue == nil) { // try loading stored array NSUserDefaults *currentDefaults = [NSUserDefaults standardUserDefaults]; NSData *dataRepresentingSavedArray = [currentDefaults objectForKey:@"LocalNotificationQueue"]; if (dataRepresentingSavedArray != nil) { NSArray *oldSavedArray = [NSKeyedUnarchiver unarchiveObjectWithData

Why GIT reports “fatal: This operation must be run in a work tree” when exporting from bare repo?

*爱你&永不变心* 提交于 2019-12-05 22:01:04
if I export from bare GIT repository using git archive command I get error message: "fatal: This operation must be run in a work tree", altough the export passes properly. So my question is: Is there any issue when exporting from bare repository? I checked the exported archive and it looks alright. I don't actually get that warning - I'm fairly certain it was a bug which was resolved sometime after the version you're using. I can't tell exactly when, because I haven't even managed to reproduce it at all (I tried v1.5.3.4, v1.6.2, and a build from current master.) VonC As mentioned in "backing

Retrieving Archived messages from XMPP server in ios

自作多情 提交于 2019-12-05 21:04:11
问题 I am integrating XMPP functionality in my ios app and i came across a problem i cannot solve. The problem is i cannot get archived messages from the server. My client is able to log in and i have tested several service calls (send, receive messages, getting info about a user) with success. Upon sending <iq type='get' id='pref1'> <pref xmlns='urn:xmpp:archive'/> </iq> The response is SEND: <iq type="get"><pref xmlns="urn:xmpp:archive"/></iq> RECV: <iq xmlns="jabber:client" type="error" to="1

Extract Directory Inside Zip

为君一笑 提交于 2019-12-05 19:41:14
I'm writing a script to extract files from a zip archive into the directory that the script is located. Here's my code: $zip = new ZipArchive; if ($zip->open('latest.zip') === TRUE) { $zip->extractTo('.'); $zip->close(); unlink('installer.php'); echo 'it works!'; } else { echo 'failed'; } This works fine, but there's one problem. The zip contains an extra layer. (zip/directory/files) which extracts like this directory/files rather then just the files. Is there a way to remove this extra layer? Thanks for your help! Joel Drapper In order to prevent any files from getting overwritten, you

xcode4 archive/ipa problem [duplicate]

爷,独闯天下 提交于 2019-12-05 13:53:25
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Xcode 4 Archive Version Unspecified Hi, I'm archiving an application for iPad adhoc deployment but when I try to share the archive, the option for ipa construction is not available. The application I'm trying to deploy was created using XCode 3. It worked perfectly fine over there. My problem seems to be, that the created archive has two missing values. The organizer shows the value of "version" as "unspecified"

FILESYSTEM vs SQLITE, while storing up-to 10M files

核能气质少年 提交于 2019-12-05 13:01:14
I would like to store up-to 10M files, 2TB storage unit. The only properties which I need restricted to filenames, and their contents (data). The files max-length is 100MB, most of them are less than 1MB. The ability of removing files is required, and both writing and reading speeds should be a priority - while low storage efficiency, recovery or integrity methods, are not needed. I thought about NTFS, but most of its features are not needed, while can't be disabled and considered to be an overhead concern, a few of them are: creation date, modification date, attribs, journal and of course

unzip specific extension only

[亡魂溺海] 提交于 2019-12-05 10:51:22
I have a a directory with zip archives containing .jpg, .png, .gif images. I want to unzip each archive taking the images only and putting them in a folder with the name of the archive. So: files/archive1.zip files/archive2.zip files/archive3.zip files/archive4.zip Open archive1.zip - take sunflower.jpg, rose_sun.gif. Make a folder files/archive1/ and add the images to that folder, so files/archive1/folder1.jpg, files/archive1/rose_sun.gif. Do this to each archive. I really don't know how this can be done, all suggestions are welcome. I have over 600 archives and an automatic solution would be