码迷,mamicode.com
首页 >  
搜索关键字:state    ( 7806个结果
hibou 主界面自定义侧滑
给要侧滑的View添加UIPanGestureRecognizer #pragma mark 手势识别器回调方法 - (void)dragView:(UIPanGestureRecognizer *)gesture{     switch (gesture.state) {         case UIGestureRecognizerStateBegan: ...
分类:其他好文   时间:2015-03-13 18:42:54    阅读次数:204
域名备案注销的简单方法
1 找到域名备案号2http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action# 右下角,找回备案密码3 填写完成后,会将备案密码发送到当时备案用的手机和邮箱里4 找到 当时备案的 代理商, 将密码告诉他,他会提交到域名备案的 当地管...
分类:其他好文   时间:2015-03-13 10:51:43    阅读次数:98
压力测试时候Linux系统参数的调优
有个站点,我用ab做压测,结果ab总是返回错误,我做了如下的一些调优,最后正常了。nginx的配置.conf: worker_processes 32; worker_connections 65536;过多的TIME_WAIT在压力中,通过netstat发现很多TIME_WAIT的连接描述符:netstat -n | awk '/^tcp/ {++state[$NF]}...
分类:系统相关   时间:2015-03-12 17:16:38    阅读次数:180
防简单攻击iptables策略
#!/bin/shIPTABLES=/sbin/iptables# clear$IPTABLES -F# if pkg type is allow, then accept#$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCE...
分类:其他好文   时间:2015-03-12 16:55:34    阅读次数:188
[SQL_Server_Question]Msg 1105无法为数据库 'tempdb' 中的对象分配空间,因为 'PRIMARY' 文件组已满
错误消息:Msg 1105, Level 17, State 2, Line 266Could not allocate space for object 'dbo.Large Object Storage System object: 422392492982272' in database '....
分类:数据库   时间:2015-03-12 00:36:31    阅读次数:3576
State Monad in C++
一个C++版本的State Monad。 需要C++11。 #include template class M> struct Monad { template M ret(A) = 0; template M bind(M, std::function(A)>) = 0; }; template ...
分类:编程语言   时间:2015-03-11 21:31:23    阅读次数:143
HDU ACM 2206 IP的计算
一定要注意IP的长度不能超过15位。 方法一: #include using namespace std; bool f(char* p) { int state,sum; state=sum=0; while(true) { switch(state) { case 0: case...
分类:其他好文   时间:2015-03-11 14:50:29    阅读次数:115
hdu 1065 I Think I Need a Houseboat 水题,不过看discuss,应该有很多人在PI上栽跟头了
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square miles each year, due to erosion caused by the Mississipp...
分类:其他好文   时间:2015-03-11 14:49:28    阅读次数:144
sql server 删除表字段和字段的约束
删除数据库表中的字段时,使用了 :alter table 表名 drop column 列名服务器返回的错误为:Server: Msg 5074, Level 16, State 1, Line 1The object 约束名is dependent on column 列名.Server: Msg...
分类:数据库   时间:2015-03-10 17:08:57    阅读次数:219
状态模式
状态模式,就是定义一个状态类,在这个状态类中有一个状态属性,来标明当前所处的状态;还有不同状态下要执行的方法。这些状态要暴露给外界,如外界通过不同的状态来执行不同的操作。就比如QQ的在线,忙碌,隐身等各种状态的实现。 package mode.state; /** * * 定义状态类 * * */ public class State { private String value...
分类:其他好文   时间:2015-03-10 13:58:34    阅读次数:103
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!