1.RedisSentinel功能RedisSentinel是一套用于管理Redis实例的分布式系统,主要完成3项任务:1)Monitoring:持续监控Redismaster或slave实例的运行情况是否符合预期2)Notification:若被监控的Redis实例运行异常,sentinel会通过API通知外界(人或程序)3)Automationfailover:..
分类:
其他好文 时间:
2015-07-08 23:01:03
阅读次数:
209
1.NotificationManager ma=(NotificationManager) context.getSystemService(context.NOTIFICATION_SERVICE);2. NotificationCompat.Builder b=new Notificati.....
分类:
其他好文 时间:
2015-07-08 18:37:25
阅读次数:
110
创建通知
UILocalNotification *notification = [[UILocalNotification alloc] init];
if (notification)
{
NSDate *now = [NSDate new];
notification.fireDate = [now dateByAddingTimeInt...
分类:
移动开发 时间:
2015-07-07 23:03:43
阅读次数:
412
啥也不说看图:
点击后效果:
代码:主方法:
package com.text.ac;
import java.util.Calendar;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.Notification;
import android.ap...
分类:
移动开发 时间:
2015-07-07 17:06:31
阅读次数:
216
当struts.devMode设置为true时,html表单数据中有和action属性匹配不上的参数名时就会被这样显示出来,没什么大碍,就是为了便于使用者调试。struts.devMode设置为false就没有了。我也是找了半天原因,才看到这句话,其实人家早就指出解决方法了,set struts.d...
分类:
其他好文 时间:
2015-07-06 23:06:31
阅读次数:
129
注1:本文由破船[博客]译自Communication Patterns。本文目录如下所示:可用的机制做出正确的选择Framework示例小结每个应用程序或多或少,都由一些松耦合的对象构成,这些对象彼此之间要想很好的完成任务,就需要进行消息传递。本文将介绍所有可用的消息传递机制,并通过示例来介绍这些...
分类:
移动开发 时间:
2015-07-05 00:48:24
阅读次数:
165
1.先安装所需要的服务进程:#yum‐yinstallhaproxykeepalived2.编辑keeoalived的配置文件[root@dragon~]#cat/etc/keepalived/keepalived.conf
global_defs{
notification_email{
keepalived
}
notification_email_fromkeepalived@domain.local
smtp_server192.168.1.200
smtp_..
分类:
其他好文 时间:
2015-07-04 23:38:28
阅读次数:
407
在 android 系统中,在应用程序可能会遇到几种情况需要通知用户,有的需要用户回应,有的则不需要,例如:* 当保存文件等事件完成,应该会出现一个小的消息,以确认保存成功。* 如果应用程序在后台运行,需要用户的注意,应用程序应该创建一个通知,允许用户在他或她的回应提供便利* 如果应用程序正在执行的...
分类:
移动开发 时间:
2015-07-04 16:40:45
阅读次数:
196
关于 Builder 模式 详述:http://blog.csdn.net/jjwwmlp456/article/details/39890699
先来张图
看到 Android 中 使用了 Builder 模式的地方还是很多的。
使用时 大概如下:
Notification noti = new Notification.Builder(context).b...
分类:
移动开发 时间:
2015-07-03 12:27:42
阅读次数:
214
一.关于推送通知
推送通知,也被叫做远程通知,是在iOS 3.0以后被引入的功能。是当程序没有启动或不在前台运行时,告诉用户有新消息的一种途径,是从外部服务器发送到应用程序上的。一般说来,当要显示消息或下载数据的时候,通知是由远程服务器(程序的提供者)发送,然后通过苹果的推送通知服务(Apple Push Notification Service,简称apns)推送到设备的程序上。...
分类:
移动开发 时间:
2015-07-02 15:53:48
阅读次数:
154