码迷,mamicode.com
首页 > 其他好文
解决vsftp无法上传文件及文件夹的问题
最近一段时间,因为搞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
POJ 1276 Cash Machine
多重背包问题。 题意是给你一个数目的钱,还有一些 不同数量 也不同面额的钞票。问最接近给定 的数目,不能大于。 老样子,转换为 01 背包 和完全背包做。 不过很神奇的是,给多重背包 用二进制思想转换的时候 用 k #include #include #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-07-13 16:22:52    阅读次数:133
【翻译自mos文章】使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方案。
使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方案。...
分类:其他好文   时间:2014-07-13 17:23:38    阅读次数:234
Spiral Matrix II
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
POJ 2955 Brackets
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
【翻译自mos文章】ABMR:在asm 环境中测试Automatic Block Recover 特性的方法
ABMR:在asm 环境中测试Automatic Block Recover 特性的方法...
分类:其他好文   时间:2014-07-13 15:55:13    阅读次数:211
poj 1426 Find The Multiple
题意为求出只由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(求两个不相交最大字段和)
poj2593 Max Sequence(求两个不相交最大字段和)...
分类:其他好文   时间:2014-07-13 17:28:10    阅读次数:167
HDU1392:Surround the Trees(凸包问题)
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基础知识
(这个是很久以前写的一篇关于UML的文章,现在放出来和大家共享)了解一下类与类之间的关联基础知识很有必要,因为这些关系就像我们建造房子的基石,是面向对向编程的基础。类中的关系有六种,分别是关联(Association)关系、聚合(Aggregation)关系、组合(Composition)关系、泛化(Generalization)关系、实现(Realization)关系以及依赖(Dependenc...
分类:其他好文   时间:2014-07-13 17:05:25    阅读次数:183
Valid Parentheses
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
【Nginx】epoll事件驱动模块
Linux 2.4版本的内核之前,Nginx的事件驱动方式是使用的poll、select函数。进程需要等待连接上有事件发生(收到数据)时,需要把所有连接都告诉内核,由内核找出哪些连接上有事件发生。由于需要把大量连接从用户空间拷贝到内核空间,所以开销巨大,因此,使用poll、select事件驱动方式,最大并发数量只能达到几千。Linux 2.6版本之后添加了epoll函数接口,使得最大并发数量可以达...
分类:其他好文   时间:2014-07-13 17:27:34    阅读次数:311
Chrome浏览器扩展程序强制停用的解决方法
一、加载正在开发的扩展程序(推荐) 这里以加载一个已有的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(求两个不相交最大字段的和)
poj2479 && poj2593Maximum sum(求两个最大字段的和)...
分类:其他好文   时间:2014-07-13 16:18:14    阅读次数:137
解决Bundle中使用反射时,报ClassNotFoundException异常
项目工程: user-model/...
分类:其他好文   时间:2014-07-13 17:00:16    阅读次数:287
初始化的数值(int、double等)
首先考虑一个具有几个构造函数的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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!