This article introduces a small example of the. NET output rewrite compressed paging file, and a friend in Need can refer to
I do not know if you have noticed, there are some Web site's HTML code is mixed together, without any space and newline and other extra characters. Its benefits are not to say--absolute optimization of the interface size. Perhaps you are thinking that they have done so much less read
If some files use winrar compression, or very large, then you can try the following RAR file weight loss skills, absolutely immediate!
1. Save the file you want to compress first
Save the original file as a command once before compressing the file. For example, in Word, Authorware, and director, to compress their sourc
1, first open the WinRAR software, in the main window open the damaged main window open the damaged compressed file in the directory, and then select the damaged compressed file;
2, click on the top of the interface "tool"-"Repair compressed
Unexpected compressed file at the end of the problem is generally the head of the package is destroyed, compressed files are generally normal. But the unexpected compressed file at the end of the situation is also not normal decompression
1. If the compressed file is downloaded from the Internet, it is likely that the website provides itself with a corrupted compressed file. If it is still corrupted after downloading, it can be downloaded from another Web site.
2. Try to repair the damaged file by using the
RAR files are usually compressed after the use of the format file, to open a RAR file can use WinRAR, such as decompression software or good pressure software, but there are many small partners have feedback that their own RAR files how to become Notepad icon, open rar file is also notepad form, How to solve this probl
Simple decompression of 7z files using the Lzma SDKsometimes we only need to extract the LZMA algorithm compressed 7z files, sometimes need to extract on the embedded devices, using P7zip although supporting a variety of formats, but not easy to crop, using the LZMA SDK is preferred:You can find various versions here: http://zh.sourceforge.jp/projects/sfnet_sevenzip/releases/I downloaded the 4.65 version, the file
read the $filename = Iconv ("Utf-8", "gb2312", $filename); $path = Iconv ("Utf-8", "gb2312", $path); Open a compressed package $resource = Zip_open ($filename); $i = 1; Traversal read a file inside a compressed package while ($dir _resource = Zip_read ($resource)) { If you can open it, continue. if (Zip_entry_open ($resource, $dir _resource)) { Gets the name of
SummaryAs a result of business requirements, the file system will be a part of the file processing packaging operations, beginning I use the JAVA6 comes with the API processing, when the file name with in, the compressed file after packaging will produce Chinese garbled prob
existsif (!file_exists ($filename)) {Die ("file $filename does not exist!") ");}$starttime = Explode (', microtime ()); Time to start decompressionThe file name and path are converted to the Windows system default gb2312 encoding, otherwise you will not be able to read the$filename = Iconv ("Utf-8", "gb2312", $filename);$path = Iconv ("Utf-8", "gb2312", $path);Open a c
{public $currentdir;/current directorypublic $filename;//File namepublic $fileinfo;//To save all file names and directory names and file sizes under the current directoryPublic Function __construct () {$this-GT;CURRENTDIR=GETCWD ();//Return to current directory}Traverse DirectoryPublic Function Scandir ($filepath) {if (Is_dir ($filepath)) {$arr =scandir ($filepat
Data | database | compression
--Compressed log and database file size
/*--Special attention
Please follow the steps and do not follow the steps above.
Otherwise, you may damage your database.
--*/
1. Empty log
DUMP TRANSACTION Library name with NO_LOG
2. Truncate the transaction log:
BACKUP LOG database name with NO_LOG
3. Shrink the database file (if not
The example of this article describes the Ziparchive method usage of the PHP package compression file. Share to everyone for your reference, specific as follows:
In front of the pclzip of the PHP package compressed file method, today, a more simple way to use ziparchive to compress files. This is the extension of PHP, since the php5.2 version has supported this
1, for example, a folder to be packaged, capacity than a larger folder (MP3), the normal way to compress, found that it takes nearly 12 minutes or so time.
2, then please try the following method to speed up the compression, first on the folder right select "Add to Compressed file."
3, in the open compressed file nam
Usually in Java to pack files to generate compressed files, the following two places will appear garbled:1, the content of Chinese garbled problem, the problem on the internet a lot of people have given a solution, there are two main ways: first, to modify the sun's source code The other is the use of Open source class library Org.apache.tools.zip.ZipOutputStream and Org.apache.tools.zip.ZipEntry, which are available in the two classes Ant.jar, can be
Follow the steps to avoid damaging your database if you do not follow the previous steps.
Generally do not recommend to do 4th, 62 steps, 4th step unsafe, it is possible to damage the database or loss of data. 6th step if the log reaches the upper limit, subsequent database processing will fail, and the log will not be restored until it is cleaned.
1. Empty log
DUMP TRANSACTION Library name with NO_LOG
2. Truncate the transaction log
BACKUP LOG database name with NO_LOG
3. Shrink the datab
RAR is a compressed file format, if you download rar files from the Internet, you need to extract them. Under Windows we can easily extract RAR files, then in Linux we can also extract it, if you want to extract RAR files, need to install Linux RAR software.
Download the install RAR software
The following example is installed with CentOS 5.5.
wget http://packages.sw.be/unrar/unrar-4.0.7-1.el5.rf.i386
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.