熱門文章

2016年8月7日 星期日

[Raspberry Pi]遠端存取樹莓派的方式(Mac OS X)

ssh



GUI

XRDP

VNC

[Raspberry Pi]BitTorrent Sync雲端硬碟運用

介紹BitTorrent Sync

這是利用B2B技術來將私有裝置的檔案同步的功能,不透過網上的雲端硬碟,可以達到快速並安全的效果。缺點是裝置必須開啟才有辦法同步取得資料。
所以我想到的運用是將我的rpi接上外接硬碟,備份檔案至硬碟,也可以是Apple的Time Machine。

[Raspberry Pi] 遠端SSH操控and取得IP方法(Mac OS X)


取得IP的方法

在終端機輸入以下
hostname -I

其他更多方式取得IP  http://yehnan.blogspot.tw/2015/12/raspberry-piip.html


[Raspberry Pi]樹莓派3代 安裝初體驗(Mac OS X)



訂購網站RS台灣
Wow 線上訂的樹莓派終於來了

2016年8月6日 星期六

[IoT]Mac (OS X) 上實做google的the Physical Web

需求: OS X 10.10 以上且具備Bluetooth 4 的設備



Physical Web from a Mac (OS X)

To send links via the Physical Web from a Mac, you’ll need OS X 10.10 or newer, as well as Bluetooth 4 capable hardware, in addition to XCode and latest Node.js.


開啟終端機( terminal )
創建新資料夾
mkdir beacon
移至資料夾
cd beacon
安裝指令
npm install --save eddystone-beacon




node -e "require('eddystone-beacon').advertiseUrl('https://medium.com/@urish');"

紅色部分就是要廣播的網址,但是有幾個規定:

  1. 必須是 https 
  2. 限制長度17字元(縮網址可以用這個goo.gl)


或 使用GUI介面的 Download pre-built binary   說明



不過我測試用android HTC m8 + Chrome 51版本
無法順利收到,必須安裝Phyical Web App 才可以接收
後來看到必須開啟chrome的某些設定才能接收,設定如下
https://google.github.io/physical-web/try-physical-web#android
必須開啟 網路and藍牙andGPS
右上角: > 設定 > 隱私權 > 實體網路 on


SaveSave

2016年8月3日 星期三

[WP]WP Memory Limit




 (code is at the beginning of /wp-includes/default-constants.php)


function wp_initial_constants() {
global $blog_id;
// set memory limits
if ( !defined('WP_MEMORY_LIMIT') ) {
if ( is_multisite() ) {
define('WP_MEMORY_LIMIT', '128M');
} else {
define('WP_MEMORY_LIMIT', '128M');
}
}