Tutorial by Examples

Prerequisites Install pods in your project Install the GooglePlaces SDK Enable location services First we need to get the users location by getting their current longitude and latitude. Import GooglePlaces and GooglePlacePicker import GooglePlaces import GooglePlacePicker Add the...
Insert the analytics function within index.js function analytics(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a...
There’s no API that can break the locked lease of blob storage in Microsoft Azure . This code snippet demonstrates break the locked lease of blob storage in Microsoft Azure (PowerShell). $key = (Get-AzureRmStorageAccountKey -ResourceGroupName $selectedStorageAccount.ResourceGroupName -name $select...
NSString *emailRegex = @"[A-Z0-9a-z]([A-Z0-9a-z._-]{0,64})+[A-Z0-9a-z]+@[A-Z0-9a-z]+([A-Za-z0-9.-]{0,64})+([A-Z0-9a-z])+\\.[A-Za-z]{2,4}"; NSString *firstNameRegex = @"[0-9A-Za-z\"'-]{2,32}$"; NSString *firstNameRegex = @"[ 0-9A-Za-z]{2,32}$"; NSString *lastNa...
PowerBI reports can be created using PowerBI Desktop application. Download link: https://powerbi.microsoft.com/en-us/desktop/ Requirements (as of 5 April 2017): Windows 7 / Windows Server 2008 R2, or later .NET 4.5 Internet Explorer 9 or later Memory (RAM): At least 1 GB available, 1.5 GB...
reflect.TypeOf can be used to check the type of variables when comparing package main import ( "fmt" "reflect" ) type Data struct { a int } func main() { s:="hey dude" fmt.Println(reflect.TypeOf(...
The break statement, on execution makes the current loop to force exit package main import "fmt" func main() { i:=0 for true { if i>2 { break } fmt.Println("Iteration : ",i) i++ } } The continue statement, on execution...
Authorization in asp.net core is simply AuthorizeAttribute [Authorize] public class SomeController : Controller { public IActionResult Get() { } public IActionResult Post() { } } This will only allow a logged in user to access these actions. or use the followi...
A modern Fortran example which includes error checking and a function to get a new unit number for the file. module functions contains function get_new_fileunit() result (f) implicit none logical :: op integer :: f f = 1 do ...
A linked list is either: the empty list, represented by None, or a node that contains a cargo object and a reference to a linked list. #! /usr/bin/env python class Node: def __init__(self, cargo=None, next=None): self.car = cargo self.cdr = next d...
The order of execution of parameters is undefined in C programming. Here it may execute from left to right or from right to left. The order depends on the implementation. #include <stdio.h> void function(int a, int b) { printf("%d %d\n", a, b); } int main(void) { ...
// main.cpp : Defines the entry point for the console application. // #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; int main(int argc, const char** argv) { Mat img = imread("lena30.jpg", CV_LOAD_IMAGE...
Big data involves the data produced by different devices and applications. Given below are some of the fields that come under the umbrella of Big Data. Black Box Data : It is a component of helicopter, airplanes, and jets, etc. It captures voices of the flight crew, recordings of microphones an...
With the below commands, user's default search_path can be set. Check search path before set default schema. postgres=# \c postgres user1 You are now connected to database "postgres" as user "user1". postgres=> show search_path; search_path ---------------- &q...
Delegate: UISearchBarDelegate, UISearchControllerDelegate, UISearchBarDelegate @property (strong, nonatomic) UISearchController *searchController; - (void)searchBarConfiguration { self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil]; self.searchC...
By default, when data is imported to the PowerBI Desktop, each table or query stores data source details separately, even if they use the same data source. This makes it tedious, for example, to change the source database of an entire PowerBI report - which requires changing each query source param...
The MultiBinding allows binding multiple values to the same property. In the following example multiple values are bound to the Text property of a Textbox and formatted using the StringFormat property. <TextBlock> <TextBlock.Text> <MultiBinding StringFormat="{}{0}...
For example, we need to create two visualisations, "Before" and "After", and use dynamic filter for the date of the split. Let's say our query is called table. Add an additional date table with possible dates of the split. Add a slicer control with the table added ...
group_concat is used to concatenate non-null values in a group. The maximum length of the resulting string can be set using the group_concat_max_len option: SET [GLOBAL | SESSION] group_concat_max_len = val; Setting the GLOBAL variable will ensure a permanent change, whereas setting the SESSION ...
The viewBox attribute defines the coordinate system for an <svg> element. This allows you to easily change the size and relative proportion of an SVG graphic without having to adjust the position and dimensions of every individual drawn element. <!-- stretches a small icon to 60px square -...

Page 937 of 1336