Is it .yaml or .yml?

The nature and even existence of file extensions is platform-dependent (some obscure platforms don’t even have them, remember) — in other systems they’re only conventional (UNIX and its ilk), while in still others they have definite semantics and in some cases specific limits on length or character content (Windows, etc.). Since the maintainers have asked … Read more

How can I save application settings in a Windows Forms application?

If you work with Visual Studio then it is pretty easy to get persistable settings. Right click on the project in Solution Explorer and choose Properties. Select the Settings tab and click on the hyperlink if settings doesn’t exist. Use the Settings tab to create application settings. Visual Studio creates the files Settings.settings and Settings.Designer.settings … Read more

How to store Node.js deployment settings/configuration files?

I use a package.json for my packages and a config.js for my configuration, which looks like: var config = {}; config.twitter = {}; config.redis = {}; config.web = {}; config.default_stuff = [‘red’,’green’,’blue’,’apple’,’yellow’,’orange’,’politics’]; config.twitter.user_name = process.env.TWITTER_USER || ‘username’; config.twitter.password= process.env.TWITTER_PASSWORD || ‘password’; config.redis.uri = process.env.DUOSTACK_DB_REDIS; config.redis.host=”hostname”; config.redis.port = 6379; config.web.port = process.env.WEB_PORT || 9980; module.exports = … Read more