一个进程可以系统调用mmap(),将一个已打开文件的内容映射到它的用户空间,其用户界面为: mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset)。 参数fd代表着一个已打开文件,offset为文件中的起点,而start为映射到用户空间中的起始地址,length则为长度。还有两个参数prot...
分类:
系统相关 时间:
2015-03-09 09:22:51
阅读次数:
354
修改表空间(修改数据文件的自动扩展性)
在创建表空间时,可以设置数据文件的自动扩展性。在为表空间增加新的数据文件时,也
可以设置新数据文件的自动扩展性。而对于已创建的表空间中的已有的数据文件,则可以使用
alter database语句修改其自动扩展性,其语法如下:
alter database datafile file_name autoextend off|on[ne...
分类:
其他好文 时间:
2015-03-07 01:05:44
阅读次数:
170
This guide works on my 2004 SAAB, but I have not tried it out on other models, so I can not guarantee how it works out, hope it will work for you as i...
分类:
其他好文 时间:
2015-03-06 16:26:27
阅读次数:
243
#配置根 Logger,其语法为:log4j.rootLogger = level,appenderName1,appenderName2,... #优先级:ALL < DEBUG < INFO <WARN < ERROR < FATAL < OFF #org.apache.log4j.Consol...
分类:
其他好文 时间:
2015-03-05 20:55:16
阅读次数:
139
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 is read off as ...
分类:
其他好文 时间:
2015-03-03 15:18:09
阅读次数:
150
1 @echo off 2 rem MySQL备份脚本 支持全备份 3 rem 增量备份需要MySQL服务加--log-bin参数执行 4 rem 数据还原 mysql -u root -p nul18 19 if %ERRORLEVEL% EQU 0 goto dobackup20 if %E.....
分类:
数据库 时间:
2015-03-03 15:07:59
阅读次数:
218
1.树莓派过一段时间就进入黑屏状态,就是我们常说的suspend状态。 那么请你用xset工具设置吧
xset s off
xset dpms 0 0 0
2.apt-cache search 。。 查找一些必要的安装软件
3.不让树莓派进入屏保,就是x window的黑屏状态 使用xset s 。。。设置 例如...
分类:
Web程序 时间:
2015-03-03 13:43:37
阅读次数:
233
1. 概述
下列图片从层次的角度解释了什么是Tiled Backing Store:
viewport 视图端口:代表用来显示网页内容的区域。Qt里,实际上就是QWidget。
Tiled backing store: 可以看作是off-screen的pixmap的缓冲区。为了滚动、缩放操作的平滑,它覆盖的区域总是比viewport要大。
Co...
分类:
其他好文 时间:
2015-03-03 01:14:51
阅读次数:
243
2.2 前缓冲区(Front buffer)
通过QPinter来绘制tile实际上就是要绘制存储在前缓冲区里的pixmap。没有前缓冲区的tile意味着它不需要绘制。
2.3 后缓冲区(Backend Buffer)
后缓冲区充当tile内容的屏下(off-screen)后缓冲区并且可以采用Qt的画笔绘制到Qt widget上。在更新后缓冲区的过...
分类:
其他好文 时间:
2015-03-03 01:13:33
阅读次数:
255