Yulai Blog


配置 Cygwin 为 VS Code 终端

Configure cygin as VS Code's Integrated Terminal

修改 VS Code 的 User Setting For enhanced security, such settings can only be defined in user settings and not at workspace scope. 1 2 3 4 5 6 7 8 9 10 11 # settings.json { // start bash, not th...

Boost Multi-index Containers Library

Boost Multi-index Containers Library

overview introduced in Boost 1.32, released in 2004 一个用户自定义的容器,用户可以对其中的数据提供多组访问接口 容器定义由 boost::multi_index::multi_index_container 来实现 接口的定义由模板类 boost::multi_index::indexed_by 来实现 ...

what's a senior engineer

sub title(optional)


explicit conversion

sub title(optional)

explicit conversion constructors explicit conversion operator reference cppreference: explicit specifier cppreference: converting constructor MSDN: Conversion constructors []

signed integers and overflow

sub title(optional)

Signed integer overflow is undefined behavior Specialization std::numeric_limits::min() std::numeric_limits::max() numeric_limits     ...


sub title(optional)

IPv6 Neighbor Discovery NDP defines five ICMPv6 packet types: 路由器请求消息 Router Solicitation (Type 133) Hosts inquire with Router Solicitation messages to locate routers on an attached link.[3]...

Python C++ 扩展

需求 1 2 * Python 模块编译为 so 文件 * Python 调用该 so 文件(C 也可以调用该 so 文件) 准备工作:安装 Cpython 1 pip install python-dev cpthon 创建 Cpython 文件: hello.pyx 1 2 3 4 5 6 kirin@kawagarbo:~/workspace/test$ tree . ├...

Keynote Demo

Setup Streisand server on Ubuntu 16.04 LTS

申请一个 VPS 主机 Vultr上有2.5美金/月的主机(目前只在 New Jersey 和 Marmia 有) 建议安装 Ubuntu 16.04 LTS 升级内核到4.10 (内核在 4.10 后的版本才支持 Google BBR ) 检查内核版本 1 2 uname -r 4.4.0-109-generic 如果内核版本低于 4.10...

Setup GitPitch server on Ubuntu 16.04 LTS

Setup a GitPitch server 1, Install Java & Sbt on your server https://github.com/gitpitch/gitpitch/wiki/Server-Build-Instructions