原创 C++ std::tuple 和 type_traits 使用

C++ 元組 C++ std::tuple 與 python tuple 類似,可以存放不同類型的數據。 常用操作 // 模板 定義 tuple std::tuple<int,int,std::string> t(1,2,"h

原创 c++ 模板template 使用

C++ 模板 C++ 模板使用有點類似於Java中的泛型。 普通函數模板 類模板 類成員函數爲模板函數 測試例子 #include <iostream> #include <type_traits> #include <st

原创 mysql 密碼修改問題

1.update user set password=password(‘123456’) where User=‘root’; mysql> mysql> UPDATE user SET PASSWORD=PASSWORD('1

原创 rtmp協議測試

RTMP協議 adobe公司設計用在flash播放視頻,rtmp 基於 flv流媒體傳輸。 flv格式分析 flv 格式主要是包含 flv header + body. 1. Flv header Signature(3

原创 vscode snippets 配置

代碼片段配置 c++ { // Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, b

原创 編譯腳本

編譯 freetype # !/bin/sh PWD=`pwd` ./configure -v \ CC=aarch64-himix100-linux-gcc \ --host=arm-linux \ -

原创 海思編譯器配置

海思編譯器配置 hi3559av100 aarch64-himix100-linux-gcc gongcm@ubuntu:~$ aarch64-himix100-linux-gcc -v Using built-in spe

原创 hi3559AV00-海思NNIE

opencv-4.1.1移植 1.編譯 opencv 編譯腳本 移植PC端仿真代碼ARM板運行 將整個仿真代碼目錄拷貝到mpp的sample目錄下。 編寫Makefile # Hisilicon Hi35xx sample M

原创 一個完整的字符驅動編寫

字符驅動demo 測試內核版本爲linux-4.4 proc 接口有些變化,使用了seq_file. #include <linux/init.h> #include <linux/module.h> #include <lin

原创 c++ 11 智能指針

智能指針 編譯 gcc -std=c++11 test.cpp -o test 測試代碼 #include <iostream> #include <memory> // 編譯 加上 -std=c++11 int main()

原创 Android binder 機制簡單分析

1. Binder 作用 Android 系統使用驅動的方式實現Binder,用來跨進程通信。 2. Binder 原理 1. Android Binder驅動中分配了一塊內存,將其映射到內核空間和用戶空間,減少數據拷貝次數。

原创 android 源碼repo 下載

windows Linux子系統下載Android 源碼 安裝Linux子系統,下載git python,repo sudo apt-get install git python2.7-dev curl http://gi

原创 arm彙編 main函數分析

arm 彙編分析 1. 主要是爲了搞清楚原子操作的實現原理。 2. 在 c語言環境下 變量賦值應該是可以被打斷。 3. 還有是在c語言中變量賦值操作對應的彙編代碼。 4. 原子操作的主要流程 read ---> modify --

原创 librtmp協議測試

librtmp 測試 #include <stdio.h> #include <stdlib.h> #include <string.h> #include "librtmp/rtmp.h" #include "librtmp/log

原创 python-爬蟲-爬取fuchsia源碼

Python 爬蟲 --python 爬取fuchsia中文社區提供網站上面的源碼等數據,僅供參考-- import os import sys import re import urllib import urllib.reque