NEVERLAND - Blog Logs

2017-07

2017-07-07

  1. PROBLEM: What is Technology-Organization-Environment (T-O-E) Framework?
  2. PROBLEM: What is Diffusion of Innovation (DOI) Theory?
  3. PROBLEM: What is Feature selection?
  4. PROBLEM: Review Logistic Regression and OLS Reg
  5. PROBLEM: Robust Test?
  6. PROBLEM: decision making
  7. PROBLEM: virtualenv vs anaconda?
  8. MATERIALS: Some useful links:

Python—Virtualenv简明教程
Python指南:虚拟环境
Anacodna之conda与 virtualenv对比使用教程,创建虚拟环境

2017-07-09

  1. MATERIALS: Manipulate: Interactive Parametrized Plotting
  2. MATERIALS: 【转】MATLAB GUI 入门教程
  3. MATERIALS: [MATLAB GUI. 最全的MATLAB Gui 教程合集
  4. MATERIALS: MATLAB App Designer:如何使用App Designer进行的简单的GUI设计

2017-07-10

  1. Make a circle illusion animation
  2. 做一个圆幻幻动画
  3. 知乎:Mathematica 到底有多厉害?

2017-07-13

  1. 代码实现WordPress归档页面模板[速度很快]
  2. WordPress添加文章归档页面

2017-07-17

  1. Mac键盘如何开启F1 - F12功能键
  2. Mac快捷键大全
  3. Does anyone know how to run selection on mac?
  4. Google大陆替代
  5. matlab 字符串中输入单引号
  6. how to break a long legend text into two lines
  7. Why do figures exported using the SAVEAS function and the File->Save As menu item have different resolutions and file sizes?

2017-07-21

  1. Quantitative vs. Qualitative?
  2. What is Decision Suport System?

2017-07-31

  1. Problem Solving with Algorithms and Data Structures using Python
  2. 知乎:有哪些用 Python 语言讲算法和数据结构的书?
  3. Introduction to Algorithms
  4. Computational Physics, 2nd Edition
  5. Computational Physics with Python

2017-08

2017-08-01

  1. 知乎:「劣后」是个什么概念?经常用于什么场景?
  2. 房地产投资信托
  3. 信托与基金有何区别?

2017-09

2017-09-09

  1. Document analysis
  2. Automatic summarization
  3. Text simplification
  4. Sentiment analysis
  5. LDA PRSL keyword
  6. Labeled LDA, Supervised ML
  7. Topic Model
  8. Topic trend: Trendsmap: Real-time Twitter Trending Topics
  9. Python textblob
  10. Domain-centric LDA
  11. Text mining
  12. Data streaming techniques?
  13. User analysis

2017-09-11

Latex template

  1. Overleaf
  2. How can I make a slide with Latex
  3. Fun with Beamer
  4. First Beamer Presentation with LaTeX and Sublime Text 2

Note System

  1. 3 Easy Steps to Digitize Your Study Notes
  2. SELF IMPROVEMENT:A Quick & Dirty Guide to Perfect Digital Note-Taking

About Blog

  1. Atom vs sublime?
  2. Jekyll vs Hexo?
  3. How Writing A Science Blog Saved My PhD
  4. The Top 9 Business Intelligence Blogs You Should Be Reading

2017-09-12

  1. Is there any toy models for ML? Quora: What are some really interesting machine learning projects for beginners?
  2. 机器学习笔记:机器学习以及tensorflow笔记 by Ni Pengfei
  3. 学习Bookdown:How to Start a Bookdown Book
  4. 用R搭建Blogdown:
    用 R blogdown 搭建个人博客或科研网站
    R Markdown Notebook 与 Jupyter / IPython Notebook
    R Markdown
    Blogging with Rmarkdown, knitr, and Jekyll | R-bloggers
  5. Hexo博客实现中英双语言:
    简单方法实现Hexo中的多语言
    Hexo:国际化(i18n)
    Hexo 与 Nginx 实现沉浸式多语言博客
    hexo实现中英双语博客教程

2017-09-15

  1. Sufficient statistics?
  2. Count Data?

2017-09-16

  1. hexo-blog-encrypt

2017-09-17

  1. hexo-article-emoji

2017-10

2017-10-10

  • Information theory by D.MacKay
  • Algo Intro->Algo Design->ML Algo

2017-10-11

  • Sentiment analysis & opining mining & mood mining

2017-10-12

2017-10-13

  • virtualenv+tensorflow
  • NLP by D. Jurafsky & C. Manning

2017-10-14

  • Linux/Mac Terminal
  • Duke STA 663

2017-10-15

  • vim vs nano

2017-10-16

  • Review Linear Algebra & Vector Calculus

2017-10-24

  • Bayesian Network
  • Markov Chain Monte Carlo
  • Gibbs Sampling
  • Graphic Models
  • Statistical Inference
  • Causuality vs Correlation
  • Granger causality test

2017-10-28

超链接只有下划线样式 => 蓝色,没有下划线

Change themes\next\source\css\_common\components\post\post.styl:

from

[themes\next\source\css\_common\components\post\post.styl]
1
2
3
4
5
6
7
8
.post-body p a{
color: #0593d3;
border-bottom: none;
&:hover {
color: #0477ab;
text-decoration: underline;
}
}

to

[themes\next\source\css\_common\components\post\post.styl]
1
2
3
4
.post-body a{
color: #0593d3;
border-bottom: none;
}

2017-10-30

2017-10-31

2017-11

2017-11-10

  • ISSUE: Spell-check:

    1. Go to: (Preferences) -> (Settings - Syntax Specific)
    2. This will open up a file named: Markdown.sublime-settings
    3. Add the following:

      1
      2
      3
      {
      "spell_check": true
      }
    4. Save it in ~/.config/sublime-text2/Packages/User/ and you are done.

    5. Press F6 to activate or inactivate the spell-checker.
    6. Right click to check the suggested words.
  • ISSUE: Google Spell Check:

    1. Select some text in the editor or put cursor under a word to check
    2. Run the google_spell_correct command
      1. via hotkey ctrl+alt+g
      2. via right-click context menu > Google Spell Check
      3. via Command Pallet, ctrl+shift+p (command+shift+p in OSX) > Google Spell Check
    3. be patient, may take a second for google to return a result. If nothing changes, google probably thinks your spelling is okay, or has no idea what you’re talking about. Try selecting some more words to give google context.

2017-11-13

ISSUE: 根据hexo的next主题个性化教程:打造炫酷网站-26. 博文置顶添加博文置顶功能。

node_modules/hexo-generator-index/lib/generator.js

[node_modules/hexo-generator-index/lib/generator.js]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';
var pagination = require('hexo-pagination');
module.exports = function(locals) {
var config = this.config;
var posts = locals.posts.sort(config.index_generator.order_by);
var paginationDir = config.pagination_dir || 'page';
var path = config.index_generator.path || '';
return pagination(path, posts, {
perPage: config.index_generator.per_page,
layout: ['index', 'archive'],
format: paginationDir + '/%d/',
data: {
__index: true
}
});
};

改为

[node_modules/hexo-generator-index/lib/generator.js]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';
var pagination = require('hexo-pagination');
module.exports = function(locals){
var config = this.config;
var posts = locals.posts;
posts.data = posts.data.sort(function(a, b) {
if(a.top && b.top) { // 两篇文章top都有定义
if(a.top == b.top) return b.date - a.date; // 若top值一样则按照文章日期降序排
else return b.top - a.top; // 否则按照top值降序排
}
else if(a.top && !b.top) { // 以下是只有一篇文章top有定义,那么将有top的排在前面(这里用异或操作居然不行233)
return -1;
}
else if(!a.top && b.top) {
return 1;
}
else return b.date - a.date; // 都没定义按照文章日期降序排
});
var paginationDir = config.pagination_dir || 'page';
return pagination('', posts, {
perPage: config.index_generator.per_page,
layout: ['index', 'archive'],
format: paginationDir + '/%d/',
data: {
__index: true
}
});
};

2017-11-14

ABOUT页面添加音乐播放功能:

使用hexo-tag-aplayer插件,运行以下命令:

npm install --save hexo-tag-aplayer

进行安装。

hexo-tag-aplayer官方建议的几个参数如下:

 "narrow": false,            // Optional, narrow style
  "autoplay": true,           // Optional, autoplay song(s), not supported by mobile browsers
  "mode": "random",           // Optional, play mode, can be `random` `single` `circulation`(loop) `order`(no loop), default: `circulation`
  "showlrc": 3,             // Optional, show lrc, can be 1, 2, 3
  "mutex": true,              // Optional, pause other players when this player playing
  "theme": "#e6d0b2",           // Optional, theme color, default: #b7daff
"preload": "metadata",          // Optional, the way to load music, can be 'none' 'metadata' 'auto', default: 'auto'
"listmaxheight": "513px",       // Optional, max height of play list

我先拿Free Loop做测试,在~/hexo/source/about/index.md文件中插入:

{% aplayerlist %}
    {
        "narrow": false,
        "autoplay": true,
        "showlrc": 3,
        "mode": "circulation",
        "mutex": true,
        "music": [
        {
            "title": "Free Loop",
            "author": "Daniel Powter",
            "url": "http://on21nqqjz.bkt.gdipper.com/Free%20Loop.mp3",
            "pic": "http://on21nqqjz.bkt.gdipper.com/Free%20Loop.jpeg",
            "lrc": "http://on21nqqjz.bkt.gdipper.com/Free%20Loop.lrc"
        }
        ]
    }
    {% endaplayerlist %}

关于歌词,魔镜歌词网可以搜到带有时间戳的歌词,直接粘贴复制到txt里,然后再将.txt改成.lrc即可。

关于对象储存,一开始我是尝试使用Google Drive进行对象储存,但是似乎不起作用。最终我还是选择七牛云。(不知道有没有更好的国外的云储存服务,毕竟本博客的服务器在海外。)七牛云对象储存的产品价格可戳链接

根据打造个性超赞博客Hexo+NexT+GithubPages的超深度优化的建议,我在custom.styl里加入:

// 音乐播放器aplayer
.aplayer {
    font-family: "Lato", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    border-radius: 3px !important;
}
.aplayer-withlrc.aplayer .aplayer-info {
    background: rgb(255, 255, 255);
    color: rgba(0, 0, 0, 0.9);
}
// 音乐播放器aplayer歌单
.aplayer .aplayer-list ol {
    background: rgb(255, 255, 255);
    color: rgba(0, 0, 0, 0.9);
}

%28 代替(, %29代替)

2017-11-15

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// 自定义文字背景色块
span#inline-red {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #FF0000;
}
span#inline-yellow {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #FFFF00;
}
span#inline-blue {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #0000FF;
}
span#inline-green {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #008000;
}
span#inline-cyan {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #00FFFF;
}
span#inline-orange {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #FFA500;
}
span#inline-purple {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #800080;
}
span#inline-gray {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #808080;
}
span#inline-white {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #FFFFFF;
}
span#inline-brown {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #A52A2A;
}
span#inline-pink {
padding: 3px;
margin: 2px;
font-size: 90%;
font-weight: bold;
color: #fff;
border-radius: 3px;
background-color: #FFC0CB;
}

