param($a,$b )#region 关键代码:强迫以管理员权限运行$currentWi =[Security.Principal.WindowsIdentity]::GetCurrent()$currentWp =[Security.Principal.WindowsPrincipal]$cu...
分类:
其他好文 时间:
2014-06-28 10:32:29
阅读次数:
797
1. 使用最新版本的jQueryjQuery的版本更新很快,你应该总是使用最新的版本。因为新版本会改进性能,还有很多新功能。下面就来看看,不同版本的jQuery性能差异有多大。这里是三条最常见的jQuery选择语句: $('.elem') $('.elem', context) context...
分类:
Web程序 时间:
2014-06-25 23:50:51
阅读次数:
301
1. 只返回404 Status Code,自定义404页面在IIS的Error Pages中配置。2. 设置Response.SuppressContent为true,以防有响应内容被发给客户端。3. 以前喜欢用霸道的Response.End()强制中止当前线程,而用Context.Applica...
分类:
Web程序 时间:
2014-06-25 23:28:59
阅读次数:
215
ContextImpl是对Context的一个具体实现类,关键方法如下 1 static class ServiceFetcher { 2 int mContextCacheIndex = -1; 3 /** 4 * Main entrypoint;...
分类:
其他好文 时间:
2014-06-25 22:17:41
阅读次数:
505
/** * 得到系统内存信息的工具类 * @author zwenkai */public class SystemInfoUtils { /** * 得到运行的进程总个数 * * @param context * @return 运行进程个数 */ public static int getRun...
分类:
其他好文 时间:
2014-06-24 12:31:36
阅读次数:
172
1.注解开发无需导入全新的jar包
2.使用注解开发必须开启命名空间context
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/...
分类:
编程语言 时间:
2014-06-22 16:08:58
阅读次数:
164
spring.xml新加入 xmlns:context="http://www.springframework.org/schema/context" http://www.springframework.org/schema/context http://www.springf...
分类:
编程语言 时间:
2014-06-22 13:22:33
阅读次数:
244
LINUX平时工作中用到的常用命令:scp是有Security的文件copy,基于ssh登录。操作起来比较方便,比如要把当前一个文件copy到远程另外一台主机上,可以如下命令。scp/home/1.gifroot@172.19.2.75:/home/root然后会提示你输入另外那台172.19.2.75主机的root用户的登录密码,接着就..
分类:
系统相关 时间:
2014-06-22 10:23:46
阅读次数:
211
我们都知道linux中创建新进程是系统调用fork,但实际上fork是clone功能的一部分,clone和fork的主要区别是传递了几个参数。clone隶属于libc,它的意义就是实现线程。
看一下clone函数:...
分类:
其他好文 时间:
2014-06-22 09:43:31
阅读次数:
252
今天在做GCM离线推送时需要判断APP是否在线如果在线则不推送,否则推送离线消息这里就用到了APP是否在线这个技术从网上找了个方法,适当的修改了一下privatebooleanisRunningForeground(Contextcontext){ ActivityManageram=(ActivityManager)context.getSystemService(Context..
分类:
移动开发 时间:
2014-06-21 19:44:57
阅读次数:
180