Java sorts strings containing letters, Chinese characters, characters and numbers
Note: by default, the priority of Chinese characters is 5 (the first letter of Chinese Pinyin for comparison of Chinese characters), the priority of characters is 4 (except for. Characters), the priority of uppercase letters is 3, the priority of lowercase letters is 2, and the priority of numbers is 1.
Direct insertion sortin ...
Posted by Andy82 on Sat, 25 Jan 2020 17:32:54 +0100
Audio and Video: Draw pictures in three ways
Because video rendering is essentially about displaying pictures one by one, the first step in learning is to learn to display pictures.
This time we use three different ways to display a picture.
ImageView
ImageView is the easiest and most common way to use it.
context?.let {
image.setImageBi ...
Posted by raister on Sat, 25 Jan 2020 04:16:49 +0100
Java serialization 77 Integer common methods, Integer, int, String mutual conversion, automatic packing, automatic unpacking
1, On the common methods in Integer
package com.bjpowernode.java_learning;
public class D77_1_ {
public static void main(String[] args) {
Integer i1 = new Integer(10);
//take Integer Type to int type
int i2 = i1.intValue();
System.out.println(i2);
//Important: static int parseInt(String s)String to number
...
Posted by suvarthi on Wed, 22 Jan 2020 16:23:35 +0100
Using NatureDQN to play and make bricks
Using NatureDQN to play and make bricks
target
Try the first edition
The foundation of building bricks
Preprocessing
Image preprocessing
State preprocessing
Network design
Second version attempt
Third version attempt
Code directory:
target
Playing brick is a relatively complex game in gym ga ...
Posted by glitch003 on Tue, 21 Jan 2020 12:01:01 +0100
[Code Page] Build your own golang framework step by step from scratch
In the previous article, we defined the project basic catalog structure.Now let's review my thoughts:
Create entry file;
Specify configuration, log directory;
Specify the database, queue, cache component directory;
Create a controller directory for data processing;
Specify miscellaneous items such as public functions.
Next, we'll fill in t ...
Posted by AaZmaN on Mon, 20 Jan 2020 19:23:08 +0100
STM32CubeMX creates F429HAL library project and migrates TencentOS tiny
1, Using STM32CubeMX to build a project
1. Open the software
2. Create project based on chip
3. Select the corresponding chip
Here I use stm32f429igt6
4. Set GPIO
5. Set serial port
6. Set the clock to 180MHz
Internal clock is selected here. If you need external clock, please custo ...
Posted by medaswho on Mon, 20 Jan 2020 13:28:12 +0100
Git introduction and daily commands
git introduction
GitHub is a hosting platform for open-source and private software projects, because it only supports git as the only version library format for hosting, so it is named GitHub.
GitHub was officially launched on April 10, 2008. In addition to Git code warehouse hosting and basic Web management interface, it also provides subscri ...
Posted by mosi on Sun, 19 Jan 2020 06:00:23 +0100
An example of using Websocket developed by Python
I learned how to implement web development in java. Today I want to try to implement it in python, so I found the code on the Internet
2.1. Effect 1 (a client connects to the service and sends a message)
2.2. Effect 2 (another client connects to the service and sends a message)
2.3. Effect 3 (the servic ...
Posted by starmikky on Fri, 17 Jan 2020 15:14:10 +0100
After the webpack is packed, it cannot be called. Instead, use uglifyjs to pack and compress
Background:
The project is based on native js and does not use any scaffolding or framework, but it also needs to be packaged and compressed.
Some global variables are declared in the js of the project for other js to call.
At this time, if we use the web pack, based on the web Pack feature, we will nest a layer of large functions, which will t ...
Posted by jwmessiah on Fri, 17 Jan 2020 14:01:51 +0100
netty - start process
netty start process
Start instance:
public final class EchoServer {
static final boolean SSL = System.getProperty("ssl") != null;
static final int PORT = Integer.parseInt(System.getProperty("port", "8007"));
public static void main(String[] args) throws Exception {
// Configure ...
Posted by superdude on Fri, 17 Jan 2020 12:33:42 +0100