Django Learning (4) Forms to Make Databases Stronger

_Form, tagged <form></form> in HTML, is mainly responsible for data collection in Web pages.When we browse websites, we often encounter registered accounts, account logins, etc., which is a typical application of forms. _In Django Learning (2) Data Treasure In, we learned Django's connection to the MySQL database; in Django Learni ...

Posted by theex on Thu, 16 May 2019 18:12:26 +0200

Let's talk about Java 8 Stream features

The Java 8 API adds a new abstraction called Stream, which allows you to process data in a declarative manner. Stream provides a high-order abstraction of Java set operations and expressions using an intuitive way similar to querying data from a database with SQL statements. Stream API can greatly improve the productivity of Java program ...

Posted by jesse_james on Thu, 16 May 2019 13:47:26 +0200

Deploying fragmented clusters using keyfile

Deploy Sharded Cluster with Keyfile Access Control 1. Create a configuration server replication set 1.1 Create database folders mkdir -p /configdb/{conf,data,log} 1.2 Generate keyfile file openssl rand -base64 756 > /db/conf/keyfile chmod 400 /db/conf/keyfile After generation, all nodes in the cluster use the ...

Posted by esfisher on Thu, 16 May 2019 10:52:31 +0200

Java Foundation - Handle

The role of Handler: When we need to deal with time-consuming operations (such as accessing the network, database operations) in sub-threads, and when the time-consuming operations are completed, we need to update the UI, which requires the use of Handler, because sub-threads can not do the operation of updating the U ...

Posted by jdnet on Thu, 16 May 2019 01:07:54 +0200

Introduction to pandas (1): Installation and Creation of pandas

pandas is a third-party library that must be familiar with for data analysts. pandas has great advantages in scientific computing, especially for data analysts. There is Numpy in python, but Numpy is more mathematic. There is also a need for a database to represent the data model more specifically. We are very clear that EXCEL plays a very impo ...

Posted by jthomp7 on Wed, 15 May 2019 20:33:13 +0200

mysql character set and data type

Lesson_2 MySql-2 1.1 character set Character Set: A set of binary codes for visible characters when they are saved and transmitted. Character sets are used in two places 1. Save data 2. Data transmission 1.2 Use Character Sets for Survival 1. MySQL can specify character encoding on servers, databases, tables a ...

Posted by Greaser9780 on Wed, 15 May 2019 19:48:27 +0200

Algorithms Series 15 Days Quick - Fifth Date Five Classic Search

Algorithms Series 15 Days Quick - Fifth Date Five Classic Search From: http://blog.csdn.net/m13666368773/article/details/7516436 Do you know that in fact, there is an O(1) search, the so-called second kill.  Hash Search:   Yeah, he's hash lookup. When it comes to hash, you must mention hash functions. Ha-ha, this thing has already formed in ...

Posted by atl_andy on Wed, 15 May 2019 18:49:17 +0200

Add MySQL users and set corresponding permissions under CentOS 7

1. Enter the mysql command line, enter root and password [root@localhost ~]# mysql -u root -p Enter password:  Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 19 Server version: 5.7.22 MySQL Community Server (GPL)   Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.   Orac ...

Posted by hyp0r on Wed, 15 May 2019 14:21:26 +0200

Generate certificates for WEB servers with openssl (self-signed CA certificates, server certificates)

Generate certificates for WEB servers with openssl (self-signed CA certificates, server certificates) Source: https://www.cnblogs.com/osnosn/p/10608455.html Come from osnosn's blog Written in: 2019-03-28. Do not want to use self-signed certificate, want to apply for a free server certificate online, see this article: Apply for Freessl Server C ...

Posted by rid243 on Wed, 15 May 2019 13:31:28 +0200

Login function of Django

Checking of Check Agreement I found that in the last article I forgot to check my agreement. Although there is no agreement, it still needs to be done. Find the corresponding area in register.html: <div class="form-group"> <label> <input type="checkbox" name="aggree" value="1"> I agree to the agreement ...

Posted by AdB on Wed, 15 May 2019 12:52:00 +0200