以前球隊在回防時, 教練總會說"快跑! 別回頭, 到定點再休息".
關於人生, 喘息點在哪兒? 我想就在滴水穿石之間!
失速的這個月
Week14 (04/07)
網路文章
Adding A New System Service To Android 5: Tips and How To
由下到上打造一個android system service. HW -> HAL -> JNI -> Service -> Manager -> Registering.Adding New System Service in Android
Native system service.33 Foods that Starve Cancer
滿有趣的論點, 細胞沒有supplement會死亡沒錯, 但microscopic cancers能否自己生出新的血管?
大部份的癌症無關基因, 超過40歲體內難免會有microscopic cells, 並可能轉變成cancer cells?
Week15 (04/14)
img2ascii.py 參考網路上的做法, 加了些參數方便調整輸出的內容. pillow提供便利的API.
網路文章
- Every attempt to manage academia makes it worse
Goodhart’s Law: “When a measure becomes a target, it ceases to be a good measure.”
為了打分數而訂出的評分系統, 不就是考試?!
衡量對錯本來就很難(也許本身就是個假議題), 就像"找到一個對的人做對的事".
The Cobra Effect: 在大公司應該是無可避免的.
網路資源
- Python libhunt
可用找lib, 比較lib之間的活躍程度, Code Quality L1是較差, L5較佳.
除了python之外, 還有C++, Android, Java, Javascript…等.
讀書心得
- The Handstand Builder For Women - Week1
Recap Week1, 有些人說Handstand不太需要flexibility, 我的經驗是stretches也是很重要的, 靈活的關節/彈性的肌肉能避免運動傷害. Reverse Plank: 有助於倒立時開胸姿態
Handstand against the wall: 讓身體習慣倒立姿態
Crescent Lunge/Seated Hamstring Stretch: 腿離地時腳筋的柔軟度很重要, 柔軟度不夠需要更大的肌力做平衡.
Week16 (04/21)
網路文章
What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?
一般是用virtualenv測試module需要哪些python packages, pyenv來測試module在不同的python2.6, python2.7, python3.5, python3.6是否正常.
virtualenvwrapper是加強virtualenv的plugin, 將不同的環境放在同一個目錄方便管理.What is Data Science? 24 Fundamental Articles Answering This Question
Data Science要的是通才.
網路資源
free electrons Doc
Buildroot and Embedded Linux 相關資源500 Data structures and algorithms interview questions and their solutions
面試時的資料結構與演算法考題及解法, 來源: http://www.techiedelight.com/
讀書心得
- Telling children ‘hard work gets you to the top’ is simply a lie
Working hard is the starting line, so much more is required.
You need to adapt yourself. You need to find the right way to speak to different people, at different times in different contexts. This is not compromising who you are, but rather adapting to the relevant surroundings.
Week17 (04/28)
沒時間做leetcode Challenge….gg
網路文章
網路資源
讀書心得
摸摸Wayland/Weston/WPE, 了解大方向.
Buildroot https://buildroot.org/docs.html, http://free-electrons.com/
類似yocto, LFS(Linux From Scratch), free electrons這家公司有提供教育訓練.WPE (WebKit Wayland, Web Platform for Embedded)
由Metrological及Igalia在開發, 主要用於基於Webkit2 + Wayland的平台.
Webkit原本是 single process, Webkit2為mulit-process架構. https://trac.webkit.org/wiki/WebKit2Wayland (Wayland protocol) https://wayland.freedesktop.org/docs/html/
主要因為Linux X server太過於複雜及效能不佳(render,compositor都在window manager完成), 推出client-server 架構的protocol, 在client為render, server為compositor, 並分享memory buffer做到zero copy, 能夠確保每個output frame都是完整的.
Wiki - https://goo.gl/ukqgJCWeston (compositor/ wayland server):
Wayland裡的server side, 其它的有Westeros, Mutter, KWin…
在RPi 及 Xubuntu 系統把玩WPE/Wayland/Weston
Buildroot for WPE - https://github.com/WebPlatformForEmbedded/buildroot
Raspberry Pi 3 with WPE:
make raspberrypi3_wpe_defconfig && make -j32
可以編出output/images/sdcard.img
raspberrypi3_wpe_ml_defconfig好像是使用mlbrwoser沒有詳細研究
weston跑起來是使用fbdev-backend
使用YoutubeTV
wpe https://youtube.com/tv
可以播影片及用鍵盤操控, 無法使用滑鼠.
跑起來後ps可看到
703 root {wpe} /bin/sh /usr/bin/wpe https://youtube.com/tv
707 root WPELauncher https://youtube.com/tv
712 root /usr/bin/WPENetworkProcess 7
715 root /usr/bin/WPEWebProcess 14 -1
使用Youtube 網站
wpe https://www.youtube.com
有畫面但無法操控
wayland-build-tools - https://github.com/wayland-project/wayland-build-tools
Virtualbox裝 Xubuntu 16.04.2 LTS測試, 跑起來是使用x11-backend
leetcode Challenge - C lang
利用瑣碎的時間完成leetcode上基本(easy)的題目.
No20_ValidParentheses.c
這個做法在malloc會有太大或太小的問題.
No155_MinStack.c
minStackGetMin用for loop是偷懶的做法.