I wonder if you've used Slim girl, it's a software designed to compress HTML hypertext files and script files. It is said that its compression rate reached more than 15%, I tried, and some files (large) compression rate incredibly reached 50%. I took the compressed file and the original file contrast, hey, it seems to simply put the space, carriage return and line break to remove. It seems that the software is nothing, I use VB can do one. I don't bel
compression : Removes all comments, tick marks, line breaks, and useless spaces in Javascript code, compressing the JS file size.How JavaScript files are compressedThe first, of course, is to remove the comment .The other is the same as the CSS compression to remove line breaks , spaces or something.JavaScript has several variable forms, such as variables, function names, function parameters, and so on, usually when we write JS code, in order to facilitate understanding, we will give these varia
Pclzip Introduction the Pclzip library compresses and compresses zip files (WinZip, pkzip) and can process such files, including producing compressed files, listing the contents of compressed files, and decompressing files. Because of the ability to compress and decompress on the server side of the action, it is quite convenient to use.Pclzip defines a Pclzip class whose class object can be treated as a zip file and as a method for processing. Pclzip
ways to compress word pictures
Method One: Use compressed picture command
1, first open the Word document, left-click the picture in the document, and then select the compressed picture in the menu bar.
2, in the compressed picture to select the compression of the selected picture or compressed all the pictures in the document, and then in the change resolution to choose a certain.
3, at this time will appear prompts, click
switch to the "Output Settings" Panel, click on the "Designated path" column to the right of the folder icon, in the pop-up "Browse folder" window inside select our Save file path location
6. After specifying the location of the path, in the "Output file format" column click Next to the JPEG option, in the Pop-up JPEG Options window, you can adjust the percentage of high and low quality, you can set limits on the size of the picture we output in the number of K within, set these pa
bar-compression.
3. After entering the "compression" interface, choose a good modified picture to save to which folder. Then click "Compress".
4. In the pop-up "compression" prompt box, the left "image size" selection width of no more than the PX;
To the right, select "JPEG transform file Limit" and choose "no more than K". And then "OK".
5. When you save the picture, select "Back Up All". In case the ope
parameterRecord several common parameters ZIPARCHIVE::CREATE(integer) If it does not exist, create a ZIP archive package. ZIPARCHIVE::OVERWRITE(integer) always starts with a new compressed package, which is overwritten if it already exists in this mode.There are many, not listed here, if necessary, can be found in the documentHere we build my. zip$res $zip $zip:: CREATE);Looping through the content I need to packageif ($res = = = TRUE) { foreach (' Package directory ' as ' directo
Abc.txt
The file cannot be added to the compressed archive (GZ or bzip). The file can only be added to the normal archive file.
9. Add files to a compressed archive (TAR.GZ/TAR.BZ2)
It has already been mentioned that it is not possible to add files to a compressed archive, but it can still be done with some simple tricks. Use the Gunzip command to extract the archive, then add the file to the archive and then compress it again.
The code is as fol
' Database management class
Class Datas
' Backup
Public Sub Bk ()
Set fso=server.createobject ("Scripting.FileSystemObject")
Fso. CopyFile Server.MapPath (Sitedatapath), Server.MapPath (Sitedatabakpath)
Set fso=nothing
Response. Write (" ")
End Sub
' Restore
Public Sub Rt ()
Sdpath = Server.MapPath (Sitedatapath)
sDBPath = Server.MapPath (Sitedatabakpath)
Set Fso=server.createobject ("Scripting.FileSystemObject")
If Fso.fileexists (sDBPath) Then
Fso.copyfile Sdbpath,sdpath
Set fso=nothing
Respo
(shortcuts are similar to Windows shortcuts) light blue
r--Read Only w--write only
Archive
-c--create Create an archive file
-t--list Display archive content
-X---Recovery (release) archive
-c--Specify external media when saving archive files
-f--Specify the name of the archive file
-v--shows the details during execution
1) Create archive (backup) is not compressed
TAR–CVF User.tar passwd Shadow
2 View archive content (multiple archive coexistence)
TAR-TVF User.tar
3 Release the archive (nee
approximate meaning of this code is to take the FS module, which is the file module of node. Then take the UGLIFYJS two modules. The back is the UGLIFYJS compression process.
4, open the command line, execute compress.js
The console outputs the compressed code. Well, that's simple.5, since in the node environment, of course, you can write a function directly read the source file, compressed and output to the specified directory. Encapsulate the above code into a function, as follows
Python's self-contained tarfile module makes it easy to read the tar archive, and cow B can handle using GZIP and bz2 to compress archive files tar.gz and tar.bz2.Corresponding to the Tarfile is the ZipFile module, ZipFile is the processing of zip compression. Please note: os.system (cmd) can make the Python script execute commands, including: Tar-czf *.tar.gz *,tar-xzf *.tar.gz,unzip, etc., when I feel that this can solve the problem, but I feel very
How to use Compress Html help (. chm file) in C++builder:
Microsoft's HTML Help Workshop contains htmlhelp.h and htmlhelp.lib for use with compressed HTML assistance in programs. However, Htmlhelp.lib cannot be used directly in BCB. The methods used in BCB are as follows:
Implib hhctrl.lib hhctrl.ocx: Create a htmlhelp library file.
Include
Add the first step to creating the Hhctrl.lib in the project,
Compile.
Instances in the program:
HtmlHel
How to compress the pictures in WPS Demo
1, open the WPS demo, create a new blank slide, insert the picture.
2. After inserting, select the picture and execute the Cut command. Then click on the menu bar--edit--paste it selectively.
3, in the selective pasting interface, we select JPG format, click OK.
4, to see the compression before and after the contrast effect bar, how, is not very useful?
Tips
Format is not neces
Reference Documentation:
1.http://blog.csdn.net/zhongbaolin/article/details/49817611
2.https://github.com/think2011/localresizeimg
3.http://yunzhu.iteye.com/blog/2177923
4.http://blog.csdn.net/inuyasha1121/article/details/51915742
5.https://segmentfault.com/q/1010000005012250?_ea=753141
Demo Download Address: http://download.csdn.net/detail/u010947098/9725884
Compress the picture via Lrz and upload it to the seven cow server.
Lrz compression picture
root directory, the root directory has a Install.logZip_deflated is a compression flag, if you use it needs to compile the zlib module, if it is only packaged but not compressed, you can change to ZipFile. Zip_stored
2, unzip the zip file
#!/usr/bin/python
Import zipfile
zfile = ZipFile. ZipFile (' Archive.zip ', ' R ') for
filename in zfile.namelist ():
data = zfile.read (filename)
file = open ( FileName, ' w+b ')
file.write (data)
File.close ()
If there is a directory i
changed.
In some cases, the problem of writing a user's query statement (SQL statement) causes the database file sizeThe rapid expansion, especially the log files, can become very large. The database needs to be shrunk at this time. Reduced operationsis divided into two steps:
To truncate the contents of a log in a databaseBACKUP LOG database name with TRUNCATE_ONLY
Step two force the database to compress its sizeDBCC shrinkdatabase (database name
The method is as follows:
1, if your picture format is PNG format, and the picture quality requirements are not high, you can use the following method to compress the picture size.
2. Right-click the file option to open the PNG image file with the drawing board function with the system itself.
3, and then click the picture shown in the button to set up, save the file from the new. Select Save As.
4, then we w
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.