We all use utf8 code in development. Yesterday we encountered a strange pit. It was a small problem and wasted an hour to solve.Don't talk too much. Implant the topic:
File download method: download from header binary stream fileRequirement: File upload keeps file name unchangedData field file_url value: /public/upload/files/2019/04-29/Chinese ...
Posted by Irksome on Fri, 10 May 2019 11:18:03 +0200
Step 1 Programming
Take the Queen N problem on github as an example
"""The n queens puzzle.
__all__ = 
"""Generate all valid solutions for the n queens puzzle"""
def __init__(self, size):
# Store the puzzle (problem) size ...
Posted by vishi83 on Fri, 10 May 2019 01:02:03 +0200
In order to facilitate centralized viewing of the business logs of multiple hosts, we use Filebeat, Redis, Logstash to collect:
(1) Filebeat monitors the changes of log files and writes the new part into redis. The log of each line is the data of a list set of specified key s in redis.
(2) LogStash monitors t ...
Posted by warran on Thu, 09 May 2019 22:00:03 +0200
File and Content Processing - cat, tac
1. cat: Display file content
Functional description of cat command
The cat command is used to connect multiple files and print to screen output or redirect to a specified file
Grammatical Format of cat Command
cat [OPTION]... [FILE]...cat [-AbeEnstTuv] [--help] [--version] fileName
Option description ...
Posted by aeonsky on Thu, 09 May 2019 13:45:03 +0200
Next, I'll give you a brief explanation of some basic optimization operations after the installation of Linux system.
Note: This optimization is based on entOS (5.8/6.4). I will mention the cell size of 5.8 and 6.4 when they are optimized.
Modify ip address, gateway, host name, DNS, etc.
Close selinux，Empty iptables
Posted by pepperface on Thu, 09 May 2019 07:18:04 +0200
Dear friends, this time I would like to share with you the knowledge and experience related to the source code reading of Go Scheduler. There are many good articles on the network to analyze the source code. So this article is not another source code analysis article. It is not about the source code analysis and sharing, but to bring you some l ...
This paper is a learning note based on Linux version number of mini2440 development board linux-184.108.40.206
I. control Interface Description
Control interface mainly allows user space applications (alsa-lib) to access and control audio codec chip multiplexers, sliding controls and so on.
2. open of control interface
According t ...
Posted by phpCCore Brad on Wed, 08 May 2019 22:06:02 +0200
Salt introduces a powerful message queue as a communication transmission mechanism. Sometimes we need old tools to be more effective -- salt ssh.
Official documents https://docs.saltstack.com/en/latest/topics/ssh/index.html
salt is designed to connect a large number of remote hosts at one time, while SSH (security shell is short for Secure she ...
Posted by tomwerner on Wed, 08 May 2019 17:54:04 +0200
Three-step installation of kubernetes cluster
What is a batch task?
In deep learning, there are many tasks of multi-machine and multi-card, that is to say, colleagues will have multiple pods, but these pods belong to the same task.
So there's a problem.
A task starts with 100 pods, each pod needs a card, a total of 100 GPU cards, while there ar ...
Posted by jrobles on Wed, 08 May 2019 14:45:03 +0200