FAQ Database Discussion Community


how to configure eclipse(pydev) to run with external executable

python,eclipse,configuration,executable,pydev
I have a test framework where all my tests have to be kicked off using a particular executable(say M). All my tests are written in python(I have eclipse configured with pydev) . Currently I run my tests are run thru cmdline like: $ M -test <test_file_name>.<testcase_name> How do I configure...

Ruby on Rails 4 - Model to adjust Rails.configuration

ruby-on-rails,ruby,ruby-on-rails-4,configuration
UPDATED AGAIN I've modified the applicaiton to handle building a form for each setting entry. The form posts to /Settings with a :put method and is looped in a transaction block. Here is my code: # settings_controller.rb class SettingsController < ApplicationController def index @settings = Setting.all end def update Setting.transaction...

Android Studio messes up brazilian-portuguese characters

android,configuration,idioms
My project isn't showing any portuguese characters. When I try to type a word like "Não" it returns Não". The funny thing is that when I get the string from res/string.xml, it shows the word correctly. Any idea why? Things I've tried so far and did not work out: File...

How to Include Testing tools in Visual Studio 2013 Community

c#,visual-studio-2013,configuration,coded-ui-tests
I have installed Visual Studio 2013 Community Edition in my PC and i created a new project using Visual C# ---> Test ----> Unit Test Project as show bellow. But My problem is I want to add Codded UI testing instead of Unit Test Project. Can any one help me...

Parent package is not defined : jfreechart-default [Unkown Location]

