A quick look at the git object store
Can read git doc to know more about git’s internal
- git is a key value object store. With file as value, and file’s SHA1 hash as key.
- git use first two charactors as directory for the key value store
- Commit hash is the key of the commit object
- A commit object contain meta data of commit and the files and directories object created in this commit
- Branch is a pointer to a commit
[HTML/CSS] 我心目中的「完美按鈕」
整個button好似好簡單,但係實際上可以引出engineer同designer合作上嘅溝通問題。文中仲列出左比較好implement嘅button係點樣
- 固定寬度以及限制文字數目
- 字體或是內容可依照螢幕寬度改變
- 寬度以及排版可照樣板寬度調整,但是又保有自我煞車的機制
- 就算有斷句的狀況下也可以保持置中
线上抓娃娃机的架构设计及实现,看这一篇文章就够了
- Low latency is difficult, use some tricks make the requirement simpler but still having good UX
- Only need to ensure low latency for player, not a must for audience
- Explain their design on protocol
- TCP on web but streaming is UDP
- Drop frame with timeout mechanism
- Explain their infra
- Load balancing
- Evaluate network quality from time to time
- To determine the cluster position
- How to pick encoding
12 Jan 2019
Explain detail on audio encoding.
The 100% correct way to structure a React app (or why there’s no such thing)
篇文講左點樣organize react app嘅directory structure。由於有講organize嘅principle,仲有example。所以幾值得深入研究。有時間再睇。
How to Get a B.A. in International Relations in 5 Minutes
簡介International relation嘅一D中心assumption同思考角度。
- Anarchy
- There is no authoritative judge or central authority in international relation
- The balance of Power
- tells you a lot about how states identify potential allies
- Comparative Advantage
- states will be better off if they all specialize in producing items in which they have some relative advantage
- Misperception and Miscalculation
- National leaders (and sometimes whole countries) frequently misunderstand each other and often do remarkably stupid things
- Social Construction
- Human are often shaped by changing norms and identities, and that these norms and identities are themselves are neither divinely ordained nor fixed
金句
- A wise friend of mine likes to say that most of international politics can be summed up in three words: fear, greed, and stupidity.
13 Jan 2019
It is paid content, clicking the link consume your quota. I guess the summary is good enough.
以下無需重讀
Burnout: What Happens When You Take On Too Much
Talk about how to handle burnout
Handle burnout
- Schedule Time Off
- need to actually disconnect, such as disable notification or turn on do not disturb
- Make a List of Things that are your “Oxygen”
- Choose things that you know without a shadow of a doubt will leave you energized
For manager to handle teammate burnout
- Schedule Bi-monthly 1:1s
- Check in how employee feel
- Is there too much work load?
- Are there things they’d like to work in near future
- What projects would they like to be involved in going forward?
- How do they feel about the team structure? The company?
- Encourage Vacation / Time Off
- Check in how employee feel
12 Jan 2019
The summary is good enough
9 Promising Promise Tips
Simple but easy to read basic tutorial on Promise
Avoid Burnout and Get Back to the Basics
- Do Not Try to Learn Every New Programming Language
- Focus on Writing Good Tests and Secure Software
Riemann’s paradox: pi = infinity minus infinity
透過rearrange infinite sequence嘅次序,就可以改變個sequence嘅sum
Gladius Using Blockchain As Global CDN & DDoS Mitigation System
如果你D server有足夠嘅bandwidth,用以用Gladius嘅service租出去,幫人地擋DDoS,或姐俾人當CDN用。E成個trading system, Gladius係用blockchain去implement