Skip to content

Commit 907b166

Browse files
committed
Site updated: 2020-06-08 17:12:16
1 parent b795c88 commit 907b166

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+21
-1
lines changed

2020/06/05/pagemalimakesi/index.html

235 Bytes
Binary file not shown.

2020/06/08/pagelinux-vim/index.html

128 KB
Binary file not shown.

archives/2020/06/index.html

993 Bytes
Binary file not shown.

archives/2020/index.html

-37 Bytes
Binary file not shown.

archives/2020/page/10/index.html

58 Bytes
Binary file not shown.

archives/2020/page/11/index.html

-22 Bytes
Binary file not shown.

archives/2020/page/12/index.html

-3 Bytes
Binary file not shown.

archives/2020/page/13/index.html

24 Bytes
Binary file not shown.

archives/2020/page/14/index.html

-4 Bytes
Binary file not shown.

archives/2020/page/15/index.html

4 Bytes
Binary file not shown.

archives/2020/page/16/index.html

-8 Bytes
Binary file not shown.

archives/2020/page/17/index.html

-26 Bytes
Binary file not shown.

archives/2020/page/18/index.html

-7 Bytes
Binary file not shown.

archives/2020/page/19/index.html

1 KB
Binary file not shown.

archives/2020/page/2/index.html

13 Bytes
Binary file not shown.

archives/2020/page/3/index.html

30 Bytes
Binary file not shown.

archives/2020/page/4/index.html

-22 Bytes
Binary file not shown.

archives/2020/page/5/index.html

-2 Bytes
Binary file not shown.

archives/2020/page/6/index.html

-28 Bytes
Binary file not shown.

archives/2020/page/7/index.html

23 Bytes
Binary file not shown.

archives/2020/page/8/index.html

-34 Bytes
Binary file not shown.

archives/2020/page/9/index.html

6 Bytes
Binary file not shown.

archives/index.html

-37 Bytes
Binary file not shown.

archives/page/10/index.html

58 Bytes
Binary file not shown.

archives/page/11/index.html

-22 Bytes
Binary file not shown.

archives/page/12/index.html

-3 Bytes
Binary file not shown.

archives/page/13/index.html

24 Bytes
Binary file not shown.

archives/page/14/index.html

-4 Bytes
Binary file not shown.

archives/page/15/index.html

4 Bytes
Binary file not shown.

archives/page/16/index.html

-8 Bytes
Binary file not shown.

archives/page/17/index.html

-26 Bytes
Binary file not shown.

archives/page/18/index.html

-7 Bytes
Binary file not shown.

archives/page/19/index.html

1 KB
Binary file not shown.

archives/page/2/index.html

13 Bytes
Binary file not shown.

archives/page/3/index.html

30 Bytes
Binary file not shown.

archives/page/4/index.html

-22 Bytes
Binary file not shown.

archives/page/5/index.html

-2 Bytes
Binary file not shown.

archives/page/6/index.html

-28 Bytes
Binary file not shown.

archives/page/7/index.html

23 Bytes
Binary file not shown.

archives/page/8/index.html

-34 Bytes
Binary file not shown.

archives/page/9/index.html

6 Bytes
Binary file not shown.

content.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

img/linuxvim.png

36.2 KB

index.html

-12.2 KB
Binary file not shown.

page/10/index.html

2.96 KB
Binary file not shown.

page/11/index.html

601 Bytes
Binary file not shown.

page/12/index.html

-2.72 KB
Binary file not shown.

page/13/index.html

870 Bytes
Binary file not shown.

page/14/index.html

-439 Bytes
Binary file not shown.

page/15/index.html

2.37 KB
Binary file not shown.

page/16/index.html

-7.17 KB
Binary file not shown.

page/17/index.html

3.23 KB
Binary file not shown.

page/18/index.html

-10.9 KB
Binary file not shown.

page/19/index.html

-548 Bytes
Binary file not shown.

page/2/index.html

14.7 KB
Binary file not shown.

page/20/index.html

12.5 KB
Binary file not shown.

page/21/index.html

2.12 KB
Binary file not shown.

page/22/index.html

969 Bytes
Binary file not shown.

page/23/index.html

-2.98 KB
Binary file not shown.

page/24/index.html

1.3 KB
Binary file not shown.

page/25/index.html

1.07 KB
Binary file not shown.

page/26/index.html

-989 Bytes
Binary file not shown.

page/27/index.html

-2.18 KB
Binary file not shown.

page/28/index.html

-1.06 KB
Binary file not shown.

page/29/index.html

4.85 KB
Binary file not shown.

page/3/index.html

-3.47 KB
Binary file not shown.

page/30/index.html

-2.27 KB
Binary file not shown.

page/31/index.html

2.26 KB
Binary file not shown.

page/32/index.html

-8 Bytes
Binary file not shown.

page/33/index.html

-104 Bytes
Binary file not shown.

page/34/index.html

-26 Bytes
Binary file not shown.

page/35/index.html

118 Bytes
Binary file not shown.

page/36/index.html

-837 Bytes
Binary file not shown.

page/37/index.html

-149 Bytes
Binary file not shown.

page/38/index.html

2.75 KB
Binary file not shown.

page/4/index.html

-5.75 KB
Binary file not shown.

page/5/index.html

-2.38 KB
Binary file not shown.

page/6/index.html

10.9 KB
Binary file not shown.

page/7/index.html

-3.87 KB
Binary file not shown.

page/8/index.html

779 Bytes
Binary file not shown.

page/9/index.html

