自定义Annotation1.声明一个annotation,类型是@interface//声明注解@Target(ElementType.FIELD)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface ValueBind {...
分类:
编程语言 时间:
2014-07-11 11:27:04
阅读次数:
202
BACKGROUNDThis disclosure relates generally to the field of computer graphics. More particularly, but not by way of limitation, it relates to techniqu...
分类:
其他好文 时间:
2014-07-08 22:52:36
阅读次数:
254
1、错误描述
com.mysql.jdbc.exception:jdbc4.MySQLSyntaxErrorException:Unknown column 'man' in 'field list'
2、错误原因
数据库表中的字段:sno sname sage ssex
插入数据时: sno sname sage ma...
分类:
数据库 时间:
2014-07-08 13:50:59
阅读次数:
242
CodeForces 444C. DZY Loves Physics(枚举+水题)...
分类:
其他好文 时间:
2014-07-08 13:41:51
阅读次数:
190
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 29713
Accepted: 12876
Description
Flip game is played on a rectangular 4x4 field with two-sided...
分类:
其他好文 时间:
2014-07-08 13:32:49
阅读次数:
189
题目链接:Codeforces 444A DZY Loves Physics
题目大意:给出一张图,图中的每个节点,每条边都有一个权值,现在有从中挑出一张子图,要求子图联通,并且被选中的任意两点,如果存在边,则一定要被选中。问说点的权值和/边的权值和最大是多少。
解题思路:是图论中的一个结论,最多两个节点,所以枚举两条边就可以了。我简单的推了一下,2个点的情况肯定比3个点的优。
...
分类:
其他好文 时间:
2014-07-08 11:21:20
阅读次数:
296
mysql向表中某字段后追加一段字符串:update table_name set field=CONCAT(field,'',str)mysql 向表中某字段前加字符串update table_name set field=CONCAT('str',field)MySQL中concat函数使用方法...
分类:
数据库 时间:
2014-07-06 18:43:12
阅读次数:
265
1.config配置变量
'MODEL_FIELD_FLAG' => TRUE,//表单加密开关
'MODEL_FIELD_NAME_PRE' => 'mlm_',//表单加密前缀
'MODEL_FIELD_EMCODE' => 'md5',//加密方式
'MODEL_FIELD_EMCODE_KEY' => 'GAD@DFVGFasfdgA'//加密key
2.控制器层
$m...
分类:
数据库 时间:
2014-07-06 12:33:29
阅读次数:
382
在.net中的struct与class有很多相似之处,比如可以直接new,对于成员可以直接XX.field,以至于有不少程序员在用时,将其混在一起,分不清有何区别。这两者有何区别呢?
1.类型不同
我们先来看一段代码
static void Main(string[] args)
{
TypeDemo();...
分类:
Web程序 时间:
2014-07-06 08:43:17
阅读次数:
214
有时候UI给开发的资源跟实际的frame不一致,这个时候我们就要去拉伸图片
UIImage* image = [[UIImage imageNamed:@"text_field_bg.png"] stretchableImageWithLeftCapWidth:20 topCapHeight:0]; //stretchableImageWithLeftCapWidth使图片有拉伸效果
UI...
分类:
移动开发 时间:
2014-07-05 22:51:09
阅读次数:
332