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
1
vote
2 answers

How can i define a default value for react-select v1

I had a react-select rendering a list of emails, and i need to keep the selected emails as a default option when the email is selected and saved, but the defaultValues are not working. How can i do that? Here is my select component: const…
1
vote
0 answers

Argument value not being passed while creating class object in PHP

I am new to PHP and am facing the below issue. There are two files: In the first PHP file I am writing the below code to create an object $oNotas = new gcibjdnf($sFiltro, false,'apcconc.nm_apelido', $bBuscarPorChassi); In the second…
1
vote
2 answers

How to set a callable function to AutoField default attribute?

I'm trying to overwrite the pk of my models to use a random generator. Here's the model field: pk = models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', default=genkey) and the keygenerator: def genkey(): return…
Umbardacil
  • 31
  • 4
1
vote
0 answers

R packages installation directory problem

I changed the default directory of the packages installation using this answer. However, when I try to use ggplot2 appears the following message: Error: package or namespace load failed for ‘ggplot2’ in rbind(info, getNamespaceInfo(env,…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
1
vote
1 answer

How do I auto-populate a field based on another field in Acumatica?

I'm trying to auto-populate a field based on another field. I have a selector field for Contracts and I created a Manager 1 field for the primary manager which is captured in the Contracts screen. I am able to get the correct results when opening…
1
vote
0 answers

How to set default app for a file extension in terminal on macOS mojave?

I have developed an application for macOS Mojave which saves / opens custom files with specific extension. I am going to ship the application, and would like the application opens when the customer double clicks on the files provided. I am aware…
mmoadeli
  • 11
  • 3
1
vote
3 answers

Side Effects inside instance declaration

Say I wanted to create a wrapper for UTCTime: data CustomDateStamp = CustomDateStamp { stampValue :: UTCTime } deriving (Show, Eq, Ord, Typeable) Now say I wanted to construct a default for that to "now", e.g. instance Default…
Abraham P
  • 15,029
  • 13
  • 58
  • 126
1
vote
5 answers

c struct with default valuabel?

Here I have the following struct typedef struct d { unsigned int size: 20; } D; the question is how the default variable size be 10. Thank your!
Charlie Epps
  • 3,595
  • 9
  • 33
  • 38
1
vote
1 answer

What is the default login password for Oracle 12c?

I just installed Oracle 12C on my home machine and didn't remember it asking to create any credentials during installation. Now, when I'm trying to connect to sample ORCL database, it's prompting one and not letting me in without!
Srini
  • 21
  • 3
1
vote
1 answer

is default parameter in Python static?

As a C++ programmer I got unexpected behaviour in Python. In the example below, the output is: y:A1 A1 B1 I however would have expected this output: B1 I used python 2.7. For me it is surprising that in the second call of the function the default…
Ernie Mur
  • 481
  • 3
  • 18
1
vote
0 answers

Prevent the Call to the default constructor

My C++ class is looking for the default constructor of another object, Throwing error. I am working on a simple C++ Legacy application. From a class, I am declaring an object of another class in its header file. In the class constructor, I am…
1
vote
3 answers

My output comes out Null instead of using the default value for strings

I have a string that is being set to a default when the input is outside of the specified values but it keeps returning null instead of the default value. what code am I missing to have the correct output? I find that my integer and double values…
DarkVier
  • 9
  • 3
1
vote
1 answer

How to fix Python dict.get() returns default value after returning key value?

When i try to input e.g. "help move" this code prints the corresponding help message to "move" and the default value. But if I understand dict.get(key[, value]) right, the default value should only come up if the key (e.g. "run" instead of "move")…
Fako
  • 13
  • 3
1
vote
3 answers

How to set default value for datetime column in MYSQL?

I have a web app, that logging some events (not important what). My web server is in different timezone , i want to log date and time of my timezone. I created simple DB table with fields: ID - BIGINT (auto increment), primary key WH - DATETIME…
FeHora
  • 336
  • 5
  • 17
1
vote
4 answers

Default object implementation

I want to implement default object pattern for my all classes in the inheritance tree. I am doing as shown below. namespace test { public class Record { public int ID { get; set; } } public class StudentRecord : Record …
Hari Narisetty
  • 176
  • 1
  • 2
  • 14
1 2 3
99
100