location

Is it possible to change the /resources folder name which is used by h:outputStylesheet and h:outputScript

不羁岁月 提交于 2019-12-02 06:36:53
Is it necessary to give the folder name "resources" when making the reference of a css file and js file in h:outputStylesheet and h:outputScript ? Cause when I am giving the folder name "assets" instead of "resources" these files are not loaded. This is how I am using these tags: <h:head> <h:outputStylesheet name="css/styles.css"/> <h:outputScript name="js/site.js"/> </h:head> And here is my project structure: In the screenshot you can see the folder name is resources. And then it is working. How can I specify a different name? The folder name is fixed as per chapters 2.6.1.1 and 2.6.1.2 of

Android: getfromLocationName() returns size 0 in Address List

 ̄綄美尐妖づ 提交于 2019-12-02 06:24:38
问题 I have a database of locations. When I try to convert them into coordinates so I can place them on a map I get errors. My addresslist of type address has a size zero. I researched the topic. All my manifest permissions are correct. My phone is connected to the internet. I have rebooted my phone. I know there is an google issue and the solutions dont help. The locations are accurate. Please help. Here is error message : android.database.CursorIndexOutOfBoundsException: Index 0 requested, with

navigator.geolocation.getCurrentPosition() when screen is locked

非 Y 不嫁゛ 提交于 2019-12-02 06:17:36
问题 I have an App which constantly polls for location when its in travelling mode. My issue is that once the screen is locked, the App can no longer access the geolocation from the phone. I have managed to find this plugin but it requires I purchase it for the capability to work in Android. http://shop.transistorsoft.com/pages/cordova-background-geolocation-premium Does anyone know if there is a free option that i can use to get location to successfully poll in an Ionic / Cordova application

获取地理位置

有些话、适合烂在心里 提交于 2019-12-02 05:54:16
要添加的权限,多多益善具体哪个我也不知道<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.WRITE_PROFILE" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><uses-permission android:name="android.permission.READ_PHONE_STATE" /><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.CAMERA" /><uses-permission android

Is it possible to change the /resources folder name which is used by h:outputStylesheet and h:outputScript

寵の児 提交于 2019-12-02 05:52:18
问题 Is it necessary to give the folder name "resources" when making the reference of a css file and js file in h:outputStylesheet and h:outputScript ? Cause when I am giving the folder name "assets" instead of "resources" these files are not loaded. This is how I am using these tags: <h:head> <h:outputStylesheet name="css/styles.css"/> <h:outputScript name="js/site.js"/> </h:head> And here is my project structure: In the screenshot you can see the folder name is resources. And then it is working.

Nginx基本属性配置详解(转)

冷暖自知 提交于 2019-12-02 05:27:20
本文转自: https://my.oschina.net/zhangxufeng/blog/3120456 1. Nginx服务的基本配置 1.1 用于调试进程和定位问题的配置项 是否以守护进程的方式运行nginx # 默认on daemon on|off; 是否以master/worker方式工作 # 默认on,指定了是否以master-worker进程的方式运行,如果设置为off,那么所有的请求将只会由master进程处理 master_process on|off; error日志的设置 # 指定了error日志的目录和日志级别,第二个参数用于指定目录,第三个参数用于指定日志级别,总共有:debug、info、notice、warn、error、crit、alert、emerg,这些日志级别中,从左往右优先级依次增大,默认为info error_log logs/error.log error; 是否处理几个特殊的调试点 # 指定了调试点 debug_points stop|abort 仅对指定的客户端输出debug级别的日志 debug_connection IP|CIDR 该参数主要用于events模块中,针对指定的ip或者网段记录debug日志: events { debug_connection 10.224.66.14; debug_connection 10

node解析修改ngix配置文件

