Logo Zekun's Zone
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Run jupyter notebook in docker container on remote server
  • CUDA Errors and Solutions
  • Clean up boot directory when full
  • Display JPEG historical map tiles in Mapbox
  • Experience with Mapnik
  • Common Commands
  • Dual Monitors with Ubuntu 16.04 LTS
  • Raspberry Pi Timelapse Video
  • Stop SSH connection from timeout
  • Raspberry Pi Connect To WIFI with Command
  • ChatGPT for Novel Translation
  • Two Github Accounts with Two SSH Keys
Hero Image
Two Github Accounts with Two SSH Keys

To use two different GitHub accounts, one for work and one for personal use, you will need to create two separate RSA keys. Create Two RSA keys Here are the steps to create two RSA keys: Open your terminal. Input the following command, replacing “email@example.com” with your email address: ssh-keygen -t rsa -C "[email@example.com](mailto:email@example.com)" When asked to enter a file in which to save the key, type in a unique name for each key.

March 27, 2023 Read
Hero Image
ChatGPT for Novel Translation

ChatGPT is a powerful and versatile large language model that can assist in many NLP tasks. One such task is translation, and in this blog post, we will show you how to use ChatGPT to translate Chinese web novels into English. Step 1: Create an OpenAI account Before you can use the ChatGPT model for novel translation, you need to create an OpenAI account to obtain an API key. This key will grant you access to the platform’s powerful tools and resources, including the ChatGPT model.

March 25, 2023 Read
Hero Image
Raspberry Pi Timelapse Video

Recording a timelapse video of a sunset can be a fantastic way to capture the beauty of nature in a condensed form. Without a bulky professional camera, you can still record a timelapse video with Raspberry Pi easily. In this blog post, we’ll introduce the raspistill and ffmepg command for creating videos. We can take a look at a demo video shot with pi-camera v1.3 on Raspberry Pi. It was a maganificant sunset in Minnesota.

November 14, 2022 Read
Hero Image
Raspberry Pi Connect To WIFI with Command

If you have an extra monitor, keyboard and mouse, then connecting Rapsberry Pi to WIFI is really easy. You just click a few buttons in the GUI and you’re done. However, these gadgets are not always handy. In this case, you will need to connect the Pi with WIFI with command line. This blog shows you how to do it. Things to prepare: Ethernet Cable A device with network connectivity (mine is MacBook) Steps On the WIFI-connected device, type ifconfig | grep broadcast | arp -a.

October 14, 2021 Read
Hero Image
Connect to Remote Server with VSCode

This blog has the video tutorials of the following two things: Connect to UMN MSI server with VSCode Use UMN MSI with GPU

October 4, 2021 Read
Hero Image
Run jupyter notebook in docker container on remote server

Jupyter notebook is an extremely convieninent tool for debugging a piece of code. It runs on browser and allows you to run code piece by piece instead of fresh from the begining. With docker, jupyter notebook is slightly more confusing than it is on local machine. This short article talks about how to correctly forward the port to run jupyter notebook in docker container on remote server. We will have three locations to deal with; local machine, remote server, docker container.

August 8, 2021 Read
Hero Image
Common Commands

Add python2 kernels to jupyter notebook: (source: https://ipython.readthedocs.io/en/stable/install/kernel_install.html) python2 -m pip install ipykernel python2 -m ipykernel install --user Add python3 kernels to jupyter notebook: python3 -m pip install ipykernel python3 -m ipykernel install --user AttributeError: module ‘matplotlib.colors’ has no attribute ’to_rgba’ Update matplotlib python3 -m pip install --upgrade matplotlib Customized Datagenerator having AttributeError: ‘ProgbarLogger’ object has no attribute ‘log_values’ Check if the data generator could not load data correctly (0 sample)

January 5, 2021 Read
Hero Image
Dual Monitors with Ubuntu 16.04 LTS

Ubuntu 16.04 default dual monitor setting sometimes doesn’t work if you have one monitor placed in vertical position. In this case, the easiest way would be configure it manually. If your second monitor is still black after plugged in the HMDI cable, remember to check the Display setting, the second monitor should be turned “On”. First you should download the CompizConfig Settings Manager. The installation guide can be found here.

January 5, 2021 Read
Hero Image
Stop SSH connection from timeout

When you’re connecting to the server, sometimes you got “Broken Pipe” prompt that kicks you off from the server if you are not active for a while. This can be quite annoying if you have unsaved changes in the code and was just away for a bit searching for some solution. This can be stopped from happening if you could change the ssh configuration on the server. Open the file /etc/ssh/sshd_config on server and add the following lines in the end.

January 5, 2021 Read
Hero Image
Display JPEG historical map tiles in Mapbox

Mapbox is a great tool for visualizing maps especially when you have multiple layers and would like to compare them at the same location. In my case, I have millions of small tiles in jpeg format, and I would like to overlay those tiles on OSM map. Those map tiles are generated from a neural network by taking OSM tiles as input and the resulting tiles are close to historical style.

January 2, 2021 Read
Hero Image
Experience with Mapnik

For some reason, I needed to use mapnik to render the .osm file into tiles (png format), and I started my long journey with mapnik. The task is to render the text label layer only, without any background geographical features. Things started off smoothly. I found python already have pip installation for mapnik so I simply typed pip install mapnik to install it on my machine. I followed the tutorial here and successfully reproduced the output.

September 5, 2020 Read
Hero Image
CUDA Errors and Solutions

CUDA is a parallel computing model created by Nvidia to assist the usage of GPU. It is widely used in the training of deep-learning models. It greatly speed up the computation in model training compared with its CPU-based counterpart. However we might encouter problems when using it, and here is a summarization of some common problems and the solutions. Please note that this post is not emphasizing on the installation of CUDA.

June 8, 2020 Read
  • ««
  • «
  • 1
  • 2
  • »
  • »»
Navigation
  • About
  • Experiences
  • Publications
  • Selected Projects
  • Accomplishments
  • Recent Posts
Contact me:
  • li002666 [Shift+2] umn.edu
  • zekun-li

Toha Theme Logo Toha
© 2023 Copyright.
Powered by Hugo Logo