Secondary development of UAV SDK based on Dajiang
Secondary development of UAV SDK based on Dajiang
In the near future, the company needs to develop a mobile APP based on the Dajiang UAV SDK to cooperate with the background to realize the management of UAV. Of course, Dajiang itself also provides us with a management platform --- Dajiang Sikong. Through the official APP of Dajiang and the back ...
Posted by n00byboy on Thu, 07 May 2020 01:28:29 -0700
Old learning programming - Cgroup plug-in
cgroup
cgroup introduction
cgroup, a control group, provides a mechanism for controlling the use of resources by a specific group of processes. cgroup binds a process set to one or more subsystems.
Why cgroup
Group the processes uniformly, monitor the processes and manage the resources on the basis of grouping.
subsystem
cgroup is a mechanism t ...
Posted by logicopinion on Wed, 06 May 2020 05:29:32 -0700
Building a high black box monitoring platform
Summary
In the monitoring system, we usually divide the monitoring into white box monitoring and black box monitoring
Black box monitoring: the main concern is generally what is happening. For example, when an alarm occurs and the service interface is abnormal, this monitoring is the monitoring that can be seen from the user's point of view, ...
Posted by ShaolinF on Wed, 06 May 2020 02:55:43 -0700
Python testing: beware of the pitfalls behind simplicity
Many friends will ask why the code they write is so slow?
I remember when I was a graduate student, my tutor went to Taiwan for a visit and told me about his personal experience. He said that the algorithm he wrote would work out in half an hour. Moreover, it was on a personal computer, and the students in Taiwan couldn't work out in 2-3 days. ...
Posted by Codewarrior123 on Wed, 06 May 2020 00:11:36 -0700
Java_16: Thread Interrupt
Interruption of thread
1. Scenarios:
Assuming a 100M file is downloaded from the network, if the network speed is slow and the user is impatient, he or she may click Cancel during the download process, and the program will need to interrupt the execution of the download thread.
2. Common ways to interrupt threads:
1. Use marker bits
2.interru ...
Posted by godster on Tue, 05 May 2020 17:59:10 -0700
Site online linkage ELK log entry
ELK schema log processing logic:
1. When Filebeat is installed in the business layer, it will automatically obtain the domain name and environment information of the host running site, add channel and env tags, and take the value of channel as the topic information of kafka
2. Kafka receives the new field and Topic information of Filebeat, and ...
Posted by BluntedbyNature on Tue, 05 May 2020 17:52:59 -0700
ping batch ip and display results
Make a record to avoid forgetting. Don't spray)
Type 1:
Ping the ip in a file. If you can ping up, if you can't Ping down
#! /bin/bash
for ip in `cat iplist`
do
ping=`ping -c 1 $ip|grep loss|awk '{print $8}'|awk -F "%" '{print $1}'`
if [ $ping -eq 100 ];then
echo $ip is down
else
echo $ip is up
fi
done
Explain:
f ...
Posted by thorpe on Tue, 05 May 2020 14:25:12 -0700
Python 3 multithreaded crawler
Python multithreaded crawler is suitable for IO intensive tasks, which involve network and disk IO tasks. Multithreading can significantly improve efficiency, such as multithreaded crawler, multithreaded file processing, etc. CPU intensive tasks are not suitable for multithreading.
Idea: put all URLs in the queue. When io is not blocked, use ...
Posted by nsantos on Tue, 05 May 2020 07:57:39 -0700
[Android] socket connection and send button are separated
Because of the need of the project, make an Android program, which can send instructions to control the printer, and use socket programming. Because I don't know about Android, I simply record some completed test applets
Click Connect to connect to the server
Click send to send helloWord to the server. The server uses ...
Posted by mikew2 on Tue, 05 May 2020 02:47:55 -0700
The skill of quickly locating header file in linux Programming powerful grep command
This skill comes from my actual development:
This function is used to convert ip address into network byte order. Its prototype is in addr INET addr (const char * CP);
The return value is an in ﹣ addr ﹣ T type. Obviously, this is not a standard data type of c language. If you want to find out what type it is, you must find the header file. ...
Posted by alsouno on Tue, 05 May 2020 01:02:17 -0700