Electron Cross-Platform Development Practice - chapter08 - Deep Integration (shell module), Dynamic Launch Menu Item
Catalog
Use shell module in rendering process (UI interface)
Use shell module in application menu
Use shell module in context menu
Disable Menu Items
!!
Dynamic Generation Menu
Disable menu: enabled:!! filePath
Dynamic startup menu: createContextMenu().popup();
Application Menu
...
Added by kentlim04 on Thu, 25 Jun 2020 03:04:27 +0300
Android Solution Android 10.0 Specifies hotspot network non-communicative issues via hotspot name and password connections
1 Question
Android 10.0 devices connect to another device through a hotspot name and password to specify a hotspot, but they still cannot communicate with each other and the network is unreachable.
The Android 10.0 device connects another set of designated hotspots by hotspot name and password. I'm using the official API and can refer to this ...
Added by modigy on Tue, 23 Jun 2020 04:07:36 +0300
CURD basic operation of MongoDB
Note: This paper is based on MongoDB 4.2.6
1. Delete
Delete a document
> db.bb.find().pretty()
{
"_id" : ObjectId("5ed6549830571733ccb3d678"),
"jordan" : 23,
"haha" : "ending"
}
{
"_id" : ObjectId("5ed6549830571733ccb3d679"),
"kobe" : 24,
"haha" : "ending"
}
> db.bb.remove({jordan: 23})
...
Added by StefanRSA on Sun, 21 Jun 2020 09:46:27 +0300
Pandas: from shallow to deep
What is panda?
pandas is a NumPy based tool, which is created to solve data analysis tasks. pandas incorporates a large number of libraries and some standard data models, providing the tools needed to efficiently operate large datasets. pandas provides a large number of functions and methods that enab ...
Added by Braveheart on Wed, 17 Jun 2020 06:08:58 +0300
shell script exercises
1. Count the number of files under / var/log.
//find /var/log -type f | wc -l;
2. How to output the running result of F1.txt file to F2.txt?
// ./F1 > F2.txt shF1 > F2.txt;
3. Write a script to judge which ip addresses are currently online in the 192.168.1.0/24 network, and ping the gen ...
Added by brbsta on Sun, 14 Jun 2020 05:18:43 +0300
It's multithreaded, so beginners can understand it
What is thread
When it comes to threads, we should first understand what a process is. You should be familiar with this picture.
The programs we see running separately are independent processes, and the processes are independent of each other. The 360 browser and Baidu cloud disk in the above figure are all independent processes.
So what are th ...
Added by davidlenehan on Fri, 12 Jun 2020 09:03:54 +0300
Python 3 web crawler: Comics downloading, dynamic loading, and anti crawler are nothing
1, Foreword
By Jack Cui
After the learning of the last two articles, Python crawler takes three steps: request initiation, data parsing and data saving. Have you mastered them? Are they entry-level crawlers?
No, it's not enough! Only mastering these skills can only be regarded as layman level.
Today, let's continue to learn how to clim ...
Added by cshaw on Thu, 11 Jun 2020 10:01:27 +0300
Partition Subtable for MySQL
1. Why divide tables?The database data becomes larger and larger, with too much data in a single table.This results in slower queries and database performance bottlenecks due to the lock mechanism of tables, which can seriously affect application operations.One mechanism in mysql is table and row locking to ensure data integrity.A table lock m ...
Added by johnnyblaze9 on Thu, 04 Jun 2020 03:09:26 +0300
Deploy asynchronous download service
Asynchronous Download
1, Background
At present, the system is slow to download large files, slow to export, a large number of interfaces occupy server bandwidth and other problems, which seriously affect the user experience. Based on this background, the asynchronous download function is developed and implemented.
2, Project structure
Brain ...
Added by fuzz01 on Tue, 26 May 2020 18:42:40 +0300
Linux command (22) useradd command
useradd command
Function Description: add user or update default new user information
Usage: useradd [options] login_name
option
explain
-u,--uid UID
When adding a new user, specify the UID number manually. The default is the UID+1 of the previous user, the UID usage range (CentOS6) 500 +, (CentOS7) 1000+
-g,--gid group_name
When a ...
Added by j152 on Mon, 25 May 2020 14:46:35 +0300