转自:http://www.cnblogs.com/idche/archive/2011/07/05/2098165.htmlGIT 学习笔记 集中化的版本控制系统 CVCS(Centralized Version Control System) 分布式版本控制系统 DVCS(Decentraliz ...
分类:
其他好文 时间:
2016-08-06 17:16:27
阅读次数:
154
原题链接:点击此处 题意: 第一行输入T,表示有T组数据。然后每一行输入N和M,分别表示所要求数的范围为1~N,比较值为M。 题目意思很简单,就是求解,在数的范围内X∈[1~N],存在多少个X使得GCD(X,N)>=M,统计X符合要求的个数。 用膝盖骨想想也知道,如果直接暴力遍历N次,每次操作的复杂 ...
分类:
其他好文 时间:
2016-08-06 17:15:14
阅读次数:
167
css-盒子模型 一、padding(内边距) 元素的内边距在边框和内容区之间。控制该区域最简单的属性是 padding 属性。CSS padding 属性定义元素边框与元素内容之间的空白区域。 padding-left/right/top/bottom 左内边距/右内边距/上内边距/下内边距 例如 ...
分类:
Web程序 时间:
2016-08-06 17:15:17
阅读次数:
166
K - Necklace Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:327680KB 64bit IO Format:%I64d & %I64u Submit Status Description In ...
分类:
其他好文 时间:
2016-08-06 17:14:41
阅读次数:
236
Description A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 ...
分类:
其他好文 时间:
2016-08-06 17:15:56
阅读次数:
131
1、引起循环引用的原因 1> A拥有B,B拥有C。当C需要销毁时,发现被B拥有,当B需要销毁时,发现被A用有,从而导致内存泄漏。如NSTimer(NSRunloop拥有NSTimer,NSTimer拥有self); 2> A拥有B,B拥有A。如block作为属性时,使用代理时; 2、打破循环引用 打 ...
分类:
其他好文 时间:
2016-08-06 17:13:45
阅读次数:
154
C:\>exp businessdata/businessdata file=dropcol.dmp tables=ACSTRULE,ARREARSCFG,ARREARS_REPORT_ACCT,CREATE_INVOICE_ACTION,FINANCIAL_ACCOUNT,FINANCIAL_AC ...
分类:
数据库 时间:
2016-08-06 17:13:56
阅读次数:
219
1.谨慎地选择方法的名称。遵循标准的命名习惯。 2.不过于追求提供便利的方法。方法太多会使类难以学习、使用、文档化、测试和维护。 3.避免过长的参数列表。目标是四个参数以下。 缩短参数列表的方法: (1)把方法分解成多个方法,可能会导致方法过多, 通过提升方法正交性,可以减少方法数目。java.ut ...
分类:
其他好文 时间:
2016-08-06 17:15:35
阅读次数:
345
原题链接:点击此处 思路: 这道题就是博弈论的运用,有兴趣的可以看看: 组合博弈 -- 三大基本博弈 源代码: #include <iostream> #include <stdio.h> #include <algorithm> #include <cmath> using namespace s ...
分类:
其他好文 时间:
2016-08-06 17:13:06
阅读次数:
158
1.区别 The followings are two limitations of SurfaceView: You can not be animated, transformed and scaled; You can not overlay two SurfaceView. TextureV ...
分类:
其他好文 时间:
2016-08-06 17:13:02
阅读次数:
292
参见: http://stackoverflow.com/questions/21537558/multiple-db-contexts-in-the-same-db-and-application-in-ef-6-and-code-first-migra 和: http://stackoverfl ...
分类:
数据库 时间:
2016-08-06 17:14:41
阅读次数:
167
在Unix/Linux下,最危险的命令恐怕就属rm命令了,每次在root下使用这个命令的时候,我都要盯着命令行看上几分钟才敢把回车敲下去。 以前,看到同事在脚本中使用rm命令 —— rm {$App_Dir}/* 。因为脚本没有判断变量$App_Dir是否为空,结果,在一次用root操作的时候,整个 ...
分类:
其他好文 时间:
2016-08-06 17:14:20
阅读次数:
107
一、JavaScript的三个重要组成部分 (1)ECMAScript(欧洲计算机制造商协会) 制定JS的规范 (2)DOM(文档对象模型)重点学习对象 处理网页内容的方法和接口 (3)BOM(浏览器对象模型) 存在兼容性问题 与浏览器进行交互的方法和接口 1、DOM定义 为js操作html元素而制 ...
分类:
Web程序 时间:
2016-08-06 17:13:45
阅读次数:
156
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2016-08-06 17:14:37
阅读次数:
134
access 注入./sqlmap.py -u "url" 注入判断./sqlmap.py -u "url" --tables 跑表./sqlmap.py -u "url" --columns -T admin 猜解字段./sqlmap.py -u "url" --dump -T admin -C ...
分类:
数据库 时间:
2016-08-06 17:14:31
阅读次数:
189
Linux系统提供一个软件alien, 使用它能够把deb包转换成各种格式。 1. 使用yum install alien 2. 安装完成后,执行 alien -r XXXXX.deb, 即可转换成对应的XXXXX.rpm包。 转载:http://blog.csdn.net/leichelle/ar ...
分类:
其他好文 时间:
2016-08-06 17:13:10
阅读次数:
240
AngularJs中的路由,应用比较广泛,主要是允许我们通过不同的url访问不同的内容,可实现多视图的单页web应用。下面看看具体怎么使用。 关于路由 通常我们的URL形式为http://jtjds.cn/first/page,但在单页web应用中angularjs通过#+标记实现,比如下面的页面, ...
分类:
Web程序 时间:
2016-08-06 17:12:48
阅读次数:
295