Configuration is the process of specifying the settings used for a system or application.
1
vote
0answers
23 views
Configure Webpack to handle cache-busting
I'm not very familiar with webpack, and I was very afraid that what I implemented for cache busting would break something. What I have seems to work. When I open up the built folder, under ...
3
votes
1answer
43 views
Python configuration module for a web framework
I'm currently writing a web framework and I wanted to add a configuration module for reading environment variables and a configuration toml file.
Here is the code. The comment in the ...
1
vote
1answer
29 views
Overriding default animation parameters with custom values
Using JavaScript ES5, I would like to know if you could suggest me a more "elegant" and succinct way to overriding defaults variable when User pass custom values.
In the following example, an ...
-2
votes
0answers
12 views
Configuration object vs function [migrated]
I'm designing a configurable api and I've seen a few ways to accept options from the caller.
One is using an options object like so:
...
0
votes
4answers
52 views
Creating enchantment objects based on configuration
I'm searching a way to literally shorten my code.
For the moment my code is this;
...
2
votes
1answer
23 views
Regex detection for Puppet configuration
I've got a PR to add a feature to a Ruby application (Puppet) to allow Regex detection.
Right now, the method only does comparison on exact string matching:
...
6
votes
1answer
32 views
Parsing a key=value config file for a Python FreeCell game
I'm new to Python, and my first serious project was a FreeCell game. The game works, with lots of options to combine moves, save games, load them, etc. But I skimped on some specifics of Python. In ...
3
votes
1answer
34 views
Duplicate string references and centralize properties/error handling
I don't like the idea of sprinkling process.env all over the place and wanted to abstract it out a bit. I'm new to Node and know there must be a better way to do a few things.
Not repeat the name 4 ...
4
votes
3answers
317 views
Reading properties from file during standalone application startup
I've a standalone Java application, which basically starts and manages two socket servers. I'd like to configure server ports in a .properties file using the ...
3
votes
2answers
53 views
Config file to struct in C
I have a struct OPTS which contains a few chars and char[]s. I also have a file opts.cnf ...
5
votes
2answers
383 views
Small part of an INI parser
I know there are probably thousands of INI parser implementations in C.
Nevertheless I want to implement one to learn the art of parsing grammar.
I just wrote a small piece of the INI parser and ...
0
votes
2answers
71 views
Set ENV variables for Ruby on Rails
I've followed the steps from this video from railscasts for setting ENV variables.
This is my configuration:
config/database.yml
...
1
vote
0answers
106 views
libconfini (shared library)
I recently wrote a small INI parsing library. The code is also on GitHub, with documentation. I would like to have opinions, suggestions, and critiques.
confini.h
...
2
votes
1answer
82 views
C# XML Config File
I'm trying to find a simple, clean and fast way to implement an XML config file in C# without any 3rd party tools. It also should replace this restricted ...
4
votes
1answer
166 views
Script to send push notifications using email, Pushbullet, or Pushover
I have built a tiny script to send out push notifications. I would be glad to receive general suggestions / feedback.
My main problem is that the only security offered is coming from the OS ...
1
vote
2answers
74 views
Webdriver-based test that uses configuration parameters from a database [closed]
I am writing automated functional tests for my application. To interact with the application, I use the SQL database to retrieve data and validate data.
One of the challenges that I'm facing is that ...
6
votes
2answers
111 views
Simple ini file parser
The below is a C++ parser for a reasonably simple INI grammar (although my understanding is that there isn't an official spec as such).
My grammar is roughly:
...
2
votes
0answers
139 views
Implementation of custom config section
i recently wrote my first custom config section. I have a collection of index files, each has a path and a savetime:
...
7
votes
3answers
635 views
ini file parser in C++
Please review my ini file parser (and potentially some general config file formats).
The data structure used is a section, see below. Does that seem a good approach?
I was wondering about the name. ...
1
vote
0answers
208 views
Simple YAML-based config file parser
I have written a simple yaml based config parser in Python. The idea is that it will get passed around in other scripts after being initialized with a config file within a main function.
I am ...
4
votes
2answers
68 views
Creating a device configuration
During the test process of a device, there is a procedure that sets a device in a state in which it is ready to be tested (typically by writing default measure parameters, 3G connection parameters and ...
4
votes
2answers
471 views
SSH passing your Public key to all the users on remote host
I've grown tired of typing my password back and forth to all the hosts you connect to, i want to be able to jump to every single user on all the hosts with ease.
So i've made this script with a ...
2
votes
2answers
221 views
Loading settings from a file to a dictionary
Today I coded a class to get settings from a file and to load them in to a dictionary.
Please post and feedback, improvements and changes, no matter how big or small, as long as they are actual ...
1
vote
2answers
61 views
Class to read the property files
I wrote the following code to read the config/property files. I will be exposing my api as jar to multiple application teams.
Functionality:
Reads the property files and returns the resource bundle ...
3
votes
2answers
46 views
Configuring fields to be extracted by a data processor
I solved this problem using closures with Perl and I wonder if/how I could/should have done it differently?
Background:
User creates config file describing properties of some source data file that ...
3
votes
3answers
74 views
Application that processes XML based on configuration
I used CodeClimate to evaluate my code and marked that the following piece of code appeared twice in my source:
...
3
votes
2answers
73 views
Read a config file into an array
I just wanted to know if this looks like a good way of reading a config file. Is this code good? Is it clean and easy to follow?
...
3
votes
1answer
57 views
PHP Configuration class
Created this little config class, any room for improvements? Think I have done an alright job but would like to know if any improovements could be made?
...
3
votes
1answer
153 views
Inheritable ConfigurationElement values in .NET
I wanted to have a custom section in my app.config file in which any element could reference and reuse (or better said could inherit) any string value that is defined in it or above it in the element ...
6
votes
3answers
259 views
Loading Configurations from plist into singleton
In my iOS application, I've created a singleton class that reads a configuration plist file and provides accessor methods to easily retrieve the values:
...
7
votes
1answer
108 views
Configuration concept and implementation
I created an API to load, save and read user configuration in my application. I've a Configuration interface which provides the basic methods to read, save and read ...
8
votes
3answers
214 views
Abstracted Interface for Settings
I just learned about the beauties and wonders of interfaces and I realized how I could fix some code that has been bothering me because of its duplication.
This is ...
5
votes
2answers
143 views
Reading configuration from a file for video rendering
I haven't done anything similar so I got nothing to go on. The point was to load everything from the file and I thought a struct would be a good choice to be the ...
5
votes
4answers
426 views
Ini file parser project
I would appreciate any opinions and critiques anyone has on my code.
My code allow you to read a ini file.
parser.c
...
12
votes
4answers
295 views
Rolling my own Configuration with UI
The Rubberduck Saga continues as I find a need to roll my own configuration. Since the program is really a *.dll and available to several host applications, using app.config is not an option. I ...
2
votes
2answers
345 views
Loading site configuration from ini file
I load in static setting via an ini file. Ini file have the benefits
of NOT being server by most web servers by default.
easier to edit than XML
even simplier than JSON
Setting get loaded in ...
3
votes
2answers
499 views
Configuring a currency converter to get exchange rate feeds for for multiple currencies
I'm trying to make my function more versatile by removing hard coded data.
...
4
votes
2answers
645 views
Reusable configuration reader for Java
This is related to a question I posted on Stack Overflow. The consensus was to use JAXB, which is what I did.
One of the requirements was that it needed to work with legacy XML configuration files. ...
8
votes
3answers
1k views
Storing a Ruby app's settings
I have used code which looks a little like this in an app I'm working on:
...