dialog一般是出现在Activity之上的一个小窗口,一般用于提示信息和与当前应用程序直接相关的小功能进度对话框ProgressDialog:显示一个劲度环或者一个进度条,支持按钮警告对话框AlertDialog:可以创建大多数的交互界面日期选择对话框DatapickerDialog:让用户选择...
分类:
其他好文 时间:
2015-08-28 09:36:26
阅读次数:
217
分页分为真分页和假分页,而MyBatis本身没有提供基于数据库方言的分页功能,而是基于JDBC的游标分页,很容易出现性能问题。网上提供的一个解决方案感觉还不错,是基于MyBatis本身的插件机制,通过拦截Sql做分页。首先,我们需要根据不同数据库来加载不同的分页SQL,这里我们参考Hibernate...
分类:
其他好文 时间:
2015-08-28 09:33:59
阅读次数:
272
解析:假设机器人在(x,y)这个点,能量为power,那么可以到达它右下角曼哈顿距离小于等于power的地方,再以该点为起点继续搜索。代码如下:#include#include#include#include#include#include#include#include#include#inclu...
分类:
其他好文 时间:
2015-08-28 09:32:52
阅读次数:
122
工程目录配置文件详解Spring的applicationContext.xml文件 ...
分类:
其他好文 时间:
2015-08-28 09:35:11
阅读次数:
190
Last week, I got Autel MaxiFlashPro J2534 and MaxiSys MS908 shipped from China. A little expensive, and it will be better if it can be sold as a combi...
分类:
其他好文 时间:
2015-08-28 09:33:53
阅读次数:
163
题目:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?...
分类:
其他好文 时间:
2015-08-28 09:34:15
阅读次数:
119
题目传送门题意:计算从1开始到第n个非完全平方数的开方和分析:设第n个非完全平方数的值为a,x * x #include #include #include #include #include #include #include #include #include #include #include...
分类:
其他好文 时间:
2015-08-28 09:34:05
阅读次数:
149
修改redis.conf,打开后台运行选项:# By default Redis does not run as a daemon. Use 'yes' if you need it.# Note that Redis will write a pid file in /var/run/redis....
分类:
其他好文 时间:
2015-08-28 09:31:29
阅读次数:
145
题目传送门题意:有n个金矿,每个金矿有抓取的消耗的时间和价值,矿工在原点,问在T时间内能得到的最大的价值分析:唯一和01背包不同的是金矿可能共线,也就是抓取近的金矿后才能抓后面共线的金矿。这是分组背包问题,方法是将点按照斜率排序,如果相等按照距离原点远近排序,将斜率相等的点分成一组,每组的点累加上前...
分类:
其他好文 时间:
2015-08-28 09:34:08
阅读次数:
131
using System;using System.Collections.Generic;using System.Security.Cryptography;using System.Text;namespace ConsoleApplication2{ class Program ...
分类:
其他好文 时间:
2015-08-28 09:30:51
阅读次数:
104
都起床都起床啦~今天是鬼节,小小编要不要祝各位节日快乐呢?估计想揍我的人会很多吧。好吧,说正经事,你们觉得对于一个人来讲,什么是最重要的呢?小小编觉得,是颜值。。。 @斯雷波:从男厕所出来,对面一群女...
分类:
其他好文 时间:
2015-08-28 08:31:08
阅读次数:
233
事实证明,拥有与自己实力不相称的脾气绝对是种灾难。我更想说的是,真正有实力的人都是没什么脾气的。原因不是能忍而是根本没必要发脾气。...
分类:
其他好文 时间:
2015-08-28 08:30:22
阅读次数:
140
问题背景
在编写存储过程中,写了N多行代码。结果一运行程序,就在数据库这里报错。那么如何在写完存储过程之后就能立即测试一下村粗过程呢?
--------------------------------------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2015-08-28 08:28:57
阅读次数:
174
bzoj2463 谁能赢呢?题目大意:给定一个n×n的方格,从(1,1)开始走,每次可以到上下左右没有到过的一个格子,alice先手,交替操作,如果先手必胜则输出'Alice’,否则输出‘Bob’。思路:lcomyn大爷秒暴结论。后来仔细想了想,只发现走一步肯定会改变格子奇偶性。其实如果n是偶数,那...
分类:
其他好文 时间:
2015-08-28 08:27:25
阅读次数:
200
题目:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e...
分类:
其他好文 时间:
2015-08-28 08:26:56
阅读次数:
158
一、方法一: 1 $value) {11 $flag = $key > 0 || $firstLetter;12 $arr[$key] = $flag ? ucfirst($value) : $value;13 }14 return implode(...
分类:
其他好文 时间:
2015-08-28 08:27:53
阅读次数:
188
原文:http://blog.csdn.net/killwd/article/details/1460478贝塞尔曲线 维基百科 http://zh.wikipedia.org/wiki/%E8%B2%9D%E8%8C%B2%E6%9B%B2%E7%B7%9A在图形图像编程时,我们常常需要根据一系列...
分类:
其他好文 时间:
2015-08-28 08:26:15
阅读次数:
283