新买的香港云服务器,系统只能在商家的控制台上安装。
系统和硬盘分开的,根目录空间只有10G。需要重新设置相关目录的大小,如:/usr、/var、/home等。
以下是自己的解决方法小计。
一、初始的分区情况(外加一个300G未分区的硬盘):
[root@cloud ~]# df -TH
文件系统 类型 容量 已用 可用 已用%% 挂载点
/dev/mapper/vg...
分类:
系统相关 时间:
2014-06-03 02:35:20
阅读次数:
343
Children of the Candy Corn
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9108
Accepted: 3958
Description
The cornfield maze is a popular Halloween treat....
分类:
其他好文 时间:
2014-06-01 10:28:57
阅读次数:
292
Qt作为一种基于 C++ 的跨平台 GUI
系统,能够提供给用户构造图形用户界面的强大功能。为了满足用户构造复杂图形界面系统的需求,Qt提供了丰富的多线程编程支持。从 2.2
版本开始,Qt主要从下面三个方面对多线程编程提供支持:一、构造了一些基本的与平台无关的线程类;二、提交用户自定义事件的 Th...
分类:
编程语言 时间:
2014-05-31 19:24:32
阅读次数:
343
1. 什么是SFINAE在C++中有很多的编程技巧(Trick),SFINAE就是其中一种,
他的全义可以翻译为”匹配失败并不是一个错误(Substitution failure is not an error)“.
简单来说他就是专门利用编译器匹配失败的一种技巧.2. 案例比如我们想实现一个通用的...
分类:
编程语言 时间:
2014-05-31 12:43:34
阅读次数:
378
http://acm.xmu.edu.cn/JudgeOnline/problem.php?id=1246求区间内素数个数,经典问题,区间长度10^6,数的取值最多能到10^12(此题范围稍小)用筛法搞出[2,根号b]范围内的素数,用这些素数再去筛[a,b]一个吐血的trick,1不是素数#incl...
分类:
其他好文 时间:
2014-05-31 04:37:27
阅读次数:
186
PeekMessage函数:先看看MSDN怎么说:PeekMessage
functionDispatches incoming sent messages, checks the thread message queue for a
posted message, and retrieves th...
分类:
其他好文 时间:
2014-05-30 04:29:06
阅读次数:
254
http://blog.chinaunix.net/uid-23577393-id-1751983.htmlTo
count how often any pattern occurs in the current buffer use the
substitutecommand and add th...
分类:
其他好文 时间:
2014-05-29 17:37:03
阅读次数:
217
.box {/*非IE6、IE7的主流浏览器识别的垂直居中的方法*/display:
table-cell;
//设置了这个属性之后,此元素会做为一个表格单元格显示,类似th、td,margin属性将不起作用vertical-align:middle;/*
针对IE6、IE7的Hack */*d.....
分类:
其他好文 时间:
2014-05-27 16:08:20
阅读次数:
321
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n.
The cost of the i-th stone is vi.
Kuriyama Mirai wants to know something about these sto...
分类:
其他好文 时间:
2014-05-25 07:24:48
阅读次数:
315