Android系统的常用权限==========================================================================================1.ACCES_NETWORK_STATE允许应用程序获取网络状态信息的权限2.ACCESS_WIFI_STATE允许应用程序获取Wi-Fi网络状态的权限3.BATTERY_STATS允许应用程序获取电池状..
分类:
移动开发 时间:
2015-07-20 17:04:23
阅读次数:
174
要求:1.建立httpd服务器,要求:提供两个基于名称的虚拟主机:(a)www1.stuX.com,页面文件目录为/web/vhosts/www1;错误日志为/var/log/httpd/www1.err,访问日志为/var/log/httpd/www1.access(b)www2.stuX.com,页面文件目录为/web/vhosts/www2;错误日志为/var/log/httpd/www2.e..
分类:
Web程序 时间:
2015-07-20 16:59:41
阅读次数:
135
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ...
分类:
其他好文 时间:
2015-07-20 10:32:13
阅读次数:
142
问题1:
在CENTOS上配了个SAMBA与WINDOW共享文件。
一访问共享目录就”NT_STATUS_ACCESS_DENIED listing \*“ ,找了好久,发现是SELINUX阻挡了。
解决方法:彻底关闭SELIUNX
问题2:
局域网内的共享文件能访问,但是samba服务器上的共享文件不能访问。
解决方法:
1、把sam...
分类:
其他好文 时间:
2015-07-19 15:03:54
阅读次数:
518
2.3 Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node.EXAMPLEInput: the node c from the li...
分类:
其他好文 时间:
2015-07-19 13:20:37
阅读次数:
86
对DMA内存的使用有3种方式:1,一致DMA映射通过dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag)来直接得到一块用于dma的内存,同时得到这一段内存的虚拟地址和总线地址,分别用于CPU和device的访问。
通过这种方式得到的dma内存,开发者不用担心cache的问题,但...
分类:
数据库 时间:
2015-07-19 10:25:13
阅读次数:
183
直接上代码: 关键代码 第一步 /** ?* @author ?lizhe ?* ?*/ public class WxAccessToken { ?? ?private String token; ?? ?private int expiresIn; ?? ?public String getToken() { ?? ??? ...
分类:
微信 时间:
2015-07-18 15:44:59
阅读次数:
256
一、使用hibernate无法连接数据库的问题:ERROR: HHH000231: Schema export unsuccessful(Access denied for user 'root'@'192.168.1.109' (using password: NO)) at org.apache...
分类:
数据库 时间:
2015-07-18 13:52:35
阅读次数:
229
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value...
分类:
其他好文 时间:
2015-07-18 11:05:22
阅读次数:
126
Singleton Pattern
Ensure a class has one instance,and provide a global point of access to it. 确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。
皇帝只有一个
首先我们来想想,如何获取一个对象,一般是通过new来实现,高级的通过反射,但是该如何禁止外部创建对象。
answe...
分类:
其他好文 时间:
2015-07-18 11:02:43
阅读次数:
128