Tutorial by Examples: er

Using the POWERSHELL command, we can execute a 1-line command directly from a batch script, without any temporary file. Here's the syntax. powershell.exe -Command <yourPowershellCommandHere> You may also want to include other flags, like -Nologo to improve the actual outcome.
NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier]; [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:appDomain];
In landscape orientation \documentclass[final,t]{beamer} \mode<presentation> { \usetheme{Berlin} } \usepackage[orientation=landscape,size=a1,scale=1,debug]{beamerposter} \usepackage{lipsum} % for dummy text \title[]{\huge Awesome title} \author[]{\large \textbf{Author Name...
\documentclass[final,t]{beamer} \mode<presentation> { \usetheme{Berlin} } \usepackage[orientation=landscape,size=a1,scale=1,debug]{beamerposter} \usepackage{lipsum} % for dummy text \usepackage{graphicx} % for dummy image \usepackage{tikz} % for tikzpicture \usepackage{pgfplot...
Listing services systemctl To list running services systemctl --failed To list failed services Managing Targets (Similar to Runlevels in SysV) systemctl get-default To find the default target for your system systemctl set-default <target-name> To set the default target for your syst...
Docs: observers, multi-property observers, observing array mutations, adding observers dynamically. Adding an observer in the properties block lets you observe changes in the value of a property: static get properties() { return { myProperty: { observer: '_myPropertyChanged' ...
\documentclass[12pt]{article} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{lipsum} % for dummy text \pagestyle{myheadings} \pagestyle{fancy} \fancyhf{} \setlength{\headheight}{30pt} \renewcommand{\headrulewidth}{1pt} \renewcommand{\footrulewidth}{2p...
#include opencv2/opencv.hpp> #include vector> using namespace std; using namespace cv; int main() { Mat3b img = imread("test.jpg"); imshow("Original", img); // Cluster int K = 8; int n = img.rows * img.cols; Mat data = img.reshape(1, n); data.convertTo(data, CV_32F); ...
To create a NSUserActivity object, your app must declare the types of activities it supports in its Info.plist file. Supported activities are defined by your application and should be unique. An activity is defined using a reverse-domain style naming scheme (i.e. "com.companyName.productName.ac...
This example covers the implementation of Allure Reports in Selenium using TestNG, Java and Maven. Maven Configuration Repository Add following code to configure the jcenter repository <repository> <id>jcenter</id> <name>bintray</name> ...
Let's say that Bob owns a social website that allows users to personalize their profiles. Alice goes to Bob's website, creates an account, and goes to her profile settings. She sets her profile description to I'm actually too lazy to write something here. When her friends view her profile, this co...
Let's say that Bob owns a site that lets you post public messages. The messages are loaded by a script that looks like this: addMessage("Message 1"); addMessage("Message 2"); addMessage("Message 3"); addMessage("Message 4"); addMessage("Message 5&qu...
If you don't think that malicious scripts can harm your site, you are wrong. Here is a list of what a malicious script could do: Remove itself from the DOM so that it can't be traced Steal users' session cookies and enable the script author to log in as and impersonate them Show a fake "Yo...
Chunks are pieces of code that can be executed interactively. In-order to insert a new chunk by clicking on the insert button present on the notebook toolbar and select your desired code platform (R in this case, since we want to write R code). Alternatively we can use keyboard shortcuts to insert a...
You can check R Version using the console version
When you use python file as module there is no need always check if package is installed but it is still useful for scripts. if __name__ == '__main__': try: import requests except ImportError: print("To use this module you need 'requests' module") t ...
To understand the filter expressions, we should start with Filter Term. This is a simple array of strings, containing at least 3 elements: Filter (Field/Join field/Formula/Summary) Operator (search.Operator) Values (string value(or array of string values), to be used as filter parameter) //...
Simple filter expression is also an array. It contains one or more filter terms, combined with operators - 'AND', 'OR', 'NOT'. (Operators are case insensitive): [ ['mainline', 'is', 'T'], 'and', ['type','anyof',['CustInvc','CustCred']], 'and', 'not', ['amount', 'equalto', '0.00'], 'or'...
Filter expressions cannot include Filter Objects. This is very important. If you decide to form your filters with Filter Expression, you use array of string arrays. The following syntax is wrong: // WRONG!!! var f1 = search.createFilter({ name: 'mainline', operator: searc...

Page 408 of 417