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
1 answer

Symfony 4 - Default value form not working

I have a little problem I don't understand. I want to display my errors in the same location at the top of the form, I used form_errors(form) Then in my form, I added a default value to my fields.          $resolver->setDefaults([ 'data_class'…
Scozor
  • 11
  • 3
1
vote
1 answer

CharField(editable=False) with local variable as deault

im new to django and am trying to figure out how to add a specific field to a django model. I want to upload a csv document and save its headers. As you can see, i want to use the headers i send with the document, or if they arent send, the ones…
jan biel
  • 35
  • 6
1
vote
0 answers

Hybrid angular app throwing error "'./app.module.ajs.js' does not provide an export named 'default'"

I am attempting to convert my AngularJS project to run as a hybrid (i.e. 1.x alongside 2+) following the bootstrapping steps provided at the angular.io guide page provided specifically for the task. I have followed the guide with some modifications…
spb
  • 4,049
  • 6
  • 22
  • 30
1
vote
2 answers

404 Error accessing static content when defualt servlet is defined in web.xml

I am running a webapp in a Tomcat 7 container, and am recieving 404 errors when attempting to access static content (.css, etc.). Below is my directory structure: ROOT META-INF resources css WEB-INF classes lib I have defined a default…
elpisu
  • 759
  • 3
  • 11
  • 18
1
vote
2 answers

Why are Vim filetype options ON when ~/.vimrc is missing but OFF when it is present?

I am using Vim 8.1 on a Ubuntu system. Here are the three cases I have found. Case 1 $ ls -l ~/.vimrc ls: cannot access '/home/lone/.vimrc': No such file or directory $ vim -u NONE +':filetype' filetype detection:OFF plugin:OFF indent:OFF Case…
Lone Learner
  • 18,088
  • 20
  • 102
  • 200
1
vote
1 answer

Change pandas default fillna setting

I would like to change the default behavior of pandas to fill empty elements with something other that float('nan'), without modifying the source code. I can easily replace NaN after I've created a DataFrame using DataFrame.fillna(), but instead…
likethevegetable
  • 264
  • 1
  • 4
  • 17
1
vote
3 answers

mysql trigger on a null value being inserted

I was wanting a mysql trigger for a specific field. When a NULL value is inserted into this field I would like to replace it with a default value. I know this code is not correct, but it would give you an idea of what I want. CREATE TABLE IF NOT…
Brook Julias
  • 2,085
  • 9
  • 29
  • 44
1
vote
3 answers

How do I prevent an application from being used as a default opener for ANY file?

MacOS is continually using Xcode to open various files in my OS. I already know how to set a default app opener for all files with a particular extension (.txt, .py, etc...), but I can't use this feature with "extensionless" files like…
Taylor
  • 21
  • 3
1
vote
0 answers

The problem with using copilot and connect in one file

Since copilot requires the use of export default, and I already made export default for connect, a problem arose. All the options that I found to solve the problem allow you to either run or copilot or connect. import PropTypes from…
1
vote
2 answers

How to change the default GIT branch from cmd

I'm trying to figure out how to change the default git branch from the command line (I know how to do this via the web page, but don't want to automate it using selenium). The reason I want to do this is because i can't close issues unless the…
WorkerBee
  • 31
  • 2
  • 10
1
vote
0 answers

Entity is not assignable to the same property in base type Service: Generic default on another generic

I'm trying to assign a generic type to another as default and return the assignee generic type in a function on an abstract class. I wanted it to be totally straightforward for the extended class for override it using the default value with no…
Nick2324
  • 45
  • 1
  • 6
1
vote
2 answers

Why does restoring Eclipse / Content Assist defaults not persist when Eclipse is closed and later re-opened?

Working environment: Windows 10, Eclipse 2019-06 (v. 4.12.0) A couple months ago I changed some of the settings at Window>Java>Editor>Content Assist>Advanced. After a few weeks I realized that the default settings worked better than my changes, so I…
jfr
  • 397
  • 2
  • 17
1
vote
2 answers

How to reset DEFAULT value on a column On ORACLE TABLE

I have a table in which one of the column is set default to 0000 and the data type of of the column is number. I want to remove the default value and when a record is saved null should save on this column.
user1015388
  • 1,283
  • 4
  • 25
  • 45
1
vote
2 answers

Resetting console.log to it's default functionality

On a live website, I've previously changed console.log to be: var console = {}; console.log = function () {}; With this code always executing, is it possible to reinstate the console functionality after this code, and if so, how? It's needed, since…
Gareth
  • 92
  • 8
1
vote
1 answer

How to make 2 "Friends" compare and see if they are on eachothers list of friends?

So I am using classes and def to make it so if 2 People (Which I have as a class) are in each others friends list, well their ID which is specific to each person. Be removed from that list, and be added to a mutual friends lists. I haven't tried…
1 2 3
99
100