Docker build

Date Tags Docker


>>> docker build -t image_name:v1 .
Sending build context to Docker daemon  2.229MB
Step 1/4 : FROM nvidia/cuda:10.0-cudnn7-runtime-centos7
 ---> Running in 7d171c998c6a
Removing intermediate container 7d171c998c6a
 ---> 494b7b9cbb47
Step 3/4 : RUN yum -y install vim
 ---> Running …
more ...

Docker export vs commit

Date Tags Docker


2021-09-04 14:12:08.686281: I tensorflow/stream_executor/platform/default/] Could not dlopen library ''; dlerror: /lib64/ file too short
2021-09-04 14:12:08.686315: E tensorflow/stream_executor/cuda/cuda_driver …
more ...

Git LFS Bandwidth Issue

Date Tags Git

Response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.


  • Fork the repo to one of your users
  • Go to repo settings
  • Find "Include Git LFS objects in archives" under the Archives section and check it
  • Go to the Danger Zone section, select "Archive this repository"
  • more ...

Apache2 MacOS

Apache2 version: sudo apachectl -v

Apache2 diename: /etc/apache2

Apache2 config path: /etc/apache2/httpd.conf

Defualt Web source dirname DoucumentRoot: /Library/WebServer/Documents

  • httpd.conf
DocumentRoot "/Library/WebServer/Documents"

Listen 80

sudo apachectl start/restart/stop

Enable virtual host

sudo vi /etc/apache2/httpd.conf

# Include /private/etc/apache2/extra/httpd-vhosts.conf, remove '#'

Config virtual host

sudo vi /etc/apache2/extra/httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin webmaster@jerrylsu.local
    DocumentRoot "/Users/jerry/Documents/blog/output"
    ServerName jerrylsu.local
    ServerAlias www.jerrylsu.local
    ErrorLog "/private/var/log/apache2/jerrylsu.local-error_log"
    CustomLog "/private/var/log/apache2/jerrylsu.local-access_log" common

<VirtualHost *:80>
    ServerAdmin webmaster@isso.jerrylsu.local
    DocumentRoot "/Users/jerry/Documents/blog/isso"
    ServerName isso.jerrylsu.local
    ErrorLog "/private/var/log/apache2/isso.jerrylsu.local-error_log"
    CustomLog "/private/var/log/apache2/isso.jerrylsu.local-access_log" common
                    more ...

Apache2 Deploy Multi-sites

I submit the issue

1. Isso as systemd service

Switch back to your privileged(root) user and create new service file.

vim /etc/systemd/system/isso.service Paste the following in it.

Description=Isso Commenting Server
ExecStart=/home/isso/.local/bin/isso -c /home/isso/isso.conf

Enable and start the service.

systemctl enable isso

systemctl start isso

Check the status.

systemctl status isso

  • apache2 Multi-sites

  • 阿里云二级域名

  • Apach2 as reverse proxy

1.1 新增站点配置文件


Date Tags Tools


adb version

adb devices

查看所有应用列表:adb shell pm list packages
查看系统应用列表:adb shell pm list packages -s

#, …
more ...

Deploy model in production

Date Tags Tools

Install wsgi using code

git clone

apt-get install apache2-dev

apt-get install python-dev

cd mod_wsgi/



make install

Install wsgi using pip

apt-get install libapache2-mod-wsgi-py3 instead of libapache2-mod-wsgi for python3

mod_wsgi install

Load wsgi module in Ubuntu

How do I use a …

more ...