This chapter develop a small language of numbers and booleans, serving as a straightforward vehicle for the introduction of serveral fundamental concepts like, abstract syntax tree, evaluation and runtime errors.
Syntax
BNF-like Definition
Terms of this language are defined as below:
t ::=
true
false
i继续阅读 »
Kubernetes笔记
more
导出现有的资源
bash
for n in $(kubectl get -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob)
do
mkdir -p $(dirname $n)
kubectl get -o=yaml --export $n > $n.yaml
done
热更新deploy
有时候我们修改了ConfigMap,但是代码不支持,肯定不能让程序停止,因此必须支持热更新。命令如下:
bash
kubectl patch继续阅读 »
Windows安装Redis
首先Redis官方并不支持Windows,而Windows版的Redis是由MSOpenTech提供的支持,所以首先去下载一个发布版,我选择的是Redis-x64-3.2.100.zip压缩包,解压缩得到如下文件列表
html
EventLog.dll
Redis on Windows Release Notes.docx
Redis on Windows.docx
redis.windows.conf
redis.windows-service.conf
redis-benchmark.exe
redis-benchmark.pdb
redis-check-aof.exe
redis-check-a继续阅读 »
Last month I have study a course on Coursera, it is called
Learning how to learn.
It is a course that teach you how to learn efficiently. I made some notes about it
and share here.
(I just list each view point which I think is important, but I think I can figure out
better way to show next time)继续阅读 »