[好文分享] Observability 3 ways: Logging, Metrics & Tracing

Zipkin (跟 OpenTrace 很類似的 Distributed Tracing 服務) 的 Team Lead 在 Dot Conference 裡面談到量測的三種方式:

  • Log
  • Metrics
  • Tracing

並且透過顯示 Response time 這個範例來展示,如何透過 Log, Metrics 與 Tracing 來顯示.並且也讓你更了解該如何應用這三種量測的方式來解決你的問題….

[好文分享] Pascal at Apple

很有趣的一篇考古論文導讀。 Pascal at Apple.

裡面有很多有趣小故事:

  1. Apple 開發出特有的 pascal, 並且有 世界上第一個 OOP App 生態系統在 Lisa
  2. 那時候要寫 Mac App 每個工程師需要買 Lisa. (備註 Lisa 買下去要當時五千美金))o(
  3. Lisa 內建 pascal native compiler
  4. 當時許多的 Mac App 都是使用該特定 Pascal 開發。包括該編譯器。

太有趣的小歷史。

文章在這裡….

[研討會心得][iThome GopherDay] What can Golang do? (Using project 52 as examples)

演講摘要

入手一個新的語言永遠不是一件簡單的事情。

不論是要學習 toolset 跟語言的語法,一直以來在過程中最大的問題永遠都會是:這個語言究竟能做些什麼?

講者曾經在 2015/06~ 2016/06 一年中挑戰自己每個禮拜寫一個小的專案,名為 “Project 52” 。透過 “Project 52”,講者會告訴你,究竟 Golang 能做些什麼:

簡潔的語法 強大的工具鏈 超高的效能 Google 開發出的 Golang 不僅僅能讓你更專注開發,還能幫助你開發高效的應用程式。

Slide

iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples) from Evan Lin

心得

第一次台灣舉辦的 Golang 研討會。感謝 iThome 的工作人員。 整個會場人爆滿,加上有便當跟餐點都很棒。謝謝各位講者的分享。也希望每個聽眾都能 enjoy.

[研討會心得][iThome Cloud Summit 2017] The next generation of data center: Machine Intelligent Cluster

演講摘要

隨著時代的演進,管理機器的方式也隨著慢慢進化。隨著一台台機器的管理方式,變成了集群(Cluster)的管理方式. 而應用程式的部屬方始也從最原始的實體機部署,到了虛擬機器(VM)甚至到了容器(Container)的部署方式。

Kubernetes, DCOS 與 Docker Swarm 就是結合了容器部署與機器集群的管理方式的一個管理套件。但是集群的部屬方式並不代表你可以節省部署與維護的人力,因為隨著集群的數量變大,緊接來著就是需要更多管理的技巧。 比如說:

如何有效地管理集群的使用率? 如何讓集群內閒置機器能夠自動關閉? 如何有效地自動擴展你的集群? 如何讓集群偵測惡意攻擊或是自我修復? 講者將會帶來一個新的觀念,就是一個具有機器智能的集群管理系統。結合時下最受歡迎的機器學習架構(SMACK)與深度學習代表的 Tensorflow 如何讓你的集群能夠更有效地分析使用量,進而讓你的集群變得有智能。變成下一代的機器智能集群(Machine Intelligent Cluster)。

Slide

iThome Cloud Summit: The next generation of data center: Machine Intelligent Cluster from Evan Lin

心得

今天在 iThome Cloud Summit 2017 的投影片. 第一次嘗試投影片不要做太多,然後講多一點.結果就是到後面講得有點趕. 很開心今天學員們都對這樣的議題很有興趣,也歡迎大家多多詢問.

[TIL][Python] Let's play darkflow and face_recognition

darkflow

https://github.com/thtrieu/darkflow

face_recognition

https://github.com/ageitgey/face_recognition

How to install in Mac OSX

  • Install opencv3 + python3 + dlib

  • Install cython on Python3: pip3 install cython
  • Install darkflow
    • git clone https://github.com/thtrieu/darkflow.git
    • cd darkflow
    • python3 setup.py build_ext --inplace
    • pip3 install -e .
  • Install face_recognition
    • pip3 install face_recognition

[TIL][Python] OpenCV with Python2/Python3, dlib for python3

Python2 (opencv2) with Homebrew

Python 2

  • brew install python
  • brew install opencv
  • python
>>> import cv2

Python3 (opencv3) with Homebrew and PIP

Python3

  • brew install python3
  • brew uninstall opencv3
  • brew install opencv3 --without-python --with-python3
  • echo /usr/local/opt/opencv3/lib/python3.6/site-packages >> /usr/local/lib/python3.6/site-packages/opencv3.pth
  • python3
>>> import cv2

Refer to this

Install dlib (only for Python3)

dlib is very useful for face detection machine learning, but it is hard to install on mac osx with python. compile issue and compile issue2

I got some script from this, but still not working for me.

Using PIP3 to install dlib for python3

  • Install boost for python3 but not for python2
    • brew install boost-python --with-python3 --without-python
  • pip3 install dlib
  • python3
>>> import dlib

Reference