In some scenarios, for instance, in Xilinx’s Vivado HLS, we may need to write our own curve fitting function as such function is not built-in and external library may not be quick enough to handle our needs. In this article, A rapid Guassian fitting method suggested by Jacquelin will be introduced. In my case, it…
Fitting quadratic equation to a set of data points using Least Squares Method with C and Python (Verified with curve fitting function in Excel)
According to Sharma’s article, any polynomial equations could fit to a given set of data points in this way. To fit a qudratic equation to the data points below, we may try to use Sharma’s method with N = 5 (We have 5 data-point pairs). After Gaussian elimination, we will get a0 = 0.55,…
Changing the site url (public/private IP) and disabling all plugins of WordPress without accessing the admin dashboard
MAKE SURE TO BACKUP ALL YOUR DATA BEFORE USING THIS METHOD! Step 1: If you are using docker to run the MySQL server, In my case, it’s Connect to the MySQL database In my case, it’s Step 2: Display all of the databases and select the WordPress database Step 3: Modify the site URL…
Install fail2ban on Proxmox 7 (7.0-11)
This article is based on a post from the Proxmox forum: https://forum.proxmox.com/threads/pmg-7-debian-11-with-fail2ban.96109/ Step 1: Update the list of available packages & install the Fail2ban package Step 2: Edit the Fail2ban settings Step 3: Edit the Fail2ban filter. The filter is the updated one and has slightly different from the original post Step 4: Restart…
Create Proxmox Cluster (over a private network) using Tinc [Tedious method]
This article is based on this post. Since it’s dated, this article will update some steps so that Tinc could work on Proxmox 7. Proxmox Cluster uses corosync to synchronize each node. The corosync process itself is critical for latency. It is recommended the latency between each node is less than 10ms. If your…
Create Proxmox Cluster (over a private network) using Tailscale
The previous article makes use of a lightweight VPN service Tinc to create a Proxmox cluster. In this article. I will introduce a more straightforward method to create a Proxmox cluster over a private network with the help of Tailscale. Linus servers used in this article: Ubuntu Server 22.04 LTS Proxmox Cluster uses corosync…
Create Master-Master MySQL replication (over a private network) using Tailscale
To secure our servers, we shall avoid synchronizing the MySQL database over the public network. In this article, I will introduce how to synchronize two MySQL databases with master-master replication inside your Tailscale private network. Follow Steps 1-5 on this article or instructions on the Tailscale official website to set up Tailscale on your…
Synchronize your folders using Syncthing inside a Tailscale private network
We shall avoid using Syncthing over the public network directly to secure our servers. In this article, I will introduce how to synchronize folders using Syncthing inside your Tailscale private network. Follow Steps 1-5 on this article or instructions on the Tailscale official website to install Tailscale. Follow Steps 1-6 below or this article…