ABMR:在asm 环境中测试Automatic Block Recover 特性的方法...
分类:
其他 时间:
2014-07-13 15:54:48
收藏:
0 评论:
0 赞:
0 阅读:
412
题意为求出只由0,1组成的并且是所给数倍数的数,
广搜。。
因为首位不能为0,因此必为1;所以搜索的下一层为上一层的10倍和10倍加1;
#include
#include
#include
using namespace std;
__int64 s[9999999];
__int64 r;
void show(int q)
{
int i,j;
s[0]=1;
j=0;
i=0;...
分类:
其他 时间:
2014-07-13 16:36:15
收藏:
0 评论:
0 赞:
0 阅读:
329
默认网站根目录为/usr/local/nginx/html,要将它改成/homw/www
vi /usr/local/nginx/conf/nginx.conf
将其中的
location / {
root html;
index index.php index.html index.htm;...
分类:
Web开发 时间:
2014-07-13 17:05:44
收藏:
0 评论:
0 赞:
0 阅读:
336
poj2593 Max Sequence(求两个不相交最大字段和)...
分类:
其他 时间:
2014-07-13 17:27:53
收藏:
0 评论:
0 赞:
0 阅读:
332
Surround the Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7164 Accepted Submission(s): 2738
Problem Description
There a...
分类:
其他 时间:
2014-07-13 17:00:35
收藏:
0 评论:
0 赞:
0 阅读:
384
(这个是很久以前写的一篇关于UML的文章,现在放出来和大家共享)了解一下类与类之间的关联基础知识很有必要,因为这些关系就像我们建造房子的基石,是面向对向编程的基础。类中的关系有六种,分别是关联(Association)关系、聚合(Aggregation)关系、组合(Composition)关系、泛化(Generalization)关系、实现(Realization)关系以及依赖(Dependenc...
分类:
其他 时间:
2014-07-13 17:05:07
收藏:
0 评论:
0 赞:
0 阅读:
313
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all va...
分类:
其他 时间:
2014-07-13 16:11:05
收藏:
0 评论:
0 赞:
0 阅读:
328
1. 固定一个MAC地址,特别是在使用多个虚拟机的时候
linux环境下:
用root身份登录,在/etc/rc.d/rc.local里加上这三句
ifconfig eth0 down
ifconfig eth0 hw ether 00:0C:18:EF:FF:ED
ifconfig eth0 up
这样重新reboot后就不怕MAC复原了。
2. ifconfig命令(转...
分类:
系统服务 时间:
2014-07-13 16:13:51
收藏:
0 评论:
0 赞:
0 阅读:
397
Linux 2.4版本的内核之前,Nginx的事件驱动方式是使用的poll、select函数。进程需要等待连接上有事件发生(收到数据)时,需要把所有连接都告诉内核,由内核找出哪些连接上有事件发生。由于需要把大量连接从用户空间拷贝到内核空间,所以开销巨大,因此,使用poll、select事件驱动方式,最大并发数量只能达到几千。Linux 2.6版本之后添加了epoll函数接口,使得最大并发数量可以达...
分类:
其他 时间:
2014-07-13 17:27:14
收藏:
0 评论:
0 赞:
0 阅读:
552
一、加载正在开发的扩展程序(推荐)
这里以加载一个已有的Chrome扩展程序为例:
把已有的扩展程序(.crx文件)后缀改为.zip,就可以把它解压缩到某个目录,比如将lingoes_chrome_2.1.crx改成lingoes_chrome_2.1.zip并解压到D:\Downloads\Editor\lingoes_chrome_2.1.zip
打开谷歌浏览器 -...
分类:
其他 时间:
2014-07-13 15:54:07
收藏:
0 评论:
0 赞:
0 阅读:
382
有时,当把c风格的不同字符串去实例化函数模版的同一个模版参数时,在实参演绎的过程中经常会发生
意想不到的事情,那就是编译失败,并报错类型不匹配。
正如下面的例子一样:
#include
using namespace std;
/*
*匹配测试
*/
template
int ref_fun(T & t1,T & t2)
{
return strlen(t1) - strlen(t2);...
分类:
其他 时间:
2014-07-13 17:04:22
收藏:
0 评论:
0 赞:
0 阅读:
332
1、错误描述
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:200)
at com.mchange.v2.resourcepool.BasicResourcePool....
分类:
数据库技术 时间:
2014-07-13 13:49:06
收藏:
0 评论:
0 赞:
0 阅读:
340
poj2479 && poj2593Maximum sum(求两个最大字段的和)...
分类:
其他 时间:
2014-07-13 16:17:53
收藏:
0 评论:
0 赞:
0 阅读:
306
首先考虑一个具有几个构造函数的MyClass类。假设我们决定在这个类的私有部分添加一个新的数据成员,称为int_data_:
class MyClass
{
public:
MyClass()
: int_data_(0)
{}
explicit MyClass(const Apple& apple)
: int_data_(0)
{}
MyClass(const stri...
分类:
其他 时间:
2014-07-13 16:39:40
收藏:
0 评论:
0 赞:
0 阅读:
316
Final的使用
final在类之前
表示该类是最终类,表示该类不能再被继承。
final在方法之前
表示该方法是最终方法,该方法不能被任何派生的子类覆盖。
final在变量之前
表示变量的值在初始化之后就不能再改变;相当于定义了一个常量。
对象的上溯(上转型)和对象的下溯
上转型对象的特点:
A a = new B();
实...
分类:
其他 时间:
2014-07-13 15:26:45
收藏:
0 评论:
0 赞:
0 阅读:
341
我害怕不得不谈到这个,SharePoint即将死去。它过去是拥有多么炫酷功能的伟大平台,现在,它开始按部就班,准备不可避免的结局了。...
分类:
其他 时间:
2014-07-13 17:26:37
收藏:
0 评论:
0 赞:
0 阅读:
365
我一般使用树莓派都是ssh 登陆,俗称ssh 党。那么ssh 党需要做什么配置?:关闭不需要的桌面进程;设置看门狗防止死机;检测树莓派状态(温度,利用率等);发送邮件告知当前IP地址。
文中高能: shell 炸弹的原理!写个python 脚本发送邮件!...
分类:
其他 时间:
2014-07-13 16:59:11
收藏:
0 评论:
0 赞:
0 阅读:
430