码迷,mamicode.com
首页 >  
搜索关键字:security context    ( 17701个结果
控制方法只有相应权限才可执行
有时我们需要在调用一个方法前加判断,比如当前用户是否有权限来调用此方法。常规做法在NET中是自己做一个Attribute来完成,不过在4.5中有System.Security.Permissions.PrincipalPermissionAttribute可以协助我们,用的是System.Secur...
分类:其他好文   时间:2014-06-23 06:15:19    阅读次数:189
Win32中GDI+应用(三)---Graphics类
在我理解看来,Graphics是一个device context和你的drawing conetent之间的一个中介。它存储了device context的相关属性,以及drawing content的属性。这样,它就能用自己的方法把drawing content“映射”到device conten...
分类:Windows程序   时间:2014-06-23 00:46:06    阅读次数:460
Win32中GDI+应用(五)--GDI与GDI+编程模型的区别
在GDI里面,你要想开始自己的绘图工作,必须先获取一个device context handle,然后把这个handle作为绘图复方法的一个参数,才能完成任务。同时,device context handle是同一定的绘图属性绑定在一起的,诸如画笔、话刷等等,你必须在画线之前创建自己的画笔,然后使用...
分类:Windows程序   时间:2014-06-23 00:39:25    阅读次数:399
Android收起虚拟键盘
关于收起虚拟键盘,网上能找到的大多是这个: InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText.getWindowToken(), 0) ; 不过这有个问题,比如我们在一个页面中...
分类:移动开发   时间:2014-06-22 21:59:42    阅读次数:250
Preemption Context Switches 和 Synchronization Context Switches
Preemption Context Switches度量的是操作系统任务调度器将处理器中的一个正在运行的线程切换为另一个更高优先级的线程的次数,即发生抢占的次数。 Synchronization context switches度量的是由于显式调用线程同步API而发生线程切换的次数,如给多线程共享的变量加锁,多线程共同去修改,有些线程要阻塞在lock,直至占用锁的线程释放lock,这个度量反映...
分类:其他好文   时间:2014-06-22 19:40:21    阅读次数:341
android图片等比例缩放 填充屏幕
用IamgeView的 android:scaleType  设置属性的时候  填充屏幕出现的各种问题 /** * 将图片等比例缩放 setAdjustViewBounds setMaxWidth setMaxWidth必须同时设置才有效 * * @param context * @param view * 父容器 * @param image ...
分类:移动开发   时间:2014-06-22 18:39:03    阅读次数:279
微软最新安全通报2974294
??大家好,今天微软最新发布一篇安全通报2974294,介绍了一个微软恶意软件防护引擎(Malware Protection Engine)中的一个拒绝服务漏洞,这个漏洞主要存在于微软的安全防护软件中,其中包括了Forefront Client Security, Forefront EndPoint Protection 2010, System Center 2012 EndPoint Pro...
分类:其他好文   时间:2014-06-22 16:50:28    阅读次数:151
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android
在写自定义的view时,有时会报以下错误: Caused by: java.lang.NoSuchMethodException: [class android.content.Context, interface android.util.AttributeSet]          android:id="@id/viewpage_container"...
分类:移动开发   时间:2014-06-22 15:46:23    阅读次数:608
手动为Android 4.x 手机添加自己的根证书(CA 证书)
首先看Android 4.x 系统的证书存放位置: AOSP Android系统中CA证书文件的位置在:/ system/etc/security/cacerts/一系列的以数字命名的.0文件 方法一: Android 4.0 已经支持用户安装根证书了,只需要将根证书放到sdcard根目录,然后到设置(Settings) – 安全(Security) – 从存储设备安装(In...
分类:移动开发   时间:2014-06-21 22:26:00    阅读次数:405
[转] SSL/TLS Strong Encryption: An Introduction
As an introduction this chapter is aimed at readers who are familiar with the Web, HTTP, and Apache, but are not security experts. It is not intended ...
分类:其他好文   时间:2014-06-21 15:08:28    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!