Technical Notes
-
WordPress has added a comment function to the Fragmented Thoughts/Moments/Weibo
2026.2 Update If you need to force the post id in url to be used, you can use the following code //force talk use post id in url add_filter('post_type_lin...
-
Algorithm Problem Sharing: VimOperator – Simple operation simulation of Vim
Recently, I have been seeing some strange topics, and I will continue to share them with you. Title Simulate the operation of vim left and right, replace operation, roughly like the GIF l: move the cursor rightl: move the cursor rig...
-
Algorithm Question Sharing: Given a string, consisting of "0", "1" and "?" Composition, where "?" It can be replaced with 0 or 1 for all possible results
I saw a more interesting question today, and found that there was no answer on the leetcode, and there was no reference answer on the Internet, so I wrote one myself to share with you. Question Given a string consisting of "0", "1" and "?" Composition, where "?" can be replaced with 0 or 1, finding all possible knots...
-
Abstract classes and interfaces in JAVA usage and distinction
1. Abstract classes The keyword for abstraction in Java is abstract, and abstract classes are created for inheritance, simply and clearly telling users and the compiler what they look like. For example, the syntax of an abstract class declaration: abstract class abc {...
-
How to create your own Cocoapods and publish to GitHub (Swift)
Recently, I have been doing some iOS work, and I happened to come across creating my own Cocoapods, which seems complicated, but it is actually quite simple, so I will share the strategy: Suppose you have: Installed xcode Installed Cocoapods Step 1: Create an empty git this...
-
How to downgrade Golang from 1.13 to 1.12
Recently, I have been studying golang, and I found that the difference between versions is quite large, here is how to downgrade golang, this method has universal adaptability: Step 1: Confirm your version ~|⇒ go version go version go1.13....
-
[Open Source] Discuz! Plugin – Post promotion/payment notification administrator
Plugin Introduction This plugin is mainly used to notify administrators, users can pay a certain amount of coins in their own posts (background settings), and then the administrator will receive relevant notifications. Mainly used for post paid promotion Applicable version Discuz! 3.4 GBK Git https:…
-
[Open Source] Discuz! Plugin – Pay for coins to auto-top
Plugin Introduction This plugin is mainly used for community gold coin consumption, users can pay a certain amount of gold coins to realize their posts are automatically topped (the system is not traced to top) The background can set the amount of gold coins to be paid and recharge Lu Jin Applicable version of Discuz! 3.4 GBK Git https…
-
[Open Source] Discuz! Plugins – Invitation to sign up to skip verification
Preface Recently, I sorted out the code and found that some discuz plugins developed before can still be used, and I am no longer able to maintain them, so I have sorted them out and opened them up to everyone, hoping to help those who need them, and there are people with lofty ideals to maintain them together. Plugin Introduction This plugin is mainly suitable for dis...
-
Sharing a brief discussion on database concurrency control – locks and MVCC
After a few years of programming, you will find that there is no simple and fast solution to all problems, and many problems require trade-offs and compromises, and this article introduces the trade-offs and compromises between concurrency performance and serialization of databases - concurrency control mechanisms. If the ...
-
fdisk and df commands to return different hard drive sizes?
Event Description Recently, the external hard disk of the VPS on lightsail was full, and a new larger hard disk was created by backing up snapshot, and it was connected to the VPS, but it still prompted that the hard disk was full, and the hard disk size was checked by the fdisk -l and df -th commands, and it was found that the hard disk was returned...
-
Resolve the 502 error when discuz logins
This question has been around for a long time, and today there is time to study and solve it. Problem When logging in, clicking to log in does not respond, does not jump, prompts in the console, member.php jump to 502 error. Solve this problem will appear randomly, I thought it would be to go to H...
-
Can a multi-column index on a database use it to query a single column?
Today I was asked a question about database indexes, and I was asked all of a sudden. So I found information on the Internet to sort out and study. The question is as follows: If a joint index (multi-column index) is created on A and B in a table, will this be used when I query column B...
-
Explanation of various joins in SQL (Inner/Left/Right diagram)
Foreword When talking about the difference between various JOINS in SQL in various Q&A communities, the most widely cited is C.L. Moffatt's article Visual Rep...
-
Fix “Cannot read property ‘toFixed’ of undefined” for Yet Another Starts Rating Plugin
Issue When using Yet Another Starts Rating WordPress Plugin on mobile, users can’t vote for ar…