Questions tagged [configuration]
Configuration is the process of specifying the settings used for a system or application.
133 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
126
views
Example of emacs setup code written in elisp
I'm still going to improve it but I left my emacs to my liking. I really liked having this freedom to leave the ide as I like, most don't give you that. I'm even thinking about making an IDE in the ...
2
votes
2
answers
116
views
Migrating configuration method
I have a legacy PHP project using a self-styled configuration file (named globals.inc.php) which is generated by build scripts based on a template included in the ...
4
votes
3
answers
2k
views
A very simple config file parser in C++
I've implemented a config file parser in C++, which I may expand in future for personal projects. As of now the config file only supports floats, strings and booleans.
The parser is based on various <...
2
votes
1
answer
109
views
Python Runtime Config
I am implementing runtime configuration for a python package. I am doing this in mypkg.config.__init__.py. The idea is to load the configuration from a JSON file ...
3
votes
1
answer
247
views
Settings and global variables in one place [closed]
I have a configuration (YAML) file used across related modules. I also have a few additional variables to be accessed globally in my modules. I want to have them at one place (an instance of a class ...
5
votes
1
answer
982
views
Extracting username, password and host from a config file
The code below calls the parse_config() function which populates the global variables user, ...
1
vote
1
answer
415
views
ConfigurationManager to access entry assembly's config settings from within any other dependent assembly
I inherited a solution with many projects, and one of them contains hard coded database connection parameters. These are referenced in a number of other projects, and many of those are dependencies of ...
0
votes
1
answer
117
views
Determine the URL to use for a REST API based on configuration
There is a bit of if-else-if going in within the code.
Is there a construct which could come handy. Also the section names are very similar too
...
1
vote
2
answers
1k
views
Python function to connect to MS SQL using connection parameters from environment variables
I have the following file that is included in others. I realise I need to put in try/except but for the purposes of this question, the below should suffice
We're ...
-2
votes
1
answer
158
views
Write portable Git aliases
The following aliases return all the same number of results, on my Cygwin (on Windows):
...
2
votes
1
answer
148
views
Stop exam cheating using python: Part 2 - Argparse and config
Intro
This is a spiritual successor to the question Stop cheating on home exams using python
The details are not important, but I decided to reimplement everything using dataclasses.
My script is now ...
1
vote
1
answer
3k
views
Python - Share global variables across modules from user-defined config file
Goal
My program takes a yaml config file as parameter python myprogram.py cfg.yml.
all modules can access the cfg content with a simple module import
the imported <...
0
votes
1
answer
81
views
Utilize values in a parameters file for function inputs [closed]
In my Python projects, I often define parameters in a TOML, YAML, or JSON file. Those parameters are loaded into a dictionary which is utilized by various functions in the project. See below for some ...
1
vote
1
answer
111
views
Config for each environment (for a simple Python SDK)
I have a simple SDK in Python for internal use.
It's basically 150~200 lines of code of simple API calls wrapped around nicely that is comfortable for us to use.
It holds a few clients with methods (...
4
votes
2
answers
249
views
CGI script that reads or writes its height and weight configuration
UPDATES:
I'm looking for an answer that can answer the questions listed in the post. Moreover, this answer will not only continue my way of thinking, but also give feedback based on it. It's just like ...