java Foundation (24): Conversion Stream, Buffer Stream

1. Conversion flow What does it mean to construct an InputStreamReader or OutputStreamWriter on the basis of byte streams when learning about character streams (FileReader, FileWriter)?   1.1 OutputStreamWriter class   Referring to the API introduction of Output Stream Writer, Output Stream Writer is a bridge between character flow and ...

Posted by Jude on Fri, 11 Oct 2019 02:44:51 -0700

Android native PDF function realization: PDF reading, PDF page jump, PDF gesture expansion, PDF directory tree, PDF Preview thumbnail

1, background Recently, the company hopes to achieve Android native PDF function, requirements: efficient and practical. After two days of research and coding, a simple Demo is implemented, as shown in the figure above. There are still many technical points about the realization of PDF function in Android's native end. In order to avoid detour ...

Posted by nita on Thu, 10 Oct 2019 19:49:26 -0700

vue+axios+antD uploaded picture trampling

At first, we used axios encapsulated by lab bosses to upload pictures with formData. However, the form data passed to the background is empty, and the printed form does exist. Baidu searched for a big push, so it learned from Baidu's practice. 1. Introduce Axios import Axios from'axios'; 2. Create a new axios. const instance = axios.create({ ...

Posted by m00nz00mer on Thu, 10 Oct 2019 11:13:05 -0700

The Perfect Solution of RestTemplate Chinese Scrambling

RestTemplate uses the default encoding in String HttpMessageConverter for Strings public class StringHttpMessageConverter extends AbstractHttpMessageConverter<String> { //Eliminate other code public static final Charset DEFAULT_CHARSET = StandardCharsets.ISO_8859_1; } In ISO_8859_1 encoding lattice, Chinese is disorderly. So we ne ...

Posted by itarun on Thu, 10 Oct 2019 09:22:22 -0700

[LeetCode]394. String decoding (stack)

subject Given an encoded string, return the decoded string. The encoding rule is k[encoded_string], which means that the encoded_string within square brackets repeats exactly k times. Note that K is guaranteed to be a positive integer. You can assume that the input string is always valid; there is no extra space in the input string, and the squ ...

Posted by drdokter on Thu, 10 Oct 2019 00:49:30 -0700

The common layout of Android development is all in this article!

I. Brief Introduction As shown in the following figure, according to the way the interface is written, it can be divided into traditional layout and new layout. Linear layout: ** is the most commonly used layout in demo practice. It can be divided into two types: horizontal and vertical, that is, to set its attribute orientation: "vertic ...

Posted by GFXUniverse on Wed, 09 Oct 2019 22:35:34 -0700

Day015-xml module of Python module learning

xml extends markup language, which can be used to mark data and define data types. xml is a source language that allows users to define their own markup language. ElementTree is python's XML processing module, which provides a lightweight object model. When using the ElementTree module, you need the operation of import xml.etree.ElementTree. E ...

Posted by psychosquirrel on Wed, 09 Oct 2019 09:33:33 -0700

Unity Editor Encryption Scheme Based on Mono

Introduction This blog is written to game developers who need to protect their intellectual property rights. The encryption method of this article is relatively simple and easy to understand, but the effect is enough to deter most of the small white stealers. Windows Encryption Chapter Unity2017 ...

Posted by phanh on Wed, 09 Oct 2019 04:41:26 -0700

Efficient Generation of JSON Strings-json-gen

Summary Many operations on the game server (both player and non-player) need to be transmitted to the company's mid-stage to collect summaries and analyze data according to operational needs. On the other side of the platform, we need to transfer the past data in JSON format. At first, we used encoding/json in the golang standard library and fo ...

Posted by Submerged on Wed, 09 Oct 2019 02:40:50 -0700

FastDFS Learning - Installation and Configuration

Download and Installation Download and install libfast common Introduction: Libfast common is an open source C-based library, which is a C-based library separated from the FastDFS project. This library is very simple and stable. Functions include: string, recorder, chain, hash, socket, ini file read ...

Posted by mikeyinsane on Tue, 08 Oct 2019 23:22:07 -0700