01 2017 档案
摘要:1、观察者模式 "Python Observer Pattern" 因为Python版本是3.3,所以用print()和 input(),替换 print和raw_input。
阅读全文
摘要:xmpp, "mqtt" Web socket 透傳消息
阅读全文
摘要:"Apple Push Notification Service" "Google Cloud Message/Google 云 消息" "Firebase Cloud Messaging"
阅读全文
摘要:1、添加文件或文件夹 2、删除文件或文件夹 ①If you want to delete an item from the repository, but keep it locally as an unversioned file/folder。You have to hold the key w
阅读全文
摘要:对于有多个核心的CPU,查看CPU 频率的方法是: 上面的这个是查看核心0的cpu的最大频率。
阅读全文
摘要:1、在/etc/profile或者/root/.profile(/home/username/.profile) 在其中加入:
阅读全文
摘要:1、下载xlwt的Python库 (This is a library for developers to use to generate spreadsheet files compatible with Microsoft Excel versions 95 to 2003.) 下载页面: "x
阅读全文
摘要:Linux进程管理 1、Fork()
阅读全文
摘要:在向门控器发送信号的时候,播放声音和通过GPIO向wiegand发送信号的时候,由于wiegand的资源优先级别不够和声音的播放可能发生了冲突,有时向GPIO发送信号的时候,发送失败。 static void wiegand_send_byte(int fd, unsigned char data,
阅读全文