Cant zip application via gradle

I am creating a deployment script in gradle. I need to zip up my application in order to upload it to s3 and deploy a revision via code deploy. I can manually run zip -r * to achieve this. However when I try to run the same command in gra...
more »

2017-09-25 14:09 (2) Answers

Zip list with list of a list in Haskell

I want to zip [Int] with [[String]], so that I get [[(Int, String)]]. An example: [1,2,3] and [[a,b,c],[d,e,f]] becomes [[(1,a),(2,b),(3,c)],[(1,d),(2,e),(3,f)]] How could I do this? I have tried a few thing with map, but without success. ...
more »

2017-09-20 16:09 (1) Answers

Suppress Messages from zip in R

I want to suppress the messages as outputted by the zip command in r but I fail to find the right command to do so. Background, as I use the zip-function within a function, I don't want the user to see all information about all the files (roughly 5....
more »

2017-08-20 12:08 (1) Answers

Product of integers in list without libraries

Let's say I'm not allowed to use libraries. How do I go about calculating the product of indexes in a list. Let's assume none of the integers are 0 or less. The problem gets harder as I'm trying to calculate the indexes vertically. bigList = [[1, 2,...
more »

2017-07-13 15:07 (4) Answers

Store and access files in XLSM package structure

as part of an excel based VBA project that I am working on I have a reliance on external files. To date I have managed to get around this by either embedding the files or sending them with the spreadsheet. However as part of this project I have the ...
more »

2017-06-18 22:06 (0) Answers

.Zip file size decreasing / anomaly

I have created a .Zip file ( on my Mac - macOS Sierra. I then created an ISO of the folder containing the .Zip file using: hdiutil makehybrid -o ~/Documents/files.iso ~/Documents/files -iso The file size is 4.28 GB. I then mount
more »

2017-06-15 10:06 (1) Answers

Download assets remotely through gradle

My team are currently developing a game with Github. However, our assets are getting quite large and are soon going over the limit set by Github. I was wondering if it is possible that we can host the assets somewhere else (likely a zip) and to use...
more »

2017-05-22 14:05 (0) Answers

Problems when extract ZIP file in PHP

I'm trying to extract zip file to some folder in storage_path (I'm using laravel). But I don't know why they comes with .(dot)files when it extracted, also I want to extract them without creating another folder. Here's the code I'm using: lines insi...
more »

2017-05-12 22:05 (1) Answers

Java upload zip with entries (BLOB) to Oracle

I am working on a utility where you zip several MS Office files and then upload it to a Db. Problem is when I upload zip with 1 entry it works, when 2 or more entries I get an exception (yea some encoding issues here). java.sql.SQLException: Ïðå...
more »

2017-04-26 11:04 (1) Answers

Zipping files with relative path?

I'm trying to create backups of my USB key. For that, I'd need to zip the content of my USB key (/Volumes/<USB KEY NAME>/). I have this code for the moment zip -r /Volumes/<USB KEY NAME>/* That seems to work, except the fact that when I e...
more »

2017-03-21 19:03 (1) Answers

Partially applying <*> with zip

I started to look at some Haskell code and found: foo :: ([a] -> [b]) -> [a] -> [(a, b)] let foo = (<*>) zip I don't understand how this works, ap expects a f (a -> b) -> f a but zip is of type [a] -> [b] -> ([a, b]). I ...
more »

2017-02-15 23:02 (1) Answers

Use Zip Class in CakePHP 3.x

I would like use the standard PHP Zip class in an entity in CakePHP. I call $zip = new ZipArchive(); But i have an error. Error: Class 'App\Controller\ZipArchive' not found How add/use this class ? It's probably a problem of namespace but i ...
more »

2017-01-27 09:01 (1) Answers

Is it safe to store all kinds of file in the zip?

I am currently working on cloud storage system and this system can store images ,texts and also I want to store another file types.I didnt find way to store them normally,so system will watch if it is not text or images or videos,it will zip your fil...
more »

2017-01-01 16:01 (0) Answers

Better Package for File Compression using PL/SQL?

I have an xlsx file sample.xlsx stored in a remote directory with around 1,699 KB in Size. I have tried two popular PL/SQL packages (UTL_COMPRESS and AS_ZIP) that compresses them into gzip and zip, rescpectively. With the code below using AS_ZIP, I ...
more »

2016-12-30 05:12 (1) Answers

sort list reference to another in decending order

Trying to sort a list but keep the connection to another list. Did some reading and found the zip function, but I want to sort the list in descending order of age, nor name. names = ["Ged","Ethan","Sam","Paul"] ages = [15,9,12,19] list(zip(names,age...
more »

2016-12-22 23:12 (1) Answers

How to add url file to zip

I have a zip file with the following structure: |-file1.txt |-folder1/ |-file2.txt I want to add some_file from url to the folder1. I know that I can do something like: >>> import zipfile >>> z = zipfile.ZipFile("...
more »

2016-10-01 22:10 (1) Answers