1在context里定义通知管理器(NotificationManager)NotificationManager notificationManager = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE);2...
分类:
移动开发 时间:
2014-07-11 18:54:49
阅读次数:
168
/** * 定时器工厂 * @param {Number} interval [定时器间隔] * @param {Function} callback [定时执行的方法] * @param {Object} context [定时方法的作用域] * @param {Array} ...
分类:
其他好文 时间:
2014-07-11 11:17:25
阅读次数:
273
核心模块ngx_events_module是一个专门用于管理事件模块的模块。它的实现很简单,下面是该模块的定义:
ngx_module_t ngx_events_module = {
NGX_MODULE_V1,
&ngx_events_module_ctx, /* module context */
ngx_events_comman...
分类:
其他好文 时间:
2014-07-11 08:08:06
阅读次数:
221
package com.lengxiaocai.myutil.screentool;
import android.content.Context;
/**
*
* @ClassName: ScreenTool
*
* @Description: 屏幕像素检测
*
* @author yazhizhao
*
* @date 2014-5-6 上午11:47:07
*/...
分类:
移动开发 时间:
2014-07-10 23:40:58
阅读次数:
340
import android.content.Context;
import android.os.AsyncTask;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import an...
分类:
移动开发 时间:
2014-07-10 20:54:18
阅读次数:
259
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;...
1 uiview动画
[UIView beginAnimations:@"Curl"context:nil];//动画开始
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTran...
分类:
其他好文 时间:
2014-07-10 19:32:01
阅读次数:
218
利用pam认证模块锁定多次登陆失败的用户pam模块存放在/lib/security/pam_*****.so编辑/etc/pam.d/sshd添加以下内容authrequiredpam_tally2.sodeny=5lock_time=60当用户通过ssh尝试登陆系统密码输错5次,系统就锁定该账户60S验证:手动解除锁定命令pam_tally2--reset-u用户
分类:
系统相关 时间:
2014-07-10 18:55:47
阅读次数:
500
获取widget可以AppWidgetManager来获取List<AppWidgetProviderInfo>widget=AppWidgetManager.getInstance(Context(上下文)).getInstalledProviders();得到所有AppWidgetProviderInfofor(inti=0;i<widget.size();i++){AppWidgetProviderInfoinfo=widget.get(i);Stringp..
分类:
移动开发 时间:
2014-07-10 18:43:36
阅读次数:
215
日志的分离1)初学syslogvoidopenlog(constchar*ident,intoption,intfacility);voidsyslog(intpriority,constchar*format,...);voidcloselog(void);facilityThefacilityargumentisusedtospecifywhattypeofprogramisloggingthemessage.Thisletstheconfigurationfilespecifythatm..
分类:
其他好文 时间:
2014-07-10 18:03:51
阅读次数:
386