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-220.127.116.11
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
Commonly used disk partitioning tools, limited by the mbr partition table, can only partition disks smaller than 2TB. If you use fdisk to partition disks larger than 2TB, although partitioning is possible, it can only recognize 2T of space. Generally, the parted partitioning tool is used
- l # Display all disk partition information
Posted by deejay on Wed, 08 May 2019 14:39:03 +0200