- 博客(20)
- 收藏
- 关注
原创 Linux gcc compile/link issuses.
Create a shared library without any unresolved symbolYou can pass options to the linker like this: -Wl,options. So what we can do here is -Wl,-z,defs.
2021-03-11 10:33:02
125
原创 在Ubuntu 18.04上安装PostgreSQL数据库
安装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 startVer Cluster Port Status
2020-11-21 20:53:52
510
原创 32位进程扩大用户态虚拟地址空间大小的方法
在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
2020-11-20 20:08:45
1063
原创 Mpeg2 Learning Notes
一些记号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 ...
2020-05-06 14:20:43
176
原创 C# Learning Notes
C# Learning NotesThis is just learning notes on C# and CLR.TerminologyCLR: Common Language Runtime.FCL: Framework Class Library.Types
2019-12-16 11:57:30
128
原创 Nginx Notes
Nginx NotesReverse ProxyEdit file conf/nginx.conf, add the following configurations to it:stream { server { listen 1234; proxy_pass 192.168.1.2:2345; } server { ...
2019-12-13 14:40:59
103
原创 PostgreSQL常用命令
备份某表的数据到SQL文件(Insert形式)pg_dump -U postgres --table=export_table --data-only --column-inserts my_database > data.sql
2019-11-26 11:21:01
138
原创 CSAPP学习笔记
Definition of Registers%rip : program counter(PC)生成汇编代码gcc -Og -S x.c通过object文件反汇编objdump -d xxx.o汇编nop : 无特殊含义, 只是为了让机器代码16位对齐....
2019-10-16 17:17:12
1364
原创 Qt的Layout学习记录
使用Layout的一些TipsWhen 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...
2019-10-12 14:38:29
142
原创 Effective Modern C++ Item Lists
* Item 9 * : Prefer alias declarations to typedefs.
2017-06-03 09:12:00
247
原创 Effective C++ Reading Notes
Item 22 : Declare data members private. Item 23 : Prefer non-member non-friend functions to member functions.
2017-05-06 19:21:55
308
原创 Ubuntu系统杂记
默认安装的头文件以及库文件位置 默认头文件安装在目录/usr/include里, 默认库文件在/usr/lib/x86_64-gnu-linux内.
2017-04-30 09:05:01
232
原创 Emacs快捷键
C Mode (C/C++)C-M-a C-M-e : 移动到所处函数的开始/结束处.M-a M-e : 移动到下一个语句的开头/上一个语句的结尾.
2017-04-28 09:24:30
219
原创 图论学习笔记
一些定义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
2017-04-27 17:50:26
487
原创 vim实用技巧
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 )
2016-09-16 10:40:56
360
转载 SQL命令类型
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
2016-09-12 15:25:49
311
原创 正则表达式备忘
需要转义的元字符(metacharactes)$ ( ) * + . ? [ \ ^ { | Note: 并不包括右方括号],连字符-和右花括号}。]与-只在有 [ 的情况下才成为metacharacters,而 } 只在没有转义的 { 之后才是 metacharacters。[与]之间也有它自己的转义规则。Reference正则表达式经典实例. Jan Goyvaerts & Steven Le
2016-09-12 09:44:55
196
转载 R软件更新
Windows上的更新方法如下:install.packages("installr")require(installr)updateR()
2016-04-26 19:50:44
1726
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人