@echo offColor 1eFOR/R c \%%a in (*.tmp *.chk *.gid *._mp *.old *.bak *.log) do del/f/s/q "%%a"FOR/R c:\windows\temp%%a in (*. *) do del/f/s/q "%%a"FOR/R C:\windows\Prefetch%%a in (*. *) do del/f/s/q "%%a"FOR/R%userprofile%\appdata\local\temp%%a in (*. *) do del/f/s/q "%%a"FOR/R "%localappdata%\microsoft\windows\temporary Internet Files"%%a in (*. *) do del/f/s/q "%%a"FOR/R%localappdata%\microsoft\windows\history%%a in (*. *) do del/f/s/q "%%a"FOR/R%appdata%\microsoft\windows\cookies%%a in (*. *
ref:http://www.zhengsiwei.com/write-an-article-to-use-windows-live-writer-dont-use-360-to-remove-rubbish/When you write an article by using Windows Live Writer, the picture is cached to a temporary folder. If you use 360 to clear the garbage, the pictures in the cache will be deleted. The following prompt appears:In this case, the images in the article can be seen but actually deleted and need to be reinserted. If you want to see what software the cache exists may be 360 when garbage cleanup, or
problem with expressions is that they are calculated more frequently than we think. Not only when the page is displayed and scaled, it is recalculated when the page scrolls, or even when the mouse is moved. Add a counter to the CSS expression to track how often the expression is calculated. Easily move the mouse in the page can be more than 10,000 times the amount of calculation.
If you must use CSS expressions, be sure to remember that they are counted thousands of times and may have an impact
In Linux, frequent file access by clearing memory and Cache methods will cause a significant increase in system Cache usage $ free amp; ndash; mtotalusedfreesharedbufferscachedMem: 39553926280553459-/+ buffers/cache: 4113544 Swap :... in Linux, frequent file access by clearing memory and Cache methods will cause a significant increase in the system Cache usage $ free-m total used free shared buffers cached Mem: 3955 3926 28 0 55 3459-/+ buffers/cache: 411 3544 Swap: 5726 0 5726 free memory redu
comment in parentheses, it means the the depth of the order should be considered refactoring or extract it into a function. 117 If it is true that there are too many brackets, use closing brace. 118 Do : (Martin)119 if(expr) { - while(expr) {121 for(expr) {122 //Do something123}// for124}// while the}//if126 127 attributions and Bylines - again drop it to SVN and git blabla129 theCommented outCode131 try not to show the code block that is commented out
Code of Merit is very small and the reusability is very high.Shortcomings can not be perfect to adapt to the semantic, not conducive to revision and changes in demand.Recommended for beginners, it allows you to quickly solve floating problems.
The advantages are more semantic than the 5th case, the code is very small and the reusability is very high.The shortcomings of semantics are still imperfect, not conducive to revision and demand changes.Recommended for beginners, it allows you to qui
look at their own part of the matter, no overall concept. This kind of manager can't really be the boss's right hand, nor let the boss really feel relieved. 9 Don't know how to learn, can't grow The social environment has been changing and the challenges faced by enterprises have been increasing. Do not want to learn or feel that they are anything, it is easy to stagnate, can not follow the growth of enterprises. Many people often complain that the boss does not give themselves the opportun
comfortable to read. Description: try to follow the kiss (keep simple fool) principle, most systems, If they remain simple and not complex, they can work better. 5. Easy to be extended by other developers Note: Always believe that the code is not written for itself, but written to other developers, Maybe in a few months you'll be a member of the "other developers". 6. There is a minimum of dependent libraries Description: The more dependent future modification or maintenance is more
function as the second argument to promise's then method. Tips
Promise represents the final value, which results when the parallel operation is completed
Using promise to combine different parallel operations
Use promise-mode APIs to avoid data contention
Use Select (also known as choose) when required for intentional competitive conditions
Extended reading Promise https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise[Effective JavaSc
. Therefore, we need to perform operations on log files. If you have such a statement about log operations, it will not be cleared if you can modify it, so that the Administrator's doubts can be minimized. In Linux, most files are stored in text or in a simple structure, which provides a precondition for us to modify the specific content in a log record.Note that we need to first check the log storage location. Some administrators will modify the log storage location. Generally, we can view/etc/
public string clearhtml (string text)//filter Html,js,css code {text = text. Trim (); if (string. IsNullOrEmpty (text)) return string. Empty; Text = Regex.Replace (text, " Clean up HTML in a Web page
helps in the selector is nothing warning.So, with the property selector, you can bypass the problem.
The particularity of selectorsThe specificity of the selector is determined by the components of the selector itself. The special value is expressed as 4 parts, shaped as 0.0.0.0, although not a number, in number.The particularity of a selector is as follows:
For each # id attribute value given in the selector, add 0,1,0,0;
For the given class attribute value (. Class) in the
1. In the first step, shut down the computer and unplug the power cord.2. Now let's take apart the data center and remove the power supply. Note: unscrew the three screws of the fixed fan and unplug the power fan from the outside (there will be some differences between different chassis)3. As shown in the following figure, we can use related tools to cut and remove the rubber cover for sealing with a knife.4. Now let's remove the fan blades. Here, we just need to remove the fixed bearing
-mtime + 28: Find a 28 day ago directory
Use-exec parameter to connect Delete command after lookup ends
The code is as follows:
Rsync--delete-before-d/data/test/{} \;
So, the whole order is:
The code is as follows:
# find/bakcup/-maxdepth 1-type d-mtime +28-exec rsync--delete-before-d/data/test/{} \;
Finally you can put the command into the script, set crontab automatic execution.
Remind:
Before using the command, you should try the
as the scale of the application grows, the number of dependent jar packages is also significantly added. There is no shortage of unnecessaryjar package that takes up a lot of valuable space. by Loosejar this tool. You can easily find the "impostors"jar wrapped up ~Loosejar works by using ClassLoader. As the application is executed, whichclass, ClassLoader will load the class. class file into the JVM and generate a class pairlike. You can then use reflection to execute the method of this cl
saves you time and space. Such as:h1{font-family:arial, Helvetica, Sans-serif; font-weight:normal;}h2{font-family:arial, Helvetica, Sans-serif; font-weight:normal;}h3{font-family:arial, Helvetica, Sans-serif; font-weight:normal;}Can be combined into:H1, H2, h3{font-family:arial, Helvetica, Sans-serif; font-weight:normal;}6. Appropriate code commentsCode comments can make the structure clearer by making it easier for others to read your code, and to organize code annotations appropriately. You c
Interface address cleanup clears the next hop route issued from this interfaceExample: Eth7 configuration two AddressEth7:192.168.1.110.1.1.1Add a route:Route add-net 2.2.2.0/24 GW 10.1.1.254Then delete the address on the Eth710.1.1.1Check the routing table, the next hop 10.1.1.254 is still~ # IP Route Show All2.2.2.0/24 via 10.1.1.254 Dev Eth7Linux is not very reasonable to handle this, should be automatically deleted better.All Linux interface addresses are cleared to
Page 1 of 2The first tutorial concentrate on creating a basic interceptor, but useful in a typical Web application.This is very common, developer wants to restrict the browser to cache rendered pages. And the the-the-the-used to achieve are having code similar to the following mostly in the JSP pages to prevent caching. Either we have this code in all the JSPs pages or more friendly A-common JSP page where we have this code an D include it in all the main JSP pages. If we are using a tiles or an
Free-m This command everyone should be very familiar with 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M00/71/05/ Wkiol1xehcoysuqsaad999129o4731.jpg "title=" http://lingjing.blog.51cto.com "alt=" Wkiol1xehcoysuqsaad999129o4731.jpg "/>System real memory We need to look at the second line because some of the caches haven't been released yet.How Linux memory can be used: Available memory =free+buffers+cachedTo manually release the Linux cache:
Free-m
Sync (must be before the thir
/* Excerpt from a front-end public number If there is a similarity, purely coincidental */function init (arguments) { return new Promise (checkforargument);} function Checkforargument (resolve, Reject) { try{ if (arguments) { return resolve (TRUE); } Return resolve (FALSE); } catch (e) { reject (e); }} function Evaluateres (res) { if (res) { dosomethingelse (); } else{ dosomething (); }} function HandleError (e) { logE
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.