configuration,struts2,struts2-jfreechart-plugin
I am trying use Struts2 jfreechart plugin - using a Maven project. In Maven dependencies I am able to see the jfree-chart jar file. DO I need to use a separate package? Can any one help ? Getting following error: SEVERE: Dispatcher initialization failed Unable to load configuration. - [unknown...

Apigility - Invalid content type specified

configuration,zend-framework2,apigility
I am attempting to post login credentials to an apigility login API: $response = ClientStatic::post( 'http://www.example.com/api/login', array('email' => '[email protected]','password' => 'test'), array('Accept' => 'application/json') ); This returns the error: Cannot honor Accept type specified As far as I can tell, application/json has been whitelisted in the configs: Any ideas? My...

Typesafe Config: Load configuration from src/test/resources

java,configuration,akka,typesafe,typesafe-stack
This is a beginner question. So my app structure looks like src/main/java/... src/main/resources/application.conf src/test/java/... src/test/resources/module/test.module.conf application.conf location: mainLocation test.module.conf location: testLocation In my test, I do @Test public void testLoadConfig() { final Config config = ConfigFactory.parseResources("test.module.conf"); System.out.println(config); } and what I see Config(SimpleConfigObject({})) Surely something is not right, but I...

How to best manage shared app config contents among projects

c#,visual-studio,configuration,web-config,app-config
I have one back-end DLL project, which is layer on top of database. I have several fron-end projects, with either app.config or web.config. All front-end projects share some configuration sections. Manually keeping the shared config sections in sync before testing and release looks stupid. What is good practice to get...

Accessing dependency injected services in MVC 6

configuration,asp.net-5,asp.net-mvc-6
I'm using mvc6 with vs2015 rc. After reading Using IConfiguration globally in mvc6, my code now looks like this: startup.cs: public void ConfigureServices(IServiceCollection services) { ... IConfiguration configuration = new Configuration().AddJsonFile("config.json"); services.Configure<Settings>(configuration); } my controller: private Settings options; public MyController(IOptions<Settings> config) { options = config.Options; } this works great for...

How to set Symfony 2 slave database config in php

php,mysql,symfony2,configuration,doctrine2
I have a Symfony 2.7 application with Doctrine. I am trying to setup slave databases. We use lockerbox to manage our server configs. We use Constants to keep all database configuration, ex: <?php define('DB_MASTER_HOST', 'localhost'); define('DB_MASTER_USER', 'user'); define('DB_MASTER_PASS', 'password'); define('DB_MASTER_NAME', 'db_name'); define('DB_SLAVE_ENABLED', FALSE); define('DB_SLAVE_HOST', 'server-1,server-2'); define('DB_SLAVE_USER', 'username1,username2'); define('DB_SLAVE_PASS', 'password1,password2'); define('DB_SLAVE_NAME',...

Kafka partitions meaning

configuration,partitioning,partition,kafka
When we decide about partitions, should we do that on per-topic base, or it is topic-wide decision? If T1 partitioned on 3 partitions, and T2 partitioned on 2 partitions, can they both be consumed by 1 consumer? Or it is better make equal number of partitions if topics must be...

DHIS2 - Data Visutalization/Reports

charts,configuration,report,dhis-2
I am getting No Values found while trying to configure report/charts in DHIS2. I have been Created DataElements Created Category Options Added a Category to include Category Options Created a Category Combination item to and added the category created in Step3 in it. Now updated the DataElements and assigned the...

matplotlib cannot find configuration file matplotlibrc

python,python-3.x,matplotlib,configuration
I am using matplotlib 1.3.1 with python 3.4.0 on Ubuntu 14.04. I would like to use a matplotlibrc configuration file in .config/matplotlib/matplotlibrc. However it seems like matplotlib is unable to find it: ~$ ls ~/.config/matplotlib/ matplotlibrc ~$ python3 Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type...

Access other user's local application settings in C#

c#,configuration,.net-3.5,impersonation,usersettings
I have WPF application, let's say Application1, run under User1. I need to access user scoped settings of User2 in AppData folder for Application2. So, what's really happening is this: User1 is logged in user, in windows User1 is actually person associated with account User2 User1 starts Application1 Application1 asks...

How to change the default author in PhpStorm for PHPDoc

configuration,phpstorm,phpdoc
I search for a moment a way to change the name and mail used by PHPDoc in PhpStorm when you use the "autocomplete" by pressing Enter after typing /** just before a class or a function. Example : /** * Class DepartmentType * * @author Foo Bar <[email protected]> */ class...

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...

why Spark is not distributing jobs to all executors, but to only one executer?

performance,configuration,apache-spark,distributed-computing,spark-streaming
My Spark cluster has 1 master and 3 workers (on 4 separate machines, each machine with 1 core), and other settings are as in the picture below, where spark.cores.max is set to 3, and spark.executor.cores also 3 (in pic-1) But when I submit my job to Spark cluster, from the...

PHPUnit - Cannot redeclare class when processIsolation set to false

php,unit-testing,configuration,phpunit
A similar question has been asked several times here PHPUnit loads all classes at once. Causes PHP Fatal error: Cannot redeclare class Cannot redeclare class error when generating PHPUnit code coverage report PHPUnit triggers a new fatal error Fatal error: Cannot redeclare class Validator in /some/path/to/Validator.php on line 6 The...

IntelliJ code style customization

java,intellij-idea,configuration
How do we configure intellij code style so that when reformating code instead of this: we get this: ...

Router with DDNS, unable to update ip in noip

configuration,dns,ip,router
I have a D-Link DWR-512 router, which i need to create a dynamic dns, so i can access to the router throught the dns instead of the ip. The router is only connected to solar inverter panels, so i can't use the noIp dynamic update client software to update the...

How to save changes in App.config?

c#,winforms,configuration
I am trying to save settings in the App.config file, but am getting InvalidOperationException. I am following the example from MSDN. This is my code: private void button_Update_Click(object sender, EventArgs e) { string Key = textBox_Key.Text.Trim(); string Value = textBox_Value.Text.Trim();//bug: should use control textBox_NewValue if (Key != "" && Value...

pg_config shows 9.4 instead of 9.3

postgresql,configuration,configuration-files,configure
I am using Postgres 9.3, however my pg_config points at 9.4, preventing me from building extensions (pgTap). $ sudo aptitude search postgresql | grep ^i i postgresql-9.3 - object-relational SQL database, version 9. i postgresql-client-9.3 - front-end programs for PostgreSQL 9.3 i A postgresql-client-common - manager for multiple PostgreSQL client...

log4j2 equivalent for log4j.defaultInitOverride

configuration,log4j2
Is there any way to tell log4j2 not to automatically load the log4j.configurationFile? It was possible with log4j1 with "log4j.defaultInitOverride"...

Set value of specific property by custom attribute

c#,properties,configuration,attributes
I am currently developing a software that will be used by users that should not be able to access the back-end of it all but should still be able to easily change configuration/settings for the application. I decided the best approach would be a custom "configuration file (.cfg)" located in...

kill ehcache warn messages

java,hibernate,logging,configuration,ehcache
I have this ehcache configuration xml: <ehcache> <defaultCache maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false" diskSpoolBufferSizeMB="30" diskPersistent="false" diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU" /> </ehcache> And also, I have some packages with entities (around 150). If I deploy my application on tomcat server, there is a lot WARN messages in log: 2015-04-29 11:59:02,712 [RMI TCP Connection(3)-127.0.0.1]...

What does the dot mean in Symfony service names?

symfony2,service,configuration,yaml
Look at this documentation page, for instance. Several service names are dotted, and I wanted to know if it means we are searching an object's method or if it is nothing. Note I am talking about service names in YAML format....

Best practices configuring ehCache in modular java application

java,spring,hibernate,configuration,ehcache
We would like to use ehcache in the following two scenarios: Hibernate second level cache Spring method cache Since we have a persistence.xml file in each module but only need one persistence unit, we are using org.springframework.data.jpa.support.MergingPersistenceUnitManager. Now we would like to have a similar setup for ehcache: each module...

Severity inside logger and inside root interaction

java,logging,configuration,logback
I have the following logger configuration: <configuration> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern> </encoder> </appender> <!-- third party loggers--> <logger name="org.springframework.web"> <level value="INFO"/> </logger> <root> <priority value="debug"/> <appender-ref ref="STDOUT"/> </root> </configuration> Please explain to me...

Invalid block type exception on production only

php,xml,magento,exception,configuration
I'm working on a project and everything is working fine on my local machine (OS x - case insensitive filesystem) but throws exception "Invalid block type" on production server (Linux - case sensitive filesystem). Problem is I think I checked all file names for proper upper/lower case. Here is stack...

ASP.NET 5 - Using a Configuration Setting

asp.net,configuration
I am playing with ASP.NET 5. I am trying to understand the new configuration model. I have read several articles. However, I am still unsuccessful in loading a configuration setting. My config.json file looks like this: { "App" : { "Info" : { "Version":"1.0.0", "ReleaseDate":"03-15-2015" } } } My Startup.cs...

Memory, cache and heap configuration in Neo4j in Windows

java,configuration,neo4j
I understand that explicit configuration of mapped memory, cache and heap is necessary when running Neo4j with large graphs. Please provide me with some pointers on how can I change these settings? I realise you need to test with different settings, but what is a good starting point? Neo4j Community...

All CPAN mirrors are not working in CPAN configuration?

perl,configuration,centos6,cpan
I am trying to install CPAN and configure it on Centos 6. I am getting this message in configuration: CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will enter an interactive dialog for each configuration option instead. Would you like to...

Meteor: How to pass a value to a Meteor.settings variable from terminal?

meteor,configuration,terminal,settings,env
Here is a code I have in my serveur directory in a file called main.js: if (Meteor.isServer) { Meteor.startup(function() { return Meteor.Mandrill.config({ username: Meteor.settings.username_mail, key: Meteor.settings.key_mail }); }); } I am using Mandrill to send e-mail and I would like to know how can I set the following username: Meteor.settings.username_mail,...

SonarQube remote access blocked by firewall

tcp,configuration,windows-firewall,sonarqube-5.0
I've set-up SonarQube on my windows machine, everything works perfectly locally. I opened port 9000 (sonar's default port), but all packets - from remote machines - sent to this port are dropped, what could be the issue? 2015-03-11 12:57:15 ALLOW TCP 127.0.0.1 127.0.0.1 54747 9000 0 - 0 0 0...

How allow attribute class on img tag for allowedContent config?

image,class,configuration,ckeditor
i write for a problem with the use of allowedContent config option. I set the instance of my ckeditor with this option: allowedContent: 'p; strong; em; u; s; sub; sup; ul; ol; li; blockquote; a [!href, title, target, rel]; hr; h2; h3; pre; img [!src, alt, height, width, title, id];',...

How to programmatically access Mongoid's config?

ruby-on-rails,configuration,mongoid
Specifically, I want to read the hosts value of the current Mongoid config. Is that possible? I'm using Mongoid with Ruby on Rails....

Progress messages not appearing with cabal install for some users

haskell,configuration,ghc,cabal,cabal-install
I'm working on a team project using Haskell and whenever I compile our project using 'cabal install' I start seeing the following: $ cabal clean && cabal install cleaning... Resolving dependencies... Configuring hackathon-0.1... Building hackathon-0.1... Preprocessing executable 'hackathon' for hackathon-0.1... [ 1 of 65] Compiling Data.MaybeUtil ( src/Data/MaybeUtil.hs, dist/dist-sandbox-52369b17/build/hackathon/hackathon-tmp/Data/MaybeUtil.o )...

Configure a custom store in ASP.NET Identity 2.x

c#,asp.net,configuration,asp.net-identity,owin
I've already developed an implementation to the following ASP.NET Identity interfaces: IUserLoginStore<TUser>, IUserClaimStore<TUser>, IUserRoleStore<TUser>, IUserPasswordStore<TUser>, IUserSecurityStampStore<TUser>. Furthermore, I'm using OWIN/Katana, so I need to configure this by code during startup. How do I provide/configure my custom store implementation to ASP.NET Identity? Note: I've been searching a simple and clear tutorial...

Eclipse for Java shows Multiple Errors

java,eclipse,configuration,version
This is my current configuration: Eclipse IDE for Java Developers Luna Service Release 2 (4.4.2) Java Version 8 Update 45 Build 1.8.0_45-b15 After a time without using some Java Project folders, now Eclipse throws a lot of syntaxis errors over them: The import javafx cannot be resolved *** cannot be...

Apache won't serve pages on my Raspberry Pi

php,apache,configuration,installation,raspberry-pi
I've installed PHP 5.6 on my Raspberry Pi (from the Jessie repo), as well as Apache2. When I access http://192.168.2.50/ (the Pi's IP-address) it's not serving the index.php or index.html file in ~/var/www/. Just an hour ago I was running PHP 5.4 from the Wheezy repo, this was working fine....

Spring 4 PropertySourcesPlaceholderConfigurer doesn't resolve ${..} placeholders across modules

java,spring,properties,configuration,placeholder
I have two modules in my applications: core web The core module contains the following property place-holder configuration in the spring/applicationContext-core.xml context: <bean id="coreProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="locations"> <list> <value>classpath:/properties/*.properties</value> <value>classpath:/profiles/${build.profile.id}/properties/*.properties</value>...

How to push configuration from one module to another module in AngularJS

angularjs,configuration
I'm looking for a way to "send" or "register" some configuration from several modules to one single module. The idea is that different modules will have theirs own route configuration. And one single module controller will build the menu based on those configurations. I want to "send" or "register" configuration...

Symfony container has no extensions when loading my bundle

php,symfony2,configuration
I have a bundle which was working quite well for some time. However, I had to add some custom configuration params to it, so I wrote some lines in the bundle's config.yml, something like this: # ... acme_my_bundle: special_params: ['param_1', 'param_2'] The configuration is defined in the bundle's Configuration class:...

Loading the same properties(yml) files in testing enviornment?

java,spring,configuration,yaml,spring-boot
I am trying to figure out whether I can load the same .yml property files in testing environment as I load in real. For example I have a test: \src\test\java\security\TokenTest.java Annotated with: @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = Application.class) @WebAppConfiguration @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @ActiveProfiles("dev") Then I have: \src\main\resources\application.yml When I run the application,...

