FAQ Database Discussion Community


errors in database and requeste not allowed using codeigniter

database,.htaccess,codeigniter,config
I am using codeigniter and I was having a problem in .htaccess file then when the site opened an error appear: A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346 I searched for the solution and I get that:...

What does SGE mean by “positive submission priority requires operator privileges”?

config,sungridengine
I am relatively new to SGE and am encountering this error when I try to run jobs: "System error message: Unable to run job: job rejected: positive submission priority requires operator privileges." I have added several users, created an access list (users) and added them to it, then set user_lists...

Tomcat configuration in Eclipse

eclipse,tomcat,config
I'm using Eclipse Luna with Tomcat 8 and am confused by the different locations of config files. I've installed Tomcat on my local machine and configured Tomcat in Eclipse as follows: So there are 4 directories involved a) catalina home: C:\Program Files\AppServers\Tomcat8 b) catalina base: C:\Users\xxx\projectname\Tomcat c) the configuration-path within...

Keep config file secure using github and Elastic Beanstalk?

amazon-web-services,github,passwords,config,elastic-beanstalk
I am using github (public) to keep track of my web app and about to deploy it to Elastic Beanstalk. Is there a good way to keep my config file secure which has RDS username/password? I have to add the file to git in order to push it to Elastic...

Spark configuration, what is the difference of SPARK_DRIVER_MEMORY, SPARK_EXECUTOR_MEMORY, and SPARK_WORKER_MEMORY?

linux,memory,apache-spark,environment-variables,config
I did my work, read the documentation at https://spark.apache.org/docs/latest/configuration.html in spark-folder/conf/spark-env.sh: SPARK_DRIVER_MEMORY, Memory for Master (e.g. 1000M, 2G) (Default: 512 Mb) SPARK_EXECUTOR_MEMORY, Memory per Worker (e.g. 1000M, 2G) (Default: 1G) SPARK_WORKER_MEMORY, to set how much total memory workers have to give executors (e.g. 1000m, 2g) what is the relationship of...

WCF Configuration error

c#,wcf,config
There are several similar posts out there on the web, but none of them seem to work for me! I have a WCF webservice which I can't consume with my C# project, as it gives me this error: There was an error downloading 'http://localhost:1940/MyService.svc/_vti_bin/Listdata.svc/$metadata' the request failed with HTTP status...

Trouble reading config file with perl's Config::Simple module and die

arrays,perl,config,die
I'm attempting to read a simple configuration file in perl with the Config::Simple module. One of the lines in this configuration file is an array, which looks like this: # EXTENSIONS TO TRANSFER extensions = "\.mpg\$","\.txt\$" I can successfully read this array (and verify the data) like this: @ext =...

Java (Bukkit) how to acces to the Config with out this?

java,config,bukkit
I have two classes "main" for commands and more and "events" for events and now I want to make that the event "PlayerdeathEvent" teleport me to a point and the cordinates from the point are saved in a config now i test this: I made it in the event class...

Where to store globally accessible variables using Dancer

config,dancer
I'd like store variables in a configuration file so that I can just set them in one place and access them whenever needed. Where is the place to put such variables in a Dancer app, and how do I access them?...

Nginx config rewrite rule combination

.htaccess,url,nginx,rewrite,config
So I have these 2 rules for url rewrites. location ~ /details { rewrite ^/details/(.*)/(.*)/(.*)/(.*)_(.*).html$ /site/$4.$5.html permanent; rewrite ^/details/(.*)/(.*)/(.*)/(.*)_(.*)_(.*).html$ /site/$4.$5.$6.html permanent; } But for some reason the first one on its own works just fine but the second one will not pick up. Is there a way I could combine...

Provider dependancy not working in Config AngularJS

