Tutorial by Examples: amp

As Artery is quite complex, it is recommended to start by understanding OMNeT++. A good point to start is the TicToc tutorial. It can be found at https://omnetpp.org/doc/omnetpp/tictoc-tutorial/. This tutorial provides an overview on the basic functionality of OMNeT++. This includes, among others, t...
Excel has many Formulas built right in. Here are a few examples of some of the basic Formulas that might be handy to know when getting started with Excel: Important Note : The name and Syntax of these Formulas vary on the language of your Excel installation! For example this Function here : in Eng...
Inspect ssl certificate openssl x509 -in server.crt -noout -text Generate server key openssl genrsa -out server.key 2048 Generate csr openssl req -out server.csr -key server.key -new
Example 1, Query: SELECT char_length('ABCDE') Result: 5 Example 2, Query: SELECT character_length('ABCDE') Result: 5
#include <forward_list> #include <string> #include <iostream> template<typename T> std::ostream& operator<<(std::ostream& s, const std::forward_list<T>& v) { s.put('['); char comma[3] = {'\0', ' ', '\0'}; for (const auto& e : v...
The following Less: .paragraph{ font-size: 12px; color: blue; background: white; } .parent{ font-size: 14px; color: black; background: green; .nestedParagraph:extend(.paragraph){ } } will compile into the following css: .paragraph, .parent .nestedParagraph { ...
Generic example in a form of $a <=> $b matrix. 0 <=> 1; // -1 (left operand less than right, right is greater) 0 <=> 0; // 0 (operands are equal) 1 <=> 0; // 1 (left operand greater than right, left is greater) 1 <=> 1; // 0 (operands are equal) ╔═══════╦════╦═...
Add nuget package System.ComponentModel.Annotations Define a class: public class BankAccount { public enum AccountType { Saving, Current } [Required(ErrorMessage="First Name Required")] [MaxLength(15,ErrorMessage="First Name s...
MongoClient.connect('mongodb://localhost:27017/myNewDB',function (err,db) { if(err) console.log("Unable to connect DB. Error: " + err) else console.log('Connected to DB'); db.close(); }); myNewDB is DB name, if it does not exists in database then it...
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> // drawing shapes #include <iostream> int main( int argc, char** argv ) { // First create a black image. cv::Mat image(500,500, CV_8UC3, cv::Scalar(0,0,0...
I would like to point out that we rotate left when the shifting value is negative and we rotate right when the value is positive. public static void Main() { int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int shiftCount = 1; Rotate(ref array, shiftCount); ...
Standard usage in Activity: Context context = getApplicationContext(); Standard usage in Fragment: Context context = getActivity().getApplicationContext(); this (when in a class that extends from Context, such as the Application, Activity, Service and IntentService classes) TextView textVi...
Simple example from http://search.cpan.org/dist/sapnwrfc/sapnwrfc-cookbook.pod use strict; use warnings; use utf8; use sapnwrfc; SAPNW::Rfc->load_config('sap.yml'); my $conn = SAPNW::Rfc->rfc_connect; my $rd = $conn->function_lookup("RPY_PROGRAM_READ"); my $rc = $rd-&g...
List<Integer> immutableEmptyList = List.of(); Initializes an empty, immutable List<Integer>. List<Integer> immutableList = List.of(1, 2, 3, 4, 5); Initializes an immutable List<Integer> with five initial elements. List<Integer> mutableList = new ArrayL...
Set<Integer> immutableEmptySet = Set.of(); Initializes an empty, immutable Set<Integer>. Set<Integer> immutableSet = Set.of(1, 2, 3, 4, 5); Initializes an immutable Set<Integer> with five initial elements. Set<Integer> mutableSet = new HashSet<>(...
Map<Integer, Integer> immutableEmptyMap = Map.of(); Initializes an empty, immutable Map<Integer, Integer>. Map<Integer, Integer> immutableMap = Map.of(1, 2, 3, 4); Initializes an immutable Map<Integer, Integer> with two initial key-value entries. Map<Inte...
We also need to set correct permissions for storage files in the server. So, we need to give a write permission in the storage directory as follows: $ chmod -R 777 ./storage ./bootstrap or you may use $ sudo chmod -R 777 ./storage ./bootstrap For windows Make sure you are an admin user on t...
In this app i am directly opening InAppBrowser when the user tap the app icon instead of loading first page of app. So that would look like to user that they are viewing the app of the same website/webapp.
platform.ready().then(() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need. var url= "https://blog.knoldus.com/"; var browserRef = window.cordova.InAppBrowser.open(url, &qu...
<iframe "id="iframe_Login1"> <iframe "id="iframe_Login2"> <iframe "id="iframe_Login3"> </iframe> </iframe> </iframe> To switch into frame in selenium use swithTo() and frame()...

Page 39 of 46