archive

How to do a “Save As” in vba code, saving my current Excel workbook with datestamp?

£可爱£侵袭症+ 提交于 2019-11-26 16:42:59
问题 I have an Excel Workbook that on form button click I want to save a copy of the workbook with the filename being the current date. I keep trying the the following ActiveWorkbook.SaveAs ("\\filePath\FormFlow To MSExcel\" & Left(Now(), 10)) but am receiving Run-time error '1004': Method 'SaveAs' of object'_Workbook' failed. Can anyone assist me with this? I'm still very new to developing for Excel. 回答1: Most likely the path you are trying to access does not exist. It seems you are trying to

Archive the artifacts in Jenkins

房东的猫 提交于 2019-11-26 16:02:13
Could someone please explain to me the idea of artifacts in the build process? I have the workspace directory where I check out the code to compile and run my ant scripts etc. At the end, in my case, I get a jar file that's ready to install. Is that considered to be the artifact? Where should I tell my build script to put the jar file? In the workspace directory? My jar file gets a unique filename depending on variables like BUILD_ID and such, how can I tell Jenkins which jar file to pick? EDIT: Okay, so i tried doing something like this: The path does not exist yet in my workspace, because

How can my Java program store files inside of its .jar file?

安稳与你 提交于 2019-11-26 15:30:07
I know that .jar files are basically archives as well as being applications. What I'm asking is how can I store data(actual files not just strings) packed inside my program? I want to do this within my Java code. The reason for this if your wondering is that I'm producing a server mod of a game. The server starts and creates all the level data and I want to store all these file inside my .jar app. Yes you can do this. Non-code resources in a JAR file on the classpath can be access using Class.getResourceAsStream(String) . Applications routinely do this, for example, to embed internationalized

How do I extract a tar file in Java?

旧街凉风 提交于 2019-11-26 11:44:51
How do I extract a tar (or tar.gz, or tar.bz2) file in Java? erickson Note: This functionality was later published through a separate project, Apache Commons Compress, as described in another answer. This answer is out of date. I haven't used a tar API directly, but tar and bzip2 are implemented in Ant; you could borrow their implementation, or possibly use Ant to do what you need. Gzip is part of Java SE (and I'm guessing the Ant implementation follows the same model). GZIPInputStream is just an InputStream decorator. You can wrap, for example, a FileInputStream in a GZIPInputStream and use

iOS how to set app icon and launch images

女生的网名这么多〃 提交于 2019-11-26 10:05:45
问题 How do I set the images so that I can archive and validate my app? The screen looks like this now: So the first one says 29pt , but then it also says 2x . So do I put a 29x29 image or a 58x58 image? And where do I put all of the other ones? (I know that there are more sizes than 29 , 40 , and 60 ). Anyway, what I tried was I dragged a 29x29 png onto the first slot, a 40x40 onto the second, and a 60x60 onto the third and fourth. When I went to Product->Archive , I get /Users/kendon/Documents

Shell command to tar directory excluding certain files/folders

不羁的心 提交于 2019-11-26 09:14:44
问题 Is there a simple shell command/script that supports excluding certain files/folders from being archived? I have a directory that need to be archived with a sub directory that has a number of very large files I do not need to backup. Not quite solutions: The tar --exclude=PATTERN command matches the given pattern and excludes those files, but I need specific files & folders to be ignored (full file path), otherwise valid files might be excluded. I could also use the find command to create a

How to include all objects of an archive in a shared object?

别来无恙 提交于 2019-11-26 08:19:18
问题 When compiling our project, we create several archives (static libraries), say liby.a and libz.a that each contains an object file defining a function y_function() and z_function() . Then, these archives are joined in a shared object, say libyz.so , that is one of our main distributable target. g++ -fPIC -c -o y.o y.cpp ar cr liby.a y.o g++ -fPIC -c -o z.o z.cpp ar cr libz.a z.o g++ -shared -L. -ly -lz -o libyz.so When using this shared object into the example program, say x.c , the link

How to combine several C/C++ libraries into one?

时光怂恿深爱的人放手 提交于 2019-11-26 08:15:41
问题 I\'m tired of adding ten link libraries into my project, or requiring eight of them to use my own. I\'d like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries? 回答1: On Unix like systems, the ld and ar utilities can do this. Check out http://en.wikipedia.org/wiki/Ar_(Unix) or lookup the man pages on any linux box or through google, e.g 'unix man ar'. Please note that you might be better

Compression formats with good support for random access within archives?

家住魔仙堡 提交于 2019-11-26 07:20:59
问题 This is similar to a previous question, but the answers there don\'t satisfy my needs and my question is slightly different: I currently use gzip compression for some very large files which contain sorted data. When the files are not compressed, binary search is a handy and efficient way to support seeking to a location in the sorted data. But when the files are compressed, things get tricky. I recently found out about zlib\'s Z_FULL_FLUSH option, which can be used during compression to

Manipulate an Archive in memory with PHP (without creating a temporary file on disk)

做~自己de王妃 提交于 2019-11-26 05:31:22
问题 I am trying to generate an archive on-the-fly in PHP and send it to the user immediately (without saving it). I figured that there would be no need to create a file on disk as the data I\'m sending isn\'t persistent anyway, however, upon searching the web, I couldn\'t find out how. I also don\'t care about the file format. So, the question is: Is it possible to create and manipulate a file archive in memory within a php script without creating a tempfile along the way? 回答1: I had the same