angularjs,config
My code is given below. The below code shows dependancy error when executes following code. Any help would be great. Cookies dependancies also required... Error is Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.15/$injector/modulerr?p0=achieverpayroll&p1…A%2F%2Flocalhost%3A8080%2Fachieverpayroll%2Fjs%2Fangular.min.js%3A17%3A381) Code app.js (function(){ var app=angular.module('achieverpayroll',['ngRoute']); app.provider('loginChek',function(){ this.logFn=function(){ console.log('test'); }; });...

Solr custom UpdateRequestProcessorFactory fails with “Error Instantiating UpdateRequestProcessorFactory”

java,solr,lucene,config,solrcloud
I have a custom class extending UpdateRequestProcessorFactory doing some work on a document when it gets added to the index. This was working fine in v4.10.3 in standalone Solr. I moved to SolrCloud v5.2 and it throws this error when adding the Collection (node): ERROR - 2015-06-14 12:25:11.071; [ docs_shard1_replica1]...

tutorial create and use a configuration file manager [on hold]

c#,wpf,config,configurationmanager
Hello I am novice and I wish to use a configuration manager file in WPF to insert variables there that I use in my method would have an example of file and of how we use it? Thank you early for your help...

Load default database in Codeigniter

php,database,codeigniter,config
I am using a helper function to switch to a user database in some of my model constructors like so: public function __construct(){ parent::__construct(); $this->load->helper('general'); switch_to_user_db(); } My general_helper does this: function switch_to_user_db($userID = NULL){ $CI =& get_instance(); $userID = ($userID !== NULL) ? $userID : $CI->user->ID; $dbParams = array(...

How do I store a config param as element's body?

c#,.net,config
What I'm trying to achieve is reading an app.config param that looks like this: <SomeConfig> <SomeParam>SomeText</SomeParam> </SomeConfig> Code property declaration is like this [ConfigurationProperty("SomeParam")] public string SomeParam { get { return (string)this["SomeParam"]; } set { this["SomeParam"] = value; } } However, I'm getting this error message on app start: "Property...

scala-activerecord: how to pass custom configuration to Tables.initialize?

scala,activerecord,config,database-schema,typesafe
I want to create tables with scala-activerecord: Tables.initialize(ConfigFactory.load(env)) This does not work, because initialize accepts only Map[String, Any]. My second try was: Tables.initialize(ConfigFactory.load(env).root()) where root() returns ConfigObject: public interface ConfigObject extends ConfigValue, Map<String, ConfigValue> I still get: Error:(15, 49) type mismatch; found : com.typesafe.config.ConfigObject required: Map[String,Any] Tables.initialize(ConfigFactory.load(env).root()) ^ I don't...

Modifying key in config file c#

c#,file,config
I have a program that reads app.config and will update the config file programatically. For example: <appSettings> <add key = "card" value = "rare" /> <add key = "game" value = "poker" /> </appSettings> After updating the config file, it should become like this: <appSettings> <add key = "drink" value...

Read unknown data from yml configuration file

java,yaml,config,bukkit
I'm writing a bukkit plugin which should read data from a yml configuration file made by users like shown in the example below. I've searched for that before with no result, in fact I don't really know what I should search for. Example config: maps: 01: name: world displayname: Plains...

Where can I store a cloud config file?

config,coreos
I'm installing CoreOS on a home computer (for fun), now every time I re-install the OS I have to manually create the a cloud-config.yaml file to pass to the install script. Reading the docs on the CoreOS site it states there is a way to store these files in a...

Play - Execute an sql statement without writing the database configuration in application.conf

mysql,scala,playframework,database-connection,config
I am writing a scala application using the Playframework. I don't want to write the database configuration in the application.conf file. Instead I have a function similar to the one given below. I want to send the configuration parameters as arguments of a function. Then I want create a connection...

How do I know if my Koala global config is working?

ruby-on-rails,facebook,config,koala
I've tried putting an API config property in both config/application.rb and config/initializers/koala.rb Koala.config.api_version = "v2.2" How can i tell if it's using v2.2? the POST url isn't giving me any clues and the logs are giving any post params (i'm using put_connections so I don't think i can control that)...

When you reference library how to copy to TargetDir not only .dll but also .config

c#,reference,config,solution,class-library
I have an additional config file for my library. I use it to config log4net. So library can configure log4net. I add reference to the library to another project in my solution and i need to make VS copy not only .dll file, but also .config file. How can i...

How to create multiple configuration items of different types

c#,.net,config
Is it possible to have list of configuration items of different types as shown here below? <exceptions> <exception name ="exception1" host="myhostname"> <block user="joe"/> <block user="peter"/> <allow user="admin"/> </exception> <exception name ="exception2" host="anotherhostname"> <block user="sue"/> <block user="danny"/> <allow user="johnny"/> </exception> </exceptions> I’m trying to define a configuration that let me block...

How to make config file in golang elegantly?

go,redis,config
I'm a newbie with go lang, I just want to write a program to manager my redis instances so that i can create a redis with specific config file, but I don't know how to create the config file for redis instances elegantly. I found "text/template" before, is that a...

Cannot use gatling conf values in scala class.

scala,ssl,config,gatling
I have a gatling project where I set up cert locations using gatling.conf for 2-way ssl connection. I need to use these certificates in a helper function in the same project. I am unable to specify conf variables gatling.http.ssl.trustStore.file and gatling.http.ssl.keyStore.file in my scala class as it errors with the...

Can I track the use of ConfigurationManager settings

c#,.net,settings,config,appsettings
I am trying to clean up the web.config in multiple projects, but am worried that I may remove an appsetting/connectionstring that is being used somewhere. For example, I want to know if ConfigurationManager.AppSettings["MySetting"]) is used. I can of course do a global find for ConfigurationManager or Appsettings, but that doesn't...

Sentry ignores --config path, but only for “start” command

django,config,sentry
I've installed Sentry into a virtualenv located at /www/sentry/ and I have a config file /www/sentry/sentry.conf.py. I am able to run the following commands successfully: $ sentry --config=/www/sentry/sentry.conf.py celery worker -B $ sentry --config=/www/sentry/sentry.conf.py upgrade I can even run sentry --config=/www/sentry/sentry.conf.py shell and then once in the Django shell, check...

Checking in configuration files with sensitive information into code repos

ruby-on-rails,git,config
What is the best strategy in regards to checking in sensitive information into git? For example, database connection credentials, api keys, etc. For rails app, is it best to add environment files to .gitignore? Thanks....

Notepad++ - is there a way to control the word separators [duplicate]

configuration,notepad++,config
This question already has an answer here: notepad++ select hyphenated text 4 answers In Notepad++ (beloved) I could not helped but notice that the ctrl+left (SCI_WORDRIGHT) would jump on the next - signs. Example: WORD-ID-1 (is actually 3 words, WORD, ID , 1) vs. WORD_ID_1 is one word. I...

spring cloud config client not loading configuration from config server

spring,cloud,config
I am following this link: http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_client_side_usage I tested this again and again and not seeing Spring cloud client is loading configuration from cloud server, please help to see where is the error: POM: <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId>...

How do I organize input global variables?

c++,global-variables,config
In some spare time, I'm working on some physical simulation code so I a) have a framework to build off of in the future and b) keep myself fresh with C++. I have several values (speed of light, box size, number of particles, things like that) that very nearly every...

How to specify config file with sbt start in Play application?

playframework,sbt,config
I have what I assume to be a common use case for developing and deploying a Play 2.3.6 application: In development, I run sbt run and the application uses application.conf as expected. In production I would like to use sbt start and specify the config file, production.conf, which resides in...

Pythonic way to set module-wide settings from external file

python,config,configuration-files
Some background (not mandatory, but might be nice to know): I am writing a Python command-line module which is a wrapper around latexdiff. It basically replaces all \cite{ref1, ref2, ...} commands in LaTeX files with written-out and properly formatted references before passing the files to latexdiff, so that latexdiff will...

Laravel 5 - Get Package Config

php,laravel,config,laravel-5
Normally we can get config via something like this: $value = Config::get('app.timezone'); If want to get the config in the package, we can do something like this: $value = Config::get('package::configfile') How can I link the config file in my package so that I can use it that way?...

Read XML Config into PowerShell array

arrays,xml,powershell,config
I'm trying to create a PS script that will read multiple file directories from an XML file and then depending on the filetype and date modified > 10 Days I want to delete the files. I'm not sure how I should be accessing the config value so that i can...

The matching wildcard is strict, but no declaration can be found for element 'context:component-scan' error in dispatcher servlet

java,spring,maven,config
When I am trying to view the webpage on the browser I receive this error. stacktrace: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from ServletContext resource [/WEB-INF/DefaultServlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 71; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element...

Safely merging multiple MySQL users to %

mysql,linux,database,config
Was recently managing my MySQL (5.5.41) on Linux machine and decided to remove/merge MySQL initially created root users. Quoting MySQL 5.5 documentation (also nice article here) On Unix, each root account permits connections from the local host. Connections can be made by specifying the host name localhost, the IP address...

Existing SOLR collection not picking up Zookeeper schema change

solr,schema,config,zookeeper,solrcloud
I have a local solr cloud cluster running on three separate nodes: 33.33.3[3-5]:8080 This cluster is managed by a local 3 node zookeeper ensemble that lives at: 33.33.3[0-2]:2181 I am trying to experiment with schema modifications - however, I'm having trouble getting SOLR to pickup the new changes. Here is...

Why does git difftool use git diff instead?

git,diff,config,vimdiff,meld
I want git diff to be a quick command line solution to see the difference between two files, and then I want git difftool to launch meld for a more graphical view of the file differences. Currently, git diff does exactly what I want it to, however when I run...

Updating config xml file and save it using powershell

xml,powershell,config
I need to update this config file in such a way that, all the values of 'newVersion' needs to be updated to a single value. <configuration> <runtime> <assemblyBinding> <dependentAssembly> <assemblyIdentity name="A" publicKeyToken="5d861ad8ad8cd06f" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-65534.65534.65534.65534" newVersion="4.0.0.103" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="B" publicKeyToken="ae714df8cd90bc8f" culture="neutral" />...

How does ASP.NET compile config files, such as web.config or machine.config?

asp.net,web-config,config
In reading this question, I asked in one of the answers the following: This answer implies that ASP.NET reads web.config and other config files from the top, ie: top-down. I thought config files were read as a "single instance" meaning that the compiler first parses the config file for accuracy...

disabling CONFIG_NET_DMA

linux,linux-device-driver,config,dma
I'm facing the exact problem mentioned in the following thread :- Using DMA API in linux kernel but channel is never available I'm not able to see any DMA channel in /sys/class/dma. The solution for this has been suggested as to disable the CONFIG_NET_DMA. But can you guys tell me...

Passing MySQL client config to “rails db”

mysql,ruby-on-rails,database,config,my.cnf
I'm wondering how to pass MySQL client config to the "rails db" command, ie config options that would normally be specified on the "mysql" command line as flags or in my.cnf. Specifically: I want to set a flag, sigint-ignore (because accidental ctrl-c exits are all too easy) I want to...

How can I save a user specifig config in a node module?

javascript,node.js,command-line-interface,config
I am trying to build a CLI with node (using commander.js) and I would like to save user specific configuration, so that a user only has to enter it on the first usage. How would I do this?

Is there a difference between Phongap config.xml and Cordova config.xml?

android,cordova,config
As I'm working on my Phonegap app, I've noticed some differences between the config for Adobe online build and cordova config (local). Cordova: <preference name="EnableViewportScale" value="false"/> Adobe Phonegap: <preference name="phonegap-version" value="3.5.0" /> Phonegap uses dashes and Cordova does not. Do they mix? Can I use dashes for local builds and...

How in Grails override config variable in external config file so that variables dependant on that variable are updated too?

grails,groovy,config,lazy-evaluation
I have an external and internal config in my grails application: Config.groovy root = "/home/baseConf" test { dir = root + "/testDir" } External.groovy root = "/home/externalConf" Inside controller i have: println "${grailsApplication.config.root}" println "${grailsApplication.config.test.dir}" What is printed: /home/externalConf /home/baseConf/testDir What I want to be printed: /home/externalConf /home/externalConf/testDir What should...

javascript window.addEventListener, overwritten the config of first element

javascript,override,config,addeventlistener
My apology, but really I don't know how to fix this code, or even how to search a fixed. the problem is when I re-declared the function with own config value it overwrites the config of first declared. Any help please, it would help me a lot, please and thanks...

Constants and properties in java

java,configuration,constants,config,properties-file
Java best practices recommends read properties as constants. So, what do you think is the best approach to reach it? My approach is: A Configuration class to read the properties file only one time (singleton pattern) and use this class to read properties when needed as constants. And a Constants...

Spring boot: configure it to find the webapp folder

spring,config
By default, Spring Boot looks in my src/main/webapp folder to find my html files. Where can I change the settings for Spring Boot if I use another folder to put the html files? Later, the files will be wrapped in jars for deployment. Are there other things I need to...

Importing config with parseconfig in ruby

ruby,return-value,config
I have a .publicancreators.cfg with that content: # Global name = Sascha Manns email_private = [email protected] Then i have defined a method: def self.config config = ParseConfig.new(File.join(File.dirname(__FILE__), '.publicancreators.cfg')) name = config['name'] email_private = config['email_private'] return %w(name email) end For using that i'm running inside my main program: a, b =...

How to replace node in sharded replica set?

mongodb,config,sharding,replicaset
I got sharded mongodb setup with two replica sets: mongos> db.runCommand( { listShards : 1 } ) { "shards" : [ { "_id" : "rs01", "host" : "rs01/10.133.250.140:27017,10.133.250.154:27017" }, { "_id" : "rs02", "host" : "rs02/10.133.242.7:27017,10.133.242.8:27017" } ], "ok" : 1 } Node 10.133.250.140 just went down, and I replaced...

Devise Token Auth error: Devise.secret_key was not set

ruby-on-rails,ruby,devise,token,config
I am currently using the Devise Token Auth (https://github.com/lynndylanhurley/devise_token_auth) gem and have it working well in development. However, in my production environment, when I run rake db:migrate, I get the following error: rake aborted! Devise.secret_key was not set. Please add the following to your Devise initializer: config.secret_key = 'my secret...

Rendering Error with Devise and Mobylette

ruby-on-rails,mobile,devise,config,renderer
I am using Mobylette with Devise on my Rails 4 app. When I try to sign up, sign in, or reset my password on my mobile device I get this error: ActionController::MissingRenderer (No renderer defined for format: mobile) Has anyone else had this issue? I've tried setting up a fallback...

tmux : config files are not used

config,tmux
I use tmux (tmux 1.8) from Ubuntu 14.04. I wanted to configure it a bit via ~/.tmux.conf. But whatever I set inside this file my tmux session looks the same. Then I tried a fresh new /etc/tmux.conf but I still get the same display. It seems that my config is...

Zend Cache Static directory configuration in Zend Framework 1.11

caching,zend-framework,config
How can I configure temporary directory for Zend Cache (Zend Cache Static)? Now it tries to save the files to / and I get the open_basedir restriction in effect. I use Zend Application with application.ini file config. ZF v 1.11 Maybe I need to set the default tmp dir somewhere...

Ansible - Switch config file in task

nginx,config,ansible
So I'm basically trying to load the config files through an task so in the first part of the task it would use the configuration variables for domain 1 for example with the nginx vhost file and the second part it would use the configuration variables for domain 2 which...

PHP global config files

php,config,global
i have a config.php file that contains : <?php // Config File return array( //database connections 'db_type' = 'mysql'; 'db_host' = 'localhost'; 'db_user' = 'user'; 'db_pass' = 'pass'; 'db_name' = 'name'; ); then i call that in my init file (i've tried it with and without the GLOBAL) if (file_exists(ROOT...

Git global core.fileMode false overriden locally on clone

git,config
Reading this, I was able to configure both globally and locally my fileMode config to false. However, when I git clone, git keeps initializing the projects with local config forced to fileMode true, so that it overrides my global false. As a consequence I have, for every project, to either...

Parse (the platform) maximum config parameters

android,ios,parse.com,config
I am designing an app that will make extensive use of the Parse Config parameters as a way to A/B test code changes without having to resubmit the app to the App/Play Stores. Because Parse offers Objects for their parameters, I will be storing large data sets (like monster spawn...

NGNIX - look in multiple directories for a .php file and then excecute it

php,http,nginx,configuration,config
I have .php files in multiple directories (/jobs/marketing/, /jobs/content/ etc) that need to map cleanly to /jobs/name-of-file.php. For example hitting the url: /jobs/digital-marketing needs to map to: /jobs/marketing/digital-marketing.php It's safe to assume the file name of each php file is unique across directories. my current nginx setup is the following:...

Passing environment variables through jar file which app uses

jar,environment-variables,docker,config
I am currently trying out on the docker link between my app and db containers. I've checked on my app container and environment variables are automatically set when I link the containers together. What I want to do is for my config file, which is packaged into a jar file,...

Edit referenced project config without rebuilding

java,maven,build,config
My application has 2 projects: Web and DAO. In DAO project I have a config file that contains DB connection string. The DAO project is packaged as jar and referenced by the Web project. The Web project is packaged as war. I built these 2 projects with maven: mvn clean...

phonegap icon not working on iPhone

ios,cordova,phonegap-plugins,config,iconv
I am creating a phonegap app... I see the app icon in the simulator and then when i put it on my actual iPhone, I see the PG Build App icon.. My ipa is named PG Build App. How do I get the app icon to change on my actual...

Codeigniter htaccess and configuration when uploading website to server

.htaccess,codeigniter,server,config
I have a server and I made a website using Codeigniter. I used the wamp server to do my project. now I want to upload it to the server I have so I need to change the configurations and the htaccess file. but I don't know what to edit in...

How can I start a screen session using a specific config file?

bash,screen,config
I would like to be able to start a screen session using a certain config file. I know that I can use -c and then the file path to the config file but if I do that, then the sh script I am using does not work. You can see...

Where is jenkins config.xml? And why is this error appearing?

jenkins,openshift,config,startup
These two parts are together because I think they're related to each other. I'm running Jenkins' latest LTS war file (v1.596.2) directly from the command line. I'm using an Openshift DIY cartridge to do this. I have set my "JENKINS_HOME" environment variable to "$OPENSHIFT_DATA_DIR/jenkins". export JENKINS_HOME=$OPENSHIFT_DATA_DIR/jenkins Part 1: where is...

alfresco selectone (dropdown list) not work

eclipse,forms,share,config,alfresco
I did not correctly displayed DropDown List in Alfresco Share. I did everything as shown in the video (Alfresco Summit 2013 ), but after deployment from Eclipse is obtained as in the image below. Prompt please who knows the solution. Thank you! Image one Image two...

app naming in the config file Rails 4

ruby-on-rails,ruby-on-rails-4,config
I keep seeing two different config file naming conventions. One with an app name explicitly stated and another without (the default). SomeApp::Application.configure do SomeApp::Application.config.assets.precompile += %w( someManifest.css.scss ) but the default is this Rails.application.configure do Rails.application.config.assets.precompile += %w( someManifest.css.scss ) Is there a difference? The default seems to work...so why...

Invalid command 'VirtualDocumentRoot'

php,apache2,config
I tried to configure my virtual PHP Devserver to use a part of the domain to serve different Directory's depending on the domain the request comes from... I guess that apache's missing the Virtual alias Module. I just can't figure out how i can check if it is there and...

Unable to retrieve a property from oozie.action.conf.xml

java,hadoop,action,config,oozie
I am trying to access a property that is set through oozie java action configuration but I am not getting the value I was looking for, wondering if I can get any help on this? My workflow ........... <action name="ref-record-load"> <java> <configuration> <property> <name>oozie.launcher.mapred.child.java.opts</name> <value>-Xmx4g -XX:MaxPermSize=256m</value> </property> <property> <name>load.type</name> <value>full</value>...

config.rb http images path only gives one slash?

image,sass,config
I'm particularly new with SASS for developing a Wordpress site. Problem occured when I need to create a http:// path using config.rb following settings: http_path = "/" css_dir = '/' sass_dir = '_/components/sass' javascripts_dir = '_/js' images_dir = 'http://localhost:8888/acdbox/wp-content/uploads/2015/03/' fonts_dir = '_/fonts' output_style = :extended relative_assets = true disable_warnings =...

Run Rspec test block conditionaly based on gem config

ruby-on-rails,ruby,rspec,config
I'm trying to add write a rspec test that is dependent on what the gem user has set as a configuration. So i want to run the test with a certain configuration. This is the configuration: Tasuku.configure do |config| config.update_answers = false end And this is the test that of...

How to work with config.json?

json,config
I have simple setup (from deskshell) where i have an app.js with var config = require('htdocs/js/config.json'); and config.json { "NAME" : "Scanner 2015", "LOGO" : "logo.gif" } and in index.htm i am trying to use logo.gif by $(document).ready(function(){ $('#logo').attr("src", config.LOGO); but logo.gif isn't loaded, hence config.LOGO doesn't work. I assume...

Config quotes on vars PHP

php,apache,centos,config,quote
I'm new on the site (hi!) and I had a problem that I can't resolve yet. I look for it but no results.. I think it's a stupid thing, but I can't find the solution. I'm migrating a system (php) to other server (both are CentOS) and I have a...

Lab & getConfig integration

node.js,config,server,hapijs
I'm trying to use Lab with getConfig but i'm always getting an error. In Lab I require the server, but when searching for the config file it looks into the node_modules/lab/bin/test_config.json instead of looking for the test_config in the root folder. Is there any way to pass the config file...

retain tag in ckeditor

ckeditor,config
I have seen http://stackoverflow.com/a/21276169/848513 But I can't figure out how to set the ACF to allow for images maps. The code I have is: <img alt="Map" src="sample.jpg" useMap=#Map border=0> <map name="Map"> <area shape="rect" coords="118,32,234,127" href="article.php?id=155" target="list" alt="North"> <area shape="rect" coords="179,136,299,191" href="article.php?id=156" target="list" alt="East"> <area shape="rect" coords="17,141,113,223" href="article.php?id=157" target="list" alt="Central"> </map>...

Angular provider (service) for store data fetched from an api rest?

angularjs,http,config,provider
I'm using a controller to load product data into an $rootScope array. I'm using $http service and works fine, but now I have a new function which fetch the number of products to be loaded. I can't use the function cause the response is slow. I was wondering if I...

DocumentRoot must be a directory CentOS6.5

apache,apache2,config,virtualhost
I've been having a problem setting a directory in my virtualhosts, and am wondering if you guys can help. This is for Laravel and I have already made sure that the location exists and SELinux is disabled. My config is as follows: http://i.gyazo.com/31cdec5f9d830ec43923b4ccf1588d4c.png I can't paste it here because the...

Sharing a .emacs between computers. Emacs overwrites .emacs that is hard linked in my Dropbox

emacs,initialization,config
I want to keep my .emacs in my Dropbox folder, to sync it between work and home. I moved my .emacs to my dropbox folder and then (hard) linked it like: ln ~/Dropbox/.emacs ~/.emacs Then if I open ~/.emacs in emacs, edit and save it, it deletes the .emacs hard...

External domain is not passing values through ajax request

mysql,cordova,phonegap-plugins,config,cpanel
I use server of CPanel and I have the domain name in the config fiele for my mobile app but when I upload the index and all the components (Javascripts, PHP files, SCSS, CSS) to the server and Phonegap and download it on my Mobile it does not retrieve the...