Category: Tech
-
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…
-
The Unexpected Solution: Mastering EML File Import into Mac Mail
In the ever-evolving world of digital communication, we often find ourselves facing unexpected challenges. One such challenge that many Mac users encounter is the seemingly simple task of importing .eml files into the Mac Mail application. Whether you’re migrating from another email client, recovering old emails, or trying to consolidate your digital correspondence, this guide…
-
Farewell to RDP
Today Windows finally released its “Windows App”, which replaces the Remote Desktop on Non-Window Platforms, goodbye RDP!
-
Crafting a Century-Long Legacy: The Art of Generating and Maintaining a Blog for Years to Come
Introduction: The Audacious Challenge of Long-Term Blogging In an era where digital content is often as fleeting as a passing thought, the idea of maintaining a blog for a century might seem not just ambitious, but almost absurd. Yet, it’s precisely this audacity that makes the endeavor so compelling. As we stand at the crossroads…
-
Flattening PDFs for Certain Brands Printer: A Complete Guide for Mac and Windows Users
If you’ve ever tried printing a PDF on your Brother printer and encountered the dreaded “unsupported” error, you know how frustrating it can be. This error often occurs because the printer requires a “flattened” PDF — a version of the document that has been simplified into a single layer. In this comprehensive guide, we’ll show…
-
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…
-
USB Hub with Ethernet Capability Driver needed on a computer?
I’ve never thought that in 2024 I still have to manually download and install driver for a USB Hub with ethernet functionality. I bought the UGreen USB Hub, in the beginning when I connected it to my Mac, I could not be able to find it in Settings app. Normally when a USB2Ethernet device is…
-
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…