Category: Programming
-
Mastering Nginx: Serving HTTP&HTTPS Traffic from a Single Port
When I first set up my web server, I used port 8086 for HTTP traffic. It worked fine—it was functional, accessible, and did what I needed. But as time went on, I realized something: sticking to standard ports, 80 for HTTP and 443 for HTTPS, isn’t just about following convention; it’s about improving accessibility, security, and professionalism. In this post, I’ll…
-
Discovering ‘last’: The Swiss Army Knife of System History
Have you ever needed to track down when your system was rebooted? Recently, I found myself in this exact situation. My first instinct was to dive into Console.app on my Mac, but I quickly got overwhelmed by the sheer volume of logs and information. It was like trying to find a needle in a digital…
-
gmail-backupy repo
This blog serves as supplementary material for the github repo gmail-backupy, as the github repo readme suffers from multimedia support. The main reason to do so is to test and verify my Python skills when trying to maintain a semi-large project. The original repo “gmail-backup” provides Gmail email backup and restore capabilities, but had not…
-
git Note
I’ve always trying to summarize an article of how to use git, but there has been a lot of resistance of doing so, one reason is that there are sufficient material that have enough info of how to use git. Although they provide a very detailed info regarding how to use git, I or beginners…
-
Use Python to automate the Microsoft Word Weekly Report Task
I need to figure a workflow to automate the process of creating a new Microsoft Word document as weekly report. Althrough I’ve written an article about using Python to handle the task of generating powerpoint slides based on a template, this blog dicusses mainly on Microsoft Word document and how to use previous weeks report…
-
Revolutionizing Academic Workflows: AI-Powered Equation Extraction from PDFs to LaTeX
In the fast-paced world of academia and technical writing, efficiency is key. As researchers, students, and professionals, we often grapple with the tedious task of extracting equations from PDF papers and converting them into LaTeX code. This process, while crucial for writing papers, blogging, or taking comprehensive notes, has long been a bottleneck in our…
-
Interact with Python virtual environment
Using python for mahcine learning projects is totally different from utilizing the language for productivity on daily tasks. Python official website provides the documentations for venv1. This post2 contains a comprehensive guide on how to use the virtual environment. There are lots of tutorials on how to setup, manage and dispose a python virtual environment…
-
a glimpse of ssh remote servers via sshls
Suppose one has access to many servers via ssh, the config file has been properly managed, sometimes it is still difficult to remember the alias for each server. It would be much better to run a command line to print out a list of server names and public key comments associated with the server from…
-
Read and write most commonly used config files
Configuration files are crucial for setting up software applications, specifying settings, and managing operational parameters. In this article, we will explore the top most commonly used configuration file formats, understand their history, advantages, and disadvantages, and provide Python snippets for reading and writing these formats. These config files include JSON, conf, XML, HCL, YAML, TOML,…
-
A Tutorial on scikit-learn
Scikit-learn is one of the most fundamental machine learning tools. You could access its official website here. It may not as fancy as pytorch or tensorflow, but scikit-learn is a good starting point for beginners to learn about machine learning algorithms. In this tutorial, several aspects will be shown, including installation, datasets as well as…