V2XR

Results 36 issues of V2XR

![截图](https://user-images.githubusercontent.com/3953966/113652914-5265e580-96c7-11eb-8165-5f80d6ab1c5d.PNG)

`node build.js` ``` node_modules/etpl/src/main.js:183 return source.replace(/[&"']/g, htmlFilterReplacer); ^ RangeError: Maximum call stack size exceeded ```

pip 国内速度太慢,可以使用镜像: ``` sh cat ~/.pip/pip.ini [global] index-url = http://pypi.douban.com/simple ``` 在虚拟环境下,好像不会应用这一设定,可以手动设定: ``` sh python3 -m venv venv3 source venv3/bin/active pip install package -i http://pypi.douban.com/simple --trusted-host pypi.douban.com ```

Python

[Git.io](http://git.io/) 是 GitHub 站内链接的短网址服务,可以直接在网页上生成短链接,也可以用通过命令端完成,使用说明:[Git.io: GitHub URL Shortener](https://github.com/blog/985-git-io-github-url-shortener). 可以通过设定参数`code=lo22`来自定义短链接参数,如本页面:[git.io/lo22](https://git.io/lo22) ``` sh curl -i https://git.io -F url=https://github.com/rainyear/lolita/issues/22 -F code=lo22 HTTP/1.1 100 Continue HTTP/1.1 201 Created Location: https://git.io/lo22 ``` 放到脚本里: ``` sh #!/bin/bash...

Note

[Deepdream](https://github.com/google/deepdream)是最近Google开源的一个很好玩的项目,让我们可以看到利用深度学习对图片进行分类时,相邻神经网络层次之间的信息传递。Deepdream是基于[Caffe](http://caffe.berkeleyvision.org/installation.html#prerequisites)框架,因此主要是安装Caffe的依赖环境和Caffe框架。 ### 1. 下载 Caffe ``` sh git clone https://github.com/BVLC/caffe.git cd caffe && cp Makefile.config.example Makefile.config ``` ### 2. 安装 Caffe 依赖 ``` sh #1. CUDA is required for GPU...

Note
Python
ML

### 0. 选择 digitalocean 经测试(ZJU-VPN 50): ![qq20150123-1 2x](https://cloud.githubusercontent.com/assets/3953966/5874650/2af99f78-a33f-11e4-8dcb-e5d9f4563945.png) London 速度稳定,没有被封锁。 ### 1. 服务器安装、配置 [shadowsocks](http://shadowsocks.cn/quick-guide.html) ``` bash apt-get install python-pip pip install shadowsocks # 创建配置文件: echo ' { "server":"your_digitalocean_droplet_ip", "server_port":8388, "local_port":1080,...

Note

Reddit上一个帖子 [Am I the last person in the world to discover Safari's responsive design mode?](https://www.reddit.com/r/web_design/comments/47e89i/am_i_the_last_person_in_the_world_to_discover/): ![Safari](http://i.imgur.com/meRgOq8.png) 原来 Safari 也开放了像 Chrome 一样的开发控制台:[工具 - 面向开发者的 Safari - Apple Developer](https://developer.apple.com/cn/safari/tools/)。 打开方式:“偏好设置”-“高级”-选中“在菜单栏中显示“开发”菜单。 ![menu](https://cloud.githubusercontent.com/assets/3953966/13326324/58fe268a-dc20-11e5-8be0-3c8aed817853.png) **进入响应模式**...

Note

> Ghost v0.7.0 > > LaTex - MathJax v2.6.1 ### 1. Code Injection Add following codes to `{{ghost_foot}}` tag: ``` js MathJax.Hub.Config({ jax: ["input/TeX", "output/SVG"], tex2jax: {inlineMath: [['$$', '$$']],displayMath :...

Note

在使用 Jupyter 过程中发现,没有 Vim 绑定,编辑 LaTex 公式或者代码是一件非常痛苦的事,于是搜索了一下,发现已经有人做了 [jupyter-vim-binding](https://github.com/lambdalisue/jupyter-vim-binding)。 先看一下效果图: ![screen](https://github.com/lambdalisue/jupyter-vim-binding/raw/master/resource/screencast.gif) > Vimmer will fall in love! 安装过程也很简单,虽然我用的是 `itorch` ,但只是一层外壳而已,本质还是 `Jupyter`,如果是还在用旧版本的 `IPython Notebook` 那么还是赶紧升级吧~ ``` bash # 创建目录用于存放插件 $ mkdir -p...

Vim
Jupyter

之前所有 Python 新项目都是用 `python3 -m venv venv3` 创建独立的虚拟环境,这次建一个基于 Jupiter 的科学计算环境,所以用到了 [Anaconda](https://www.continuum.io/why-anaconda): > THE FASTEST GROWING OPEN DATA SCIENCE PLATFORM Anaconda 提供一个管理工具 [`conda`](http://conda.pydata.org/docs/index.html),可以把 `conda` 看作是 `pip` + `virtualenv` + `PVM (Python...

Note
Python
Jupyter