DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level...
分类:
其他好文 时间:
2015-07-17 17:34:22
阅读次数:
144
使用float和display:block将内联元素转换成块元素的不同点: 内联元素可以转换成块级元素,常用的方法比如可以为内联元素使用float属性让内联元素浮动起来,或者为内联元素添加display:block。虽然两者都可以让内联...
分类:
其他好文 时间:
2015-07-17 16:29:37
阅读次数:
112
1. IE中,如果a标签的地址为空: <a?href="">刷新</a> IE的解析为浏览器的根路径,比如当前的url地址为:http://www.example.com/hello.html , 那么IE的解析为:http://www.example.com/ 而其他所有浏览器行为一...
分类:
其他好文 时间:
2015-07-17 16:27:05
阅读次数:
149
Android?studio在new一个module时看不到布局。报错Failed to find the style corresponding to the id 2147418306 (6 similar errors not shown),其他方法没去研究,就想了一绝招,关闭AS,重新打开。...
分类:
其他好文 时间:
2015-07-17 16:27:12
阅读次数:
107
首先配置好yum[root@server5 ha.d]# cat /etc/yum.repos.d/rhel-source.repo #?Main?rhel6.5?server
[base]
name=Instructor?Server?Repository
baseurl=http://172.25.254.250/rhel6.5
gpgcheck=1
gpgkey=...
分类:
其他好文 时间:
2015-07-17 16:27:14
阅读次数:
180
Show Bounds Rectangles 显示边界矩形
Editor 编辑 -> Canvas 画布 -> Show Bounds Rectangles 显示边界矩形
这个设置的更改次数非常少 基本上 一台机子就设置一次 设置前:
设置后:...
分类:
其他好文 时间:
2015-07-17 16:27:09
阅读次数:
274
【南阳OJ分类之大数问题】题目+AC代码汇总
题目部分皆为南阳OJ题目,代码部分包含AC代码(可能不止一个)和标程。
题目不是太难,大家和本人就权当学习或复习下Java吧O(∩_∩)O~。...
分类:
其他好文 时间:
2015-07-17 16:26:27
阅读次数:
261
Consider the fraction, n/d, where n and d are positive integers. If nd and HCF(n,d)=1, it is called a reduced proper fraction.
If we list the set of reduced proper fractions for d ≤ 8 in ascending or...
分类:
其他好文 时间:
2015-07-17 16:26:05
阅读次数:
130
电脑C盘备份意思就是对你的系统进行复制或者拷贝,这种复制跟一般不同,因为直接用复制的话,很多C盘文件是不支持复制功能的。所以这里的电脑C盘备份的镜像文件,它就是一个跟你的C盘一模一样的东西,但是比C盘要小,是用来防止电脑遭到病毒攻击,或是其它方面造成系统损坏,而那时你就可以用之前备份的镜像文件来覆盖你你损坏的系统,这样你的电脑就跟以前一样啦。不仅避免了重装系统的麻烦,还节省了至少1个多小时候重装系...
分类:
其他好文 时间:
2015-07-17 16:26:34
阅读次数:
163
key value observer 键值观察
一、使用方法:
以person对象为例,person中的属性name,监听name值改变的方法
//添加监听的属性keyPath options:要监听的是新值还是旧值
[self.person
addObserver:self
forKeyPath:@"name"
options:NSKeyValueObservingOptio...
分类:
其他好文 时间:
2015-07-17 16:23:40
阅读次数:
124
0.2版本添加的功能
以tag分类图片
美化,增加瀑布流效果
增加tag页和单张图片页
增加发布图片页...
分类:
其他好文 时间:
2015-07-17 16:23:34
阅读次数:
119
在python中你可能时不时不碰到else语句用在while和for循环中,请不要惊讶,先看看它的作用吧!
实际上在循环语句中,else子句只会在循环完成后执行,即跳出循环的操作,如break,同时也会跳过
else块。
下面是一个来自python核心编程的例子def showMaxFactor(num):
count = num/2
while count > 1:...
分类:
其他好文 时间:
2015-07-17 16:25:40
阅读次数:
167
题意:数字排成三角形,求从顶点加到底,最大的和是多少。每个点只能加跟它直接相连的其中一个
分析:
数塔是经典的dp模型,从底往上推,每次找最大的往上一层加,最后归总到顶点,结果就是顶点的值。
dp[i][j]:加到dp[i][j]第i行第j个数时的最大和;dp[i][j]=dp[i][j]+max(dp[i+1][j],dp[i+1][j+1])
代码:
#include
#define...
分类:
其他好文 时间:
2015-07-17 16:23:51
阅读次数:
110
手写数字的识别,简化版。使用QT+OpenCV完成。...
分类:
其他好文 时间:
2015-07-17 16:23:05
阅读次数:
149
用于监听IOS网络状态切换(WIFI和移动蜂窝网络)有什么作用在Socket网络游戏中,经常会用到BSDSocket。用户切换网络状态时,Socket链接会断开,如果通过Receive的返回值来判断网络是否断开,需要等待很长时间(4-20s)
这个时候就需要监听IOS网络状态切换,当发现用户切换网络状态时,直接重连Socket。 如何在Cocos中使用首先将NetworkInfo.h 和 Net...
分类:
其他好文 时间:
2015-07-17 16:22:36
阅读次数:
177
Consider the fraction, n/d, where n and d are positive integers. If nd and HCF(n,d)=1, it is called a reduced proper fraction.
If we list the set of reduced proper fractions for d ≤ 8 in ascending or...
分类:
其他好文 时间:
2015-07-17 16:24:15
阅读次数:
121
? Simplify Essential Complexity; Diminish Accidental ComplexityNeal FordESSEnTiAl CoMplExiTy REpRESEnTS the difficulty inherent in any prob- lem. For example, coordinating a nation’s air traffic is an...
分类:
其他好文 时间:
2015-07-17 16:22:59
阅读次数:
119