Calculation method of ID card check code
1, the previous ID number 17 digits multiplied by different coefficients. The number of the I-bit corresponds to [2^ (18-i)]mod11. The coefficients from first to 17th are: 7 9 10 5 8 4 2 1 6 3 7 9 10 5-8 4 2;
2, the 17-digit numbers and coefficients multiplied by the result of the addition;
3, with added out and divided by 11, see the remainder is how much? ;
4. The surplus can only have 0 1 2 3 4 5 6 7 8 9
Android screens more and more as people demand for big-screen handsets
AutoLayout the previous framework for simply adapting screen pixels has a serious problem of distortion
Hongyang's AutoLayout project address has been discontinued.
Https://github.com/hongyangAndroid/AndroidAutoLayout
The following is a width-height ratio thumbnail
Distortion effect left for normal demand right for a full screen
Solution Modify Autolayoutconfig Init method
Match height to width only (AutoLayout inside
18 ways to help him concentrate on his work: Make a plan for the day's work and list the tasks that need to be done. Set aside time for colleagues who will interrupt your work in advance. Work in a separate period. Do it for a while, take a break, and don't bury yourself in the finish. Set up message filtering rules to handle only important messages. Do not deal with personal emails that are not related to work in the morning. Set up a good QQ or MSN
The ID number can be 15 digits or 18 digits, and the last one can be x. All the other figures are as follows:
The code is as follows
Copy Code
/^ (D{14}|d{17}) (d|[ XX]) $/
The beginning is a 14-bit or 17-digit number, and the end can be a number or an X or an X.
The test code is as follows:
code is as follows
copy code
(for example, schema name or host name change), but the working copy is still mapped to the same directory in the same warehouse.This command updates the working copy's correspondence with the warehouse. 17. Conflict Resolution SVN resolved: Removes the conflicting state of a working copy's directory or file.Usage: Resolved PATH ...Note: The notebook command does not resolve the conflict according to syntax or remove the conflict token; it simply removes the conflictingRelated files, and then a
example illustrates the calculation method.
The 15-digit ID Code First expands the year of birth to 4 digits, simply by adding a 19, but this is not used for people born in 1900 (the birthday is not much)
A male citizen ID number is 34052419800101001, first calculated according to the formula ⑴:
∑ (AIXWI) (mod 11) ..... ...... ...... ...... ...... ...... ...... (1)
Formula (1):
I----the number of digits from the to left including the check code;
AI----represents the number character value on
. Only a few browsers support outline properties, and all I know is Safari, OmniWeb, and opera.18. CSS Code writing style
In writing CSS code, for indentation, line breaks, spaces, everyone has the writing habits of everyone. After continuous practice, I decided to use the following writing style:Selector1,Selector2 {Property:value;}When working with federated definitions, I usually write each selector in a single line, so it's easy to find them in a
[4] = ' Shenhua ';echo "The 3rd User is: $customer[2]";echo "$number = 5;$x = 0;while ($x $customernumber = $x + 0;echo "Costumer Name $customernumber is $customer[$x]++$x;}?>will be displayed:The third customer is MutouAll Users:Costumer Name 0 is WEBJXCostumer Name 1 is webCostumer Name 2 is MutouCostumer Name 3 is ChuxiaCostumer Name 4 is Shenhua
Another way to read an array:
?echo "3 of my customer are: $customer[0],". "$customer[1] and". "$customer[2". "?>will be displayed:3 of my customer
Good color, to a large extent, determines the quality of a website design, reasonable choice of appropriate color collocation, with the purpose of web design, can more accurately convey the content of the website products and ideas, in addition to the usual use of the web design software accident, more grasp an online color test tool, will give you the work of a multiplier effect, save the cost of work. Here are 18 excellent online color test site too
face Test 18: substructure of the Tree (recursive)
Determine whether the binary tree B is a subtree of binary tree A.
Train of thought: Two steps: 1, recursive call Hassubtree first traverse a The value of the node in a and B's root node is the same, if there is, call Doestree1havetree2 to do the second step of judgment. 2, determine whether AB structure is the same, that is, the recursive judgment of the left and right nodes.
Java implementation:
p
23 Design Modes (18)-Memo mode
Definition: captures the internal state of an object without compromising encapsulation, and saves the state outside that object. This allows the object to be restored to its previously saved state.
Type: Behavior class
Class Diagram:
When we are programming, we often need to save the middle state of the object, and when necessary, we can revert to this state. For example, when we are programming with eclipse, if we w
Agile Web Development with Rails Translator (18)
The only interesting thing here is the code associated with the selection list. We have already assumed that the list of valid payment options is a property of the order model-it will be an array of an array in the model file. The first element of each sub-array is made into a string that is displayed as an option for the selection, and the second value is stored in the database. [If we expect the non-
Building a workflow designer using Silverlight (18)-Persisting data to database-server segment functionality implementation
17.3 Server-side code implementation
The function of the server side is to save the data to the database and retrieve the XML description file from the database to return to the client. This article uses the LINQ to Sqclasses method to manipulate the database. Add a LINQ class, as shown in the following illustration
Then add a
Slow-play Silverlight (18)-2.0 video of the detailed MediaElement, develop a simple version of the full function player
Introduced
Silverlight 2.0 detailed MediaElement: Develop a simple version of the full-featured player
MediaOpened-Events that are triggered when the media is successfully opened
MediaFailed-Events that are triggered when the media fails to open successfully
currentStateChanged-Events that are triggered when the playback state (
;Cachedb2>Select* fromdatapart;2, Guangzhou >6, Haikou >cachedb2> Insert intoDatapart VALUES (' S ', 8, ' Changsha ');In Oracle, you can see the newly inserted data from each TimesTenSQL> select * from datapart order by id; R ID CITY- ---------- --------------------N 1 BeijingS 2 GuangzhouE 3 ShanghaiW 4 ChengduN 5 QingdaoS 6 HaikouN 7 TianjingS 8 Changsha8 rows selected.Insert data in Oracle, and then each cache gro
[type]=' + LTrim(Rtrim(STR([type])))+ 'Then [All_price] Else 0 end as [type' + LTrim(Rtrim(STR([type])))+ 'Total Price]'5 from [ Cost] Group by [type]3) The sum value is grouped according to the column name (because the unit price cannot be summed, so use Max instead of sum)1 Select @sqlsumcol = Case @sqlsumcol when "' Then "' Else @sqlsumcol + ', ' End2 + 'max ([type' + LTrim(Rtrim(STR([type])))+ 'Unit Price]) As [unit Price],'3 + 'sum ([Type' + LTrim(Rtrim(STR([type])))+ 'dosage]) As [do
',@Cnocount INTOUTPUT--output parameters, sno number of courses selected asSelect @Cnocount = Count(SC. Cno) fromSC, StudentwhereSc. Sno=Student.sno andSc. Sno= @SnoGO--Execution--You must first declare!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Declare @Sno varchar(Ten)= '1513032087';Declare @Cnocount int;--after the declaration is executedEXECQueryById3@Sno,@CnocountOUTPUTSelect 'study number is' + @Sno + 'chose the' + Ltrim(STR(@Cnocount))+ 'Door Class' --strings also need to be processedGOii. ma
, but only if both query columns cannot be NULL, otherwise use not EXISTS. And the left JOIN ... Is NULL because it always does not skip the already matched value, but the way to return all result sets First and then filter, its inefficiency is conceivable.SummarizeIn this section we compare the not exists and not in and left joins: Is null performance, finally came to the three performance analysis conclusions, the next section we have determined to be the last of the final article comparison e
characters In fact, if the SQL statement is also a WHERE clause, the two tables follow-up will be detailed. Example 9: Querying employee numbers and names for wages greater than $1500 Select Empno,ename from emp where sal > 1500; Example : Query position is not "clerk" employee number and name Select Empno,ename from emp where job Example : Query employee information for payroll from 1500 to 2900 Select Empno,ename from emp where Sal between and 2900 Example : Query salary is 1500,3000
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.