//// RootViewController.m// 头部滚动展示视图// 头部滚动广告视图#define SCREEN_SIZE [UIScreen mainScreen].bounds.size#define KImageCnt 5#define KImage_H 250#import "Ro...
分类:
移动平台 时间:
2015-04-01 21:39:34
收藏:
0 评论:
0 赞:
0 阅读:
1347
1:如何给表格单元列增加选择时的背影效果if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier...
分类:
移动平台 时间:
2015-04-01 21:37:24
收藏:
0 评论:
0 赞:
0 阅读:
236
需求场景:在开发中遇到下面这样场景:1.创建 Fragment A 显示。 这时栈的结构是: 1.Fragment A 2.创建 Fragment B 并 显示。 从下到上看,这时栈的结构是: 2.Fragment B1.Fragment A3.创建 Fragment C 并 显示。 从下到上看.....
分类:
移动平台 时间:
2015-04-01 21:31:24
收藏:
0 评论:
0 赞:
1 阅读:
7202
如何设置app的启动图,也就是Launch Image?Step11.点击Image.xcassets 进入图片管理,然后右击,弹出"New Launch Image"2.如图,右侧的勾选可以让你选择是否要对ipad,横屏,竖屏,以及低版本的ios系统做支持.这边我选了ios8.0,ios7.0,i...
分类:
移动平台 时间:
2015-04-01 21:29:34
收藏:
0 评论:
0 赞:
0 阅读:
209
//
// ViewController.m
// Begin iOS7 GCD
//
// Created by zyz on 15-4-1.
// Copyright (c) 2015年 Apple. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
//stor...
分类:
移动平台 时间:
2015-04-01 20:26:15
收藏:
0 评论:
0 赞:
0 阅读:
219
1.安装软件依赖包和创建nagios用户[root@tong1~]#yuminstallgccgcc-c++make-y[root@tong1~]#groupadd-g500nagios[root@tong1~]#useradd-r-u500-s/sbin/nologin-gnagiosnagios[root@tong1~]#2.安装apache和php环境[root@tong1~]#yuminstallhttpdphp*-y[root@tong1~]#vim/etc/htt..
分类:
移动平台 时间:
2015-04-01 20:22:05
收藏:
0 评论:
0 赞:
0 阅读:
442
如果将手机等移动设备中的照片上传至服务器,再显示已上传的图片,可能会有方向不正确的问题,这是因为照片中含有方向信息,它告知你照片是什么方向的,但我们如果没有处理方向,显示就会不正确。如果用正常方法读取已上传照片的宽和高:BufferedImagep_w_picpath=ImageIO.read..
分类:
移动平台 时间:
2015-04-01 20:21:35
收藏:
1 评论:
0 赞:
4 阅读:
6530
1.安装好nagios软件后点击任意页面报错Itappearsasthoughyoudonothavepermissiontoviewinformationforanyofthehostsyourequested...解决方法:[root@tong1conf]#vim/usr/local/nagios-4.0.8/etc/cgi.cfguse_authentication=0--将1改为0,不用认证[root@tong1conf]#/etc/init.d/na..
分类:
移动平台 时间:
2015-04-01 20:20:45
收藏:
0 评论:
0 赞:
0 阅读:
299
OS:centos5.7final32bitApache/2.4.2PHP/5.3.13NagiosCore3.4.1nagios-plugins-1.4.15rrdtool-1.4.7pnp4nagios-0.6.17一、安装Apache去Apache官网下载apr和apr-utilapr./configure--prefix=/usr/local/aprmakemakeinstallapr-util./configure--prefix=/usr/local/apr-util--wi..
分类:
移动平台 时间:
2015-04-01 20:17:05
收藏:
0 评论:
0 赞:
0 阅读:
415
1.nagios根目录[root@tong1nagios-4.0.8]#lltotal28drwxrwxr-x.2nagiosnagios4096Apr114:50bin--二进制文件drwxrwxr-x.3nagiosnagios4096Apr115:27etc--配置文件drwxr-xr-x.2rootroot4096Apr115:23include--包含文件drwxrwxr-x.2nagiosnagios4096Apr115:23libexec--插件文件drw..
分类:
移动平台 时间:
2015-04-01 20:15:05
收藏:
0 评论:
0 赞:
0 阅读:
245
publicstaticvoidmain(String[]args){
dateDiff("2015-04-0117:06:49","2015-04-0217:06:50",
"yyyy-MM-ddHH:mm:ss");
}
publicstaticvoiddateDiff(StringstartTime,StringendTime,Stringformat){
//按照传入的格式生成一个simpledateformate对象
SimpleDateForma..
分类:
移动平台 时间:
2015-04-01 20:11:15
收藏:
0 评论:
0 赞:
0 阅读:
209
1.首先要确定nagios监控软件在服务器端安装2.在监控端要安装nrpe插件[root@tong1~]#yuminstallxinetdopensslopenssl-devel-y[root@tong1~]#wgethttp://liquidtelecom.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz[root@tong1~]#tarxvfnrpe-2.15.tar..
分类:
移动平台 时间:
2015-04-01 20:07:26
收藏:
0 评论:
0 赞:
0 阅读:
371
前言本篇博客给大家分享一个WebView的使用案例,实现Android调用JavaScript代码来控制白天/夜间模式。关于WebView如何使用,官网有很好的说明,Building Web Apps in WebView,小巫这里就不多赘述。实现思路跟Native应用不一样,我们可以很简单得实现调用系统API来达到,就是通过样式设置主题。如果我们的内容是html里面的内容,如何来达到?首先加载ht...
分类:
移动平台 时间:
2015-04-01 20:03:44
收藏:
0 评论:
0 赞:
0 阅读:
259
随着asihttprequest的停止更新,许多人都转向了AFNetworking、 MKNetworkKit.我也是其中一个。于是我从网上找了许多文章作参考,但是结果都是失败告终。研究了好久都搞不透,最后还是请人帮忙搞定了。经常从网上索取免费资料的一员,要有回报的思想,也为了让更多的人少走些弯路,所以下面是代码:(有错误可以指出)
首先:将AFNetworking、UIKit+AFNetwor...
分类:
移动平台 时间:
2015-04-01 20:00:40
收藏:
0 评论:
0 赞:
0 阅读:
304
类似于:http://blog.csdn.net/jarlen/article/details/44794031下载文件:/**
* 下载文件
*
* @param down_url
* @param output
* @param tmpDir
*/
private void download(String down_url,...
分类:
移动平台 时间:
2015-04-01 20:00:40
收藏:
0 评论:
0 赞:
0 阅读:
268
//子视图批量从父视图中移除
NSArray *subViews = [_scrollView subviews];
if([subViews count] != 0) {
[subViews makeObjectsPerformSelector:@selector(removeFromSuperview)];
}...
分类:
移动平台 时间:
2015-04-01 19:59:54
收藏:
0 评论:
0 赞:
0 阅读:
169
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
[self.timeBackView addGestureRecognizer:tap];
- (void)tapAction:(UITapGestureRecognize...
分类:
移动平台 时间:
2015-04-01 19:59:34
收藏:
0 评论:
0 赞:
0 阅读:
221
...
分类:
移动平台 时间:
2015-04-01 19:58:54
收藏:
0 评论:
0 赞:
0 阅读:
265
Mac OS X 下捕获App局域网通讯包一.抓包模式因为工作关系,经常要分析App wifi通讯协议。我的开发电脑是Mac Book.
大体有如下几种模式:
+ App与服务器进行http通讯,这种情况下Http调试神器Charles 就派上用场。(这个参见本人其它博文)
+ App 与智能设备进行Wifi设备,一般是TCP包居多,往往不需要联入互联网,只是局域通讯。它需要用抓包软件Wire...
分类:
移动平台 时间:
2015-04-01 19:57:14
收藏:
0 评论:
0 赞:
0 阅读:
397
情景是这样的,我UITableView添加了一个HeaderView,这个HeaderView是通过xib创建,是UIView。出来的结果却出乎意料,UITableView的Cell最顶部的几个被HeaderView给遮挡了~~~我勒个去~~神马情况???!!! 于是哥通过看层次结构,发现运行...
分类:
移动平台 时间:
2015-04-01 19:55:14
收藏:
0 评论:
0 赞:
0 阅读:
1888