Total Pageviews

Friday, 23 June 2017

从中西方的烹饪看中西方的思维

有朋友在德国,他曾经发过我一些德国厨房的照片,感觉像个干净整洁的“小工厂”,跟我印象中的厨房的概念,差异甚大。也许是我见识短浅的缘故吧,忍不住感慨一番——这一点也请读者们原谅,老时脆弱的心灵似乎很容易大惊小怪,并且小题大做。这也不是一天两天、一回两回的事了。
更令我感慨的,是他们的烹饪指南。做多少菜,放多少盐,多少酱油之类的,都高度量化,精确到多少多少克,所有数据都严格标明,即使不会做饭的,只要严格按照规定流程和高度量化的标准去操作,做出来的味道也不会相差太大。这一点,跟我们的烹饪书籍中有关做饭做菜的指导,是有很大区别的。我们的烹饪书中,经常可以看到“盐少许”、“酱油适量”、“味精适量”之类的表述,对于生手来说,是非常难以把握的。起码要摸索很多天后,饱尝很多挫折与失败之后,才能慢慢理解“少许”与“适量”的确切含义:“适量”是多少、“少许”又是多少,当然,在做不同菜的时候,“少许”与“适量”又要跟着变化……总而言之,这是一些不断变化含义的词汇。
表述模糊的结果,必然是成本的上升
表述模糊的结果,必然是失败概率的上升,当然也必然导致成本的上升。首先,你必须花费很多时间成本去理解,去摸索,在一次次失败中,慢慢地总结教训,并在一次次的成功中累积经验。其次,你必须付出多次失败的代价,为表述的模糊埋单。表述不确切的后果,是显而易见的。
放在制度层面也是。一个刚性的具体化的规则,更容易让人遵守,而一个表述模糊的规则,则更容易让人钻空子。更多的时候,是人们面对模棱两可的表述,无所适从。
问题在于,模糊的表述为什么能历久弥新经久不衰呢?从烹饪的角度来看,模糊的表述,让表述者变得深不可测,在这种神秘色彩笼罩之下,更容易建立起权威的形象。更关键的一点是,这种表述由于不确切,不容易留下把柄,对于权威者而言,可谓进退自如。
同时,含糊其辞的表述,让厨子有了更大的发挥空间,经验丰富且能发挥好的,往往更为优秀,更为出类拔萃,这样的人,理所当然地成为表率,成为标兵,成为模范。而在标准的统一化的约束之下,人们做出来的菜连味道都区别不大,就很难区分,也很难让某个人脱颖而出,成为优秀的人。而且,标准的统一的高度量化的表述,对食材的要求非常具体,标准非常高——在这方面,很难有妥协的余地。
西方人不树立模范,不树立标兵,更注重整体的协调性的发展
这可能是中西方理念的一个区别。西方人一般不评选模范,不树立标兵,在一个生产线上,你做得出类拔萃,甚至可能导致整个流程被破坏。所以,西方人更注重整体的协调性的发展。而我们,即使在统一的流程下,即使在同一条生产线上,也可以创造出做得最优秀的人——这恰恰从另一个侧面证明了我们在整体发展中暴露出来的一个严重缺陷与不足。当然,如果站在另一个角度来看,也可以认为这是我们的强项。
用数不清的各种化学添加剂生产出来的食材,配上N代地沟油做出来的饭菜依然味道可口,这一点,的确让老外唏嘘不已,甚至五体投地。老外们的量化工具,在这里,是毫无用处的。区别体现在饭后,当人家吃完饭悠然自得地去打高尔夫球的时候,我们不得不带着视死如归的表情走向厕所——尽管久经考验.

-------------------------

正是因为中国人不讲究“量化”,所以生产出来的产品必然就是马大哈式的产品,和“粗制滥造”几乎就划上了等号,中国货在西方就是劣质货的代名词

Thursday, 22 June 2017

现在富人阶层对底层有着一种深深的恐惧

