-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·731 lines (354 loc) · 18.2 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
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
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>胖子汪洋的博客</title>
<meta name="author" content="汪洋">
<meta name="description" content="这几天做了一个推送相关的需求,结果弄明白了一些以前关于证书的疑惑。 先起个头,再写!!!
">
<meta name="keywords" content="技术, iMac, iOS, OS X, 猫,">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://igiu1988.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="胖子汪洋的博客" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-41507045-1']);
_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 >
<header role="banner"><hgroup>
<h1><a href="/">胖子汪洋的博客</a></h1>
<h2>一只超级简单的喵星转世人</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:igiu1988.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">首页</a></li>
<li><a href="/blog/archives">全部</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/11/05/ioszheng-shu-zhi-zuo-jie-huo/">Ios证书制作解惑</a></h1>
<p class="meta">
<time datetime="2013-11-05T14:06:00+08:00" pubdate data-updated="true">Nov 5<span>th</span>, 2013</time>
| <a href="/blog/2013/11/05/ioszheng-shu-zhi-zuo-jie-huo/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>这几天做了一个推送相关的需求,结果弄明白了一些以前关于证书的疑惑。</p>
<p>先起个头,再写!!!</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/11/05/ioswu-xian-fa-bu/">Ios无线发布</a></h1>
<p class="meta">
<time datetime="2013-11-05T14:06:00+08:00" pubdate data-updated="true">Nov 5<span>th</span>, 2013</time>
| <a href="/blog/2013/11/05/ioswu-xian-fa-bu/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>先用adhoc方式打包应用。如果adhoc打包有问题,有转看我“ios证书制作解惑”。</p>
<p>剩下的东西也都是copy网上的,我只是稍加整理一下。server已经放到<a href="https://github.com/igiu1988/iosadhoc">github</a>上了。具体参看项目的README</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/11/05/shellti-huan-wen-ben/">Shell替换文本</a></h1>
<p class="meta">
<time datetime="2013-11-05T13:45:00+08:00" pubdate data-updated="true">Nov 5<span>th</span>, 2013</time>
| <a href="/blog/2013/11/05/shellti-huan-wen-ben/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><h2>就记录一下sed替换文本的用法</h2>
<h4>该目录下的所有txt中的china替换为chinese</h4>
<p><code>sed -i '' 's,china,chinese,g' *.txt</code> 一个目录下的</p>
<h4>递归所有目录文件中的china替换为chinese</h4>
<p><code>find . -type f -exec sed -i '' 's,china,chinese,g' {} +</code></p>
<h4>下面的命令则是指定了搜索的文件类型,并替换这些文件中的指定内容</h4>
<p><code>find -name "*.txt" -exec sed -i 's,china,chinese,g' {} +</code></p>
<h4>递归查找包含指定字符串的文件:</h4>
<p><code>find . -type f -exec grep "http://10.5.31.143:8080" {} \;</code></p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/10/14/wo-ji-qi-de-xie-pei-zhi/">我机器的一些配置</a></h1>
<p class="meta">
<time datetime="2013-10-14T11:34:00+08:00" pubdate data-updated="true">Oct 14<span>th</span>, 2013</time>
| <a href="/blog/2013/10/14/wo-ji-qi-de-xie-pei-zhi/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>用brew安装tomcat,启动命令是catalina start</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/10/14/qtxue-xi-bi-ji/">Qt学习笔记</a></h1>
<p class="meta">
<time datetime="2013-10-14T09:26:00+08:00" pubdate data-updated="true">Oct 14<span>th</span>, 2013</time>
| <a href="/blog/2013/10/14/qtxue-xi-bi-ji/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><h3>Qt学习笔记</h3>
<p>该笔记现处理杂乱无章的状态,等记得一定多了,再分类吧</p>
<ul>
<li>Qt工程目录写要创建在英文路径下,要不然会出现“qmake.exe”退出,退出代码 2”</li>
<li>explicit关键字的介绍<a href="http://blog.csdn.net/ma_nong/article/details/7696690">Qt C++中的关键字explicit</a></li>
<li><a href="http://xwz89314.blog.163.com/blog/static/40510004201012725354619/">Q_OBJECT宏</a></li>
<li>Qt中多继承时,QObject要排在第一位</li>
<li>Qt控制台输入内容,再转入QString,再转为char *</li>
</ul>
<p>“`</p>
<pre><code>QString qstr; QTextStream in(stdin); in>>qstr; std::string tempStr = qstr.toStdString(); const char* ch = tempStr.c_str();
</code></pre>
<p> “`</p>
<h3>关于一些错误的解决</h3>
<ul>
<li>比如你的项目名是AAA,运行时提示No rule to make target [路径]/AAA.pro for makefile。其实后面不是for makefile,不过大概的意思就是没有找到makefile中所对应的pro文件,在makefile文件中看一下你会发现pro文件的路径不对,直接用手改过来吗?当然不是。在Qt里对着该项目执行一下Qmake,再运行就ok了,这个问题通常发生在一个项目被移动了另一个地方,而原先的build目录还在引起的,也就是makefile没有被更新引起的。</li>
</ul>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/10/09/about-one-algorithm-one-week/">关于一周一算法</a></h1>
<p class="meta">
<time datetime="2013-10-09T12:26:00+08:00" pubdate data-updated="true">Oct 9<span>th</span>, 2013</time>
| <a href="/blog/2013/10/09/about-one-algorithm-one-week/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><h3>为什么要写</h3>
<p>大学时老师到是讲了不少算法,可是我哪个也没有背下来,实话是我从来没有背过!!!我是顿悟了吗?要学习了吗?反正得逼着自己学点什么吧,把算法也加入其中吧。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2013/10/09/about-one-algorithm-one-week/">继续阅读 →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/10/09/note-on-python/">Python 学习笔记</a></h1>
<p class="meta">
<time datetime="2013-10-09T09:28:00+08:00" pubdate data-updated="true">Oct 9<span>th</span>, 2013</time>
| <a href="/blog/2013/10/09/note-on-python/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><h3>记录我使用python过程中遇到的各种问题</h3>
</div>
<footer>
<a rel="full-article" href="/blog/2013/10/09/note-on-python/">继续阅读 →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/09/30/bubblesort/">普通冒泡排序</a></h1>
<p class="meta">
<time datetime="2013-09-30T10:27:00+08:00" pubdate data-updated="true">Sep 30<span>th</span>, 2013</time>
| <a href="/blog/2013/09/30/bubblesort/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><h3>本文参考了的一些文章</h3>
<h5>冒泡排序</h5>
<ul>
<li><a href="http://blog.csdn.net/lengyuhong/article/details/4659552">lengyuhong的专栏-冒泡算法的优化</a></li>
<li><a href="https://github.com/linuz/Bubble-Sort/blob/master/bubblesort.py">github: linuz/Bubble-Sort</a></li>
<li><a href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81038.aspx">冒泡排序</a></li>
</ul>
<h5>选择排序</h5>
<ul>
<li><a href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81040.html">选择排序</a></li>
</ul>
<h2>关于冒泡</h2>
<h4>思想</h4>
<ul>
<li>从数组的第一个元素开始,两两比较,大的往后放,经过n-1次比较,最大的放到了n-1位置。</li>
<li>从数组的第一个元素开始,两两比较,大的往后放,经过n-2次比较,第二大的放在了n-2位置。</li>
<li>以此类推</li>
</ul>
</div>
<footer>
<a rel="full-article" href="/blog/2013/09/30/bubblesort/">继续阅读 →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/09/22/develop-note-1/">开发笔记 1</a></h1>
<p class="meta">
<time datetime="2013-09-22T14:33:00+08:00" pubdate data-updated="true">Sep 22<span>nd</span>, 2013</time>
| <a href="/blog/2013/09/22/develop-note-1/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><h3>viewWillAppear 与 viewWillLayoutSubviews</h3>
<ul>
<li>viewWillLayoutSubviews 只在controller要显示时才会走一遍。viewWillAppear则会再被push、modal或者pop back时都会走一次</li>
<li>viewWillLayoutSubviews 在viewDidLoad后会走一次。在运行时如果addsubview时会走再走一次。</li>
</ul>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/08/05/power-your-debug-in-xcode/">Xcode 高级调试</a></h1>
<p class="meta">
<time datetime="2013-08-05T10:29:00+08:00" pubdate data-updated="true">Aug 5<span>th</span>, 2013</time>
| <a href="/blog/2013/08/05/power-your-debug-in-xcode/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>在 Xcode 里 debug 时你会不会有这种想法:在一个 for 循环里,我只需要在 i==102时才开始 debug;或者一个比较实际的例子,我想在 tableView:cellForRowAtIndexPath:当 indexPath 是[15, 0]才开始 debug。
我肯定有那么一部分人会和我一样在那个地方写一个类似这样的代码,在 nslog 处打个断点。</p>
<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
</pre></td><td class='code'><pre><code class='objective-c'><span class='line'><span class="k">if</span> <span class="p">(</span><span class="n">i</span> <span class="o">==</span> <span class="mi">102</span><span class="p">)</span>
</span><span class='line'><span class="p">{</span>
</span><span class='line'> <span class="n">NSLog</span><span class="p">(</span><span class="s">@"a"</span><span class="p">);</span>
</span><span class='line'><span class="p">}</span>
</span></code></pre></td></tr></table></div></figure>
<p>看完这篇文章你就不需要这么做了,你会知道更多高级的技巧。<strong><font color='red' size='5'>Power your debug in xcode!!!</font></strong></p>
<p>该文包括</p>
<ul>
<li>让断点在合适的时候停下</li>
<li>断点条件语法注意</li>
<li>在断点条件发生时执行特别的任务</li>
<li>在调试时改变变量的值</li>
</ul>
</div>
<footer>
<a rel="full-article" href="/blog/2013/08/05/power-your-debug-in-xcode/">继续阅读 →</a>
</footer>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">← Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>关于我</h1>
<p>会编程但五音不全的草根普通男青年,长得丑,但求赞。<br>
喜欢电子产品,爱看电影,僵尸粉,正在努力让自己多读点书<br>
新浪微博:<a href="http://weibo.com/wyfengzi">@wyfengzi</a><br>
QQ:747984720<br>
</p>
</section>
<section>
<h1>最近发布</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2013/11/05/ioszheng-shu-zhi-zuo-jie-huo/">Ios证书制作解惑</a>
</li>
<li class="post">
<a href="/blog/2013/11/05/ioswu-xian-fa-bu/">Ios无线发布</a>
</li>
<li class="post">
<a href="/blog/2013/11/05/shellti-huan-wen-ben/">Shell替换文本</a>
</li>
<li class="post">
<a href="/blog/2013/10/14/wo-ji-qi-de-xie-pei-zhi/">我机器的一些配置</a>
</li>
<li class="post">
<a href="/blog/2013/10/14/qtxue-xi-bi-ji/">Qt学习笔记</a>
</li>
</ul>
</section>
<section>
<h1>文章分类</h1>
<ul id="category-list"><li><a href='/blog/categories/ios/'>ios, (2)</a></li><li><a href='/blog/categories/mac/'>mac (1)</a></li><li><a href='/blog/categories/mac/'>Mac (1)</a></li><li><a href='/blog/categories/python/'>python (1)</a></li><li><a href='/blog/categories/qt/'>Qt (1)</a></li><li><a href='/blog/categories/sed/'>sed (1)</a></li><li><a href='/blog/categories/xcode/'>Xcode (1)</a></li><li><a href='/blog/categories/xcode/'>xcode, (2)</a></li><li><a href='/blog/categories/[?]-zhou-[?]-suan-fa/'>一周一算法 (2)</a></li><li><a href='/blog/categories/kai-fa-bi-ji/'>开发笔记 (3)</a></li><li><a href='/blog/categories/yan-jiu-yan-jiu/'>研究研究 (3)</a></li></ul>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating…</li>
</ul>
<a href="https://github.com/igiu1988">@igiu1988</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'igiu1988',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section class="googleplus googleplus-hidden">
<h1>
<a href="https://plus.google.com/101391142369361938654?rel=author">
<img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
Google+
</a>
</h1>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2013 - 汪洋 -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'catcrazy';
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>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>