刚装的Ubuntu,想试试django,以下是操作步骤 1、不相关的,安装ssh sudo apt-get update sudo apt-get install openssh-server /etc/init.d/ssh start 2、然后就可以通过X_shell来访问了,安装django s ...
分类:
系统相关 时间:
2017-03-12 12:52:35
阅读次数:
195
1. conda create -n R-Env -c r r-essentials source activate R-Env 2. 下面这个方法可以了的,但是注意mac要从terminal打开r运行第二步 https://irkernel.github.io/installation/#bina ...
分类:
其他好文 时间:
2017-03-12 12:50:26
阅读次数:
212
Description Give a tree with n vertices,each edge has a length(positive integer less than 1001). Define dist(u,v)=The min distance between node u and ...
分类:
其他好文 时间:
2017-03-12 01:07:35
阅读次数:
226
传送门 题意: 给一张无向图和一棵生成树,改变一些边的权值使生成树为最小生成树,代价为改变权值和的绝对值,求最小代价 线性规划的形式: $Min\quad \sum\limits_{i=1}^{m} \delta_i$ $Sat\quad $非树边边权$\ge$生成树上路径任何一条边的边权 $i$非 ...
分类:
其他好文 时间:
2017-03-12 00:58:32
阅读次数:
335
Designastackthatsupportspush,pop,top,andretrievingtheminimumelementinconstanttime.
push(x)--Pushelementxontostack.
pop()--Removestheelementontopofthestack.
top()--Getthetopelement.
getMin()--Retrievetheminimumelementinthestack.
Example:
MinStackminStack=ne..
分类:
编程语言 时间:
2017-03-11 22:07:02
阅读次数:
235
适配器模式 适配器模式(Adapter Pattern)是作为两个不兼容的接口之间的桥梁。这种类型的设计模式属于结构型模式,它结合了两个独立接口的功能。 这种模式涉及到一个单一的类,该类负责加入独立的或不兼容的接口功能。举个真实的例子,读卡器是作为内存卡和笔记本之间的适配器。您将内存卡插入读卡器,再 ...
分类:
其他好文 时间:
2017-03-11 18:49:08
阅读次数:
209
1、为什么要用多线程 这里列出几个原因: 后两点与Java中的多线程应用没有太大区别,不细说。 2. 为什么通过多线程可以提高用户体验、避免ANR(下面重点说明第一点,即如何减少事件响应的时间从而提高用户体验,以及如何避免ANR) 大家还记得我在群里说过的移动开发的“三不要”原则吗?即:不要让我想、 ...
分类:
编程语言 时间:
2017-03-11 16:08:22
阅读次数:
213
<html lang="en"> <head> <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="js/html2canvas.js">< ...
分类:
Web程序 时间:
2017-03-11 15:35:20
阅读次数:
199
作为一个.net开发者,一直在visual studio这款强大的编辑器宠爱下,其他编辑器都不会用,也用着不熟练。最近这不是转php吗,使用php编辑器很不爽,觉得还是用visual studio舒服一些。 支持visual studio的插件有php tools for visual studio ...
分类:
Web程序 时间:
2017-03-11 14:43:09
阅读次数:
269
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have ...
分类:
其他好文 时间:
2017-03-11 12:03:28
阅读次数:
181