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

3261 questions
1
vote
2 answers

Babel ES6 Class with default destructured parameters are undefined

I have a ES6 class with default parameters like so: constructor({ // defaults defaultOne = 'default value one', defaultTwo = ['default','value','two], defaultThree = 'default value three, }) { this.defaultOne =…
pkloss
  • 41
  • 3
1
vote
2 answers

Hash with default value that depends on the key

I have a string and a hash with a default value of "*": my_string = "a b c d" my_hash = Hash.new("*") my_hash["a"] = 1 my_hash["b"] = 2 Then I do new_string = my_string.gsub(/[abcd]/, my_hash) # => "1 2 * *" How can I make new_string also include…
1
vote
1 answer

Wordpress custom header issue

I have created a template in wordpress for the home page, named: page-home-slider.php I have chosen the home page to take that custom template. Until here everything works fine. Then I have created header-home.php, so a custom header for my home…
Catalin
  • 13
  • 3
1
vote
0 answers

No image exist, load default image - do errors slow things?

INTRO I have inventory mysql db I pull inventory records from with images. In most cases there is no image for the item so i use the following script to determine if a image exist and if not use a default image. PROBLEM Default img takes a while to…
Cliff T
  • 221
  • 2
  • 11
1
vote
1 answer

Set tkinter Entry default value

I'm developing a script that will build GUIs automatically after reading a python script. I'm having problems in getting the Entry objects that I build to accept a default value. I pass my method a dictionary (arg) which contains a default value…
WRJ
  • 547
  • 1
  • 6
  • 17
1
vote
1 answer

Set default GCC to Fink-installed GCC 4.5?

I've got GCC 4.2 that came with my installation of Mac OS X 10.6.4, plus GCC 4.5 installed via Fink. I wanted to use gcc_select to change the default compiler to GCC 4.5, but was told gcc_select does not exist. Is there another way to set the…
hpy
  • 1,497
  • 4
  • 21
  • 44
1
vote
1 answer

Specifying a default value for Django DateField and Postgresql

I'm running Django 1.9.5 and PostgreSQL 9.5. The model for my app is: from django.db import models class users(models.Model): userId = models.AutoField(primary_key=True) userUserKey = models.CharField(max_length=255) userUserName =…
5280Angel
  • 91
  • 7
1
vote
2 answers

check box stops my Jquery script

I my login form if I dont check remember me check box in php script it gives Notice: Undefined index: autologin in error. in my .php file I have $check_autologin = $_POST['autologin']; And I am checking is user checked it …
Ercan
  • 2,579
  • 9
  • 47
  • 60
1
vote
1 answer

Cannot access member of class in same package

Assume I have a base class with a package accessible member: package testcase; public class B { int b; } And it has a subclass: package testcase.sub; import testcase.B; public class C extends B { int c; } Now I need to access…
Steffen Heil
  • 3,958
  • 3
  • 29
  • 33
1
vote
1 answer

Merging text and XML data in combobox items in WPF

I have a ComboBox in WPF that gets data from XML as shown below. Title1 Title2 Title3
user5349170
  • 89
  • 1
  • 9
1
vote
1 answer

Invalid default value for column/variable (ed_fec_sol)

I'm trying to compile this procedure in Informix Data Base, but the result is: Invalid default value for column/variable (ed_fec_sol). CREATE PROCEDURE admfte.cds93_val_deu_sol ( ec_tip_deu CHAR(02), ec_ind_ori_com…
Eric
  • 11
  • 1
1
vote
2 answers

How can I have an empty date in a DateTime object?

When I get dates from a MySQL query, some of them are NULL, because unknown. However, when I translate them into PHP using date_create, null dates are replaced by the today date by default, ehich is not what I want. I tried to set the date properety…
user3542945
  • 21
  • 1
  • 3
1
vote
0 answers

cakephp dynamically database selection

I have 2 database called database1, database2 in my cakephp application. before login I have drop down of database(database1,database2). If user selects database1 then databse1 should be default database for application and if user selects database2…
Tejas Khutale
  • 84
  • 2
  • 18
1
vote
1 answer

Can the defaultSearchField in a Solr schema be set to "any or all" fields?

There is a parameter in the Solr schema to set a default search field like so... detail ...But I would like to search all fields…
dacracot
  • 20,476
  • 26
  • 98
  • 148
1
vote
2 answers

SpriteKit default landscape orientation

I am making a SpriteKit game that runs in both landscape modes. How can I pick the default landscape orientation? When I first load the game it loads in landscapeLeft (home button is on left) Looking at most games on the app store it seems the…
crashoverride777
  • 10,059
  • 2
  • 29
  • 52
1 2 3
99
100