04 2015 档案

摘要:1.查看 service iptables status 2.开关 service iptables start/stop 3.开机启动 chkconfig iptables on/off 4.编辑端口 vi /etc/sysconfig/iptables 添加 -A INPUT -m state 阅读全文
posted @ 2015-04-29 23:56 朋克 阅读(154) 评论(0) 推荐(0)
摘要:-(void) motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if (motion==UIEventSubtypeMotionShake) NSLog(@"Shake begin");}-(void) motio... 阅读全文
posted @ 2015-04-24 17:44 朋克 阅读(144) 评论(0) 推荐(0)
摘要:1.声明:void (^TestBlock) (int,int) = ^(int x,int y){ NSLog(@"%d",x*y);};调用:TestBlock(3,5);2.直接使用^(int x,int y){ NSLog(@"%d",x + y); }(3,7);3.返回... 阅读全文
posted @ 2015-04-23 12:36 朋克 阅读(193) 评论(0) 推荐(0)
摘要:1.xcodebuild clean -project $projectname.xcodeproj -configuration Release -alltargets2.xcodebuild archive -project $projectname.xcodeproj -scheme $sch... 阅读全文
posted @ 2015-04-16 12:56 朋克 阅读(134) 评论(0) 推荐(0)
摘要:1.访问网络获取Json //Get方法 NSString *str = @"http://api.xxx.cc/product/found.jhtml";NSDictionary *params = [[NSDictionary alloc] initWithObjectsAndKeys:@"1... 阅读全文
posted @ 2015-04-09 13:43 朋克 阅读(149) 评论(0) 推荐(0)
摘要:1.清了C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files 2.给上述文件夹EveryOne和IIS_User完全控制权限 3.给C:\Windows\Temp文件夹IIS_User完全控制权限 阅读全文
posted @ 2015-04-07 22:31 朋克 阅读(343) 评论(0) 推荐(0)
摘要:1.拖一个dynamic panel到窗体,将State1改名为State_首页;2.拖2个dynamic panel到State_首页中,分别命名为侧边菜单及首页内容,首页内容盖住侧边菜单;3.在首页内容和侧边菜单随便放点东西,比如图片之类的,再在首页内容中放置一个按钮,然后设置按钮的点击事件为M... 阅读全文
posted @ 2015-04-02 14:14 朋克 阅读(1143) 评论(0) 推荐(0)