# The following shell function will be used to generate completions for
# the "nuance_tune" command.
_nuance_tune_opts ()
{
local curr_arg prev_arg
curr_arg=${COMP_WORDS[COMP_CWORD]}
prev_arg=${COMP_WORDS[COMP_CWORD-1]}
# The "config" option takes a file arg, so ...
OPENJSON function parses collection of JSON objects and returns values from JSON text as set of rows. If the values in input object are nested, additional mapping parameter can be specified in each column in WITH clause:
declare @json nvarchar(4000) = N'[
{"data":{"num":"...
When creating a timer, you can set the userInfo parameter to include information that you want to pass to the function you call with the timer.
By taking a timer as a parameter in said function, you can access the userInfo property.
NSDictionary *dictionary = @{
@&quo...
Dependencies can be added for specific configuration like test/androidTest
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
testCompile 'junit:junit:3.8.1'
Alternatively create your own configuration
configurations {
myconfig
}
And then download dependency fo...
Add the I18N nuget package to your MVC project.
In web.config, add the i18n.LocalizingModule to your <httpModules> or <modules> section.
<!-- IIS 6 -->
<httpModules>
<add name="i18n.LocalizingModule" type="i18n.LocalizingModule, i18n" />
&...
Connection factories are the managed objects that allows application to connect to provider by creating Connection object. javax.jms.ConnectionFactory is an interface that encapsulates configuration parameters defined by an administrator.
For using ConnectionFactory client must execute JNDI lookup ...
Basically you can use type inference whenever it is possible.
However, be careful when combining Option Infer Off and Option Strict Off, as this can lead to undesired run-time behavior:
Dim someVar = 5
someVar.GetType.ToString() '--> System.Int32
someVar = "abc"
someVar.GetType.To...
Description:
Evaluate expression after user's confirmation.
Arguments:
ng-confirm-click:(expression) Expression to evaluate when confirmed.
ng-confirm-message:(template) Message to be shown in confirm dialog.
Code:
Directives.directive("ngConfirmClick", ["$parse","...
YAML provides a way to store structured data. The data can be a simple set of name-value pairs or a complex hierarchical data with values even being arrays.
Consider the following YAML file:
database:
driver: mysql
host: database.mydomain.com
port: 3306
db_name: sample_db
...
A relation(or relation schema) in a given database is in first normal form, if the domain of all attributes of that relation is atomic. A domain is atomic if all the elements of that domain are considered to indivisible units. Suppose a relation employee, has attribute name, then the relation is not...
To normalize the database in the second form, there must not be any partial dependency of any column on primary key.
Let's consider the following example:
idnamedobsubject1Mark1-1-1981Physics2Jack2-2-1982Math2Jack2-2-1982Biology3John3-3-1983Math
This table is considered to have a composite primar...
One more PCRE modifier that allows the use of duplicate named groups.
NOTE: only inline version is supported - (?J), and must be placed at the start of the pattern.
If you use
/(?J)\w+-(?:new-(?<val>\w+)|\d+-empty-(?<val>[^-]+)-collection)/
the "val" group values will be ...
Here we will be checking out the latest copy of our project's code, run the tests and will make the application live.To achieve that, follow below steps:
Open Jenkins in browser.
Click the New Job link.
Enter project name and select the Build a free-style software project link.
Click on Ok but...
Information about the database connections
SELECT
a.mon$attachment_id as Attachment_ID,
a.mon$server_pid as Server_PID,
case a.mon$state
when 1 then 'active'
when 0 then 'idle'
end as State,
a.mon$attachment_name as Database_Name,
...
If we have a Model as following,
from django.db import models
from django.contrib.auth.models import User
class UserModuleProfile(models.Model):
user = models.OneToOneField(User)
expired = models.DateTimeField()
admin = models.BooleanField(default=False)
employee_id = models...
It may be helpful to include additional information with an exception, e.g. for logging purposes or to allow conditional handling when the exception is caught:
class CustomError < StandardError
attr_reader :safe_to_retry
def initialize(safe_to_retry = false, message = 'Something went wro...
You can define the signing configuration to sign the apk in the build.gradle file.
You can define:
storeFile : the keystore file
storePassword: the keystore password
keyAlias: a key alias name
keyPassword: A key alias password
You have to define the signingConfigs block to create a signin...
You can define the signing configuration in an external file as a signing.properties in the root directory of your project.
For example you can define these keys (you can use your favorite names):
STORE_FILE=myStoreFileLocation
STORE_PASSWORD=myStorePassword
KEY_ALIAS=myKeyAlias
KEY_PASSWOR...