1 微信公众号网页授权注意事项
2 使用程序发送邮件
3 xshell vim 小键盘输入错乱
4 火狐代理配置用户名与密码
5 Linux Boost 编译
./bjam --toolset=gcc --with-regex runtime-link=static link=static stage
apt-get install libbz2-dev
apt-get install libcurl4-gnutls-dev ./bjam --toolset=gcc --with-iostreams runtime-link=static link=static stage #自己编译iostreams库
6 Host 文件路径
linux: /etc/hosts
window: c:\windows\system32\drivers\etc\hosts
7 CORS 跨域
服务器响应时加上如下头部:
Access-Control-Allow-Origin:"*"
Access-Control-Allow-Methods:"GET, POST, OPTIONS, PUT, DELETE"
Access-Control-Allow-Headers: "Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With Authorization"
8 div 窗口高度自适应
style="position:absolute; left: 0px; right: 0px; top:0px; bottom:0px; overflow:auto;"
9 cmake 讲解博客
https://www.cdsy.xyz/computer/programme/compilers/251101/cd74889.html
10 angular 视图手动更新
$scope.$apply();
11 npm 包源设置
npm config set registry http://registry.cnpmjs.org # 设置为中国镜像源
12 js 面向对象编程
https://www.cdsy.xyz/computer/programme/js/251101/cd74887.html
13 angular 上传文件
onchange="angular.element(this).scope().fileChangeEvent(event)
14 debian 数据源
deb http://mirrors.163.com/debian/ stable main
deb-src http://mirrors.163.com/debian/ stable main
15 网页可编辑 contenteditable="true"
16 在 ssh 中后台运行程序
nohup comand arg >output 2>&1
17 vbox 共享目录挂载
mount -t vboxsf workspace /mnt/workspace # /mnt/workspace 目录应存在 workspace 为 vbox 配置的共享目录名
vim /etc/fstab 开机自动挂载配置
workspace /mnt/workspace/ vboxsf rw,auto 0 0
18 动态库找不到
export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH ldconfig
