Tutorial by Examples: er

Quite often within mobile applications, there will be a reason to deal with dates. When working with dates, you will probably need some sort of user input to select a date. This could occur when working with a scheduling or calendar app. In this case, it is best to provide users with a specialized c...
Getting a table with vertical headers. Twitter bootstrap now support vertical header on a well formatted normal table. To achieve this just use .table-reflow class Use twitter bootstrap .table-reflow class on a well formed table to achieve a table with vertical headers. Additionally you can combin...
External Maps Plugin Open external maps to navigate to a specific geolocation or address. Option to launch with navigation option on iOS as well. Available on NuGet :[https://www.nuget.org/packages/Xam.Plugin.ExternalMaps/][1] XAML <StackLayout Spacing="10" Padding="10"&...
Check to see if your users have granted or denied permissions for common permission groups on iOS and Android. Additionally, you can request permissions with a simple cross-platform async/awaitified API. Available Nuget : https://www.nuget.org/packages/Plugin.Permissions enter link description he...
There are many reasons a write operation may fail. A frequent one is because your security rules reject the operation, for example because you're not authenticated (by default a database can only be accessed by an authenticated user). You can see these security rule violations in the console output...
MasterDetailPage: Manages two separate Pages (panes) of information. XAML <?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class=&quot...
It is important to read the error response that is returned by the Google Analytics API server. In a lot of cases they can tell you exactly what is wrong. 400 invalidParameter { "error": { "errors": [ { "domain": "global", "reason&...
[Service] # empty exec prevents error "docker.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing." ExecStart= ExecStart=/usr/bin/dockerd -H fd:// --log-driver=syslog This enables syslog logging for the docker daemon. The file sho...
Nesting controllers chains the $scope as well. Changing a $scope variable in the nested controller changes the same $scope variable in the parent controller. .controller('parentController', function ($scope) { $scope.parentVariable = "I'm the parent"; }); .controller('childContro...
Arch: An official pacman-package is available. Install the package as root, using: pacman -S postgis OpenSuse: In order to use the openSuse repositories for geospatial applications, enable the Geo-repository as root: zypper ar http://download.opensuse.org/repositories/Application:/Geo/openSUS...
To get started we need a factory that produces WebClients. public class ClientFactory { private Map<String, WebClient> cache = new HashMap<>(); public enum RESTClient { PORTAL; } public WebClient fetchRestClient(RESTClient restClient) { if (th...
To connect to a server we must use SSH on the client as follows, # ssh -p port user@server-address port - The listening ssh port of the server (default port 22). user - Must be an existing user on the server with SSH privileges. server address - The IP/Domain of the server. For a real wor...
To generate keys for SSH client: ssh-keygen [-t rsa | rsa1 | dsa ] [-C <comment>] [-b bits] For example: ssh-keygen -t rsa -b 4096 - C [email protected] Default location is ~/.ssh/id_rsa for private and ~/.ssh/id_rsa.pub for public key. For more info, please visit man.openbsd.org
this can also be cv-qualified, the same as any other pointer. However, due to the this parameter not being listed in the parameter list, special syntax is required for this; the cv-qualifiers are listed after the parameter list, but before the function's body. struct ThisCVQ { void no_qualifi...
C++11 Similarly to this cv-qualifiers, we can also apply ref-qualifiers to *this. Ref-qualifiers are used to choose between normal and rvalue reference semantics, allowing the compiler to use either copy or move semantics depending on which are more appropriate, and are applied to *this instead of...
Objective-C //Displays the country pickerView with black background and white text [self. countryPicker setValue:[UIColor whiteColor] forKey:@"textColor"]; [self. countryPicker setValue:[UIColor blackColor] forKey:@"backgroundColor"]; Swift let color1 = UIColor(colorLitera...
This is a porting of set up sourced from DigitalOcean's tutorial of How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04 and some useful git resources for nginx servers. Flask Application This tutorial assume you use Ubuntu. locate var/www/ folder. Create your web app folder m...
The BigInteger class has a constructor dedicated to generate random BigIntegers, given an instance of java.util.Random and an int that specifies how many bits will the BigInteger have. Its usage is quite simple - when you call the constructor BigInteger(int, Random) like this: BigInteger randomBigI...
By utilizing the pre_save we can determine if a save action on our database was about updating an existing object or creating a new one. In order to achieve this you can check the state of the model object: @receiver(pre_save, sender=User) def pre_save_user(sender, instance, **kwargs): ...
Objective-C Add the delegate and a text-formatter to the ViewController.h file @interface ViewController : UIViewController <UIPrintInteractionControllerDelegate> { UISimpleTextPrintFormatter *_textFormatter; } In the ViewController.m file define the following constants #define Def...

Page 310 of 417