manjaro Configuration Overview

1 Source Arrange the speed of Chinese mirrors, select one. sudo pacman-mirrors -i -c China -m rank /etc/pacman.conf plus: [archlinuxcn] SigLevel=Optional TrustedOnly Server=https://mirrors.ustc.edu.cn/archlinuxcn/$arch To update: sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring 2 Input Method sudo pacman -S fcitx-im fcitx-confi ...

Posted by geroido on Sat, 09 May 2020 19:53:15 -0700

File operation of Python learning notes

In any programming language, file operation is the most basic function. Python is very simple and direct in file operation. It has built-in functions for reading and writing files, which can be called directly in the program. In reading and writing files, there are various problems, such as whether the file exists, wh ...

Posted by psychotomus on Sat, 09 May 2020 08:23:37 -0700

15. Chapter 15 of spring cloud Alibaba, upgrade, distributed transaction solution, Seata

Chapter 14 of SpringCloud Alibaba, upgrade, distributed transaction solution, Seata 1, Overview of distributed transactions 1. What is distributed transaction With the rapid development of the Internet, the software system has changed from the original single application to the distributed application. The distributed system will split an appli ...

Posted by fatmcgav on Sat, 09 May 2020 02:57:10 -0700

Deploy ntp services

In the privatization platform, ntp server needs to be deployed. Because it is two physical servers, in order to avoid single point problem, two ntp servers need to be deployed here. Other clients in the same network segment need to calibrate and synchronize the clock with these two servers through ntp service. Since it is a private platform, o ...

Posted by errtu on Sat, 09 May 2020 02:15:44 -0700

PHP implementation of file compression and decompression

In php, sometimes we need to use the compressed file operation, which can save disk space; and the compressed file is smaller, convenient for network transmission, and efficient. Let's learn about the compression and decompression related operations of php There is a ziprarchive class in PHP, which is specially used for compression and decompr ...

Posted by doremi on Sat, 09 May 2020 01:58:02 -0700

How to export Excel gracefully in Java

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! Preface There is a need for company project recently: report export. In the whole system, at least more than 100 reports need to be exported. At this time, how to implement rep ...

Posted by devofash on Fri, 08 May 2020 22:50:31 -0700

Java fun sharing: try & finally

Consider the following four test methods, and what do they output? public class Test {     public static void main(String\[\] args) {         System.out.println(test1());         System.out.println(test2());         System.out.println(test3());         System.out.println(test4());     }     private static int test1() {         int i = ...

Posted by nayone on Fri, 08 May 2020 07:31:28 -0700

Inject your Rootkit code into a Linux kernel module

A while ago, starting from the completion of the "real-time acquisition of the number of TCP semi-connections in the system" which can never be brought online, I stuck in the deep pit of Rootkit irregularly, got a little bit carried away, wrote a lot of essays on this and made many friends, which made me feel good. In the previous se ...

Posted by lmhart on Thu, 07 May 2020 18:27:24 -0700

Summary of jvm learning [past and present life of a class]

1 I am Queen of the Jing King of Zhongshan Hello, my name is Li Dahammer, and I am an unrivalled actor. I am about to participate in a stage play called The Romance of the Three Kingdoms, directed by Mr. Luo Guanzhong, an old man whose coffin cannot be pressed down.And I, Uncle Liu, who is about to play one of the three leading characters, hey ...

Posted by Pasa Mike on Thu, 07 May 2020 10:20:05 -0700

Configuration file@Configuration Properties reads List, Map parameters

background In the SpringBoot environment, we have "incomplete" annotations.This is why SpringBoot replaces the xml configuration in traditional Spring projects.When using these annotations, we must understand the principles and conventions behind these annotations. package org.springframework.boot.context.properties; import java.lang ...

Posted by gtal3x on Wed, 06 May 2020 09:32:15 -0700