Tutorial by Examples: n

To unregister from Remote Notifications programatically you can use Objective-C [[UIApplication sharedApplication] unregisterForRemoteNotifications]; Swift UIApplication.sharedApplication().unregisterForRemoteNotifications() this is similar to going into the setting of your phone and manual...
Detailed instructions on getting api set up or installed.
NSMutableDictionary *attributesDictionary = [NSMutableDictionary dictionary]; [attributesDictionary setObject:[UIFont systemFontOfSize:14] forKey:NSFontAttributeName]; //[attributesDictionary setObject:[UIColor redColor] forKey:NSForegroundColorAttributeName]; NSMutableAttributedString *attri...
Task that return a value has return type of Task< TResult > where TResult is the type of value that needs to be returned. You can query the outcome of a Task by its Result property. Task<int> t = Task.Run(() => { int sum = 0; for(int i = 0; i < 500; i++) ...
To create a Swift Package, open a Terminal then create an empty folder: mkdir AwesomeProject cd AwesomeProject And init a Git repository: git init Then create the package itself. One could create the package structure manually but there's a simple way using the CLI command. If you want to ...
JSON Viewer SourceForge is a plugin for JSON visualization and formatting. It is useful for indenting /formatting JSON documents and can be used to browse complex JSON file using a treeview tool. The following image shows the commands offered by the plugin: Starting from an unformatted JSON frag...
EventNetworks returned by compile must be actuated before reactimated events have an effect. main = do (inputHandler, inputFire) <- newAddHandler eventNetwork <- compile $ do inputEvent <- fromAddHandler inputHandler let inputEventReaction = fmap putStrLn inp...
Here we will be checking out the latest copy of our project's code, run the tests and will make the application live.To achieve that, follow below steps: Open Jenkins in browser. Click the New Job link. Enter project name and select the Build a free-style software project link. Click on Ok but...
Since an enum can be cast to and from its underlying integral type, the value may fall outside the range of values given in the definition of the enum type. Although the below enum type DaysOfWeek only has 7 defined values, it can still hold any int value. public enum DaysOfWeek { Monday = 1...
From within Emacs, type C-h t (Control-h, t) to get an excellent interactive tutorial within Emacs. The user learns basic navigation and editing by operating on the TUTORIAL text itself, as they read the tutorial. (Modifications to the tutorial are discarded when the tutorial is closed, so each ti...
Validation attributes are used to enforce various validation rules in a declarative fashion on classes or class members. All validation attributes derive from the ValidationAttribute base class. Example: RequiredAttribute When validated through the ValidationAttribute.Validate method, this att...
// filename is a string with the full path // true is to append using (System.IO.StreamWriter file = new System.IO.StreamWriter(filename, true)) { // Can write either a string or char array await file.WriteAsync(text); }
Information about the database connections SELECT a.mon$attachment_id as Attachment_ID, a.mon$server_pid as Server_PID, case a.mon$state when 1 then 'active' when 0 then 'idle' end as State, a.mon$attachment_name as Database_Name, ...
Overriding in Inheritance is used when you use a already defined method from a super class in a sub class, but in a different way than how the method was originally designed in the super class. Overriding allows the user to reuse code by using existing material and modifying it to suit the user's ne...
Darken #demo { @refcolor: #f0b9b8; background: @refcolor; border: 1px solid darken(@refcolor, 25%); } The above code makes use of the darken() function to set the border color as a shade that is 25% darker than the reference color (which is also the background color). Less compiler ca...
lessc [options] <source> [destination] The above command is used to compile Less files in the command line. Options are the various settings that the compiler should use either during compilation or after compilation. Options include -x or --compress for compressing or minifying the output ...
Loading the SharePoint Snapin can be done using the following: Add-PSSnapin "Microsoft.SharePoint.PowerShell" This only works in the 64bit version of PowerShell. If the window says "Windows PowerShell (x86)" in the title you are using the incorrect version. If the Snap-In is a...
Print out all list names and the item count. $site = Get-SPSite -Identity https://mysharepointsite/sites/test foreach ($web in $site.AllWebs) { foreach ($list in $web.Lists) { # Prints list title and item count Write-Output "$($list.Title), Items: $($list.ItemCoun...
Get-SPFeature -Site https://mysharepointsite/sites/test Get-SPFeature can also be run on web scope (-Web <WebUrl>), farm scope (-Farm) and web application scope (-WebApplication <WebAppUrl>). Get all orphaned features on a site collection Another usage of Get-SPFeature can be to find ...
Website:https://www.gitkraken.com Price: $60/years (free for For open source, education, non‑profit, startups or personal use) Platforms: Linux, OS X, Windows Developed by: Axosoft

Page 577 of 1088