Browsed by
Author: Max Lai

[閱讀週記] 20181008-1014

[閱讀週記] 20181008-1014

Source: Fixing bugs in production.

閱讀週記第11期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

  • Asterisks in Python: what they are and how to use them
    這篇文章討論了 ‘*’ & ‘**’ 在 Python 中的用法,包含了以下的情境:

    • Using * and ** to pass arguments to a function
    • Using * and ** to capture arguments passed into a function
    • Using * to accept keyword-only arguments
    • Using * to capture items during tuple unpacking
    • Using * to unpack iterables into a list/tuple
    • Using ** to unpack dictionaries into other dictionaries
  • Announcing Camelot, a Python Library to Extract Tabular Data from PDFs
    一個 Python Library 以及命令行工具,可以讓我們輕鬆提取在PDF文件中的 data tables。

Read More Read More

[閱讀週記] 20181001-1007

[閱讀週記] 20181001-1007

閱讀週記第10期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

  • Take the 2018 Python survey!
    TalkPython episode #176 採訪了PSF的Ewa Jodlowska以及JetBrains的Dmitry Filippov 分享關於去年PSF 委由 JetBrains 所作的 Python Comunity Survey,今年的 Python developer survey 已經開始了,可以一起來參與。
  • Async Techniques and Examples in Python
    最近執行的專案需要用到一些 Async 的技巧來增加 IPCam 的影像傳輸速率,剛好 TalkPython 推出了這一個相關線上課程,把 Async、Thread、multiprocessing介紹的蠻清楚的,提供給對 Async 這個主題有興趣的朋友。

    • 延伸閱讀:Python Cookbook 的作者 David Beazley 有一系列相關主題的 Talk 也可以聽看看,他一邊分享一邊 live coding 的表演真得很精彩。

Read More Read More

[閱讀週記] 20180924-0930

[閱讀週記] 20180924-0930


( xkcd.com/2048/ ) :給我任一個Model,我都能分析(ㄏㄨˇㄌㄢˋ)這個資料集所代表的意義

閱讀週記第9期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

Read More Read More

[閱讀週記] 20180917-0923

[閱讀週記] 20180917-0923

跟著布萊德·彼特學Data Science

閱讀週記第8期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

  • xkcd 畫了一張 Python Environment 的漫畫 指出了在一般的 OS (MacOS, Linux) 有好幾個 Python 環境,初學者在 Python 安裝不同的套件最後一定踩到一些坑,Stack Overflow 這個討論串 http://bit.ly/2zsqiDZ 可以提供如何使用 #virtualenv, #easy_install and #conda 管理Python 的環境。
  • 上一期週記提到Pycon AU 2018, 其中Damien George(MicroPython的創作者) 給了一個 Talk:  Writing fast and efficient MicroPython, Damien George的 demo範例中最快可以加速500倍!
    演講後半段提到了 MicroPython中的 native emitter 機制,它將Python代碼直接編譯為machine code,因此它可以比 bytecode 運行得更快。最終的目標是希望native emitter完全支持所有Python功能,在pre-compiled的.mpy文件中添加對native emitter 的支援,並允許在firmware使用凍結的native code。

Read More Read More

[閱讀週記] 20180910-0916

[閱讀週記] 20180910-0916

Good decision comes from experience, experience comes from bad decisions.
我們可以找有經驗的人來,避免犯錯,但這種人很少;我們也可以找沒有經驗的人,通過鼓勵他們在工作中不斷嘗試,不斷犯錯,縮短反饋週期,降低犯錯的成本,來增長經驗,避免犯更大的錯誤。

閱讀週記第7期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

  • You Don’t Need That!
    PyCon AU 2018, 講者 Christopher Neugebauer 說明了為什麼使用像 python 這樣(ㄑㄧㄤˊㄉㄚ ˋ)的現代的程式語言,你可能不需要一般所討論到的的設計模式,也就是 “GoF”。
  • Python 庫打包分发(setup.py 编写)简易指南,
    前一陣子因為 dlib 的套件在 PyCharm 上認不出來,就研究了一下 Python 打包套件的方法,這篇指南的內容還算完整,有需要的朋友可以參考一下。

Read More Read More

[閱讀週記] 20180903-0909

[閱讀週記] 20180903-0909

閱讀週記第6期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

Read More Read More

[閱讀週記] 20180827-0902

[閱讀週記] 20180827-0902

Source: Video-to-Video Synthesis

閱讀週記第5期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

Read More Read More

[閱讀週記] 20180820-0826

[閱讀週記] 20180820-0826

Temperature Anomalies by Country 1880-2017
Temperature Anomalies by Country 1880-2017 based on NASA GISTEMP data.

source: http://bit.ly/2odsGIj

閱讀週記第4期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

Read More Read More

在Windows系統 Python 3.6環境無痛安裝 face-recognition

在Windows系統 Python 3.6環境無痛安裝 face-recognition

最近開始了一個人臉辨識的專案,上網搜尋後 face_recognition 應該是最多人採用的入門方案。

但你若是依照 github repo 上的說明 想在 MS Windows 作業系統安裝 dlib 以及 opencv 套件,你大概會跟我一樣踩到地雷,好幾天搞不定。

後來再 Google 一下網路其它人的分享[1, 2],發現其實在 Python 3.6 的環境根本是可以無痛安裝!

Read More Read More

[閱讀週記] 20180811-0819

[閱讀週記] 20180811-0819

source: miltonmarketing.com

閱讀週記第3期, 記錄過去一週閱讀中覺得值得分享的資訊…

[Python]

  • Advanced Git Tips for Python Developers上週週記有一篇10個常見的Git問題,本篇文章則是介紹 Revision Selection, Handling Interruptions: git stash, Comparing Revisions: git diff, git difftool, Changing History, Resolving Merge Conflicts 的實務方法
  • Freezing Your Code
    這裡所說的“凍結您的程式碼”是指正建立單一個執行檔讓 End User 可以直接執行,其中包含所有應用程序碼以及Python 直譯器。例如:“Dropbox”、“Eve Online”和“Civilization IV”等應用程序就是這樣做的。用這樣的方式發佈到 End User 的優點是即使用戶沒有安裝所需的Python及套件,應用程序還是可以“正常工作”。
    本文介紹了bbFreeze, py2exe, pyInstaller 以及 py2app 等工具。

Read More Read More