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

Changing Default Ports in Moqui

Moqui Framework Version : 2.1.3 The Framework runs on the default port 8080 just fine, i would like to change the default ports and i did read https://www.moqui.org/m/docs/framework/Run+and+Deploy#a2.RuntimeDirectoryandMoquiConfigurationXMLFile…
1
vote
1 answer

Set Default font family and font size in sap ui5 rich text editor

I was able to get the richtext editor working for in sap ui5 by the following code sap.ui.require(["sap/ui/richtexteditor/RichTextEditor", "sap/ui/richtexteditor/EditorType"], function (RTE, EditorType) { var…
Mohammed
  • 11
  • 2
1
vote
1 answer

Deserializing an enum with a default value with Newtonsoft.JSON

I have a json string like so { 'EnumValue': 'Foo' } I'm deserializing this value to a class with an enum which has the possible values Bar and Baz. Since "Foo" is not included in this enum, converting this string to a class instance with…
3x071c
  • 955
  • 10
  • 40
1
vote
1 answer

how can i use a uniform sql for insert when come with default value and null str in user inputs with php and mysql

Here I have a mysql table like this: create table abc ( name varchar(20) not null, value int not null default 20 ) and in the php page, I wanna use a uniform sql for all insert like this: insert into abc values('first name', '30') but…
aisensiy
  • 1,460
  • 3
  • 26
  • 42
1
vote
2 answers

Mathematica - How to set default stylesheet

I want to change my default stylesheet to StandardReport, but all I find when I google this problem is how to set a custom stylesheet as default stylesheet. Can someone please tell me how I set a non-custom stylesheet as default.
A.Dunder
  • 111
  • 1
1
vote
1 answer

How to use " = default" with a constructor that has a body?

Suppose I have a class that has a couple of member variables. In the copy constructor for example I wanna copy all the members and do some more work. Instead of copying the member variables explicitly, how to tell the compiler to have the default…
StackExchange123
  • 1,871
  • 9
  • 24
1
vote
1 answer

JOOMLA 3.x How to hide a template after if check

I'm trying to understand Joomla language and I have this situation: In a models/calcoloonline.php I have this function public function estraivariabili() { $db = JFactory::getDBO(); // Put the result into a variable first, then return it. …
1
vote
2 answers

Laravel: Setting a Default Value for Blank/Null Input

This is the code in the migration: $table->string('role')->default('Standard'); When I leave the input box blank, it gives me an error: "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'role' cannot be null How do we set the…
No One
  • 553
  • 2
  • 9
  • 24
1
vote
0 answers

set default Google Map location

We are rolling out a multisite wordpress app. Some of our users are in Africa. Some in various of the US. Each will be given a subsite in the multisite network. On each subsite, we have a page showing the member local support groups affiliated with…
Jing Gu
  • 11
  • 2
1
vote
1 answer

Spark Submit Default Command line options

How can we change the parameters in Spark Submit Default Command line options in Qubole. Though there is a option to override the values if needed under "Spark Submit Command Line Options" but this option is not available in Spark "Command Line".
Throw
  • 11
  • 2
1
vote
2 answers

react app looks different from one in w3school and other tutorials

this is the default app code in w3school or other courses in their directory (/myfirstreact/src/App.js:) : import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component{ render() { …
1
vote
2 answers

How to change the default username a postgresql db is connecting to?

I've seen posts that describe how to set postgresql server to connect to your own user but I could not find any posts that describe how to make psql connect to the default postgres user instead by default. In my case, right after installation when I…
TheDrone7
  • 13
  • 5
1
vote
1 answer

typescript - how to export all includes default when you don't know about default existence

I have a file foo.ts I got from a user, which may or may not export default (export default function(){}). I know I can parse the file to find out, I prefer not to, for performance and simplicity reasons. I need to create a file, "link file" that…
David
  • 2,528
  • 1
  • 23
  • 29
1
vote
2 answers

Is there a "revert" or "restore" function in jQuery?

Say I make a function that on-click changes div color, is there a function that on another click, restores the div to it's default or previous color, before the change? (without having to specify what was the previous color)
ilyo
  • 35,851
  • 46
  • 106
  • 159
1
vote
2 answers

Preload a core data table with default values

I have an OSX core data app (non-document based) with several tables. I'd like to ship my app with just one of those tables preloaded with a few hundred records. The user will also be able to add more records to the pre-filled table. What is the…
staeryatz
  • 449
  • 4
  • 16