asm version compatible with hibernate 4.3.1

java,spring,hibernate,configuration,java-bytecode-asm
I've been working on a project and using hibernate 4.3.1. an error popped up and after searching for what it means, i found out that its caused by incompatible versions between hibernate and asm. what version of asm is compatible with hibernate 4.3.1?

Could not install rpy2 correctly

python,c,r,configuration,rpy2
I try to install rpy2 on my computer with R 3.1.1 using the command: pip install rpy2 --user It output success, but when I try to test it using python -m rpy2.tests It give me the following error File "/mnt/work1/software/python/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/mnt/work1/software/python/2.7/lib/python2.7/runpy.py",...

Hosting a configuration file online for an Android application

android,xml,configuration,hosting
My application have to request some RSS feeds and display the result, i want to be able to add some feeds to the RSS list without modifying the app source code. The app users will not have the permission to modify the RSS feeds list so i can't implement it...

Understanding Grizzly 1.9.36 internals

configuration,glassfish-3,grizzly
I enabled the "SNOOP" configuration (under Transports -> tcp) on the admin webpage to see what grizzly is doing under the hood. As soon as I applied the changes, the below was printed in server.log . From the log, I fail to understand why Grizzly initializes it configuration again on...

Why Spring doesn't see @Configuration when it loads a bean from applicationContext.xml?

