码迷,mamicode.com
首页 >  
搜索关键字:openstack controller cloud computing node    ( 47371个结果
Yii 丢失controller ID问题
用YII很久了今天看老代码发现了一个致命又气人的bug: “'SiteController cannot find the requested view "index". ” 在这个项目里对应的views/site/index.php文件都有,但是为什么还报了这个错呢, 于是开始看内核代码: public function getViewFile($viewName) { if(($t...
分类:其他好文   时间:2014-05-01 21:59:39    阅读次数:454
POJ - 2926 Requirements
题意:多维的曼哈顿最远距离 思路:做了1,2,3维的,其实就是枚举所有绝对值的可能的表达式 #include #include #include #include using namespace std; const int MAXN = 100005; const int M = 5; const double inf = 1e200; struct node{ double x...
分类:其他好文   时间:2014-05-01 17:31:01    阅读次数:283
hdu 1160 FatMouse's Speed
题目:寻找最长上升自序列。 代码: #include #include #include #include using namespace std; struct node { int w,s; //重量,速度 int num; //编号 int t; //用来记录当前编号...
分类:其他好文   时间:2014-05-01 17:17:32    阅读次数:285
Yii,Linux与windows环境下面的不同
其实与其说是不同倒是可以说是需要注意的地方1. Linux下面,Model Component 等...在调用的时候要注意大小写..下面一段就会报错 1 class LinkController extends Controller 2 { 3 4 public function acti...
分类:Windows程序   时间:2014-05-01 09:44:53    阅读次数:593
hdu 1233 还是畅通工程
简单最小生成树,继续我的kruskal#include#include#include#includeusing namespace std;const int MAX=1000000;struct node{ int left,right,cost;}road[MAX];bool cmp(n...
分类:其他好文   时间:2014-05-01 09:28:42    阅读次数:333
[leetcode]Remove Nth Node From End of List @ Python
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given a linked list, remove thenthnode from the end of list and return its he...
分类:编程语言   时间:2014-05-01 06:42:15    阅读次数:332
uva 11988 这题可以看出c++中string效率的底下
用c语言实现 #include #include #include using namespace std; typedef struct node { char x; struct node *next; }chan; chan *root = new chan; char a[100010]; int main() { while(scanf("%...
分类:编程语言   时间:2014-04-29 13:47:20    阅读次数:358
jquery css选择器
1. $('node+next') == $('node').next() 2. $('node~siblings') == $('node').nextAll(); 3. :gt(index)大于index序号的的元素,从0开始 4. :lt(index)小于index序号的元素,从0开始 4. :header 获取所有h1,h2,h3,h4...的元素...
分类:Web程序   时间:2014-04-29 13:45:20    阅读次数:322
wustoj 1318 区间的连通性 (最短路)
floyd求最短路。 注意图是有向图。。。 #include #include #include using namespace std; struct node { int x,y,id; }edge[205]; int dis[205][205]; int main() { int c,T,n,a,b,op; while(scanf("%d",&T...
分类:其他好文   时间:2014-04-29 13:21:23    阅读次数:313
heat笔记之为diskimage-builder编写elements生成一个lamp镜像
建立elements目录 mkdir -p elements/lamp/install.d/ vim 70-lamp #!/bin/bash set -eux install-packages wordpress mariadb-server httpd memcached 生成一个带wordpress的镜像 export ELEMENTS_PATH=...
分类:其他好文   时间:2014-04-29 13:14:21    阅读次数:475
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!