记得智能手机刚出来那会比较火的一个概念“能够复制粘贴的手机就是智能手机”。现在看来,这不过是个老掉牙的功能了,但实际用处却是非常强大的,那么现在我们就来试试怎么做到这个功能。粘贴板的英文名叫做Clipboard,这也是它的类名了。新建工程这种就不说了,在XAML中代码如下: <Grid Background="{StaticResource ApplicationPageBackgroundT...
分类:
移动开发 时间:
2015-05-17 15:24:23
阅读次数:
162
已经刚刚一个月没有更新这个专栏了,今天开始要连续更新几篇啦~上一篇我们学习的是如何添加设置,这一篇讲的是和设置类似的搜索。So…… Let’s do it !先从简单的页面布局开始,想想我们需要什么,一个带搜索事件的Button,还需要一些TextBlock来提示用户,核心部分自然是一个GridView咯。
<Grid.RowDefi...
分类:
移动开发 时间:
2015-05-17 13:49:36
阅读次数:
252
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4837三角形的总数=格子中任取3个点的组合数-同一横行任取3个点数目-同一纵行任取3个点数目-同一斜直线上任取3个点数目同一横行和同一纵行都好求同一斜行的距离最远的点必然是一个矩形...
分类:
其他好文 时间:
2015-05-17 02:02:44
阅读次数:
127
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:
其他好文 时间:
2015-05-16 20:38:51
阅读次数:
145
GPU的硬件结构,也不是具体的硬件结构,就是与CUDA相关的几个概念:thread,block,grid,warp,sp,sm。 sp: 最基本的处理单元,streaming processor 最后具体的指令和任务都是在sp上处理的。GPU进行并行计算,也就是很多个sp同时做处理 sm:多个sp加...
分类:
其他好文 时间:
2015-05-16 20:32:54
阅读次数:
291
CUDA基本使用方法 在介绍OpenCV中GPU模块使用之前,先回顾下CUDA的一般使用方法,其基本步骤如下: 1.主机代码执行;2.传输数据到GPU;3.确定grid,block大小; 4.调用内核函数,GPU运行程序;5.传输结果到CPU;6.继续主机代码执行。 下图是两个向量相加的简单示例程序...
分类:
其他好文 时间:
2015-05-16 20:23:10
阅读次数:
122
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
编程语言 时间:
2015-05-16 11:45:30
阅读次数:
149
1629 - Cake slicingTime limit: 3.000 secondsA rectangular cake with a grid ofm*nunit squares on its top needs to be sliced into pieces. Several cherri...
分类:
其他好文 时间:
2015-05-16 10:22:32
阅读次数:
156
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any po...
分类:
编程语言 时间:
2015-05-15 22:41:05
阅读次数:
173
11gR2 Clusterware Key Facts11gR2 Clusterware is required to be up and running prior to installing a 11gR2 Real Application Clusters database.The GRID ...
分类:
其他好文 时间:
2015-05-15 19:17:22
阅读次数:
178