My goal is trying to setup a git server along side with one of my existing sites. Say my site has a domain name example.com. I want to setup a git server at https://git.example.com. I chose Gogs as it is quite light-weight and it appears to be sufficient for me. For security purpose, I tried…
Reinstalling ubuntu packages
I lost my mariadb root password and the recovery process does not work after many tries. Since I was not actually using any databases on that machine. I decided to simply reinstall MySQL server. But just running sudo apt purge mysql* didn’t clean up everything. I still got configuration errors when I try to reinstall…
apt update fail after installing Jetson library on host computer
As title, the issue is “fixed” by adding [arch=amd64,i386] just after deb on every deb line in /etc/apt/source.list as suggested here. However, note that some deb lines may be included under the folder /etc/apt/source.list.d. So don’t forget adding [arch=amd64,i386] to them also. Another fix mentioned here is to remove the arm64 architecture completely. sudo dpkg –force-architecture –remove-architecture arm64 It did…
PCV valve replacement
The back story is like this. I got a 2004 V6 Mazda 6 almost 2 years ago. The engine has been shaking since I got it. Inspected by a dealer and one other mechanic and they think the catalytic converters went bad. The cats for this car are very expensive and probably cost couple thousands…
Install OpenCV inside virtualenv with Ubuntu 16.04
It is a best practice to have a separate sandbox python from the system python. The guide below probably is the simplest way to install opencv inside virtualenv. The drawback though is that it won’t install the latest opencv. But if you just need something quick to get things running, the following probably is sufficient….
Migrating wordpress to different server
I was migrating one of my wordpress site to a new server. I followed this digitalocean post to setup the server initially. It was my first time to try to migrate it to a new server. The following is supposed to work Setup nginx in new server as in the old server Copy /etc/letsencrypt folder…
Git democracy
Came across this inspiring talk by Clay Shirky. He raised the question if we can use Git for open legislation. Just jot down my favorite quotes below The people experimenting with participation don’t have legislative power and the people who have legislative power are not experimenting with participation. They are experimenting with openness. There’s no democracy…
Minimum requirements of a good engineering employee
As title, just some random thought… Able to get things done independently (should be something reasonably complex and takes days or weeks to finish) Care what he is doing and be responsible to his products Good understanding of the current progress of the project and able to communicate this with the team Just to be…
Debugging Torch with Zerobrane
I am kind of new to Zerobrane studio and followed this guide to try to debug Torch code. However, I came across with the error attempt to index a nil value (global ‘utils’) for printf = utils.printf It turns out that the path was not setup correctly. In the config file (Edit | Preferences |…
Problem upgrading Tensorflow under Anaconda
I tried to upgrade tensorflow today. I have a virtualenv for version 2 installed under anaconda 3. If I simply run pip install -U tensorflow I got error like Cannot remove entries from nonexistent file /home/user/dummy/anaconda32/envs/tst/lib/site-pack ages/easy-install.pth It turns out that this appears to be a bug from Ananconda, adding “–ignore-installed” seems to be able…