最近一段时间,因为搞hadoop的缘故,考虑到启动linux桌面会给电脑带来比较卡。。所以就将图形界面的启动给关闭,完全在命令的模式下使用linux。
使用yum搭建了ftp服务。。yum的使用参考:http://blog.csdn.net/enson16855/article/details/9140623
windows使用FileZilla连接linux的ftp,比较郁闷的是上传问题,弄...
分类:
其他好文 时间:
2014-07-13 14:04:11
阅读次数:
324
多重背包问题。
题意是给你一个数目的钱,还有一些 不同数量 也不同面额的钞票。问最接近给定 的数目,不能大于。
老样子,转换为 01 背包 和完全背包做。
不过很神奇的是,给多重背包 用二进制思想转换的时候 用 k
#include
#include
#include
#include
#include
#include
#include
#include
#i...
分类:
其他好文 时间:
2014-07-13 16:22:52
阅读次数:
133
使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方案。...
分类:
其他好文 时间:
2014-07-13 17:23:38
阅读次数:
234
Given an integer n, generate a square matrix filled with elements from 1 to n2 in
spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[...
分类:
其他好文 时间:
2014-07-13 16:37:16
阅读次数:
199
Brackets
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions:
Accepted:
Description
We give the following inductive definition of a “regular brackets” seq...
分类:
其他好文 时间:
2014-07-13 13:44:39
阅读次数:
202
ABMR:在asm 环境中测试Automatic Block Recover 特性的方法...
分类:
其他好文 时间:
2014-07-13 15:55:13
阅读次数:
211
题意为求出只由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:40
阅读次数:
172
poj2593 Max Sequence(求两个不相交最大字段和)...
分类:
其他好文 时间:
2014-07-13 17:28:10
阅读次数:
167
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:52
阅读次数:
201
(这个是很久以前写的一篇关于UML的文章,现在放出来和大家共享)了解一下类与类之间的关联基础知识很有必要,因为这些关系就像我们建造房子的基石,是面向对向编程的基础。类中的关系有六种,分别是关联(Association)关系、聚合(Aggregation)关系、组合(Composition)关系、泛化(Generalization)关系、实现(Realization)关系以及依赖(Dependenc...
分类:
其他好文 时间:
2014-07-13 17:05:25
阅读次数:
183
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:26
阅读次数:
144
Linux 2.4版本的内核之前,Nginx的事件驱动方式是使用的poll、select函数。进程需要等待连接上有事件发生(收到数据)时,需要把所有连接都告诉内核,由内核找出哪些连接上有事件发生。由于需要把大量连接从用户空间拷贝到内核空间,所以开销巨大,因此,使用poll、select事件驱动方式,最大并发数量只能达到几千。Linux 2.6版本之后添加了epoll函数接口,使得最大并发数量可以达...
分类:
其他好文 时间:
2014-07-13 17:27:34
阅读次数:
311
一、加载正在开发的扩展程序(推荐)
这里以加载一个已有的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:27
阅读次数:
312
有时,当把c风格的不同字符串去实例化函数模版的同一个模版参数时,在实参演绎的过程中经常会发生
意想不到的事情,那就是编译失败,并报错类型不匹配。
正如下面的例子一样:
#include
using namespace std;
/*
*匹配测试
*/
template
int ref_fun(T & t1,T & t2)
{
return strlen(t1) - strlen(t2);...
分类:
其他好文 时间:
2014-07-13 17:04:42
阅读次数:
208
poj2479 && poj2593Maximum sum(求两个最大字段的和)...
分类:
其他好文 时间:
2014-07-13 16:18:14
阅读次数:
137
首先考虑一个具有几个构造函数的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:59
阅读次数:
184