-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello-world.html
312 lines (284 loc) · 14.4 KB
/
hello-world.html
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>Hello World! - 观测站</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Open Graph tags -->
<meta property="og:type" content="article"/>
<meta property="og:title" content="Hello World!"/>
<meta property="og:url" content="https://zwy1135.github.io/hello-world.html"/>
<meta property="og:description" content="断断续续折腾了好几天,终于是吧这个博客弄起来了。 用pelican配的github pages,不得不说python2在windows下的编码问题真是令人蛋碎啊。从安装开始就不停的报unicodedecodeError。差点把我搞疯了。这是逼我转投python3的节奏么。 不管怎样,问题终究是解决了。解法是在每一个报错的文件里加上 import sys reload(sys) sys.setdefaultencoding(sys.getfilesystemencoding()) 不小心误入这里的朋友也许可以用上。 最后感谢一下frantic1048提供的pelican使用教程。 Written with StackEdit."/>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://zwy1135.github.io/theme/css/bootstrap.min.css" type="text/css"/>
<link href="https://zwy1135.github.io/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="https://zwy1135.github.io/theme/css/pygments/native.css" rel="stylesheet">
<link rel="stylesheet" href="https://zwy1135.github.io/theme/css/style.css" type="text/css"/>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="https://zwy1135.github.io/" class="navbar-brand">
观测站 </a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li >
<a href="https://zwy1135.github.io/category/machine-learning.html">Machine learning</a>
</li>
<li >
<a href="https://zwy1135.github.io/category/reading-notes.html">Reading notes</a>
</li>
<li class="active">
<a href="https://zwy1135.github.io/category/sui-bi.html">随笔</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://zwy1135.github.io/archives.html"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div> <!-- /.navbar -->
<div class="container">
<div class="row">
<div class="col-sm-9">
<section id="content">
<article>
<header class="page-header">
<h1>
<a href="https://zwy1135.github.io/hello-world.html"
rel="bookmark"
title="Permalink to Hello World!">
Hello World!
</a>
</h1>
</header>
<div class="entry-content">
<div class="panel">
<div class="panel-body">
<footer class="post-info">
<span class="label label-default">Date</span>
<span class="published">
<i class="fa fa-calendar"></i><time datetime="2014-08-11T00:00:00"> 周一 11 八月 2014</time>
</span>
<span class="label label-default">Tags</span>
<a href="https://zwy1135.github.io/tag/za-wu.html">杂物</a>
/
<a href="https://zwy1135.github.io/tag/sui-bi.html">随笔</a>
/
<a href="https://zwy1135.github.io/tag/python.html">python</a>
</footer><!-- /.post-info --> </div>
</div>
<p>断断续续折腾了好几天,终于是吧这个博客弄起来了。</p>
<p>用pelican配的github pages,不得不说python2在windows下的编码问题真是令人蛋碎啊。从安装开始就不停的报unicodedecodeError。差点把我搞疯了。这是逼我转投python3的节奏么。</p>
<p>不管怎样,问题终究是解决了。解法是在每一个报错的文件里加上</p>
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">sys</span>
<span class="nb">reload</span><span class="p">(</span><span class="n">sys</span><span class="p">)</span>
<span class="n">sys</span><span class="o">.</span><span class="n">setdefaultencoding</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">getfilesystemencoding</span><span class="p">())</span>
</pre></div>
<p>不小心误入这里的朋友也许可以用上。</p>
<p>最后感谢一下frantic1048提供的pelican使用<a href="http://frantic1048.com/bo-ke-dan-sheng-ji-ji-yu-githubpelicanchuang-jian-bo-ke-de-zheng-ge-guo-cheng.html">教程</a>。</p>
<blockquote>
<p>Written with <a href="https://stackedit.io/">StackEdit</a>.</p>
</blockquote>
</div>
<!-- /.entry-content -->
<hr />
<section class="comments" id="comments">
<h2>Comments</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'siteofz'; // required: replace example with your forum shortname
var disqus_identifier = 'hello-world';
var disqus_url = 'https://zwy1135.github.io/hello-world.html';
var disqus_config = function () {
this.language = "zh";
};
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section>
</article>
</section>
</div>
<div class="col-sm-3 well well-sm" id="sidebar">
<aside>
<section>
<ul class="list-group list-group-flush">
<li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4>
<ul class="list-group" id="social">
<li class="list-group-item"><a href="https://github.com/zwy1135"><i
class="fa fa-我的github-square fa-lg"></i> 我的github
</a></li>
<li class="list-group-item"><a href="mailto:[email protected]"><i
class="fa fa-我的邮箱-square fa-lg"></i> 我的邮箱
</a></li>
</ul>
</li>
<li class="list-group-item"><a href="https://zwy1135.github.io/"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Categories</span></h4></a>
<ul class="list-group" id="categories">
<li class="list-group-item">
<a href="https://zwy1135.github.io/category/machine-learning.html">
<i class="fa fa-folder-open fa-lg"></i> Machine Learning
</a>
</li>
</ul>
<li class="list-group-item">
<a href="https://zwy1135.github.io/category/reading-notes.html">
<i class="fa fa-folder-open fa-lg"></i> Reading Notes
</a>
</li>
</ul>
<li class="list-group-item">
<a href="https://zwy1135.github.io/category/sui-bi.html">
<i class="fa fa-folder-open fa-lg"></i> 随笔
</a>
</li>
</ul>
</li>
<li class="list-group-item"><a href="https://zwy1135.github.io/"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a>
<ul class="list-group" id="tags">
<li class="list-group-item tag-1">
<a href="https://zwy1135.github.io/tag/scikit-learn.html">
Scikit-learn
</a>
</li>
<li class="list-group-item tag-1">
<a href="https://zwy1135.github.io/tag/machine-learning.html">
Machine Learning
</a>
</li>
<li class="list-group-item tag-1">
<a href="https://zwy1135.github.io/tag/python.html">
python
</a>
</li>
<li class="list-group-item tag-1">
<a href="https://zwy1135.github.io/tag/kaggle.html">
kaggle
</a>
</li>
<li class="list-group-item tag-3">
<a href="https://zwy1135.github.io/tag/za-wu.html">
杂物
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/oop.html">
OOP
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/ali.html">
ali
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/written-test.html">
Written Test
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/notes.html">
Notes
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/conda.html">
conda
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/sui-bi.html">
随笔
</a>
</li>
<li class="list-group-item tag-4">
<a href="https://zwy1135.github.io/tag/bokeh.html">
Bokeh
</a>
</li>
</ul>
</li>
<li class="list-group-item"><h4><i class="fa fa-external-link-square fa-lg"></i><span class="icon-label">Links</span></h4>
<ul class="list-group" id="links">
<li class="list-group-item">
<a href="http://getpelican.com/" target="_blank">
Pelican
</a>
</li>
<li class="list-group-item">
<a href="http://python.org/" target="_blank">
Python.org
</a>
</li>
<li class="list-group-item">
<a href="http://scikit-learn.org/stable/index.html" target="_blank">
Scikit-Learn
</a>
</li>
<li class="list-group-item">
<a href="http://www.kaggle.com/" target="_blank">
Kaggle
</a>
</li>
</ul>
</li>
</ul>
</section>
</aside> </div>
</div>
</div>
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-xs-10">© 2015 Zeng Wenyuan
· Powered by <a href="https://github.com/DandyDev/pelican-bootstrap3" target="_blank">pelican-bootstrap3</a>,
<a href="http://docs.getpelican.com/" target="_blank">Pelican</a>,
<a href="http://getbootstrap.com" target="_blank">Bootstrap</a> </div>
<div class="col-xs-2"><p class="pull-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div>
</div>
</div>
</footer>
<script src="//code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://zwy1135.github.io/theme/js/bootstrap.min.js"></script>
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
<script src="https://zwy1135.github.io/theme/js/respond.min.js"></script>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'siteofz'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script');
s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>