Setup MariaDB Master/Slave Replication for Docker MariaDB

2021-12-12
阅读 5 分钟
4k
Setup MariaDB master container~/container-data/mariadb: MariaDB data files mount folder~/container-data/mariadb-log: MariaDB log files mount folderU need to specific a log-basename and server-id for master {代码...} Retrieve Binlog positionExecute into master db container {代码...} Login to maria...

Custom models display ordering for Django admin dashboard

2021-06-30
阅读 2 分钟
2.5k
By default, it displays all the apps in INSTALLED_APPS that have been registered with the admin application, in alphabetical order.

Getting start with MLPerf Hands-on

2020-06-04
阅读 7 分钟
4.3k
MLPerf: Fair and useful benchmarks for measuring training and inference performance of ML hardware, software, and services.I will go through the steps on how to set up and run one of the MLPerf training benchmarks. This will enable how you can start executing MLPerf benchmarks on your hardware: w...

Android Bluetooth Stream Non-blocking Communication Tutorial

2019-11-25
阅读 2 分钟
1.9k
This is a tutorial for Android to do non-blocking bluetooth socket communication. I am using 32feet Bluetooth library, but it should be the same if you were using other network socket communication that reply on inputstream mechanism.

Python Socket File Transfer

2019-11-25
阅读 2 分钟
1.7k
I have a RPi which I intented to use it to crawl data. The development environment in RPi is very bad, so I did my programing in PC. This lead to an issue that I need to transfer the distribution from my PC to RPi. I does not want to use thumbdrive as the RPi will not be located near my PC. So I ...

Create a self-signed SSL Certificate using OpenSSL in Windows

2019-06-13
阅读 8 分钟
2.8k
Unfortunately, there is no official OpenSSL client for Windows. However, you could download it from WinOpenSSL.

TensorFlow Object Detection API Custom Object Hands On

2019-01-31
阅读 11 分钟
5.1k
Install TensorFlow (I am using TensorFlow CPU this time. In the next post, I will explain how to install TensorFlow GPU)[链接]

How to create a SQL Agent Job for MySQL

2018-06-06
阅读 2 分钟
3.1k
How to create a SQL Agent Job for MySQL for scheduling the Database Task Using Event Scheduler To enable or disable the execution of scheduled events, it is necessary to set the value of the global event_scheduler system variable: {代码...} To rescind the EVENT privilege, use the REVOKE statement...

How to serve uncommon file in WebDAV using IIS in Win Server

2018-01-04
阅读 2 分钟
2.1k
We are using a cross-platform web password manager, and this manager is deployed in our own on promised cloud. Although it supports Dropbox, Google Drive, One Drive, our network does not allow them. So, the issue comes, the data file need be stored somewhere in the network. Then the only choice l...

A Handy Guide for Newbie of Overriding rest-auth Serializers

2017-12-14
阅读 7 分钟
4.8k
本来我是打算写“A Handy Guide for Newbie of Overriding django-allauth Forms and django-rest-auth Serializers”两个一起的。。但是因为SF只允许标题最多64个有效字符,所以我只能分开写了。。就算是这样,django-rest-auth的全名都不够。。

A Handy Guide for Newbie of Overriding django-allauth Forms

2017-12-14
阅读 4 分钟
2.9k
本来我是打算写“A Handy Guide for Newbie of Overriding django-allauth Forms and django-rest-auth Serializers”两个一起的。。但是因为SF只允许标题最多64个有效字符,所以我只能分开写了。。

Send E-mail with PDF attachment using Node.js

2017-12-05
阅读 3 分钟
5.3k
As in the requirement, I am generating PDF document using PDFkit. Then I need to send the PDF file as attachment in E-mail.

Arduino NFC Waspmote LoRa P2P RPi DRAGINO

2017-11-20
阅读 4 分钟
3.3k
It is quite complex solution as the environmental constrains.My DB server is in a lab and the distance from the door to the lab is quite far, so the WiFi cannot reach. So the only fast and cheap solution is to use LoRa, lucky we brought them.

Windows 10下程序员常用软件

2017-10-22
阅读 1 分钟
3.4k
Sublime Text 3特别好用的文本编辑器,同时也是代码编辑器。。Notepad++唯一的一点Sublime做不到的用处就是如果是系统文件,需求管理员权限,那么Notepad++会自动询问是否切换成管理员模式,Sublime则只会提示警告。。Notepad++我只用来修改host文件。。TyporaWindows下特别好用的Markdown编辑器

Deploy NodeJS Docker to QiO Edge Cloud using Kubernetes

2017-09-26
阅读 1 分钟
1.8k
Create a file of the name Dockerfile with the content below and put into your project root folder.

Deploy NodeJS with node-red, mongodb, dashboard in Docker

2017-08-16
阅读 1 分钟
3.8k
Create this file with the name Dockerfile and put into your project root folder.

Deploy Django Project of local MySQL DB using Docker

2017-07-10
阅读 3 分钟
4k
Normally, those kinds of things will be much more troublesome when you want to run them in Windows compare to in Linux. However, Docker has made quite user-friendly for Windows. You just need to run the Docker installer and to enable below two things, then Docker will work like a charm.