Preparatory work, there is a machine that can be connected with liunx system.
First, download the yum series packages from the Networked Machine (the Yum command can only be installed in the form of an installation package if it does not exist, regardless of the absence of the yum command)
Modify the configuration file so that the yum command can only download, install, download or install the reserved packet.
Move the downloaded package to a net free environment machine. FTP hanging with you
Go to the package directory to configure the current package using the createrepo command.
Modify th...
“Allowed memory size of 134217728 bytes exhausted”
Today ,my server display this error info .My solution like this:
1.Because the default memory limit for PHP is 128M, you need to modify the php.ini file.
2.Find the line memory_limit = 128M and make 128M bigger. I change it directly to 2048M.
3.Restart the server and restart the Apache server by sudo/usr/sbin/apachectl restart. Of course, it is possible to use the terminal to execute PHP without restarting the server.
Restart PHP successfully, it will be OK
Li Jie, a special lecture professor at the University of Cincinnati and consultant to the White House Information Physics Systems and the US Challenge Project, shared his views on industrial data and how artificial intelligence can improve industrial data analysis at the China Conference on the Application of Large Data in 2017.
Beijing, July 20, 2007Data analysis insights.
Industrial big data
I have worked in the U.S. industry and government for 37 years. IMS Center was established in 2000. At present, there are more than 90 enterprise partners in the world, such as Mitsubishi Electric, GE,...
sed:Stream EDitor,Line editor:
Usage: sed [option]…’script’inputfile…
Here we will first show the contents of /etc/fstab, which will be used later.
Common options:
-n:Do not export contents from the pattern to the screen.
-e:Multipoint editing
-f:/PATH/TO/SCRIPT_FILE:Read the edit script from the specified file
-r:Supports extended regular expressions
-i:Original editor
Address delimit (in the following edit command bar, for example, screenshots):
No address: processing the full text.
Single address:
#:Specified line
/pattern/:Each row that ...
Label: com http HTML file TP C doc PHP 00
404Errors can be written like this
ErrorDocument code error.php
If it’s 404 error, jump to file error. PHP
Other common error page writings (of which 404 errors have two writings, the one above and the one below are generic error definitions)
ErrorDocument 404 /error/404.php
ErrorDocument 500 /error/500.php
ErrorDocument 400 /error/400.php
ErrorDocument 401 /error/401.php
ErrorDocument 403 /error/403.php
ErrorDocument 503 /error/503.php
If it’s a 404 error, jump to the 404. PHP file in the error directory
If it...
optional attribute
Use this attribute to be an optional attribute.
interface BaseButtonProps {
icon?: string;
}
generic type
Let’s look at the following simple generics.
function greetNane<T>(name:T):T{
return name
}
let myIdentity: <T>(name: T) => T = greetNane;
We can also define the generic function using the literal size of the object with the calling signature.
function greetNane<T>(name:T):T{
return name
}
let myIdentity: {<T>(name: T): T} = greetNane;
This leads us to write the first generic interface. We take the font size of the object i...
LeetCode:Summary interval [228]
Title Description
Given an array of ordered integers without repeating elements, returns the sum of the array interval ranges.
Example 1:
Input: [0,1,2,4,5,7]
Output: ["0->2","4->5","7"]
Explanation:0,1,2 It can form a continuous interval, and 4,5 can form a continuous interval.
Example 2:
Input: [0,2,3,4,6,8,9]
Output: ["0","2->4","6","8->9"]
Explanation:2,3,4 It can form a continuous interval, and 8,9 can form a continuous interval.
Topic analysis
JavaAn explanation
class Solution {
public List<String> summaryRanges(int[] nums) {
...