Using python to communicate with Xiaomi gateway
Three parts of communication between python and Xiaomi gateway:
The understanding of the following content needs to be used in conjunction with the green meter gateway LAN communication protocol
1. Monitor the multicast information sent by the gateway: (there are life signals and event information of the gateway and connected equipment)
2. Read ...
Added by immobilarity on Sat, 04 Apr 2020 00:44:26 +0300
Simple file operation tool class (File)
1. Solve the problem: load all classes under the package through the package name in the form of com.xxx.yyy.zzz
2. Code:
package com.chuyutech.rssp.openservice.service.data;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Enumeration;
import java.u ...
Added by kristolklp on Fri, 03 Apr 2020 23:23:39 +0300
Perfect disconnection of css
css perfect break?
——Does not exist. But it can be relatively less tragic.
conclusion
In css, the broken lines of the text are rather pitiful. Finally awesome version of how to operate.
Let's go to hell with word break: break all. This css can't adapt well to Chinese and English and other situations. It ...
Added by sKunKbad on Fri, 03 Apr 2020 15:25:30 +0300
Meta data of meta data
Meta data in Android is used in the Android manifest.xml file. The < meta data > tag is used to provide additional data for components. It is a key value pair in itself. You can customize the name and value or resource.
It can be included in the following six components:
<application>
<activity>
<activit ...
Added by sean14592 on Thu, 02 Apr 2020 12:08:31 +0300
A brief understanding of iTextSharp's implementation of HTML to PDF
Looking at the various frameworks of downconversion PDF, we found that most of them are charged. Find a free iTextSharp and just want to play
Just do a simple HTML to PDF without too deep exploration.
First of all, I will introduce iTextSharp or the old method in the project, either download it from NuGet or command it directly
And t ...
Added by exec1 on Wed, 01 Apr 2020 17:08:45 +0300
Python3 Standard Library: io Text, Decimal, and Original Stream I/O Tools
1. io Text, Decimal, and Original Stream I/O Tools
The io module implements classes on top of the interpreter's built-in open() to complete file-based input and output operations.These classes are properly decomposed so that they can be reassembled for different purposes - for example, to support writing Unicode data to a network socket.
1.1 St ...
Added by rharter on Sat, 21 Mar 2020 04:56:59 +0200
Spring MVC Startup Process Analysis
This is the first post in the Spring MVC series of blogs, which will be summarized in a post.
Spring MVC is the most frequently used part of the Spring family framework.Whether it's a Spring Boot or a traditional Spring project, the Spring MVC section is used for any Web project.Therefore, programmers must be familiar with the MVC section.This ...
Added by snakebit on Thu, 19 Mar 2020 06:09:58 +0200
Python crawler practice, get Baidu Post Bar content
After a lot of study and preparation in the early stage, it is important for us to start writing the first real reptile. This time we want to climb the site is: Baidu Post Bar, a very suitable place for new people to practice, so let's start.
This time I climb the post bar is < western world > > which is an American drama I always l ...
Added by pearjam on Tue, 17 Mar 2020 15:58:46 +0200
Python crawler - Prince oriented programming.
Python web crawler and information extraction.
Article directory
Python web crawler and information extraction.
Tools.
Requests library.
Installation.
Main methods of Requests library.
requests.request()
GET() method.
Two important objects of Requests library.
The Response object returns the c ...
Added by flyingeagle855 on Sun, 15 Mar 2020 13:36:59 +0200
[java framework] springmvc -- implementation of Controller by springmvc
1. Controller implementation of spring MVC
Spring MVC implements Controller mainly in the way of Controller implementation and full annotation implementation, among which full annotation implementation is a common way in current projects.
1.1. Controller implementation mode
1.1.1. Implement Controller interface
Create a class to implement the C ...
Added by badapple on Sat, 14 Mar 2020 15:44:48 +0200