原创 Linux Genymotion & VirtualBox

安裝VirtualBox https://www.virtualbox.org/wiki/Downloads 下載安裝包和擴展包(爲了設置外接設備) 設置usb 命令行 groups # 查看當前用戶組 需要把附屬組添加一個vboxu

原创 Foundations of PyGTK Development_ GUI Creation with Python (2019, Apress).pdf

PyGTK 2019編程書籍分享 嚴禁用於商業用途,僅供個人學習使用 鏈接: https://pan.baidu.com/s/1yXMWvu0qunHHsEeedhLM7Q 提取碼: brer 複製這段內容後打開百度網盤手機App,操作更方

原创 Flutter+NodeMcu 控制燈光

設備清單 NodeMcu 杜邦線(公對母) 繼電器5v microusb線 實現邏輯 使用Arduino將編寫的UDP Server代碼燒寫進NodeMcu 連接好NodeMcu和繼電器和microusb線 編寫Flu

原创 Flutter發送UDP包

見下面代碼 import 'dart:io'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends S

原创 安裝Win10

1. 下載鏡像 到https://msdn.itellyou.cn/ 找到你想要的鏡像 下面是win10 2016長期支持版 ed2k://|file|cn_windows_10_enterprise_2016_ltsb_x64_dvd_9

原创 Linux搭建Flutter開發環境

本文記錄在有科學上網的前提下進行。 1 安裝android studio https://developer.android.com/studio 安裝好後設置代理,新建一個app,彈出默認代理,設置,ok 如果下載Gradle失敗,關閉代

原创 Ubuntu/Mint配置VSCode Go插件

先在VSCode安裝go插件。 兩種方法可以實現 1 下載go語言的代碼提示等包 編譯安裝 下面是需要下載即安裝 cd ~/go/src/golang.org/x/ git clone https://github.com/golang/

原创 容器互聯

1 使用 --link 1.1 創建nginx容器 創建nginx容器主要是爲了讓其它容器訪問。模擬容器互聯 docker run --detach --name web -p 80:80 nginx:latest --detach簡寫

原创 新環境配置Python

LinuxMint19.1 XFCE 1 安裝更新pip3 sudo apt install python3-pip pip3 install pip 2 修復錯誤 sudo vim /usr/bin/pip3 ----- #!/usr/

原创 Postgresql安裝配置

防止遺忘 簡單安裝 apt install postgresql postgresql-client 配置Linux用戶postgres密碼 sudo passwd postgres 配置Postgresql用戶密碼 su

原创 sanic性能對比

Sanic是基於uvloop的異步web框架,其性能個人覺得比Py三大框架強。 安裝wrk壓測工具 git clone https://github.com/wg/wrk.git make 計算機環境 python3.6.8 tornad

原创 最簡單明瞭的yield from解釋

def one(): print('one start') res = yield from two() print('function get res: ', res) return 'one' + res

原创 asyncio源碼-01

測試代碼 import asyncio from concurrent import futures from asyncio.unix_events import _UnixDefaultEventLoopPolicy from as

原创 ssr Linux圖形化界面

顯示系統托盤 很遺憾,之前Gtk比較好用的Gtk.StatusIcon has been deprecated in 3.14。但是文檔上並沒有說用什麼替換,文檔上說的都是隻是顯示通知,達不到一直顯示的效果。 這裏使用appindicato

原创 Linux桌面 自啓動配置文件規範

Linux主流的桌面操作系統的自啓動軟件一般在以下目錄 ~/.config/autostart 裏面的文件是.desktop 文件, Mint xfce桌面下 ~/.config/autostart » cat net-speed.des