-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
706 lines (371 loc) · 17 KB
/
index.html
File metadata and controls
706 lines (371 loc) · 17 KB
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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>GeforceLee's Blog</title>
<meta name="author" content="GeforceLee">
<meta name="description" content=" Published on: Dec 31st, 2013 Tags: 总结,work 2013年是我毕业的第二年,也是第一次创业的第一年.对我来说是意义重大的一年. 阅读全文→ Comments ">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="/atom.xml" rel="alternate" title="GeforceLee's Blog" type="application/atom+xml">
<link rel="canonical" href="">
<link href="/favicon.ico" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Slackey' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Amethysta' rel='stylesheet' type='text/css'>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script type="text/javascript" src="/javascripts/jquery-tapir.js"></script>
<!-- remove or comment it to disable ajaxification -->
<script src="/javascripts/ajaxify.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37558768-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="wrapper">
<header id="header" class="inner"><!-- for more effects see _animate.scss -->
<h1 class="animated bounceInDown">
<div id="headerbg">
GeforceLee
</div>
</h1>
<br>
<ul id="social-links" style="text-align:center">
<!-- GitHub -->
<li>
<a href="https://github.com/GeforceLee" class="github" title="Github"></a>
</li>
<!-- Twitter -->
<li>
<a href="http://www.twitter.com/GeforceLee" class="twitter" title="Twitter"></a>
</li>
<!-- weibo -->
<li>
<a href="http://www.weibo.com/314004856" class="weibo" title="Weibo"></a>
</li>
</ul>
<!-- use full url including 'index.html' for navigation bar if you are using ajax -->
<ul id="nav">
<li id="ajax"><a href="/index.html">主页</a></li>
<li id="ajax"><a href="/blog/archives/index.html">Blog</a></li>
<li><a href="/about">关于我</a></li>
<li>
<div id="dark">
<form method="get" action="/search.html" id="search">
<input name="query" type="text" placeholder="Search..." x-webkit-speech />
</form>
</div>
</li>
</ul>
</header>
<div id="toload">
<!-- begin toload -->
<div id="content" class="inner">
<article class="post">
<h2 class="title">
<a href="/blog/2013/12/31/2013nian-gong-zuo-zong-jie/">
2013年工作总结</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-12-31T10:06:00+08:00" pubdate data-updated="true">Dec 31<span>st</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/zong-jie-work/'>总结,work</a>
</div>
</div>
<p>2013年是我毕业的第二年,也是第一次创业的第一年.对我来说是意义重大的一年.</p>
<a href="/blog/2013/12/31/2013nian-gong-zuo-zong-jie/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/12/31/2013nian-gong-zuo-zong-jie//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/11/08/ios-uizi-dong-hua-ce-shi/">
iOS UI自动化测试</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-11-08T11:10:00+08:00" pubdate data-updated="true">Nov 8<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/uiautomation/'>UIAutomation</a>, <a class='category' href='/blog/categories/ios/'>iOS</a>
</div>
</div>
<h3>前言</h3>
<p>经过近半年的创业经历,我们的团队在开发上发现了很多问题,也发现了很多重复的工作量,浪费了很多时间.所以我们开始了客户端测试的研究,这篇Blog是讲述UI自动化测试的简单记录.</p>
<p>不得不说Aplle在测试方面做了很多事情,Instruments这个工具非常强大.但之前我们也没有很好的利用,近期我们主要目标就是研究Instruments.</p>
<p>说了不少废话,现在来干货吧!</p>
<h3>第一个脚本</h3>
<p>先说一个Bug,当在Xcode直接用command+I命令直接启动Instruments,机器会很卡,然后执行起脚本也会出现各种问题.
所以就直接先把App按到对应的模拟器或真机上,然后再Instruments上选择target.这样运行起来会比较快(稍后会介绍更快的)
选择Automation,开始第一个脚本吧.</p>
<a href="/blog/2013/11/08/ios-uizi-dong-hua-ce-shi/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/11/08/ios-uizi-dong-hua-ce-shi//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/11/07/iosdan-yuan-ce-shi/">
iOS单元测试</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-11-07T14:03:00+08:00" pubdate data-updated="true">Nov 7<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/uinttest/'>UintTest</a>, <a class='category' href='/blog/categories/ios/'>iOS</a>
</div>
</div>
<p>之前写了一遍关于iOS5的集成测试的Blog—<a href="http://blog.liyunlong.org/blog/2013/11/05/xcode-5-xia-de-dan-yuan-ce-shi/">Xcode 5 下的单元测试</a></p>
<p>在这篇Blog中我要介绍下Xcode5下新的单元测试框架<XCTest></p>
<p>在一个新建的项目中会自动的创建相对应的单元测试Target.同时在对应的一个文件夹下会有一个以Tests为结尾的文件.</p>
<p>我们看看这个文件的内容:</p>
<pre><code>#import <XCTest/XCTest.h>
@interface UnitTestTests : XCTestCase (1)
(2)
@end
@implementation UnitTestTests
- (void)setUp (3)
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown (4)
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample (5)
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);(6)
}
</code></pre>
<a href="/blog/2013/11/07/iosdan-yuan-ce-shi/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/11/07/iosdan-yuan-ce-shi//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/11/05/xcode-5-xia-de-dan-yuan-ce-shi/">
Xcode 5 下的单元测试</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-11-05T15:37:00+08:00" pubdate data-updated="true">Nov 5<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/unittest/'>UnitTest</a>, <a class='category' href='/blog/categories/xcode/'>Xcode</a>, <a class='category' href='/blog/categories/ios/'>iOS</a>
</div>
</div>
<p>新版Xcode 5和Server发布以后,apple对单元测试的支持是越来越好了.从这一点看出apple对单元测试的也是越来越重视了.
这篇Blog就简单的介绍这集成化测试功能.</p>
<p>Server更新后是要重新付费的,但如果你有开发者账号的话,可以登录<a href="https://developer.apple.com">AppleDeveloper</a> 里面会有个兑换码.如果没有就需要单付费了…</p>
<h3>Server的变化</h3>
<p>里面会出现个新的选项—Xcode
<img src="/images/unittest/QQ20131105-12.png"></p>
<a href="/blog/2013/11/05/xcode-5-xia-de-dan-yuan-ce-shi/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/11/05/xcode-5-xia-de-dan-yuan-ce-shi//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/10/22/sublimetextbian-yi-c-plus-plus-11/">
SublimeText编译c++11</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-10-22T22:38:00+08:00" pubdate data-updated="true">Oct 22<span>nd</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/c-plus-plus/'>C++</a>, <a class='category' href='/blog/categories/sublimetext/'>SublimeText</a>
</div>
</div>
<p>在Tools下的Build System中选择new build system
输入</p>
<pre><code>{
"cmd": ["clang++", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}"], // For GCC On Windows and Linux
//"cmd": ["CL", "/Fo${file_base_name}", "/O2", "${file}"], // For CL on Windows Only
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd": ["bash", "-c", "clang++ -std=c++11 '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"] // Linux Only
//"cmd": ["CMD", "/U", "/C", "clang++ -std=c++11 ${file} -o ${file_base_name} && ${file_base_name}"] // For GCC On Windows Only
//"cmd": ["CMD", "/U", "/C", "CL /Fo${file_base_name} /O2 ${file} && ${file_base_name}"] // For CL On Windows Only
}
]
}
</code></pre>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/10/22/sublimetextbian-yi-c-plus-plus-11//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/07/12/use-node-apn-send-apple-push/">
用node-apn发Apple Push</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-07-12T18:23:00+08:00" pubdate data-updated="true">Jul 12<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/node-dot-js/'>Node.js</a>, <a class='category' href='/blog/categories/ios/'>iOS</a>
</div>
</div>
<p>忙了一下午终于把这个Push弄完了</p>
<p>期间查了很多的资料都或多或少的遇到了些问题</p>
<p>废话不多说了</p>
<a href="/blog/2013/07/12/use-node-apn-send-apple-push/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/07/12/use-node-apn-send-apple-push//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/05/07/Redis-Tutorials-7/">
Redis系列教程7</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-05-07T00:00:00+08:00" pubdate data-updated="true">May 7<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/redis/'>Redis</a>
</div>
</div>
<h1>第六章 管理</h1>
<p>最后一章我们要了解对运行的Redis进行管理。这不是一个Redis管理综合的指南。在这我们只能了解一些基础的知识。</p>
<a href="/blog/2013/05/07/Redis-Tutorials-7/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/05/07/Redis-Tutorials-7//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/05/06/Redis-Tutorials-6/">
Redis系列教程6</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-05-06T00:00:00+08:00" pubdate data-updated="true">May 6<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/redis/'>Redis</a>
</div>
</div>
<h1>第五章 Lua脚本</h1>
<p>在Redis2.6中,包含了一个Lua的解析器,让开发这可以在Redis内部写更好的查询语句。没错这很像大型的关系数据库中的存储过程。</p>
<p>这个最难的就是学习Lua,但是Lua是一个比其他流行语言小很多的脚本语言,他有很好的文档,有积极的社区。这章不会详细介绍Lua,但是会有一些有用的例子会被提到。</p>
<a href="/blog/2013/05/06/Redis-Tutorials-6/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/05/06/Redis-Tutorials-6//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/05/06/Redis-Tutorials-5/">
Redis系列教程5</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-05-06T00:00:00+08:00" pubdate data-updated="true">May 6<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/redis/'>Redis</a>
</div>
</div>
<h1>第三章 基于数据结构</h1>
<p>Redis提供了五种数据结构,这有一些不是数据结构的命令。我们已经看到一些有用的命令:info,select,flushdb,multi,exec,discard,watch和kyes。这章我们会了解一些其他的重要的命令。</p>
<a href="/blog/2013/05/06/Redis-Tutorials-5/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/05/06/Redis-Tutorials-5//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/05/06/Redis-Tutorials-4/">
Redis系列教程4</a>
</h2>
<div class="entry-content">
<div class="meta">
<div class="date">Published on:
<time datetime="2013-05-06T00:00:00+08:00" pubdate data-updated="true">May 6<span>th</span>, 2013</time></div>
<div class="tags">Tags:
<a class='category' href='/blog/categories/redis/'>Redis</a>
</div>
</div>
<h1>第三章 利用数据结构</h1>
<p>在之前的章节,我们了解了Redis的五种数据结构,以及了解一些我可以用这五个数据结构能解决的问题。接下来,我们将要看到一些新的功能,命令以及一些设计模式。</p>
<h2>O标识符(时间复杂度)</h2>
<a href="/blog/2013/05/06/Redis-Tutorials-4/" class="more-link">阅读全文→</a>
</div>
<div class="meta">
<span class="comments"><a href="/blog/2013/05/06/Redis-Tutorials-4//index.html#disqus_thread">Comments</a></span>
</div>
</article>
<nav id="pagenavi">
<a href="/blog/page/2/" class="next">Next</a>
<div class="center"><a href="/blog/archives">Blog Archives</a></div>
</nav>
</div>
<footer id="footer">
<div style="display:inline">
Copyright © 2013
GeforceLee
. Powered by <a href="http://octopress.org">Octopress</a> |
Theme <a href="http://github.com/panks/fabric">fabric</a> by <a href="http://panks.me">Pankaj Kumar</a>
</div>
</footer>
<script src="/javascripts/fabric.js"></script>
<script src="/javascripts/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
(function($){
$('.fancybox').fancybox();
})(jQuery);
</script> <!-- Delete or comment this line to disable Fancybox -->
<script type="text/javascript">
var disqus_shortname = 'geforceleeoctopress';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<!-- end toload -->
</div>
</div>
<script src="/javascripts/jquery.ui.totop.js" type="text/javascript"></script>
<script type="text/javascript">
/*<![CDATA[*/
;(function($){$().UItoTop({easingType:'easeOutCirc'});})(jQuery);
/*]]>*/
</script><!-- remove it to remove the scroll to top button -->
</body>
</html>