Tutorial by Examples

If necessary, change to your project directory cd MyAwesomeProject 1- Add react and react-router meteor npm install --save [email protected] [email protected] [email protected] 2- Edit client/main.html, and replace the content will be: <body> <div id="react-root"></div...
If necessary, change to your project directory cd MyAwesomeProject 1- Add accounts packages: meteor add accounts-base accounts-password react-meteor-data 2- Add the routes to login and signup pages in imports/startup/Routes.jsx The render() method will be as follows: render() { return ( ...
1- Add roles package ( https://github.com/alanning/meteor-roles) meteor add alanning:roles 2- Create some roles constants. In file imports/api/accounts/roles.js const ROLES = { ROLE1: 'ROLE1', ROLE2: 'ROLE2', ADMIN: 'ADMIN' }; export default ROLES; 3- I'll not show how to add/upda...
db2 connect to {databaseName} db2 drop table {schema}.{table} db2 connect reset The schema is not necessary if it matches the current user name. The "db2" prefix is not necessary if you are already in a DB2 command prompt.
These are loops in which their loop body contains no other loops (the innermost loop in case of nested). In order to have loop coverage, testers should exercise the tests given below. Test 1 :Design a test in which loop body shouldn’t execute at all (i.e. zero iterations) Test 2 :Design a test in...
A nested loop is a loop within a loop. The outer loop changes only after the inner loop is completely finished / interrupted. In this case, test cases should be designed in such a way that Start at the innermost loop. Set all the outer loops to their minimum values. Perform Simple loop testing o...
Two loops are concatenated if it’s possible to reach one after exiting the other on same path from entrance to exit. Sometimes these two loops are independent to each other. In those cases we can apply the design techniques specified as part of single loop testing. But if the iteration values in on...
Ubuntu # sudo apt-get update # sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc Windows Recommended The normal and recommended way to install VLC on a Windows operating system is via the installer package.(Download Link)
<template> <div class="nice">Component {{title}}</div> </template> <script> export default { data() { return { title: "awesome!" }; } } </script> <style> .nice { background-col...
The simplest approach to the problem (and the most commonly used so far) is to split sentences into tokens. Simplifying, words have abstract and subjective meanings to the people using and receiving them, tokens have an objective interpretation: an ordered sequence of characters (or bytes). Once sen...
Step 1: Open a Document Step 2 Option A: Press Alt + F11 This is the standard shortcut to open the VBE. Step 2 Option B: Developer Tab --> View Code First, the Developer Tab must be added to the ribbon. Go to File -> Options -> Customize Ribbon, then check the box for developer. Th...
The core data structure in numpy is the ndarray (short for n-dimensional array). ndarrays are homogeneous (i.e. they contain items of the same data-type) contain items of fixed sizes (given by a shape, a tuple of n positive integers that specify the sizes of each dimension) One-dimensional ar...
Open Visual Studio Select File --> New --> Project menu or push Ctrl + Shift + N buttons Select Outlook VSTO Add-in template Add the following code to the project: private void ThisAddIn_Startup(object sender, System.EventArgs e) { MessageBox.Show("Hel...
Associated objects are useful when you want to add functionality to existing classes which requires holding state. For example, adding a activity indicator to every UIView: Objective-C Implementation #import <objc/runtime.h> static char ActivityIndicatorKey; @implementation UIView (Ac...
Integral type ranges ( IntRange , LongRange , CharRange ) have an extra feature: they can be iterated over. The compiler takes care of converting this analogously to Java's indexed for-loop, without extra overhead for (i in 1..4) print(i) // prints "1234" for (i in 4..1) print(i) // pri...
if you want to iterate over numbers in reverse order? It's simple. You can use the downTo() function defined in the standard library for (i in 4 downTo 1) print(i) // prints "4321"
Is it possible to iterate over numbers with arbitrary step, not equal to 1? Sure, the step() function will help you for (i in 1..4 step 2) print(i) // prints "13" for (i in 4 downTo 1 step 2) print(i) // prints "42"
To create a range which does not include its end element, you can use the until function: for (i in 1 until 10) { // i in [1, 10), 10 is excluded println(i) }
By default structures are padded in C. If you want to avoid this behaviour, you have to explicitly request it. Under GCC it's __attribute__((__packed__)). Consider this example on a 64-bit machine: struct foo { char *p; /* 8 bytes */ char c; /* 1 byte */ long x; /* 8 bytes */ ...
This will be a very basic app which will illustrate different ModalpresentationStyle in iOS. According to documentation found here, There are 9 different values for UIModalPresentationStyle which are as follows, fullScreen pageSheet formSheet currentContext custom overFullScreen overCurrent...

Page 1269 of 1336