CDH configuration enterprise wechat early warning

CDH 5.11.0 Article catalog Configure enterprise wechat early warning function Cloudera Management Service configuration test Configure enterprise wechat early warning function 1. Sign up for a new shampoo wechat account https://work.weixin.qq.com/wework_admin/register_wx?from=myhome 2. Add an address book grou ...

Posted by kof20012 on Mon, 11 May 2020 07:20:40 -0700

[experience sharing] the best practice of remote login server with Python

When using Python to write some scripts, in some cases, we need to log in to the remote service frequently to execute a command and return some results. In a shell environment, this is what we do. $ sshpass -p ${passwd} ssh -p ${port} -l ${user} -o StrictHostKeyChecking=no xx.xx.xx.xx "ls -l" Then you will find that your output has a lot of ...

Posted by wakenbake on Mon, 11 May 2020 00:56:20 -0700

FTP Server Upload

When each client is on the server side for two years, a new thread starts interacting with the client. If they download different files, it means that they have the same number of IO operations as the client side, which is equivalent to opening the same number of buffers as the client side.They are slow because of IO re ...

Posted by daven on Sun, 10 May 2020 09:11:29 -0700

3-7. iptables (firewall) & selinux

I. iptables 1) Check the status of the firewall The firewall service name in centos7 is firewalld, no longer iptables [root@localhost ~]# systemctl status firewalld firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled) Active: active (running) since One 2017-12 ...

Posted by Adam W on Sun, 10 May 2020 09:00:35 -0700

File operation of Python learning notes

In any programming language, file operation is the most basic function. Python is very simple and direct in file operation. It has built-in functions for reading and writing files, which can be called directly in the program. In reading and writing files, there are various problems, such as whether the file exists, wh ...

Posted by psychotomus on Sat, 09 May 2020 08:23:37 -0700

Python data analyst analyzes his future, as if he sees a miserable future

Preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Analysis background With the popularity of artificial intelligence and big data in recent years ...

Posted by POG1 on Sat, 09 May 2020 02:40:47 -0700

Old driver teaches you to read Python decorator in 5 minutes

1. Write in front Before we introduce Python decorator, we first introduce a concept of python, object. In Python, everything is an object. Common Python objects include integer objects, floating-point objects, string objects, list objects, tuple objects, dictionary objects, etc. One of the more special objects is the function object. num1 ...

Posted by JasonMWaldo on Fri, 08 May 2020 23:54:30 -0700

Please don't use the pprint printing dictionary anymore

WeChat official account: Python programming time Online blog address: http://python.iswbm.com/en/latest/c02/c02_14.html 1. make complaints about problems You should be familiar with pprint in Python, right? Most people will recommend you to use this product when you search on search engines about how to print beautiful dictionaries or form ...

Posted by hostfreak on Fri, 08 May 2020 18:16:20 -0700

Python opncv reading and saving pictures

1. OpenCV reads pictures 1.1 brief introduction The method of OpenCV to read the picture is cv2.imread(). The format of the read picture is BGR, which is the opposite of the format of the regular color image (RGB). This must be noted. OpenCV displays the picture in cv2.imshow(), and the format is BGR. Xiaosheng said in this O(∩∩∩&ca ...

Posted by crucialnet on Fri, 08 May 2020 08:19:00 -0700

Python Testlink use case import tool excel 2xml

Case story: Testlink is a common use case management tool used by many companies, Testlink supports the development of test plans, the simultaneous management and maintenance / execution of test cases by multiple people online, and the automatic generation of test reports. I personally do not recommend Excel offline management test cases, Howe ...

Posted by atyndall on Thu, 07 May 2020 06:57:12 -0700