2017/7/25

Raspberry Pi 3 Model B..........

當時要燒Ubuntu進去遇到的一些問題...
橘色那個...

根據這頁面http://bit.ly/2uRZUC0的這個指令:
$ sudo dd if=~/Downloads/<image file> of=<drive address> bs=32MB
不能run...

換成這樣就可以了:
$ sudo dd if=/Users/xanxus/Downloads/ubuntu-core-16-pi3.img of=/dev/disk2 bs=32m
後面改成小寫,且只有m

2017/7/11

Node-RED

啟動Node-RED
$ node-red
11 Jul 20:39:32 - [info]

Welcome to Node-RED
===================

11 Jul 20:39:32 - [info] Node-RED version: v0.16.2
11 Jul 20:39:32 - [info] Node.js  version: v6.11.0
11 Jul 20:39:32 - [info] Darwin 16.6.0 x64 LE
11 Jul 20:39:33 - [info] Loading palette nodes
11 Jul 20:39:33 - [warn] ------------------------------------------------------
11 Jul 20:39:33 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
11 Jul 20:39:33 - [warn] ------------------------------------------------------
11 Jul 20:39:33 - [info] Settings file  : /Users/xanxus/.node-red/settings.js
11 Jul 20:39:33 - [info] User directory : /Users/xanxus/.node-red
11 Jul 20:39:33 - [info] Flows file     : /Users/xanxus/.node-red/flows_XanxusMacde-MacBook-Pro.local.json
11 Jul 20:39:33 - [info] Server now running at http://127.0.0.1:1880/
11 Jul 20:39:33 - [info] Starting flows
11 Jul 20:39:33 - [info] Started flows

http://127.0.0.1:1880/ 就是Node-RED平台的網址

2017/7/5

API.AI

自己用curl下get請求的寫法範例:
curl "https://api.api.ai/v1/query?v=20150910&query=%e6%88%91%e6%83%b3%e5%8e%bb%e9%a6%99%e7%b1%b3%e6%b9%af%e6%b9%af&lang=zh-CN&sessionId=1234567890" -H "Authorization:Bearer 2b0ed04782064644b8066768bbda2fa5" -H "Content-Type: application/json; charset=utf-8"