原创 虛(virtual)析構函數

  記得有一次在面試的時候被問到虛析構函數的作用,當時回答得不是很好,故現在想重新整理下。 先看下下面的代碼: #include <stdio.h> #include <iostream> using namespace std;

原创 解決pip安裝tensorflow慢的問題

遇到pip安裝tensorflow慢的原因是默認使用了國外的鏡像包 由於牆的問題導致安裝緩慢 這時候可以使用豆瓣的tensorflow鏡像即可,打開cmd,輸入如下命令即可: python -m pip install tensorflo

原创 固高運動控制卡的相關知識點

承接使用QT(C++)編程的各類固高運動控制項目,有意者可私聊。 # GTS運動控制器-二維位置比較輸出擴展功能 指令 6  GT_2DCompareSetPrm 指令原型 short GT_2DCompareSetPrm(short c

原创 HTTP/2 Flow Control & Window Managers

HTTP/2 provides a facility for performing ‘flow control’, enabling both ends of a HTTP/2 connection to influence the ra

原创 注意:ARM處理器中的char 是無符號的

  C標準上char可以帶符號也可以不帶符號,但是具體的平臺又有所不同。在大多數的體系結構中char是帶符號的,但是在ARM體系中char是不帶符號的其取值範圍是0 - 255。 如下面的代碼:                    

原创 從零開始 Nginx 交叉編譯

交叉編譯工具鏈: arm-poky-linux-gnueabi-gcc    ./configure --prefix=/home/chad/Documents/nginx_cr  --with-cc=arm-poky-linux-gnu

原创 nginx 嵌入式

./configure --help   --help                             print this message   --prefix=PATH                      set ins

原创 qt 連接 mysql 數據庫超時

mysql> show variables like '%timeout'; +-----------------------------------+----------+ | Variable_name

原创 python中的Queue模塊

queue介紹 queue是python的標準庫,俗稱隊列.可以直接import引用,在python2.x中,模塊名爲Queue。python3直接queue即可 在python中,多個線程之間的數據是共享的,多個線程進行數據交換的時候

原创 python3之threading模塊(上)

threading模塊提供了管理多個線程執行的API。 最簡單的用法。就是用一個目標函數實例化一個Thread對象。start()開始工作,join()等待當前線程完成。 import threading def work():

原创 taskset set or retrieve a process CPU affinity

SYNOPSIS         top taskset [options] mask command [argument...] taskset [options] -p [mask] pid DESCR

原创 MQTT Client paho.mqtt.python使用簡介

簡介 MQTT協議目前可能是物聯網最爲流行的傳輸協議,那麼如何使用Python作爲客戶端,和MQTT服務器端進行交互? 本文將以paho.mqtt.python (https://github.com/eclipse/paho.mqtt.

原创 Compile FFmpeg for Ubuntu, Debian, or Mint

Contents Get the Dependencies Compilation & Installation Updating FFmpeg Reverting Changes made by this Guide FAQ If Yo

原创 【Linux】start-stop-daemon

NAME        start-stop-daemon - start and stop system daemon programs SYNOPSIS        start-stop-daemon [option...] com

原创 Webpy + Nginx with FastCGI

This cookbook entry explains how to run web.py on Nginx with Fastcgi. Requirements Nginx 0.8.* or 0.7.* (with fastcgi a