Tutorial by Examples: e

You need discover the services and characteristic You don't need read value from the characteristic before writing over it. will continue for, for this example, after read value. Modify func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?)...
To Get context: NSManagedObjectContext *context = ((AppDelegate*)[[UIApplication sharedApplication] delegate]).persistentContainer.viewContext; To fetch data: NSFetchRequest<EntityName *> *fetchRequest = [EntityName fetchRequest]; NSError *error ; NSArray *resultArray= [context executeF...
Just use default DividerItemDecoration class : NavigationView navigationView = (NavigationView) findViewById(R.id.navigation); NavigationMenuView navMenuView = (NavigationMenuView) navigationView.getChildAt(0); navMenuView.addItemDecoration(new DividerItemDecoration(context,DividerItemDecoration....
HTML : <li class="item" ng-repeat="schedule in Schedules | filter:scheduleSearch | limitTo:numberOfItemsToDisplay"> Display some data </li> <ion-infinite-scroll on-infinite="addMoreItem()" ng-if="Schedules.length > numberOfItemsToDisplay&...
Open your jenkins instance script console http://yourJenkins:port/script following is an example for how to get information about a sepcific job. copy the code to the console, change the jobName to the required job and click "Run". /*This script shows how to get basic information about a...
Alfresco is ECM (enterprise content management) system, based on java frameworks and javascript. Alfresco (as a "repository" is the base core of the Alfresco as a product). It provides eg. encrypted content store, specific permissions settings, content types with specific properties (like...
The function takes the argument of the current node index, adjacency list (stored in vector of vectors in this example), and vector of boolean to keep track of which node has been visited. void dfs(int node, vector<vector<int>>* graph, vector<bool>* visited) { // check whethe...
http://ibm.com/systems/z/os/zos/library/bkserv/
Detailed instructions on getting iot set up or installed.
These PDF documents, starting from 1964, are those parts of the OS/360 "System Reference Library" (SRL) with enduring relevance and are also the earliest System/360 publications available on the web. Given IBM's stubborn insistance on full upward compatibility, all facilities described he...
Lets take fb login as testcase,will see how to capture and export as JAVA class Click on the selenium IDE icon on top right corner of your browser Enter the url https://facebook.com Click on Record button , as shown in the screenshot Export the usecase as java file Save the file in you lo...
Installation : Open Firefox browser.click on menu and select Add-ons Search for selenium IDE Install selenium IDE Add-on in firefox. Restart the Firefox. If the selenium IDE is installed successfully then you can see the icon on top of the browser By clicking on thi...
Adapters are used to convert the interface of a given class, known as an Adaptee, into another interface, called the Target. Operations on the Target are called by a Client, and those operations are adapted by the Adapter and passed on to the Adaptee. In Swift, Adapters can often be formed through ...
A Facade provides a unified, high-level interface to subsystem interfaces. This allows for simpler, safer access to the more general facilities of a subsystem. The following is an example of a Facade used to set and retrieve objects in UserDefaults. enum Defaults { static func set(_ object:...
// setup an event bus, do it in a separate js file var bus = new Vue() // imagine a component where you require to pass on a data property // or a computed property or a method! Vue.component('card', { template: `<div class='card'> Name: <div class='margin-5'> ...
Right click in MAIN folder > New > Folder > Assets Folder. Assets folder will be under MAIN folder with the same symbol as RES folder. In this example I put a font file.
$ cat hello.sh #!/bin/bash echo "Hello World" $ bash -x hello.sh + echo Hello World Hello World The -x argument enables you to walk through each line in the script. One good example is here: $ cat hello.sh #!/bin/bash echo "Hello World\n" adding_string_to_number=...
Assuming we have a working laravel application running in, say, "mylaravel.com",we want our application to show a "Hello World" message when we hit the URL http://mylaravel.com/helloworld . It involves the creation of two files (the view and the controller) and the modification o...
Controller Function Controller function is nothing but just a JavaScript constructor function. Hence, when a view loads the function context(this) is set to the controller object. Case 1 : this.constFunction = function() { ... } It is created in the controller object, not on $scope. views can ...
Openfire setup it's based on a combination of xml configuration and database entries. After first installation, run Openfire will leads to deploy a web administration panel listening on port 9090. Endpoint to access it's typically on http://machinenamewhereinstalled:9090 and flagged on Openfire's lo...

Page 1062 of 1191