Java元编程

类加载
http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html

Java元编程
https://www.quora.com/Is-it-possible-to-do-metaprogramming-in-Java
http://stackoverflow.com/questions/8387506/java-static-metaprogramming/43671019#43671019
http://stackoverflow.com/questions/8868102/java-metaprogramming
http://stackoverflow.com/questions/112320/is-static-metaprogramming-possible-in-java

lombok
http://notatube.blogspot.hk/2010/12/project-lombok-creating-custom.html
http://notatube.blogspot.com/2010/11/project-lombok-trick-explained.html
http://stackoverflow.com/questions/6107197/how-does-lombok-work

热加载
https://my.oschina.net/xianggao/blog/364068
Annotation Processing
http://hannesdorfmann.com/annotation-processing/annotationprocessing101
https://github.com/google/auto

代码生成
https://github.com/square/javapoet

字节码增强
http://www.infoq.com/cn/articles/cf-java-byte-code

Deploy the Jupyter Notebook container on VPS and use Nginx as the reverse proxy

# /etc/nginx/sites-enabled/some.domain
# Change the server name {some.domain}
# Change the {host.of.notebook} and {port} in the following locations
server {
        listen 80;
        # Change the server name {some.domain}
        server_name some.domain;
        location / {
                # Change the {host.of.notebook} and {port}
                proxy_pass http://host.of.notebook:port;

                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_read_timeout 86400;
        }

        client_max_body_size 50M;
        error_log /var/log/nginx/error.log;

        location ~* /(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? {
                # Change the {host.of.notebook} and {port}
                proxy_pass http://host.of.notebook:port;

                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

                proxy_http_version 1.1;

                #proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Upgrade "websocket";
                proxy_set_header Connection "upgrade";
                proxy_read_timeout 86400;
        }

}

linux下批量删除空文件(大小等于0的文件) 和 乱码文件

find . -name "*" -type f -size 0c | xargs -n 1 rm -f

用这个还可以删除指定大小的文件,只要修改对应的 -size 参数就行,例如:

find . -name "*" -type f -size 1024c | xargs -n 1 rm -f

就是删除1k大小的文件。(但注意不要用 -size 1k,这个得到的是占用空间1k,不是文件大小1k的)。

如果只要删除文件夹或者名字连接等,可以相应的改 -type 参数,具体细节见 man find 。

继续阅读“linux下批量删除空文件(大小等于0的文件) 和 乱码文件”

pip使用豆瓣的镜像源

easy_install -i http://pypi.douban.com/simple/ ipython
pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple ipython
pip  install  -i  https://pypi.doubanio.com/simple/  --trusted-host pypi.doubanio.com  django

机器学习&&语音识别

Awesome-TensorFlow-Chinese

TensorFlow从基础到实战:一步步教你创建交通标志分类神经网络

CNN(卷积神经网络)、RNN(循环神经网络)、DNN(深度神经网络)的内部网络结构有什么区别?

michaelnielsen

神经网络与深度学习

TensorFlow实战:手写数字识别

循环神经网络(RNN, Recurrent Neural Networks)介绍

用Wavenet做中文语音识别 Deeper

Descriptive Deep Learning

如何用Kur训练百度的DeepSpeech模型

Ngram语言模型

speech-to-text-wavenet

Deep Speech: Scaling up end-to-end speech recognition

A TensorFlow implementation of Baidu’s DeepSpeech architecture

通俗理解卷积神经网络

卷积神经网络

过拟合与正则

【译】神经网络与深度学习

学习资源

TensorFlow教程

tensorflownews

TensorLayer

数十种TensorFlow实现案例汇集:代码+笔记

机器之心GitHub项目:GAN完整理论推导与实现,Perfect!

TensorLayer 中文文档

Keras:基于Python的深度学习库

Kur: Descriptive Deep Learning