Vue3 encapsulates custom instructions and hooks, and publishes npm packages

Requirements: Encapsulate a function that requires monitoring the width and height changes of the DOM, and supports both custom instructions and hooks. Step 1: Create the project folder v-resize-xm 1. Create the src folder in the v-resize-xm folder Execute the pnpm init command to generate a package.json file 2. Install ts sudo npm install -g […]

python exceptions, modules and packages

1. Abnormal Exception: When an error is detected, the Python interpreter cannot continue to execute. Instead, some error prompts appear. This is the so-called “exception”, which is what we often call BUG. 1.1 Catching Exceptions Basic syntax: try: error code may occur except: Code to be executed if an exception occurs Code example: # Try […]

Java SE packages, packages, static keywords and code blocks

1. Encapsulation 1.1 Concept of encapsulation There are three major characteristics of object-oriented programs: encapsulation, inheritance, and polymorphism. In the class and object stage, the main research is on encapsulation characteristics. What is encapsulation? simply put It’s the shell shielding details. Encapsulation: organically combine data and methods of operating data, hide the properties and implementation […]

java decompress all rar compressed packages

Introduce dependencies <!– rar–> <dependency> <groupId>com.github.axet</groupId> <artifactId>java-unrar</artifactId> <version>1.7.0-8</version> </dependency> <dependency> <groupId>net.sf.sevenzipjbinding</groupId> <artifactId>sevenzipjbinding</artifactId> <version>16.02-2.01</version> </dependency> <dependency> <groupId>net.sf.sevenzipjbinding</groupId> <artifactId>sevenzipjbinding-all-platforms</artifactId> <version>16.02-2.01</version> </dependency> ExtractCallback You need to first ship the ExtractCallback tool class and then call the method /** * @Author JimmySong * @Date 2023/11/8 13:49 * @Version 1.0 */ import net.sf.sevenzipjbinding.*; import java.io.*; public class ExtractCallback implements IArchiveExtractCallback […]

Linux packages Qt programs as AppImage packages

Foreword In the Linux environment, after developing a Qt program, it also needs to be made into an installation package or executable file for distribution. Here is an introduction to using linuxdeployqt to package Qt programs into .AppImage applications (similar to Windows’ green installation-free software) Environment configuration Configure Qt environment variables This step is to […]

How to list installed Python packages

Working on a Python project may require listing installed Python packages in order to manage dependencies, check for updates, or share project requirements with others. In this article, we will look at various techniques for listing the Python packages installed on a system. List installed Python packages Here are some ways we can list installed […]

Galaxy Kirin server system docker environment imports the base image, installs openjdk-1.8.0 and repackages it

In the docker environment of the Galaxy Kirin server system, import the base image, install openjdk-1.8.0 and repackage 1. System version 2. Install docker and start the service 1. Configure external network source 2.Install docker package 3. Start the service and set it to start automatically at boot 3. Base image import configuration 1. Upload […]

Vite+Vue3+TS packages an npm component and supports the IDE’s code prompt function

1. Development components 1.1 Create a new project Create a new project using vite npm create vite@latest Select Vue and Typescript Need to install the following packages: [email protected] Ok to proceed? (y) √ Project name: … vite-vue3-ts-test-fjc √ Select a framework: ? Vue √ Select a variant: ? TypeScript Scaffolding project in D:\coding\study\vite-vue3-ts-test-fjc… Done. Now […]

[Linux] Installation and query of Linux operating system software packages

1. Rpm installation 1.1 System commands and applications The relationship between applications and system commands Character Command Program File location Generally in the /bin and /sbin directories or as Shell internal commands Usually in the /usr/bin, /usr/sbin and /usr/local/bin, /usr/local/sbin directories Main purpose Complete basic management of the system, such as IP configuration tools Complete […]