create the msmtp log File ". msmtp. log", which is specified in. msmtprc. Note that "." indicates a hidden file and the content is blank.
$ sudo vim ~/.msmtp.log
Configure the msmtp Configuration File ". msmtprc"
#Accounts will inherit settings from this sectiondefaults# A first gmail addressaccount gmailhost smtp.gmail.comport 587from username@gmail.comuser username@gmail.compassword passwordtls_trust_file /etc/ssl/certs/ca-certificates.crt#
architecture, as long as it is renamed, making these concepts more acceptable.
Structure of the two-way binding link of aveon v3
// Viewmodel framework view // attribute accessors // composite accessors → the binder zookeeper Dom accessors zookeeper data bindings // set accessors/ /command restart
viewmodel is an object composed of accessors and commands. The accessor is the accessor, which is derived from Ruby's attr_accessor. It is a combination of attr_writer and attr_reader to read an
and last lines in the fileSed-e '$! {H; d;} '-e x # enter a blank line when there is only one row in the file.Sed-e '1 {$ q;} '-e' $! {H; d;} '-e x # This row is displayed when there is only one row in the file.Sed-e '1 {$ d;} '-e' $! {H; d;} '-e x # when there is only one row in the file, no output# Only display rows matching Regular Expressions (simulate "grep ")Sed-n'/regexp/P' # method 1Sed '/regexp /! D' # method 2# Show only the rows that do not match the regular expression (simulate "gre
[], Int32, stringsplitoptions)
Returns a string array containing the substrings in this string, separated by the elements of the specified Char array. parameter specifies the maximum number of substrings to return, and whether to return an empty array element.
String.Split (string[], Int32, stringsplitoptions)
Returns a string array containing the substrings in this string, separated by the elements of the specified string array. parameter specifies the maximum number of
command to display directly
Import OS Print (Os.system ("Ping www.baidu.com")) Os.environ
Get system environment variable (OS.PATH.ABSPATH) (path)
Returns the absolute path normalized by path
Import OS Print (Os.path.abspath (' hellow.py ')) () Os.path.split (path)
Partition path into directory and file name two tuples returned, does not determine whether the file or directory exists
Import OS Filename=r "C:\Users\SS\test.txt"
SERVICE1.AAA () and SERVICE2.BBB () to complete a business.At this point service1.aaa () service2.bbb () have transactions, then which of the transactions apply? The propagation behavior of the applied transaction.Propagation behavior of transactions: used to resolve calls between business layer methods and how transactions are passed.2. 7 propagation behaviors of a transaction (Class 3, key 1th)Descriptio
String class:1. for the Equality judgment of a string object, use the Equals () method instead of = =. The Equals () of string determines whether the current string is consistent with the contents of the passed-in string.2. string is a constant, and its object cannot be changed once it has been created. When using the + stitching string, a new string object is generated instead of appending content to the original string object.3. string pool is in stack memory.4. String s = "
operations are sent to the currently available writehost. 0 " writetype= "0" dbtype= "MySQL" dbdriver= "native" switchtype= "2" slavethreshold= ">"show slave status3 Basic SQL Operation validationLook directly at the insert operation of the log, the current data is directly into the 3306 port of the host.01/17 10:53:58.596 DEBUG [$_NIOREACTOR-1-RW] (serverqueryhandler.java:56)-serverconnection [Id=1, Schema=TESTDB, host =0:0:0:0:0:0:0:1, User=test,txisolation=3, Autocommit=true, Schema=testdb]
this method in each class in theForObjectClass ofequals ()method, it is the judgment callequals ()The reference to the method and the incoming citationUse consistency, that is, whether the two references point to the same object. ForObjectClass ofequals ()Partymethod, it is equivalent to==。A .ForStringClass ofequals ()method, it is the content that determines the current string and the string passed inare consistent.25. For the equality judgment of a String object, use the Equals () method inst
.button1click (Sender:tobject);varJ:tjsonobject;beginJ: = Tjsonobject.create; J.addpair (' AA ',' 111 '); J.addpair (' BB ',' 222 ');//Output stringMemo1.text: = j.tostring;//Result: {"AA": "111", "BB": "222"}{ToJSON is the same as ToString, but should try to use ToString instead of ToJSON, because ToJSON is also calling ToString and reallocating memory}J.free;End;//tjsonarrayprocedureTform1.button2click (Sender:tobject);varA:tjsonarray;beginA: = Tjsonarray.create; A.add (1);//tjsonarray is not
The two look very much alike.Functions declaration: Function Function name () {}Functional Expressions: Function name (writable and not writable) () {}: Named function expression/anonymous function expressionFor a few examples:function aaa () {}: Functions declarationvar a=function aaa () {}: named function expressionvar a = function () {}: an anonymous function expression;(function
red. Because the number of bytes returned by the first query exceeds max_length_for_sort_data, the sorting adopts regular sorting. in this case, MYSQL sorts rowid and converts random IO to sequential IO, therefore, the return value is 5 before and 6 after, while the second query uses optimized sorting, without the second data retrieval process, keeping the relative position of the record after sorting. If you want to optimize the sorting of the first statement, set max_length_for_sort_data to a
) if the object is created with new, The Destructor is automatically called when you delete it.
Syntax: no return type, no parameter, function name is added before class name "~ "
Code:
class X { public: X() { } ~X() { } };
Note:
1. Why should I define a destructor as a virtual function?Because: virtual functions are designed to support polymorphism ,... Add later
Problems encountered
# Include
Using namespace std; class
First of all declare: Database master Please go away, you saw an eyesore ah.
Sometimes when the query, Ah, a field in, and not in simply can not meet the requirements, very much like more than one field in the, not in, but many databases do not support more than one field in the, not in (DB2 is supported), it is estimated that many friends are depressed bar! But it doesn't matter, I do not write the article, hehe.
I used the database has Access,sql server,db2, laughed at AH. In fact also on th
": "222"} {ToJSON is the same as ToString, but should use ToString instead of ToJSON if possible, because ToJSON is also calling ToString and reallocating memory}J.free; EndTjsonarray procedure Tform1.button2click (sender:tobject); var A:tjsonarray; Begin A: = Tjsonarray.create; A.add (1); Tjsonarray is not like a traditional array, it can accept several different types of values, which should be considered as an extension of the Delphi array function. A.add (2); A.add ('
match multiple times
{N ,}?
Lazy match N-multiple times
{M, n }?
Lazy Match m-N times
Quantifiers:
Posite Word Table:
Syntax
Description
? +
Occupy matching 0-1 times
++
Possession Matching 1-multiple times
* +
Possession matches 0-multiple times
{N} +
Possession matching multiple times
{N ,}+
Possession match N-multiple times
{M, n} +
Occupy M-N times
Ex
has been created. When you use the + sign to stitch a string, a new string object is automatically generated instead of appending content to the original string object.7.String Pool (string pooling):8.String s = "AAA";1) Look for the "AAA" object in the string pool, if it does not exist, create an "AAA" object in the string pool, and then return the address of t
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.