最近使用mybatis,在mybatis的xml配置文件中总是会提示错误The content of element type "configuration" must match "(properties>settings>typeAliases>typeHandlers>objectFactor...
分类:
其他好文 时间:
2014-07-10 11:05:57
阅读次数:
327
const int MAX = 1e6+10;const int inf = 0x3f3f3f3f;int n,m;int lx[MAX],ly[MAX];int match[MAX];int usex[MAX],usey[MAX];int w[MAX][MAX];int find(int u) {...
分类:
其他好文 时间:
2014-07-08 00:04:48
阅读次数:
266
Rails.application.routes.draw do match 'projects/:id/:controller(/:action(/:id))(.:format)'end
分类:
其他好文 时间:
2014-07-07 18:35:00
阅读次数:
187
官方地址:http://developer.android.com/guide/practices/screens_support.html一、关于布局适配建议1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android...
分类:
移动开发 时间:
2014-07-03 11:28:23
阅读次数:
321
先上效果图,选择不同的模块,滑动会通过动画形式滑过去,这种适合新闻客户端多种栏目的展示:
这么写Layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2014-07-01 15:43:33
阅读次数:
198
先上效果图:
Title的Layout为:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-07-01 11:24:30
阅读次数:
289
蛋疼的题目描述,看了好长好长时间才看懂,题目本身是很简单的。Designer给出一串长度为N的Code,Breaker用Guess来破译。对于两串数字,如果有同一列相等的数字,那么叫做strong match,位于不同列的相等的两个数字,叫做weak match。题目要求就是先输出strong的个数...
分类:
其他好文 时间:
2014-07-01 09:14:15
阅读次数:
227
先上效果图:
Title的Layout为:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-06-30 18:44:18
阅读次数:
269
rt 稳定婚姻匹配问题
The Stable Marriage Problem
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 438 Accepted Submission(s): 222
Proble...
分类:
其他好文 时间:
2014-06-30 00:35:18
阅读次数:
257
Swift and Objective-C in the Same Project
在项目里交叉使用Swift和OC
Swift与OC的兼容性使得你可以在项目里使用Swift+OC的方式编写应用程序,称为混合+匹配(mix and match),用这种方式可以一边使用享受新语言的快速特性,一边无缝的接合你已有的OC代码(原文听起来好NB的样子,其实也就那么回事),不管项目最初是用OC编写的...
分类:
其他好文 时间:
2014-06-27 23:41:36
阅读次数:
504