Android notes: file storage, compression, and deletion, android notes
In the past two days, we have improved the image upload code in the optimization project, considering that there may be large 7 or 8 m images, because we need to compress them first. Therefore, the File compression, storage, and deletion operations are designed. Take notes here.
/*** CompressFile and save it as. Each time you clear it and then save it */private void compressFile () {// clear the old photo String saveDir = Env
I. Question proposal
WinZip is a commonly used tool for backup and data exchange during computer usage. However, in actual use, I found that WinZip is somewhat unsatisfactory for data exchange operations, such:
1. when a large compressed package is compressed to a floppy disk, the operator must have multiple floppy disks at hand to complete data packet transfer. If there is only one floppy disk at hand, bu
winproj.exeProcess name: Microsoft ProjectDescription: Microsoft Project is a project scheduler.
Winroute.exeProcess file: WinRoute or winroute.exeProcess name: WinRouteDescription: WinRoute is a Windows-based firewall/routing/connection sharing software.
Winword.exeProcess file: winword or winword.exeProcess name: Microsoft WordDescription: Microsoft word is a word processing program included in Microsoft Office.
Winzip32.exeProcess file: winzip32 or winzip32.exeProcess name: WinZipDescription
file is actually a zip file, so you can use common tools for extracting ZIP files to decompress the JAR file, for example, Windows WinZip, WinRAR, and Linux unzip. Use WinZip and WinRAR to decompress the files because they are intuitive and convenient. The unzip is used because the-D parameter can be used to specify the target directory during decompression.
When extracting a jar file, you cannot use the-C
: META-INF/
Expand: META-INF/manifest. MF
Create: Test/
Expand: Test/test. Class
9) jar UF test. Jar manifest. MF
The file manifest. mf is added to test. Jar. Use jar TF to view test. Jar. You can find that test. Jar has a manifest more than the original one. By the way, if you use the-M parameter and specify manifest. mf file, then manifest. mf is used as the manifest of the inventory file, and its content will be added to the manifest; however, if it is added to the jar package as a general fi
When we mention the software, we all think of the two old compressed software and the powerful features of WinZip and WinRAR. But are you going to be worried because they spend dozens of minutes compressing or decompressing a hundreds of-megabyte file? If you introduce a compression speed is WinZip and WinRAR 3~5 times of software, smart you will not hesitate to choose it one by one ghost Expforer.
Ghost E
Many of my friends will encounter garbled characters in the decompressed ZIP file in linux. Next I will introduce how to solve the problem of garbled characters in the decompressed ZIP file. If you need it, please refer to it.
Solution
Modify the default system encoding to Chinese.
The Code is as follows:
Copy code
Vim/etc/sysconfig/i18n
Delete the file and add the following content.
The Code is as follows:
Copy code
LANG = zh_CN.GBK LANGUAG
) Tar xf $ ;; *.TBZ2) tar xjf $ ;; *.tgz) tar xzf $ ;; *.zip) unzip $ ;; *. Z) uncompress $ ;; *.7z) 7z x $ ;; *) echo "' $ ' cannot be extracted via extract ()" ; Esac Else echo "' $ ' is not a valid file" fi}Very long, but also the most useful. Unzip any document
......).
Go to SourceForge to apply for a project at 1.0 ...... Loonframework is not finished yet ......
Version 0.1.1.3 released:Project address: http://code.google.com/p/greenvm/Supports unzipping 7z compressed packages. We recommend that you use this format to compress virtual machines.
___________________________________________________________________________________________________________________________________________________________________
Solutions
Modify system default encoding to Chinese
The code is as follows
Copy Code
vim/etc/sysconfig/i18n
Delete the inside and add the following
The code is as follows
Copy Code
Lang=zh_cn. GBK language= "Zh_CN:zh:en_US:en" GST_ID3_TAG_RNCODING=GBK lc_ctyle=zh_cn. GBK lc_all= "ZH_CN. GBK "
Using 7z decompression can be resolved: 7z
-inf| '--MANIFEST'--Test'--test.classJar XVF Test.jarThe result of the operation is the same as 7, with detailed information displayed for the decompression process, such as:Created: meta-inf/Expand: Meta-inf/manifest. MfCreated: test/Expand: Test/test.class9) jar UF Test.jar MANIFEST.MFAdded the file manifest.mf in Test.jar, this use jar TF to see Test.jar can find Test.jar more than the original one manifest. Incidentally, if you use the-m parameter and specify the MANIFEST.MF file, the MANIFE
running result is the same as 7). Detailed information about the decompression process is displayed, for example:
Create: META-INF/
Expand: META-INF/manifest. MF
Create: Test/
Expand: Test/test. Class
9) jar UF test. Jar manifest. MF
In test. the file manifest is added to jar. mf. Use jar TF to view test. jar can be found in test. jar has one more manifest than the original one. by the way, if you use the-M parameter and specify manifest. mf file, then manifest. mf is used as the manifest of th
:
Create: META-INF/
Expand: META-INF/manifest. MF
Create: Test/
Expand: Test/test. Class
9) jar UF test. Jar manifest. MF
InThe file manifest. mf is added to test. Jar. You can use jar TF to view test. jar to find test. jar.A manifest is more than the original one. By the way, if you use the-M parameter and specify the manifest. MF file, then manifest. MFIs used as the manifest of the configuration file, and its content will be added to the manifest; however, if it is added as a general file to
When we mention the compression software, we will all remember the two old compression software WinZip and WinRAR and their powerful functions. But will it take you tens of minutes to compress or decompress a file of several hundred megabytes?) If you want to know that the compression speed is WinZip and WinRAR 3 ~ 5 times the software, you will certainly not hesitate to choose it one by one Ghost Expforer.
OnlySetInfectedMark
; Read all virus block tables
Mov eax, ebp; read function number
Call edi; read the block table to esi (@ 9)
The following is a complete modification to handle the Winzip self-extracting file error. when you open the self-extracting file,
The virus will not be infected. First, the virus obtains the ToRawData pointer of the 2nd block tables,
Read the data and determine whether the data contains the "
fileIn the introduction of the jar file has been said that the jar file is actually a zip file, so you can use some of the common unzip the zip file tool to extract JAR files, such as WinZip under Windows, WinRAR, and Linux under the unzip and so on. Using WINZIP and WinRAR to decompress is because they are more intuitive and convenient decompression. With unzip, you can use the-d parameter to specify the
" (File defragmenter) to Windows and provided "Taskmonitor" (Task monitor) to track disk activity during program startup to facilitate "disk defragment" Able to work more effectively. "Taskmonitor" is automatically run with Windows startup (of course, "Taskmonitor" is selected in "Startup"). When an application is loaded, it monitors the disk's access actions to understand which files are searched and invoked when the program starts, locates the desired files, and stores the monitoring results i
8 should be a great step forward in the processing of vector graphics, and then we'll look at the power of this command by "making Vector cartoon characters".
Example 1 making vector characters
Please note that the title of the article is very clear, is "make", not "draw", we can distinguish. Kite oneself is not what art personage, also have no art foundation, do not pretend art worker here to teach everybody "draw" any graph effect, we in this example is to pass the ready-made bitmap drawing
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.