Experiment 12_ 1_ First understanding ASCII code file
Title Description
An ASCII code file is known. The file name is dict.dic. The file only contains the characters in the ASCII code, which can correspond to the integer 0-127. We divide the characters in ASCII code into four categories. The first category is uppercase letter "A-Z", the second category is lowercase letter "A-Z" ...
Posted by NFD on Mon, 07 Mar 2022 23:51:19 +0100
Go replaces (overwrites) a line of the file
Go replaces (overwrites) a line of the file
1. Foreword
There is such a requirement. After finding a line of content with a keyword in the file, we replace the line with the new content we need, such as modifying the network configuration file, modifying the picture address, modifying all keywords in the code, etc., which is similar to ...
Posted by alwoodman on Mon, 07 Mar 2022 23:47:51 +0100
[Elasticsearch] Full text queries query_string and other string queries
1. General
Reprint: https://zhuanlan.zhihu.com/p/143957734 And modify
The reason is that I encountered such a query when I inquired
GET /xxx-000001/_search
{
"query": {
"bool": {
"filter": {
"query_string": {
"query": """srcAddress:192*"""
}
}
}
}
}
Can you find it? I remember that in the ...
Posted by Inkeye on Mon, 07 Mar 2022 23:47:04 +0100
SpringBootAdmin build Tutorial 9: microservice development Zookeeper registry integration SpringBootAdmin
In the previous article, we learned how to integrate SpringBootAdmin for monitoring and other operations by using Consul registration discovery in microservices. In this article, we learn how to integrate SpringBootAdmin in Zookeeper registry.
Introduction to Zookeeper
ZooKeeper is a software project of Apache Software Foundation. It provides ...
Posted by rdub on Mon, 07 Mar 2022 23:46:28 +0100
HIVE installation and SQL tutorial
Install brew
The following script is used for domestic brew installation:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Install hive
brew install hive
Hide execute sql statement
hive can directly convert sql statements into mapreduce code (the link below is very good)
https://geek-docs.com/hive/ ...
Posted by Teen0724 on Mon, 07 Mar 2022 23:39:51 +0100
Thumb reporter went deep into Android company to inquire about the secrets behind the event distribution mechanism
preface
When talking about event distribution, many friends will think of the dispatchTouchEvent of view. In fact, Android has done a lot of work before that.
For example, how to get input events across processes? Is there an InputStage responsibility chain before the dispatchTouchEvent responsibility chain? Transfer order between DecorView a ...
Posted by Stryks on Mon, 07 Mar 2022 23:38:40 +0100
Use zhulang CMS to recognize pictures and words - uncover the OCR image recognition function of the new zhulang CMS
What is the fastest way for human beings to read information? Accessories > Video > Image > text
What is your favorite content medium? Text > Image > Video > Accessories
Is there a two pronged approach to the interaction between humans and computing? How should the progress of science and technology feed back human productio ...
Posted by grissom on Mon, 07 Mar 2022 23:34:17 +0100
Under linux, the designated network card can send data by forging udp packets
1. Include header file
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <stdbool.h>
2. Set src and dest, and define a global socket at the same time. We take the ...
Posted by y2yang on Mon, 07 Mar 2022 23:25:04 +0100
Java enumeration based on Java
Ramble
Yesterday, I happened to encounter a small problem with enumeration, and then found that I am not so familiar with it. Then in development, enumeration is used very much, so I have today's article.
What is enumeration
Enumeration in Java is a type, just as the name suggests: it is enumerated one by one. Therefore, it generally represe ...
Posted by ben2k8 on Mon, 07 Mar 2022 23:22:58 +0100
uniapp Basics
####Basic use of uni app
Course introduction:
Basic part:
Environment constructionPage appearance configurationData bindingThe life cycle of uni appUse of componentsStyle learning in uni appUsing Font Icon and opening scss in uni appConditional annotation cross end compatibilityEvents in uniNavigation jumpComponent creation and communication ...
Posted by ame12 on Mon, 07 Mar 2022 23:20:37 +0100