When you have multiple subscriptions under your Azure account; it's important that you are selecting the one you wish to operate on (and use this as default); to avoid accidents happening to resources on the wrong subscription.
Classic mode
Set-AzureSubscription
Select-AzureSubscription
Resou...
The AND keyword is used to add more conditions to the query.
NameAgeGenderSam18MJohn21MBob22MMary23F
SELECT name FROM persons WHERE gender = 'M' AND age > 20;
This will return:
NameJohnBob
using OR keyword
SELECT name FROM persons WHERE gender = 'M' OR age < 20;
This will return:
n...
Magento custom module development is a core part of any Magento development or Magento project, because at any stage you may want to integrate your own functionality/module in your existing Magento project.
The first thing developers should disable is the system cache. Otherwise developing will bec...
A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings:
String
XML resource that provides a single string.
Syntax:
<?xml version="1.0" encoding="...
Create a new project with the Leiningen figwheel template:
lein new figwheel hello-world
Run Figwheel:
cd hello-world
lein figwheel
After a moment it will start a development webserver and open the page in your browser.
It also opens a Clojurescript REPL connected to the browser. Try enter...
When working with existing model that is quite big and is being regenerated quite often in cases where abstraction needed it might be costly to manually go around redecorating model with interfaces. In such cases one might want to add some dynamic behavior to model generation.
Following example wil...
:s/foo/bar/c Marks the first instance of foo on the line and asks for confirmation for substitution with bar
:%s/foo/bar/gc Marks consecutively every match of foo in the file and asks for confirmation for substitution with bar
It's possible to pass Java objects to Nashorn engine to be processed in Java code. At the same time, there are some JavaScript (and Nashorn) specific constructions, and it's not always clear how they work with java objects.
Below there is a table which describes behaviour of native Java objects ins...
User-defined method objects may be created when getting an attribute of a class (perhaps via an instance of that class), if that attribute is a user-defined function object, an unbound user-defined method object, or a class method object.
class A(object):
# func: A user-defined function object...
In C, a pointer can refer to another pointer.
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int A = 42;
int* pA = &A;
int** ppA = &pA;
int*** pppA = &ppA;
printf("%d", ***pppA); /* prints 42 */
return EXIT_SUCCESS;
}
But, ref...
Debug Print shows the instance representation that is most suitable for debugging.
print("Hello")
debugPrint("Hello")
let dict = ["foo": 1, "bar": 2]
print(dict)
debugPrint(dict)
Yields
>>> Hello
>>> "Hello"
>>...
Violin plots are kernel density estimates mirrored in the vertical plane. They can be used to visualize several distributions side-by-side, with the mirroring helping to highlight any differences.
ggplot(diamonds, aes(cut, price)) +
geom_violin()
Violin plots are named for their resemblance...
async.parallel(tasks, afterTasksCallback) will execute a set of tasks in parallel and wait the end of all tasks (reported by the call of callback function).
When tasks are finished, async call the main callback with all errors and all results of tasks.
function shortTimeFunction(callback) {
set...
async.series(tasks, afterTasksCallback) will execute a set of tasks. Each task are executed after another. If a task fails, async stops immediately the execution and jump into the main callback.
When tasks are finished successfully, async call the "master" callback with all errors and all...
async.waterfall(tasks, afterTasksCallback) will execute a set of tasks. Each task are executed after another, and the result of a task is passed to the next task. As async.series(), if a task fails, async stop the execution and call immediately the main callback.
When tasks are finished successfull...
SELECT name, caption as title, year, pages FROM books
UNION
SELECT name, title, year, 0 as pages FROM movies
When combining 2 record sets with different columns then emulate the missing ones with default values.
extern int var;
static int var; /* Undefined behaviour */
C11, §6.2.2, 7 says:
If, within a translation unit, the same identifier appears with both
internal and external linkage, the behavior is undefined.
Note that if an prior declaration of an identifier is visible then it'll have the pri...
Use the yum command to manage packages in Enterprise Linux-based operating systems:
yum install php
This installs a minimal install of PHP including some common features. If you need additional modules, you will need to install them separately. Once again, you can use yum to search for these pac...
Note:
There will be some Objective-c in this example..
We will make a wrapper to C++ in this example, So don't worry to much about it.
First start Xcode and create a project.
And select a Cocoa application
Delete all sources except the Info.plist file.(Your app won't work without it)
Creat...
You can use the header() function to instruct the browser to redirect to a different URL:
$url = 'https://example.org/foo/bar';
if (!headers_sent()) { // check headers - you can not send headers if they already sent
header('Location: ' . $url);
exit; // protects from code being executed afte...