Technical Notes
-
[BUG] Fixed the issue where Discuz 3x users could not delete their own posts.
Discuz is truly declining in popularity; bugs are rampant and no one seems to be fixing them. I searched for related questions on the forums, but no one answered. I had to take matters into my own hands. Situation: Users cannot delete their own posts. Solution: 1. Settings In the admin panel – Global…
-
60-Minute Introduction to iOS Development
This article is aimed at iOS development beginners with prior programming experience in other languages (such as Java, C, PHP, Javascript). The goal is to enable my colleagues to understand how to start developing an iOS app within one hour. Learning objectives include: being able to use the Xcode IDE, simulate…
-
Solution to "/etc/fstab cannot open file for writing" error - unable to modify or save.
There's a disk partition mounted to two directories. I directly executed `umount -a` to unmount both mounts. The configuration in `/etc/fstab` wasn't cleared. After opening `/etc/fstab` with `vi`, it reverted to its original state, but saving resulted in the error message "-- INSERT…".
-
Setting folder size limits in CentOS
Creating folders with quotas primarily utilizes loop devices in Linux. Linux has a special type of block device called a loop device, which is a virtual block device created by mapping normal files on the operating system. In other words…
-
Hacks for different browsers—CSS manipulation for specific browsers (Webkit moz)
A hack is writing different CSS styles for different browsers to achieve a consistent rendering effect across them. This process of writing different CSS codes for different browsers is called CSS hacking, or simply writing a CSS hack. Then, the hack…
-
HTTP Status Codes
A 404 page is a page returned by the server with a 404 redirect status. The number 404 refers to the 404 status code. Commonly used status codes include 200 and 404. 200 indicates the webpage was downloaded successfully, while 404 indicates the download failed and an error occurred. Below is…
-
One-click VPN installation on CentOS 6.5
This tutorial applies to OpenvVPS, XenVPS, or KVM VPS. First, run the following command: `cat /dev/net/tun`. The returned value must be: `cat: /dev/net/tun: File description…`
-
PHP Object-Oriented Technology (Detailed Explanation, Suitable for Beginners)
1. The Concept of Object-Oriented Programming (OOP): Object-oriented programming is a computer programming framework. A fundamental principle of OOP is that a computer program consists of individual components that can perform…
-
Installing and configuring LAMP on a brand new CentOS 6.5 host
CentOS 6 64-bit was automatically installed by Linode, and it's very clean with nothing installed. Since some compilation is still necessary, I'll first set up the compilation environment using yum: `yum install gcc gcc-c++ make flex bison …`
-
[Original] Discuz X3 adds email address verification to determine whether an invitation code is required—invitation code + email dual authentication
Please indicate the source when reprinting. After an afternoon of research, I finally completed this feature and am sharing it with everyone. The specific function is as follows: It determines whether an invitation code is required based on the email address. For example, if a user has an .edu email address, they can register without an invitation code; otherwise, they will need to enter one…
-
Practical tutorial on setting up a VPN on CentOS 6.5
This practical guide demonstrates manual installation. For one-click installation, please refer to: CentOS 6.5 One-Click VPN Installation. 1. Environment Preparation: PPTPD requires Linux kernel support for MPPE, which is generally included during CentOS installation. The following steps install PPP and iptables: yu…
-
Installing and configuring VNCServer on CentOS 6.5
If VNCServer is not installed, you can only connect via VNC after logging into the desktop on the machine; otherwise, you will not be able to connect… Please install the graphical desktop environment first. Details: CentOS 6.5 GNOME Graphical Interface Installation Tutorial. Installation: yum in…
-
CentOS 6.5 GNOME Graphical Interface Installation Tutorial
Without further ado, here's the method: `yum grouplist` checks installed groups; `yum groupinstall "X Window System"`; `yum groupinstall "GNOME Desktop"`...
-
The Linux crontab command allows the server to automatically execute PHP.
Syntax: crontab [-e [UserName]|-l [UserName]|-r [UserName]|-v [UserName]|File ] Description: crontab is used to allow users to…
-
CentOS 5 Host One-Click VPN Installation Tutorial
There are many configuration tutorials online, but they are all manual, and the configuration is very complex. Unless you have professional technical skills, you won't be able to operate it, and even if you do, you'll likely encounter many errors. This tutorial uses CentOS 5 32-bit; I haven't tested other environments yet. This tutorial is a one-click installation tutorial. If you prefer manual installation…