March 22, 2019

Bikeshed

自行车棚 (Bikeshed) 今天在 V2EX 看到一个词:自行车棚问题。查了一下,在 FreeBSD 社区中有特殊含义,指 某些简单到所有人都可以发表观点,并且几乎所有人都会去发表观点的问题。 然后在 Wikipedia 上找到了 帕金森琐碎定理。 帕金森琐碎定理 帕金森琐碎定理(英语:Parkinson’s Law of Triviality),又译为帕金森氏凡俗法则,或称芝麻蒜皮定律、芝麻绿豆定律,由英国历史学者与政治学者西里尔·诺斯古德·帕金森(Cyril Northcote Parkinson)于 1957 年所提出,用来说明大型组织会花费大量时间在讨论无关紧要的琐事,但是真正重大的决议反而可以轻松过关这种现象。这是由于人对大议题较难有全面性的理解,故怕贸然提出异议,可能会失言;相反地,对于一些简单琐碎的小事,有相当的认识,因此意见特别多,造成组织在各事项上讨论所花费之时间,通常与事项本身的重要程度呈现反比。 — from Wikipedia 是啊,人们总是在争论一些不重要的事。 … May the peace be with you.

November 16, 2018

「可以卑微如尘土,不可扭曲如蛆虫」

今天翻 kenengba 文章的时候,在一篇 文章 下面看到一句话: 如果天空是黑暗的,那就摸黑生存;如果发出声音是危险的,那就保持沉默;如果自觉无力发光的,那就蜷伏于墙角。但不要习惯了黑暗就为黑暗辩护;不要为自己的苟且而得意;不要嘲讽那些比自己更勇敢热情的人们。我们可以卑微如尘土,不可扭曲如蛆虫。 - dabg 共勉

October 29, 2018

Docker Get Started

Here is an example of running a flask app in docker. Write the Dockerfile # Use an official Python runtime as a parent image FROM python:2.7-slim # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --trusted-host pypi.python.org -r requirements.txt # Make port 80 available to the world outside this container EXPOSE 80 # Define environment variable ENV NAME World # Run app. Read more

September 5, 2018

Write the Docs

Why write the docs You will be using your code in 6 months You all know why!!! If only I had written down why I had done this, life would be much simpler. – someone Documentation allows you to transfer the why behind code. Much in the same way code comments explain the why, and not the how, documentation serves the same purpose. You want people to use your code You released your code into world, and thought that others might use it. Read more

August 24, 2018

Hello World

Insert Lead paragraph here. Hello World Markdown Markdown is a text formatting syntax inspired on plain text email. In the words of its creator, John Gruber: The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. Syntax Guide Strong and Emphasize *emphasize* **strong** _emphasize_ __strong__ Shortcuts Add/remove bold: ⌘-B for Mac / Ctrl-B for Windows and Linux Read more

2019 © Evan Lau