Tutorial by Examples: ti

Encryption is used to transform data in its orignal format (Eg: The contents of a letter, Credentials part of authorizing a financial transaction) to something that cannot be easily reconstructed by anyone who is not intended to be part of the conversation. Basically encryption is used to preve...
When a hit is sent to Google Analytics the data must be processed. Processing latency is 24-48 hours. This means that it can take time before you will see data under standard reports (Not real-time) any data that you do see may not be correct as it has probably not completed processing. Standard a...
It is possible to create more complex loops with dictionaries. From vars: packages: - present: tree - present: nmap - absent: apache2 then the loop: - name: manage packages package: name={{ item.value }} state={{ item.key }} with_items: '{{ packages }}' Or, if you don't like ...
You can use a dictionary for a slightly more complex loop. - name: manage packages package: name={{ item.name }} state={{ item.state }} with_items: - { name: tree, state: present } - { name: nmap, state: present } - { name: apache2, state: absent }
To decouple and reuse the same error logging code for all your services you need two boilerplate classes and tuck them away in a library somewhere. ErrorhandlerAttribute implementing IServiceBehavior. FaultErrorhandler implementing IErrorhandler which logs all the exceptions. [AttributeUsage(Attr...
Instead of bloating your main js file that contains your navigator with buttons. It's cleaner to just inject buttons on-demand in any page that you need. //In the page "Home", I want to have the right nav button to show //a settings modal that resides in "Home" component. c...
HttpClient httpClient = new StdHttpClient.Builder(). url("http://yourcouchdbhost:5984"). username("admin"). password("password"). build(); CouchDbInstance dbInstance = new StdCouchDbInstance(httpClient);
Given you have a valid CouchDbInstance instance, you connect to a database within CouchDB in the following manner CouchDbConnector connector = dbInstance.createConnector("databaseName", true);
FirebaseUI offers Android, iOS, and Web clients. You can get started with them like so: Android: // app/build.gradle dependencies { // Single target that includes all FirebaseUI libraries compile 'com.firebaseui:firebase-ui:0.5.2' // FirebaseUI Database only compile 'com.f...
The UWP applications can run in windowed mode and on several devices. They can be displayed on a wide range of screen sizes from low end phones to the huge surface hub screen. Using relative positioning will be enough for a lot of scenario but as the window size increases, it is always interesting t...
Objective C CATransition *animation = [CATransition animation]; [animation setSubtype:kCATransitionFromRight];//kCATransitionFromLeft [animation setDuration:0.5]; [animation setType:kCATransitionPush]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEa...
We can add adaptivity to any subclass of UIView which we add on view controller in nib file. Lets take an example of adding adaptivity using size classes to a view. Add a view on view controller as: Now we need to pin this view to it's superview for fixing it's size and position using con...
If you want to detect missings with df=pd.DataFrame({'col':[1,np.nan]}) df==np.nan you will get the following result: col 0 False 1 False This is because comparing missing value to anything results in a False - instead of this you should use df=pd.DataFrame({'col':[1,np.nan]}) ...
Go to Main.cs file in iOS project and change existed code, like presented below: static void Main(string[] args) { try { UIApplication.Main(args, null, "AppDelegate"); } catch (Exception ex) { Debug.WriteLine(...
let doc = require('dynamodb-doc'); let dynamo = new doc.DynamoDB(); var tblName = "MyTable"; exports.handler = (event, context, callback) => { readOperation(context); } function readOperation(cnxt) { var params = { TableName: tblName, Key: { "id": ...
By default, the url property is not defined. Calling fetch() (while using the default Backbone.sync) will result in a GET request to the results of url. var Users = Backbone.Collection.extend({ url: '/api/users', // or url: function () { return '/api/users' } }); va...
For a more real time solution you can use watchPosition function in Geolocation that notifies whenever an error or a position change occurs. Unlike the getCurrentPosition the watchPosition returns an Observable import {Geolocation} from 'ionic-native'; import template from './custom-component.htm...
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Interactivity; using System.Windows.Media; using System.Windows.Media.Imaging; namespace MyBehavior...
Dependency resolver is used to avoid tightly-coupled classes, improve flexibility and make testing easy. You can create your own dependency injector (not recomended) or use one of well-written and tested dependency injectors. In this example I am going to use Ninject. Step one: Create dependency re...
WordPress is applying pre_get_posts filter to literally any loop it generates. It means that all changes we are making in our callback function are applied to all exiting loops. Obviously it is not what we want in most scenarios. In most cases we would like to target only main loop, and only for n...

Page 330 of 505