Questions tagged [configuration]

Configuration is the process of specifying the settings used for a system or application

configuration
Filter by
Sorted by
Tagged with
1585 votes
13 answers
821k views

Vertical rulers in Visual Studio Code

Rendering More than One Ruler in VS Code VS Code's default configuration for a ruler is demonstrated below. "editor.ruler": 80 The issue I am having with the default VS Code configuration (...
nalply's user avatar
  • 27.9k
1504 votes
27 answers
627k views

Turning off auto indent when pasting text into vim

I am making the effort to learn Vim. When I paste code into my document from the clipboard, I get extra spaces at the start of each new line: line line line I know you can turn off auto ...
Rimian's user avatar
  • 37.5k
1019 votes
14 answers
418k views

How do I hide certain files from the sidebar in Visual Studio Code?

In Visual Studio Code, what setting can be configured, using file patterns, to hide files from view in the sidebar's file-explorer? I would like to hide certain groups of files, like .meta and .git ...
Chris's user avatar
  • 56.4k
958 votes
28 answers
1.3m views

Reading settings from app.config or web.config in .NET

I'm working on a C# class library that needs to be able to read settings from the web.config or app.config file (depending on whether the DLL is referenced from an ASP.NET web application or a Windows ...
Russ Clark's user avatar
  • 13.3k
789 votes
19 answers
658k views

Turning off eslint rule for a specific file

Is it possible to turn off the eslint rule for the whole file? Something such as: // eslint-disable-file no-use-before-define (Analogous to eslint-disable-line.) It happens to me quite often, that ...
Tomas Kulich's user avatar
751 votes
16 answers
446k views

How can I show line numbers in Eclipse?

How can I show line numbers by default in Eclipse?
user avatar
724 votes
15 answers
354k views

Difference between <context:annotation-config> and <context:component-scan>

I'm learning Spring 3 and I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>. From what I've read they seem to handle different ...
user938214097's user avatar
599 votes
30 answers
796k views

Where does PostgreSQL store configuration/conf files?

I have recently installed PostgreSQL on Ubuntu with the EnterpriseDB package. I can connect to the database locally, but I can't configure it because I can't find config files. I searched through ...
Timur Sadykov's user avatar
576 votes
34 answers
2.6m views

Error message "Forbidden You don't have permission to access / on this server" [closed]

I have configured my Apache by myself and have tried to load phpMyAdmin on a virtual host, but I received: 403 Forbidden You don't have permission to access / on this server My httpd.conf # # This ...
Dmytro Zarezenko's user avatar
545 votes
19 answers
324k views

How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in ...
hspain's user avatar
  • 17.5k
481 votes
4 answers
498k views

What's the best practice using a settings file in Python? [closed]

I have a command line script that I run with a lot of arguments. I have now come to a point where I have too many arguments, and I want to have some arguments in dictionary form too. So in order to ...
c00kiemonster's user avatar
463 votes
15 answers
316k views

What should I set JAVA_HOME environment variable on macOS X 10.6?

Many Java applications that use shell scripts to configure their environment use the JAVA_HOME environment variable to start the correct version of Java, locate JRE JARs, and so on. In macOS X 10.6, ...
Robert Christie's user avatar
448 votes
29 answers
879k views

How to read AppSettings values from a .json file in ASP.NET Core

I have set up my AppSettings data in file appsettings/Config .json like this: { "AppSettings": { "token": "1234" } } I have searched online on how to read AppSettings values from .json ...
Oluwafemi's user avatar
  • 14.6k
400 votes
36 answers
474k views

Dart SDK is not configured