624 Bytes
Binary file not shown.

search.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5538,6 +5538,26 @@
55385538
<p>第二天测试的时候,有个分支因为配置关系没有走到,重新配置测试发现莫名其妙死机,看堆栈只知道是内存越界,然后就开始了灾难般的内存越界调查。<br>开始使用Debug查了半天也未能定位,最后还是使用老办法,对之前提交的60多个文件回归,一行一行的删,一行一行测。<br>看遍了数万行代码,调试了2天,最后发现:删除无用代码的时候多删了一行pragma pack。</p>
55395539
<p>pragma pack:程序编译器对结构的存储的特殊处理确实提高CPU存储变量的速度,但是有时候也带来了一些麻烦,我们也屏蔽掉变量默认的对齐方式,自己可以设定变量的对齐方式。<br>加这个是为了按照自己的方式对齐内存。用法为:pragma pack(n),按n个字节对齐,pragma pack()表示恢复默认对齐方式,二者必须配对使用。</p>
55405540
<p>教训及反思:<br>1)必须保证程序配置的正确性,小批量提交;<br>2)这个之前语法没用过,整个工程里也用的很少,所以删减代码的使用因为紧靠无用代码,警惕性不高就删除了,所以得加强学习;<br>3)编译器编译未对此类问题进行警告、或错误提示,看来编译器还有较大改进空间。</p>
5541+
]]></content>
5542+
<tags>
5543+
<tag>技术</tag>
5544+
</tags>
5545+
</entry>
5546+
<entry>
5547+
<title>vim使用</title>
5548+
<url>/2020/06/08/pagelinux-vim/</url>
5549+
<content><![CDATA[<p>编写过linux平台的程序,但主要是通过QT编译,运行。<br>一直没有使用过vim,今天抽空使用了下vim感觉蛮好,优点:1)清爽,速度快;2)不断使用命令,控制的感觉真好。当然也有缺点,缺点就是需记命令。以下是学习旅程。</p>
5550+
<h4 id="第一步-环境"><a href="#第一步-环境" class="headerlink" title="第一步 环境"></a>第一步 环境</h4><p>unbuntu上自带的vim不太好用,所以通过以下两个命令卸载并重新安装。<br>‘’’sudo apt-get remove vim-common<br>sudo apt-get install vim’’’</p>
5551+
<h4 id="第二步-学习"><a href="#第二步-学习" class="headerlink" title="第二步 学习"></a>第二步 学习</h4><p>学习资料主要是鸟哥的linux私房菜(第三版)<br><strong>为啥要学vim?</strong><br>1)所有的Unix Like系统都会内建vi文本编辑器,其他的文本编辑器则不一定存在;<br>2)很多软件的编辑接口都会主动呼叫vi;<br>3)vim具有程序编辑的能力,可以主动的以字体颜色辨别语法的正确性,方便程序设计;<br>4)以内程序简单,编辑速度相当快速<br><strong>vi的三种模式</strong><br>1)一般模式:以vi打开一个档案就直接进入一般模式了(这是模式的模式)这个模式中,可以使用“上下左右”按键移动光标,也可以使用“删除字符”或“删除整行”来处理档案内存,可以使用“复制、粘贴”处理文件数据。<br>2)编辑模式:在一般模式中可以进行删除、复制、贴上等等动作,但是却无法编辑文件内容。要等到你按下“i,I,O,o,A,a,r,R”等任何一个字母进行编辑模式。通常画面左下方会出现”INSERT或REPLACE“字样。而要回到一般模式,则按下”Esc“可以退出编辑模式。<br>3)指令模式:在一般模式当中,输入“:/?”三个任何一个按钮,就可以将光标移动到最底下哪一行。这个模式中,可以提供搜索、读取、存储等操作。<br>以下是学到的几个命令:<br><strong>vi指令</strong><br>以下是学习到的几个指令:<br>1)i进入编辑模式<br>2):wq存储后离开vi<br>3):set nu显示行号<br>4)nG 跳到第n行,40加右箭头 条状到该行第40个字符,G文件最后一行,1G文件第一行<br>5)/bizp2 搜索“bizp2”<br>6):50,100s/man/MAN/gc 替换50行到100行之间的man为MAN<br>9)u 撤销<br>10)nyy从光标处复制n行,p则粘贴<br>11)ndd从光标处删除n行<br>12)nx从光标处删除n个字符</p>
5552+
<h4 id="第三部-实践"><a href="#第三部-实践" class="headerlink" title="第三部 实践"></a>第三部 实践</h4><p>学些了vim基础命令,第一个事就是想写个Hello wrold,如下<br>1)vim hello.cpp<br>创建hello.cpp文件<br>2)键入i,进入编辑模式<br>3)编写hello.cpp文件<br>4)Esc键,退出编辑模式;然后shift+:然后wq,保存退出。<br>5)编译hello.cpp,g++ hello.cpp<br>6) 键入/.a.out,运行程序<br>7)在Terminal上显示“Hello World!”</p>
5553+
<div align=center>
5554+
5555+
<p><img src="/img/linuxvim.png" alt=""></p>
5556+
</div>
5557+
5558+
5559+
5560+
55415561
]]></content>
55425562
<tags>
55435563
<tag>技术</tag>

tags/技术/index.html

-41 Bytes
Binary file not shown.

tags/技术/page/2/index.html

-29 Bytes
Binary file not shown.

tags/技术/page/3/index.html

67 Bytes
Binary file not shown.

tags/技术/page/4/index.html

996 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)