荒凉一梦 提交于 2019-12-02 05:25:40
主要是通过nginx-conf这个工具。 git地址: https://github.com/tmont/nginx-conf 具体用法: npm install -S nginx-conf 安装工具 var NginxConfFile = require('nginx-conf').NginxConfFile; // 这个api提供了node读写conf文件的功能 NginxConfFile.create('/etc/nginx.conf', function(err, conf) { if (err) { console.log(err); return; } // 通过_value的方式读取每一个配置的值 console.log(conf.nginx.user._value); //www www console.log(conf.nginx.http.server.listen._value); //one.example.com //模块中有多个子模块,比如server中配置了多个location,通过数组下标的方式访问 console.log(conf.nginx.http.server.location[3].root._value); // /spool/www //修改配置 //create api是同步修改文件的,对于配置的修改和删除会同步反映到磁盘中 conf

Nginx基本属性配置详解

淺唱寂寞╮ 提交于 2019-12-02 05:25:17
1. Nginx服务的基本配置 1.1 用于调试进程和定位问题的配置项 是否以守护进程的方式运行nginx # 默认on daemon on|off; 是否以master/worker方式工作 # 默认on,指定了是否以master-worker进程的方式运行,如果设置为off,那么所有的请求将只会由master进程处理 master_process on|off; error日志的设置 # 指定了error日志的目录和日志级别,第二个参数用于指定目录,第三个参数用于指定日志级别,总共有:debug、info、notice、warn、error、crit、alert、emerg,这些日志级别中,从左往右优先级依次增大,默认为info error_log logs/error.log error; 是否处理几个特殊的调试点 # 指定了调试点 debug_points stop|abort 仅对指定的客户端输出debug级别的日志 debug_connection IP|CIDR 该参数主要用于events模块中,针对指定的ip或者网段记录debug日志: events { debug_connection 10.224.66.14; debug_connection 10.224.57.0/24; } 需要注意的是,在使用该参数时,必须要确保在进行configure时已经加入了 -

Nginx基本属性配置详解

徘徊边缘 提交于 2019-12-02 05:24:20
1. Nginx服务的基本配置 1.1 用于调试进程和定位问题的配置项 是否以守护进程的方式运行nginx # 默认on daemon on|off; 是否以master/worker方式工作 # 默认on,指定了是否以master-worker进程的方式运行,如果设置为off,那么所有的请求将只会由master进程处理 master_process on|off; error日志的设置 # 指定了error日志的目录和日志级别,第二个参数用于指定目录,第三个参数用于指定日志级别,总共有:debug、info、notice、warn、error、crit、alert、emerg,这些日志级别中,从左往右优先级依次增大,默认为info error_log logs/error.log error; 是否处理几个特殊的调试点 # 指定了调试点 debug_points stop|abort 仅对指定的客户端输出debug级别的日志 debug_connection IP|CIDR 该参数主要用于events模块中,针对指定的ip或者网段记录debug日志: events { debug_connection 10.224.66.14; debug_connection 10.224.57.0/24; } 需要注意的是,在使用该参数时,必须要确保在进行configure时已经加入了 -

MySQL 数据表的基本操作

一笑奈何 提交于 2019-12-02 05:17:49
数据表的基本操作 1.主键约束要求主键列的数据唯一,并且不允许为空。主键能够唯一地识别表中的一条记录,可以结合外键来定义不同数据表之间的关系,并且可以加快数据库查询的速度。主键和记录之间的关系如同身份证和人之间的关系。 2.字表的外键必须关联父表的主键,且关联字段的数据类型必须匹配。如果类型不一样。创建子表时,就会出现错误:ERROR 1005(HY000):can't create table 'databases.tablesname'(error:150) 3.非空约束指字段的值不能为空。 4.唯一性约束:要求该列唯一,允许为空,但只能出现一个空值。唯一约束可以确保一列或者几列不出现重复值。 5.unique和primary key 的区别:一个表中可以有多个字段声明为unique,但只能有一个primary key声明:声明为关键字的列不允许为空值,但是声明为unique的字段允许空值null的存在。 【例.1】创建员工表tb_emp1 选择创建表的数据库: USE test_db; 创建tb_emp1表: CREATE TABLE tb_emp1 ( id int(11), name varchar(25), deptId int(11), salary float ); 【例.2】定义数据表tb_emp 2,其主键为id: CREATE TABLE tb_emp2 (