Questions tagged [config]

Config files configure the initial settings for some computer programs

Configuration files, or config files configure the initial settings for some computer programs. They are used for user applications, server processes and operating system settings. They may be considered a simple database.

6120 questions
101
votes
14 answers

Is it possible to get the current spark context settings in PySpark?

I'm trying to get the path to spark.worker.dir for the current sparkcontext. If I explicitly set it as a config param, I can read it back out of SparkConf, but is there anyway to access the complete config (including all defaults) using PySpark?
whisperstream
  • 1,897
  • 3
  • 20
  • 25
98
votes
5 answers

Where is the user's Subversion config file stored on the major operating systems?

For Subversion 1.7, where is the SVN "config" file located on the various major operating systems (specifically on Windows, Mac OS X and Linux)?
mstrap
  • 16,808
  • 10
  • 56
  • 86
97
votes
5 answers

Why Git is not allowing me to commit even after configuration?

This question seems like a duplicate but it's really not. Just a slight difference that keeps on repeating. git keeps on telling me: "please tell me who you are", even after setting it up. when I run git commit, this is what I get.... $ git…
Obby
  • 1,353
  • 2
  • 13
  • 20
96
votes
6 answers

How can you git pull only the current branch?

Is there a config way to set this up without having to specify which branch?
qodeninja
  • 10,946
  • 30
  • 98
  • 152
95
votes
12 answers

How to check if ZooKeeper is running or up from command prompt?

I exploring a few options to setup kafka and I knew that the Zookeeper has to be up and running to initiate a kafka. I would like to know how can I find the below. 1) hostname and port for my zookeeper instance---I checked the zoo.cfg and I could…
Suren Baskaran
  • 1,228
  • 1
  • 10
  • 17
94
votes
2 answers

How to configure sqlite to display headers by default

Is there any way to configure sqlite3 so that the headers will display by default? I know I can use .headers on to turn on headers, but I have to keep typing it every time I launch the client because the setting doesn't stick between sessions. I…
spemmo
  • 943
  • 1
  • 6
  • 4
89
votes
3 answers

Is there a .mocha file where I can specify defaults such as --no-colors?

I'd like to set some defaults for mocha without having to type them each time. Does mocha look for a config file / dotfile anywhere, as jshint looks for .jshintrc and npm looks for package.json?
mcandre
  • 22,868
  • 20
  • 88
  • 147
79
votes
7 answers

Best way to store DB config in Node.Js / Express app

What would be the best way to store DB config (username, password) in an open source app that runs on node.js / Express? Two specific questions: Shall I put it into a separate config.js file in /lib folder, for example, and never include it into…
Aerodynamika
  • 7,883
  • 16
  • 78
  • 137
71
votes
5 answers

Log4Net: Rolling File appender, define extension

I want my logfile to look something like this: 2009-02-13.log but the problem is that I can't seem to find any way to add the .log extension. I've tried a lot of things but nothing helps. This is what I have this far:
user29964
  • 15,740
  • 21
  • 56
  • 63
71
votes
8 answers

How to get the values of a ConfigurationSection of type NameValueSectionHandler

I'm working with C#, Framework 3.5 (VS 2008). I'm using the ConfigurationManager to load a config (not the default app.config file) into a Configuration object. Using the Configuration class, I was able to get a ConfigurationSection, but I could not…
Liran B
  • 711
  • 1
  • 5
  • 4
68
votes
5 answers

Credentials in pip.conf for private PyPI

I have a private PyPI repository. Is there any way to store credentials in pip.conf similar to .pypirc? What I mean. Currently in .pypirc you can have such configuration: [distutils] index-servers = custom [custom] repository:…
stolho
  • 950
  • 1
  • 7
  • 15
67
votes
4 answers

How do I override Git configuration options by command line parameters?

I want to override certain Git configuration options (in my case http.proxy) when calling a Git command directly by using command line parameters. Is this possible?
mstrap
  • 16,808
  • 10
  • 56
  • 86
64
votes
2 answers

How to configure kdiff3 instead of emerge as a git mergetool?

I have Git on mac OSX Snow Leopard and I tried to edit my merge and diff tool to use kdiff3 instead of emerge. But when I try to use it does not launch the GUI of kdiff and keeps me with a cmd based interface. My setting in gitconfig are: [merge] …
AKFourSeven
  • 1,305
  • 3
  • 18
  • 31
64
votes
4 answers

Grails BuildConfig.groovy, difference between build, compile, and runtime?

What's the difference between build, runtime, and compile, in BuildConfig.groovy (1.3.7) grails.project.dependency.resolution = { plugins { build "acme:acme-cache:latest.integration" } dependencies { build…
raffian
  • 31,267
  • 26
  • 103
  • 174
62
votes
10 answers

How can I find out where a Perl module is installed?

How do get the path of a installed Perl module by name, e.g. Time::HiRes? I want this just because I have to run my perl script on different nodes of a SGE Grid Engine system. Sometimes, even run as other username. I can use CPAN.pm to install…
Galaxy
  • 1,862
  • 1
  • 17
  • 25