Lua Learning Notes
As a long time nvim user, I am learning Lua and slowly transition my nvim config to lua. In this script, I will share some tips and lessons I have learned the hard way.
As a long time nvim user, I am learning Lua and slowly transition my nvim config to lua. In this script, I will share some tips and lessons I have learned the hard way.
When running apt-get update
inside Ubuntu 18.04, I have the following error:
今天总结一下“豆角焖面”的做法。
四季豆,五花肉或瘦肉,大料,大蒜,姜,青椒,五香粉,酱油,老抽,料酒,鲜面条
The thing is that I have a Logitech pebble and mx keys mini keyboard, and I use Bluetooth to connect them to my mac, but they randomly lost connection when I was using them, especially for the mx keys mini keyboard, this occurred on a daily basis.
I saw an interesting question that how to get square root of x without using builtin function from your language.
A short note on how to match non-greedily in Nvim/Vim.
To promote security, starting from Aug. 2021, many GitHub operations require use of personal access tokens (PAT).
This is a brief note on how to use Tensorboard in PyTorch.
In this post, I would like to share how to add color emoji to image with Python.
If you have two images A and B, you alpha-composite A over B, it will create an effect that you can see both image A and B in the resulting image, as if A has transparency and you can see through A and also see B.
今天介绍另外一种风格的炸酱制作,区别于之前写过的 老北京炸酱.
Non-linear activations are important in deep neural networks. It is important in the sense that without non-linear activation functions, even if you have many linear layers, the end results is like you have only one linear layer, and the approximation ability of the network is very limited1. Some of most commonly-used nonlinear activation functions are Sigmoid, ReLU and Tanh.
I have a web service where the images come in a batch so I have to do inference for several images in PIL format at a time. Initially, I use a naive approach and just transform the images one by one, then combine them to form a single tensor and do the inference. The inference becomes really slow when I have a batch with more than 30 images. The inference time is about 1-2 seconds per batch.
Like other programming languages, the best way to to use a value multiple times in LaTeX is to define a variable for it. Later when you want to change the value, you only need to change it once. Here is how to do it.
When merging branches, the most direct way we can use is to git merge
.
However, with git-merge, the commit history and graph will be messy if there are a lot of branches.
Softmax function is commonly used in classification tasks. Suppose that we have an input vector \([z_1, z_2, \ldots, z_N]\), after softmax, each element becomes:
File explorer is one of the most widely-used types of plugin for Vim/Nvim. Below are my curated list of file explorers for Nvim. Some of these plugins are specifically written for Nvim and will not work for Vim.
有个人 A 在 Vim tg 群,问了一个简单的 vim 问题,另外一位群友 B 给了间接的回答,告诉他应该多搜索一下。结果引发了大讨论,有人认为直接回答就好,没必要指教别人,没必要那么傲慢,居高临下,就炸锅了,引发了大讨论,还导致几个人退群。
Building a usable Docker image with all the packages living peacefully is hard. Here is how to install pyav using Docker.
In order to for PyTorch to use host GPU inside a Docker container, their versions must match.