In depth understanding of the case and practice of Java virtual machine class loading and execution subsystem

9.1 overview In the part of Class file format and execution engine, there are not too many contents directly affected by the user's program. How to store the Class file, when to load the Class, how to connect it, and how the virtual machine can execute bytecode instructions are all directly controlled by the virtual machine. The main functions ...

Posted by dlgilbert on Sat, 07 Mar 2020 11:08:29 +0100

Can you call Directory.GetFiles() with multiple filters?

I'm trying to use the Directory.GetFiles() method to retrieve a list of multiple types of files, such as mp3 and jpg. Without luck, I tried the following two methods: Directory.GetFiles("C:\\path", "*.mp3|*.jpg", SearchOption.AllDirectories); Directory.GetFiles("C:\\path", "*.mp3;*.jpg", SearchOption.AllDirectories); Is there a way to do ...

Posted by umer on Fri, 06 Mar 2020 11:56:12 +0100

Smart pointer in Android

There are three smart pointers available in Android: ① sp + LightRefBase: simple reference count, only strong reference count. ② Strong reference pointer (sp + RefBase): use strong reference count. ③ Weak reference pointer (wp + RefBase): use weak reference count. 1, Lightweight pointer The simplest way to count references is to use a counter t ...

Posted by Angerslave on Fri, 06 Mar 2020 08:22:11 +0100

docx4j in depth learning

I. Preface       In my work, I often encounter the processing and operation of word, the most commonly used is the export of word documents, and I often encounter a variety of complex formats of word. At the beginning, I used poi, but I struggled for a period of time, modfa, instead of using docx4j, which is very powerful. Well ...

Posted by bogdan on Fri, 06 Mar 2020 05:31:58 +0100

Thinking and practice of programming

A - Chemistry Title Description Chemistry is amazing. Here are alkanes. Suppose, as shown in the figure above, this alkane group has 6 atoms and 5 chemical bonds, 6 atoms are labeled 1-6 respectively, and then a pair of numbers a and b indicate that there is a chemical bond between atom A and atom b ...

Posted by mise_me_fein on Wed, 04 Mar 2020 11:46:38 +0100

The pit I stepped on when I learned Java in those years

All the way to learn Java is like stepping on a hole. Come and let's count my blood and tears over the years Rookie stage, spend almost every day on thunder... First: the database table field cannot use sql field, and a 500 error will be reported. For example, the order will report an error when select ing. Second: when using int type for ...

Posted by Fergusfer on Wed, 04 Mar 2020 10:51:00 +0100

Linux programming to realize DS18B20 to detect the temperature of raspberry pie

Catalog (1) Project introduction (two) code and debugging (3) Summary (1) Project introduction DS18B20 is a commonly used digital temperature sensor. Its output is a digital signal, which has the characteristics of small size, low hardware cost, strong anti-interference ability and high precision. T ...

Posted by ramblix on Tue, 03 Mar 2020 11:04:52 +0100

shell script to export remote mysql database table data to local

Script function Brief 1. Export remote mysql database table data to local and save as file 2. Support the configuration of table information to be exported to the configuration file. The script will cycle the configuration file and parse the configuration file, and then complete the subsequent data export. 3. Incremental export by time is ...

Posted by DJP1986 on Tue, 03 Mar 2020 09:58:27 +0100

Embedded notes of Blue Bridge Cup

This article is my experience after participating in the Blue Bridge Cup embedded competition and some of my own summary of the driver code, hoping to bring some help to the students who participate in the Blue Bridge Cup embedded in the future. This article has not been proofread. If there are any mist ...

Posted by NuLL[PL] on Mon, 02 Mar 2020 07:49:47 +0100

Chapter 6 function oriented programming

Chapter VI functions 4.1 function definition and call 4.1.1 why to use function 1. Improve code reusability -- abstract and encapsulate as function 2. Decompose complex big problems into a series of small problems, divide and rule -- the idea of modular design 3. Facilitate code maintenance and m ...

Posted by SiriusB on Mon, 02 Mar 2020 06:01:33 +0100