var start = new Date; SetTimeout (function () { var end = new Date; console.log (' end~~~ ', End-start, ' Ms '); },0); while (new Date-start if (new Date-start = = 3999) console.log (' End ') } Start timing after running settimeout, and put the callback function at the end of the delay event queue. After all the synchronous JS events are completed, the settimeout callback function is executed, even if the SetTimeout setting event is less than the event run by the synchronization event, the
Dandelion Application Publishing platform you can choose to publish the app here for everyone to use a pity or a certificate
Swift free video website
Icon material download, because it is foreign website open a little slow
Image recognition third-party library Tesseract-ios recommendations
Wang Wei the great God's swift tips
Optioalswift Team Blog
View Frame Controls
UITableView Optimization Tips
Book recommendations
Pictures are free to find
General steps to build a MAVEN Web project using Jenkins 1 jekins from SVN pull replacement code 2 Deploying the project to the Tomcat container using Apache Tomcat Maven Plugin Specific configuration Procedures 1 New Task Enter an item name, select "Build a free-style software project", click OK2 Configuring source Management Select Subversion in source management and fill in the SVN address to build MAVEN Web project3 Configuration Build In the build, click Add Build Step and select ' Invoke
System settings are primarily used to configure some global settings paths, such as1 JDK2 Ant3 Maven4 Mailetc....Click "System Management" in the Jenkins left menu and click "System Settings" on the System administration page to enter the system settings.1 JDKClick on the "JDK" Install buttonUncheck "Auto Install"Fill in aliases and java_home2 AntSimilar JDK configuration3 MavenSimilar JDK configurationNote1 with MAVEN configuration You can also specify the location of the Setting.xml4 MailSet
ConnectionP PipeFile propertiesDr-xr-xr-x. 2 root root 4096 April 06:51 Binbelongs to the owning group other people two directories or the same inode (subdirectory) that belongs to the group size created or changedFile permissionsRead r 4Write w 2Perform x 1Modify file PermissionschmodR=4 w=2 X=1Rwx=7 r-x=5 r--=4--x=1chmod 744 test.cchmod u=rwx,g=r--, o=r--test.cchmod u-x test.cchmod u+x,g+w,o-r test.cchmod a+r test.c AllChmod-r the ABC sub-file inheritanceFile default PermissionsThe Umask
the operating system is taken out of the shared code snippet, which can be accessed directly by users of the lower privileged level.typically these shared codes are "not access" protected resources and certain types of exception handling. For example, some mathematical function libraries, for purely mathematical calculations, are used as a consistent code segment.Restrictions on consistent code snippets1. Privileged programs do not allow access to low-privileged data: The core State does not al
Some commands are very common, but a period of time not to forget, the daily use of the collation down, the specific parameters used to write.
View Image: Display
View File contents: Cat/tail
View process: PSKill process: Kill
Find: Find
Vim Editor:Command mode:I enter insert modeCC changes the entire line to clear the entire line:. D Delete When moving forward: m,nd Delete line m to nth row: W Save: Q Quit Vim: q! Force exitIn the Insert mode:ESC key to exit insert mode
Git
Some of the commonly used Linux commands in a job test are:1. Find large filesfind . -type f-size +100m2. Delete all the. svn files under the sub-folderFind " . SVN "| Xargs RM -RF;Or:Find " . SVN " RM3. Batch Dos2unixfind . -type f-exec Dos2unix {} \;4. Using the input redirection feature, in the shell script, enter a sequence of operations into the command-line interface such as MySQL, Sqlite3, and so on:ems_hss_db="sqlite3/var/ems/hss/32/database.db"ems_hss_db_sql=" Update profile_config Set
to the first name The above command resolves the kernel removal failure and updates the issue.2.ubuntu14.04 unable to identify hard disk EXFAT partitionWhy use the exFAT format? There are two main reasons for this:1. The three major major operating systems (Linux, MAC, Windows) support the EXFAT format.2. exFAT supports files larger than 4G.Under Ubuntu, due to copyright reasons (said), the default does not support the EXFAT format of the U disk, but it is convenient to add support for exFAT:1
. (Chenhao Note: I like to use: N to the next file)
ng→ to Nth Line (Chenhao Note: Note that the G in the command is uppercase, and I generally use: N to nth rows, such as: 137 To line 137th)
gg→ to the first line. (Chenhao Note: equivalent to 1G, or: 1)
g→ to the last line.
: SP divides the current file into two columns (the same file is displayed in column two, which facilitates long file editing)
: Vnew vertical column, divided into left and right columns, and creates a new
An array of integers has a positive negative, in which an array of contiguous sub-arrays is found,Requires the and maximum of each element in the contiguous subarray, which is called the maximal contiguous subarray.For example, the maximum contiguous subarray of array {2,4,-7,5,2,-1,2,-4,3} is {5,2,-1,2}, and the maximum contiguous subarray is 5+2-1+2=8.The question input is an array that outputs the maximum and the "contiguous Subarray" of the array.Solution:Sets a variable sum as the summation
between JSP and servlet, the common denominator, and the scope of their respective applicationsAnswer: JSPs are essentially servlets, but they are not created the same way. The servlet is completely Java program code composition, good at process control and transaction processing, It is not intuitive to generate dynamic Web pages through Servlets. JSP is made up of HTML code and JSP tags, which makes it easy to write dynamic Web pages. Therefore, the servlet is used to control the business proc
overloaded overloading of a method are different manifestations of Java polymorphism. Overriding overriding is a representation of polymorphism between a parent class and a subclass, and overloading overloading is a representation of polymorphism in a class. If you define a method in a subclass that has the same name and arguments as its parent class, we say that the method is overridden (overriding). When an object of a subclass uses this method, the definition in the subclass is called, and f
with LibreOffice,WPS responsible for text, form, demo LibreOffice responsible flowchartHowever, WPS does not support 64-bit and requires 32-bit support, but Ubuntu14.04 now cancels the 32-bit support package.Tangled, you need to add 12.04 of the software source, and then force the installation of Ia32-libs, as follows:Sudo-iCd/etc/apt/sources.list.decho "Deb http://archive.ubuntu.com/ubuntu/raring main restricted universe Multiverse" > Ia32-libs-raring.listApt-get UpdateApt-get Install Ia32-lib
1. String Qiatouquwei #,%For example:X=aabbaarealwwvvwwecho "${x%w*w}"Aabbaarealwwvvecho "${x%%w*w}"Aabbaarealecho "${x# #a *a}"Lwwvvwwecho "${x#a*a}"BbaarealwwvvwwWhere, # means pinch the head, because on the keyboard # on the left.Where,% is said to go to the tail, because on the keyboard% on the right.A single represents the minimum match, and the two represent the maximum match. That is, when there are multiple scenarios for matching, select the maximum length or minimum length to match.2. I
In fact, the installation of this teamcity is very simple, but in the Internet to find a lot, no one to write about this aspect of the installation, Daniel do not spray, I want to use this simple little article to help more novice on the roadThe teamcity path downloaded in this article is/usr/local/src/# cd/usr/local/src/teamcity#./bin/teamcity-server.sh StartShown below:Using catalina_base:/usr/local/src/teamcityUsing Catalina_home:/usr/local/src/teamcityUsing Catalina_tmpdir:/usr/local/src/tea
file read and write, execute permissions, the more underlying property control is changed by the chattr.chattr [+-=][asacdistu] [file or directory name]I he can make a file cannot be deleted, renamed, set the link also cannot write or add data! Great help for system security!a allows a file to append data to it, but cannot be deleted, for various log files :Example 1:Chattr +i/etc/shadow Add the "i" implicit attribute, you cannot change the file.Chattr-i/etc/shadow Release the "I" as a recessiv
1, Python does not have an array, but the list is like an array; a Python tuple (tuple) is similar to a list, but the elements of a tuple cannot be modified;The list uses square brackets, and tuples use parentheses, in fact, you can think of tuples as read-only lists;In Python, empty string "", 0, empty list [], empty Dictionary {}, empty tuple () are equivalent to False2. Use of the%s operator3. Regular match (re regular expression module)In the string, each backslash is written in \ \, for exa
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.