Linux viewing disk usage
DU/DF enables you to view disk usage
DU
By searching for files to calculate the size of each file and then add it up, the files du can see are only some existing files that have not been deleted. The size he calculated is the sum of all the file sizes that he currently thinks exist.
Usage: du [option]... [file]...
//Or: du [options]... -- fil ...
Added by BZero on Tue, 03 Dec 2019 16:57:18 +0200
Wechat applet left slide delete operation (similar to wechat, QQ)
This function was done in the project of the last small program, but it was not recorded at that time. Today, I specially made a small demo and put it on github. Next time I meet it in the development, I can directly take it down for code reuse. The effect is very simple, similar to the effect of deleting chat bar with wechat buckl ...
Added by ptraffick on Tue, 03 Dec 2019 14:07:33 +0200
WPF Prism builds modular development framework
WPF Prism
Prism framework extension installation
Resources project
Prism main project
Module project
Prism framework extension installation
Prism has been updated to 7.x. Open VS2017 and install prism template in the extension and update.
Create 3 new projects, 1 main project, 1 module project, and the last resource pr ...
Added by Senate on Tue, 03 Dec 2019 11:56:25 +0200
Java insert attachment to PDF document
Inserting an attachment in a document can serve the purpose of matching with the source document and supplement the document in a more convenient way. The following describes how to insert attachments into PDF documents through Java programming. The document inserted here can be a common document type, such as Word, Excel, Ppt, Txt, or other fi ...
Added by Bladescope on Tue, 03 Dec 2019 04:30:11 +0200
[pyqt5 QT designer] dialog series
Standard input dialog series:
Main module
from PyQt5.QtWidgets import QInputDialog
The effect is as follows:
Full code:
from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton, QLabel, QInputDialog, QTextBrowser,QGridLayout)
import sys
from PyQt5.QtGui import QIcon
class Example(QWidget):
def __init__(self):
super()._ ...
Added by universelittle on Mon, 02 Dec 2019 22:58:14 +0200
Safety design of php interface
Safety design of php interface
The security of the interface is mainly designed around the three mechanisms of Token, Timestamp and ign, which ensure that the data of the interface will not be tampered with and called repeatedly. The following is specific:
(1)Token authorization mechanism: (Token is the credential of the client to access the ...
Added by Opv on Mon, 02 Dec 2019 16:28:56 +0200
Utilize php websocket to implement message push or timely communication function of applet wss
Applet does not have message pushing function, to achieve this, you can use php's websocket
Configure the server.
1. Upload the web-msg-sender directory to the server (download address https://www.workerman.net/web-sender) 2. Modify the start_io.php file to modify the certificate path (nginx certificate)
$sender_io = new SocketIO(2120);
Mod ...
Added by n8r0x on Mon, 02 Dec 2019 11:36:22 +0200
Spring cloud Zul integrates spring config and eureka to realize dynamic routing
1. Add dependent package
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
...
Added by nakins on Mon, 02 Dec 2019 00:11:38 +0200
Notes on advanced JavaScript programming: BOM
BOM (browser object model) provides many objects for accessing browser functions, which are independent of any web page content.
window object
global scope
There is a difference between defining global variables and directly defining attributes on the window object: global variables cannot be deleted through the delete operator, but attribut ...
Added by maheshbaba on Sun, 01 Dec 2019 10:19:37 +0200
XML parsing of java (DOM4J Technology)
Parsing XML file with DOM4J Technology
I. Introduction to XML
xml (Extensible Markup Language)Extensible meaning: allows programmers to extend new tags according to their own ideasNote: but when extending, you must follow the XML specificationSecond, the characteristics of xml:Self description,It can support cross platform,Retains the hierarchy ...
Added by e39m5 on Sun, 01 Dec 2019 03:14:51 +0200