杭州保姆纵火案:这案子看的非常心塞,保姆为了逃避十几万的债务,竟然犯下如此滔天大罪,老百姓认知里最大的犯罪行为不就是杀人放火吗?
对富人来说,这案子起的震慑作用更强烈,那套绿城的公寓两千多万了,将近百名保安,算是安全的豪宅了吧,结果四人全死。
富人没安全感,那正在或者准备做什么,就不多讲了,都是聪明人,但以我们的人口基数,大部分人还是要生活在这片土地上的,这是我们祖先好不容易打下的文化共同体,人总是希望能自由的在自己的土地上安全和舒适的生活。
那案子之后,有人和我开玩笑说以后律师可以增加一个业务,叫做保姆的尽职调查,否则生变于肘腋之下太危险,上海现在保姆市场也是,上海老阿姨和菲佣都相当的贵,便宜的阿姨,各种小偷小摸的习惯,那案子里不是也偷了主人一块名表。
中国自古以来就是各种丛林社会,所以很多老古话包含了丰富的人生智慧,比如斗米养恩,担米养仇;比如狗急跳墙;比如穷生奸计,富长良心;比如恒产者有恒心。
新富阶层也好,暴富阶层也好,二代们也好,哪怕你是万分之一的有钱人,除非到那个级别,其他富人群体还是要和普罗大众打交道的,哪怕富裕之后建造城堡,住豪宅,但也得找仆人吧,富人是需要穷人提供服务才能惬意的生活,所以每个人的生活都和你有关,想完全隔离穷人,靠花钱买安全是不可能的,因为安全是一个社会体系的工程。
比如这个案子里消防工作,女主人的哥哥在视频也说了,灭火第一,还是救人第一,什么时候要请示等等都是体制性的问题,但代价却要我们每个人承担。
现在富人阶层对底层有着一种深深的恐惧,底层人民中有善良淳朴的,也有阴险狠毒的,但如果底层人民一直看不到希望,或者他平时生活就是一个你死我活的丛林社会,这个案子当然有点极端,但那些底层稍微把他们的玩法用在富人身上一点,富人就觉得咋如此不讲人权,那女主人的小孩肯定不了解保姆群体孩子如何打群架的,而阶层的隔阂与仇视,又非常容易导致极端事件的爆发。
发达国家为何每年要花大量的纳税人的钱去做教育和医疗的福利工作,不是不懂奥派的经济学原理,也知道养懒人有这样那样的问题,其实就是为了安抚穷人。只有穷人不闹事,富人才可能过得舒坦。但既然每个人都生活在一个共同体中,必要的底线还是要给的,只是国家太好,你的底线就成其他国家人民的天花板,这移民问题就产生了。但如果是一个单一民族为主体的国家,提高一点底线对整个社会的稳定是有很大好处的。
我知道这些话说了没用,富人有钱想的更多的是移民,而非提案增加公共教育的开支,但确实多造一座学校,少一座监狱,也许美帝,欧洲的富人明白自己无处可逃吧。
还有强弱之分,也许在阶层,财富,权力,知识层面,你是富人强者,但在生物属性,暴力规则,丛林法则之下,又非常容易变成弱者,唯有一个不断提高底线的社会,才能给每个人安全感。
最后想说一句,这种保姆必须死刑,简直挑战人类伦理的底线,那三个可是孩子啊,再他妈的有阶级仇恨,心里不平衡也不能伤害孩子.
勇者愤怒,抽刃向更强者;怯者愤怒,却抽刃向更弱者.

-----------
发达国家为何每年要花大量的纳税人的钱去做教育和医疗的福利工作?其实就是为了安抚穷人。只有穷人不闹事,富人才可能过得舒坦”,  可惜共匪不这样想,那么迟早有共匪“好受”的一天。

对普通人来说,还是go abroad为上策。

建站程序ghost的docker镜像

Docker Official Image packaging for Ghost

About this Repo

This is the Git repo of the Docker official image for ghost. See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.
The full readme is generated over in docker-library/docs, specifically in docker-library/docs/ghost.
See a change merged here that doesn't show up on the Docker Hub yet? Check the "library/ghost" manifest file in the docker-library/official-images repo, especially PRs with the "library/ghost" label on that repo.

from  https://github.com/docker-library/ghost

mysql的docker镜像

Docker Official Image packaging for MySQL Community Server。

About this Repo

This is the Git repo of the Docker official image for mysql. See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.
The full readme is generated over in docker-library/docs, specifically in docker-library/docs/mysql.
See a change merged here that doesn't show up on the Docker Hub yet? Check the "library/mysql" manifest file in the docker-library/official-images repo, especially PRs with the "library/mysql" label on that repo. For more information about the official images process, see the docker-library/official-images readme.

from https://github.com/docker-library/mysql
---------

https://hub.docker.com/r/library/mysql/

Draft

A tool for developers to create cloud-native applications on Kubernetes. 

Installation

Review the Installation Guide to configure and install Draft on to your Kubernetes cluster.

Take Draft for a Spin

Climb aboard and explore the Getting Started Guide - you'll soon be sailing!

from https://github.com/Azure/draft
-----------------

Draft's Install Guide

Get started with Draft in three easy steps:
  1. Install CLI tools for Helm, Kubectl, Minikube and Draft
  2. Boot Minikube and install Draft
  3. Deploy your first application

Dependencies

In order to get started, you will need to fetch the following:
Canary releases of the Draft client can be found at the following links:
Alternative downloads:
Unpack the Draft binary and add it to your PATH.

Enable Minikube Add-ons

Now that we have minikube installed, we can go ahead and enable the registry and ingress add-ons.
The ingress add-on is used to allow inbound connections to reach the application.
The registry add-on is used to store the built docker container within the cluster.
You can enable the add-ons with
$ minikube addons enable ingress
$ minikube addons enable registry

Boot Minikube

