commands: 31 packaging and compression are different operations. do not consider windows ideas. 32 1. Package 33 tar cvf/tmp/root.tar/home/jerry/etc/passwd/etc/shadow34 (the c parameter indicates packaging, and v indicates the process is visible, f is the file that follows) 35 tar rvf/tmp/root.tar/home/jerry/a.txt36(rfolder is the file to be added, a.txtto the root.tar package) 37 tar xvf/tmp/root.tar-C. 38 (the x parameter is used to uncompress the package. The-C parameter is the specified dec
Compress the n-base array into a string (0-9 a-z) and decompress it.
There are two points to define such a question:
1. Create a table: index the character with an array subscript. Note that if the character is returned to a number:
Int index = (str [I]> = '0' str [I]
2. Pay attention to whether the low position is in front of the high position. If the first position isLow * radix ^ IYou can.
3. Calculate the number of radix hexadecimal arrays in on
Address: http://hi.baidu.com/blackj_li/item/1747aea8748ee19f151073a6
This is the iPhone image compression shared by cocoachina member qqn_pipi.CodeCan compress the image to a specified resolution. Post address http://www.cocoachina.com/bbs/read.php? Tid-20940.html# Import @ Interface uiimage (uiimageext)-(Uiimage *) imagebyscalingandcroppingforsize :( cgsize) targetsize;@ End
# Import "uiimageext. H"@ Implementation uiimage (uiimageext)-(Uiim
the CMD command to switch to D:/www/SPM/JS. See
(2) the project's Js directory structure must contain the src directory, that is, JS files that are not merged or compressed (seajs module files ). Directory structure Convention portal.
Finally, these problems only occur when I contact you. For details about the SPM commands and usage, see the official documentation.
Https://github.com/spmjs/spm/
Ii. Batch Compression
Write a class to search for all JS files and call the DOS command t
:
Foo. tostring () => Foo + ""
-- Max-line-len (32 K byte by default)-adds a line break to 32 K byte, and passes in 0 to disable this function.
-- Reserved-names-some class libraries depend on some variables, and the names specified by this parameter are not obfuscated. Multiple class libraries are separated by commas.
API
To use the uglifyjs class library in Javascript, refer to the following example (using nodejs as an example ):
VaR JSP = Requ
// Package ..
Public static void ziptest (){
// Obtain the image set. The thphoto object is used to save the image information.
List
System. Out. println (list. Size ());Try {Fileoutputstream F = new fileoutputstream ("D: \ image .zip ");Zipoutputstream out = new zipoutputstream (New dataoutputstream (f ));Int I = 0;For (tbphoto photo: List ){// System. Out. println ("starts to compress the image... ");// Photo. getcontent is read from the database a
Asp.net uses RAR for File compression and decompression
Author: qingyueer
Home page:Http://blog.csdn.net/21aspnet/Time: 2007.6.13
If the RAR program is installed on the server, Asp.net can call RAR to compress and decompress files.
However, it should be noted that the web program cannot directly call the client program (unless ActiveX is used, ActiveX is almost deprecated ), therefore, to decompress a local file on a webpage, you must upload the file
The following are the compressed decompressed commands in Linux for reference.
. Tar
Unpack: Tar xvf filename.tar
Package: Tar CVF filename.tar dirname tar CVF a.tar a.txt B .txt c.txt
(Note: tar is packed, not compressed !)
---------------------------------------------
. GZ
Decompress 1: gunzip filename.gz
Decompress 2: gzip-D filename.gz
Compression: gzip filename
.Tar.gz and. tgz
Decompress: Tar zxvf filename.tar.gz
Compression: Tar zcvf filename.tar.gz dirname
----------------------------
Article Title: compress and decompress the RAR package in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Rar compression formats are already popular in windows, but they are not integrated in linux, which is inconvenient,
Fortunately, there is a compilation installation package: linuxabc.net/softwareinf
The method functions are provided below:1. Declare an external function to obtain the temporary path of the system.
FUNCTION ulong GetTempPath (ulong nBufferLength, ref string lpBuffer) LIBRARY "kernel32.dll" alias for "GetTempPathA"2. Core methods:Global type gf_CompactAndRepairAccessDB from function_objectEnd typeForward prototypesGlobal function integer gf_compactandrepairaccessdb (string as_mdb)End prototypesGlobal function integer gf_compactandrepairaccessdb (string as_mdb );// Check whethe
=================== ===========================================================name YUI compressor-the Yahoo! JavaScript and CSS Compressorsynopsis Usage:java-jar Yuicompressor-x.y.z.jar [options] [input file] Global options-h,--help Displays this information--type PS, on the internet also found an online, the address is: Http://ganquan.info/yui/?hl=zh-CNAlso attached to the relevant articles for friends to learn:Http://www.cnblogs.com/likehua/archive/2011/08/16/2141332.html using
MYISAM table batch compression bitsCN.com
Batch compression of MYISAM tables
These two operations need to be used with caution. before compression, you need to confirm that mysqld is disabled or that the table to be compressed does not have any other SQL operations, and the compression process will occupy cpu resources, we recommend that you do this when the server is idle.
The following is the shell process used to compress the following tab
A problem has been encountered in the project, for security reasons, you need to package the file in binary data as a compressed file, and the compressed file has a password.Go to Google to find some API, download to see the next, and figured out the following methodsFirst put the API:Https://mvnrepository.com/artifact/de.idyl/winzipaes - Dependency> groupId>De.idylgroupId> Artifactid>WinzipaesArtifactid> version>1.0.1version> Dependency>After using
zerofree, in the Arch of the Aur source inside, can be used yourt zerofree for installation. I did not use this method is because, although the official web surface 1.0.1 said is to support EXT2,EXT3,EXT4, but the Aur source inside version 1.0.2 description is ext2 filesystem, see this I gave up trying.The scheme given by the official websiteWindows virtual Machinesdelete -c Csdelete -c DLinux virtual Machinesmount -n -o remount,ro -t ext2 /dev/sda1 /mount -n -o remount,ro -t ext2 /dev/sdb1 /va
PHPThe operation of the image file is mainly using the GD library extension. When we frequently use
PHPWhen you manipulate a picture, you naturally encapsulate many functions, or you will write too many duplicate code. When there are many related functions to the picture, we can consider these
PHPFunctions are also collated, so there is the idea of encapsulation into classes. Let's take a look at the following how to encapsulate it!
The operation of the picture is mainly four steps:
O
This article mainly introduces the PHP implementation of compressed image size and into a JPG format, involving PHP for image reading, calculation, conversion, output and other related operations skills, the need for friends can refer to the next
The example in this paper describes how to compress the image size and convert it to JPG format in PHP. Share to everyone for your reference, as follows:
Articles you may be interested in:
Example of how
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.