给redmine1.2.1,安装code review插件时执行 rake db:migrate_plugins RAILS_ENV=production 遇到这个错误uninitialized constant Redmineapp,经过不断的查找是因为code review 的版本下载错了,得用code review 0.4.4,最后重新安装则成功...
分类:
移动开发 时间:
2014-09-25 19:59:27
阅读次数:
153
题目大意:
在一个1000*1000的二维平面上,每一个整点都有一个权值,权值大小是 the production in the grid points (x, y) is (x + A)(y + B) where A, B are two constant.
思路分析:
先离线处理出所有的询问,对于每一个询问都有一个极角,按照极角排序。
然后对于平面上每一个点,都依次的加入到B...
分类:
其他好文 时间:
2014-09-25 03:55:08
阅读次数:
247
今天正给项目写代码的时候发现想用switch语句,写的时候有点困惑.
一般的switch都是这样
swith(constant)
{
case 1: statement;break;
case 2: statement;break;
...
default: break;
}
每一个case 都是一个...
分类:
其他好文 时间:
2014-09-24 15:31:47
阅读次数:
143
当一个COM接口支持IDispatch的时候(Dual接口),它就可以被其他语言调用。
这里我用perl试了一下。
perl测试代码
use warnings;
use strict;
use Win32::OLE;
use constant ADS_UF_ACCOUNTDISABLE => 2;
use constant ADS_SCOPE_SUBTREE => 2;
my $MyCo...
分类:
其他好文 时间:
2014-09-24 15:02:47
阅读次数:
269
Linear Constant-coefficient difference equations...
分类:
其他好文 时间:
2014-09-23 19:20:45
阅读次数:
167
Chapter 10 UIImagePickerController1. Setting the image picker’s sourceType: The sourceType constant that tells the image picker where to get images. I...
分类:
其他好文 时间:
2014-09-22 12:10:42
阅读次数:
221
Sort a linked list inO(nlogn) time using constant space complexity.思路:采用归并排序或者快速排序#include using namespace std;struct ListNode { int val; ListNo...
分类:
其他好文 时间:
2014-09-20 20:12:09
阅读次数:
230
Strings are constant; their values cannot be changed after they are created String s1 = "Hello";String s2 = "Hello";System.out.println(s1==s2); //true...
分类:
其他好文 时间:
2014-09-20 17:16:59
阅读次数:
185
1、升级到XCODE5后,在ASIHttpRequest类中会提示一个警告信息:"Comparison of constant 'NSStreamEventErrorOccurred' (8) with expression of type 'NSStreamStatus' (aka 'enum N...
分类:
其他好文 时间:
2014-09-18 13:07:23
阅读次数:
210
Chapter 8 UITableView and UITableViewController1. The designated initializer of UITableViewController is initWithStyle:, which takes a constant that d...
分类:
其他好文 时间:
2014-09-18 01:59:23
阅读次数:
191