<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[staugusto的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/staugusto</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; staugusto]]></copyright><item><title><![CDATA[sizeof 编译时确定的]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/46609113</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/46609113</guid><author>staugusto</author><pubDate>Tue, 23 Jun 2015 19:00:55 +0800</pubDate><description><![CDATA[#include 
int main(int argc, char ** argv){
  int x = 3;
  printf("%d and ", sizeof(x++));
  printf("%d\n",x);
  return 0;
}
上述代码输出什么？]]></description><category></category></item><item><title><![CDATA[std::vector]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/46416319</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/46416319</guid><author>staugusto</author><pubDate>Mon, 08 Jun 2015 18:47:53 +0800</pubDate><description><![CDATA[std::vector容器的insert到首部效率比push_back之后再用reverse要效率很多，具体情况及细节待验证]]></description><category></category></item><item><title><![CDATA[配置ssh无密码登录]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/46408827</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/46408827</guid><author>staugusto</author><pubDate>Mon, 08 Jun 2015 10:07:45 +0800</pubDate><description><![CDATA[首先在机器A，B上生成密钥对
ssh-keygen -t RSA
然后将A上pub密钥传到B机器上。
将A，B的pub密钥复制到 authorized_keys文件中
再将authorized_keys利用scp命令复制到另一台机器上.


注意:
1. B机器上添加A机器的公钥，说明A机器可以访问B机器，这一点有点绕。
2. 生成密钥对时候，如果输入了密码，则即使将公钥复制到a]]></description><category></category></item><item><title><![CDATA[How to shrink a default install LVM PV to create another partition]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/45644785</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/45644785</guid><author>staugusto</author><pubDate>Mon, 11 May 2015 15:42:03 +0800</pubDate><description><![CDATA[更改逻辑卷大小]]></description><category></category></item><item><title><![CDATA[项目Release模式下添加DebugInfo命令]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/44917145</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/44917145</guid><author>staugusto</author><pubDate>Tue, 07 Apr 2015 10:30:37 +0800</pubDate><description><![CDATA[在项目pro文件下，添加如下代码：



QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO

即可实现项目生成的可执行文件中包含DebugInfo


Qt Assistance中给]]></description><category></category></item><item><title><![CDATA[LeetCode 198]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/44854777</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/44854777</guid><author>staugusto</author><pubDate>Fri, 03 Apr 2015 14:13:23 +0800</pubDate><description><![CDATA[LeetCode 198, House Robber, 这个分治递归写的还是有点问题，可以修正到直接递归rob函数,正常情况下，maxRob的第一个和第二个参数相加就是rob的第一个参数。]]></description><category></category></item><item><title><![CDATA[malloc与calloc]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/44779575</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/44779575</guid><author>staugusto</author><pubDate>Tue, 31 Mar 2015 14:54:13 +0800</pubDate><description><![CDATA[#include 
#define Memory_Size 655360
#define ExecCount 100000

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTime t;
    t.start();
    for(int i = 0; i != ExecCount; ++i){
]]></description><category></category></item><item><title><![CDATA[插入排序]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/44755813</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/44755813</guid><author>staugusto</author><pubDate>Mon, 30 Mar 2015 19:42:07 +0800</pubDate><description><![CDATA[插入排序 
template  
void insertionSort(T * arr, int size){ 
    T key; 
    for(int j = 1; j != size; ++j){ 
        key = arr[j]; 
        i = j -1; 
        while( (i > -1)&&(arr[i] > key) ){]]></description><category></category></item><item><title><![CDATA[OS Concepts Chapter 1 导论]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/44225719</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/44225719</guid><author>staugusto</author><pubDate>Wed, 25 Mar 2015 18:47:19 +0800</pubDate><description><![CDATA[导论操作系统是管理计算机硬件的程序。各种不同操作系统的目的： 
-大型机操作系统： 为充分优化硬件的利用率（高效） 
-个人计算机操作系统：为能支持复杂游戏，商业应用或位于两者之间的事物 （高效，方便兼顾） 
-手持计算机的操作系统：为给用户提供一个可以与计算机方便地交互并执行程序的环境（方便）]]></description><category></category></item><item><title><![CDATA[欢迎使用Markdown编辑器写博客]]></title><link>https://blog.youkuaiyun.com/staugusto/article/details/44225757</link><guid>https://blog.youkuaiyun.com/staugusto/article/details/44225757</guid><author>staugusto</author><pubDate>Thu, 12 Mar 2015 19:09:54 +0800</pubDate><description><![CDATA[本Markdown编辑器使用StackEdit修改而来，用它写博客，将会带来全新的体验哦：
Markdown和扩展Markdown简洁的语法
代码块高亮
图片链接和图片上传
LaTex数学公式
UML序列图和流程图
离线写博客
导入导出Markdown文件
丰富的快捷键
快捷键
加粗    Ctrl + B 
斜体    Ctrl + I 
引用    Ctrl + Q
插入链接    Ctrl +]]></description><category></category></item></channel></rss>