spring,configuration,spring-java-config
I have the following applicationContext.xml file: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context...

Path with dots for Maps in JSON (Java)

java,json,configuration,json-simple
I want to make it so I can use "." to obtain values within a Map within the main Map in a JSON file. E.g. My file looks like this: http://pastie.org/private/wl6jhgnylevz2fdcncyjrg And in Java, I load the configuration to a Map (but I can always use JSONObject if necessary to...

Fluent Nhibernate - configure all dates to be rehydrated from UTC

datetime,nhibernate,configuration,fluent-nhibernate,utc
This SO question talks about "Rehydrating fluent nhibernate configured DateTime as Kind Utc rather than Unspecified". One of the later answers in that question has this: Map(x => x.EntryDate).CustomType<UtcDateTimeType>(); That works for one property on one entity. I would like to know if there is a way to specify that...

Is there a Visual Studio Project Configuration Macro which defines DEBUG or RELEASE regardless of the Project Configuration Name?

visual-studio,visual-c++,visual-studio-2013,configuration,macros
I saw that its a very common thing to use the Visual Studio Macro called $(Configuration) for build file paths. For example if you create a new Visual C++ Project in Visual Studio 2013 your default Property Sheet will look something like this: The $(Configuration) Macro is the Name of...

Nginx: setting the error page to a static file

