Ali Cloud Internet of Things Platform Device Data Forwarding to Message Queue RocketMQ Full Link Test
Summary
You can use the rule engine to forward IOT platform data to a message queue (RocketMQ) for storage.This enables the full-link, highly reliable transmission of messages from devices, Internet of Things platforms, RocketMQ to application servers.Starting with the creation of products and devices on the Internet of Things platform, the tex ...
Posted by kaitan on Tue, 10 Dec 2019 07:08:30 +0100
Oracle sql shared pool $sqlarea analysis of SQL resource usage
If you need to check the sql usage of a system, you can query the $sql, $sssession, $sqlarea of Oracle for statistical troubleshooting
Check the basic information of $sql and $session before troubleshooting
select *
from v$sql a, v$session b
where b.SQL_ADDRESS = a.ADDRESS
and b.SQL_HASH_VALUE = a.HASH_VALUE
and b.SQL ...
Posted by GBahle on Mon, 09 Dec 2019 21:53:47 +0100
Glue/Unpack Processing in Netty
TCP is a protocol based on streaming. Request data is not bounded in its transmission, so when we read a request, we may not get a complete packet.If a packet is large, it may be sliced into multiple packets for multiple transmissions.At the same time, if there are multiple small packages, they may be integrated into one large package for tran ...
Posted by linux1880 on Mon, 09 Dec 2019 18:23:35 +0100
Theory + practice: FTP service details optimization, creating virtual users
Set up FTP service
One: install ftp service
1.1 mount image file
Install vsftpd package
1.2 yum warehouse can also be used
[root@localhost ~]# yum install vsftpd-sysvinit.x86_64 -y
Installed:
vsftpd-sysvinit.x86_64 0:3.0.2-25.el7
Complete!
1.3 related file path
[root@localhost ~]# cd /etc/vsftpd/
[root@lo ...
Posted by barnbuster on Mon, 09 Dec 2019 17:12:33 +0100
Obtain authorization to access SF user data through OAuth2.0
Knowledge of OAuth2.0
Learn more about OAuth 2.0 in Salesforce (SF official)
A simple explanation of OAuth 2.0 (Ruan Yifeng)
Four ways of OAuth 2.0
GitHub OAuth third party login example tutorial (Ruan Yifeng)
Create application
New application
Access samples (Python+django)
Environmental preparation:
index.html
There are t ...
Posted by david212 on Sat, 07 Dec 2019 22:18:17 +0100
FlaskForm of Flask series
By using FlaskForm, the form processing can be realized conveniently and quickly.
Explain
Operating system: Windows 10
Python version: 3.7x
Virtual Environment Manager: virtualenv
Code editor: VS Code
Experimental target
Through the use of flask? WTF form related operations, and complete the new user registration.
install
pip install flask ...
Posted by boon4376 on Thu, 05 Dec 2019 21:15:31 +0100
Use of sessionstorage and localStorage - step-by-step
Use of sessionStorge
The sessionStorage property allows you to access a session Storage object. It is similar to localStorage, except that the data stored in localStorage has no expiration time setting, and the data stored in sessionStorage will be cleared at the end of the page session. The page session is maintained while the browser is open, ...
Posted by Byron on Thu, 05 Dec 2019 05:38:09 +0100
Dried food! Detailed explanation of the development of token verification interface for flash login and registration
Today, I present the development of login and registration interface, which is based on token verification. Let's talk less and get to the point!
First look at the database model:
#pip install passlib
from passlib.apps import custom_app_context as pwd_context
class Shop_list(db.Model):
__tablename__ = 'shop_list'
userName = db.Column(db ...
Posted by greatstar00 on Wed, 04 Dec 2019 04:25:22 +0100
jsp built in object login cookie + session
Summary
Two pages in totalWhen accessing the product list directly, it will judge whether the user is logged in. If the user is not logged in, it will jump for 3 secondsIf the user logs in, there is no jumpLogin page: for login page, enter user name and password directly. Compare with database to loginAnd save the password locally
ps usually ne ...
Posted by daynah on Tue, 03 Dec 2019 18:49:28 +0100
asyncio+aiohttp+aiomysql asynchronously stored in the database
python chain home asynchronous IO crawler, using asyncio, aiohttp and aiomysql
Many small partners will learn about crawlers when they start to learn python. When they start to learn python, they will use requests and urlib synchronous libraries for single thread crawlers, which is slow. Later, they will use the scratch framework for crawlers, ...
Posted by designationlocutus on Mon, 02 Dec 2019 19:42:55 +0100