// 自定义文字引用边框
p#border-left-red {
color: #FF0000;
background-color: rgb(255, 255, 255);
padding: 10px;
border: 1px solid #ccc;
border-left-width: 5px;
border-radius: 3px;
border-left-color: #FF0000;
text-indent: 0em;
}
p#border-right-red {
color: #FF0000;
background-color: rgb(255, 255, 255);
padding: 10px;
border: 1px solid #ccc;
border-right-width: 5px;
border-radius: 3px;
border-right-color: #FF0000;
text-indent: 0em;
}
p#border-top-red {
color: #FF0000;
background-color: rgb(255, 255, 255);
padding: 10px;
border: 1px solid #ccc;
border-top-width: 5px;
border-radius: 3px;
border-top-color: #FF0000;
text-indent: 0em;
}
p#border-bottom-red {
color: #FF0000;
background-color: rgb(255, 255, 255);
padding: 10px;
border: 1px solid #ccc;
border-bottom-width: 5px;
border-radius: 3px;
border-bottom-color: #FF0000;
text-indent: 0em;
}
// 自定义的引用样式
blockquote.question {
color: rgba(0, 0, 0, 0.95);
padding-left: 25px;
border-left: 5px solid rgb(5, 154, 37);
background: rgba(255, 255, 255, 0.75);
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}

2017-12

2017-12-06

ISSUE: 考虑到版权问题,今天想尝试寻找一个适合海外的在线音乐平台Hexo插件,然后发现hexo-tag-spotify完美地解决了这个问题。

效果如下:

可以与我使用hexo-tag-aplayer插件插入的音乐作对比:Neverland|About

2017-12-18

2017-12-20

2018-01

2018-01-19

ISSUE: Installing IPython on MAC

  • While installing IPython on MAC using

$ pip install ipython

ERROR:

Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/

ISSUE*: conda can not be found

  • While use command conda:

zsh: command not found: conda

$ vim ./zshrc

export PATH=”/home/username/miniconda/bin:$PATH”

Make sure to replace /home/username/miniconda with your actual path.

2018-01-20

$ ipython nbconvert —to=python [YOUR_NOTEBOOK].ipynb

2018-03

2018-03-08

2019

2019-01

2019-01-07

-------------End of postThanks for your time-------------
BaoDuGe_飽蠹閣 wechat
Enjoy it? Subscribe to my blog by scanning my public wechat account