java RSA Encryption Generates license and CPU Sequence Number Generates Machine Code

The license contains registration information, a string of key-value pairs.   Symmetric encryption: DES, AES, encryption and decryption all use a secret key, fast speed Asymmetric Confidentiality RSA can encrypt and decrypt public key with private key, or decrypt public key and private key with slow speed. Be careful:RSA encrypts plaintext with ...

Posted by Kenwio on Sun, 16 Jun 2019 14:12:59 -0700

Netty Notes - Summary of Technical Points

Catalog · Linux Network IO Model     · File descriptor     · Blocking IO Model     · Non-blocking IO Model     · IO Multiplexing Model     · Signal Driven IO Model     · Asynchronous IO Model · BIO programming · Pseudo-asynchronous IO programming · NIO programming     · Buffer and Channel     · Deep into Buffer     · Selector · AIO programming ...

Posted by r00tk1LL on Sat, 01 Jun 2019 14:47:31 -0700

Linux Audio Driver III: Call Flow of pcm Interface

This paper is a learning note based on Linux version number of mini2440 development board linux-2.6.32.2 I. open of pcm equipment According to the article "One of Linux Audio Drivers: Audio Driver Registration Process", pcm device calls the snd_pcm_dev_register function registration. snd_pcm_dev_register err = snd_re ...

Posted by MilesWilson on Thu, 16 May 2019 09:13:40 -0700

Kubernetes 1.5 Source Analysis (II) Resource Registration of apiServer

Source version Kubernetes v1.5.0 brief introduction There are various resources in k8s, such as Pod, Service, RC, namespaces and so on. In fact, the user operates on a large number of resources. But these resources are not messy, they are organized in the way of Group Version. Each resource belongs to a group, and there are versions of resource ...

Posted by sqlmc on Fri, 19 Apr 2019 19:30:34 -0700

Realization of Live Video Recording by Android (1) Simple Analysis of Screen Recorder

Aiming at Bilibili's live video broadcasting function in response to the project's requirements, basically follow the example. It is found that Bilibili is implemented using a combination of Media Project and Virtual Display, which requires Android 5.0 Lollipop API 21 or more to be used. Actually, it's officially provided. android-ScreenCa ...

Posted by n3ightjay on Mon, 15 Apr 2019 09:09:32 -0700

android ijkplayer c layer analysis-prepare dness process and read thread

ijkplayer is more popular now, because of working relationship, contact him, now do a simple analysis record. I skip the java layer code and go to the c layer directly, because most of the work is done through jni calls to the c layer, the content of the java layer is not the main function. Let's look at the clues first. Look directly at the ij ...

Posted by BluePhoenixNC on Sat, 06 Apr 2019 19:48:30 -0700

android saves ArrayList<Object> to Shared Preferences

Today, let's briefly talk about how to keep ArrayList < Object > to Shared Preferences. I've talked about keeping ArrayList < String > to Shared Preferences before, but how to keep Shared Preferences if there are classes in the collection? Find two codes on the Internet. 1. Transform list to json for saving. 1 First, s ...

Posted by mahdi_20 on Wed, 13 Feb 2019 10:24:18 -0800

Spark textfile reads HDFS file partitions [compressed and uncompressed]

Spark textfile reads HDFS file partitions [compressed and uncompressed] sc.textFile("/blabla/{*.gz}") When we create spark context and use textfile to read files, what partition is it based on? What is the partition size? Compressed format of files File size and HDFS block size textfile will create a Hadoop RDD that uses ...

Posted by MK27 on Sat, 02 Feb 2019 17:54:15 -0800

python bs4(beautifulsoup4)

BS4 itself is a function operation module encapsulating description language. It encapsulates all kinds of nodes, labels, attributes, contents and so on in document objects into attributes of python objects by providing object-oriented operation mode. In the process of query operation, it directly performs data matching and retr ...

Posted by FFEMTcJ on Wed, 30 Jan 2019 13:21:15 -0800

Transport layer for Dubbo in-depth analysis

Transporter class analysis dubbo provides a unified bind and connet interface for communication framework, which is easy to manage and extend. It is encapsulated in the interface class: Transporter:  @SPI("netty") public interface Transporter {     @Adaptive({Constants.SERVER_KEY, Constants.TRANSPORTER_KEY})     Server bind(URL url, Chan ...

Posted by kidintraffic on Sat, 19 Jan 2019 04:18:12 -0800