-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
375 lines (234 loc) · 12.3 KB
/
index.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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>张弦的博客</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
<meta name="author" content="xuangong">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/pacman-114-114.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/pacman-114-114.jpg">
<link rel="stylesheet" href="/css/style.css" type="text/css">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?d51b4ed17101e90136392574b39a9c96";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/logo-300-300.png" alt="张弦的博客" title="张弦的博客"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="张弦的博客">张弦的博客</a></h1>
<h2 class="blog-motto"></h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/archives">Archives</a></li>
<li><a href="http://www.about.me/zhangxian">About</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="text" id="search" name="q" autocomplete="off" maxlength="20" placeholder="搜索" />
<input type="hidden" name="q" value="site:zhangxian.me">
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/11/29/mac-connect-to-win81-via-remote-desktop-connection/" title="Mac连接win8.1 Remote Desktop Connection问题修复" itemprop="url">
<h1 itemprop="name">Mac连接win8.1 Remote Desktop Connection问题修复</h1>
<p itemprop="description" >"Remote Desktop Connection cannot verify the identity of the computer that you want to connect to."
不过是windows升级到8.1,Mac端Remote D</p>
<time datetime="2014-11-29T08:44:58.000Z" itemprop="datePublished">11月 29 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/10/19/update-to-yosemite/" title="升级到Yosemite之后" itemprop="url">
<h1 itemprop="name">升级到Yosemite之后</h1>
<p itemprop="description" >Yosemite正式版发布以后,升级断断续续花了两天,记录一下升级的问题和注意事项:
备份
备份不一定可以找一个移动硬盘,Time Machine可以选择备份哪些资料,比如Downloads这种巨大又没太大用的目录就不要备份了,占硬盘还慢。
安装完成
没来及享受新系统带来的欣喜,</p>
<time datetime="2014-10-19T07:55:42.000Z" itemprop="datePublished">10月 19 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/07/09/simulate-smtp/" title="模拟smtp协议" itemprop="url">
<h1 itemprop="name">模拟smtp协议</h1>
<p itemprop="description" >动手写邮件发送的程序之前,第一步让我们来模拟一下smtp协议的过程来发送一份邮件。
下面简单演示一下如何用telnet来模拟smtp协议发送一份邮件
找到一个可用的smtp server的ip地址,当前我得到的163邮箱的smtp server的ip地址是220.181.12.</p>
<time datetime="2014-07-09T02:41:19.000Z" itemprop="datePublished">7月 9 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/07/01/skiplist/" title="理解跳跃表skiplist" itemprop="url">
<h1 itemprop="name">理解跳跃表skiplist</h1>
<p itemprop="description" >跳跃表是一种随机化数据结构,基于并联的链表,其效率可以逼近二叉查找树,对于大多数操作需要O(logn)平均时间,并且对并发算法友好。
跳跃表对有序链表增加附加的前进链接,增加(Insert)是以随机化的方式进行的,所以可以快速的跳过部分列表,故以此得名。
她是很年轻的算法而且实现</p>
<time datetime="2014-06-30T16:53:43.000Z" itemprop="datePublished">7月 1 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/06/28/find-the-special-num/" title="由一道寻找唯一数字的题想到的" itemprop="url">
<h1 itemprop="name">由一道寻找唯一数字的题想到的</h1>
<p itemprop="description" >最近本科室友发消息来问了一道题,引发了我一连串的好奇心。
P.S. 据师兄说这类问题貌似某书上有说过,可是已经不记得了,汗。。只怪肚子里的墨水太少,事实证明我这种庸人就应该事儿多^_^!
1.有很多数字,其中两两一样,只有一个数字不同,找出这个数字?
可以把让每个数字按位异或,</p>
<time datetime="2014-06-27T17:43:59.000Z" itemprop="datePublished">6月 28 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/05/31/damn-line-end-character/" title="Damn Line End Character" itemprop="url">
<h1 itemprop="name">Damn Line End Character</h1>
<p itemprop="description" >这是在跨平台编辑代码的时候遇到的蛋疼问题。shell文件从dropbox同步到win上看一看再同步回mac,擦,执行的时候抽风了!
作为一个无知且不天真的低级码农,碰到这个诡异的问题不能忍,搞清楚了记一下。
vim认为win、unix和mac三大平台的换行符都不一样,分别是CRL</p>
<time datetime="2014-05-30T18:28:15.000Z" itemprop="datePublished">5月 31 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/05/23/ucc中的奇技淫巧/" title="ucc中的奇技淫巧(持续更新)" itemprop="url">
<h1 itemprop="name">ucc中的奇技淫巧(持续更新)</h1>
<p itemprop="description" >对ucc——代码挺好看的一个c98编译器的naive记录...别瞎折腾,没什么用^_^
1.初始化寄存器变量的时候,寄存器是用enum类型来表示的:
enum { EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI };
申明数组大小的时候这么如:Sy</p>
<time datetime="2014-05-22T17:13:10.000Z" itemprop="datePublished">5月 23 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/05/23/string hash methods/" title="常见的字符串Hash算法列举" itemprop="url">
<h1 itemprop="name">常见的字符串Hash算法列举</h1>
<p itemprop="description" >常见的字符串Hash算法如下,ucc中对符号表使用的是ELFHash,查了一下貌似不是效果非常好的hash算法。也列一列常用的hash算法以备不时之需。</p>
<time datetime="2014-05-22T16:00:01.000Z" itemprop="datePublished">5月 23 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/05/04/动态规划_DP总结/" title="关于动态规划(DP)的一点心得" itemprop="url">
<h1 itemprop="name">关于动态规划(DP)的一点心得</h1>
<p itemprop="description" >概述:了解动态规划
动态规划算法一般都是基于一个递推公式和一组初始状态,当前子问题解将由上一次子问题的解推出,也就是传说中的(全局最优解包含局部最优解)一般用DP求解一个问题只需要多项式时间复杂度,因此要比回溯法和暴力求解法要快很多。
所以:我们需要求解一个状态的最优解,然后在</p>
<time datetime="2014-05-03T16:16:35.000Z" itemprop="datePublished">5月 4 2014</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2014/05/03/dijkstra-shortest-path/" title="Dijkstra Shortest Path" itemprop="url">
<h1 itemprop="name">Dijkstra Shortest Path</h1>
<p itemprop="description" >五一要过去了,这个学期真是快
没回家,没出去玩儿,没什么要紧的事情要做,又比较懒,啥都不想干,闲的无聊,随手撸一个最短路径,好久没写过算法问题了,还得找一下数据结构的书来看一下。ok,合上书,整理一下思路,开始撸。。。
用邻接表和邻接矩阵都行,简单点就矩阵吧,我们假设就5个节点</p>
<time datetime="2014-05-02T16:20:35.000Z" itemprop="datePublished">5月 3 2014</time>
</a>
</section>
<nav id="page-nav" class="clearfix">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" href="/page/2/">Next »</a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">
<div class="tagslist">
<p class="asidetitle">标签</p>
<ul class="clearfix">
<li><a href="/tags/DP/" title="DP">DP<sup>1</sup></a></li>
<li><a href="/tags/algorithm/" title="algorithm">algorithm<sup>5</sup></a></li>
<li><a href="/tags/c/" title="c">c<sup>1</sup></a></li>
<li><a href="/tags/data structure/" title="data structure">data structure<sup>1</sup></a></li>
<li><a href="/tags/linux/" title="linux">linux<sup>1</sup></a></li>
<li><a href="/tags/personal/" title="personal">personal<sup>1</sup></a></li>
<li><a href="/tags/protocol/" title="protocol">protocol<sup>1</sup></a></li>
<li><a href="/tags/tools/" title="tools">tools<sup>2</sup></a></li>
</ul>
</div>
<div class="rsspart">
<a href="null" target="_blank" title="rss">RSS 订阅</a>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="line">
<span></span>
<div class="author"></div>
</div>
<section class="info">
<p> Where there is a shell, there is a way. <br/>
This is my blog, believe it or not.</p>
</section>
<div class="social-font" class="clearfix">
<a href="http://weibo.com/1886473775" target="_blank" title="weibo"></a>
<a href="https://github.com/xuangong" target="_blank" title="github"></a>
</div>
<p class="copyright">Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/A-limon/pacman" target="_blank" title="Pacman">Pacman</a> © 2014
<a href="http://zhangxian.me" target="_blank" title="xuangong">xuangong</a>
</p>
</div>
</footer>
<script src="/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else
{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
});
</script>
</body>
</html>