原创 Raspberry建立Wifi熱點

OverviewCreated by Ladyada Would you like to use your Pi as a WiFi router? Or maybe have it as a special filter

原创 ssh登錄原理以及ssh免密碼登陸

一、什麼是SSH? 簡單說,SSH是一種網絡協議,用於計算機之間的加密登錄。 如果一個用戶從本地計算機,使用SSH協議登錄另一臺遠程計算機,我們就可以認爲,這種登錄是安全的,即使被中途截獲,密碼也不會泄露。 最早的時候,互聯網通信

原创 添加Android新平臺

原创 Android 底層學習札記

Android 底層學習札記 (一) Google Android軟件架構 (二) Android編譯環境搭建 (三) Android Linux Kernel 移植流程 (四) Android啓動流程 (五) Android系統燒寫 (

原创 [HDU]1006 Tick and Tick

這是HDU,Online Judge上的一道題,http://acm.hdu.edu.cn/showproblem.php?pid=1006閒來沒事,研究的做做,開始思路是模擬每一秒,然後計算滿足條件佔所有時間的比例,最後發現計算結果不夠

原创 Linux獲取進程列表

實現思路是:遍歷/proc目錄下的所有進程描述文件夾,從而獲取進程列表。 代碼如下: #include <stdio.h> #include <dirent.h> #include <unistd.h> #include <stdlib.

原创 Makefile 常用命令

Makefile多文件編譯 編譯庫 TARGET=libmytest.so all: $(TARGET) CFLAGS += -Os -Wall \ -I. \ -I./common \ -I../include

原创 Bluez去掉絕對音量支持

修改bluez-5.37中./profiles/audio/avrcp.c 去掉改支持AVRCP_EVENT_VOLUME_CHANGED 3816 session->supported_events |= 3817

原创 VScode for c++

VScode for c++ VScode for c++ launch.json { "version": "0.2.0", "configurations": [ { "

原创 有關掛載的筆記

sshfs掛載遠程linux目錄 首先先配置ssh免密碼登錄 修改 /etc/profile sshfs [email protected]:/home/xllv /home/user/xllv.2/ -o allow_other 或者修改

原创 什麼是樹莓派(Raspberry Pi)

正品 樹莓派 二代 Raspberry Pi Mod B 512MB REV2.0 英標綠版 圖1 Raspberry Pi項目負責人Eben Upton Raspberry Pi,縮寫RPi或者RasPi/RPi,中文譯名爲“樹莓派

原创 Android Sensor Demo Framework實例

HAL 開發方式 HAL Toolkit 由用戶開發Service服務及Service Runtime服務 應用層, 用戶需要開發應用程序以及對應的Service和Service Runtime。 HAL層, 用戶需要開發HAL模塊, 設

原创 Ubuntu有線和無線同時使用

解決Ubuntu下,想同時使用有線網卡和無線網卡。 一個用於連接局域網,一個用於連接外網。 #!/bin/sh route del default route add default gw 10.4.30.1 route add -net

原创 Find common substring[Dynamic Programming]

今天有人讓我寫個求公共子串的程序,我建議使用動態規劃。如下是我給出的參考的代碼。如有錯誤請斧正。 連續字符 #include <stdio.h> #include <stdlib.h> #include <string.h> /**

原创 應用與MPlayer通過slave模式進行信息交換

應用與MPlayer通過slave模式進行信息交換 代碼如下 編譯方法 gcc test.c -lpthread#include <stdio.h> #include <stdlib.h> #include <unistd.h> #inc