Copy common tools for search
---------- String
Ext. util. format. capitalize (string Str); // uppercase the first letter.
Ext. util. format. ellipsis (string value, number length); // truncates a specified length character. The ellipsis '...' is automatically added to the end '...'
Ext.util.format.html encode (string value); // encode the text
Lowercase (string value); // small write
Stripscripts (mixed val
Because the xtrabackup version installed on the server is relatively old and does not support hot backup of mysql 5.7, you need to upgrade the version or deploy version 2.4.1 on the new server. Here we download the latest https://www.percona.com/downloads/XtraBackup/ 2.4.4 Tools, install and back up mysql 5.7.1. Install XtraBackup. I will not explain it here. The previous article will introduce how to install it. The following describes
1.. NET Reflector of the Anti-compilation tool2. JS Check toolReSharper 8.0.14.856 Official original + registration machineJScript Editor Extensions jsenhancements, let JS and CSS also foldJavascript ParserJsoutliningJavascript (for free)1, jsenhancements: Folding js and CSS Code2. Chutzpah-a Javascript Test runner:js Unit Test Tool3. Wijmo Open: A set of controls built with jQueryUI that contains commonly used calendar controls, dialogs, forms, lists, menus, and more.4. JScript Editor Extensio
supportedNs_export_excelformula= error code \:1110 Export Exel does not support this formulaNs_export_excelhtml= Error code \:1111 exporting Excel does not support partial tags in htmlNs_export_wordpagesize= error code \:1114 Export Word does not support different page settings under multiple sheetNs_mail_config= error code \:1204 message configuration parameter is incorrectns_print_flashpapersetting= error code \:1118 Flash printing does not support passing page settings to the printerNs_print
1 using the TESTNG framework for unit testing of the web without having to start tomcat every time@ContextConfiguration (locations={"Application-context.xml"}) @TransactionConfiguration (Defaultrollback = True) public class Testsafety extends Abstracttestngspringcontexttests {@AutowiredSafetyStockJob safetystockjob;@ testpublic void Test1 () {list2 using the spring-provided unit test plug-in@RunWith (Springjunit4classrunner.class) @ContextConfiguration ({"Classpath:applicationContext.xml"}) publ
Common tools in the bin directory under the JDK installation directory:1. compilation toolJavac2. Running toolsJava3. compression toolsJar4. Document generation toolsJavadoc5. character encoding and conversion toolsNative2ascii
1. Compile the command:1. Compile a fileUnder the directory, enter javac a. javaCompile multiple files (using spaces in the middle ):(1) javac a. java B. java c. java(2) javac *. jav
"]') model.xpath (' div[@class = "box box-2 box-4 mt17"])To match the target, which may be due to the fact that the XPath itself is designed with the exact match of the class name to determine the target, even more than one space:A label on the page is written like this: Model.xpath ('//a[@class = "DD"])Dead and Alive match not (at that time really is pretty confused forced), must be in the back with a space, but in the JS console a.dd This class selector can also be targeted to target, and Bea
to use shortcut keysCMD + N: New fileCMD + [: Left IndentCMD +]: Right IndentCMD + B: CompileCMD + SHIFT + K: Cleanupcommand-← move to the beginning of the linecommand-→ move to end of lineCommand + A: Select AllCommand + C: CopyCommand + V: PasteCommand + X: CutCommand + Z: UndoCommand + F: SearchCommand + R: Run5. Use plugins to improve your programming efficiency6. Non-ARC Remember configuration-fno-objc-arc7. Network needs to be configuredXcode7.0 the above version must be operated: HTTPS H
Because the following operations are command operations, make sure that the environment variable android_home points to the correct path to the ANDROID SDK before doing the following:Launch Android SDK Manager:AndroidTo start Android Device Monitor:MonitorStart UI Automator Viewer:UiautomatorviewerSometimes when you start the UI Automator viewer fails, it will prompt "unexpected error while parsing input invalid Uiautomator hierarchy file", forgetting ... Specific what reason, temporarily unknow
++ }; }; if (num > 0) {Console.log ("There is this element, it appears" + num + "Times")} else {Console.log ("Without this element") }; }; var c = [0, 1, 2, 3, 4, 5, 2, 5, 1, 2, 3];FC (2, C);//With this element, it appears 3 times //To find the maximum value in an array. function fd (arr) {var num = arr [0];For (var i = 1; i if (num num = num ^ arr [i];arr [i] = num ^ arr [i];num = num ^ arr [i]; }; };console.log (num); };var d=[0
In the company project or personal site often there is a need, that is, at the bottom of the site to add some of their favorite social contacts, such as QQ, Weibo, Twitter and so on, if the traditional transduction way to make these icons will have two drawbacks:1. Front-end engineers may not understand the art transduction related technology, and some small companies do not have the art of this position, so that their own material will be very troublesome2. Traditional pictures can not flexibly
row, note the single quoteSed'/pattern/a some text 'Filenamesed' ADDRESS i some text 'FileName//INSERT, inserting a row before matching rowsSed'/pattern/i some text 'Filenamesed' ADDRESS c some text 'FileName//Replace matching rowsSed' PATTERN c some text 'Filenamesed- N ' ADDRESS '=FileName//print matching line numbers, accept only one address, if you print multiple lines using {}, as followsSed- N ' address,/pattern/{=p} 'FileNamesed Regular expression lookup and substitution:‘s‘The command s
allows you to securely transfer files between Unix/linux and Windows PCs.XLPD 4LPD print server for Windows XLPD 4 is an LPD (line Printer Daemon, row-printer daemon) software that runs on Ms Windows platforms. With XLPD 4, your printer becomes a print server through your local computer, providing printing services for a wide variety of remote systems on your network.
Sublime
EdrawEdraw Edraw Max is a comprehensive vector rendering software that allows you to easily and efficiently draw a v
turn green!6, runClick the Green Run button to view the results of the output:Ok,pycharm's first show, a successful end!Pycharm Tutorial (iv) Show line numbersIn Pycharm, there are two ways to display line numbers:1, temporary settings. Right-click the line number and select Show lines Numbers.However, this method is only valid for one file and disappears after restarting Pycharm.2, permanently set. File--and Settings-->editor-->appearance, then tick show line Numbers.Pycharm Tutorial (v) Break
-}Interested students can use the above code to run, you can see the first 10 threads do not consume time, can be directly obtained, the latter will be blocked (spend more and more time), returned to get a connection, because my connection license is set to 10, so the maximum number of concurrent each time is 10.Other methodsSemaphore also provides some other methods:
int availablepermits (): Returns the number of licenses currently available in this semaphore.
int getqueuelen
the integer to.Note:The range function has three parameter typesRANGE (to), default from 1,step is 1RANGE (from,to), the default step is 1RANGE (From,to,step), with reference to the above commentExample:RANGE (4) returns [1,2,3,4].RANGE (-5) returns [].RANGE ( -1,3) returns [ -1,0,1,2,3].RANGE (0,5) returns [0,1,2,3,4,5].RANGE (6,-1,-2) returns [6,4,2,0].RANGE (4,1,1) returns [].RemovearrayRemovearray (Array,start, DeleteCount): Removes the DeleteCount array element starting from the first elem
elements to the queue is "C", "A", "B", and the Order of removal is "a", "B", "C", which can be seen by the nature of its "precedence".SummarizeThis article introduces three commonly used tool classes, threadlocal is used to solve the problem of multi-threaded sharing the same variable, it is equivalent to creating a thread object as a key to the target object as a value of a map, but actually and map is different, For example, a map object does not garbage-reclaims the corresponding value afte
. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gz and. tgzDecompression: Tar zxvf FileName.tar.gzCompression: Tar zcvf FileName.tar.gz DirName———————————————. bz2Decompression 1:bzip2-d filename.bz2Decompression 2:BUNZIP2 filename.bz2Compression: Bzip2-z FileName. tar.bz2Unzip: Tar jxvf FileName.tar.bz2 or Tar–b
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.