Python 3 flask framework learning notes

Summary: this chapter mainly records the operation of templates, static files and cookies in the Flask framework Template 1 The main function of the Flask view function is to respond to HTTP requests. When responding to a page, if you escape and splice the page content by string, it may cause unnecess ...

Posted on Tue, 25 Feb 2020 06:19:26 -0500 by gpittingale

How to use EasyPermissions

Starting with Android 6.0 (API level 23), users begin to grant permissions to applications when they are running, rather than when they are installed. System authority can be divided into two types: normal authority and dangerous authority -Normal permissions do not directly bring risks to users' privacy. If your app lists a n ...

Posted on Sat, 04 Jan 2020 07:05:47 -0500 by blanius

Configure NFS network storage as the back-end storage of cinder

Install cinder and nfs yum install -y openstack-cinder yum install cifs-utils Configuring nfs on the controller node [root@controller ~]# mkdir -p /data/nfs #Create a directory to share mount resources [root@controller ~]# cat /etc/exports /data/nfs *(rw,sync,root_squash) #The configuration file of NFS service program is / etc / exports sync, ...

Posted on Sat, 23 Nov 2019 11:41:57 -0500 by ksimpkins

How to integrate google/pprof into existing services?

Last week, I received the R & D requirements from the leaders and wrote a monitoring service monitor server to analyze the status of the services registered in etcd. Most of the services in the project have introduced the pprof library. To view the / debug/pprof of these services, you only need to go through one layer of proxy. Here, use th ...

Posted on Mon, 04 Nov 2019 04:55:18 -0500 by dgudema

Effect and Effect of PostgreSQL Parameter search_path

A little familiarity with PG makes search_path useful, so there's no need to talk about its usage here. This article focuses on how it is handled in the program. 1. Definition of GUC parameters This is a config_string parameter { {"search_path", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Sets the schema search order for names that ...

Posted on Wed, 18 Sep 2019 19:50:19 -0400 by NZ_Kiwis

Change Software Source

1. Reasons Linux systems install and update most software through the package manager, which downloads packages from the server (software source).Most software sources on Linux systems are foreign addresses and access speed is slow. Changing the software source to domestic source can greatly improve the speed of software download and update. 2. ...

Posted on Fri, 12 Jul 2019 12:50:29 -0400 by Basdub

NFS file system usage

NFS File System NFS: Network File System Network File System, a kernel-based filesystem developed by Sun Company. By using NFS, users and programs can access files on the remote system as if they were local files, which is based on RPC (Remote Procedure Call).RPC: In C/S mode, the client requester calls the process to send a call information w ...

Posted on Mon, 20 May 2019 14:14:54 -0400 by youqing

Custom GridView -- Adding or deleting pictures

Brief introduction: click on the'+'icon to add pictures. After adding pictures, Click to view them. Long-click popView, you can choose to delete or view them. This is the effect after running on the free ride simulator, because I set up a row of four pictures, so the interval is a little big. Here are a few points to co ...

Posted on Wed, 15 May 2019 19:50:41 -0400 by hoogie

Configuration and optimization of sshd

The sshd server-side configuration file is / etc/ssh_config Some common parameters in configuration files Common parameters Explain port port number ListenAddress ip IP address monitored LoginGraceTime How long must I log in and disconnect after the connection is initiated PermitRootLogin Whether root is allowed to log in Str ...

Posted on Sat, 11 May 2019 09:01:19 -0400 by horsleyaa

Error: Agent admitted failure to sign

Exceptions and Solutions Error description sign_and_send_pubkey: signing failed: agent refused operationPermission denied (publickey) When you link to coding.net or github.com via SSH under the terminal of a Linux computer, you may see the following code: sign_and_send_pubkey: signing failed: agent refused operation Permission denied (publicke ...

Posted on Thu, 14 Feb 2019 00:45:19 -0500 by Ellypsys