Questions tagged [default]

Refers to an initial, most commonly used option, setting, or value that is automatically assigned to an application or device, outside of user intervention, with the intention of making it usable "out of the box".

A , in computer science, refers to a setting or a value automatically assigned to a software application, computer program or device, outside of user intervention. Such settings are also called presets, especially for electronic devices. Default values are generally intended to make a device (or control) usable "out of the box". A common setting, or at least a usable setting, is typically assigned.

tag should be used for questions regarding

  • Default features of programming languages (like default return type of C functions).
  • Default configuration of and Applications.

SOURCE

Wikipedia

3506 questions
48
votes
3 answers

WITH VALUES TSQL

I have been trying to understand what the WITH VALUES statement does? I cant seem to find any documentation that explains it properly. ALTER TABLE Table1 ADD newGuidId UniqueIdentifier NULL CONSTRAINT DF_Guid Default newid() with values
TheWommies
  • 4,922
  • 11
  • 61
  • 79
46
votes
3 answers

how to get the default value of a type if the type is only known as System.Type?

If I want a method that returns the default value of a given type and the method is generic I can return a default value like so: public static T GetDefaultValue() { return default(T); } Can I do something similar in case I have the type only as…
Patrick Klug
  • 14,056
  • 13
  • 71
  • 118
43
votes
4 answers

PuTTY: Change default SSH login directory

In Windows, I use PuTTY to log in a Linux-based remote server via SSH. Is is possible to change the default directory entry point I get to after I connect and login? (That would be a nice time saver.) e.g. from server/home/ to…
Bernd
  • 11,133
  • 11
  • 65
  • 98
43
votes
10 answers

Change the default location of Pycharm Project

I am using PyCharm 3.4.1 on Ubuntu 14.04. For new project it suggests ~/PyCharmProjects for storing project folders. Is it possible to change the location and name of this proposed folder? (I couldn't find any reference to changing it in the…
reducing activity
  • 1,985
  • 2
  • 36
  • 64
42
votes
5 answers

Gravatar : Is there a default image?

I have implemented gravatar for a portal I am building and wanted to know if there is a default image URL for gravatar? Not all people who visit the site are logged in or have email addresses, in such a case, is there a default image that can be…
Ritesh M Nayak
  • 8,001
  • 14
  • 49
  • 78
42
votes
3 answers

I defined a non-copy constructor; will a copy constructor still be implicitly defined?

Can the (implicit)default copy constructor be called for a class that has already user-defined constructor but that is not the copy constructor? If it is possible then, suppose we define the copy constructor for the class explicitly, now can the…
sourabh912
  • 669
  • 3
  • 7
  • 14
41
votes
6 answers

WPF button textwrap style

How do I change the default textwrapping style of a button in WPF? The obvious solution of: doesn't work, because…
mmr
  • 14,781
  • 29
  • 95
  • 145
41
votes
14 answers

python's webbrowser launches IE, instead of default browser, on Windows relative path

I'm attempting to launch a local html file from python in the default browser (right now my default is Google Chrome if I double-click on a .html file, Chrome launches.) When I use python's webbrowser.open(), IE launches instead, with a blank…
McLeopold
  • 5,967
  • 5
  • 21
  • 14
41
votes
4 answers

How can I remove a default gem? ! want to uninstall a gem 1.7.7 version of json

I have the same rails app in OSX and Ubuntu, I want to use Zeus to speed up my rspec. In Ubuntu, Zeus starts Ok, but in OSX it always be crashed. At last I find the issue, https://github.com/burke/zeus/issues/237#issuecomment-18700462 the…
wanghao
  • 3,335
  • 2
  • 18
  • 13
41
votes
2 answers

argparse default option based on another option

Suppose I have an argparse python script: import argparse parser = argparse.ArgumentParser() parser.add_argument("--foo", required=True) Now I want to add another option --bar, which would default to appending "_BAR" to whatever was specified…
paroxyzm
  • 1,422
  • 2
  • 13
  • 29
41
votes
10 answers

Visual Studio – why are line numbers off by default?

Seems totally backward to me that such an excellent IDE would hide line numbers by default. This seems like an obvious oversight, or poor default. Which means I'm missing something – because in the VS dev team vs Me, I know who has more experience.…
nailitdown
  • 7,868
  • 11
  • 36
  • 37
38
votes
6 answers

Java Map implementation that returns a default value instead of null

I have a Map> in my code, where I'd avoid potential null pointers if the map's #get() method returned an empty list instead of null. Is there anything like this in the java API? Should I just extend HashMap?
jk.
  • 7,572
  • 2
  • 25
  • 22
38
votes
3 answers

How do I change the default text font in Eclipse?

How do I set the default font size in Eclipse? I'd like to set a default for unrecognized file types, like shell scripts and text files.
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
38
votes
6 answers

Prevent default behavior in text input while pressing arrow up

I’m working with basic HTML text field with a numeric value. I’m adding JavaScript event keyup to see when user presses arrow up key (e.which == 38) – then I increment the numeric value. The code works well, but there’s one…
riddle
  • 655
  • 1
  • 6
  • 9
37
votes
9 answers

How to set the default controller in yii2

I have UserControler and I run it in virtual server http://basic.com/index.php?r=user/index. How can I set up UserController and action index to be the default when I go to http://basic.com
Jackson Tong
  • 657
  • 1
  • 6
  • 18