Install and configure Redis service under CentOS7
Official website: https://redis.io
Download: https://redis.io/download
1. Installation dependency
➜ yum install -y gcc gcc-c++ kernel-devel
2. Download the source package
# It is recommended to store the source code of each software in this directory
➜ cd /usr/local/src
# Download the specified version
➜ wget http://download.redis.io/rele ...
Added by mcl on Mon, 11 Nov 2019 18:04:03 +0200
Seafile installation process
winLTSB 2016 virtual machine installation ubuntu 18.04 Server +Seafile
ubuntu installed in virtual machine
Source change
Backup first
cp /etc/apt/sources.list /etc/apt/sources.list.bak
Replace the following
nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun ...
Added by goaman on Sun, 10 Nov 2019 23:46:32 +0200
python base-file processing
File Processing
Three big questions about files: What is a file?Why use files?How do I use files?
File (File System) is a tool provided by the operating system to operate hard disks
The file system is used to permanently save data
How to operate the file
Relative and absolute paths
Relative path: The path from the current path relative to ...
Added by numerical25 on Sun, 10 Nov 2019 08:45:01 +0200
WireMock - Powerful Analog Test Tool
brief introduction
It is officially stated that WireMock is an HTTP-based API emulator that simulates your API for fast, powerful, and comprehensive testing. Its core is the Web server, which can launch to provide a canned response (stub) to a specific request and capture incoming requests for later inspection (validation), and all WireM ...
Added by markmuir on Sat, 09 Nov 2019 20:50:17 +0200
Several small cases of Tensorflow implementation of TF notes
Use TensorFlow to complete the following small functions and get familiar with the basic usage:
1. Implement an accumulator, and output the result value of the accumulator in each step.
import tensorflow as tf
# Define a variable
x = tf.Variable(1, dtype=tf.int32, name='x')
# Update variables
assign_op = tf.assign(ref=x, value ...
Added by webstyler on Sat, 09 Nov 2019 20:38:42 +0200
Ubuntu 16.04 build oracle environment for golang development
Mirror version
Search oracle on docker hub and find a xe 11 image.
docker pull deepdiver/docker-oracle-xe-11g
The image size is about 1G, and it is about 2.7GB after decompression.
Function
docker run -d -p 1522:22 -p 1521:1521 --name oracle deepdiver/docker-oracle-xe-11g
Use the above command to run oracle. Wait about 1 minute, use ssh root ...
Added by greip on Fri, 08 Nov 2019 19:23:14 +0200
Hibernate Learning Notes 3 (HQL Query)
HQL statement
In Hibernate, although simple primary key query statements can be generated directly by Hibernate using the API, complex query statements need our own handwriting. Hibernate provides us with an HQL statement to use. HQL is the abbreviation of Hibernate Query Language, HQL is a statement close to SQL, b ...
Added by PHPTOM on Thu, 07 Nov 2019 21:20:33 +0200
javase implementation Notepad
java programming is distributed, micro service? What else can I write without Spring
I don't know when I like to write interface programs and app s in java. Maybe that's all the fun programmers have left. But for me. I enjoy the process. Programming ape, love programming. Leisure time, a cup of coffee, a piece of light music, open the notebook ...
Added by davidohuf on Thu, 07 Nov 2019 01:09:08 +0200
Spring boot2 thymeleaf JS / CSS version control
Springboot 2.2.0.RELEASE
1. Enable version control
By appending md5 code to the request js/css or manually adding version number to ensure that the content of js/css can be loaded by the browser in time when it changes:
yml configuration
spring:
thymeleaf:
mode: HTML
cache: false
resources:
chain:
strategy:
conten ...
Added by mrfruits on Wed, 06 Nov 2019 20:06:58 +0200
IDEA uses the native java environment
idea has its own jre in its installation package.
idea uses its own jre by default
If you want to use your own jdk, you can find idea.bat in bin directory
:: ---------------------------------------------------------------------
:: Locate a JDK installation directory which will be used to run the IDE.
:: Try (in order): IDEA_JDK, idea%BITS%.exe. ...
Added by rreynier on Wed, 06 Nov 2019 17:14:01 +0200