I installed Flutter and set up Android Studio. Then I cloned an example of flutter on GitHub (https://github.com/flutter/flutter) and launched it in Android Studio, but it warns me "Dart SDK is ...
Katelyn's user avatar
  • 4,011
363 votes
15 answers
191k views

How to define custom configuration variables in Rails?

I was wondering how to add custom configuration variables to a Rails application and how to access them in the controller? Secondly, I was planning to have S3 support for uploads in my application, if ...
Shiv's user avatar
  • 8,392
343 votes
24 answers
709k views

Getting value from appsettings.json in .NET Core

I am not sure what am I missing here, but I am not able to get the values from my appsettings.json in my .NET Core application. I have my appsettings.json as: { "AppSettings": { &...
aman's user avatar
  • 5,992
321 votes
2 answers
75k views

How to increase the maximum number of opened editors in IntelliJ?

I am building a grails-app with IntelliJ 9.0 and I am a huge fan of the CTR+TAB shortcut that switches between active editors. However, by default, IntelliJ keeps ONLY 10 active editors opened at the ...
fabien7474's user avatar
  • 16.4k
302 votes
12 answers
166k views

.NET Core Unit Testing - Mock IOptions<T>

I feel like I'm missing something really obvious here. I have classes that require injecting of options using the .NET Core IOptions pattern(?). When I unit test that class, I want to mock various ...
Matt's user avatar
  • 3,031
302 votes
21 answers
774k views

Nginx 403 error: directory index of [folder] is forbidden

I have 3 domain names and am trying to host all 3 sites on one server (a Digital Ocean droplet) using Nginx. mysite1.name mysite2.name mysite3.name Only 1 of them works. The other two result in 403 ...
Ryan's user avatar
  • 23k
301 votes
9 answers
79k views

Performance differences between debug and release builds

I must admit, that usually I haven't bothered switching between the Debug and Release configurations in my program, and I have usually opted to go for the Debug configuration, even when the programs ...
Øyvind Bråthen's user avatar
293 votes
10 answers
242k views

Multiple commands in an alias for bash

I'd like to define an alias that runs the following two commands consecutively. gnome-screensaver gnome-screensaver-command --lock Right now I've added alias lock='gnome-screensaver-command --lock'...
yuriel's user avatar
  • 3,113
291 votes
15 answers
825k views

ssl_error_rx_record_too_long and Apache SSL [closed]

I've got a customer trying to access one of my sites, and they keep getting this error > ssl_error_rx_record_too_long They're getting this error on all browsers, all platforms. I can't reproduce ...
Subimage's user avatar
  • 4,453
288 votes
29 answers
422k views

How can I add a filter class in Spring Boot?

Is there any annotation for a Filter class (for web applications) in Spring Boot? Perhaps @Filter? I want to add a custom filter in my project. The Spring Boot Reference Guide mentioned about ...
janetsmith's user avatar
  • 8,662
282 votes
16 answers
152k views

Copying text outside of Vim with set mouse=a enabled

After enabling set mouse=a, text copied inside of Vim will not paste outside of Vim. Is there a way to fix this? Here, selecting text with the mouse turns on visual mode and disables the Copy option ...
lyuba's user avatar
  • 6,310
271 votes
4 answers
164k views

Best practices when running Node.js with port 80 (Ubuntu / Linode) [closed]

I am setting up my first Node.js server on a cloud Linux node and I am fairly new to the details of Linux admin. (BTW I am not trying to use Apache at the same time.) Everything is installed ...
Robotbugs's user avatar
  • 4,367
266 votes
7 answers
163k views

How to change Vagrant 'default' machine name?

Where does the name 'default' come from when launching a vagrant box? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... Is there a way to set this?
Kyle Kelley's user avatar
257 votes
11 answers
462k views

Eclipse fonts and background color

I have been trying to change the background color of Eclipse's windows to black and customize the font colors. There doesn't seem to be a way to do this, at least not in an obvious way. I am using ...
abarax's user avatar
  • 6,259
252 votes
10 answers
338k views

Spring Boot YAML configuration for a list of strings

I am trying to load an array of strings from the application.yml file. This is the config: ignore: filenames: - .DS_Store - .hg This is the class fragment: @Value("${ignore....
Bahadır Yağan's user avatar
248 votes
3 answers
224k views

What does upstream mean in nginx?

upstream app_front_static { server 192.168.206.105:80; } Never seen it before, anyone knows, what it means?
gdb's user avatar
  • 7,439
245 votes
16 answers
420k views

Getting Spring Application Context

Is there a way to statically/globally request a copy of the ApplicationContext in a Spring application? Assuming the main class starts up and initializes the application context, does it need to pass ...
Joe Skora's user avatar
  • 14.8k
241 votes
9 answers
188k views

How can I get the current screen orientation?

I just want to set some flags when my orientation is in landscape so that when the activity is recreated in onCreate() i can toggle between what to load in portrait vs. landscape. I already have a ...
Sheehan Alam's user avatar
  • 60.5k
232 votes
4 answers
227k views

What's the difference of $host and $http_host in Nginx

In Nginx, what's the difference between variables $host and $http_host.
glarrain's user avatar
  • 8,131
230 votes
6 answers
276k views

Where to place and how to read configuration resource files in servlet based application?

In my web application I have to send email to set of predefined users like [email protected], so I wish to add that to a .properties file and access it when required. Is this a correct procedure, if ...
sansknwoledge's user avatar
226 votes
6 answers
125k views

Difference between using bean id and name in Spring configuration file

Is there any difference between using an id attribute and name attribute on a <bean> element in a Spring configuration file?
user avatar
223 votes
12 answers
327k views

How to configure postgresql for the first time?

I have just installed postgresql and I specified password x during installation. When I try to do createdb and specify any password I get the message: createdb: could not connect to database ...
Rohit Banga's user avatar
  • 18.6k
222 votes
18 answers
188k views

Is the buildSessionFactory() Configuration method deprecated in Hibernate?

When I updated the Hibernate version from 3.6.8 to 4.0.0, I got a warning about deprecated method buildSessionFactory() in this line: private static final SessionFactory sessionFactory = new ...
pushistic's user avatar
  • 3,406
220 votes
10 answers
98k views

Where to place AutoMapper.CreateMaps?

I'm using AutoMapper in an ASP.NET MVC application. I was told that I should move the AutoMapper.CreateMap elsewhere as they have a lot of overhead. I'm not too sure how to design my application to ...
Shawn Mclean's user avatar
  • 57.1k
218 votes
11 answers
112k views

How to trigger XDebug profiler for a command line PHP script?

XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via ...
selfawaresoup's user avatar
217 votes
16 answers
453k views

How to set the java.library.path from Eclipse

How can I set the java.library.path for a whole Eclipse Project? I'm using a Java library that relies on OS specific files and need to find a .dll/ .so/ .jnilib. But the Application always exits with ...
Janusz's user avatar
  • 188k
216 votes
5 answers
236k views

How do I prevent a Gateway Timeout with FastCGI on Nginx

I am running Django, FastCGI, and Nginx. I am creating an api of sorts that where someone can send some data via XML which I will process and then return some status codes for each node that was sent ...
sheats's user avatar
  • 33.8k
215 votes
13 answers
230k views

Where to install Android SDK on Mac OS X?

Where should the Android SDK be installed on Mac OS X?
Carl Manaster's user avatar
214 votes
10 answers
179k views

Using different Web.config in development and production environment

I need to use different database connection strings and SMTP server addresses in my ASP.NET application, depending on where it is run, in development or production environment. The application reads ...
Alexander Prokofyev's user avatar
213 votes
11 answers
104k views

How do I use Notepad++ (or other) with msysgit?

How do I use Notepad++ (or any other editor besides vim) with msysgit? I tried all of the following to no avail: git config --global core.editor C:\Program Files\Notepad++\notepad++.exe git config -...
PHLAK's user avatar
  • 22.3k
210 votes
1 answer
68k views

ASP.NET web.config: configSource vs. file attributes

Within an web.config-file in an ASP.NET-application some sections of config, like appSettings and connectionStrings, supports the attributes file and configSource. What is the difference between ...
Seb Nilsson's user avatar
  • 26.3k
208 votes
2 answers
87k views

IConfiguration does not contain a definition for GetValue

After moving a class through projects, one of the IConfiguration methods, GetValue<T>, stopped working. The usage is like this: using Newtonsoft.Json; using System; using System.Net; using ...
Machado's user avatar
  • 9,594
208 votes
1 answer
208k views

Query a parameter (postgresql.conf setting) like "max_connections"

Does anyone know if it's even possible (and how, if yes) to query a database server setting in PostgreSQL (9.1)? I need to check the max_connections (maximum number of open db connections) setting.
Greg Kramida's user avatar
  • 4,154
205 votes
5 answers
145k views

How to SetBasePath in ConfigurationBuilder in Core 2.0

How can I set the base path in ConfigurationBuilder in Core 2.0. I have googled and found this question, this from Microsoft docs, and the 2.0 docs online but they seem to be using a version of ...
Padhraic's user avatar
  • 5,342
199 votes
9 answers
59k views

Options, Settings, Properties, Configuration, Preferences — when and why? [closed]

There are several words with similar (in some sense) meaning: Options, Settings, Properties, Configuration, Preferences English is not my native language. Could you explain the difference in ...
Andrew T's user avatar
  • 5,665
196 votes
7 answers
170k views

How do I read configuration settings from Symfony2 config.yml?

I have added a setting to my config.yml file as such: app.config: contact_email: [email protected] ... For the life of me, I can't figure out how to read it into a variable. I tried ...
josef.van.niekerk's user avatar
193 votes
3 answers
582k views

sendmail: how to configure sendmail on ubuntu? [closed]

When I searched for configuring sendmail on ubuntu I din't get any clear answer, each of them assume I know what they are talking about, I just want basic configuration to enable email sending, ...
UXE's user avatar
  • 2,384

1
2 3 4 5
364