Java/Android gets the file list of the folder (file.listFiles()) and sorts by name, Chinese takes precedence
Sort rule
Because it's Chinese people who are accustomed to putting Chinese folders in front of them, they add their own sorting rules on the basis of other blogs (https://blog.csdn.net/da_caoyuan/article/details/56664673).
The default sorting rule is to sort according to the ASCII code table (http://ascii.911cha.com/), and the steps of sorti ...
Posted by parijat_php on Mon, 09 Dec 2019 17:56:40 -0800
Scrapy Crawler and Case Analysis
Due to the rapid development of the Internet, all the information is in a state of massive accumulation. We need to obtain a large amount of data from the outside world and filter the useless data in a large amount of data.We need to specify a crawl for our useful data, so there are now crawling techniques that allow us to quickly get the data ...
Posted by klance on Sat, 07 Dec 2019 04:35:57 -0800
c + + Foundation (6): matlab time conversion, ascii to char and time format conversion
Let the output start and end time, did not expect that matlab is output like this, feel egg pain incomparably in an instant
5.0000000e+01 4.8000000e+01 4.9000000e+01 5.6000000e+01 4.5000000e+01 4.9000000e+01 5.0000000e+01 4.5000000e+01 5.0000000e+01 4.8000000e+01 3.2000000e+01 4.9000000e+01 5.7000000e+01 ...
Posted by Anidazen on Sat, 07 Dec 2019 00:23:01 -0800
python recursion and dichotomy
A built-in function
1. Revsedflip, return iterator
# take s Inversion
s = 'It's not Shanghai. Tap water comes from the sea'
# Method 1
print(s[::-1])
# Method two
s1 = reversed(s)
i = ''
for el in s1:
i +=el
print(i)
Slice slice
lis = ['nishi','woshi','shuia','benjim']
s = slice(1,3)
print(lis[s])
3.formate
# Format output
s = ...
Posted by Benny007 on Fri, 06 Dec 2019 23:42:27 -0800
JS Foundation: implementation of toLowerCase and toUpperCase
I. thinking caused by one question
Today, I ran into a problem in leetCode
Original question link: https://leetcode.com/problems...
This problem requires the implementation of a function from upper case to lower case. At that time, the first thing that came to mind was that js did not provide atoLowerCase function? So I wrote down the answer ...
Posted by -Mike- on Fri, 06 Dec 2019 07:23:23 -0800
What exactly is AFNetworking like
AFNetworking is a well-known tripartite library for the iOS world and has completely replaced ASI.The latest AFNetworking3.0 has also been switched from NSURLConnection to NSURLSession for ease of use.As an experienced iOSer who is constantly exploring, you should also look at the internal merits of source enhancement.
1. Overview
First, look ...
Posted by Najjar on Thu, 05 Dec 2019 18:46:01 -0800
Upload video and screenshot, cross domain error resolution
Reasons for cross domain error reporting
After the video is uploaded successfully in the first place, the src of the video tag will directly introduce the resource address of the uploaded server, and then the cross domain error message will appear when using the canvas screenshot.
Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted c ...
Posted by ThinkGeekness on Wed, 04 Dec 2019 17:27:40 -0800
Deep understanding of lambda expression and functional programming functional interface source code analysis
package com.java.design.java8;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.Arrays;
import java.util.Compar ...
Posted by jordz on Tue, 03 Dec 2019 01:56:08 -0800
SpringBoot modify startup log output
Create the banner.txt file in the src/main/resources directory of the project, and the startup output of SpringBoot will be changed
Buddha log
${AnsiColor.BRIGHT_YELLOW}
${AnsiColor.BRIGHT_RED}_ooOoo_${AnsiColor.BRIGHT_YELLOW}
${AnsiColor.BRIGHT_RED}o8888888o${AnsiColor.BRIGHT_YELLOW}
${An ...
Posted by avatar.alex on Sun, 01 Dec 2019 18:12:30 -0800
Validation palindrome string of LeetCode
Given a string, verify whether it is a palindrome string, only consider alphabetic and numeric characters, and ignore the case of letters.
In this paper, we define the empty string as a valid palindrome string.
Example 1:
Input: "A man, a plan, a canal: Panama"
Output: true
Example 2:
Type: "race a car"
O ...
Posted by mistercash60000 on Sat, 30 Nov 2019 01:19:08 -0800