yii2.0 Framework is a relatively efficient PHP development framework, the collection of the author's efforts, the following through the user as an example of the YII2.0 Advanced Framework database additions and deletions of some of the operations----
One, the relatively low thread poolimport queue,time,threadingclass My_theading_pool (object): Def __init__ ( Self,num =: Self.queue = queue. Queue (num) #在类中分装一个队列, up to a maximum of $ A in range (num): Self.queue.put (Threading. Thread)
In this way, less thin configuration items are not many spring uses automatic scanning configuration, spring_springmvc.xml, hibernate_config.xml two filesThe Web. XML is configured as sprin Gmvcdispatcher
Today, developers have asked me: "The code is not connected to the database occurs." After understanding some basic situations, I hope to get the clue of the problem by viewing the listening log. The first is to determine the storage path of the
Get disk size//Get Hard disk size+(cgfloat) getdisksize{nsstring*libpath = [Nssearchpathfordirectoriesindomains (nslibrarydirectory, Nsuserdomainmask, YES) ObjectAtIndex:0]; NSLog (@"%@", LibPath); //Initialize File ManagerNsfilemanager *manager
1. Agile processes are, as the name implies, a collection of values and methodologies, the principles of agile development are:1> deliver valuable software early and consistently to meet customer needs2> Agile Processes welcome changes in demand and
Statement format:for (expression 1; expression 2; expression 3){Loop body}Expression 1: An assignment expression used to assign an initial value to a control variable.Expression 2: The logical expression is the control condition of the loop, which
15th Week
Time spent (including classes)
36H
Code Amount (line)
2000
Blog Volume (article)
8
Knowledge learned
1. This week has been studying the same kind of procedure
State mode allows an object to change its behavior when the internal state changes, and the object looks as if it has modified its class. Because this pattern encapsulates the state as a separate class and delegates the action to an object
Sub AA () Dim I as Integer i=2Dim J as Integer for J=1To -I=2Worksheets.add After:=worksheets ("Sheet1") Activesheet.name=CStr (j) Sheets (CStr (j)). Cells (i,5) =J Sheets (CStr (j)). Cells (i,1) ="name"Sheets (CStr (j)). Cells (i,2) =
Being led to spit it out. How do I learn the regular expression in the middle of the night? I can't live up to my leaders ' expectations.What is a regular expression?In layman's words, a regular expression is a look-up and string substitution
"Bower_components", "Node_modules" This folder, as a module to refer to the file, do not need to download the local encoding, there is a lot of files here, if you do not remove the two folders out of the word, through the xftp download all the files
The use of prefixes and M-bands is equivalent to the number of selected mStarting from the highest bit, if this bit has at least M 0, then it can be 0, the bit is 1 after the selection is not possible.Also note that the last number if the bit is 1,
In the policy mode (strategy pattern), the behavior of a class or its algorithm can be changed at run time. This type of design pattern belongs to the behavioral pattern.In the policy mode, we create objects that represent various policies and a
Prototype mode (PROTOTYPE) definitionUse the prototype instance to specify the kind of object to create and create a new object by copying the prototypes.UML Structure diagram Shallow copyProtoType
No matter what the drag is always done, I feel that my procrastination seems to be meaningless waste of time, my procrastination squeeze out of the time is doing what, this really let me reflect on. Okay, go ahead and read the code encyclopedia, I'm
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service