Build a free open source good Docker panel Portainer

Portainer is a good control panel for Docker containers. Its code repository is here. It supports single node and cluster deployments. Prior to this, I had completely containerized my personal server. If you can visualize the operation and monitoring of various containers, it helps a lot in daily operation and maintenance, and you feel that everything is under control. You can see the effect after building, the interface is still very beautiful. You can quickly pull the mirror image You can visually publish containers and flexibly set environment variables, network, restart policy and other parameters. You can quickly update containers with new mirrors when they are updated. It is also possible to quickly access the Access Container command line and view container logs. Suffice it to say, I … Read more

AWS reserved instances limit exceeded Problem Cause and Solution

This alert usually occurs when you choose the “no prepayment” reserved instance program. The reason for this is that you don’t have enough credit, in other words, your monthly expenses are too low. In this case, it’s best to choose a partial or full prepayment plan, so you can pass. Moreover, the partial prepayment and full prepayment programs will be more cost-effective. You can save a lot of money if you buy for a long number of years.

Plans for the next phase

Actual time written: 2017-05-20 20:57:23 Have to admit that last year was a low year, whether in life, study, or spirit. Seeing and the goal is getting farther and farther away, and they are powerless to change. But now it’s different. After getting through all the difficulties, I finally found a new way of thinking and discovered myself for the first time. After solving a series of problems, my internal worries have dissolved, and I feel that I can finally concentrate all my abilities without being limited by myself. The answers that should be found, I had found. At this time, inner peace was felt. It was time to start running. The person who learns to run will no longer be the person who is tortured by himself … Read more

Fix grub2 boot UEFI after Ubuntu dual system reinstallation of Windows

If you have installed Ubuntu and Windows and then reinstalled Windows. Then the Grub boot entry will most likely be overwritten by Windows Boot Manager and you won’t be able to enter Ubuntu at that time. But don’t panic, follow the steps below to fix grub2 boot without installing additional software. Creating a USB boot disk for Ubuntu In order to repair the boot entries, we need to use the software tools provided with the Ubuntu system. Although we can’t get into the original Ubuntu system for now, we can use the image written on the Ubuntu USB stick to get a working basic Ubuntu environment. Download the image file from the Ubuntu website. You can use rufus to quickly create a USB boot disk, taking care to … Read more

Solve the problem of timeout and slow installation of yarn packages such as electron and chromedriver

Installing electron and chromedriver with yarn in China is often a problem that cannot be connected. At this time, we may prefer to use a mirror repository in China to speed up the process, rather than setting up a proxy. And when installing electron, it is useless to set yarn’s global proxy alone. So how do you set up proxies based on different packages? You can follow the sample commands provided in the list below to set it up.   yarn global settings Set the repository address used by yarn to install general packages. yarn config set registry https://r.npm.taobao.org 注册模块镜像 yarn config set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 This is the result of running the above command, and you can clearly see if the setup was … Read more

oh my zsh configuration tutorial under Ubuntu

oh my zsh is a very good configuration framework based on zsh, it can simplify a lot of daily operations of Linux end users. Moreover, its interface is very nice compared to the original bash. This article describes how to install and configure oh my zsh and its common plugins under Ubuntu. oh my zsh Installation and Basic Configuration Before installing oh my zsh, you need to install git, curl and zsh by running the following commands. % sudo apt install git curl zsh After installing the dependent items, you can directly execute the following commands to install them with one click: % sh-c “$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)” Set zsh as the default shell: % chsh Follow the prompts step by step and type /bin/zsh. Common Plugin Installation Configuring … Read more

Configure and beautify the vim editor with one click using space-vim-dark

I have been using some mature configuration files to help me configure and beautify the vim editor, however, the original spf13-vim.sh I was using has not been updated for a long time, and some of the plugins in its plugin list can no longer be downloaded properly. So I was looking for a replacement for it, and I found space-vim-dark to be quite good. space-vim-dark basic introduction After my search, I found a better and more beautiful configuration file space-vim-dark. this space-vim-dark is probably a vim configuration file written by Chinese, it can make vim adapt to the dark mode very well. First, I’ll post the repository address: https://github.com/liuchengxu/space-vim-dark This is the effect of its picture, the overall look is still good. Configure, beautify vim editor with it … Read more

Implementation of a Hybrid Simulated Annealing Algorithm for Solving the Three-Dimensional Boxing Problem MATLAB

As I need to solve a three-dimensional packing problem in mathematical modeling, I have selected the paper “Hybrid Simulated Annealing Algorithm for Solving Three-Dimensional Packing Problems” published by Prof. Zhang Defu et al. in the Journal of Computing as the theoretical basis of the problem after searching. The abstract of the paper is as follows: A hybrid simulated annealing algorithm for efficiently solving the Three Dimensional Container Loading Problem 3D-CLP is proposed . The Three Dimensional Container Loading Problem (3D-CLP) requires loading a subset of a given set of boxes into a container such that the total volume of the loaded boxes is maximized. The hybrid simulated annealing algorithm presented in this paper is based on three important algorithms: (1) the composite block generation algorithm, which differs from … Read more

Solve the problem of oh-my-zsh plugin ‘zsh-autosuggestions’ not found and plugin ‘zsh-syntax-highlighting’ not found

When installing the zsh plugin zsh-autosuggestions or zsh-syntax-highlighting, we generally encounter the problem of oh-my-zsh plugin ‘xxx’ not found. Now, we analyze and solve the oh-my-zsh plugin ‘zsh-autosuggestions’ not found and plugin ‘zsh-syntax-highlighting’ not found problems. The reason for the problem is that the code repository of the plug-in has not been cloned to the local location, so the plug-in you want is not actually installed. Solving the problem is very simple, just simply enter the following command: $ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting $ source ~/.zshrc You can then reopen the shell and find that the problem is resolved. You can also use this method to solve such problems with other plugins.

Resize hard drive partitions with Gparted Live ISO bootable images

Introduction I have an 8G TF card with Openwrt installed on it, and the capacity of the root partition is not enough to meet my usage needs. So I started to expand the size of the root partition. The file system format of the root partition is Ext4. First, I tried to use DiskGenius and other Windows tools to expand the capacity, but unfortunately, none of them worked. So, we are going to use Gparted to expand it. Since the tool needs to run in a Linux environment, I didn’t really want to install a Linux distribution virtual machine for this purpose, so I used Gparted’s lightweight ISO image with Virtual Box virtual machine. Preparation First download and install the VritualBox virtual machine and VM VirtualBox Extension Pack. … Read more