原创 手把手教你使用 Raspberry - Wireless-Access-Point

RPI Wireless-Access-Point 將Raspberry Pi3 作爲無線路由接入點 Install the necessary software. $ sudo apt-get install hostapd

原创 如何打包 zeit/micro 程序

使用zeit/pkg 打包 zeit/micro 項目 打包 micro 項目與其他 node 項目有所區別,micro程序在執行 node 時要先啓動 micro,所以需要將 micro 打包,具體方式如下: package.j

原创 Remote mongo - refused

MongoDB was installed on Ubuntu 16.04. When i connect the mongo on my pc, I get the error: Failed to connect to 192

原创 Docker Error with - Cannot connect to the docker daemon, not running ?

Error Cannot connect to the Docker daemon at tcp://0.0.0.0:2736. Is the docker daemon running? ENV 系統: ubuntu 16.0

原创 Raspberry Desktop 用戶自動登錄設置,屏幕禁止休眠設置,瀏覽器全屏設置

樹莓派按照ubuntu-mate 桌面系統,設置如下參數: 開機用戶自動登錄: 修改/etc/lightdm 下的 lightdm.conf文件 如果沒有則自己創建一個 內容爲 [SeatDefaults] autologin-

原创 手把手教你使用 Raspberry - 設置開機啓動圖片/屏蔽彩虹屏/用戶自動登錄/開機執行程序

Raspberry/jessie設置開機啓動圖片/屏蔽彩虹屏/用戶自動登錄/開機執行程序 – 在 Raspberry 上安裝 jessie server 製作安裝U盤 $ diskutil umount /dev/disk1s1

原创 RabbitMQ error - rabbitmqctl: command not found

$ rabbitmqctl status -bash: rabbitmqctl: command not found export PATH=/usr/local/sbin:$PATH test with $ rabbitmqct

原创 nodejs 中如何使用ES6語法

nodejs中,現在還不兼容es6語法,使用babel進行編譯,方法如下: 安裝如下包: $ npm install babel-core babel-polyfill babel-preset-es2015 --save

原创 JS 獲取當天所在月的最後一天日期,所在周的每天的日期,時間的計算

JS date 官方地址 /** * 獲取當天所在月的最後一天日期,和下一個月的第一天日期 * 調用getMonthDay(d), d默認值爲01,d爲要設置成的day; */ const getMonthMaxDay =

原创 Ubuntu mate 17.04 - Installation error 5

安裝Ubuntu mate 17.04 時,遇到 [ Err no 5] input/ out put 應該這樣安裝 使用 Try Ubuntu 模式運行 ubuntu 系統, 然後點擊桌面上的 安裝Ubuntu 圖標,安裝Ub

原创 手把手教你使用 Raspberry - DNS Server

RPI DNS Server 將Raspberry配置成DNS server Install the dnsmasq $ sudo apt-get install dnsmasq Configure the /etc/dnsma

原创 Mongoose Warning `open()` is deprecated, `openUri()` instead

nodejs 使用mongoose,程序如下: const mongoose = require('mongoose'); const url = `mongodb://192.168.1.198:27017/mean` mo

原创 Flutter - SnackBar

Flutter 之 SnackBar SnackBar 是用戶操作後,顯示提示信息的控件,默認顯示在屏幕底部,默認顯示4s後自動隱藏。 SnackBar是通過Scaffold的showSnackBar方法來顯示,所以想要顯示Sn

原创 React Form

React 中獲取form中的數據 代碼示例如下: export default class Form extends Component { constructor (props) { super(props)

原创 數據結構與算法JavaScript - 散列

散列是一種常用的數據存儲技術,散列後的數據可以快速的插入或取用。散列使用的數據結構叫做散列表。 在散列表上插入、刪除和取用數據都非常快,但是對於查找操作來說卻效率低下。 散列表是機遇數組進行設計的,數組長度是預先設定的,所有的