I am doing an entrepreneurial social networking site, financing strategy has been done, but always can not recruit a good PHP master, feel the start-up enterprises are very suppressed, feel it is not a good mix of the IT circle.
Reply content:You think it's worth 2W of programmers, maybe now holding a 3W salary.
The programmer who thinks he is worth 2W, I guess you can't see it again.
in the computer, use BITS to store information. The same bit-level representation, changing the way it is interpreted, expresses different information. 0. XOR in bit-level operationsA bit-level operation should be noted that the difference or this operation, the meaning of X^y is: for the first bit, x, y in the I-bit value is not the same, the result is 1; this means that, on the I bit, x, Y has only one 1 o'clock, the result is 1, there is only one 0 o'clock, the result is 1; The result is 0;
machine-level programs is to manually convert the decimal, binary, and hexadecimal representations of the in-place mode.When n is expressed in the form of i + 4 J, where 0≤i≤3, we can write X as the beginning of the hexadecimal number 1 (i = 0), 2 (i = 1), 4 (i=2) or 8 (i=3)4. Each computer has a word size, which indicates the nominal size of the integer and pointer data (nominal size). Because the virtual address is encoded in one of these words, the most important system parameter that the wo
* (24) 2, then 2048 = 0x800.Then, for any decimal number d = 2n + Q,n = k + 4m, (K For example: 2067 = 2048 + 0x800 = 0x813.Second, integer representation1. Encoding of unsigned integersUint = xw-12w-1 + xw-22w-2 + ... + X020, unsigned integers encoded as W bits, Xi denotes the value of the bit I (0 or 1), 2i represents the weighted value of the I-bitThe range of unsigned integers that can be represented is 0 ~ 2w-12. Encoding of signed integersTint
correspond to them and | The second important difference between the two is if the firstParameter evaluation can determine the result of an expression, then the logical operator does not evaluate the second parameter.Shift operations in C: the C language standard does not explicitly define which kind of right-shift should be used. For unsigned data, the right shift must be logicalX1. Integer data typeBoth C and C + + support signed and unsigned numbers by default, and Java supports only signed
2.3 Integer Arithmetic 2.31 unsigned additionThe addition of unsigned numbers, in general there are rules: for the two W-bit unsigned number x, y Add, if x + y For overflow there is: s = x + y-2w, because X, Y is obviously less than 2w, then S = x + (y-2w) or S = y + (x-2w), obviously y plus a negative number of course
, but not always so, after all, LZ only heard the floating-point arithmetic standard, have not heard of the integer arithmetic standard, do not know what is LZ ignorant, There is no such thing.
Because of this, we understand that the abstraction of these operations can help us understand what the program code level does not understand.
unsigned multiplication
Unsigned multiplication is similar to addition, its operation is relatively simple, but it can also produce overflow. For unsigned number
discuss the abstract mathematical characteristics of operations, abstract things are always reliable, this feature for cross-platform provides the basis, but not always so, after all, LZ only heard the floating-point arithmetic standard, have not heard of the integer arithmetic standard, do not know what is LZ ignorant, There is no such thing.Because of this, we understand that the abstraction of these operations can help us understand what the program code level does not understand.unsigned mu
; stream aggregation-> computing vectorDECLARE @ COUNT INTSELECT @ COUNT = COUNT (*) FROM CHECK2_T1 WHERE C1 = 'c1' -- 1 w Data RecordsIF @ COUNT> 0BEGINPRINT's'END---- Test 2: (0 s) Execution Plan: constant scan/table scan-> nested loop-> calculate scalarIf exists (SELECT 1 FROM CHECK2_T1 WHERE C1 = 'c1') -- 1 w Data RecordsBEGINPRINT's'END-- Conclusion: use Exist to determine whether the table exists. It is not necessary to use COUNT (*) to COUNT all records of the table and scan it once.-- ==
, but with high accuracyFloating-point number: Encodes a larger range of numbers, but this representation is nearStorage of information:hexadecimal, binary, decimal conversion: learned.Word: The computer has a word size, which indicates the nominal size of the integer and pointer data (nominal size). Because the virtual address is encoded in one of these words, the most important system parameter that the word length determines is the maximum size of the virtual address space. That is, for a ma
, Recursive Code: (interpretation of the classic code) for (int i=0; ii ) for (int j=w; jj ) = min (dp[j],dp[j-w]+p);2. Space optimization:Only with Dp[v], the state transition is: Dp[v]=min (Dp[v-k*w[i]] + k*p[i]), the first time loop, Dp[i][v] only rely on the state of Dp[i-1][v], the previous dp[0...i-1,v] are useless, the final output U is also in the DP [][v] to find results, so do not save these states. This requires saving two dp[0][v], Dp[1][v] to replace the two variable
Install Mysqlclient on Mac encountered some problems, find data many people have encountered the same problem. Through the data and experiments, succeeded. Here is a record of the hope to help people who have met the same problem.I use Python3, the installation steps are as follows:Install mysql-connector-Install mysqlclientAn error occurred while executing PIP3 install Mysqlclient:? /usr/local/cellar/mysql-connector-c/6.1. One/bin GT;PIP3Installmysqlclientcollecting mysqlclient Using Cached Mys
field and not the partition field.
SQL
Sql
SET foreign_key_checks=0;
------------------------------
--table structure for ' user '
------------------------------
DROP table IF EXISTS ' user ';
CREATE TABLE ' user ' (
' id ' varchar (255) NOT NULL,
' name ' varchar (255) DEFAULT NULL,
' password ' varchar (255) D Efault null,
' phone ' varchar (255) default NULL,
' post ' varchar (255) default NULL,
PRIMARY KEY (' id '),
KEY ' id ' (' id ')
Engine=innodb DEFAULT Charset=utf8;
--
Count (*)
DBCC dropcleanbuffers
DBCC Freeproccache
----Test One: (7s) Execution plan: Table scan-> flow polymerization-> compute vector
DECLARE @COUNT INT
SELECT @COUNT =count (*) from check2_t1 WHERE c1= ' C1 '--1w strip data
IF @COUNT >0
BEGIN
PRINT ' S '
End
----test two: (0s) execution plan: Constant scan/table scan-> nested loops-> COMPUTE scalar
IF EXISTS (SELECT 1 from check2_t1 WHERE c1= ' C1 ')--1w bar data
BEGIN
PRINT ' S '
End
--Summary: To determine whether there
With IMAP recently, there's a problem that feels tricky:
If there are 2W e-mail accounts, to get a subject from the 20,000 email account of the mail, with IMAP can get to a topic of mail, but 2W account to return 2W mail, to constantly open the closed stream, so it seems easy to crash, even if not crash script to run for a long time, Does the great God have any g
. To complete this task, you can use-dFlag basedFDColumn to filter, use-aSign indicates that both parameters must meet (and ). If no-aBy default, the file that matches any parameter (OR) is displayed. Listing 2 showssendmailProcesses open files and use TXT to filter these files.
List 2. lsof output with PID filter and TXT file descriptor Filtering
sh-3.00# lsof -a -p 605 -d ^txtCOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEsendmail 605 root cwd VDIR 136,8 1024 2
DF View root directory full disk space [[emailprotected] logs]# DF File System 1k-block used available% mount point /dev/sda2 41284928 0 Span style= "FONT-SIZE:14PX;" > 41284928 100%/ tmpfs 1962324 0 1962324 0%/DEV/SHM /dev/sda1 516040 59236 430592 13%/boot /dev/sda5 1542096 35072 1428688 3%/data View space consumption in the root directory, accounting for only 10GConjecture should not free up space after deleting filesUse lsof|grep deletedYou can see the files with a bunch o
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.