自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 99

原创 在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 457

原创 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 982

原创 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 146

原创 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 104

原创 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 86

原创 PostgreSQL常用命令

备份某表的数据到SQL文件(Insert形式)pg_dump -U postgres --table=export_table --data-only --column-inserts my_database > data.sql

2019-11-26 11:21:01 119

原创 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 1269

原创 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 124

原创 Effective Modern C++ Item Lists

* Item 9 * : Prefer alias declarations to typedefs.

2017-06-03 09:12:00 224

原创 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 275

原创 Ubuntu系统杂记

默认安装的头文件以及库文件位置 默认头文件安装在目录/usr/include里, 默认库文件在/usr/lib/x86_64-gnu-linux内.

2017-04-30 09:05:01 212

原创 Emacs快捷键

C Mode (C/C++)C-M-a C-M-e :     移动到所处函数的开始/结束处.M-a M-e :     移动到下一个语句的开头/上一个语句的结尾.

2017-04-28 09:24:30 201

原创 图论学习笔记

一些定义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 451

原创 R Markdown使用技巧备忘

将一个chunk的输出在运行完一起打印results = "hold" ( chunk option )

2016-09-27 10:15:01 2984

原创 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 318

原创 Interesting problems

Fibonacci numbers modulo n, the period.

2016-09-15 18:25:07 208

转载 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 279

原创 正则表达式备忘

需要转义的元字符(metacharactes)$ ( ) * + . ? [ \ ^ { | Note: 并不包括右方括号],连字符-和右花括号}。]与-只在有 [ 的情况下才成为metacharacters,而 } 只在没有转义的 { 之后才是 metacharacters。[与]之间也有它自己的转义规则。Reference正则表达式经典实例. Jan Goyvaerts & Steven Le

2016-09-12 09:44:55 174

转载 R软件更新

Windows上的更新方法如下:install.packages("installr")require(installr)updateR()

2016-04-26 19:50:44 1675

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除