At this point, you can boot up minikube!
$ minikube start
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
oving files into cluster...
Setting up certs...
Starting cluster components...
Connecting to cluster...
Setting up kubeconfig...
Kubectl is now configured to use the cluster.
Now that the cluster is up and ready, minikube automatically configures kubectl on your machine with the appropriate authentication and endpoint information.
$ kubectl cluster-info
Kubernetes master is running at https://192.168.99.100:8443

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

Install Helm

Once the cluster is ready, you will need to install Helm. Helm is a Kubernetes Package Manager and is how Draft deploys an application to Kubernetes.
Installing Helm is quite simple:
$ helm init
Wait for Helm to come up and be in a Ready state. You can use kubectl -n kube-system get deploy tiller-deploy --watch to wait for tiller to come up.

Install Draft

Now that everything else is set up, we can now install Draft.
$ draft init
Follow through the prompts. Draft will read your local kube configuration and notice that it is pointing at minikube. It will then install Draftd (the Draft server) communicating with the installed registry add-on, ingress controller and Tiller (Helm server) instances.

Configure Ingress Routes

Draft uses a wildcard domain to make accessing draft-created applications easier. To do so, it specifies a custom host in the ingress from which tells the backing load balancer to route requests based on the Host header.
When Draft was installed on Minikube, a base domain of k8s.local was used. To use this domain, you can edit your /etc/hosts file to point to the ingressed out application domain to your cluster.
The following snippet would allow you to access an application:
$ sudo echo $(minikube ip) appname.k8s.local >> /etc/hosts
Unfortunately, /etc/hosts does not handle wildcard routes so each application deployed will need to result in a new route in /etc/hosts. Others have worked around this by using other more sophisticated tools like dnsmasq.
To use wildcard domains with dnsmasq, add a new rule in dnsmasq.conf:
$ sudo echo "address=/k8s.local/$(minikube ip)" >> dnsmasq.conf
See the Ingress Guide for a more detailed setup.

Take Draft for a Spin

Once you've completed the above steps, you're ready to climb aboard and explore the Getting Started Guide - you'll soon be sailing!

from  https://github.com/Azure/draft/blob/master/docs/install.md

 

Best-websites-a-programmer-should-visit


Some useful websites for programmers.
When learning CS there are some useful sites you must know to get always informed in order to do your technologies eve and learn new things. Here is a non exhaustive list of some sites you should visit, this list will get updated as soon as I can get another link, but you can also contribute by adding those you know 😉

Index

When you get stuck

  • Stack Overflow : subscribe to their weekly newsletter and any other topic which you find interesting
  • Quora : A place to share knowledge and better understand the world
  • Learn Anything : Community curated knowledge graph of best paths for learning anything
  • devRant : Community where you can rant and release your stress
  • Codementor : A mentorship community to learn from fellow developers via live 1:1 help and more.

News

Coding practice for beginners

For those who want to start a small project but can't find the ideas

General Coding advice

Coding Style

General Tools

  • regex101 : Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript
  • CodePen : Front End Developer Playground & Code Editor in the Browser

Interview Preparation

Documentaries

MOOCs for learning something new

Sites related to your preferred programming language (For me Java)

Learn AI

Seminar , research writing , talks etc

Everything in one place

YouTube Channels

Good Articles

Podcasts

Building a Simple Compiler/interpreter

Tutorials

Watch others code

  • LiveEdu.tv : screencast of people building application, websites, games, ect.

What should a programmer know

Competitive programming

Computer Books

Video Tutorials

Online Compiler and Sharing Code snippets

  • CodePad : Code editor to try, test and run 25+ languages
  • JSFiddle : Test your JavaScript, CSS, HTML or CoffeeScript with online code editor
  • Ideone.com : online compiler and debugging tool for more than 60 programming languages
  • Pastebin.com
  • Godbolt.org: Excellent tool for exploring the assembly output of different compilers with and without optimization.

Blogs of Developers

For improving your English

When you get bored from CS related stuff

  • r/ProgrammerHumor : Subreddit dedicated to exactly what it sounds like
  • Vsauce : The best youtube channel
  • TED : Great talks about technology, entertainment, and design
  • CrashCourse : small courses on various subjects
  • National Geographic : High volume of high quality content from all over the world
  • Barcroft TV : Daily short documentaries about the incredible variety of people that make up the world
  • ColdFusion : Past, present, and future of technology
  • SmarterEveryDay : Lots of amazing scientific information about the world around us, usually captured with a high-speed camera
  • SciShow : Answers to interesting questions that you've always wondered about
  • Big Think : Expert driven, actionable, educational content, featuring experts ranging from Bill Clinton to Bill Nye
  • Every Frame a Painting : High quality analysis of films and filmmaking
  • TestTube News : Interesting information about news from around the world
  • Reddit the front page of the internet

    from https://github.com/sdmg15/Best-websites-a-programmer-should-visit 

台灣演義:林志玲

与其说林志玲是娃娃音,倒不如说她的声音有磁性。