查看现有的分区[root@server~]#fdisk-l
Disk/dev/sda:21.5GB,21474836480bytes
255heads,63sectors/track,2610cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Diskidentifier..
分类:
其他好文 时间:
2014-08-26 11:52:46
阅读次数:
274
Language:
Default简体中文
Sticks
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 120720
Accepted: 27951
Description
George took sticks of the same length a...
分类:
其他好文 时间:
2014-08-26 11:46:45
阅读次数:
245
skynet 利用内置的原子操作来实现的一个读写锁,重点是理解 ”full memory barrier“ ,UNPv2 中利用互斥和条件变量实现的读写锁。前者是在硬件支持的情况下,显得简单明了,站的层次不一样。
源码贴出来:
struct rwlock {
int write;
int read;
};
static inline void
rwlock_in...
分类:
Web程序 时间:
2014-08-26 11:43:26
阅读次数:
284
{ "bold_folder_labels": true, "caret_style": "solid", "color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", "create_window_at_star...
分类:
其他好文 时间:
2014-08-26 11:32:15
阅读次数:
211
[root@develop ~]# salt-master --versions-report Salt: 2014.1.10 Python: 2.7.8 (default, Aug 17 2014, 20:11:11) Jinja2: 2.7.3 M2C...
分类:
其他好文 时间:
2014-08-26 11:06:25
阅读次数:
346
在TCP连接开始到结束连接,之间可能会多次传输数据,也就是服务器和客户端之间可能会在连接过程中互相传输多条消息。理想状况是一方每发送一条消息,另一方就立即接收到一条,也就是一次write对应一次read。但是,现实不总是按照剧本来走。MINA官方文档节选:TCP guarantess deliver...
分类:
Web程序 时间:
2014-08-26 11:02:47
阅读次数:
346
1、在这个目录下/caches/bakup/default导出文件category.sql2、登录网站的数据管理页面phpmyadmin3、导入数据库选择category.sql4、登陆网站后台更新缓存
分类:
Web程序 时间:
2014-08-26 09:48:55
阅读次数:
204
1)环境准备在关机状态下新添加一块磁盘对新加入的磁盘进行分区,并挂载至指定目录[root@host1~]#fdisk-l/dev/sdb
Disk/dev/sdb:5368MB,5368709120bytes
255heads,63sectors/track,652cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):512bytes..
分类:
系统相关 时间:
2014-08-26 03:08:55
阅读次数:
393
1.设置一个div的高度用的是$("#id").css("height","200"),而不是$("#id").attr("height","200"); 2.dedeCMS中分页的页面的默认样式在/templets/default/style/page.css文件的第77行到112行(从.dede_pages开始到....
分类:
其他好文 时间:
2014-08-26 00:37:25
阅读次数:
338
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be o...
分类:
其他好文 时间:
2014-08-26 00:18:35
阅读次数:
290