Quantcast
Channel: Active questions tagged config - Stack Overflow
Browsing all 5049 articles
Browse latest View live

Access a global object by its name than module

I have a module where I read a config file and store it into a variable.Eg: myconfig.py looks like:cfg = {}def load(file_path): global cfg cfg = cfg_file_todict(file_path)This load() function is called...

View Article


error AttributeError: module 'twint' has no attribute 'config'

I have installed twint with:git clone --depth=1 https://github.com/twintproject/twint.gitcd twintpip3 install . -r requirements.txtwhich resulted in a successful installation :Successfully installed...

View Article


Unable to cast object of type 'System.Configuration.DefaultSection' to type...

I cannot figure out why i am getting this error. I am trying to get a value from appSettings section of a mapped config file.Here is my config file:<?xml version="1.0"...

View Article

Why are changes showing in Visual Studio Code for files such as storage.json,...

My son is using Visual Studio Code for a Udemy JavaScript Course, and he is encountering a problem I have never had when I've used VS Code. He keeps getting changes listed in Source Control for files...

View Article

Configuring API in Octopus for different environments for DEV/QA for a React APP

I have been working on a React app, there are domain name and endpoints exposed and i have to configure them in my Octopus so that they can be removed from the code.What are the exact steps to be...

View Article


Is there a spark-defaults.conf when installed with pip install pyspark

I installed pyspark with pip.I code in jupyter notebooks. Everything works fine but not I got a java heap space error when exporting a large .csv file.Here someone suggested editing the...

View Article

ConfigObj add new lines in conf file

Im working on a .conf file using python's ConfigObj to modify certain values.I am able to successfully edit preconfigured key-value pair's using the commandconfig['wrapper.working.dir'] = 'test'And the...

View Article

Automated Helm chart deployment to kubernetes

before I'd like to ask the main question, I'd like to introduce the problem with an example of analyzing some data from sensors of the same type:Lets assume that for some data analytics a microservice...

View Article


Apache 2.4 permission only from other domain in the same server

I have an embedded page (yyy.subdomain.com) that i call and share session from my web with subdomain(xxx.subdomain.com), but i need that the embedded page can be only accessed by my app and not by the...

View Article


Using environment variable in mosquitto configuration file

I am trying to set remote_client ID using a value from the system environment variables instead of hardcoding it in the mosquitto.conf configuration file.Is it possible to pass it inline when starting...

View Article

spring cloud config client not loading configuration from config server

I am following this link:http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_client_side_usageI tested this again and again and not seeing Spring cloud client is loading configuration...

View Article

Docker - merge/update config file options (on more specific image)

My docker image uses configuration file to load some options. So when using base image, it all works fine, because I can just put all default options in that file and if I need some custom options, I...

View Article

make menuconfig is throwing below errors

I am trying to learn building kernel, For that Installed Ubuntu on Oracle Virtual Box and downloaded kernel from git but when running make menuconfig it is showing below errors.., Please let me know...

View Article


Save and load files from Tkinter buttons

I am trying to figure out how to save settings but I'm stumped on how to.I trying to save a scale, checkbox, and a optionmenu and be able to save to a file then load that file to save your settings...

View Article

How to deploy a flask application with a config file?

I have a flask application and I use a config file with some sensitive information. I was wondering how to deploy my application with the config file without releasing the sensitive information it holds.

View Article


"Illegal characters in path" error opening service config file

I am trying to read a section of a Windows service configuration file and extract a value (port number). Following code works fine on my local machine but not in any server I tested even though the...

View Article

Python: Check if ConfigParser key is not empty

How can I check if a ConfigParser key has content in it?I don't want to check if the key exists, I want to know if it has any value.Example config.ini[optionalConfigs]option1 = somethingoption2 =...

View Article


how to revert back to default behavior of env_prompt parameter in .condarc?

If you create a python environment in conda with --prefix flag and activate it, post-activation the environment is shown by its entire path. This could be a very long path and hence the...

View Article

I need to disable Vue.js devtools for production mode but it should be...

I don’t want my users to inspect the app using devtools so I would like to disable it in the production mode. But I need it in local/development mode. I have tried the below but it is not working.I...

View Article

AIO not found while compiling nginx

I am trying to compile nginx on ubuntu and I am using the following config parameters:./configure \ --prefix=/usr/share/nginx \ --conf-path=/etc/nginx/nginx.conf \...

View Article
Browsing all 5049 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>