Lua study notes 9: Multi-file, lua study notes 9
Execute multiple files in a terminal:-l
Add a variable defined in file 1 and output the variable in another file. The Code is as follows:
--file1.luanum = 100
--file2.luaprint(num)
Terminal input (Note: it is not the lua command line ):
lua -lfile1 -lfile2
Note: Do not add the file suffix. lua
Load files in command line
--lib.luafunction norm(x, y) l
SQL Study Notes (21) ---------- add Foreign keys and Study Notes ----------
I have been busy with exams recently! As soon as I saw the exam, I was covered! Completely blank brain, uncontrolled, coupled with abnormal invigilators, let alone how painful it is. Fortunately, after successfully completing the test, I took some time out to learn about MySQL and Oracle and found some problems, which seemed very se
Mongodb Study Notes 01 and mongodb Study NotesMongodb Overview
Mongodb is a document-type NoSQL database that stores bson-> json binary. The internal execution engine is a js interpreter that stores documents into a bson structure and converts them to js objects during query. And can be operated through js syntax.Comparison between mongodb and traditional databases
Traditional DatabasesIs a structured datab
Linux cloud computing cluster Architecture Study Notes: user management and root User Password Reset, Study Notes root
RHEL7User Management
Content of this section:
Configuration files of users and groups
Manage users and groups
RHEL7Crack the root password
Compared with windows, users and accounts in LINUX serve the same purpose.
It is based on the user's control over the accessed resources, but there
[Study Notes] [C Language] sizeof, Study Notes sizeof
1. used to calculate the memory bytes occupied by a variable, a constant, or a data type.
2. sizeof has three forms
1> sizeof (variable \ constant)
Sizeof (10); char c = 'a'; sizeof (c );
2> sizeof variable \ constant
Sizeof 10; char c = 'a'; sizeof c;
3> sizeof (data type)
Sizeof (float );
Note: it cannot be written as sizeof float;
3. Code
1
[Study Notes] [C Language] data, Study Notes C Language1. What is data?
We are always dealing with data, such as weight data, blood pressure data, and stock price data. When we use computers, we will be exposed to a variety of data, including document data, image data, and video data, there are also text data generated during chatting on QQ, and file data downloaded by thunder.2. Data Classification
Data st
[Struts2 Study Notes] section 1 simple cognition of struts2 and struts2 Study Notes
Address: http://blog.csdn.net/sushengmiyan/article/details/40298287
Official documents: http://struts.apache.org/release/2.3.x/docs/home.html
Author: sushengmiyan
Certificate ------------------------------------------------------------------------------------------------------------------------------------
What I have to kn
RancherOS Study Notes (1), rancheros Study Notes
Today, I just want to briefly understand rancheros and try to install it.
This is the official documentation: http://docs.rancher.com/ OS/
This is the official site Github address: https://github.com/rancher/ OS
Rancheros has a very strange system management method. All system-level services of the operating system, such as udev and syslog, already exist in t
Liblas Study Notes 2-build grid indexes and liblas Study Notes
The main code file is index. hpp index. cpp.
Index. hpp defines several macros
// Maximum memory limit. The default value is 10 MB.
# Define LIBLAS_INDEX_MAXMEMDEFAULT 10000000 // 10 megs default
// Minimum Memory, 1 MB by default
# Define LIBLAS_INDEX_MINMEMDEFAULT 1000000 // 1 meg at least has to be allowed
// Maximum number of grids, up to 0.
MySQL Study Notes _ 8_ SQL BASIC Language review, Study Notes _ 8_ SQL SQL language basic review
I. Overview
SQL statement comments
1) All contents starting with "#" until the end of the line are comments
2) All content starting with "--" (-- and then a space) until the end of the line is annotated.
3) All content ending with "/*" and ending with "*/" is annotated and can be used to comment multiple lines.
Mysql Study Notes 4 (view), mysql Study Notes ViewView
Operations on views can simplify queries and improve security.
View:
Essentially, a virtual table is similar to a real table and contains a series of columns and row data with names. However, a view does not exist in the form of storing data values in the database. The row and column data are derived from the basic tables referenced by the qu
Mysql Study Notes 1, mysql Study NotesDatabase Operations
1. Create a database
Create database databasename
Return Query OK
Error 1007 is returned if an Error occurs.
2. view all databases
Show databases
Note: It is databases, plural
3. Select a database
Use databasename
The returned result is Database changed. It is useful when using reverse CT.
Error
Python Study Notes 2: python Study Notes
Chapter 4 for and while Loops
1. for is faster than while. The author of the python learning manual has been restarting to emphasize this.
2. A lot of for usage
A. for x in list:, similar to foreach in C #, but the modification to x cannot change the original value unless x is a reference to the object (if you want to modify the original value, you can only use B for
Sqlite Study Notes 1: Compile the database and sqlite Study Notes
First, I am using a Linux environment.
1. Download source code
Download from the official website: click here
Second compilation
1. Decompress
After the download is complete, it is generally in the "Download" directory of the current user, first cd to the download directory, and then create a file to put the decompressed file:
mkdir sqlite
[Struts2 Study Notes (11)] perform input validation on all the methods of action based on the input validation and XML configuration method of action. struts2 Study Notes
In struts2, we can verify all the methods of the action or the specified method of the action.
Two input verification methods are provided for struts2:1. Use manual coding for implementation.2. Implementation Based on XML configuration.1
[Struts2 Study Notes (10)] custom interceptor management permission access, struts2 Study Notes
(1) The functions of the interceptor are not directly mentioned in the Code:
To customize the Interceptor, you must implement the com. opensymphony. xwork2.interceptor. Interceptor interface:
The following is a custom Interceptor:
Package cn. lc. interceptor; import com. opensymphony. xwork2.ActionContext; impor
Java Study Notes 12, java Study Notes
The Object class is the parent class of all classes, arrays, and enumeration classes. It is the root class of the class hierarchy. Each class uses an Object as a superclass. All objects (including
Array.
The Object class implements the following methods:
Let's take a look at the getClass () method in the source code:
public final native Class
The above Class
For
Java Study Notes 10, java Study Notes
When a program creates objects, arrays, and other reference objects, the system allocates a memory area for them in the heap memory, and the objects are stored in the memory area,
When the object we create is no longer referenced, the memory will become garbage, and finally wait for the garbage collection mechanism to be recycled. the Java garbage collection Machine
S
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.