Tag: python

  • 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…

  • Accelerate Pytorch

    Use Pytorch to accelerate with GPU or apple silicon with Metal

  • 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…

  • 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,…

  • Debugging Python Using Visual Studio Code

    Introduction The main purpose of the tutorial is to provide a way for you to debug projects that may run the code with different command line arguments rather than merely running a python script. This requires you to modify the launch.json file in Visual Studio Code. Microsoft provides a detailed page on how to setup…

  • Install newest Python as a normal user

    Sometimes you and not the root user or admin, but you cannot fed up with the outdated python environment like Python3.6 or Python3.7. I tried to find out a solution, as a matter of fact, it is not difficult to do, we presume that one wants to install the python environment in on a Linux…