小白搞appium,遇到启动不了activity的问题: 查找解决方案说是跟AndroidManifest.xml有关系,参考:https://github.com/appium/appium/issues/4313 之后打开AndroidManifest.xml,在主activity和intent ...
分类:
移动开发 时间:
2016-05-19 14:50:27
阅读次数:
6584
4.1 类(Classes)
类(class)是一种将数据和函数组织在同一个结构里的逻辑方法。定义类的关键字为class ,其功能与C语言中的struct类似,不同之处是class可以包含函数,而不像struct只能包含数据元素。
类定义的形式是:
class class_name {
permission_label_1:
member1...
分类:
编程语言 时间:
2016-05-19 12:00:36
阅读次数:
169
Linux非root用户如何使用80端口启动程序 默认情况下Linux的1024以下端口是只有root用户才有权限占用,我们的tomcat,apache,nginx等等程序如果想要用普通用户来占用80端口的话就会抛出java.net.BindException: Permission denied: ...
分类:
其他好文 时间:
2016-05-19 10:34:09
阅读次数:
139
# mysql -u root mysqlERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 解决:[root@ZHT02 ~]# /etc/init.d/mysql stopShutt ...
分类:
数据库 时间:
2016-05-18 14:33:36
阅读次数:
203
遇到nfs mount的问题,以前从未遇到过,问题出的很奇怪,现象是 mount: 10.1.10.22:/cicro failed, reason given by server: Permission denied 系统权限根本没问题,最后检查到/etc/hosts文件,去掉/etc/hosts ...
分类:
其他好文 时间:
2016-05-18 12:37:02
阅读次数:
179
解决方法: Update the permission of your /tmp/hive HDFS directory using the following command hadoop fs -chmod 777 /tmp/hive If so can you remove /tmp/hive ...
分类:
其他好文 时间:
2016-05-18 10:31:38
阅读次数:
166
最近操作mysql 5.6, 出现了以下问题。 分享,感谢原著: 案例环境: 操作系统 :Red Hat Enterprise Linux Server release 5.7 (Tikanga) 64 bit 数据库版本 : Mysql 5.6.19 64 bit 案例介绍: 今 天开始学习mys ...
分类:
数据库 时间:
2016-05-18 10:26:36
阅读次数:
222
35.内容提供者:ContentResolver 用内容提供者来获取联系人信息 35-1:权限 <!-- 对联系人的读、写权限 --> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permissi ...
分类:
移动开发 时间:
2016-05-15 13:53:03
阅读次数:
245
展示一下安装好的效果图 首先找到安装目录下的路径【wamp\bin\apache\Apache2.2.21\conf\】 § 找到httpd.conf,用记事本打开httpd.conf,然后将 1. <Directory /> 2. Options FollowSymLinks 3. AllowOv ...
分类:
数据库 时间:
2016-05-14 18:24:58
阅读次数:
203
First edit the file /www/wdlinux/apache/conf/vhost/00000.default.conf and add the additional line to the directory settings: If you wanted to allow ac ...
分类:
数据库 时间:
2016-05-13 20:44:59
阅读次数:
460