首页 > 其他
2016-02-22 监听键盘 隐藏bar
- (BOOL)prefersStatusBarHidden{ return YES; } //隐藏bar 2:让键盘消失 //// [_lastField resignFirstResponder]; // [self.view endEditing:YES];//gzz0223 // // //
分类:其他   时间:2016-02-23 11:15:06    收藏:0  评论:0  赞:0  阅读:264
Number of Islands
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen
分类:其他   时间:2016-02-23 11:14:56    收藏:0  评论:0  赞:0  阅读:206
Ntdsutil.exe
Ntdsutil.exe 编辑 本词条缺少名片图,补充相关内容使词条更完整,还能快速升级,赶紧来编辑吧! Ntdsutil.exe 是一个为 Active Directory 提供管理设施的命令行工具。 外文名Ntdsutil.exe性 质命令行工具适用范围 Active Directory 管理员
分类:其他   时间:2016-02-23 11:14:46    收藏:0  评论:0  赞:0  阅读:201
可以拖动的View
定义一个继承自UIview的类(即我们要移动的视图) BallView.h 1 @interface BallView : UIView 2 { 3 CGPoint startPoint; 4 } 5 @end BallView.m 1 @implementation BallView 2 3 -
分类:其他   时间:2016-02-23 11:13:36    收藏:0  评论:0  赞:0  阅读:152
poj2010 Moo University - Financial Aid
Moo University - Financial Aid 题意: 一个私立学校的学生要申请奖学金,而学校的金额有限。因此,学校希望在金额不超过F的情况下从C中选得N对数。 给出三个数N,C,F。分别代表在C对数中要取得N对数。而每对数分别代表成绩,跟申请金额。要求取得N对数中的总金额不超过F的条
分类:其他   时间:2016-02-23 11:13:26    收藏:0  评论:0  赞:0  阅读:306
本地图片选择(打开媒体库,选择图片)
import java.io.FileNotFoundException; import android.app.Activity; import android.content.ContentResolver; import android.content.Intent; import andro
分类:其他   时间:2016-02-23 11:13:16    收藏:0  评论:0  赞:0  阅读:230
spark分片个数的确定及Spark内存错误(GC error)的迂回解决方式
我们知道,spark中每个分片都代表着一部分数据,那么分片数量如何被确认的呢? 首先我们使用最常见的HDFS+Spark,sparkDeploy的方式来讨论,spark读取HDFS数据使用的是sparkcontext.textfile(Path, minPartitions): 1 def text
分类:其他   时间:2016-02-23 11:13:06    收藏:0  评论:0  赞:0  阅读:300
原始线要素类为地理坐标系,如何获取以米为单位的距离?
可以使用IPolycurveGeodetic.get_LengthGeodetic();方法,将要量测的IPolyline转为IPolycurveGeodetic即可。测试代码如下: IPolyline polyline = feature.Shape as IPolyline; IPolycurv
分类:其他   时间:2016-02-23 11:12:56    收藏:0  评论:0  赞:0  阅读:342
selenlium 实践 2
FirefoxProfile定制启动firefox 1 package seleniumtraining1; 2 3 import java.io.File; 4 import java.io.IOException; 5 6 import org.openqa.selenium.By; 7 imp
分类:其他   时间:2016-02-23 11:12:36    收藏:0  评论:0  赞:0  阅读:233
使用Maven搭建Hadoop开发环境
pom.xml <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>2.5.1</version> </dependency> <dependency> <
分类:其他   时间:2016-02-23 11:12:16    收藏:0  评论:0  赞:0  阅读:152
如何让样式既兼容IE8也兼职IE7
最近客户反映注册页面无法注册,通过了解,是客户使用IE7浏览器无法兼容,调了很久也不能完美的解决,在网上找到一段mata,提好用的,分享给大家。 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta
分类:其他   时间:2016-02-23 11:11:56    收藏:0  评论:0  赞:0  阅读:205
poj 1127 Jack Straws 线段相交+并查集
题意: 有n个木棍,给出木棍的两个端点的x,y坐标,判断其中某两个线段是否连通(可通过其他线段连通) #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #inclu
分类:其他   时间:2016-02-23 11:11:46    收藏:0  评论:0  赞:0  阅读:126
CodeForces 629C Famil Door and Brackets
DP。听了同学的讲解才会的。 具体做法:dp[i][j]表示长度为 i 的括号串,前缀和(左括号表示1,右括号表示-1)为 j 的有几种。 状态转移很容易得到:dp[i][j]=dp[i - 1][j + 1]+dp[i - 1][j - 1],表示 i 这位分别放上右括号和左括号。 然后就是要处理
分类:其他   时间:2016-02-23 11:11:26    收藏:0  评论:0  赞:0  阅读:296
图解正向代理、反向代理、透明代理(转)
一、正向代理(Forward Proxy)一般情况下,如果没有特别说明,代理技术默认说的是正向代理技术。关于正向代理的概念如下: 正向代理(forward)是一个位于客户端【用户A】和原始服务器(origin server)【服务器B】之间的服务器【代理服务器Z】,为了从原始服务器取得内容,用户A向
分类:其他   时间:2016-02-23 11:10:56    收藏:0  评论:0  赞:0  阅读:88
哈密顿绕行世界问题(dfs+记录路径)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2181 哈密顿绕行世界问题 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Su
分类:其他   时间:2016-02-23 11:10:16    收藏:0  评论:0  赞:0  阅读:123
ansible代码分析第一篇--主文件—ansible分析
2016年2月23日,学习,分析ansible代码 ansible是一种运维中使用的批量部署的工具,它本身是一种框架,具体的部署和架构分析,下面这篇文章讲的不错。 http://os.51cto.com/art/201409/451927_all.htm 首先分析主文件ansible,代码和注释如下...
分类:其他   时间:2016-02-23 11:10:06    收藏:0  评论:0  赞:0  阅读:161
solr入门
下载4.8.0版本,下载地址:http://archive.apache.org/dist/lucene/solr/4.8.0/ 解压后,得到文件夹视图如下: 启动:D:\soft\apache\solr\solr-4.8.0\example>java -jar start.jar 看结果:http
分类:其他   时间:2016-02-23 11:09:58    收藏:0  评论:0  赞:0  阅读:201
分享大麦UWP版本开发历程-03.GridView或ListView 滚动底部自动加载后续数据
今天跟大家分享的是大麦UWP客户端,在分类、订单或是搜索时都用到的一个小技巧,技术粗糙大神勿喷。 以大麦分类举例,默认打开的时候,会为用户展示20条数据,当用户滚动鼠标或者使用手势将列表滑动到倒数第二行的位置时,自动加载后续20条数据。提高启动速度的同时稍稍节省用户的流量。 其他的就不说了,直接进入
分类:其他   时间:2016-02-23 11:09:26    收藏:0  评论:0  赞:0  阅读:375
字符串比较
1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4 5 using namespace std; 6 7 int mystrcmp(const char* dest, const char* src) 8 { 9 a
分类:其他   时间:2016-02-23 11:09:16    收藏:0  评论:0  赞:0  阅读:123
判断回文字符串
1 #include "stdafx.h" 2 #include "iostream" 3 4 using namespace std; 5 6 int isechol (const char* str) 7 { 8 int length = strlen(str); 9 for (int i=0;
分类:其他   时间:2016-02-23 11:08:56    收藏:0  评论:0  赞:0  阅读:137
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!