博文
如何利用 CDN 进一步的前后端分离
· ☕ 4 分钟
最近在优化一下项目,梳理整个链路之后,开始逐步优化,发现了很多可以改进的点。下面是对开发模式、部署方式的一些思考,希望对你有所启发。 1. 开发背景 1.1 部署方式 如上图,简单描述一下应用的架构。 采用的是经典三层架构,接入层,逻辑层,存储层。其中,接入

Nodejs 相关的一些安装问题
· ☕ 1 分钟
1. node-sass 安装 安装 node-sass 时,在 node scripts/install 阶段会从 github.com 下载 .node 文件,由于网络问题,常常会导致失败。 可以在项目内添加一个 .npmrc 文件,配置代理安装: 1 2 sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ registry=https://registry.npm.taobao.org 或者使用 cnpm 安装 1 2 npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install node-sass 2. node-gyp 安装 node-gyp 是为 Nodejs 编译 C++ 扩展,使用的编译工具。这里 有详细的各个系统上的安装方法。 在

Jupyter 安装 Python3、Go 内核
· ☕ 3 分钟
前面提到 Jupyter Notebook 是一个交互式笔记本,支持运行 40 多种编程语言,非常适合教学。最近,学习 Go 语言,就想起了 Jupyter。本文主要描述如何在 Jupyter 里面安装 Python3 和 Go 内核。 1. Jupyter 安装 在 CentOS 7 中,默认安装了 Python 2.7,有现成的 Python 环境可用。 安装 Jupyter 1 pip install jupyter 生成密码 在 IPython 中,

Robot Framework 进阶 (2)
· ☕ 2 分钟
配置表 Robot Framework 的配置表主要有两种用途。详细说明,请参考这里。 导入测试、资源文件和变量文件。 定义元数据。 在 Setting 表格中: 1 2 3 4 5 Library 引入库 Resource 引入资源文件 Variables 引入变量文件 Test Setup 指定缺省的 test setup Test Teardown 指定缺省的 test teardown 在测试用例中: 1 2 3 4 5 6 [Documentation] 测试用例描述 [Tags] 测试用

Robot Framework 进阶 (1)
· ☕ 3 分钟
pybot 命令 执行所有测试用例 1 pybot . 执行某个测试套件 1 pybot testsuite.txt 执行某个测试套件中的测试用例 1 pybot --test case_name testsuit.txt 将测试结果输出到固定路径 1 pybot --ouputdir your_ouput_dir testsuit.txt 执行包含某个 tag 的测试用例 1 pybot --include tag_name testsuit.txt 关于日志 默认情况下,Robot Framework 中低于 INFO 级别的日志消息不会写日志。这个阈值可以通过命