archive

How to read contents of a csv file inside zip file using PowerShell

断了今生、忘了曾经 提交于 2019-11-30 14:04:54
问题 I have a zip file which contains several CSV files inside it. How do I read the contents of those CSV files without extracting the zip files using PowerShell? I having been using the Read-Archive Cmdlet which is included as part of the PowerShell Community Extensions (PSCX) This is what I have tried so far. $path = "$env:USERPROFILE\Downloads\" $fullpath = Join-Path $path filename.zip Read-Archive $fullpath | Foreach-Object { Get-Content $_.Name } But when I run the code, I get this error

Turn thin archive into normal one

雨燕双飞 提交于 2019-11-30 14:02:27
I'm building V8 , and by default it builds as a "thin" archive, where the .a files essentially just contain pointers to the object files on your filesystem instead of containing the object files themselves. See man ar for details. I want to be able to put this library in a central place so that other people can link to it, and it would be obviously much easier to provide a normal archive file instead of providing a gaggle of object files as well. How do I take the thin archives produced by the build and turn them into normal ones? I assume it would be as simple as enumerating the object files

maven: multi-module project assembly into single jar

◇◆丶佛笑我妖孽 提交于 2019-11-30 12:45:26
I have a multi-module project and want to create a single jar containing the classes of all my modules. Inside my parent POM, I declared the following plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <descriptorRef>bin</descriptorRef> </descriptorRefs> </configuration> </plugin> However, when running mvn assembly:assembly, only the source from the parent folder (empty) are included. How do I include the sources from my modules into the archive? I think you are looking for the Maven Shade Plugin: http:/

Build Tar file from directory in PHP without exec/passthru

女生的网名这么多〃 提交于 2019-11-30 12:36:23
So I have a client who's current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solution? This is a linux server. PHP 5.3 offers a much easier way to solve this issue. Look here: http://www.php.net/manual/en/phardata.buildfromdirectory.php <?php $phar = new PharData('project.tar'); // add all files in the project $phar->buildFromDirectory(dirname(__FILE__) . '/project'); ?> At http://pear.php.net/package/Archive_Tar you can donload the PEAR tar package and use it like this to create the archive: <?php

How to strip path while archiving with TAR [closed]

北战南征 提交于 2019-11-30 10:57:10
I have a file that contain list of files I want to archive with tar. Let's call it mylist.txt It contains: /path1/path2/file1.txt /path1/path2/file3.txt ... /path1/path2/file10.txt What I want to do is to archive this file into a tarball but excluding /path1/path2/ . Currently by doing this: tar -cvf allfiles.tar -T mylist.txt preserves the path after unarchiving. I tried this but won't work too: tar -cvf -C /path1/path2 allfiles.tar -T mylist.txt It archives all the files in /path1/path2 even those which are not in mylist.txt Is there a way to do it? In your "Extraction phase" you can use the

Git : How to get a snapshot of a git repository

大憨熊 提交于 2019-11-30 10:56:42
问题 I'm looking for the right way to get an archive of a git repository without the .git/ directory in order to send a daily snapshot to testers. 回答1: git archive HEAD --format=zip > archive.zip This does what it says on the tin. More info here: http://gitready.com/intermediate/2009/01/29/exporting-your-repository.html 回答2: This will result in archive.tar.gz and add a prefix dir named "prefix-dir": git archive --prefix=prefix-dir/ -o archive.tar HEAD gzip archive.tar 来源: https://stackoverflow.com

Xcode 8 can't archive “Command /usr/bin/codesign failed with exit code 1”

我怕爱的太早我们不能终老 提交于 2019-11-30 10:20:38
问题 I've got a serious problem on Xcode 8 on macOS Sierra. when I try to build my app, I get the following issue. CodeSign /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app cd /Users/me/Desktop/MyAppFolder1/MyAppFolder2/MyAppxcode export CODESIGN_ALLOCATE=/Users/me/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Users/me/Downloads/Xcode.app/Contents

Move rows from TableA into Table-Archive

Deadly 提交于 2019-11-30 10:02:16
Is it possible to move rows that are 3 days old into an other table called "Table_Archive" automatically in mysql ones a week? tableA ex: ID | stringvalue | Timestamp 1 | abc | 2011-10-01 2 | abc2 | 2011-10-02 3 | abc3 | 2011-10-05 4 | abc4 | 2011-10-10 5 | abc5 | 2011-10-11 After the move tableA: ID | stringvalue | Timestamp 4 | abc4 | 2011-10-10 5 | abc5 | 2011-10-11 Table_Archive: ID | stringvalue | Timestamp 1 | abc | 2011-10-01 2 | abc2 | 2011-10-02 3 | abc3 | 2011-10-05 And when new input comes into tableA it wont be any problems with ID (PK) in the next move? What Ive got: CREATE

Downloading multiple files and zip - Chrome extension

我与影子孤独终老i 提交于 2019-11-30 09:43:54
Is it possible to download multiple images into the sandbox file system (without the "save as" dialog box, or at-max one saveas dialog) ? after downloading them, i'd like to ZIP them into one.. is there any javascript archive library? Thanks in advance.. You can use zip.js for this. It does already have API for fetching contents to be zipped from HTTP (cf. zip.HttpReader constructor) and for writing generated zip on HTML5 filesystem (cf. zip.FileWriter constructor). Here is an example using the filesystem API : index.html file: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Zip

How to read contents of a csv file inside zip file using PowerShell

随声附和 提交于 2019-11-30 09:39:26
I have a zip file which contains several CSV files inside it. How do I read the contents of those CSV files without extracting the zip files using PowerShell? I having been using the Read-Archive Cmdlet which is included as part of the PowerShell Community Extensions (PSCX) This is what I have tried so far. $path = "$env:USERPROFILE\Downloads\" $fullpath = Join-Path $path filename.zip Read-Archive $fullpath | Foreach-Object { Get-Content $_.Name } But when I run the code, I get this error message Get-Content : An object at the specified path filename.csv does not exist, or has been filtered by