<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mitshan的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/mitshan</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mitshan]]></copyright><item><title><![CDATA[Linux gcc compile/link issuses.]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/114654447</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/114654447</guid><author>mitshan</author><pubDate>Thu, 11 Mar 2021 10:33:02 +0800</pubDate><description><![CDATA[Create a shared library without any unresolved symbol
You can pass options to the linker like this: -Wl,options. So what we can do here is -Wl,-z,defs.

]]></description><category></category></item><item><title><![CDATA[在Ubuntu 18.04上安装PostgreSQL数据库]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/109905199</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/109905199</guid><author>mitshan</author><pubDate>Sat, 21 Nov 2020 20:53:52 +0800</pubDate><description><![CDATA[安装
apt install postgresql 就可以了, 如果没有权限, 在前面加上sudo. Ubuntu 18.04 默认安装的是10版本.
配置
安装完成后, 有提示
Success. You can now start the database server using:

    /usr/lib/postgresql/10/bin/pg_ctl -D /var/lib/postgresql/10/main -l logfile start

Ver Cluster Port Status ]]></description><category></category></item><item><title><![CDATA[32位进程扩大用户态虚拟地址空间大小的方法]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/109863053</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/109863053</guid><author>mitshan</author><pubDate>Fri, 20 Nov 2020 20:08:45 +0800</pubDate><description><![CDATA[在Windows操作系统上, 一般32位进程, 虚拟地址空间为4 GB, 而其中默认有2 GB属于kernel mode, 2 GB属于user mode. 而我们能用的, 其实就是user mode这2 GB.
对于一些需要使用2 GB或者高于2 GB(但不会超过4 GB)的程序来说, 有两种方法:

修改操作系统user mode的虚拟地址空间大小, 一般可以选取范围为2 GB ~ 3 GB, 但这个似乎是32位操作系统上的概念, 不知道64位上有没有.
微软的vc链接器, 有链接选项/LARGEADD]]></description><category></category></item><item><title><![CDATA[Mpeg2 Learning Notes]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/105949625</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/105949625</guid><author>mitshan</author><pubDate>Wed, 06 May 2020 14:20:43 +0800</pubDate><description><![CDATA[一些记号
bslbf : Bit string, left bit first.
ch : Channel.
main_data : The main_data portion of the bit stream contains the scale factors, Huffman encoded data, and ancillary information.
tcimsbf : Two’s ...]]></description><category></category></item><item><title><![CDATA[C# Learning Notes]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/103560041</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/103560041</guid><author>mitshan</author><pubDate>Mon, 16 Dec 2019 11:57:30 +0800</pubDate><description><![CDATA[C# Learning Notes
This is just learning notes on C# and CLR.
Terminology
CLR: Common Language Runtime.
FCL: Framework Class Library.
Types

]]></description><category></category></item><item><title><![CDATA[Nginx Notes]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/103526828</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/103526828</guid><author>mitshan</author><pubDate>Fri, 13 Dec 2019 14:40:59 +0800</pubDate><description><![CDATA[Nginx Notes
Reverse Proxy
Edit file conf/nginx.conf, add the following configurations to it:
stream {
    server {
        listen 1234;
        proxy_pass 192.168.1.2:2345;
    }
    
    server {
   ...]]></description><category></category></item><item><title><![CDATA[PostgreSQL常用命令]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/103252918</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/103252918</guid><author>mitshan</author><pubDate>Tue, 26 Nov 2019 11:21:01 +0800</pubDate><description><![CDATA[备份某表的数据到SQL文件(Insert形式)
pg_dump -U postgres --table=export_table --data-only --column-inserts my_database &gt; data.sql

]]></description><category></category></item><item><title><![CDATA[CSAPP学习笔记]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/102586823</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/102586823</guid><author>mitshan</author><pubDate>Wed, 16 Oct 2019 17:17:12 +0800</pubDate><description><![CDATA[Definition of Registers

%rip : program counter(PC)

生成汇编代码
gcc -Og -S x.c
通过object文件反汇编
objdump -d xxx.o
汇编
nop : 无特殊含义, 只是为了让机器代码16位对齐.

...]]></description><category></category></item><item><title><![CDATA[Qt的Layout学习记录]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/102520156</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/102520156</guid><author>mitshan</author><pubDate>Sat, 12 Oct 2019 14:38:29 +0800</pubDate><description><![CDATA[使用Layout的一些Tips

When you use a layout, you do not need to pass a parent when constructing the child widgets. The layout will automatically reparent the widgets (using QWidget::setParent()) so that th...]]></description><category></category></item><item><title><![CDATA[Effective Modern C++ Item Lists]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/72850216</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/72850216</guid><author>mitshan</author><pubDate>Sat, 03 Jun 2017 09:12:00 +0800</pubDate><description><![CDATA[* Item 9 * : Prefer alias declarations to typedefs.]]></description><category></category></item><item><title><![CDATA[Effective C++ Reading Notes]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/71278776</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/71278776</guid><author>mitshan</author><pubDate>Sat, 06 May 2017 19:21:55 +0800</pubDate><description><![CDATA[Item 22 : Declare data members private. 
Item 23 : Prefer non-member non-friend functions to member functions.]]></description><category></category></item><item><title><![CDATA[Ubuntu系统杂记]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/70992314</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/70992314</guid><author>mitshan</author><pubDate>Sun, 30 Apr 2017 09:05:01 +0800</pubDate><description><![CDATA[默认安装的头文件以及库文件位置 
默认头文件安装在目录/usr/include里, 默认库文件在/usr/lib/x86_64-gnu-linux内.]]></description><category></category></item><item><title><![CDATA[Emacs快捷键]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/70884620</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/70884620</guid><author>mitshan</author><pubDate>Fri, 28 Apr 2017 09:24:30 +0800</pubDate><description><![CDATA[C Mode (C/C++)C-M-a 
C-M-e : 
    移动到所处函数的开始/结束处.M-a 
M-e : 
    移动到下一个语句的开头/上一个语句的结尾.]]></description><category></category></item><item><title><![CDATA[图论学习笔记]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/70862640</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/70862640</guid><author>mitshan</author><pubDate>Thu, 27 Apr 2017 17:50:26 +0800</pubDate><description><![CDATA[一些定义breadth-first search(广度优先搜索) : It operates by processing vertices in layers: the vertices closest to the start are evaluated first, and the most distant vertices are evaluated last.参考Data Structure]]></description><category></category></item><item><title><![CDATA[R Markdown使用技巧备忘]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/52678290</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/52678290</guid><author>mitshan</author><pubDate>Tue, 27 Sep 2016 10:15:01 +0800</pubDate><description><![CDATA[将一个chunk的输出在运行完一起打印results = "hold" ( chunk option )]]></description><category></category></item><item><title><![CDATA[vim实用技巧]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/52554341</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/52554341</guid><author>mitshan</author><pubDate>Fri, 16 Sep 2016 10:40:56 +0800</pubDate><description><![CDATA[Copy and paste between different vim processv : visual mode 
:set paste : paste with no extra indent 
:set nopaste : return to autoindent to do normal things ( after paste )]]></description><category></category></item><item><title><![CDATA[Interesting problems]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/52550494</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/52550494</guid><author>mitshan</author><pubDate>Thu, 15 Sep 2016 18:25:07 +0800</pubDate><description><![CDATA[Fibonacci numbers modulo n, the period.]]></description><category></category></item><item><title><![CDATA[SQL命令类型]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/52513934</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/52513934</guid><author>mitshan</author><pubDate>Mon, 12 Sep 2016 15:25:49 +0800</pubDate><description><![CDATA[Data Definition Language (DDL)Data definite statements are used to define the structures of databases or tables. Statements involved are: CREATE, ALTER, DROP, RENAME, TRUNCATE.Data Manipulation Languag]]></description><category></category></item><item><title><![CDATA[正则表达式备忘]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/52510880</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/52510880</guid><author>mitshan</author><pubDate>Mon, 12 Sep 2016 09:44:55 +0800</pubDate><description><![CDATA[需要转义的元字符（metacharactes）$ ( ) * + . ? [ \ ^ { | 
Note: 并不包括右方括号]，连字符-和右花括号}。]与-只在有 [ 的情况下才成为metacharacters，而 } 只在没有转义的 { 之后才是 metacharacters。[与]之间也有它自己的转义规则。Reference正则表达式经典实例. Jan Goyvaerts & Steven Le]]></description><category></category></item><item><title><![CDATA[R软件更新]]></title><link>https://blog.youkuaiyun.com/mitshan/article/details/51253391</link><guid>https://blog.youkuaiyun.com/mitshan/article/details/51253391</guid><author>mitshan</author><pubDate>Tue, 26 Apr 2016 19:50:44 +0800</pubDate><description><![CDATA[Windows上的更新方法如下：install.packages("installr")
require(installr)
updateR()]]></description><category></category></item></channel></rss>