一、环境
操作系统:Ubuntu 14.04 64位
python:2.7.6
Django:1.8.2
项目源码:https://github.com/youchuancong/django.git
部署方式:Django+uWsgi+nginx
二、部署
1、Django安装
官网:https://www.djangoproject.com/
安装
wget h...
分类:
其他 时间:
2015-06-04 11:49:19
收藏:
0 评论:
0 赞:
0 阅读:
601
Problem DescriptionLiyuan lives in a old apartment. One day, he suddenly found that there was a wireless network in the building. Liyuan did not know the password of the network, but he got some import...
分类:
其他 时间:
2015-06-04 11:48:39
收藏:
0 评论:
0 赞:
0 阅读:
228
详细介绍stm32中地址如何映射,对初学者很有帮助。...
分类:
其他 时间:
2015-06-04 11:48:29
收藏:
0 评论:
0 赞:
0 阅读:
230
truncate table players; 等价于 delete from players;或 delete players from players; 或 delete players.* from players;
1、truncate 速度快,如果有rollback命令,delete将被撤销,而truncate不会。
2、truncate是ddl语句,和其他ddl一样,它被隐...
分类:
其他 时间:
2015-06-04 11:48:19
收藏:
0 评论:
0 赞:
0 阅读:
169
先给出原文链接: 原文链接大数据本身是个很宽泛的概念,Hadoop生态圈(或者泛生态圈)基本上都是为了处理超过单机尺度的数据处理而诞生的。你可以把它比作一个厨房所以需要的各种工具。锅碗瓢盆,各有各的用处,互相之间又有重合。你可以用汤锅直接当碗吃饭喝汤,你可以用小刀或者刨子去皮。但是每个工具有自己的特性,虽然奇怪的组合也能工作,但是未必是最佳选择。大数据,首先你要能存的下大数据。传统的文件系统是单机的...
分类:
其他 时间:
2015-06-04 11:47:59
收藏:
0 评论:
0 赞:
0 阅读:
144
解决方法:将商户支付参数的seller邮箱换成与partner相同的数字串,依旧无法支付请检查所给参数...
分类:
其他 时间:
2015-06-04 11:47:49
收藏:
0 评论:
0 赞:
0 阅读:
1463
图是一种比线性表和树稍微复杂的数据结构,相比线性表的前驱后继和树的层次关系,图中任意两个元素之间都有可能存在关系。
图由非空的顶点集合和一个描述顶点之间关系的集合组成,记为 G = (V, E)。可分为 无向图 和 有向图。n个顶点的无向图中,如果任意两个顶点之间有且只有一条边,总的边数为 n(n-1)/2,这样的图称为完全图;n个顶点的有向图中,如果任意两个顶点之间有且只有一条边,总的边数为 ...
分类:
其他 时间:
2015-06-04 11:47:40
收藏:
0 评论:
0 赞:
0 阅读:
239
If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120.
{20,48,52}, {24,45,51}, {30,40,50}
For which value of p ≤ 1000, is...
分类:
其他 时间:
2015-06-04 11:46:49
收藏:
0 评论:
0 赞:
0 阅读:
260
依赖管理
上一节我们说到可以继承dependencies元素,我们很容易想到把这一特性应用到accout-parent中。子模块account-email和account-persist同时依赖了org.springframework:spring-core:2.5.6,spring-beans:2.5.6,spring-context:2.5.6,junit:junit:4.7。以此可以将这些公...
分类:
其他 时间:
2015-06-04 11:46:39
收藏:
0 评论:
0 赞:
0 阅读:
287
云计算是云计算(Grid Computing )、分布式计算(Distributed Computing)、并行计算(Parallel Computing)、效用计算(Utility Computing)、网络存储(Network Storage Technologies)、虚拟化(Virtualization)、负载均衡(Load Balance)等传统计算机技术和网络技术发展融合的产物。...
分类:
其他 时间:
2015-06-04 11:45:49
收藏:
0 评论:
0 赞:
0 阅读:
400
这道题给我的感觉就是,指针跳过来跳过去,眼花缭乱
大家也来看看
代码如下
#include
using namespace std;
int FindSubString( char* pch )
{
int count = 0;
char * p1 = pch;
while ( *p1 != '\0' )
{
if ( *p1 ==...
分类:
其他 时间:
2015-06-04 11:45:29
收藏:
0 评论:
0 赞:
0 阅读:
258
最初计算机操作系统是32位,而时间也是用32位表示。
System.out.println(Integer.MAX_VALUE);
2147483647
Integer在JAVA内用32位表示,因此32位能表示的最大值是2147483647。另外1年365天的总秒数是31536000,
2147483647/31536000 = 68.1
也就是说32位能表示的最长时间是68年,而实际上...
分类:
其他 时间:
2015-06-04 11:45:19
收藏:
0 评论:
0 赞:
0 阅读:
242
Maximal Square问题:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.思路: 动态规划我的代码:public....
分类:
其他 时间:
2015-06-04 11:43:59
收藏:
0 评论:
0 赞:
0 阅读:
193
Building a Space StationTime Limit:1000MSMemory Limit:30000KTotal Submissions:5173Accepted:2614DescriptionYou are a member of the space station engine...
分类:
其他 时间:
2015-06-04 11:43:29
收藏:
0 评论:
0 赞:
0 阅读:
264
题目:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the ...
分类:
其他 时间:
2015-06-04 11:42:59
收藏:
0 评论:
0 赞:
0 阅读:
331
Exceptionjava.lang.ClassCastException:org.slf4j.helpers.BasicMDCAdaptercannotbecasttoch.qos.logback.classic.util.LogbackMDCAdapter”,这个折腾了大半天发现只要把安装目录下...
分类:
其他 时间:
2015-06-04 11:42:19
收藏:
0 评论:
0 赞:
0 阅读:
295
1. 50个灯,有50个按钮,编号为1,2,3……50.刚开始灯全部是熄的,现在依次按按钮,每次按到按钮i,i的倍数编号的灯就变一下状态,问到最后开了几盏灯。 对于一个数,有n个约数就被操作了n次。n为奇数就为亮,偶数就为熄灯。i=n*m,除非这个数是某个约数的平方,否则约数互不相同且成对出现,故....
分类:
其他 时间:
2015-06-04 11:42:09
收藏:
0 评论:
0 赞:
0 阅读:
252
药物名称】糠酸莫米松 mometasone furoate999皮炎平金色装是有四效合一的全能功效,皮炎、湿疹、手足癣和体癣都是可以用的每种颜色的功效都不一样,红的适用普通皮炎湿疹,止痒快速,绿的适用脸部皮炎湿疹,金的皮炎皮癣都可以用【药理毒理】本品为一合成的糖皮质激素,具有抗炎、抗过敏等作用,其特...
分类:
其他 时间:
2015-06-04 11:41:19
收藏:
0 评论:
0 赞:
0 阅读:
274
打开txt文件是一串RGB颜色值用len(file.readlines()),发现颜色值有61366个,能分解成122*503 1 from PIL import Image 2 length = 122 3 width = 503 4 pic = Image.new("RGB",(length, ...
分类:
其他 时间:
2015-06-04 11:40:59
收藏:
0 评论:
0 赞:
0 阅读:
450
回溯法解题时通常包含3个步骤: 1. 针对所给问题,定义问题的解空间; 2. 确定易于搜索的解空间结构; 3. 以深度优先方式搜索解空间,并在搜索过程中用剪枝函数避免无效搜索。 对于问题的解空间结构通常以树或图的形式表示,常用的两类典型的解空间树是子集树和排列树。当所给的问题是从n个元素的集合S中找...
分类:
其他 时间:
2015-06-04 11:40:29
收藏:
0 评论:
0 赞:
0 阅读:
569