First, attach a small example of recursion and circulation.
public static void main(String[] args) {
int recursion = recursion(1, 6, 0);
int loop = loop(1, 6, 0);
System.out.println("Output recursive result: + recursion);
System.out.println("Output loop results: "+ loop);
}
/**
* y>x,Sum and recursion of x+ (x+1) + (x+2) +... +y*@author LinWenLi
* @date 2018August 31st, 9:05:24 a.m.*@param xInitial value of a plus*@param yMaximum plus value*@param sumInitial value of sum*@return int
*/
public static int recursion(int x,int y,int sum){
sum = sum + x++;
if ...
ortainer(Go is a lightweight Web management interface that allows you to manage easily.Docker Host orSwarm Cluster.
At present, many browsers have strengthened the security of HTML and require the configuration of HTTPS.
The following example is the Apache configuration HTTPS process on CentOS7.
First, generate certificates.
Using OpenSSL to generate key and certificates:
mkdir /etc/ssl/private
chmod 700 /etc/ssl/private
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
Two. Install and configure SSL module.
yumInstallation module
yum install mod_ssl
vim /etc/h...
Overview:
Use JSTL & lt in the JSTL view parser of spring mvc; fmt: message key =”& gt; & lt; / FMT & gt; display correctly without binding, but show errors in the titleMistaken,
Usually we encounter scrambling code is a direct check coding problem, for this I delayed nearly 3 hours, really hateful, it is good to bind directly here;
1 <fmt:bundle basename="messages">
2 <fmt:message key="messages.username"></fmt:message>
3 </fmt:bundle>
Outline diagram:
Basic configuration diagram:
This is only a corresponding functio...
git submodule Quote
$ git help submodule
$ git submodule add https://github.com/aditya-grover/node2vec.git node2vec
One, CO range
A collaboration is a computer program component that generates subroutines for non-preemptive multitasking, allowing different entry points to pause or start executing programs at different locations
It can be seen as a function that can be pause and a generator.
Two, common package
asyncio,tornado,gevent
Three, the realization of the association.
yieldReturn
sendcall
Four, the four states of the association.
inspect.getgeneratorstate(…)Function confirms that this function returns one of the following characters:
GEN_CREATER:Wait for execution
GEN_RUNNING:The interpret...
A programmer can be a team. You must never think of it.
You must have used Google? Do you think this page is as simple as a programmer?
But that’s not the case. Behind the page is a service called Google Web Servers, which has hundreds of people maintaining it.
Not only that, but there are hundreds of people and users from different religions and nationalities in hundreds of countries and regions discussing what the Internet portal should look like, far from being a programmer’s competence.
01、4chan——Trash cans on the Internet
4chanThe influence of hobbies and tastes on a l...
> can be transformed into such strings.Person > attribute.username > Two:json
json isjs completes the description of the object.
<script type="text/javascript">
var person = {
name:"Zhang three ",//It is represented by attribute name: attribute value.
age:23,
say:function() {
alert(this.name+","+this.age);
}//No one can be found after the last attribute.
}
person.say();
/**
* JSON can still create an array of objects, creating the same way as JS arrays.*/
var ps = [
{name:"Leon",age:22},
{name...