原创 git 安裝和配置(網絡代理的設置)

安裝 git sudo apt-get install git 查看git配置 git config --list 或者~/gedit .gitco

原创 Idiomatic Programming

Mark Grosberg http://www.conman.org/projects/essays/idioms.html Language is probably human kind's most important invent

原创 NodeMCU quick start

什麼是NodeMCU? NodeMCU,是一個開源的物聯網平臺。 它使用Lua腳本語言編程。該平臺基於eLua]開源項目,底層使用ESP8266 sdk 0.9.5版本。該平臺使用了很多開源項目, 例如 lua-cjson, spiff

原创 Handling Allocation Errors

Mark Grosberg http://www.conman.org/projects/essays/allocerr.html Unfortunately, most programmers don't think much abo

原创 How to resolve `unmet dependencies, Depends: nodejs but it is not going to be installed` npm

爲了安裝Node-Red,將ubuntu 18.04 的node.js v8 升到 node.js v10 [Supported Node versions https://nodered.org/docs/faq/node-versio

原创 Mosquitto MQTT Broker 服務器的配置,增加登錄鑑權設置

本文的重點是從匿名訪問mqtt broker(只需要Ip和port),到需要登錄(用戶名和密碼)和鑑權(發佈和訂閱那些topics)的過度的 過程。  安裝 Mosquitto MQTT Broker 1 sudo apt-add-re

原创 跨平臺桌面GUI程序wxPython wxwidgets wxFormBuilder

目的: 快速開發跨平臺(windows, linux)桌面應用程序 環境搭建: Windows篇 安裝wxwidgets wxWidgets是一個開源的跨平臺的C++構架庫(framework),它可以提供GUI(圖形用戶界面)和其它工具

原创 學習elua(四)--使用elua

第三篇文章講了如何定製elua的編譯選項,其中的例子爲添加wofs文件系統的支持。在本篇文章中,主要講怎麼使用elua,包括如何連接elua,shell命令,elua的文件系統三部分。 如何連接elua Weshould now

原创 Implementing Efficient State Machines

Mark Grosberg 轉自:www.conman.org/projects/essays/states.html States machines are a useful design technique for “event dr

原创 Thinking about Memory Management

Mark Grosberg   www.conman.org/projects/essays/memmgr.html A common question I get asked is what to do about storagema

原创 Lua: Good, bad, and ugly parts

Lua: Good, bad, and ugly parts from :http://notebook.kulchenko.com/programming/lua-good-different-bad-and-ugly-parts

原创 Android 新建工程 卡在Gradle:Resolve dependencies':app:_debugCompile'

今天更新androidSDK 到5.0,發現新建工程時卡在Gradle:Resolvedependencies':app:_debugCompile' 首先,googledevelop是訪問不了的,如果可以就沒這事了。(折翼的天使) 其

原创 learn lua the hard way

找到一個學習lua的資源: Lua Missions 下載: https://github.com/kikito/lua_missions miss

原创 java 函數參數傳遞解釋

起因: 寫android的程序時,要寫一大堆賦值 txtYaw = (TextView)findViewById(R.id.txtYaw);         txtPitch = (TextView)findViewById(R.id.

原创 解決:在ubuntu下安裝R語言ks包時的error:configuration failed for package ‘rgl’

在做Multivariate kernel density estimation 用到R語言的ks包,在ubuntu下(R studio)安裝遇到了問題: > install.packages("ks") Installing pac