nginx,configuration,system
I have the following nginx configuration: server { listen 80; server_name default; location / { proxy_set_header Host $host; proxy_pass http://127.0.0.1:8080/; } } When the internal service at http://127.0.0.1:8080/ is not responding nginx return a 502 Bad Gatway error. My question: how can I configure nginx to returning a static html...

Configuration of tomcat 7 as servlet container only

java,tomcat,servlets,configuration
I am going to use Tomcat as servlet container only. No static, jsp or jsf. Java servlets only. Do I need listeners in configuration? Can I remove them? How to improve configuration for my task? Links or advise? Thanks in advance!...

How do I access the service provider when registering using typescript class

angularjs,configuration,typescript,service-provider,typescript1.5
The following service provider registers successfully. Other controllers can use the service without trouble. My question is how to access the provider in order to configure it before the service is instantiated by the $injector service? module apiService{ export interface IBaseService{ leagueID: number; } export interface IApiBaseServiceProvider extends ng.IServiceProvider{ setLeagueID(leagueID:...

Akka default vs runtime configuration

configuration,akka
I read the Akka v2.3.11 docs (Java, not Scala) and am still a bit confused about how configuration works. In section 2.9.2 ("Akka and JAR bundling") it states: Akka’s configuration approach relies heavily on the notion of every module/jar having its own reference.conf file, all of these will be discovered...

Configuring IntelliJ workspace views

eclipse,intellij-idea,configuration
Newb alert: moving from Eclipse to IntelliJ I think what I want is "simple", but looking at menus, help and doc hasn't found it. (I did visit their help and website links; I'm probably not looking for the right thing.) For my main code editing experience, I like to have...

What is the right way of accessing configuration from, say, config.json outside of Startup class?

asp.net,configuration,asp.net-5
What is the right way of accessing configuration from, say, config.json outside of Startup class? Do we need to create new Configuration() everytime we need to access configuration, like this? Configuration = new Configuration() .AddJsonFile("config.json") .AddEnvironmentVariables(); ...

Vagrant - Error during 'vagrant up' - Unknown configuration section 'cache'

osx,configuration,vagrant
I am configuring Vagrant environment on my machine and while firing the 'vagrant up' command, getting the following error: Unknown configuration section 'cache' I tried the steps mentioned at this link:https://github.com/fgrehm/vagrant-cachier/issues/20 but it didn't help. I am using a Mac with Mavericks and CentOS image virtual box. Vagrant version -...

“Fail to execute ES search request” popup alert in SonarQube web UI after upgrading from 4.5.1 to 5.1

configuration,sonarqube
when I click on an issue in SonarQube web UI to see details, I get this red popup: Fail to execute ES search request '{"size":1000,"query":{"bool":{"must":[{"term":{"fileUuid":"9c1ae181-f5c3-47da-8fad-3716aca54b6d"}},{"range":{"line":{"from":1,"to":1000,"include_lower":true,"include_upper":true}}}]}},"sort":[{"line":{"order":"asc"}}]}' on indices '[sourcelines]' on types '[sourceline]' and the source code or issue details are not shown. we started getting this after upgrading from Sonar 4.5.1...

Spring: @NestedConfigurationProperty List in @ConfigurationProperties

spring,properties,configuration,spring-boot
Hi I am trying to get the following configuration up and running. @ConfigurationProperties(prefix="my") public class Config { @NestedConfigurationProperty private List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>(); public List<ServerConfiguration> getServers() { return this.servers; } } @ConfigurationProperties(prefix = "server") public class ServerConfiguration { private String name; private String description; } So, I want to...

Chef Configuration Constructs by Example

configuration,chef
I am trying to wrap my head around Chef and its many configuration constructs: So we have: Nodes Run Lists Roles Recipes Attributes Environments Cookbooks Templates and even 1 more thing not on that diagram: Data Bags This is a bit overwhelming. After reading pretty deep into the Chef docs,...

Tree configuration to turn on/off the features in java

java,configuration,configuration-files
I have many features in Tree format and want to control the using configuration. Assume below tree, each node is one feature A --- root A1 & A2 --- are child of A A1a, A1b and A1c --- are child of A1 A2a, A2b and A2c --- are child of...

start multiple processor threads on Spark worker within one core

multithreading,configuration,apache-spark,spark-streaming,amazon-kinesis
Our situation is: using Spark streaming with AWS Kinesis. If specify the Spark master to be in memory as "local[32]", then Spark can consume data from Kinesis fairly quick. But if we switch to a cluster with 1 master and 3 workers (on 4 separate machines), and set master to...

What is the correct way to use app.config for my plugin when using MEF?

c#,configuration,app-config,mef
So I have my host program that is going to load in my plugins using a MEF DirectoryCatalogue So currently I have: Host.exe and Plugin1.dll Plugin1.dll has a config setting set in its own config (Plugin1.dll.Config): <applicationSettings> <Plugin1.Settings> <setting name="MyString" serializeAs="String"> <value>Hello</value> </setting> </Plugin1.Settings> </applicationSettings> Which is accessed in Plugin1...

PyCharm automatically change script

python,configuration,pycharm
In PyCharm, is there a way to automatically change the script in Run/Debug Configurations to the file I am currently editing? Currently, when I create a new file, I manually edit the Script in Configurations to the one I want to run.

Log4j2 not creating log files

java,logging,configuration,log4j2
I am trying out log4j2 configuration <?xml version="1.0" encoding="UTF-8"?> <configuration status="info"> <appenders> <Console name="console-log" target="SYSTEM_OUT" append="false"> <ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/> <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36}:%L %M - %msg%xEx%n"/> </Console> <File name="debug-log" fileName="${catalina.base}/logs/debug.log" append="false"> <PatternLayout pattern="%d{yyyy-MM-dd 'at' HH:mm:ss.SSS z}...

Jenkins Get the job link in groovy script

jenkins,configuration,environment-variables,bulk
We need to update few Job configurations for all the jobs, There are several instances of jenkins running for multiple projects. We need to udpate SCM database path and the SCM password. I am able to do the database path, but for password there is no set method. So to...

How to get the checkout directory of project dependencies in TeamCity?

configuration,dependencies,teamcity
I am using TeamCity as build server and have a little trouble when configuring projects and their dependencies. Eventually I want to get the checkout directory of project dependencies to configure certain build steps. For that I have the variable %teamcity.build.checkoutDir% for the checkout directory of the project itself. However,...

akka dispatcher is not working

scala,configuration,akka,scala-2.11
I am writing the setting of my disptacher in addtional conf file and then loading it in application.conf but dispatcher is not working when i am giving the full path where the dispatcher located in my file i am also assuring that it dispatcher exsits or not by using if...

Does Spring @Autowired inject beans by name or by type?

java,spring,configuration,code-injection,autowired
I am reading beginning spring (wiley press) book. In chapter 2 there is an example about Java configuration and @Autowired. It provides this @Configuration class @Configuration public class Ch2BeanConfiguration { @Bean public AccountService accountService() { AccountServiceImpl bean = new AccountServiceImpl(); return bean; } @Bean public AccountDao accountDao() { AccountDaoInMemoryImpl bean...

How do you configure SQL Session State in ASP.NET 5.0 (vNext) MVC 6? [closed]

sql-server,configuration,session-state,asp.net-5,asp.net-mvc-6
In Visual Studio 2015 RC, ASP.NET 5 vNext, i am trying to use SQL Session State in MVC 6. I'm not sure how to go about it. Can anyone show me a sample or give me some tips? I'm just trying out Azure Load Balancer. I set up a load...

How to manage configuration data in large projects?

configuration
As software projects grow they inevitably pile up a lot of configuration data. Each new module, library or framework can have some. Data can have many form such as XML, properties etc. But they usually can be located at in-code defined places. Is there any good practice saying how the...

How to increase memory in Android Studio on a Mac

memory-management,android-studio,configuration
I'm having problems with my Android Studio, it is running very slow and I can see that in the bottom right corner there is a Memory usage control. Is there a way to increase this?? Thanks....

How to stop visual studio generate typescript js and js.map files while publishing

visual-studio-2013,configuration,typescript,publishing
I set up my project that combine javascript output into file to $(ProjectDir)dist\output.js and uncheck generate source maps. Tools -> Options -> Text Editor -> Typescript -> Project -> Automatically compile Typescript files which are not part of a project is unchecked as well. While building and running project from...

Same Appender log into 2 different files with Log4J2

configuration,log4j2
I would like to define 1 single Appender in my log4j2.xml configuration file, and using the magic of the Properties Substitution of Log4J2, be able to somehow log into 2 different files. I imagine the Appender would look something like: <RollingFile name="Rolling-${filename}" fileName="${filename}" filePattern="${filename}.%i.log.gz"> <PatternLayout> <pattern>%d %p %c{1.} [%t] %m%n</pattern>...

It's possible change a settings.settings file without recompiling in .NET?

.net,dll,configuration,configuration-files,application-settings
SCENARIO: A junior development team deployed a WCF service in production that is using a reference to a project (in the same solution) that is compiled as DLL. This DLL has an application settings file with the following configuration: And the code of the settings file is: <?xml version='1.0' encoding='utf-8'?>...

how to reinitialize log4j2 configuration?

configuration,log4j2
After an initial configuration of log4j2 with: Configurator.initialize(null, configLocation); I would like to reinitialize it with a different URL Configurator.initialize(null, configLocation2); The problem is that the second call is ignored. I believe that once the LoggerContext is STARTED it will ignore reconfigurations. Is there a way to do this? ...

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...

Why is my custom php.ini file not loaded site wide while placed in /public_hml? [duplicate]

php,configuration,scope,ini,public-html
This question already has an answer here: Custom php.ini per-directory (for testing sites) 2 answers I created a custom php.ini ... it's located in /public_html. Shouldn't it be valid and used for the whole site and directories under public_html ? It seems not to be loaded e.g. in /public_html/cms/usr...

Merging custom configuration sections at runtime in .NET

c#,.net,configuration
My question is about working with standard .NET configuration objects and custom configuration elements as well, (which one can define by extending the System.Configuration.ConfigurationSection class). We usually obtain these from the System.Configuration.ConfigurationManager class's methods, GetSection(...) being an example. The loaded configuration object appears to be a merged configuration object containing...

How to develop a Java Web Service that request database credentials when it deploys?

java,database,web-services,configuration,ibm-was
First, thank you for reading, and I'm sorry about my English. I have developed a Java Web Service with Eclipse, with a JDBC connection to Oracle Database, which contains some methods that gets information from this database (that I created in my local machine for tests), like getEmployee(int id), getAllEmployees(),...

Appender settings in orbeon log4j config file doesn't work

logging,configuration,log4j,orbeon
I set my Orbeon log4j.xml file to make backups when log has size more than 5MB. When my log file reach this size, it is truncated but I don't see any backup file. Where it is? How can I make configuration if I want to my backup has file name...

Emailing via php, and accessing php.ini

php,email,configuration
My code is perfectly fine (but I'll include it at the end anyway) but when I use the in-built php mail() function, and it returns true, I receive no email. I have read other answers to similar questions but I am still having difficulties with this, seeing as the output...

A typeclass instance that needs configuration data. What are my options?

haskell,configuration,yesod,typeclass
Using yesod and persistent, I made what I think is a handy type to handle Markdown data: {-# LANGUAGE OverloadedStrings #-} module Utils.MarkdownText where import Prelude import Data.Text.Lazy import Data.Text as T import Database.Persist import Database.Persist.Sql import Text.Blaze import Text.Markdown newtype MarkdownText = MarkdownText { rawMarkdown :: T.Text } instance...

why spring 4 recommend annotation rather than configuration file? [closed]

java,spring,configuration,annotations
Recently I'm learning the spring framework of java. I am curious that why spring 4 recommend annotation to set up spring rather using configuration file? Some people said that the spring configuration file is too complicated. But I think using annotation is going to the opposite direction of purpose of...

Entity Framework 6: Unable to load the specified metadata resource

c#,entity-framework,configuration,windows-services,entity-framework-6
First, this is related to another question here on SO: I've read and debugged my issue with the following SO article & blog: MetadataException: Unable to load the specified metadata resource and http://blogs.teamb.com/craigstuntz/2010/08/13/38628/ BUT...I'm still having questions beyond just this 'fix' I have a WebAPI (2.1), the connection string in...

How to get all sections of a specific type

c#,configuration
Let's say I have the following in my config: <configSections> <section name="interestingThings" type="Test.InterestingThingsSection, Test" /> <section name="moreInterestingThings" type="Test.InterestingThingsSection, Test" /> </configSections> <interestingThings> <add name="Thing1" value="Seuss" /> </interestingThings> <moreInterestingThings> <add name="Thing2" value="Seuss" /> </moreInterestingThings> If I want to get either section, I can get them by name pretty easily:...

maven multi-module artifact deployment

java,maven,deployment,configuration
I have a multi-module maven project where the parent builds all modules and the child pom aggregators handle config file deployments. I am able to deploy the bundles via mvn clean deploy from the parent module; however, this fails to attach the config-files specified in the build-helper plugin section of...

What is the value of ConfigurationPropertyAttribute.DefaultValue when a default value has not been specified?

c#,configuration
The default value of the following configuration property is obvious. It is "Arial": [ConfigurationProperty("name", DefaultValue = "Arial", IsRequired = true)] public string Name { get { return (string)this["name"]; } set { this["name"] = value; } } But, what if I remove the "DefaultValue" part, as follows? [ConfigurationProperty("name", IsRequired = true)]...

php.ini error_reporting recommended production value would show notices?

php,configuration,server
On a server there is still PHP 5.3.3 installed. The php.ini contains the following: ; Common Values: ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) ; E_ALL...

how to check my akka dispatchers defined in config file working or not

scala,configuration,akka,dispatcher
HI I am new to akka dispatchers i took help from the akka documentation I want to check either i tuned up the dispatcher correctly or not here is my applica.conf include "DirectUserWriteMongoActor" akka { loggers = ["akka.event.slf4j.Slf4jLogger"] loglevel = "DEBUG" } here is my DirectUserWriteMongoActor.conf akka { actor{ ###############################...

How can I configure several “run configurations” for the same class to run like 3 times - Eclipse?

java,eclipse,configuration,server,rmi
I have a class named "FileServerRMI" and I need to configure 1 run configuration per run and I need to run at least 3 "FileServerRMI"'s at once. How can I do it with no need to go to run configurations and change it for each run?...

Multiple environments for Ruby application

ruby-on-rails,ruby,configuration,environment-variables
I've been writing Rails apps for so long that I'm suddenly stuck with something you get for free with Rails: environments. That is to say, you can run the Rails app locally and by default, RAILS_ENV (or Rails.env) is "development". And if you are running your specs/tests, it's "test" and...

How do I turn sendfile off in a docker instance

linux,nginx,configuration,docker,sendfile
I have a nginx docker instance running. In the docker instance there is a file called /etc/nginx/nginx.conf It has the following settings http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" access_log /var/log/nginx/access.log main; sendfile on; .... } I run the docker instance by running with...

MAMP PRO 3.2.1 not displaying PHP errors

php,configuration,error-reporting,mamp-pro
After updating my MAMP PRO (on OS X Yosemite 10.10.3) to the most recent version 3.2.1 it stopped displaying errors. In MAMP PRO you can set the error displaying options in the GUI on the PHP tab. Everything has a checkbox there (it's in German, but it says something like...

Is it possible to define an array in wp-config.php

php,wordpress,configuration
wp-config.php $array = array("test1","test2"); define("TEST", $array); testFile.php $array = TEST; Is this possible? The above code merely sets $array to "TEST". Or is there a way to retrieve values from wp-config.php by string i.e. something like: $array_first_value = wp_get_config("array_first_value"); ...

How to solve the error “SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.” in IE

ajax,internet-explorer,configuration
In my web site, I created a map with ALK Maps, I display the points (Markers) and roads (routings) and all this works fine in Firefox and Chrome, but in IE I display the map and points, but when I go to the road I get the error: "SCRIPT7002: XMLHttpRequest:...

How to check if log4j2 has been configured or not

configuration,log4j2
We're all familiar with this message when you don't provide a configuration for log4j2: ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. How can I check if log4j2 is not yet configured so that I can initialize with a default configuration if...

How to handle Propel environment variables

php,variables,orm,configuration,propel
I am trying to setup some configuration for unit-testing my application. Therefore I will need to setup different database connections. I have tried to follow the documentation (Environment Variables Doc) but I don't understand where to save the environment variables so they can be found when I have something like:...