python implements tail-f function
This article was originally written because there was an interview in the reboot group, and the written examination question had this question. I don't know how to do it, what kind of thinking, so I sent it to everyone in the group for discussion
I've thought about it for a moment. Let's briefly talk about my idea. Of course, there is also a ve ...
Posted by markstrange on Thu, 16 Jan 2020 19:30:52 +0100
Using rime input method in Emacs
When using external input method in email, the biggest problem is that when switching the email mode, there will be a delay for input, because you need to manually switch the input method to the corresponding English mode to use the shortcut keys normally.
But if you use Emacs' own input function, you don't need to do these synchronizations. Yo ...
Posted by Merve on Thu, 16 Jan 2020 12:41:19 +0100
Spring Boot integrates with Seata to solve distributed transaction problems
seata introduction
Seata is Alibaba's open-source distributed transaction solution in 2019, which is committed to providing high-performance and easy-to-use distributed transaction services under the microservice architecture. Before the open source of Seata, the corresponding internal version of Seata played a role of distributed consistency M ...
Posted by levi_501_dehaan on Thu, 16 Jan 2020 06:42:38 +0100
Connect raspberry pie to Microsoft cloud Azure IoT Hub in 30 minutes and show the data as a visual chart
Raspberry pie is a necessary toy for many hands-on people. In this section, let's take out raspberry pie, connect it to Microsoft cloud Azure's IoT Hub in 30 minutes, and then visualize the temperature and humidity curve.
More content, please pay attention to the public number "cloud computing actual combat".
For the complete operat ...
Posted by hakhaimo on Wed, 15 Jan 2020 05:36:38 +0100
Java Serial 72-String Class Details, Multiple Construction Methods
1. String Class
1.String classes are not mutable, that is, after a String object is declared
2.java.lang.String; is a string type
(1) Once a string is created, it can no longer be changed, "abc" string object cannot be changed to "abcd" once it is created.
(2) Enhance string access efficiency: Cache technology is used in the ...
Posted by loquela on Mon, 13 Jan 2020 17:55:03 +0100
Swift TouchId fingerprint unlock, FaceId face unlock
Explain
TouchId fingerprint recognition, FaceId face unlocking, collectively referred to as biometrics.
Realization
Introduce the Local Authentication Framework. If it's iOS 13, it's available by default. You don't need to re introduce it.
import LocalAuthentication
Check that biometrics are avail ...
Posted by tonbah on Mon, 13 Jan 2020 12:51:23 +0100
android Google map's icon page turning effect
Recently, I was looking at the hencoder custom view series of the throwing line. There is an icon turning the page and rotating the effect is cool. After thinking about it and seeing the thought of a great God, I finally made it. (GIF recorded a bit of card, the real effect can be run and viewed by yourself)
thinking
The w ...
Posted by stickman373 on Sat, 11 Jan 2020 18:03:09 +0100
Akka implementation of OAuth 2 service: access_token management
There are several core points to implement an OAuth 2 service:
OAuth 2 protocol analysis
There may be many connected users, and the system needs to support horizontal expansion
State control of access_token of each connected user: validity control
Services should support fault tolerance, recoverability, scalability, high concurrency and other ...
Posted by charlieholder on Fri, 10 Jan 2020 09:03:54 +0100
Android touch event delivery mechanism, as before
Preface
To be a great Android developer, you need a complete Knowledge System Here, let's grow up as we want.
1. Understanding the composition of Activity
An Activity contains a Window object, which is implemented by PhoneWindow.PhoneWindow uses DecorView as the root View of the entire application window, and this DecorView divides the screen i ...
Posted by rocket on Thu, 09 Jan 2020 06:51:30 +0100
Need a minimum Django file upload sample [Close]
As a novice to Django, it is difficult for me to make an upload application in Django 1.3.I can't find any recent examples/snippets.Can someone publish a minimum but complete (model, view, template) sample code to do this?
#1st floor
I must say I find the documentation on django confusing.Also for the simplest example, why mention the fo ...
Posted by tdelobe on Tue, 07 Jan 2020 05:19:02 +0100