Andrew Moa Blog Site

PyCFF - a Python-based curve fitting tool

Lately, I’ve frequently encountered situations in my work where I need to fit function curves to scattered data. Typical examples include fitting porous media parameters using the pressure drop of a heat exchanger and fitting polynomial density to a fluid medium. While these tasks can be performed using Excel, Origin, and other tools, they are cumbersome and support limited function types. Here, I’ve developed a simple toolkit in Python that implements function fitting using numpy and scipy. The user interface is written in PySide, allowing for the entire process from input data to output fitting function parameters. The tool also supports data prediction and custom functions.
7 minutes to read
Andrew Moa

Use pyinstaller to package Windows executable files

The executable program compiled using the Qt dynamic link library will rely on a large number of dynamic link library files. If you want to publish the program written on your local computer to other people’s computers, you need to package and publish the dependent dynamic link library files together with the executable program. There are many ways to package and publish, and the principle is the same. The executable program and the dependent files are packaged and compressed into a separate executable file through a compression program. When the user executes the executable file, it is automatically decompressed and run.
7 minutes to read
Andrew Moa

Building a soft router on Ubuntu

The original workstation was changed to Ubuntu 24.04, and I usually need to connect to the workstation directly through my Windows office laptop. At first, I connected to the wireless network, but the upload and download data was too slow. Later, I used a wired network card to bridge, but sometimes the data was not transmitted through the wired network card but through the wireless network card. Disabling the laptop’s wireless network card and being unable to go online for work is not a good solution.
3 minutes to read
Andrew Moa