三、注册PMEM设备这里我们除了描述PMEM设备,还将注册一个拥有memory空间和IRQ资源的示例设备example_device。对于example_device,定义如下结构体:static struct resource example_resources[] = {[0] = {.star...
分类:
移动开发 时间:
2014-07-09 19:38:37
阅读次数:
182
Error info:Gen already exists but is not a source folder.Workaround-1:1. Right click project, and select "Properties"2. Select "Java Build Path"3. Ope...
分类:
其他好文 时间:
2014-07-09 19:29:27
阅读次数:
182
1.public class Singleton { private static class SingletonHolder { public static Singleton resource = new Singleton(); public static Si...
分类:
编程语言 时间:
2014-07-09 18:20:20
阅读次数:
190
文件资源访问 1、统一资源访问接口 Resource 2、实现类 FileSystemResource 通过文件系统路径访问 ClassPathResource 通过classpath路径访问 ServletContextResource 相对于web根目录路径访问 3、工具类 ResourceUt...
分类:
编程语言 时间:
2014-07-09 17:11:36
阅读次数:
220
图片放大的思路: 第一、可以通过Matrix对象来变换图像,在选择的时候放大,在失去焦点的时候,缩小到原来的大小。double scale = 1.2;int width = bm.getWidth();int height = bm.getHeight();Log.i("size:", wi...
分类:
移动开发 时间:
2014-07-09 16:35:13
阅读次数:
234
一、权限分类:系统权限:系统规定用户使用数据库的权限。(系统权限是对用户而言)。实体权限:某种权限用户对其它用户的表或视图的存取权限。(是针对表或视图而言的)。二、系统权限管理:1、系统权限分类:DBA: 拥有全部特权,是系统最高权限,只有DBA才可以创建数据库结构。RESOURCE:拥有Resou...
分类:
数据库 时间:
2014-07-09 15:38:00
阅读次数:
200
1.1. Roles
角色
OAuth defines four roles:
OAuth 设定了四个角色
resource owner
资源拥有者
An entity capable of granting access to a protected resource.
When the resource owner...
分类:
其他好文 时间:
2014-07-08 14:29:22
阅读次数:
227
1.config.properties文件写不进中文,写进去都变成了unicode,解决办法是右键该文件——Properties——Resource——Text file encoding ,选other,我将other改为了UTF-8,这样可以写进去中文,但是读取时又变成乱码了。
2,解决读取乱码:
String content = new String(PropertiesConfig.getProperty("mail.content").getBytes("ISO8859-1"), "utf-8"...
分类:
编程语言 时间:
2014-07-08 13:23:03
阅读次数:
160
主要关注红色标记语句即可。
The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement.
Including files is ...
分类:
Web程序 时间:
2014-07-08 12:53:30
阅读次数:
213
MFC工程中,除了系统自动生成的一些对话框之外,还需要根据自己的需求,添加新的对话框。这里总结下自己最近使用的方法。 首先,找到Resource View中自己新建的工程,然后右键,选择Add Class,然后弹出的对话框中对新增的类进行设置,在Base Class需要选择CDialog,然后输入新...
分类:
其他好文 时间:
2014-07-08 11:34:58
阅读次数:
136