#include #include #include #include using namespace std; int SCREEN_WIDTH = 400; //屏幕尺寸 int SCREEN_HEIGHT = 400; int posx1 = 150; int posy1 = 200; int...
分类:
其他好文 时间:
2014-06-18 20:57:18
阅读次数:
238
zabbix架构Zabbix组件Zabbix Server:负责接收agent发送的报告信息的核心组件,所有配置、统计数据及操作数据均由其组织进行Database Storage:专用于存储所有配置信息,以及有zabbix收集的数据Web interface(frontend):zabbix的GUI...
分类:
其他好文 时间:
2014-06-17 20:34:07
阅读次数:
375
经常需要根据IP地址统计apache站点访问量,最基本的脚本.根据IP访问量降序排列:#!/bin/bash
#Script_name:access_count
acc_log=/usr/local/apache2/logs/access_log
/bin/awk‘{print$1}‘$acc_log|sort|uniq-c|sort-nr执行效果:[root@zabbix~]#shaccess_count
94989192.168.1..
分类:
移动开发 时间:
2014-06-16 18:18:50
阅读次数:
332
01.在服务端创建zabbix组configuration---Templates---createtemplate---TemplateLinux
DiskIO===其中选择组为"Template"在TemplateLinuxDiskIO中创建Discoveryrule:Name:Diskdevice
discovery
Key:custom.vfs.dev.discovery
FilterMacro{#DISK}Regexp@Disk
devicefordiscover..
分类:
其他好文 时间:
2014-06-16 17:00:42
阅读次数:
543
移动篇:@media screen and (min-width:540px){#news_detail .pinglun-form { margin:0 auto;width: 540px;}}@media screen and (max-width:540px){#news_detail .pi...
分类:
移动开发 时间:
2014-06-15 06:26:51
阅读次数:
400
To make a Scheduled Task run in the background, change the User running
the task to "SYSTEM",
and nothing will appear on your screen....
分类:
移动开发 时间:
2014-06-14 09:33:39
阅读次数:
395
screen 尺寸为a:bvideo 尺寸为 c:d如果a == c 则 面积比为
cd/ab=ad/cb (ad c/d,则ad/bd > cb/db 则(ad > cb) screen尺寸可为 ad:bd, video的尺寸可为
cb:db 面积比为:cb*db/ad*bd = cb/ad...
分类:
其他好文 时间:
2014-06-13 17:11:40
阅读次数:
236
默认Zabbix运行的账户是Zabbix,但在自动部署的时候,Agent与Server的先后顺序不定,而且官方不建议两者使用同一个账户。
分类:
其他好文 时间:
2014-06-13 00:32:50
阅读次数:
267
KK上全屏界面如何实现禁止状态栏下拉?[SOLUTION]Google从KK开始增加了状态栏透明以及全屏
界面有通知可以下拉状态栏的设计,而这个设计出现的隐患是设置了FULL_SCREEN的界面是无法禁止状态栏下拉的,这样对一些工程测试app可能会造
成一定的影响,但是以google默认的设计,应用...
分类:
其他好文 时间:
2014-06-10 17:06:52
阅读次数:
213