2014年12月30日 星期二

IOT的典範應用 - Connected garden Edyn

圖片來源:kickstarter - Edyn


最近除了開始善用儲餘堆肥外,又重新開始準備好好經營我的小花園,但是我手現要面對的難題就是陽台西曬太嚴重,植物很容易枯死(曬死?),何時該澆水試門大學問...



順手查了一下目前這種濕度Sensor 在農業運用的目前的發展近況,想說Kickstarter應該有類似的玩具,結果發現了這個Edyn深得我心!!

1. 果然現在wifi chip夠便宜/夠省電,根本不需要用到Zigbee 的方式,小規模的部屬就很夠用了。
2. 因為夠省電所以可以用太陽能發電 (電池off)
3. 漂亮的機構設計(也有考量到防水),不得不說目前看到許多老外的產品設計都非常漂亮。
4. 除了幫你收集資料/提供控制水閥App操作外,重點還是背後的資料庫,根據政府資料(農業,土壤,氣候...等),還會給你施肥澆水的建議數據。




真的是堪稱 IOT,Big Data,Open Data 的結合典範啊~~

但是...目前成本一顆99美金....我的一個盆栽一個才100台幣....XDDD
(迷之音:有沒有強者要來分析一下硬體成本~)

看樣子還得自己勤勞點澆水...:P




2014年12月26日 星期五

[筆記] 安裝Samba 4 As Linux Active Directory Server


這陣子為了開發整合MS Active Directory Server 的案子架設測試/開發環境,才意外發現原來Samba4已經有提供AD 的完整功能,以下是Samba4 所提供的功能:

Samba 4: Linux Active Directory Server  already include:
  • support of the 'Active Directory' logon and administration protocols
  • new 'full coverage' testsuites
  • full NTFS semantics for sharing backends
  • Internal LDAP server, with AD semantics
  • Internal Kerberos server, including PAC support
  • fully asynchronous internals
  • flexible process models
  • better scalablilty from micro to very large installations
  • new RPC infrastructure (PIDL)
  • flexible database architecture (LDB)
  • embedded scripting language (ejs)
  • generic security subsystem (GENSEC)
  • over 50% auto-generated code!
網路上有許多文件讓人和的很疑惑,在這邊要特別注意的是Samba4 他有提供兩種功能,一種就是傳統的網路芳鄰(網路磁碟)的功能,這種就用一般yum install samba4 就可以安裝,另一種是Samba4 as AD 的功能 (這兩種功能不能並存),請參考以下文件:
而安裝AD的方法又有兩種:
A. 下載source code 手動編譯安裝的方法 (官方文件的方法),可以參考以下教學



B. 使用Sernet 所提供的yum Repo安裝方法

為什麼官方目前尚未提供yum的安裝方式呢?參考這篇文章 Samba AD DC in Fedora and RHEL
As Fedora and RHEL are using MIT Kerberos implementation as its Kerberos infrastructure of choice, the Samba Active Directory Domain Controller implementation is not available with MIT Kereberos at the moment. But we are working on it!
  
所以目前只有Sernet 這個組織把手動安裝的版本整合好變成可以yum安裝,只是要使用他們的Repo必須先註冊,然後他們會提供一組帳號密碼讓你access 他們的Repo

[sernet-samba-4.1]
name=SerNet Samba 4.1 Packages (rhel-7)
type=rpm-md
baseurl=https://account:password@download.sernet.de/packages/samba/4.1/rhel/7/
gpgcheck=1
gpgkey=https://account:password@download.sernet.de/packages/samba/4.1/rhel/7/repodata/repomd.xml.key
enabled=1

只要把這個Config 加入/etc/yum.d/下面,就可以輕鬆安裝Samba4
1.  The SerNet build key - Install a RPM package:
wget http://ftp.sernet.de/pub/sernet-build-key-1.1-4.noarch.rpm
rpm -i sernet-build-key-1.1-4.noarch.rpm

2. 安裝
yum install -y sernet-samba-ad  sernet-samba
另外要啟動Samba AD Domain 可以參考以下指令:

sudo samba-tool domain provision --realm=LAB.HOWIE.TW --domain=HOWIE --adminpass=HowieP@ssw0rd --server-role=dc



2014年12月24日 星期三

專案驗屍(Project postmortem)Vs. 專案回顧(Project Retrospectives)


你們專案執行的是專案驗屍(Project postmortem)還是專案回顧(Project Retrospectives) ?
 
有人說:驗屍?回顧?不是都差不多只是名詞不同罷了?
又有人說:失敗的案子才是驗屍,成功的案子就是回顧~

的確,從字面上來解釋其實都通,所進行的動作可能也類似,但是真正的差別在於本質的Mindset,參考Retrospectives: Retrospectives vs. Classic Postmortem, a Difference in Mindset 的文章把差異整理成以下幾點: