Python note (8): web development and python note web development
# In Windows, two more things should be set for Unix systems.
(1)Design web applications with MVC
Model-view-controlle)
Model: code for storing web Application Data
View: Format and display the code on the web Application User Interface
Controller: code that binds web applications and provides busi
Code note (8): Code note
1.
Find the deadlock process:
Select s.username,I.OBJECT_ID,I.SESSION_ID,s.SERIAL#,I.ORACLE_USERNAME,I.OS_USER_NAME,I.PROCESS FROM V$LOCKED_OBJECT I,V$SESSION S WHERE I.SESSION_ID=S.SID;
Kill the deadlock process:
Alter system kill session 'sid. serial # '; (sid = I. session_id)
If the problem persists,
Select pro.spid from V$SESSIO
higher than the two sides. This is also a kind of typical diagram, called pulse (Impulse). It can be seen that median filtering is very effective for impulse noise.
Combined with the above three class diagram, it is not difficult to draw the following conclusions: Median filtering is easy to remove outliers, line noise while maintaining the edge of the image, it can be very good to remove the binary noise, but the Gaussian noise is powerless. It is important to
(), people)) Time.sleep (1) Print("%s Small pot-eating partner-Fish ball:%s"%(Time.ctime (), people))classMyThread (Threading. Thread):#inherits the parent class threading. Thread def __init__(self, people, name):" "rewrite threading. Thread initialization Content" "Threading. Thread.__init__(self) self.threadname=name Self.people=peopledefRun (self):#write the code you want to execute into the run function. The thread runs the run function directly after it is created " "overridin
Plan to complete this note in the following order:1. Philosophy.2. Attribute copying and inheritance.3. This/call/apply.4. Closure/getter/setter.5. prototype.6. Object-oriented simulation.7. The basic mechanism of jquery.8. jquery Selector.9. jquery Tool method.Jquery-expands at the "class" level.Jquery-is expanded at the "object" level.jquery-extension Selector.JQuery UI.14. Extend the jquery UI.This is th
root root 0 10-28 14:48 log2012.log-rw-r--r--1 root root 0 10-28 16:01 log2013.log-rw-r--r--1 root root 0 10-28 14:48 log.log[Email protected] test]# touch-t 201211142234.50 log.log[email protected] test]# LL-rw-r--r--1 root root 0 10-28 14:48 log2012.log-rw-r--r--1 root root 0 10-28 16:01 log2013.log-rw-r--r--1 root root 0 2012-11-14 log.logDescription-T time uses the value specified as a new value for the corresponding time stamp of the specified file. The time specified here is a decimal num
Other common commandscd+ return = carriage return ~ Enter the current user home directoryTo view the specified process information#ps-ef |grep Process Name#ps---to see your own processes#ps-aux View the execution process for all usersChange to Ps-aus | LESS-MN View-by-article processCTRL +f Move one screen forwardCTRL +b one screen backwards#ps-el |grep Init process name#ps the physical memory occupied by the AUXW--sort=rss RCS process#ps AUXW--SORT=%CPU CPU load sequencingKill-9 process number
Behavioral parameterization, a software development model that handles frequently changing requirements. Principle: After writing similar code, try to abstract it.Method 1: Add parameters to the method.Method 2: Define a family of algorithms, encapsulate them (called "policies"), and then select an algorithm at run time.Behavioral parameterization: Allow methods to accept multiple behaviors (or strategies) as parameters and use them internally to accomplish different behaviors.Strategy Patternis
Tags: style using strong SP on line BS size2014-10-13 10:32:12target : store Multi-valued propertiesanti-pattern : Create multiple columns. For example, a person has multiple phone numbers, landline numbers, mobile phone numbers and so on. 1, query: Multiple columns, query may have to use in, or more or;2, add, delete to ensure uniqueness, determine whether there are values: these are very troublesome;3. The number of columns in the field cannot be determined.how to recognize anti-patterns :
try to obtain the length of the database name, enter:1 ' and Length (database ()) =1 # hint does not exist1 ' and Length (database ()) =2 # hint does not exist1 ' and Length (database ()) =3 # hint does not exist1 ' and Length (database ()) =4 # hint existsSo we know the length of the database name is 4, followed by guessing the database name, in the first character as an example, enter:1 ' and ASCII (substr (databse ()) >97 # The first character has an ASCII value greater than 97 (i.e. lowerca
content);//query out the first data and replace//Modifying Data//Document query = new document (); //query.put ("Age", 28); //Document update = new document (); //Document D = new document (); //d.put ("Birthday", New Date ()); //d.put ("name", "Zhangsan"); //update.put ("$set", D); //mongocollection.updateone (query, update);//Modify the first piece of data to be queried//mongocollection.updatemany (query condition, modify content);//Modify all the data that is queried//Delete Data//Document q
Reprint Please specify source: http://www.cnblogs.com/ymingjingr/p/4271742.htmlDirectory machine Learning Cornerstone Note When you can use machine learning (1) Machine learning Cornerstone Note 2--When you can use machine learning (2) Machine learning Cornerstone Note 3--When you can use machine learning (3) (modified version) machine learning Cornerstone Notes
inverted, that is, the large number in front. Just like the "Mo" character Unicode code 0X83AB, press big endian to become 0xab83.BOM (Byte Order Mark):Because of the problem of byte order in Unicode storage, inserting a non-existent character (ZERO WIDTH no-break SPACE) in front of the Unicode text is used as a flag to distinguish between the two kinds of byte-order. The sign 0xFEFF description presses the big Endian byte order, while the 0xFFFE description Little-endian.The UTF-
P129 Zhou Zhihua)Note 2: Note the correspondence between the parameters C and λ: C is positively correlated with (1/λ).8.2 Large Margin IntuitionAccording to the cost function in 8.1, in order to minimize the cost function, a conclusion is made:Now suppose that C is large (like c=100000), in order to minimize the cost function, we want toSo the cost function becomes:So the question becomes:The final optimi
-position:Center; the Background-color:Red; - } - style> - Body> + DivID= "Picture"> - + Div> A Body> at HTML>View CodeIf you want to remove duplicate attributes, or control their repetition in x or y direction, you can use background-repeat:no-repeat in ;Repeat-x; Fill in the horizontal directionRepeat-y; Fill in vertical directionThe effect is as follows:Four, in general, the background image from the top left corner of the shop, using the Background-position property can
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.