#import "AppDelegate.h"#import "FisrtViewController.h"@interface AppDelegate () @end@implementation AppDelegate - (BOOL)applicat...
分类:
其他好文 时间:
2014-07-16 18:16:12
阅读次数:
156
由于Kali在虚拟机的运行效率实在让人不敢恭维,于是决心将BT5中的MSF进行升级,升级的主要目的是,BT5R3内置的MSF是用SVN进行更新, 但是新版本的MSF已经停止通过SVN更新,改用Git,必须重新安装。网上找了很多办法,看见帖子里明明升级成功,但是自己总是不成功,卡在pg (0.15.0...
分类:
其他好文 时间:
2014-07-16 18:16:28
阅读次数:
170
###################### 访问权限#####################class HeidSoft##默认方法 def method1 ##### endprotected def method2 ##### endpri...
分类:
其他好文 时间:
2014-07-16 18:16:51
阅读次数:
156
思路:莫队算法,离线操作,将所有询问的左端点进行分块(分成sqrt(n) 块每块sqrt(n)个),用左端点的块号进行排序小的在前,块号相等的,右端点小的在前面。 这样要是两个相邻的查询在同一块内左端点每次最多移动sqrt(n) n次的话效率为nsqrt(n) ,对于同一块内右端点为有序的那么最多移...
分类:
其他好文 时间:
2014-07-16 18:16:59
阅读次数:
218
Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, wh...
分类:
其他好文 时间:
2014-07-16 18:17:13
阅读次数:
208
这些英文名不要随便乱取!现在很多中国人,尤其是年轻人,都有英文名字。一方面是为了赶时髦,另一方面为了方便和外国人交流。不幸的是,在母语是英语的人看来,他们为自己取的名字很多都很好笑,有时候很滑稽。一些英国人列出了他们在中国遇到的有趣的名字。Peter Pan or other fictional c...
分类:
其他好文 时间:
2014-07-16 18:17:30
阅读次数:
247
mvn clean、mvn package、mvn clean install -e、mvn dependency:analyze、mvn denpendency:tree -Dincludes=*:junit -Dverbose、mvn help:effective-pom/mvn help:ef...
分类:
其他好文 时间:
2014-07-16 18:17:22
阅读次数:
1393
A tuple is a sequence of values. The values can be any type, and they are indexed by integers, so in that respect tuples are a lot like lists. The imp...
分类:
其他好文 时间:
2014-07-16 18:17:44
阅读次数:
213
Running your own dnsmasq with libvirtd On linux host servers, libvirtd uses dnsmasq to service the virtual networks, such as the default network. A ne...
分类:
其他好文 时间:
2014-07-16 18:18:01
阅读次数:
173
习题:7.请把定理1.4.10改写成更一般的语言来叙述,第一句是:"设$f$是群$G_{1}$到$G_{2}$的满同态,且$H<G_{1}$,并记$N={\rm Ker}f$,则……"解答 与该定理类似的我们有:(1)$HN$是$G_{1}$中包含$N$的子群且$$HN=f^{-1}(f(H))$....
分类:
其他好文 时间:
2014-07-16 18:18:25
阅读次数:
637
最近在看《算法导论》,看到多线程算法这章中,有一个parallelfor循环的例子,如下:parallelfori=1tonparallelforj=1toncij=0fork=1toncij=cij+aik+bkj书上说的时间复杂度为O(lgn)+O(lgn)+O(n)=O(n);也就是说一个pa...
分类:
其他好文 时间:
2014-07-16 18:18:16
阅读次数:
181
Setting up libvirt for TLS (Encryption & Authentication) Setting up your virtualisation infrastructure for Transport Layer Security (TLS) isn't very d...
分类:
其他好文 时间:
2014-07-16 18:18:08
阅读次数:
289
思考:如果同一个类的两个对象调用类的同一个方法,如何才能让这两个对象都能调用此方法。为了能用简便、面向对象的语法编写代码——即“发送消息给对象”,编译器幕后将所操作对象的引用作为第一个参数传递给被调用方法。1. 作用:1.1 表示当前对象的引用:(this的用法和其它对象引用并没有不同) this....
分类:
其他好文 时间:
2014-07-16 18:18:49
阅读次数:
181
问题描述:在长度为n的序列中,找出其最大的N个数1.冒泡排序每冒泡一次,可将最大的数放到序列尾部,冒泡N次即可。时间复杂度:O(N*n)空间复杂度:O(1)2.扫描数组,将最大的N个数存在缓存中,当有更大的数到来时替换缓存中的数TOP_N(A,N) n = length of A cre...
分类:
其他好文 时间:
2014-07-16 18:18:57
阅读次数:
211
// 一个按钮点击事件,判断点击按钮是那一个显示出他的信息- (IBAction)buttonPressed:(id)sender { if (sender == self.leftButton) { NSLog(@"%@", self.leftButton.currentTit...
分类:
其他好文 时间:
2014-07-16 18:19:06
阅读次数:
167
设计模式目录:设计模式 1 ——观察者模式一、基本定义 何谓观察者模式?观察者模式定义了对象之间的一对多依赖关系,这样一来,当一个对象改变状态时,它的所有依赖者都会收到通知并且自动更新。 在这里,发生改变的对象称之为观察目标,而被通知的对象称之为观察者。一个观察目标可以对应多个观察者,而且这...
分类:
其他好文 时间:
2014-07-16 18:19:30
阅读次数:
399
#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;int dx[]={-2,-1,1,2,-2,-1,1,2};int dy[]={1...
分类:
其他好文 时间:
2014-07-16 18:19:53
阅读次数:
172