Collection for Y2016W49 (2016-12-05 Mon 00:00:00 +0800 ~ 2016-12-12 Mon 00:00:00 +0800)
cli
- GNU Screen splitting
-
CTRL-a SHIFT-\
(CTRL-a |
) (:split -v) to split the screen vertically. -
CTRL-a SHIFT-s
(CTRL-a S
) (:split) to split the pane horizontally. -
CTRL-a TAB
to move between the panes -
CTRL-a SHIFT-x
(CTRL-a X
) will close the pane that has focus -
CTRL-a d
will detach screen from the TTY and put it in the background. Resume withscreen -r
-
CTRL-a n
andCTRL-a p
shifts input focus to the next & previous window, respectively. -
CTRL-a SHIFT-a
(CTRL-a A
) will ask you to set the title of the focus window. -
CTRL-a SHIFT-'
(CTRL-a "
) list available windows
-
django
- mysql - Database returned an invalid value in QuerySet.dates() - Stack Overflow
-
Appreciate your help to resolve it. Looks like error caused Django's 1.6 timezone functionality changes(https://docs.djangoproject.com/en/1.6/ref/databases/#time-zone-definitions).
- 用公司的 Django 1.6 時遇到的問題,要在 model 裏面使用
timezone
的話,必須要在 MySQL 先載入 timezone 相關的 tablemysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -D mysql -u root -p
-
git
- git ready » list remote branches
-
Sometimes you may need to figure out what branches exist on a remote repository so you can pull them down and check them out, merge them into your local branches, etc.
git branch -r
-
github
- GitHub - mre/awesome-static-analysis: A curated list of static analysis tools, linters and code quality checkers for various programming languages
-
Static program analysis is the analysis of computer software that is performed without actually executing programs (analysis performed on executing programs is known as dynamic analysis). — Definition by Wikipedia
- 一個收集跟 static analysis 有關的 repo
-
- GitHub - asdf-vm/asdf: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
-
Supported languages include Ruby, Node.js, Elixir and more. Supporting a new language is as simple as this plugin API. If you use zsh or any other shell, replace .bashrc with the config file for the respective shell.
-
- commaai/research: comma.ai for the people to experiment with
-
7 and a quarter hours of largely highway driving. Enough to train what we had in Bloomberg. Dataset referenced on this page is copyrighted by comma.ai and published under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.
- geohot 之前為了做自動駕駛系統所蒐集的資料,雖然後來因為法律問題而不做了,但把他們公開出來給想要做的人使用。
-
- GitHub - alex/what-happens-when: An attempt to answer the age old interview question "What happens when you type google.com into your browser and press enter?"
-
What happens when... This repository is an attempt to answer the age old interview question "What happens when you type google.com into your browser's address box and press enter?" Except instead of the usual story, we're going to try to answer this question in as much detail as possible.
- 非常詳細的講解一個有點歷史的面試問題:「在瀏覽器的網址輸入 google.com 並按下 enter 發生了哪些事」
-
- GitHub - xxhomey19/PPAV: This is an amazing Facebook messenger bot. Welcome to visit our fan page
- 用 Facebook Messenger Bot 來搜尋 Adult Video,爆紅沒幾天就被 Facebook ban 了。
job
- https://www.facebook.com/notes/meng-ju-leu/job-hunting/1171750332901548
- 「每天 7:00 起床,7:20 出門上班,晚上 7 點到學校圖書館念書這樣的生活步調,假日也都是在圖書館寫題目、複習知識。 」
- 也太認真了吧 我好慚愧
linux
- User space 与 Kernel space - 阮一峰的网络日志
- 簡單講解而已,然後提了一下用
time
這個指令出來的數字跟這個之間的關係。
- 簡單講解而已,然後提了一下用
- i3wm
- How do i suspend,lockscreen and logout? - i3 FAQ
- Enabling multimedia keys - i3 FAQ
- 花點時間改了一下 i3wm 的快捷鍵,主要就是要在 i3 的 ‵config‵ 裡頭用
bindsym
去綁定按鍵要觸發的 script
machine_learning
- Google Open Source Blog: Open-sourcing DeepMind Lab
- A customisable 3D platform for agent-based AI research
- https://github.com/deepmind/lab
python
- How Python Linters Will Save Your Large Python Project
- 作者推薦了 3 個檢查 Python coding style 的工具:
pylint
,pycodestyle
,pydocstyle
- 原來這種檢查 coding style 的工具可以直接叫作 linter 啊
- 作者推薦了 3 個檢查 Python coding style 的工具:
- 複習一下 Python 的 ‵@property‵ 的用法
- Python 2 vs Python 3: Practical Considerations | DigitalOcean
- 比較了 Python 2 和 Python 3 的一些差異
- 到目前為止對我來說最難搞懂的大概還是這兩個的 encode 和 decode 的關係吧,雖然在最近讀到的 Effective Python 裡頭有一章就是在講這個,但駑鈍如我還是常常搞混。
security
- 研究人員只花6秒就能破解盜刷Visa信用卡 | iThome
- 「利用「分散式猜測攻擊」(Distributed Guessing Attack)來破解Visa信用卡的到期日與安全碼,最快可在6秒內找出正確數值並進行盜刷。」
software_engineering
- [[好文導讀] [Dear Product Managers …] 親愛的產品經理- 來自曾經支持你的工程團隊!](http://www.evanlin.com/reading-dear-pm/)
stackoverflow
- How do I force remove a package in Arch with pacman? - Unix & Linux Stack Exchange
- 用
pacman -R
移除某個 package 的時候,如果有其他 package 相依於該 package 的話就無法移除 - 如果仍要強制移除該 package 的話,有兩種解法:
pacman -Rd
: 不管相依性,直接強制移除該 package。pacman -Rc
: 把該 package 跟所有相依於該 package 的 packages 全部一起移除掉(注意:會遞迴下去)。
- 用
- git - How to cherry-pick multiple commits - Stack Overflow
git cherry-pick A..B
- every commit after A up to and including B.
- not include commit A.
git cherry-pick A^..B
- include commit A.
- Commit A should be older than commit B. If they're the wrong order the command will silently fail.
unix
- GitHub - dspinellis/unix-history-repo: Continuous Unix commit history from 1970 until today
- 雖然之前就 Star 過哩
- 還是手動收藏一下吧
vim
- Syntastic overrides let g:syntastic_python_checker = 'flake8 --ignore=E501' · Issue #204 · vim-syntastic/syntastic · GitHub
- 用
syntastic
這個 vim plugin 遇到要改 Python linter 的問題,然後查到這個。 - 要在 ‵vimrc‵ 裡頭用 ‵let g:syntastic_python_flake8_args = '--ignore=E501'‵ 這樣的寫法才有用
- 然後
let g:syntastic_python_checkers = ["flake8","pep8","pyflakes","pylint"]
的順序會影響 syntastic 的運作- 按照順序來,只要其中一個沒安裝的話 syntastic 就會自動停止
- 以這個設定來看的話,也就是只要沒有安裝
flake8
的話,syntastic 的 python syntax checking 就不會 work - 但如果全部都有安裝的話,就會照著這個順序一個一個檢查,所以把最常用的要擺在最前面
- 用
web
- Yoga: A cross-platform layout engine | Engineering Blog | Facebook Code | Facebook
- 基於 Facebook 的 Flexbox 標準的 cross-platform implementation
- 因為效能考量而用 C 語言實作
- 這個專案之前的名字叫
css-layout
,但自此開始正式改名成Yoga
windows
- Windows 10 限制連線無法從 DHCP 拿到 IP 的解法 - Tsung's Blog
- 預設的 DHCP 竟然有問題是怎麼回事
trivia
- 富察/一個140萬人口的地方,會有怎樣的出版?答案在沖繩 - 報導者 The Reporter
- 沒錯 去沖繩逛了兩家書店都有一區專門放跟沖繩有關的任何書籍
- 文化、歷史、政治、經濟、氣候、產物等等
- 看了這篇才知道原來只有沖繩才有縣產書
- 牛排的血水根本不是血! - YouTube
- 原來是肌紅蛋白 被高中同學教學了...
misc
- 【Flightline】澳洲 ALPAKA 百變防水型格多功能郵差包 | Flightline Shop - Fashion Never Ends
- 就叫你不要再買包包了 (ry
- Unicorn Startup Simulator
-
This game was created in Nov 2016 during one awesome week in North Berwick, Scotland. The brains and the beauty behind this creation belong to Toggl's marketing team (Andrea, Annika, Dunja & Mart) and front-end team (Andrin, Jaan, Jake, Luiz, Merlyn, Thiago & Tyler).
- 一個模擬新創公司的遊戲,挺寫實的(?
-
taiwan
- 『臺獨運動,曾經的那一次。』- 臺灣世界史 第8集 (完結篇) - YouTube
- 日軍因為清朝打輸甲午戰爭簽訂馬關條約割讓台灣,日軍要接收台灣的那時候。
- 台灣民主國、藍地黃虎旗。
- 官員逃之夭夭,居民抗日兇猛。
life
- EP6【Public Issue Series】:Mamarirage Equality / Marriage Equality and Nussbaum - YouTube
- 這部影片太厲害了 有太多我不知道的事
- 夜市牛排、沙朗、菲力怎麼分? @ 食力foodNEXT‧食事求實的知識頻道
- 你應該要知道的食事 平平都是一塊「牛排」,有貴有便宜,並非全都從同一塊部位的牛肉得來的喔!平價牛排常用於牛臀部位,而上背部可作為嚼勁最足的紐約克牛排,下腰部則可作為口感較細緻的沙朗牛排,藏在其中的腰
- 何謂保險人、要保人、被保險人及受益人?-天秤座法律網
- 一、 在我們保險制度中,按照主體來區分,會發現有「保險人」、「要保人」、「被保險人」以及「受益人」等不同稱呼,一般民眾可能對這些稱呼不太明白,下面就稍作介紹:(一)保險人
Share
Donation
如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。
If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.